Added support for toggle button on OS/2.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.5.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWidgets'
272 PACKAGE_TARNAME='wxwidgets'
273 PACKAGE_VERSION='2.5.5'
274 PACKAGE_STRING='wxWidgets 2.5.5'
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_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_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.5.5 to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857   --target=TARGET   configure for building compilers for TARGET [HOST]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862   case $ac_init_help in
863      short | recursive ) echo "Configuration of wxWidgets 2.5.5:";;
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              use GTK+
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.5.5
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.5.5, 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=5
1665 wx_release_number=5
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=5
1675 WX_REVISION=0
1676 WX_AGE=5
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 case "${host}" in
1730   *-hp-hpux* )
1731     USE_HPUX=1
1732     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734     SO_SUFFIX=sl
1735     cat >>confdefs.h <<\_ACEOF
1736 #define __HPUX__ 1
1737 _ACEOF
1738
1739   ;;
1740   *-*-linux* )
1741     USE_LINUX=1
1742     cat >>confdefs.h <<\_ACEOF
1743 #define __LINUX__ 1
1744 _ACEOF
1745
1746     TMP=`uname -m`
1747     if test "x$TMP" = "xalpha"; then
1748       USE_ALPHA=1
1749       cat >>confdefs.h <<\_ACEOF
1750 #define __ALPHA__ 1
1751 _ACEOF
1752
1753     fi
1754     DEFAULT_DEFAULT_wxUSE_GTK=1
1755   ;;
1756   *-*-gnu* | *-*-k*bsd*-gnu )
1757     USE_GNU=1
1758     TMP=`uname -m`
1759     if test "x$TMP" = "xalpha"; then
1760       USE_ALPHA=1
1761       cat >>confdefs.h <<\_ACEOF
1762 #define __ALPHA__ 1
1763 _ACEOF
1764
1765     fi
1766     DEFAULT_DEFAULT_wxUSE_GTK=1
1767   ;;
1768   *-*-irix5* | *-*-irix6* )
1769     USE_SGI=1
1770     USE_SVR4=1
1771     cat >>confdefs.h <<\_ACEOF
1772 #define __SGI__ 1
1773 _ACEOF
1774
1775     cat >>confdefs.h <<\_ACEOF
1776 #define __SVR4__ 1
1777 _ACEOF
1778
1779     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1780   ;;
1781   *-*-solaris2* )
1782     USE_SUN=1
1783     USE_SOLARIS=1
1784     USE_SVR4=1
1785     cat >>confdefs.h <<\_ACEOF
1786 #define __SUN__ 1
1787 _ACEOF
1788
1789     cat >>confdefs.h <<\_ACEOF
1790 #define __SOLARIS__ 1
1791 _ACEOF
1792
1793     cat >>confdefs.h <<\_ACEOF
1794 #define __SVR4__ 1
1795 _ACEOF
1796
1797     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1798     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1799   ;;
1800   *-*-sunos4* )
1801     USE_SUN=1
1802     USE_SUNOS=1
1803     USE_BSD=1
1804     cat >>confdefs.h <<\_ACEOF
1805 #define __SUN__ 1
1806 _ACEOF
1807
1808     cat >>confdefs.h <<\_ACEOF
1809 #define __SUNOS__ 1
1810 _ACEOF
1811
1812     cat >>confdefs.h <<\_ACEOF
1813 #define __BSD__ 1
1814 _ACEOF
1815
1816     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1817   ;;
1818   *-*-freebsd*)
1819     USE_BSD=1
1820     USE_FREEBSD=1
1821     cat >>confdefs.h <<\_ACEOF
1822 #define __FREEBSD__ 1
1823 _ACEOF
1824
1825     cat >>confdefs.h <<\_ACEOF
1826 #define __BSD__ 1
1827 _ACEOF
1828
1829     DEFAULT_DEFAULT_wxUSE_GTK=1
1830   ;;
1831   *-*-openbsd*)
1832     USE_BSD=1
1833     USE_OPENBSD=1
1834     cat >>confdefs.h <<\_ACEOF
1835 #define __OPENBSD__ 1
1836 _ACEOF
1837
1838     cat >>confdefs.h <<\_ACEOF
1839 #define __BSD__ 1
1840 _ACEOF
1841
1842     DEFAULT_DEFAULT_wxUSE_GTK=1
1843   ;;
1844   *-*-netbsd*)
1845     USE_BSD=1
1846     USE_NETBSD=1
1847     cat >>confdefs.h <<\_ACEOF
1848 #define __NETBSD__ 1
1849 _ACEOF
1850
1851     cat >>confdefs.h <<\_ACEOF
1852 #define __BSD__ 1
1853 _ACEOF
1854
1855     DEFAULT_DEFAULT_wxUSE_GTK=1
1856   ;;
1857   *-*-osf* )
1858     USE_ALPHA=1
1859     USE_OSF=1
1860     cat >>confdefs.h <<\_ACEOF
1861 #define __ALPHA__ 1
1862 _ACEOF
1863
1864     cat >>confdefs.h <<\_ACEOF
1865 #define __OSF__ 1
1866 _ACEOF
1867
1868     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870   ;;
1871   *-*-dgux5* )
1872     USE_ALPHA=1
1873     USE_SVR4=1
1874     cat >>confdefs.h <<\_ACEOF
1875 #define __ALPHA__ 1
1876 _ACEOF
1877
1878     cat >>confdefs.h <<\_ACEOF
1879 #define __SVR4__ 1
1880 _ACEOF
1881
1882     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883   ;;
1884   *-*-sysv5* )
1885     USE_SYSV=1
1886     USE_SVR4=1
1887     cat >>confdefs.h <<\_ACEOF
1888 #define __SYSV__ 1
1889 _ACEOF
1890
1891     cat >>confdefs.h <<\_ACEOF
1892 #define __SVR4__ 1
1893 _ACEOF
1894
1895     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1896   ;;
1897   *-*-aix* )
1898     USE_AIX=1
1899     USE_SYSV=1
1900     USE_SVR4=1
1901                         SO_SUFFIX=a
1902     cat >>confdefs.h <<\_ACEOF
1903 #define __AIX__ 1
1904 _ACEOF
1905
1906     cat >>confdefs.h <<\_ACEOF
1907 #define __SYSV__ 1
1908 _ACEOF
1909
1910     cat >>confdefs.h <<\_ACEOF
1911 #define __SVR4__ 1
1912 _ACEOF
1913
1914     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1915   ;;
1916
1917   *-*-*UnixWare*)
1918     USE_SYSV=1
1919     USE_SVR4=1
1920     USE_UNIXWARE=1
1921     cat >>confdefs.h <<\_ACEOF
1922 #define __UNIXWARE__ 1
1923 _ACEOF
1924
1925   ;;
1926
1927   *-*-cygwin* | *-*-mingw32* )
1928                 SO_SUFFIX=dll
1929     PROGRAM_EXT=".exe"
1930     RESCOMP=windres
1931     DEFAULT_DEFAULT_wxUSE_MSW=1
1932   ;;
1933
1934   *-pc-msdosdjgpp )
1935     USE_UNIX=0
1936     USE_DOS=1
1937     cat >>confdefs.h <<\_ACEOF
1938 #define __DOS__ 1
1939 _ACEOF
1940
1941     PROGRAM_EXT=".exe"
1942     DEFAULT_DEFAULT_wxUSE_MGL=1
1943         LIBS="$LIBS -lstdc++"
1944   ;;
1945
1946   *-pc-os2_emx | *-pc-os2-emx )
1947     cat >>confdefs.h <<\_ACEOF
1948 #define __EMX__ 1
1949 _ACEOF
1950
1951     USE_OS2=1
1952     cat >>confdefs.h <<\_ACEOF
1953 #define __OS2__ 1
1954 _ACEOF
1955
1956     PROGRAM_EXT=".exe"
1957     DEFAULT_DEFAULT_wxUSE_PM=1
1958         CXX=gcc
1959     LDFLAGS="$LDFLAGS -Zcrtdll"
1960                         ac_executable_extensions=".exe"
1961     export ac_executable_extensions
1962             ac_save_IFS="$IFS"
1963     IFS='\\'
1964     ac_TEMP_PATH=
1965     for ac_dir in $PATH; do
1966       IFS=$ac_save_IFS
1967       if test -z "$ac_TEMP_PATH"; then
1968         ac_TEMP_PATH="$ac_dir"
1969       else
1970         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1971       fi
1972     done
1973     export PATH="$ac_TEMP_PATH"
1974     unset ac_TEMP_PATH
1975   ;;
1976
1977   powerpc-*-darwin* )
1978         USE_BSD=1
1979     USE_DARWIN=1
1980     SO_SUFFIX=dylib
1981     cat >>confdefs.h <<\_ACEOF
1982 #define __BSD__ 1
1983 _ACEOF
1984
1985     cat >>confdefs.h <<\_ACEOF
1986 #define __DARWIN__ 1
1987 _ACEOF
1988
1989     cat >>confdefs.h <<\_ACEOF
1990 #define TARGET_CARBON 1
1991 _ACEOF
1992
1993     DEFAULT_DEFAULT_wxUSE_MAC=1
1994   ;;
1995   powerpc-apple-macos* )
1996         USE_UNIX=0
1997             ac_cv_c_bigendian=yes
1998     SO_SUFFIX=shlib
1999             DEFAULT_DEFAULT_wxUSE_MAC=1
2000   ;;
2001
2002   *-*-beos* )
2003         USE_BEOS=1
2004     cat >>confdefs.h <<\_ACEOF
2005 #define __BEOS__ 1
2006 _ACEOF
2007
2008   ;;
2009
2010   *)
2011     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2012 echo "$as_me: error: unknown system type ${host}." >&2;}
2013    { (exit 1); exit 1; }; }
2014 esac
2015
2016
2017
2018
2019           wx_arg_cache_file="configarg.cache"
2020           echo "loading argument cache $wx_arg_cache_file"
2021           rm -f ${wx_arg_cache_file}.tmp
2022           touch ${wx_arg_cache_file}.tmp
2023           touch ${wx_arg_cache_file}
2024
2025
2026 DEBUG_CONFIGURE=0
2027 if test $DEBUG_CONFIGURE = 1; then
2028   DEFAULT_wxUSE_UNIVERSAL=no
2029   DEFAULT_wxUSE_STL=no
2030
2031   DEFAULT_wxUSE_NANOX=no
2032
2033   DEFAULT_wxUSE_THREADS=yes
2034
2035   DEFAULT_wxUSE_SHARED=yes
2036   DEFAULT_wxUSE_OPTIMISE=no
2037   DEFAULT_wxUSE_PROFILE=no
2038   DEFAULT_wxUSE_NO_DEPS=no
2039   DEFAULT_wxUSE_NO_RTTI=no
2040   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2041   DEFAULT_wxUSE_RPATH=yes
2042   DEFAULT_wxUSE_PERMISSIVE=no
2043   DEFAULT_wxUSE_DEBUG_FLAG=yes
2044   DEFAULT_wxUSE_DEBUG_INFO=yes
2045   DEFAULT_wxUSE_DEBUG_GDB=yes
2046   DEFAULT_wxUSE_MEM_TRACING=no
2047   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2048   DEFAULT_wxUSE_DMALLOC=no
2049   DEFAULT_wxUSE_APPLE_IEEE=no
2050
2051   DEFAULT_wxUSE_EXCEPTIONS=no
2052   DEFAULT_wxUSE_LOG=yes
2053   DEFAULT_wxUSE_LOGWINDOW=no
2054   DEFAULT_wxUSE_LOGGUI=no
2055   DEFAULT_wxUSE_LOGDIALOG=no
2056
2057   DEFAULT_wxUSE_GUI=yes
2058   DEFAULT_wxUSE_CONTROLS=no
2059
2060   DEFAULT_wxUSE_REGEX=no
2061   DEFAULT_wxUSE_XML=no
2062   DEFAULT_wxUSE_EXPAT=no
2063   DEFAULT_wxUSE_ZLIB=no
2064   DEFAULT_wxUSE_LIBPNG=no
2065   DEFAULT_wxUSE_LIBJPEG=no
2066   DEFAULT_wxUSE_LIBTIFF=no
2067   DEFAULT_wxUSE_LIBXPM=no
2068   DEFAULT_wxUSE_LIBMSPACK=no
2069   DEFAULT_wxUSE_LIBSDL=no
2070   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2071   DEFAULT_wxUSE_ODBC=no
2072   DEFAULT_wxUSE_OPENGL=no
2073
2074   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2075   DEFAULT_wxUSE_STACKWALKER=no
2076   DEFAULT_wxUSE_DEBUGREPORT=no
2077   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2078   DEFAULT_wxUSE_STD_IOSTREAM=no
2079   DEFAULT_wxUSE_STD_STRING=no
2080   DEFAULT_wxUSE_CMDLINE_PARSER=no
2081   DEFAULT_wxUSE_DATETIME=no
2082   DEFAULT_wxUSE_TIMER=no
2083   DEFAULT_wxUSE_STOPWATCH=no
2084   DEFAULT_wxUSE_FILE=no
2085   DEFAULT_wxUSE_FFILE=no
2086   DEFAULT_wxUSE_STDPATHS=no
2087   DEFAULT_wxUSE_TEXTBUFFER=no
2088   DEFAULT_wxUSE_TEXTFILE=no
2089   DEFAULT_wxUSE_SOUND=no
2090   DEFAULT_wxUSE_MEDIACTRL=no
2091   DEFAULT_wxUSE_DIRECTSHOW=no
2092   DEFAULT_wxUSE_INTL=no
2093   DEFAULT_wxUSE_CONFIG=no
2094   DEFAULT_wxUSE_FONTMAP=no
2095   DEFAULT_wxUSE_STREAMS=no
2096   DEFAULT_wxUSE_SOCKETS=no
2097   DEFAULT_wxUSE_OLE=no
2098   DEFAULT_wxUSE_DATAOBJ=no
2099   DEFAULT_wxUSE_DIALUP_MANAGER=no
2100   DEFAULT_wxUSE_JOYSTICK=no
2101   DEFAULT_wxUSE_DYNLIB_CLASS=no
2102   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2103   DEFAULT_wxUSE_LONGLONG=no
2104   DEFAULT_wxUSE_GEOMETRY=no
2105
2106   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2107   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2108   DEFAULT_wxUSE_POSTSCRIPT=no
2109
2110   DEFAULT_wxUSE_CLIPBOARD=no
2111   DEFAULT_wxUSE_TOOLTIPS=no
2112   DEFAULT_wxUSE_DRAG_AND_DROP=no
2113   DEFAULT_wxUSE_DRAGIMAGE=no
2114   DEFAULT_wxUSE_SPLINES=no
2115   DEFAULT_wxUSE_MOUSEWHEEL=no
2116
2117   DEFAULT_wxUSE_MDI=no
2118   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2119   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2120   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2121
2122   DEFAULT_wxUSE_RESOURCES=no
2123   DEFAULT_wxUSE_CONSTRAINTS=no
2124   DEFAULT_wxUSE_IPC=no
2125   DEFAULT_wxUSE_HELP=no
2126   DEFAULT_wxUSE_MS_HTML_HELP=no
2127   DEFAULT_wxUSE_WXHTML_HELP=no
2128   DEFAULT_wxUSE_TREELAYOUT=no
2129   DEFAULT_wxUSE_METAFILE=no
2130   DEFAULT_wxUSE_MIMETYPE=no
2131   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2132   DEFAULT_wxUSE_PROTOCOL=no
2133   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2134   DEFAULT_wxUSE_PROTOCOL_FTP=no
2135   DEFAULT_wxUSE_PROTOCOL_FILE=no
2136   DEFAULT_wxUSE_URL=no
2137
2138   DEFAULT_wxUSE_COMMONDLGS=no
2139   DEFAULT_wxUSE_CHOICEDLG=no
2140   DEFAULT_wxUSE_COLOURDLG=no
2141   DEFAULT_wxUSE_DIRDLG=no
2142   DEFAULT_wxUSE_FILEDLG=no
2143   DEFAULT_wxUSE_FINDREPLDLG=no
2144   DEFAULT_wxUSE_FONTDLG=no
2145   DEFAULT_wxUSE_MSGDLG=no
2146   DEFAULT_wxUSE_NUMBERDLG=no
2147   DEFAULT_wxUSE_TEXTDLG=no
2148   DEFAULT_wxUSE_SPLASH=no
2149   DEFAULT_wxUSE_STARTUP_TIPS=no
2150   DEFAULT_wxUSE_PROGRESSDLG=no
2151   DEFAULT_wxUSE_WIZARDDLG=no
2152
2153   DEFAULT_wxUSE_MENUS=no
2154   DEFAULT_wxUSE_MINIFRAME=no
2155   DEFAULT_wxUSE_HTML=no
2156   DEFAULT_wxUSE_XRC=no
2157   DEFAULT_wxUSE_WEBKIT=no
2158   DEFAULT_wxUSE_FILESYSTEM=no
2159   DEFAULT_wxUSE_FS_INET=no
2160   DEFAULT_wxUSE_FS_ZIP=no
2161   DEFAULT_wxUSE_BUSYINFO=no
2162   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2163   DEFAULT_wxUSE_ZIPSTREAM=no
2164   DEFAULT_wxUSE_VALIDATORS=no
2165
2166   DEFAULT_wxUSE_ACCEL=no
2167   DEFAULT_wxUSE_BUTTON=no
2168   DEFAULT_wxUSE_BMPBUTTON=no
2169   DEFAULT_wxUSE_CALCTRL=no
2170   DEFAULT_wxUSE_CARET=no
2171   DEFAULT_wxUSE_CHECKBOX=no
2172   DEFAULT_wxUSE_CHECKLST=no
2173   DEFAULT_wxUSE_CHOICE=no
2174   DEFAULT_wxUSE_CHOICEBOOK=no
2175   DEFAULT_wxUSE_COMBOBOX=no
2176   DEFAULT_wxUSE_DATEPICKCTRL=no
2177   DEFAULT_wxUSE_DISPLAY=no
2178   DEFAULT_wxUSE_GAUGE=no
2179   DEFAULT_wxUSE_GRID=no
2180   DEFAULT_wxUSE_IMAGLIST=no
2181   DEFAULT_wxUSE_LISTBOOK=no
2182   DEFAULT_wxUSE_LISTBOX=no
2183   DEFAULT_wxUSE_LISTCTRL=no
2184   DEFAULT_wxUSE_NOTEBOOK=no
2185   DEFAULT_wxUSE_RADIOBOX=no
2186   DEFAULT_wxUSE_RADIOBTN=no
2187   DEFAULT_wxUSE_SASH=no
2188   DEFAULT_wxUSE_SCROLLBAR=no
2189   DEFAULT_wxUSE_SLIDER=no
2190   DEFAULT_wxUSE_SPINBTN=no
2191   DEFAULT_wxUSE_SPINCTRL=no
2192   DEFAULT_wxUSE_SPLITTER=no
2193   DEFAULT_wxUSE_STATBMP=no
2194   DEFAULT_wxUSE_STATBOX=no
2195   DEFAULT_wxUSE_STATLINE=no
2196   DEFAULT_wxUSE_STATTEXT=no
2197   DEFAULT_wxUSE_STATUSBAR=yes
2198   DEFAULT_wxUSE_TABDIALOG=no
2199   DEFAULT_wxUSE_TEXTCTRL=no
2200   DEFAULT_wxUSE_TOGGLEBTN=no
2201   DEFAULT_wxUSE_TOOLBAR=no
2202   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2203   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2204   DEFAULT_wxUSE_TREECTRL=no
2205   DEFAULT_wxUSE_POPUPWIN=no
2206   DEFAULT_wxUSE_TIPWINDOW=no
2207
2208   DEFAULT_wxUSE_UNICODE=no
2209   DEFAULT_wxUSE_UNICODE_MSLU=no
2210   DEFAULT_wxUSE_WCSRTOMBS=no
2211
2212   DEFAULT_wxUSE_PALETTE=no
2213   DEFAULT_wxUSE_IMAGE=no
2214   DEFAULT_wxUSE_GIF=no
2215   DEFAULT_wxUSE_PCX=no
2216   DEFAULT_wxUSE_PNM=no
2217   DEFAULT_wxUSE_IFF=no
2218   DEFAULT_wxUSE_XPM=no
2219   DEFAULT_wxUSE_ICO_CUR=no
2220   DEFAULT_wxUSE_ACCESSIBILITY=no
2221
2222   DEFAULT_wxUSE_MONOLITHIC=no
2223   DEFAULT_wxUSE_PLUGINS=no
2224   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2225 else
2226   DEFAULT_wxUSE_UNIVERSAL=no
2227   DEFAULT_wxUSE_STL=no
2228
2229   DEFAULT_wxUSE_NANOX=no
2230
2231   DEFAULT_wxUSE_THREADS=yes
2232
2233   DEFAULT_wxUSE_SHARED=yes
2234   DEFAULT_wxUSE_OPTIMISE=yes
2235   DEFAULT_wxUSE_PROFILE=no
2236   DEFAULT_wxUSE_NO_DEPS=no
2237   DEFAULT_wxUSE_NO_RTTI=no
2238   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2239   DEFAULT_wxUSE_RPATH=yes
2240   DEFAULT_wxUSE_PERMISSIVE=no
2241   DEFAULT_wxUSE_DEBUG_FLAG=no
2242   DEFAULT_wxUSE_DEBUG_INFO=no
2243   DEFAULT_wxUSE_DEBUG_GDB=no
2244   DEFAULT_wxUSE_MEM_TRACING=no
2245   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2246   DEFAULT_wxUSE_DMALLOC=no
2247   DEFAULT_wxUSE_APPLE_IEEE=yes
2248
2249   DEFAULT_wxUSE_EXCEPTIONS=yes
2250   DEFAULT_wxUSE_LOG=yes
2251   DEFAULT_wxUSE_LOGWINDOW=yes
2252   DEFAULT_wxUSE_LOGGUI=yes
2253   DEFAULT_wxUSE_LOGDIALOG=yes
2254
2255   DEFAULT_wxUSE_GUI=yes
2256
2257   DEFAULT_wxUSE_REGEX=yes
2258   DEFAULT_wxUSE_XML=yes
2259   DEFAULT_wxUSE_EXPAT=yes
2260   DEFAULT_wxUSE_ZLIB=yes
2261   DEFAULT_wxUSE_LIBPNG=yes
2262   DEFAULT_wxUSE_LIBJPEG=yes
2263   DEFAULT_wxUSE_LIBTIFF=yes
2264   DEFAULT_wxUSE_LIBXPM=yes
2265   DEFAULT_wxUSE_LIBMSPACK=yes
2266   DEFAULT_wxUSE_LIBSDL=no
2267   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2268   DEFAULT_wxUSE_ODBC=no
2269   DEFAULT_wxUSE_OPENGL=no
2270
2271   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2272   DEFAULT_wxUSE_STACKWALKER=yes
2273   DEFAULT_wxUSE_DEBUGREPORT=yes
2274   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2275   DEFAULT_wxUSE_STD_IOSTREAM=no
2276   DEFAULT_wxUSE_STD_STRING=no
2277   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2278   DEFAULT_wxUSE_DATETIME=yes
2279   DEFAULT_wxUSE_TIMER=yes
2280   DEFAULT_wxUSE_STOPWATCH=yes
2281   DEFAULT_wxUSE_FILE=yes
2282   DEFAULT_wxUSE_FFILE=yes
2283   DEFAULT_wxUSE_STDPATHS=yes
2284   DEFAULT_wxUSE_TEXTBUFFER=yes
2285   DEFAULT_wxUSE_TEXTFILE=yes
2286   DEFAULT_wxUSE_SOUND=yes
2287   DEFAULT_wxUSE_MEDIACTRL=no
2288   DEFAULT_wxUSE_DIRECTSHOW=no
2289   DEFAULT_wxUSE_INTL=yes
2290   DEFAULT_wxUSE_CONFIG=yes
2291   DEFAULT_wxUSE_FONTMAP=yes
2292   DEFAULT_wxUSE_STREAMS=yes
2293   DEFAULT_wxUSE_SOCKETS=yes
2294   DEFAULT_wxUSE_OLE=yes
2295   DEFAULT_wxUSE_DATAOBJ=yes
2296   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2297   DEFAULT_wxUSE_JOYSTICK=yes
2298   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2299   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2300   DEFAULT_wxUSE_LONGLONG=yes
2301   DEFAULT_wxUSE_GEOMETRY=yes
2302
2303   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2304   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2305   DEFAULT_wxUSE_POSTSCRIPT=yes
2306
2307   DEFAULT_wxUSE_CLIPBOARD=yes
2308   DEFAULT_wxUSE_TOOLTIPS=yes
2309   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2310   DEFAULT_wxUSE_DRAGIMAGE=yes
2311   DEFAULT_wxUSE_SPLINES=yes
2312   DEFAULT_wxUSE_MOUSEWHEEL=yes
2313
2314   DEFAULT_wxUSE_MDI=yes
2315   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2316   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2317   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2318
2319   DEFAULT_wxUSE_RESOURCES=no
2320   DEFAULT_wxUSE_CONSTRAINTS=yes
2321   DEFAULT_wxUSE_IPC=yes
2322   DEFAULT_wxUSE_HELP=yes
2323   DEFAULT_wxUSE_MS_HTML_HELP=yes
2324   DEFAULT_wxUSE_WXHTML_HELP=yes
2325   DEFAULT_wxUSE_TREELAYOUT=yes
2326   DEFAULT_wxUSE_METAFILE=yes
2327   DEFAULT_wxUSE_MIMETYPE=yes
2328   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2329   DEFAULT_wxUSE_PROTOCOL=yes
2330   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2331   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2332   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2333   DEFAULT_wxUSE_URL=yes
2334
2335   DEFAULT_wxUSE_COMMONDLGS=yes
2336   DEFAULT_wxUSE_CHOICEDLG=yes
2337   DEFAULT_wxUSE_COLOURDLG=yes
2338   DEFAULT_wxUSE_DIRDLG=yes
2339   DEFAULT_wxUSE_FILEDLG=yes
2340   DEFAULT_wxUSE_FINDREPLDLG=yes
2341   DEFAULT_wxUSE_FONTDLG=yes
2342   DEFAULT_wxUSE_MSGDLG=yes
2343   DEFAULT_wxUSE_NUMBERDLG=yes
2344   DEFAULT_wxUSE_TEXTDLG=yes
2345   DEFAULT_wxUSE_SPLASH=yes
2346   DEFAULT_wxUSE_STARTUP_TIPS=yes
2347   DEFAULT_wxUSE_PROGRESSDLG=yes
2348   DEFAULT_wxUSE_WIZARDDLG=yes
2349
2350   DEFAULT_wxUSE_MENUS=yes
2351   DEFAULT_wxUSE_MINIFRAME=yes
2352   DEFAULT_wxUSE_HTML=yes
2353   DEFAULT_wxUSE_XRC=yes
2354   DEFAULT_wxUSE_WEBKIT=yes
2355   DEFAULT_wxUSE_FILESYSTEM=yes
2356   DEFAULT_wxUSE_FS_INET=yes
2357   DEFAULT_wxUSE_FS_ZIP=yes
2358   DEFAULT_wxUSE_BUSYINFO=yes
2359   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2360   DEFAULT_wxUSE_ZIPSTREAM=yes
2361   DEFAULT_wxUSE_VALIDATORS=yes
2362
2363   DEFAULT_wxUSE_ACCEL=yes
2364   DEFAULT_wxUSE_BUTTON=yes
2365   DEFAULT_wxUSE_BMPBUTTON=yes
2366   DEFAULT_wxUSE_CALCTRL=yes
2367   DEFAULT_wxUSE_CARET=yes
2368   DEFAULT_wxUSE_CHECKBOX=yes
2369   DEFAULT_wxUSE_CHECKLST=yes
2370   DEFAULT_wxUSE_CHOICE=yes
2371   DEFAULT_wxUSE_CHOICEBOOK=yes
2372   DEFAULT_wxUSE_COMBOBOX=yes
2373   DEFAULT_wxUSE_DATEPICKCTRL=yes
2374   DEFAULT_wxUSE_DISPLAY=yes
2375   DEFAULT_wxUSE_GAUGE=yes
2376   DEFAULT_wxUSE_GRID=yes
2377   DEFAULT_wxUSE_IMAGLIST=yes
2378   DEFAULT_wxUSE_LISTBOOK=yes
2379   DEFAULT_wxUSE_LISTBOX=yes
2380   DEFAULT_wxUSE_LISTCTRL=yes
2381   DEFAULT_wxUSE_NOTEBOOK=yes
2382   DEFAULT_wxUSE_RADIOBOX=yes
2383   DEFAULT_wxUSE_RADIOBTN=yes
2384   DEFAULT_wxUSE_SASH=yes
2385   DEFAULT_wxUSE_SCROLLBAR=yes
2386   DEFAULT_wxUSE_SLIDER=yes
2387   DEFAULT_wxUSE_SPINBTN=yes
2388   DEFAULT_wxUSE_SPINCTRL=yes
2389   DEFAULT_wxUSE_SPLITTER=yes
2390   DEFAULT_wxUSE_STATBMP=yes
2391   DEFAULT_wxUSE_STATBOX=yes
2392   DEFAULT_wxUSE_STATLINE=yes
2393   DEFAULT_wxUSE_STATTEXT=yes
2394   DEFAULT_wxUSE_STATUSBAR=yes
2395   DEFAULT_wxUSE_TABDIALOG=no
2396   DEFAULT_wxUSE_TEXTCTRL=yes
2397   DEFAULT_wxUSE_TOGGLEBTN=yes
2398   DEFAULT_wxUSE_TOOLBAR=yes
2399   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2400   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2401   DEFAULT_wxUSE_TREECTRL=yes
2402   DEFAULT_wxUSE_POPUPWIN=yes
2403   DEFAULT_wxUSE_TIPWINDOW=yes
2404
2405   DEFAULT_wxUSE_UNICODE=no
2406   DEFAULT_wxUSE_UNICODE_MSLU=yes
2407   DEFAULT_wxUSE_WCSRTOMBS=no
2408
2409   DEFAULT_wxUSE_PALETTE=yes
2410   DEFAULT_wxUSE_IMAGE=yes
2411   DEFAULT_wxUSE_GIF=yes
2412   DEFAULT_wxUSE_PCX=yes
2413   DEFAULT_wxUSE_IFF=no
2414   DEFAULT_wxUSE_PNM=yes
2415   DEFAULT_wxUSE_XPM=yes
2416   DEFAULT_wxUSE_ICO_CUR=yes
2417   DEFAULT_wxUSE_ACCESSIBILITY=no
2418
2419   DEFAULT_wxUSE_MONOLITHIC=no
2420   DEFAULT_wxUSE_PLUGINS=no
2421   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2422
2423     DEFAULT_wxUSE_GTK2=yes
2424 fi
2425
2426
2427
2428 for toolkit in `echo $ALL_TOOLKITS`; do
2429   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2430   if test "x$LINE" != "x" ; then
2431     has_toolkit_in_cache=1
2432     eval "DEFAULT_$LINE"
2433     eval "CACHE_$toolkit=1"
2434   fi
2435 done
2436
2437
2438
2439           enablestring=
2440           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2441 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2442           no_cache=0
2443           # Check whether --enable-gui or --disable-gui was given.
2444 if test "${enable_gui+set}" = set; then
2445   enableval="$enable_gui"
2446
2447                           if test "$enableval" = yes; then
2448                             ac_cv_use_gui='wxUSE_GUI=yes'
2449                           else
2450                             ac_cv_use_gui='wxUSE_GUI=no'
2451                           fi
2452
2453 else
2454
2455                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2456                           if test "x$LINE" != x ; then
2457                             eval "DEFAULT_$LINE"
2458                           else
2459                             no_cache=1
2460                           fi
2461
2462                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2463
2464 fi;
2465
2466           eval "$ac_cv_use_gui"
2467           if test "$no_cache" != 1; then
2468             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2469           fi
2470
2471           if test "$wxUSE_GUI" = yes; then
2472             echo "$as_me:$LINENO: result: yes" >&5
2473 echo "${ECHO_T}yes" >&6
2474           else
2475             echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6
2477           fi
2478
2479
2480           enablestring=
2481           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2482 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2483           no_cache=0
2484           # Check whether --enable-monolithic or --disable-monolithic was given.
2485 if test "${enable_monolithic+set}" = set; then
2486   enableval="$enable_monolithic"
2487
2488                           if test "$enableval" = yes; then
2489                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2490                           else
2491                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2492                           fi
2493
2494 else
2495
2496                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2497                           if test "x$LINE" != x ; then
2498                             eval "DEFAULT_$LINE"
2499                           else
2500                             no_cache=1
2501                           fi
2502
2503                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2504
2505 fi;
2506
2507           eval "$ac_cv_use_monolithic"
2508           if test "$no_cache" != 1; then
2509             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2510           fi
2511
2512           if test "$wxUSE_MONOLITHIC" = yes; then
2513             echo "$as_me:$LINENO: result: yes" >&5
2514 echo "${ECHO_T}yes" >&6
2515           else
2516             echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6
2518           fi
2519
2520
2521           enablestring=
2522           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2523 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2524           no_cache=0
2525           # Check whether --enable-plugins or --disable-plugins was given.
2526 if test "${enable_plugins+set}" = set; then
2527   enableval="$enable_plugins"
2528
2529                           if test "$enableval" = yes; then
2530                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2531                           else
2532                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2533                           fi
2534
2535 else
2536
2537                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2538                           if test "x$LINE" != x ; then
2539                             eval "DEFAULT_$LINE"
2540                           else
2541                             no_cache=1
2542                           fi
2543
2544                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2545
2546 fi;
2547
2548           eval "$ac_cv_use_plugins"
2549           if test "$no_cache" != 1; then
2550             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2551           fi
2552
2553           if test "$wxUSE_PLUGINS" = yes; then
2554             echo "$as_me:$LINENO: result: yes" >&5
2555 echo "${ECHO_T}yes" >&6
2556           else
2557             echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6
2559           fi
2560
2561
2562 if test "$wxUSE_GUI" = "yes"; then
2563
2564
2565           enablestring=
2566           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2567 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2568           no_cache=0
2569           # Check whether --enable-universal or --disable-universal was given.
2570 if test "${enable_universal+set}" = set; then
2571   enableval="$enable_universal"
2572
2573                           if test "$enableval" = yes; then
2574                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2575                           else
2576                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2577                           fi
2578
2579 else
2580
2581                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2582                           if test "x$LINE" != x ; then
2583                             eval "DEFAULT_$LINE"
2584                           else
2585                             no_cache=1
2586                           fi
2587
2588                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2589
2590 fi;
2591
2592           eval "$ac_cv_use_universal"
2593           if test "$no_cache" != 1; then
2594             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2595           fi
2596
2597           if test "$wxUSE_UNIVERSAL" = yes; then
2598             echo "$as_me:$LINENO: result: yes" >&5
2599 echo "${ECHO_T}yes" >&6
2600           else
2601             echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6
2603           fi
2604
2605
2606 # Check whether --with-gtk or --without-gtk was given.
2607 if test "${with_gtk+set}" = set; then
2608   withval="$with_gtk"
2609   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2610 fi;
2611
2612 # Check whether --with-motif or --without-motif was given.
2613 if test "${with_motif+set}" = set; then
2614   withval="$with_motif"
2615   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2616 fi;
2617
2618 # Check whether --with-mac or --without-mac was given.
2619 if test "${with_mac+set}" = set; then
2620   withval="$with_mac"
2621   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2622 fi;
2623
2624 # Check whether --with-cocoa or --without-cocoa was given.
2625 if test "${with_cocoa+set}" = set; then
2626   withval="$with_cocoa"
2627   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2628 fi;
2629
2630 # Check whether --with-wine or --without-wine was given.
2631 if test "${with_wine+set}" = set; then
2632   withval="$with_wine"
2633   wxUSE_WINE="$withval" CACHE_WINE=1
2634 fi;
2635
2636 # Check whether --with-msw or --without-msw was given.
2637 if test "${with_msw+set}" = set; then
2638   withval="$with_msw"
2639   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2640 fi;
2641
2642 # Check whether --with-pm or --without-pm was given.
2643 if test "${with_pm+set}" = set; then
2644   withval="$with_pm"
2645   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2646 fi;
2647
2648 # Check whether --with-mgl or --without-mgl was given.
2649 if test "${with_mgl+set}" = set; then
2650   withval="$with_mgl"
2651   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2652 fi;
2653
2654 # Check whether --with-microwin or --without-microwin was given.
2655 if test "${with_microwin+set}" = set; then
2656   withval="$with_microwin"
2657   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2658 fi;
2659
2660 # Check whether --with-x11 or --without-x11 was given.
2661 if test "${with_x11+set}" = set; then
2662   withval="$with_x11"
2663   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2664 fi;
2665
2666           enablestring=
2667           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2668 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2669           no_cache=0
2670           # Check whether --enable-nanox or --disable-nanox was given.
2671 if test "${enable_nanox+set}" = set; then
2672   enableval="$enable_nanox"
2673
2674                           if test "$enableval" = yes; then
2675                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2676                           else
2677                             ac_cv_use_nanox='wxUSE_NANOX=no'
2678                           fi
2679
2680 else
2681
2682                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2683                           if test "x$LINE" != x ; then
2684                             eval "DEFAULT_$LINE"
2685                           else
2686                             no_cache=1
2687                           fi
2688
2689                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2690
2691 fi;
2692
2693           eval "$ac_cv_use_nanox"
2694           if test "$no_cache" != 1; then
2695             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2696           fi
2697
2698           if test "$wxUSE_NANOX" = yes; then
2699             echo "$as_me:$LINENO: result: yes" >&5
2700 echo "${ECHO_T}yes" >&6
2701           else
2702             echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2704           fi
2705
2706
2707
2708           enablestring=
2709           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2710 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2711           no_cache=0
2712           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2713 if test "${enable_gtk2+set}" = set; then
2714   enableval="$enable_gtk2"
2715
2716                           if test "$enableval" = yes; then
2717                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2718                           else
2719                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2720                           fi
2721
2722 else
2723
2724                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2725                           if test "x$LINE" != x ; then
2726                             eval "DEFAULT_$LINE"
2727                           else
2728                             no_cache=1
2729                           fi
2730
2731                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2732
2733 fi;
2734
2735           eval "$ac_cv_use_gtk2"
2736           if test "$no_cache" != 1; then
2737             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2738           fi
2739
2740           if test "$wxUSE_GTK2" = yes; then
2741             echo "$as_me:$LINENO: result: yes" >&5
2742 echo "${ECHO_T}yes" >&6
2743           else
2744             echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2746           fi
2747
2748
2749           enablestring=
2750           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2751 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2752           no_cache=0
2753           # Check whether --enable-gpe or --disable-gpe was given.
2754 if test "${enable_gpe+set}" = set; then
2755   enableval="$enable_gpe"
2756
2757                           if test "$enableval" = yes; then
2758                             ac_cv_use_gpe='wxUSE_GPE=yes'
2759                           else
2760                             ac_cv_use_gpe='wxUSE_GPE=no'
2761                           fi
2762
2763 else
2764
2765                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2766                           if test "x$LINE" != x ; then
2767                             eval "DEFAULT_$LINE"
2768                           else
2769                             no_cache=1
2770                           fi
2771
2772                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2773
2774 fi;
2775
2776           eval "$ac_cv_use_gpe"
2777           if test "$no_cache" != 1; then
2778             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2779           fi
2780
2781           if test "$wxUSE_GPE" = yes; then
2782             echo "$as_me:$LINENO: result: yes" >&5
2783 echo "${ECHO_T}yes" >&6
2784           else
2785             echo "$as_me:$LINENO: result: no" >&5
2786 echo "${ECHO_T}no" >&6
2787           fi
2788
2789
2790
2791           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2792 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2793           no_cache=0
2794
2795 # Check whether --with-libpng or --without-libpng was given.
2796 if test "${with_libpng+set}" = set; then
2797   withval="$with_libpng"
2798
2799                         if test "$withval" = yes; then
2800                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2801                         elif test "$withval" = no; then
2802                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2803                         elif test "$withval" = sys; then
2804                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2805                         elif test "$withval" = builtin; then
2806                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2807                         else
2808                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2809 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2810    { (exit 1); exit 1; }; }
2811                         fi
2812
2813 else
2814
2815                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2816                         if test "x$LINE" != x ; then
2817                           eval "DEFAULT_$LINE"
2818                         else
2819                           no_cache=1
2820                         fi
2821
2822                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2823
2824 fi;
2825
2826           eval "$ac_cv_use_libpng"
2827           if test "$no_cache" != 1; then
2828             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2829           fi
2830
2831           if test "$wxUSE_LIBPNG" = yes; then
2832             echo "$as_me:$LINENO: result: yes" >&5
2833 echo "${ECHO_T}yes" >&6
2834           elif test "$wxUSE_LIBPNG" = no; then
2835             echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2837           elif test "$wxUSE_LIBPNG" = sys; then
2838             echo "$as_me:$LINENO: result: system version" >&5
2839 echo "${ECHO_T}system version" >&6
2840           elif test "$wxUSE_LIBPNG" = builtin; then
2841             echo "$as_me:$LINENO: result: builtin version" >&5
2842 echo "${ECHO_T}builtin version" >&6
2843           else
2844             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2845 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2846    { (exit 1); exit 1; }; }
2847           fi
2848
2849
2850           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2851 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2852           no_cache=0
2853
2854 # Check whether --with-libjpeg or --without-libjpeg was given.
2855 if test "${with_libjpeg+set}" = set; then
2856   withval="$with_libjpeg"
2857
2858                         if test "$withval" = yes; then
2859                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2860                         elif test "$withval" = no; then
2861                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2862                         elif test "$withval" = sys; then
2863                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2864                         elif test "$withval" = builtin; then
2865                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2866                         else
2867                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2868 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2869    { (exit 1); exit 1; }; }
2870                         fi
2871
2872 else
2873
2874                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2875                         if test "x$LINE" != x ; then
2876                           eval "DEFAULT_$LINE"
2877                         else
2878                           no_cache=1
2879                         fi
2880
2881                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2882
2883 fi;
2884
2885           eval "$ac_cv_use_libjpeg"
2886           if test "$no_cache" != 1; then
2887             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2888           fi
2889
2890           if test "$wxUSE_LIBJPEG" = yes; then
2891             echo "$as_me:$LINENO: result: yes" >&5
2892 echo "${ECHO_T}yes" >&6
2893           elif test "$wxUSE_LIBJPEG" = no; then
2894             echo "$as_me:$LINENO: result: no" >&5
2895 echo "${ECHO_T}no" >&6
2896           elif test "$wxUSE_LIBJPEG" = sys; then
2897             echo "$as_me:$LINENO: result: system version" >&5
2898 echo "${ECHO_T}system version" >&6
2899           elif test "$wxUSE_LIBJPEG" = builtin; then
2900             echo "$as_me:$LINENO: result: builtin version" >&5
2901 echo "${ECHO_T}builtin version" >&6
2902           else
2903             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2904 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2905    { (exit 1); exit 1; }; }
2906           fi
2907
2908
2909           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2910 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2911           no_cache=0
2912
2913 # Check whether --with-libtiff or --without-libtiff was given.
2914 if test "${with_libtiff+set}" = set; then
2915   withval="$with_libtiff"
2916
2917                         if test "$withval" = yes; then
2918                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2919                         elif test "$withval" = no; then
2920                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2921                         elif test "$withval" = sys; then
2922                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2923                         elif test "$withval" = builtin; then
2924                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2925                         else
2926                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2927 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2928    { (exit 1); exit 1; }; }
2929                         fi
2930
2931 else
2932
2933                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2934                         if test "x$LINE" != x ; then
2935                           eval "DEFAULT_$LINE"
2936                         else
2937                           no_cache=1
2938                         fi
2939
2940                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2941
2942 fi;
2943
2944           eval "$ac_cv_use_libtiff"
2945           if test "$no_cache" != 1; then
2946             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2947           fi
2948
2949           if test "$wxUSE_LIBTIFF" = yes; then
2950             echo "$as_me:$LINENO: result: yes" >&5
2951 echo "${ECHO_T}yes" >&6
2952           elif test "$wxUSE_LIBTIFF" = no; then
2953             echo "$as_me:$LINENO: result: no" >&5
2954 echo "${ECHO_T}no" >&6
2955           elif test "$wxUSE_LIBTIFF" = sys; then
2956             echo "$as_me:$LINENO: result: system version" >&5
2957 echo "${ECHO_T}system version" >&6
2958           elif test "$wxUSE_LIBTIFF" = builtin; then
2959             echo "$as_me:$LINENO: result: builtin version" >&5
2960 echo "${ECHO_T}builtin version" >&6
2961           else
2962             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2963 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2964    { (exit 1); exit 1; }; }
2965           fi
2966
2967
2968           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2969 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2970           no_cache=0
2971
2972 # Check whether --with-libxpm or --without-libxpm was given.
2973 if test "${with_libxpm+set}" = set; then
2974   withval="$with_libxpm"
2975
2976                         if test "$withval" = yes; then
2977                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2978                         elif test "$withval" = no; then
2979                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2980                         elif test "$withval" = sys; then
2981                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2982                         elif test "$withval" = builtin; then
2983                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2984                         else
2985                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2986 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2987    { (exit 1); exit 1; }; }
2988                         fi
2989
2990 else
2991
2992                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2993                         if test "x$LINE" != x ; then
2994                           eval "DEFAULT_$LINE"
2995                         else
2996                           no_cache=1
2997                         fi
2998
2999                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3000
3001 fi;
3002
3003           eval "$ac_cv_use_libxpm"
3004           if test "$no_cache" != 1; then
3005             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3006           fi
3007
3008           if test "$wxUSE_LIBXPM" = yes; then
3009             echo "$as_me:$LINENO: result: yes" >&5
3010 echo "${ECHO_T}yes" >&6
3011           elif test "$wxUSE_LIBXPM" = no; then
3012             echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3014           elif test "$wxUSE_LIBXPM" = sys; then
3015             echo "$as_me:$LINENO: result: system version" >&5
3016 echo "${ECHO_T}system version" >&6
3017           elif test "$wxUSE_LIBXPM" = builtin; then
3018             echo "$as_me:$LINENO: result: builtin version" >&5
3019 echo "${ECHO_T}builtin version" >&6
3020           else
3021             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3022 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3023    { (exit 1); exit 1; }; }
3024           fi
3025
3026
3027           echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3028 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3029           no_cache=0
3030
3031 # Check whether --with-libmspack or --without-libmspack was given.
3032 if test "${with_libmspack+set}" = set; then
3033   withval="$with_libmspack"
3034
3035                         if test "$withval" = yes; then
3036                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3037                         else
3038                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3039                         fi
3040
3041 else
3042
3043                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3044                         if test "x$LINE" != x ; then
3045                           eval "DEFAULT_$LINE"
3046                         else
3047                           no_cache=1
3048                         fi
3049
3050                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3051
3052 fi;
3053
3054           eval "$ac_cv_use_libmspack"
3055           if test "$no_cache" != 1; then
3056             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3057           fi
3058
3059           if test "$wxUSE_LIBMSPACK" = yes; then
3060             echo "$as_me:$LINENO: result: yes" >&5
3061 echo "${ECHO_T}yes" >&6
3062           else
3063             echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3065           fi
3066
3067
3068           echo "$as_me:$LINENO: checking for --with-sdl" >&5
3069 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3070           no_cache=0
3071
3072 # Check whether --with-sdl or --without-sdl was given.
3073 if test "${with_sdl+set}" = set; then
3074   withval="$with_sdl"
3075
3076                         if test "$withval" = yes; then
3077                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3078                         else
3079                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3080                         fi
3081
3082 else
3083
3084                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3085                         if test "x$LINE" != x ; then
3086                           eval "DEFAULT_$LINE"
3087                         else
3088                           no_cache=1
3089                         fi
3090
3091                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3092
3093 fi;
3094
3095           eval "$ac_cv_use_sdl"
3096           if test "$no_cache" != 1; then
3097             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3098           fi
3099
3100           if test "$wxUSE_LIBSDL" = yes; then
3101             echo "$as_me:$LINENO: result: yes" >&5
3102 echo "${ECHO_T}yes" >&6
3103           else
3104             echo "$as_me:$LINENO: result: no" >&5
3105 echo "${ECHO_T}no" >&6
3106           fi
3107
3108
3109           echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3110 echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3111           no_cache=0
3112
3113 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3114 if test "${with_gnomeprint+set}" = set; then
3115   withval="$with_gnomeprint"
3116
3117                         if test "$withval" = yes; then
3118                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3119                         else
3120                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3121                         fi
3122
3123 else
3124
3125                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3126                         if test "x$LINE" != x ; then
3127                           eval "DEFAULT_$LINE"
3128                         else
3129                           no_cache=1
3130                         fi
3131
3132                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3133
3134 fi;
3135
3136           eval "$ac_cv_use_gnomeprint"
3137           if test "$no_cache" != 1; then
3138             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3139           fi
3140
3141           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3142             echo "$as_me:$LINENO: result: yes" >&5
3143 echo "${ECHO_T}yes" >&6
3144           else
3145             echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3147           fi
3148
3149
3150           echo "$as_me:$LINENO: checking for --with-opengl" >&5
3151 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3152           no_cache=0
3153
3154 # Check whether --with-opengl or --without-opengl was given.
3155 if test "${with_opengl+set}" = set; then
3156   withval="$with_opengl"
3157
3158                         if test "$withval" = yes; then
3159                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3160                         else
3161                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3162                         fi
3163
3164 else
3165
3166                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3167                         if test "x$LINE" != x ; then
3168                           eval "DEFAULT_$LINE"
3169                         else
3170                           no_cache=1
3171                         fi
3172
3173                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3174
3175 fi;
3176
3177           eval "$ac_cv_use_opengl"
3178           if test "$no_cache" != 1; then
3179             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3180           fi
3181
3182           if test "$wxUSE_OPENGL" = yes; then
3183             echo "$as_me:$LINENO: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3185           else
3186             echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3188           fi
3189
3190
3191 fi
3192
3193
3194           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3195 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3196           no_cache=0
3197
3198 # Check whether --with-dmalloc or --without-dmalloc was given.
3199 if test "${with_dmalloc+set}" = set; then
3200   withval="$with_dmalloc"
3201
3202                         if test "$withval" = yes; then
3203                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3204                         else
3205                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3206                         fi
3207
3208 else
3209
3210                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3211                         if test "x$LINE" != x ; then
3212                           eval "DEFAULT_$LINE"
3213                         else
3214                           no_cache=1
3215                         fi
3216
3217                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3218
3219 fi;
3220
3221           eval "$ac_cv_use_dmalloc"
3222           if test "$no_cache" != 1; then
3223             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3224           fi
3225
3226           if test "$wxUSE_DMALLOC" = yes; then
3227             echo "$as_me:$LINENO: result: yes" >&5
3228 echo "${ECHO_T}yes" >&6
3229           else
3230             echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3232           fi
3233
3234
3235           echo "$as_me:$LINENO: checking for --with-regex" >&5
3236 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3237           no_cache=0
3238
3239 # Check whether --with-regex or --without-regex was given.
3240 if test "${with_regex+set}" = set; then
3241   withval="$with_regex"
3242
3243                         if test "$withval" = yes; then
3244                           ac_cv_use_regex='wxUSE_REGEX=yes'
3245                         elif test "$withval" = no; then
3246                           ac_cv_use_regex='wxUSE_REGEX=no'
3247                         elif test "$withval" = sys; then
3248                           ac_cv_use_regex='wxUSE_REGEX=sys'
3249                         elif test "$withval" = builtin; then
3250                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3251                         else
3252                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3253 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3254    { (exit 1); exit 1; }; }
3255                         fi
3256
3257 else
3258
3259                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3260                         if test "x$LINE" != x ; then
3261                           eval "DEFAULT_$LINE"
3262                         else
3263                           no_cache=1
3264                         fi
3265
3266                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3267
3268 fi;
3269
3270           eval "$ac_cv_use_regex"
3271           if test "$no_cache" != 1; then
3272             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3273           fi
3274
3275           if test "$wxUSE_REGEX" = yes; then
3276             echo "$as_me:$LINENO: result: yes" >&5
3277 echo "${ECHO_T}yes" >&6
3278           elif test "$wxUSE_REGEX" = no; then
3279             echo "$as_me:$LINENO: result: no" >&5
3280 echo "${ECHO_T}no" >&6
3281           elif test "$wxUSE_REGEX" = sys; then
3282             echo "$as_me:$LINENO: result: system version" >&5
3283 echo "${ECHO_T}system version" >&6
3284           elif test "$wxUSE_REGEX" = builtin; then
3285             echo "$as_me:$LINENO: result: builtin version" >&5
3286 echo "${ECHO_T}builtin version" >&6
3287           else
3288             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3289 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3290    { (exit 1); exit 1; }; }
3291           fi
3292
3293
3294           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3295 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3296           no_cache=0
3297
3298 # Check whether --with-zlib or --without-zlib was given.
3299 if test "${with_zlib+set}" = set; then
3300   withval="$with_zlib"
3301
3302                         if test "$withval" = yes; then
3303                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3304                         elif test "$withval" = no; then
3305                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3306                         elif test "$withval" = sys; then
3307                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3308                         elif test "$withval" = builtin; then
3309                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3310                         else
3311                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3312 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3313    { (exit 1); exit 1; }; }
3314                         fi
3315
3316 else
3317
3318                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3319                         if test "x$LINE" != x ; then
3320                           eval "DEFAULT_$LINE"
3321                         else
3322                           no_cache=1
3323                         fi
3324
3325                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3326
3327 fi;
3328
3329           eval "$ac_cv_use_zlib"
3330           if test "$no_cache" != 1; then
3331             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3332           fi
3333
3334           if test "$wxUSE_ZLIB" = yes; then
3335             echo "$as_me:$LINENO: result: yes" >&5
3336 echo "${ECHO_T}yes" >&6
3337           elif test "$wxUSE_ZLIB" = no; then
3338             echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6
3340           elif test "$wxUSE_ZLIB" = sys; then
3341             echo "$as_me:$LINENO: result: system version" >&5
3342 echo "${ECHO_T}system version" >&6
3343           elif test "$wxUSE_ZLIB" = builtin; then
3344             echo "$as_me:$LINENO: result: builtin version" >&5
3345 echo "${ECHO_T}builtin version" >&6
3346           else
3347             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3348 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3349    { (exit 1); exit 1; }; }
3350           fi
3351
3352
3353           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3354 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3355           no_cache=0
3356
3357 # Check whether --with-odbc or --without-odbc was given.
3358 if test "${with_odbc+set}" = set; then
3359   withval="$with_odbc"
3360
3361                         if test "$withval" = yes; then
3362                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3363                         elif test "$withval" = no; then
3364                           ac_cv_use_odbc='wxUSE_ODBC=no'
3365                         elif test "$withval" = sys; then
3366                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3367                         elif test "$withval" = builtin; then
3368                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3369                         else
3370                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3371 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3372    { (exit 1); exit 1; }; }
3373                         fi
3374
3375 else
3376
3377                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3378                         if test "x$LINE" != x ; then
3379                           eval "DEFAULT_$LINE"
3380                         else
3381                           no_cache=1
3382                         fi
3383
3384                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3385
3386 fi;
3387
3388           eval "$ac_cv_use_odbc"
3389           if test "$no_cache" != 1; then
3390             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3391           fi
3392
3393           if test "$wxUSE_ODBC" = yes; then
3394             echo "$as_me:$LINENO: result: yes" >&5
3395 echo "${ECHO_T}yes" >&6
3396           elif test "$wxUSE_ODBC" = no; then
3397             echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3399           elif test "$wxUSE_ODBC" = sys; then
3400             echo "$as_me:$LINENO: result: system version" >&5
3401 echo "${ECHO_T}system version" >&6
3402           elif test "$wxUSE_ODBC" = builtin; then
3403             echo "$as_me:$LINENO: result: builtin version" >&5
3404 echo "${ECHO_T}builtin version" >&6
3405           else
3406             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3407 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3408    { (exit 1); exit 1; }; }
3409           fi
3410
3411
3412           echo "$as_me:$LINENO: checking for --with-expat" >&5
3413 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3414           no_cache=0
3415
3416 # Check whether --with-expat or --without-expat was given.
3417 if test "${with_expat+set}" = set; then
3418   withval="$with_expat"
3419
3420                         if test "$withval" = yes; then
3421                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3422                         elif test "$withval" = no; then
3423                           ac_cv_use_expat='wxUSE_EXPAT=no'
3424                         elif test "$withval" = sys; then
3425                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3426                         elif test "$withval" = builtin; then
3427                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3428                         else
3429                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3430 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3431    { (exit 1); exit 1; }; }
3432                         fi
3433
3434 else
3435
3436                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3437                         if test "x$LINE" != x ; then
3438                           eval "DEFAULT_$LINE"
3439                         else
3440                           no_cache=1
3441                         fi
3442
3443                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3444
3445 fi;
3446
3447           eval "$ac_cv_use_expat"
3448           if test "$no_cache" != 1; then
3449             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3450           fi
3451
3452           if test "$wxUSE_EXPAT" = yes; then
3453             echo "$as_me:$LINENO: result: yes" >&5
3454 echo "${ECHO_T}yes" >&6
3455           elif test "$wxUSE_EXPAT" = no; then
3456             echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3458           elif test "$wxUSE_EXPAT" = sys; then
3459             echo "$as_me:$LINENO: result: system version" >&5
3460 echo "${ECHO_T}system version" >&6
3461           elif test "$wxUSE_EXPAT" = builtin; then
3462             echo "$as_me:$LINENO: result: builtin version" >&5
3463 echo "${ECHO_T}builtin version" >&6
3464           else
3465             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3466 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3467    { (exit 1); exit 1; }; }
3468           fi
3469
3470
3471
3472
3473           enablestring=
3474           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3475 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3476           no_cache=0
3477           # Check whether --enable-shared or --disable-shared was given.
3478 if test "${enable_shared+set}" = set; then
3479   enableval="$enable_shared"
3480
3481                           if test "$enableval" = yes; then
3482                             ac_cv_use_shared='wxUSE_SHARED=yes'
3483                           else
3484                             ac_cv_use_shared='wxUSE_SHARED=no'
3485                           fi
3486
3487 else
3488
3489                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3490                           if test "x$LINE" != x ; then
3491                             eval "DEFAULT_$LINE"
3492                           else
3493                             no_cache=1
3494                           fi
3495
3496                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3497
3498 fi;
3499
3500           eval "$ac_cv_use_shared"
3501           if test "$no_cache" != 1; then
3502             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3503           fi
3504
3505           if test "$wxUSE_SHARED" = yes; then
3506             echo "$as_me:$LINENO: result: yes" >&5
3507 echo "${ECHO_T}yes" >&6
3508           else
3509             echo "$as_me:$LINENO: result: no" >&5
3510 echo "${ECHO_T}no" >&6
3511           fi
3512
3513
3514           enablestring=
3515           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3516 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3517           no_cache=0
3518           # Check whether --enable-optimise or --disable-optimise was given.
3519 if test "${enable_optimise+set}" = set; then
3520   enableval="$enable_optimise"
3521
3522                           if test "$enableval" = yes; then
3523                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3524                           else
3525                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3526                           fi
3527
3528 else
3529
3530                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3531                           if test "x$LINE" != x ; then
3532                             eval "DEFAULT_$LINE"
3533                           else
3534                             no_cache=1
3535                           fi
3536
3537                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3538
3539 fi;
3540
3541           eval "$ac_cv_use_optimise"
3542           if test "$no_cache" != 1; then
3543             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3544           fi
3545
3546           if test "$wxUSE_OPTIMISE" = yes; then
3547             echo "$as_me:$LINENO: result: yes" >&5
3548 echo "${ECHO_T}yes" >&6
3549           else
3550             echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3552           fi
3553
3554
3555           enablestring=
3556           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3557 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3558           no_cache=0
3559           # Check whether --enable-debug or --disable-debug was given.
3560 if test "${enable_debug+set}" = set; then
3561   enableval="$enable_debug"
3562
3563                           if test "$enableval" = yes; then
3564                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3565                           else
3566                             ac_cv_use_debug='wxUSE_DEBUG=no'
3567                           fi
3568
3569 else
3570
3571                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3572                           if test "x$LINE" != x ; then
3573                             eval "DEFAULT_$LINE"
3574                           else
3575                             no_cache=1
3576                           fi
3577
3578                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3579
3580 fi;
3581
3582           eval "$ac_cv_use_debug"
3583           if test "$no_cache" != 1; then
3584             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3585           fi
3586
3587           if test "$wxUSE_DEBUG" = yes; then
3588             echo "$as_me:$LINENO: result: yes" >&5
3589 echo "${ECHO_T}yes" >&6
3590           else
3591             echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6
3593           fi
3594
3595
3596           enablestring=
3597           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3598 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3599           no_cache=0
3600           # Check whether --enable-stl or --disable-stl was given.
3601 if test "${enable_stl+set}" = set; then
3602   enableval="$enable_stl"
3603
3604                           if test "$enableval" = yes; then
3605                             ac_cv_use_stl='wxUSE_STL=yes'
3606                           else
3607                             ac_cv_use_stl='wxUSE_STL=no'
3608                           fi
3609
3610 else
3611
3612                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3613                           if test "x$LINE" != x ; then
3614                             eval "DEFAULT_$LINE"
3615                           else
3616                             no_cache=1
3617                           fi
3618
3619                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3620
3621 fi;
3622
3623           eval "$ac_cv_use_stl"
3624           if test "$no_cache" != 1; then
3625             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3626           fi
3627
3628           if test "$wxUSE_STL" = yes; then
3629             echo "$as_me:$LINENO: result: yes" >&5
3630 echo "${ECHO_T}yes" >&6
3631           else
3632             echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3634           fi
3635
3636 if test "$USE_OS2" = "1"; then
3637     DEFAULT_wxUSE_OMF=no
3638
3639           enablestring=
3640           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3641 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3642           no_cache=0
3643           # Check whether --enable-omf or --disable-omf was given.
3644 if test "${enable_omf+set}" = set; then
3645   enableval="$enable_omf"
3646
3647                           if test "$enableval" = yes; then
3648                             ac_cv_use_omf='wxUSE_OMF=yes'
3649                           else
3650                             ac_cv_use_omf='wxUSE_OMF=no'
3651                           fi
3652
3653 else
3654
3655                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3656                           if test "x$LINE" != x ; then
3657                             eval "DEFAULT_$LINE"
3658                           else
3659                             no_cache=1
3660                           fi
3661
3662                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3663
3664 fi;
3665
3666           eval "$ac_cv_use_omf"
3667           if test "$no_cache" != 1; then
3668             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3669           fi
3670
3671           if test "$wxUSE_OMF" = yes; then
3672             echo "$as_me:$LINENO: result: yes" >&5
3673 echo "${ECHO_T}yes" >&6
3674           else
3675             echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3677           fi
3678
3679 fi
3680
3681 if test "$wxUSE_DEBUG" = "yes"; then
3682   DEFAULT_wxUSE_DEBUG_FLAG=yes
3683   DEFAULT_wxUSE_DEBUG_INFO=yes
3684   BUILD=debug
3685 elif test "$wxUSE_DEBUG" = "no"; then
3686   DEFAULT_wxUSE_DEBUG_FLAG=no
3687   DEFAULT_wxUSE_DEBUG_INFO=no
3688   BUILD=release
3689 fi
3690
3691
3692           enablestring=
3693           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3694 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3695           no_cache=0
3696           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3697 if test "${enable_debug_flag+set}" = set; then
3698   enableval="$enable_debug_flag"
3699
3700                           if test "$enableval" = yes; then
3701                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3702                           else
3703                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3704                           fi
3705
3706 else
3707
3708                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3709                           if test "x$LINE" != x ; then
3710                             eval "DEFAULT_$LINE"
3711                           else
3712                             no_cache=1
3713                           fi
3714
3715                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3716
3717 fi;
3718
3719           eval "$ac_cv_use_debug_flag"
3720           if test "$no_cache" != 1; then
3721             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3722           fi
3723
3724           if test "$wxUSE_DEBUG_FLAG" = yes; then
3725             echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6
3727           else
3728             echo "$as_me:$LINENO: result: no" >&5
3729 echo "${ECHO_T}no" >&6
3730           fi
3731
3732
3733           enablestring=
3734           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3735 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3736           no_cache=0
3737           # Check whether --enable-debug_info or --disable-debug_info was given.
3738 if test "${enable_debug_info+set}" = set; then
3739   enableval="$enable_debug_info"
3740
3741                           if test "$enableval" = yes; then
3742                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3743                           else
3744                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3745                           fi
3746
3747 else
3748
3749                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3750                           if test "x$LINE" != x ; then
3751                             eval "DEFAULT_$LINE"
3752                           else
3753                             no_cache=1
3754                           fi
3755
3756                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3757
3758 fi;
3759
3760           eval "$ac_cv_use_debug_info"
3761           if test "$no_cache" != 1; then
3762             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3763           fi
3764
3765           if test "$wxUSE_DEBUG_INFO" = yes; then
3766             echo "$as_me:$LINENO: result: yes" >&5
3767 echo "${ECHO_T}yes" >&6
3768           else
3769             echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3771           fi
3772
3773
3774           enablestring=
3775           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3776 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3777           no_cache=0
3778           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3779 if test "${enable_debug_gdb+set}" = set; then
3780   enableval="$enable_debug_gdb"
3781
3782                           if test "$enableval" = yes; then
3783                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3784                           else
3785                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3786                           fi
3787
3788 else
3789
3790                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3791                           if test "x$LINE" != x ; then
3792                             eval "DEFAULT_$LINE"
3793                           else
3794                             no_cache=1
3795                           fi
3796
3797                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3798
3799 fi;
3800
3801           eval "$ac_cv_use_debug_gdb"
3802           if test "$no_cache" != 1; then
3803             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3804           fi
3805
3806           if test "$wxUSE_DEBUG_GDB" = yes; then
3807             echo "$as_me:$LINENO: result: yes" >&5
3808 echo "${ECHO_T}yes" >&6
3809           else
3810             echo "$as_me:$LINENO: result: no" >&5
3811 echo "${ECHO_T}no" >&6
3812           fi
3813
3814
3815           enablestring=
3816           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3817 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3818           no_cache=0
3819           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3820 if test "${enable_debug_cntxt+set}" = set; then
3821   enableval="$enable_debug_cntxt"
3822
3823                           if test "$enableval" = yes; then
3824                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3825                           else
3826                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3827                           fi
3828
3829 else
3830
3831                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3832                           if test "x$LINE" != x ; then
3833                             eval "DEFAULT_$LINE"
3834                           else
3835                             no_cache=1
3836                           fi
3837
3838                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3839
3840 fi;
3841
3842           eval "$ac_cv_use_debug_cntxt"
3843           if test "$no_cache" != 1; then
3844             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3845           fi
3846
3847           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3848             echo "$as_me:$LINENO: result: yes" >&5
3849 echo "${ECHO_T}yes" >&6
3850           else
3851             echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6
3853           fi
3854
3855
3856           enablestring=
3857           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3858 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3859           no_cache=0
3860           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3861 if test "${enable_mem_tracing+set}" = set; then
3862   enableval="$enable_mem_tracing"
3863
3864                           if test "$enableval" = yes; then
3865                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3866                           else
3867                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3868                           fi
3869
3870 else
3871
3872                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3873                           if test "x$LINE" != x ; then
3874                             eval "DEFAULT_$LINE"
3875                           else
3876                             no_cache=1
3877                           fi
3878
3879                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3880
3881 fi;
3882
3883           eval "$ac_cv_use_mem_tracing"
3884           if test "$no_cache" != 1; then
3885             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3886           fi
3887
3888           if test "$wxUSE_MEM_TRACING" = yes; then
3889             echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6
3891           else
3892             echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3894           fi
3895
3896
3897           enablestring=
3898           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3899 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3900           no_cache=0
3901           # Check whether --enable-profile or --disable-profile was given.
3902 if test "${enable_profile+set}" = set; then
3903   enableval="$enable_profile"
3904
3905                           if test "$enableval" = yes; then
3906                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3907                           else
3908                             ac_cv_use_profile='wxUSE_PROFILE=no'
3909                           fi
3910
3911 else
3912
3913                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3914                           if test "x$LINE" != x ; then
3915                             eval "DEFAULT_$LINE"
3916                           else
3917                             no_cache=1
3918                           fi
3919
3920                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3921
3922 fi;
3923
3924           eval "$ac_cv_use_profile"
3925           if test "$no_cache" != 1; then
3926             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3927           fi
3928
3929           if test "$wxUSE_PROFILE" = yes; then
3930             echo "$as_me:$LINENO: result: yes" >&5
3931 echo "${ECHO_T}yes" >&6
3932           else
3933             echo "$as_me:$LINENO: result: no" >&5
3934 echo "${ECHO_T}no" >&6
3935           fi
3936
3937
3938           enablestring=
3939           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3940 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3941           no_cache=0
3942           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3943 if test "${enable_no_rtti+set}" = set; then
3944   enableval="$enable_no_rtti"
3945
3946                           if test "$enableval" = yes; then
3947                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3948                           else
3949                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3950                           fi
3951
3952 else
3953
3954                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3955                           if test "x$LINE" != x ; then
3956                             eval "DEFAULT_$LINE"
3957                           else
3958                             no_cache=1
3959                           fi
3960
3961                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3962
3963 fi;
3964
3965           eval "$ac_cv_use_no_rtti"
3966           if test "$no_cache" != 1; then
3967             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3968           fi
3969
3970           if test "$wxUSE_NO_RTTI" = yes; then
3971             echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6
3973           else
3974             echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3976           fi
3977
3978
3979           enablestring=
3980           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3981 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3982           no_cache=0
3983           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3984 if test "${enable_no_exceptions+set}" = set; then
3985   enableval="$enable_no_exceptions"
3986
3987                           if test "$enableval" = yes; then
3988                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3989                           else
3990                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3991                           fi
3992
3993 else
3994
3995                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3996                           if test "x$LINE" != x ; then
3997                             eval "DEFAULT_$LINE"
3998                           else
3999                             no_cache=1
4000                           fi
4001
4002                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4003
4004 fi;
4005
4006           eval "$ac_cv_use_no_exceptions"
4007           if test "$no_cache" != 1; then
4008             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4009           fi
4010
4011           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4012             echo "$as_me:$LINENO: result: yes" >&5
4013 echo "${ECHO_T}yes" >&6
4014           else
4015             echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4017           fi
4018
4019
4020           enablestring=
4021           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4022 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4023           no_cache=0
4024           # Check whether --enable-permissive or --disable-permissive was given.
4025 if test "${enable_permissive+set}" = set; then
4026   enableval="$enable_permissive"
4027
4028                           if test "$enableval" = yes; then
4029                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4030                           else
4031                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4032                           fi
4033
4034 else
4035
4036                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4037                           if test "x$LINE" != x ; then
4038                             eval "DEFAULT_$LINE"
4039                           else
4040                             no_cache=1
4041                           fi
4042
4043                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4044
4045 fi;
4046
4047           eval "$ac_cv_use_permissive"
4048           if test "$no_cache" != 1; then
4049             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4050           fi
4051
4052           if test "$wxUSE_PERMISSIVE" = yes; then
4053             echo "$as_me:$LINENO: result: yes" >&5
4054 echo "${ECHO_T}yes" >&6
4055           else
4056             echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058           fi
4059
4060
4061           enablestring=
4062           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4063 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4064           no_cache=0
4065           # Check whether --enable-no_deps or --disable-no_deps was given.
4066 if test "${enable_no_deps+set}" = set; then
4067   enableval="$enable_no_deps"
4068
4069                           if test "$enableval" = yes; then
4070                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4071                           else
4072                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4073                           fi
4074
4075 else
4076
4077                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4078                           if test "x$LINE" != x ; then
4079                             eval "DEFAULT_$LINE"
4080                           else
4081                             no_cache=1
4082                           fi
4083
4084                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4085
4086 fi;
4087
4088           eval "$ac_cv_use_no_deps"
4089           if test "$no_cache" != 1; then
4090             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4091           fi
4092
4093           if test "$wxUSE_NO_DEPS" = yes; then
4094             echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4096           else
4097             echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4099           fi
4100
4101
4102
4103           enablestring=
4104           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4105 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4106           no_cache=0
4107           # Check whether --enable-compat22 or --disable-compat22 was given.
4108 if test "${enable_compat22+set}" = set; then
4109   enableval="$enable_compat22"
4110
4111                           if test "$enableval" = yes; then
4112                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4113                           else
4114                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4115                           fi
4116
4117 else
4118
4119                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4120                           if test "x$LINE" != x ; then
4121                             eval "DEFAULT_$LINE"
4122                           else
4123                             no_cache=1
4124                           fi
4125
4126                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4127
4128 fi;
4129
4130           eval "$ac_cv_use_compat22"
4131           if test "$no_cache" != 1; then
4132             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4133           fi
4134
4135           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4136             echo "$as_me:$LINENO: result: yes" >&5
4137 echo "${ECHO_T}yes" >&6
4138           else
4139             echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4141           fi
4142
4143
4144           enablestring=disable
4145           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4146 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4147           no_cache=0
4148           # Check whether --enable-compat24 or --disable-compat24 was given.
4149 if test "${enable_compat24+set}" = set; then
4150   enableval="$enable_compat24"
4151
4152                           if test "$enableval" = yes; then
4153                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4154                           else
4155                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4156                           fi
4157
4158 else
4159
4160                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4161                           if test "x$LINE" != x ; then
4162                             eval "DEFAULT_$LINE"
4163                           else
4164                             no_cache=1
4165                           fi
4166
4167                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4168
4169 fi;
4170
4171           eval "$ac_cv_use_compat24"
4172           if test "$no_cache" != 1; then
4173             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4174           fi
4175
4176           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4177             echo "$as_me:$LINENO: result: yes" >&5
4178 echo "${ECHO_T}yes" >&6
4179           else
4180             echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4182           fi
4183
4184
4185
4186           enablestring=
4187           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4188 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4189           no_cache=0
4190           # Check whether --enable-rpath or --disable-rpath was given.
4191 if test "${enable_rpath+set}" = set; then
4192   enableval="$enable_rpath"
4193
4194                           if test "$enableval" = yes; then
4195                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4196                           else
4197                             ac_cv_use_rpath='wxUSE_RPATH=no'
4198                           fi
4199
4200 else
4201
4202                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4203                           if test "x$LINE" != x ; then
4204                             eval "DEFAULT_$LINE"
4205                           else
4206                             no_cache=1
4207                           fi
4208
4209                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4210
4211 fi;
4212
4213           eval "$ac_cv_use_rpath"
4214           if test "$no_cache" != 1; then
4215             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4216           fi
4217
4218           if test "$wxUSE_RPATH" = yes; then
4219             echo "$as_me:$LINENO: result: yes" >&5
4220 echo "${ECHO_T}yes" >&6
4221           else
4222             echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6
4224           fi
4225
4226
4227
4228
4229
4230           enablestring=
4231           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4232 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4233           no_cache=0
4234           # Check whether --enable-intl or --disable-intl was given.
4235 if test "${enable_intl+set}" = set; then
4236   enableval="$enable_intl"
4237
4238                           if test "$enableval" = yes; then
4239                             ac_cv_use_intl='wxUSE_INTL=yes'
4240                           else
4241                             ac_cv_use_intl='wxUSE_INTL=no'
4242                           fi
4243
4244 else
4245
4246                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4247                           if test "x$LINE" != x ; then
4248                             eval "DEFAULT_$LINE"
4249                           else
4250                             no_cache=1
4251                           fi
4252
4253                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4254
4255 fi;
4256
4257           eval "$ac_cv_use_intl"
4258           if test "$no_cache" != 1; then
4259             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4260           fi
4261
4262           if test "$wxUSE_INTL" = yes; then
4263             echo "$as_me:$LINENO: result: yes" >&5
4264 echo "${ECHO_T}yes" >&6
4265           else
4266             echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4268           fi
4269
4270
4271           enablestring=
4272           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4273 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4274           no_cache=0
4275           # Check whether --enable-config or --disable-config was given.
4276 if test "${enable_config+set}" = set; then
4277   enableval="$enable_config"
4278
4279                           if test "$enableval" = yes; then
4280                             ac_cv_use_config='wxUSE_CONFIG=yes'
4281                           else
4282                             ac_cv_use_config='wxUSE_CONFIG=no'
4283                           fi
4284
4285 else
4286
4287                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4288                           if test "x$LINE" != x ; then
4289                             eval "DEFAULT_$LINE"
4290                           else
4291                             no_cache=1
4292                           fi
4293
4294                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4295
4296 fi;
4297
4298           eval "$ac_cv_use_config"
4299           if test "$no_cache" != 1; then
4300             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4301           fi
4302
4303           if test "$wxUSE_CONFIG" = yes; then
4304             echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6
4306           else
4307             echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6
4309           fi
4310
4311
4312
4313           enablestring=
4314           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4315 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4316           no_cache=0
4317           # Check whether --enable-protocols or --disable-protocols was given.
4318 if test "${enable_protocols+set}" = set; then
4319   enableval="$enable_protocols"
4320
4321                           if test "$enableval" = yes; then
4322                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4323                           else
4324                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4325                           fi
4326
4327 else
4328
4329                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4330                           if test "x$LINE" != x ; then
4331                             eval "DEFAULT_$LINE"
4332                           else
4333                             no_cache=1
4334                           fi
4335
4336                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4337
4338 fi;
4339
4340           eval "$ac_cv_use_protocols"
4341           if test "$no_cache" != 1; then
4342             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4343           fi
4344
4345           if test "$wxUSE_PROTOCOL" = yes; then
4346             echo "$as_me:$LINENO: result: yes" >&5
4347 echo "${ECHO_T}yes" >&6
4348           else
4349             echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4351           fi
4352
4353
4354           enablestring=
4355           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4356 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4357           no_cache=0
4358           # Check whether --enable-ftp or --disable-ftp was given.
4359 if test "${enable_ftp+set}" = set; then
4360   enableval="$enable_ftp"
4361
4362                           if test "$enableval" = yes; then
4363                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4364                           else
4365                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4366                           fi
4367
4368 else
4369
4370                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4371                           if test "x$LINE" != x ; then
4372                             eval "DEFAULT_$LINE"
4373                           else
4374                             no_cache=1
4375                           fi
4376
4377                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4378
4379 fi;
4380
4381           eval "$ac_cv_use_ftp"
4382           if test "$no_cache" != 1; then
4383             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4384           fi
4385
4386           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4387             echo "$as_me:$LINENO: result: yes" >&5
4388 echo "${ECHO_T}yes" >&6
4389           else
4390             echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6
4392           fi
4393
4394
4395           enablestring=
4396           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4397 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4398           no_cache=0
4399           # Check whether --enable-http or --disable-http was given.
4400 if test "${enable_http+set}" = set; then
4401   enableval="$enable_http"
4402
4403                           if test "$enableval" = yes; then
4404                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4405                           else
4406                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4407                           fi
4408
4409 else
4410
4411                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4412                           if test "x$LINE" != x ; then
4413                             eval "DEFAULT_$LINE"
4414                           else
4415                             no_cache=1
4416                           fi
4417
4418                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4419
4420 fi;
4421
4422           eval "$ac_cv_use_http"
4423           if test "$no_cache" != 1; then
4424             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4425           fi
4426
4427           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4428             echo "$as_me:$LINENO: result: yes" >&5
4429 echo "${ECHO_T}yes" >&6
4430           else
4431             echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6
4433           fi
4434
4435
4436           enablestring=
4437           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4438 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4439           no_cache=0
4440           # Check whether --enable-fileproto or --disable-fileproto was given.
4441 if test "${enable_fileproto+set}" = set; then
4442   enableval="$enable_fileproto"
4443
4444                           if test "$enableval" = yes; then
4445                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4446                           else
4447                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4448                           fi
4449
4450 else
4451
4452                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4453                           if test "x$LINE" != x ; then
4454                             eval "DEFAULT_$LINE"
4455                           else
4456                             no_cache=1
4457                           fi
4458
4459                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4460
4461 fi;
4462
4463           eval "$ac_cv_use_fileproto"
4464           if test "$no_cache" != 1; then
4465             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4466           fi
4467
4468           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4469             echo "$as_me:$LINENO: result: yes" >&5
4470 echo "${ECHO_T}yes" >&6
4471           else
4472             echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6
4474           fi
4475
4476
4477           enablestring=
4478           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4479 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4480           no_cache=0
4481           # Check whether --enable-sockets or --disable-sockets was given.
4482 if test "${enable_sockets+set}" = set; then
4483   enableval="$enable_sockets"
4484
4485                           if test "$enableval" = yes; then
4486                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4487                           else
4488                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4489                           fi
4490
4491 else
4492
4493                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4494                           if test "x$LINE" != x ; then
4495                             eval "DEFAULT_$LINE"
4496                           else
4497                             no_cache=1
4498                           fi
4499
4500                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4501
4502 fi;
4503
4504           eval "$ac_cv_use_sockets"
4505           if test "$no_cache" != 1; then
4506             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4507           fi
4508
4509           if test "$wxUSE_SOCKETS" = yes; then
4510             echo "$as_me:$LINENO: result: yes" >&5
4511 echo "${ECHO_T}yes" >&6
4512           else
4513             echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4515           fi
4516
4517
4518           enablestring=
4519           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4520 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4521           no_cache=0
4522           # Check whether --enable-ole or --disable-ole was given.
4523 if test "${enable_ole+set}" = set; then
4524   enableval="$enable_ole"
4525
4526                           if test "$enableval" = yes; then
4527                             ac_cv_use_ole='wxUSE_OLE=yes'
4528                           else
4529                             ac_cv_use_ole='wxUSE_OLE=no'
4530                           fi
4531
4532 else
4533
4534                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4535                           if test "x$LINE" != x ; then
4536                             eval "DEFAULT_$LINE"
4537                           else
4538                             no_cache=1
4539                           fi
4540
4541                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4542
4543 fi;
4544
4545           eval "$ac_cv_use_ole"
4546           if test "$no_cache" != 1; then
4547             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4548           fi
4549
4550           if test "$wxUSE_OLE" = yes; then
4551             echo "$as_me:$LINENO: result: yes" >&5
4552 echo "${ECHO_T}yes" >&6
4553           else
4554             echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6
4556           fi
4557
4558
4559           enablestring=
4560           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4561 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4562           no_cache=0
4563           # Check whether --enable-dataobj or --disable-dataobj was given.
4564 if test "${enable_dataobj+set}" = set; then
4565   enableval="$enable_dataobj"
4566
4567                           if test "$enableval" = yes; then
4568                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4569                           else
4570                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4571                           fi
4572
4573 else
4574
4575                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4576                           if test "x$LINE" != x ; then
4577                             eval "DEFAULT_$LINE"
4578                           else
4579                             no_cache=1
4580                           fi
4581
4582                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4583
4584 fi;
4585
4586           eval "$ac_cv_use_dataobj"
4587           if test "$no_cache" != 1; then
4588             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4589           fi
4590
4591           if test "$wxUSE_DATAOBJ" = yes; then
4592             echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6
4594           else
4595             echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4597           fi
4598
4599
4600
4601           enablestring=
4602           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4603 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4604           no_cache=0
4605           # Check whether --enable-ipc or --disable-ipc was given.
4606 if test "${enable_ipc+set}" = set; then
4607   enableval="$enable_ipc"
4608
4609                           if test "$enableval" = yes; then
4610                             ac_cv_use_ipc='wxUSE_IPC=yes'
4611                           else
4612                             ac_cv_use_ipc='wxUSE_IPC=no'
4613                           fi
4614
4615 else
4616
4617                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4618                           if test "x$LINE" != x ; then
4619                             eval "DEFAULT_$LINE"
4620                           else
4621                             no_cache=1
4622                           fi
4623
4624                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4625
4626 fi;
4627
4628           eval "$ac_cv_use_ipc"
4629           if test "$no_cache" != 1; then
4630             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4631           fi
4632
4633           if test "$wxUSE_IPC" = yes; then
4634             echo "$as_me:$LINENO: result: yes" >&5
4635 echo "${ECHO_T}yes" >&6
4636           else
4637             echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639           fi
4640
4641
4642
4643           enablestring=
4644           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4645 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4646           no_cache=0
4647           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4648 if test "${enable_apple_ieee+set}" = set; then
4649   enableval="$enable_apple_ieee"
4650
4651                           if test "$enableval" = yes; then
4652                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4653                           else
4654                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4655                           fi
4656
4657 else
4658
4659                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4660                           if test "x$LINE" != x ; then
4661                             eval "DEFAULT_$LINE"
4662                           else
4663                             no_cache=1
4664                           fi
4665
4666                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4667
4668 fi;
4669
4670           eval "$ac_cv_use_apple_ieee"
4671           if test "$no_cache" != 1; then
4672             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4673           fi
4674
4675           if test "$wxUSE_APPLE_IEEE" = yes; then
4676             echo "$as_me:$LINENO: result: yes" >&5
4677 echo "${ECHO_T}yes" >&6
4678           else
4679             echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6
4681           fi
4682
4683
4684           enablestring=
4685           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4686 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4687           no_cache=0
4688           # Check whether --enable-arcstream or --disable-arcstream was given.
4689 if test "${enable_arcstream+set}" = set; then
4690   enableval="$enable_arcstream"
4691
4692                           if test "$enableval" = yes; then
4693                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
4694                           else
4695                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
4696                           fi
4697
4698 else
4699
4700                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
4701                           if test "x$LINE" != x ; then
4702                             eval "DEFAULT_$LINE"
4703                           else
4704                             no_cache=1
4705                           fi
4706
4707                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
4708
4709 fi;
4710
4711           eval "$ac_cv_use_arcstream"
4712           if test "$no_cache" != 1; then
4713             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4714           fi
4715
4716           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
4717             echo "$as_me:$LINENO: result: yes" >&5
4718 echo "${ECHO_T}yes" >&6
4719           else
4720             echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6
4722           fi
4723
4724
4725           enablestring=
4726           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4727 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4728           no_cache=0
4729           # Check whether --enable-backtrace or --disable-backtrace was given.
4730 if test "${enable_backtrace+set}" = set; then
4731   enableval="$enable_backtrace"
4732
4733                           if test "$enableval" = yes; then
4734                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4735                           else
4736                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4737                           fi
4738
4739 else
4740
4741                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4742                           if test "x$LINE" != x ; then
4743                             eval "DEFAULT_$LINE"
4744                           else
4745                             no_cache=1
4746                           fi
4747
4748                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4749
4750 fi;
4751
4752           eval "$ac_cv_use_backtrace"
4753           if test "$no_cache" != 1; then
4754             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4755           fi
4756
4757           if test "$wxUSE_STACKWALKER" = yes; then
4758             echo "$as_me:$LINENO: result: yes" >&5
4759 echo "${ECHO_T}yes" >&6
4760           else
4761             echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4763           fi
4764
4765
4766           enablestring=
4767           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4768 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4769           no_cache=0
4770           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4771 if test "${enable_catch_segvs+set}" = set; then
4772   enableval="$enable_catch_segvs"
4773
4774                           if test "$enableval" = yes; then
4775                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4776                           else
4777                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4778                           fi
4779
4780 else
4781
4782                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4783                           if test "x$LINE" != x ; then
4784                             eval "DEFAULT_$LINE"
4785                           else
4786                             no_cache=1
4787                           fi
4788
4789                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4790
4791 fi;
4792
4793           eval "$ac_cv_use_catch_segvs"
4794           if test "$no_cache" != 1; then
4795             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4796           fi
4797
4798           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4799             echo "$as_me:$LINENO: result: yes" >&5
4800 echo "${ECHO_T}yes" >&6
4801           else
4802             echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4804           fi
4805
4806
4807           enablestring=
4808           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4809 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4810           no_cache=0
4811           # Check whether --enable-cmdline or --disable-cmdline was given.
4812 if test "${enable_cmdline+set}" = set; then
4813   enableval="$enable_cmdline"
4814
4815                           if test "$enableval" = yes; then
4816                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4817                           else
4818                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4819                           fi
4820
4821 else
4822
4823                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4824                           if test "x$LINE" != x ; then
4825                             eval "DEFAULT_$LINE"
4826                           else
4827                             no_cache=1
4828                           fi
4829
4830                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4831
4832 fi;
4833
4834           eval "$ac_cv_use_cmdline"
4835           if test "$no_cache" != 1; then
4836             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4837           fi
4838
4839           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4840             echo "$as_me:$LINENO: result: yes" >&5
4841 echo "${ECHO_T}yes" >&6
4842           else
4843             echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6
4845           fi
4846
4847
4848           enablestring=
4849           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4850 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4851           no_cache=0
4852           # Check whether --enable-datetime or --disable-datetime was given.
4853 if test "${enable_datetime+set}" = set; then
4854   enableval="$enable_datetime"
4855
4856                           if test "$enableval" = yes; then
4857                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4858                           else
4859                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4860                           fi
4861
4862 else
4863
4864                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4865                           if test "x$LINE" != x ; then
4866                             eval "DEFAULT_$LINE"
4867                           else
4868                             no_cache=1
4869                           fi
4870
4871                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4872
4873 fi;
4874
4875           eval "$ac_cv_use_datetime"
4876           if test "$no_cache" != 1; then
4877             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4878           fi
4879
4880           if test "$wxUSE_DATETIME" = yes; then
4881             echo "$as_me:$LINENO: result: yes" >&5
4882 echo "${ECHO_T}yes" >&6
4883           else
4884             echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6
4886           fi
4887
4888
4889           enablestring=
4890           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4891 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4892           no_cache=0
4893           # Check whether --enable-debugreport or --disable-debugreport was given.
4894 if test "${enable_debugreport+set}" = set; then
4895   enableval="$enable_debugreport"
4896
4897                           if test "$enableval" = yes; then
4898                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4899                           else
4900                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4901                           fi
4902
4903 else
4904
4905                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4906                           if test "x$LINE" != x ; then
4907                             eval "DEFAULT_$LINE"
4908                           else
4909                             no_cache=1
4910                           fi
4911
4912                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4913
4914 fi;
4915
4916           eval "$ac_cv_use_debugreport"
4917           if test "$no_cache" != 1; then
4918             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4919           fi
4920
4921           if test "$wxUSE_DEBUGREPORT" = yes; then
4922             echo "$as_me:$LINENO: result: yes" >&5
4923 echo "${ECHO_T}yes" >&6
4924           else
4925             echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4927           fi
4928
4929
4930           enablestring=
4931           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4932 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4933           no_cache=0
4934           # Check whether --enable-dialupman or --disable-dialupman was given.
4935 if test "${enable_dialupman+set}" = set; then
4936   enableval="$enable_dialupman"
4937
4938                           if test "$enableval" = yes; then
4939                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4940                           else
4941                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4942                           fi
4943
4944 else
4945
4946                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4947                           if test "x$LINE" != x ; then
4948                             eval "DEFAULT_$LINE"
4949                           else
4950                             no_cache=1
4951                           fi
4952
4953                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4954
4955 fi;
4956
4957           eval "$ac_cv_use_dialupman"
4958           if test "$no_cache" != 1; then
4959             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4960           fi
4961
4962           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4963             echo "$as_me:$LINENO: result: yes" >&5
4964 echo "${ECHO_T}yes" >&6
4965           else
4966             echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4968           fi
4969
4970
4971           enablestring=
4972           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4973 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4974           no_cache=0
4975           # Check whether --enable-dynlib or --disable-dynlib was given.
4976 if test "${enable_dynlib+set}" = set; then
4977   enableval="$enable_dynlib"
4978
4979                           if test "$enableval" = yes; then
4980                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4981                           else
4982                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4983                           fi
4984
4985 else
4986
4987                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4988                           if test "x$LINE" != x ; then
4989                             eval "DEFAULT_$LINE"
4990                           else
4991                             no_cache=1
4992                           fi
4993
4994                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4995
4996 fi;
4997
4998           eval "$ac_cv_use_dynlib"
4999           if test "$no_cache" != 1; then
5000             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5001           fi
5002
5003           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5004             echo "$as_me:$LINENO: result: yes" >&5
5005 echo "${ECHO_T}yes" >&6
5006           else
5007             echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6
5009           fi
5010
5011
5012           enablestring=
5013           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5014 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5015           no_cache=0
5016           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5017 if test "${enable_dynamicloader+set}" = set; then
5018   enableval="$enable_dynamicloader"
5019
5020                           if test "$enableval" = yes; then
5021                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5022                           else
5023                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5024                           fi
5025
5026 else
5027
5028                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5029                           if test "x$LINE" != x ; then
5030                             eval "DEFAULT_$LINE"
5031                           else
5032                             no_cache=1
5033                           fi
5034
5035                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5036
5037 fi;
5038
5039           eval "$ac_cv_use_dynamicloader"
5040           if test "$no_cache" != 1; then
5041             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5042           fi
5043
5044           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5045             echo "$as_me:$LINENO: result: yes" >&5
5046 echo "${ECHO_T}yes" >&6
5047           else
5048             echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5050           fi
5051
5052
5053           enablestring=
5054           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5055 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5056           no_cache=0
5057           # Check whether --enable-exceptions or --disable-exceptions was given.
5058 if test "${enable_exceptions+set}" = set; then
5059   enableval="$enable_exceptions"
5060
5061                           if test "$enableval" = yes; then
5062                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5063                           else
5064                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5065                           fi
5066
5067 else
5068
5069                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5070                           if test "x$LINE" != x ; then
5071                             eval "DEFAULT_$LINE"
5072                           else
5073                             no_cache=1
5074                           fi
5075
5076                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5077
5078 fi;
5079
5080           eval "$ac_cv_use_exceptions"
5081           if test "$no_cache" != 1; then
5082             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5083           fi
5084
5085           if test "$wxUSE_EXCEPTIONS" = yes; then
5086             echo "$as_me:$LINENO: result: yes" >&5
5087 echo "${ECHO_T}yes" >&6
5088           else
5089             echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6
5091           fi
5092
5093
5094           enablestring=
5095           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5096 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5097           no_cache=0
5098           # Check whether --enable-ffile or --disable-ffile was given.
5099 if test "${enable_ffile+set}" = set; then
5100   enableval="$enable_ffile"
5101
5102                           if test "$enableval" = yes; then
5103                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5104                           else
5105                             ac_cv_use_ffile='wxUSE_FFILE=no'
5106                           fi
5107
5108 else
5109
5110                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5111                           if test "x$LINE" != x ; then
5112                             eval "DEFAULT_$LINE"
5113                           else
5114                             no_cache=1
5115                           fi
5116
5117                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5118
5119 fi;
5120
5121           eval "$ac_cv_use_ffile"
5122           if test "$no_cache" != 1; then
5123             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5124           fi
5125
5126           if test "$wxUSE_FFILE" = yes; then
5127             echo "$as_me:$LINENO: result: yes" >&5
5128 echo "${ECHO_T}yes" >&6
5129           else
5130             echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5132           fi
5133
5134
5135           enablestring=
5136           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5137 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5138           no_cache=0
5139           # Check whether --enable-file or --disable-file was given.
5140 if test "${enable_file+set}" = set; then
5141   enableval="$enable_file"
5142
5143                           if test "$enableval" = yes; then
5144                             ac_cv_use_file='wxUSE_FILE=yes'
5145                           else
5146                             ac_cv_use_file='wxUSE_FILE=no'
5147                           fi
5148
5149 else
5150
5151                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5152                           if test "x$LINE" != x ; then
5153                             eval "DEFAULT_$LINE"
5154                           else
5155                             no_cache=1
5156                           fi
5157
5158                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5159
5160 fi;
5161
5162           eval "$ac_cv_use_file"
5163           if test "$no_cache" != 1; then
5164             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5165           fi
5166
5167           if test "$wxUSE_FILE" = yes; then
5168             echo "$as_me:$LINENO: result: yes" >&5
5169 echo "${ECHO_T}yes" >&6
5170           else
5171             echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5173           fi
5174
5175
5176           enablestring=
5177           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5178 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5179           no_cache=0
5180           # Check whether --enable-filesystem or --disable-filesystem was given.
5181 if test "${enable_filesystem+set}" = set; then
5182   enableval="$enable_filesystem"
5183
5184                           if test "$enableval" = yes; then
5185                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5186                           else
5187                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5188                           fi
5189
5190 else
5191
5192                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5193                           if test "x$LINE" != x ; then
5194                             eval "DEFAULT_$LINE"
5195                           else
5196                             no_cache=1
5197                           fi
5198
5199                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5200
5201 fi;
5202
5203           eval "$ac_cv_use_filesystem"
5204           if test "$no_cache" != 1; then
5205             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5206           fi
5207
5208           if test "$wxUSE_FILESYSTEM" = yes; then
5209             echo "$as_me:$LINENO: result: yes" >&5
5210 echo "${ECHO_T}yes" >&6
5211           else
5212             echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6
5214           fi
5215
5216
5217           enablestring=
5218           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5219 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5220           no_cache=0
5221           # Check whether --enable-fontmap or --disable-fontmap was given.
5222 if test "${enable_fontmap+set}" = set; then
5223   enableval="$enable_fontmap"
5224
5225                           if test "$enableval" = yes; then
5226                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5227                           else
5228                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5229                           fi
5230
5231 else
5232
5233                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5234                           if test "x$LINE" != x ; then
5235                             eval "DEFAULT_$LINE"
5236                           else
5237                             no_cache=1
5238                           fi
5239
5240                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5241
5242 fi;
5243
5244           eval "$ac_cv_use_fontmap"
5245           if test "$no_cache" != 1; then
5246             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5247           fi
5248
5249           if test "$wxUSE_FONTMAP" = yes; then
5250             echo "$as_me:$LINENO: result: yes" >&5
5251 echo "${ECHO_T}yes" >&6
5252           else
5253             echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6
5255           fi
5256
5257
5258           enablestring=
5259           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5260 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5261           no_cache=0
5262           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5263 if test "${enable_fs_inet+set}" = set; then
5264   enableval="$enable_fs_inet"
5265
5266                           if test "$enableval" = yes; then
5267                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5268                           else
5269                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5270                           fi
5271
5272 else
5273
5274                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5275                           if test "x$LINE" != x ; then
5276                             eval "DEFAULT_$LINE"
5277                           else
5278                             no_cache=1
5279                           fi
5280
5281                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5282
5283 fi;
5284
5285           eval "$ac_cv_use_fs_inet"
5286           if test "$no_cache" != 1; then
5287             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5288           fi
5289
5290           if test "$wxUSE_FS_INET" = yes; then
5291             echo "$as_me:$LINENO: result: yes" >&5
5292 echo "${ECHO_T}yes" >&6
5293           else
5294             echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5296           fi
5297
5298
5299           enablestring=
5300           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5301 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5302           no_cache=0
5303           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5304 if test "${enable_fs_zip+set}" = set; then
5305   enableval="$enable_fs_zip"
5306
5307                           if test "$enableval" = yes; then
5308                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5309                           else
5310                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5311                           fi
5312
5313 else
5314
5315                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5316                           if test "x$LINE" != x ; then
5317                             eval "DEFAULT_$LINE"
5318                           else
5319                             no_cache=1
5320                           fi
5321
5322                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5323
5324 fi;
5325
5326           eval "$ac_cv_use_fs_zip"
5327           if test "$no_cache" != 1; then
5328             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5329           fi
5330
5331           if test "$wxUSE_FS_ZIP" = yes; then
5332             echo "$as_me:$LINENO: result: yes" >&5
5333 echo "${ECHO_T}yes" >&6
5334           else
5335             echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6
5337           fi
5338
5339
5340           enablestring=
5341           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5342 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5343           no_cache=0
5344           # Check whether --enable-geometry or --disable-geometry was given.
5345 if test "${enable_geometry+set}" = set; then
5346   enableval="$enable_geometry"
5347
5348                           if test "$enableval" = yes; then
5349                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5350                           else
5351                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5352                           fi
5353
5354 else
5355
5356                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5357                           if test "x$LINE" != x ; then
5358                             eval "DEFAULT_$LINE"
5359                           else
5360                             no_cache=1
5361                           fi
5362
5363                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5364
5365 fi;
5366
5367           eval "$ac_cv_use_geometry"
5368           if test "$no_cache" != 1; then
5369             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5370           fi
5371
5372           if test "$wxUSE_GEOMETRY" = yes; then
5373             echo "$as_me:$LINENO: result: yes" >&5
5374 echo "${ECHO_T}yes" >&6
5375           else
5376             echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6
5378           fi
5379
5380
5381           enablestring=
5382           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5383 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5384           no_cache=0
5385           # Check whether --enable-log or --disable-log was given.
5386 if test "${enable_log+set}" = set; then
5387   enableval="$enable_log"
5388
5389                           if test "$enableval" = yes; then
5390                             ac_cv_use_log='wxUSE_LOG=yes'
5391                           else
5392                             ac_cv_use_log='wxUSE_LOG=no'
5393                           fi
5394
5395 else
5396
5397                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5398                           if test "x$LINE" != x ; then
5399                             eval "DEFAULT_$LINE"
5400                           else
5401                             no_cache=1
5402                           fi
5403
5404                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5405
5406 fi;
5407
5408           eval "$ac_cv_use_log"
5409           if test "$no_cache" != 1; then
5410             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5411           fi
5412
5413           if test "$wxUSE_LOG" = yes; then
5414             echo "$as_me:$LINENO: result: yes" >&5
5415 echo "${ECHO_T}yes" >&6
5416           else
5417             echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5419           fi
5420
5421
5422           enablestring=
5423           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5424 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5425           no_cache=0
5426           # Check whether --enable-longlong or --disable-longlong was given.
5427 if test "${enable_longlong+set}" = set; then
5428   enableval="$enable_longlong"
5429
5430                           if test "$enableval" = yes; then
5431                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5432                           else
5433                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5434                           fi
5435
5436 else
5437
5438                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5439                           if test "x$LINE" != x ; then
5440                             eval "DEFAULT_$LINE"
5441                           else
5442                             no_cache=1
5443                           fi
5444
5445                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5446
5447 fi;
5448
5449           eval "$ac_cv_use_longlong"
5450           if test "$no_cache" != 1; then
5451             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5452           fi
5453
5454           if test "$wxUSE_LONGLONG" = yes; then
5455             echo "$as_me:$LINENO: result: yes" >&5
5456 echo "${ECHO_T}yes" >&6
5457           else
5458             echo "$as_me:$LINENO: result: no" >&5
5459 echo "${ECHO_T}no" >&6
5460           fi
5461
5462
5463           enablestring=
5464           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5465 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5466           no_cache=0
5467           # Check whether --enable-mimetype or --disable-mimetype was given.
5468 if test "${enable_mimetype+set}" = set; then
5469   enableval="$enable_mimetype"
5470
5471                           if test "$enableval" = yes; then
5472                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5473                           else
5474                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5475                           fi
5476
5477 else
5478
5479                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5480                           if test "x$LINE" != x ; then
5481                             eval "DEFAULT_$LINE"
5482                           else
5483                             no_cache=1
5484                           fi
5485
5486                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5487
5488 fi;
5489
5490           eval "$ac_cv_use_mimetype"
5491           if test "$no_cache" != 1; then
5492             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5493           fi
5494
5495           if test "$wxUSE_MIMETYPE" = yes; then
5496             echo "$as_me:$LINENO: result: yes" >&5
5497 echo "${ECHO_T}yes" >&6
5498           else
5499             echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6
5501           fi
5502
5503
5504           enablestring=
5505           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5506 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5507           no_cache=0
5508           # Check whether --enable-mslu or --disable-mslu was given.
5509 if test "${enable_mslu+set}" = set; then
5510   enableval="$enable_mslu"
5511
5512                           if test "$enableval" = yes; then
5513                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5514                           else
5515                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5516                           fi
5517
5518 else
5519
5520                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5521                           if test "x$LINE" != x ; then
5522                             eval "DEFAULT_$LINE"
5523                           else
5524                             no_cache=1
5525                           fi
5526
5527                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5528
5529 fi;
5530
5531           eval "$ac_cv_use_mslu"
5532           if test "$no_cache" != 1; then
5533             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5534           fi
5535
5536           if test "$wxUSE_UNICODE_MSLU" = yes; then
5537             echo "$as_me:$LINENO: result: yes" >&5
5538 echo "${ECHO_T}yes" >&6
5539           else
5540             echo "$as_me:$LINENO: result: no" >&5
5541 echo "${ECHO_T}no" >&6
5542           fi
5543
5544
5545           enablestring=
5546           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5547 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5548           no_cache=0
5549           # Check whether --enable-snglinst or --disable-snglinst was given.
5550 if test "${enable_snglinst+set}" = set; then
5551   enableval="$enable_snglinst"
5552
5553                           if test "$enableval" = yes; then
5554                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5555                           else
5556                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5557                           fi
5558
5559 else
5560
5561                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5562                           if test "x$LINE" != x ; then
5563                             eval "DEFAULT_$LINE"
5564                           else
5565                             no_cache=1
5566                           fi
5567
5568                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5569
5570 fi;
5571
5572           eval "$ac_cv_use_snglinst"
5573           if test "$no_cache" != 1; then
5574             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5575           fi
5576
5577           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5578             echo "$as_me:$LINENO: result: yes" >&5
5579 echo "${ECHO_T}yes" >&6
5580           else
5581             echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6
5583           fi
5584
5585
5586           enablestring=
5587           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5588 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5589           no_cache=0
5590           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5591 if test "${enable_std_iostreams+set}" = set; then
5592   enableval="$enable_std_iostreams"
5593
5594                           if test "$enableval" = yes; then
5595                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5596                           else
5597                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5598                           fi
5599
5600 else
5601
5602                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5603                           if test "x$LINE" != x ; then
5604                             eval "DEFAULT_$LINE"
5605                           else
5606                             no_cache=1
5607                           fi
5608
5609                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5610
5611 fi;
5612
5613           eval "$ac_cv_use_std_iostreams"
5614           if test "$no_cache" != 1; then
5615             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5616           fi
5617
5618           if test "$wxUSE_STD_IOSTREAM" = yes; then
5619             echo "$as_me:$LINENO: result: yes" >&5
5620 echo "${ECHO_T}yes" >&6
5621           else
5622             echo "$as_me:$LINENO: result: no" >&5
5623 echo "${ECHO_T}no" >&6
5624           fi
5625
5626
5627           enablestring=
5628           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5629 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5630           no_cache=0
5631           # Check whether --enable-std_string or --disable-std_string was given.
5632 if test "${enable_std_string+set}" = set; then
5633   enableval="$enable_std_string"
5634
5635                           if test "$enableval" = yes; then
5636                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5637                           else
5638                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5639                           fi
5640
5641 else
5642
5643                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5644                           if test "x$LINE" != x ; then
5645                             eval "DEFAULT_$LINE"
5646                           else
5647                             no_cache=1
5648                           fi
5649
5650                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5651
5652 fi;
5653
5654           eval "$ac_cv_use_std_string"
5655           if test "$no_cache" != 1; then
5656             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5657           fi
5658
5659           if test "$wxUSE_STD_STRING" = yes; then
5660             echo "$as_me:$LINENO: result: yes" >&5
5661 echo "${ECHO_T}yes" >&6
5662           else
5663             echo "$as_me:$LINENO: result: no" >&5
5664 echo "${ECHO_T}no" >&6
5665           fi
5666
5667
5668           enablestring=
5669           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5670 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5671           no_cache=0
5672           # Check whether --enable-stdpaths or --disable-stdpaths was given.
5673 if test "${enable_stdpaths+set}" = set; then
5674   enableval="$enable_stdpaths"
5675
5676                           if test "$enableval" = yes; then
5677                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
5678                           else
5679                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
5680                           fi
5681
5682 else
5683
5684                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
5685                           if test "x$LINE" != x ; then
5686                             eval "DEFAULT_$LINE"
5687                           else
5688                             no_cache=1
5689                           fi
5690
5691                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
5692
5693 fi;
5694
5695           eval "$ac_cv_use_stdpaths"
5696           if test "$no_cache" != 1; then
5697             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
5698           fi
5699
5700           if test "$wxUSE_STDPATHS" = yes; then
5701             echo "$as_me:$LINENO: result: yes" >&5
5702 echo "${ECHO_T}yes" >&6
5703           else
5704             echo "$as_me:$LINENO: result: no" >&5
5705 echo "${ECHO_T}no" >&6
5706           fi
5707
5708
5709           enablestring=
5710           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5711 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5712           no_cache=0
5713           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5714 if test "${enable_stopwatch+set}" = set; then
5715   enableval="$enable_stopwatch"
5716
5717                           if test "$enableval" = yes; then
5718                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5719                           else
5720                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5721                           fi
5722
5723 else
5724
5725                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5726                           if test "x$LINE" != x ; then
5727                             eval "DEFAULT_$LINE"
5728                           else
5729                             no_cache=1
5730                           fi
5731
5732                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5733
5734 fi;
5735
5736           eval "$ac_cv_use_stopwatch"
5737           if test "$no_cache" != 1; then
5738             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5739           fi
5740
5741           if test "$wxUSE_STOPWATCH" = yes; then
5742             echo "$as_me:$LINENO: result: yes" >&5
5743 echo "${ECHO_T}yes" >&6
5744           else
5745             echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5747           fi
5748
5749
5750           enablestring=
5751           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5752 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5753           no_cache=0
5754           # Check whether --enable-streams or --disable-streams was given.
5755 if test "${enable_streams+set}" = set; then
5756   enableval="$enable_streams"
5757
5758                           if test "$enableval" = yes; then
5759                             ac_cv_use_streams='wxUSE_STREAMS=yes'
5760                           else
5761                             ac_cv_use_streams='wxUSE_STREAMS=no'
5762                           fi
5763
5764 else
5765
5766                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5767                           if test "x$LINE" != x ; then
5768                             eval "DEFAULT_$LINE"
5769                           else
5770                             no_cache=1
5771                           fi
5772
5773                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5774
5775 fi;
5776
5777           eval "$ac_cv_use_streams"
5778           if test "$no_cache" != 1; then
5779             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5780           fi
5781
5782           if test "$wxUSE_STREAMS" = yes; then
5783             echo "$as_me:$LINENO: result: yes" >&5
5784 echo "${ECHO_T}yes" >&6
5785           else
5786             echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5788           fi
5789
5790
5791           enablestring=
5792           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5793 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5794           no_cache=0
5795           # Check whether --enable-system_options or --disable-system_options was given.
5796 if test "${enable_system_options+set}" = set; then
5797   enableval="$enable_system_options"
5798
5799                           if test "$enableval" = yes; then
5800                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5801                           else
5802                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5803                           fi
5804
5805 else
5806
5807                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5808                           if test "x$LINE" != x ; then
5809                             eval "DEFAULT_$LINE"
5810                           else
5811                             no_cache=1
5812                           fi
5813
5814                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5815
5816 fi;
5817
5818           eval "$ac_cv_use_system_options"
5819           if test "$no_cache" != 1; then
5820             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5821           fi
5822
5823           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5824             echo "$as_me:$LINENO: result: yes" >&5
5825 echo "${ECHO_T}yes" >&6
5826           else
5827             echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6
5829           fi
5830
5831
5832           enablestring=
5833           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5834 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5835           no_cache=0
5836           # Check whether --enable-textbuf or --disable-textbuf was given.
5837 if test "${enable_textbuf+set}" = set; then
5838   enableval="$enable_textbuf"
5839
5840                           if test "$enableval" = yes; then
5841                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5842                           else
5843                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5844                           fi
5845
5846 else
5847
5848                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5849                           if test "x$LINE" != x ; then
5850                             eval "DEFAULT_$LINE"
5851                           else
5852                             no_cache=1
5853                           fi
5854
5855                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5856
5857 fi;
5858
5859           eval "$ac_cv_use_textbuf"
5860           if test "$no_cache" != 1; then
5861             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5862           fi
5863
5864           if test "$wxUSE_TEXTBUFFER" = yes; then
5865             echo "$as_me:$LINENO: result: yes" >&5
5866 echo "${ECHO_T}yes" >&6
5867           else
5868             echo "$as_me:$LINENO: result: no" >&5
5869 echo "${ECHO_T}no" >&6
5870           fi
5871
5872
5873           enablestring=
5874           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5875 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5876           no_cache=0
5877           # Check whether --enable-textfile or --disable-textfile was given.
5878 if test "${enable_textfile+set}" = set; then
5879   enableval="$enable_textfile"
5880
5881                           if test "$enableval" = yes; then
5882                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5883                           else
5884                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5885                           fi
5886
5887 else
5888
5889                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5890                           if test "x$LINE" != x ; then
5891                             eval "DEFAULT_$LINE"
5892                           else
5893                             no_cache=1
5894                           fi
5895
5896                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5897
5898 fi;
5899
5900           eval "$ac_cv_use_textfile"
5901           if test "$no_cache" != 1; then
5902             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5903           fi
5904
5905           if test "$wxUSE_TEXTFILE" = yes; then
5906             echo "$as_me:$LINENO: result: yes" >&5
5907 echo "${ECHO_T}yes" >&6
5908           else
5909             echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6
5911           fi
5912
5913
5914           enablestring=
5915           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5916 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5917           no_cache=0
5918           # Check whether --enable-timer or --disable-timer was given.
5919 if test "${enable_timer+set}" = set; then
5920   enableval="$enable_timer"
5921
5922                           if test "$enableval" = yes; then
5923                             ac_cv_use_timer='wxUSE_TIMER=yes'
5924                           else
5925                             ac_cv_use_timer='wxUSE_TIMER=no'
5926                           fi
5927
5928 else
5929
5930                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5931                           if test "x$LINE" != x ; then
5932                             eval "DEFAULT_$LINE"
5933                           else
5934                             no_cache=1
5935                           fi
5936
5937                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5938
5939 fi;
5940
5941           eval "$ac_cv_use_timer"
5942           if test "$no_cache" != 1; then
5943             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5944           fi
5945
5946           if test "$wxUSE_TIMER" = yes; then
5947             echo "$as_me:$LINENO: result: yes" >&5
5948 echo "${ECHO_T}yes" >&6
5949           else
5950             echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6
5952           fi
5953
5954
5955           enablestring=
5956           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5957 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5958           no_cache=0
5959           # Check whether --enable-unicode or --disable-unicode was given.
5960 if test "${enable_unicode+set}" = set; then
5961   enableval="$enable_unicode"
5962
5963                           if test "$enableval" = yes; then
5964                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
5965                           else
5966                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5967                           fi
5968
5969 else
5970
5971                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5972                           if test "x$LINE" != x ; then
5973                             eval "DEFAULT_$LINE"
5974                           else
5975                             no_cache=1
5976                           fi
5977
5978                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5979
5980 fi;
5981
5982           eval "$ac_cv_use_unicode"
5983           if test "$no_cache" != 1; then
5984             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5985           fi
5986
5987           if test "$wxUSE_UNICODE" = yes; then
5988             echo "$as_me:$LINENO: result: yes" >&5
5989 echo "${ECHO_T}yes" >&6
5990           else
5991             echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6
5993           fi
5994
5995
5996           enablestring=
5997           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5998 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5999           no_cache=0
6000           # Check whether --enable-sound or --disable-sound was given.
6001 if test "${enable_sound+set}" = set; then
6002   enableval="$enable_sound"
6003
6004                           if test "$enableval" = yes; then
6005                             ac_cv_use_sound='wxUSE_SOUND=yes'
6006                           else
6007                             ac_cv_use_sound='wxUSE_SOUND=no'
6008                           fi
6009
6010 else
6011
6012                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6013                           if test "x$LINE" != x ; then
6014                             eval "DEFAULT_$LINE"
6015                           else
6016                             no_cache=1
6017                           fi
6018
6019                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6020
6021 fi;
6022
6023           eval "$ac_cv_use_sound"
6024           if test "$no_cache" != 1; then
6025             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6026           fi
6027
6028           if test "$wxUSE_SOUND" = yes; then
6029             echo "$as_me:$LINENO: result: yes" >&5
6030 echo "${ECHO_T}yes" >&6
6031           else
6032             echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6
6034           fi
6035
6036
6037           enablestring=
6038           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6039 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6040           no_cache=0
6041           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6042 if test "${enable_mediactrl+set}" = set; then
6043   enableval="$enable_mediactrl"
6044
6045                           if test "$enableval" = yes; then
6046                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6047                           else
6048                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6049                           fi
6050
6051 else
6052
6053                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6054                           if test "x$LINE" != x ; then
6055                             eval "DEFAULT_$LINE"
6056                           else
6057                             no_cache=1
6058                           fi
6059
6060                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6061
6062 fi;
6063
6064           eval "$ac_cv_use_mediactrl"
6065           if test "$no_cache" != 1; then
6066             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6067           fi
6068
6069           if test "$wxUSE_MEDIACTRL" = yes; then
6070             echo "$as_me:$LINENO: result: yes" >&5
6071 echo "${ECHO_T}yes" >&6
6072           else
6073             echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6
6075           fi
6076
6077
6078           enablestring=
6079           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6080 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6081           no_cache=0
6082           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6083 if test "${enable_wxprintfv+set}" = set; then
6084   enableval="$enable_wxprintfv"
6085
6086                           if test "$enableval" = yes; then
6087                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6088                           else
6089                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6090                           fi
6091
6092 else
6093
6094                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6095                           if test "x$LINE" != x ; then
6096                             eval "DEFAULT_$LINE"
6097                           else
6098                             no_cache=1
6099                           fi
6100
6101                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6102
6103 fi;
6104
6105           eval "$ac_cv_use_wxprintfv"
6106           if test "$no_cache" != 1; then
6107             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6108           fi
6109
6110           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6111             echo "$as_me:$LINENO: result: yes" >&5
6112 echo "${ECHO_T}yes" >&6
6113           else
6114             echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6116           fi
6117
6118
6119           enablestring=
6120           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6121 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6122           no_cache=0
6123           # Check whether --enable-zipstream or --disable-zipstream was given.
6124 if test "${enable_zipstream+set}" = set; then
6125   enableval="$enable_zipstream"
6126
6127                           if test "$enableval" = yes; then
6128                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6129                           else
6130                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6131                           fi
6132
6133 else
6134
6135                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6136                           if test "x$LINE" != x ; then
6137                             eval "DEFAULT_$LINE"
6138                           else
6139                             no_cache=1
6140                           fi
6141
6142                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6143
6144 fi;
6145
6146           eval "$ac_cv_use_zipstream"
6147           if test "$no_cache" != 1; then
6148             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6149           fi
6150
6151           if test "$wxUSE_ZIPSTREAM" = yes; then
6152             echo "$as_me:$LINENO: result: yes" >&5
6153 echo "${ECHO_T}yes" >&6
6154           else
6155             echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6
6157           fi
6158
6159
6160
6161           enablestring=
6162           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6163 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6164           no_cache=0
6165           # Check whether --enable-url or --disable-url was given.
6166 if test "${enable_url+set}" = set; then
6167   enableval="$enable_url"
6168
6169                           if test "$enableval" = yes; then
6170                             ac_cv_use_url='wxUSE_URL=yes'
6171                           else
6172                             ac_cv_use_url='wxUSE_URL=no'
6173                           fi
6174
6175 else
6176
6177                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6178                           if test "x$LINE" != x ; then
6179                             eval "DEFAULT_$LINE"
6180                           else
6181                             no_cache=1
6182                           fi
6183
6184                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6185
6186 fi;
6187
6188           eval "$ac_cv_use_url"
6189           if test "$no_cache" != 1; then
6190             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6191           fi
6192
6193           if test "$wxUSE_URL" = yes; then
6194             echo "$as_me:$LINENO: result: yes" >&5
6195 echo "${ECHO_T}yes" >&6
6196           else
6197             echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6
6199           fi
6200
6201
6202           enablestring=
6203           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6204 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6205           no_cache=0
6206           # Check whether --enable-protocol or --disable-protocol was given.
6207 if test "${enable_protocol+set}" = set; then
6208   enableval="$enable_protocol"
6209
6210                           if test "$enableval" = yes; then
6211                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6212                           else
6213                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6214                           fi
6215
6216 else
6217
6218                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6219                           if test "x$LINE" != x ; then
6220                             eval "DEFAULT_$LINE"
6221                           else
6222                             no_cache=1
6223                           fi
6224
6225                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6226
6227 fi;
6228
6229           eval "$ac_cv_use_protocol"
6230           if test "$no_cache" != 1; then
6231             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6232           fi
6233
6234           if test "$wxUSE_PROTOCOL" = yes; then
6235             echo "$as_me:$LINENO: result: yes" >&5
6236 echo "${ECHO_T}yes" >&6
6237           else
6238             echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6
6240           fi
6241
6242
6243           enablestring=
6244           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6245 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6246           no_cache=0
6247           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6248 if test "${enable_protocol_http+set}" = set; then
6249   enableval="$enable_protocol_http"
6250
6251                           if test "$enableval" = yes; then
6252                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6253                           else
6254                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6255                           fi
6256
6257 else
6258
6259                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6260                           if test "x$LINE" != x ; then
6261                             eval "DEFAULT_$LINE"
6262                           else
6263                             no_cache=1
6264                           fi
6265
6266                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6267
6268 fi;
6269
6270           eval "$ac_cv_use_protocol_http"
6271           if test "$no_cache" != 1; then
6272             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6273           fi
6274
6275           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6276             echo "$as_me:$LINENO: result: yes" >&5
6277 echo "${ECHO_T}yes" >&6
6278           else
6279             echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6
6281           fi
6282
6283
6284           enablestring=
6285           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6286 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6287           no_cache=0
6288           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6289 if test "${enable_protocol_ftp+set}" = set; then
6290   enableval="$enable_protocol_ftp"
6291
6292                           if test "$enableval" = yes; then
6293                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6294                           else
6295                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6296                           fi
6297
6298 else
6299
6300                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6301                           if test "x$LINE" != x ; then
6302                             eval "DEFAULT_$LINE"
6303                           else
6304                             no_cache=1
6305                           fi
6306
6307                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6308
6309 fi;
6310
6311           eval "$ac_cv_use_protocol_ftp"
6312           if test "$no_cache" != 1; then
6313             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6314           fi
6315
6316           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6317             echo "$as_me:$LINENO: result: yes" >&5
6318 echo "${ECHO_T}yes" >&6
6319           else
6320             echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6
6322           fi
6323
6324
6325           enablestring=
6326           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6327 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6328           no_cache=0
6329           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6330 if test "${enable_protocol_file+set}" = set; then
6331   enableval="$enable_protocol_file"
6332
6333                           if test "$enableval" = yes; then
6334                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6335                           else
6336                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6337                           fi
6338
6339 else
6340
6341                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6342                           if test "x$LINE" != x ; then
6343                             eval "DEFAULT_$LINE"
6344                           else
6345                             no_cache=1
6346                           fi
6347
6348                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6349
6350 fi;
6351
6352           eval "$ac_cv_use_protocol_file"
6353           if test "$no_cache" != 1; then
6354             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6355           fi
6356
6357           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6358             echo "$as_me:$LINENO: result: yes" >&5
6359 echo "${ECHO_T}yes" >&6
6360           else
6361             echo "$as_me:$LINENO: result: no" >&5
6362 echo "${ECHO_T}no" >&6
6363           fi
6364
6365
6366
6367
6368
6369           enablestring=
6370           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6371 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6372           no_cache=0
6373           # Check whether --enable-threads or --disable-threads was given.
6374 if test "${enable_threads+set}" = set; then
6375   enableval="$enable_threads"
6376
6377                           if test "$enableval" = yes; then
6378                             ac_cv_use_threads='wxUSE_THREADS=yes'
6379                           else
6380                             ac_cv_use_threads='wxUSE_THREADS=no'
6381                           fi
6382
6383 else
6384
6385                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6386                           if test "x$LINE" != x ; then
6387                             eval "DEFAULT_$LINE"
6388                           else
6389                             no_cache=1
6390                           fi
6391
6392                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6393
6394 fi;
6395
6396           eval "$ac_cv_use_threads"
6397           if test "$no_cache" != 1; then
6398             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6399           fi
6400
6401           if test "$wxUSE_THREADS" = yes; then
6402             echo "$as_me:$LINENO: result: yes" >&5
6403 echo "${ECHO_T}yes" >&6
6404           else
6405             echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6
6407           fi
6408
6409
6410 if test "$wxUSE_GUI" = "yes"; then
6411
6412
6413
6414           enablestring=
6415           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6416 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6417           no_cache=0
6418           # Check whether --enable-docview or --disable-docview was given.
6419 if test "${enable_docview+set}" = set; then
6420   enableval="$enable_docview"
6421
6422                           if test "$enableval" = yes; then
6423                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6424                           else
6425                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6426                           fi
6427
6428 else
6429
6430                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6431                           if test "x$LINE" != x ; then
6432                             eval "DEFAULT_$LINE"
6433                           else
6434                             no_cache=1
6435                           fi
6436
6437                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6438
6439 fi;
6440
6441           eval "$ac_cv_use_docview"
6442           if test "$no_cache" != 1; then
6443             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6444           fi
6445
6446           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6447             echo "$as_me:$LINENO: result: yes" >&5
6448 echo "${ECHO_T}yes" >&6
6449           else
6450             echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6
6452           fi
6453
6454
6455           enablestring=
6456           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6457 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6458           no_cache=0
6459           # Check whether --enable-help or --disable-help was given.
6460 if test "${enable_help+set}" = set; then
6461   enableval="$enable_help"
6462
6463                           if test "$enableval" = yes; then
6464                             ac_cv_use_help='wxUSE_HELP=yes'
6465                           else
6466                             ac_cv_use_help='wxUSE_HELP=no'
6467                           fi
6468
6469 else
6470
6471                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6472                           if test "x$LINE" != x ; then
6473                             eval "DEFAULT_$LINE"
6474                           else
6475                             no_cache=1
6476                           fi
6477
6478                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6479
6480 fi;
6481
6482           eval "$ac_cv_use_help"
6483           if test "$no_cache" != 1; then
6484             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6485           fi
6486
6487           if test "$wxUSE_HELP" = yes; then
6488             echo "$as_me:$LINENO: result: yes" >&5
6489 echo "${ECHO_T}yes" >&6
6490           else
6491             echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6
6493           fi
6494
6495
6496           enablestring=
6497           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6498 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6499           no_cache=0
6500           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6501 if test "${enable_mshtmlhelp+set}" = set; then
6502   enableval="$enable_mshtmlhelp"
6503
6504                           if test "$enableval" = yes; then
6505                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6506                           else
6507                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6508                           fi
6509
6510 else
6511
6512                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6513                           if test "x$LINE" != x ; then
6514                             eval "DEFAULT_$LINE"
6515                           else
6516                             no_cache=1
6517                           fi
6518
6519                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6520
6521 fi;
6522
6523           eval "$ac_cv_use_mshtmlhelp"
6524           if test "$no_cache" != 1; then
6525             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6526           fi
6527
6528           if test "$wxUSE_MS_HTML_HELP" = yes; then
6529             echo "$as_me:$LINENO: result: yes" >&5
6530 echo "${ECHO_T}yes" >&6
6531           else
6532             echo "$as_me:$LINENO: result: no" >&5
6533 echo "${ECHO_T}no" >&6
6534           fi
6535
6536
6537           enablestring=
6538           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6539 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6540           no_cache=0
6541           # Check whether --enable-html or --disable-html was given.
6542 if test "${enable_html+set}" = set; then
6543   enableval="$enable_html"
6544
6545                           if test "$enableval" = yes; then
6546                             ac_cv_use_html='wxUSE_HTML=yes'
6547                           else
6548                             ac_cv_use_html='wxUSE_HTML=no'
6549                           fi
6550
6551 else
6552
6553                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6554                           if test "x$LINE" != x ; then
6555                             eval "DEFAULT_$LINE"
6556                           else
6557                             no_cache=1
6558                           fi
6559
6560                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6561
6562 fi;
6563
6564           eval "$ac_cv_use_html"
6565           if test "$no_cache" != 1; then
6566             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6567           fi
6568
6569           if test "$wxUSE_HTML" = yes; then
6570             echo "$as_me:$LINENO: result: yes" >&5
6571 echo "${ECHO_T}yes" >&6
6572           else
6573             echo "$as_me:$LINENO: result: no" >&5
6574 echo "${ECHO_T}no" >&6
6575           fi
6576
6577
6578           enablestring=
6579           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6580 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6581           no_cache=0
6582           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6583 if test "${enable_htmlhelp+set}" = set; then
6584   enableval="$enable_htmlhelp"
6585
6586                           if test "$enableval" = yes; then
6587                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6588                           else
6589                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6590                           fi
6591
6592 else
6593
6594                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6595                           if test "x$LINE" != x ; then
6596                             eval "DEFAULT_$LINE"
6597                           else
6598                             no_cache=1
6599                           fi
6600
6601                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6602
6603 fi;
6604
6605           eval "$ac_cv_use_htmlhelp"
6606           if test "$no_cache" != 1; then
6607             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6608           fi
6609
6610           if test "$wxUSE_WXHTML_HELP" = yes; then
6611             echo "$as_me:$LINENO: result: yes" >&5
6612 echo "${ECHO_T}yes" >&6
6613           else
6614             echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6
6616           fi
6617
6618
6619           enablestring=
6620           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6621 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6622           no_cache=0
6623           # Check whether --enable-xrc or --disable-xrc was given.
6624 if test "${enable_xrc+set}" = set; then
6625   enableval="$enable_xrc"
6626
6627                           if test "$enableval" = yes; then
6628                             ac_cv_use_xrc='wxUSE_XRC=yes'
6629                           else
6630                             ac_cv_use_xrc='wxUSE_XRC=no'
6631                           fi
6632
6633 else
6634
6635                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6636                           if test "x$LINE" != x ; then
6637                             eval "DEFAULT_$LINE"
6638                           else
6639                             no_cache=1
6640                           fi
6641
6642                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6643
6644 fi;
6645
6646           eval "$ac_cv_use_xrc"
6647           if test "$no_cache" != 1; then
6648             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6649           fi
6650
6651           if test "$wxUSE_XRC" = yes; then
6652             echo "$as_me:$LINENO: result: yes" >&5
6653 echo "${ECHO_T}yes" >&6
6654           else
6655             echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6
6657           fi
6658
6659
6660           enablestring=
6661           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6662 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6663           no_cache=0
6664           # Check whether --enable-constraints or --disable-constraints was given.
6665 if test "${enable_constraints+set}" = set; then
6666   enableval="$enable_constraints"
6667
6668                           if test "$enableval" = yes; then
6669                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6670                           else
6671                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6672                           fi
6673
6674 else
6675
6676                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6677                           if test "x$LINE" != x ; then
6678                             eval "DEFAULT_$LINE"
6679                           else
6680                             no_cache=1
6681                           fi
6682
6683                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6684
6685 fi;
6686
6687           eval "$ac_cv_use_constraints"
6688           if test "$no_cache" != 1; then
6689             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6690           fi
6691
6692           if test "$wxUSE_CONSTRAINTS" = yes; then
6693             echo "$as_me:$LINENO: result: yes" >&5
6694 echo "${ECHO_T}yes" >&6
6695           else
6696             echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6
6698           fi
6699
6700
6701           enablestring=
6702           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6703 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6704           no_cache=0
6705           # Check whether --enable-printarch or --disable-printarch was given.
6706 if test "${enable_printarch+set}" = set; then
6707   enableval="$enable_printarch"
6708
6709                           if test "$enableval" = yes; then
6710                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6711                           else
6712                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6713                           fi
6714
6715 else
6716
6717                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6718                           if test "x$LINE" != x ; then
6719                             eval "DEFAULT_$LINE"
6720                           else
6721                             no_cache=1
6722                           fi
6723
6724                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6725
6726 fi;
6727
6728           eval "$ac_cv_use_printarch"
6729           if test "$no_cache" != 1; then
6730             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6731           fi
6732
6733           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6734             echo "$as_me:$LINENO: result: yes" >&5
6735 echo "${ECHO_T}yes" >&6
6736           else
6737             echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6
6739           fi
6740
6741
6742           enablestring=
6743           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6744 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6745           no_cache=0
6746           # Check whether --enable-mdi or --disable-mdi was given.
6747 if test "${enable_mdi+set}" = set; then
6748   enableval="$enable_mdi"
6749
6750                           if test "$enableval" = yes; then
6751                             ac_cv_use_mdi='wxUSE_MDI=yes'
6752                           else
6753                             ac_cv_use_mdi='wxUSE_MDI=no'
6754                           fi
6755
6756 else
6757
6758                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
6759                           if test "x$LINE" != x ; then
6760                             eval "DEFAULT_$LINE"
6761                           else
6762                             no_cache=1
6763                           fi
6764
6765                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
6766
6767 fi;
6768
6769           eval "$ac_cv_use_mdi"
6770           if test "$no_cache" != 1; then
6771             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6772           fi
6773
6774           if test "$wxUSE_MDI" = yes; then
6775             echo "$as_me:$LINENO: result: yes" >&5
6776 echo "${ECHO_T}yes" >&6
6777           else
6778             echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6
6780           fi
6781
6782
6783           enablestring=
6784           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6785 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6786           no_cache=0
6787           # Check whether --enable-mdidoc or --disable-mdidoc was given.
6788 if test "${enable_mdidoc+set}" = set; then
6789   enableval="$enable_mdidoc"
6790
6791                           if test "$enableval" = yes; then
6792                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6793                           else
6794                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6795                           fi
6796
6797 else
6798
6799                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6800                           if test "x$LINE" != x ; then
6801                             eval "DEFAULT_$LINE"
6802                           else
6803                             no_cache=1
6804                           fi
6805
6806                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6807
6808 fi;
6809
6810           eval "$ac_cv_use_mdidoc"
6811           if test "$no_cache" != 1; then
6812             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6813           fi
6814
6815           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6816             echo "$as_me:$LINENO: result: yes" >&5
6817 echo "${ECHO_T}yes" >&6
6818           else
6819             echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6
6821           fi
6822
6823
6824           enablestring=
6825           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6826 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6827           no_cache=0
6828           # Check whether --enable-loggui or --disable-loggui was given.
6829 if test "${enable_loggui+set}" = set; then
6830   enableval="$enable_loggui"
6831
6832                           if test "$enableval" = yes; then
6833                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6834                           else
6835                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6836                           fi
6837
6838 else
6839
6840                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6841                           if test "x$LINE" != x ; then
6842                             eval "DEFAULT_$LINE"
6843                           else
6844                             no_cache=1
6845                           fi
6846
6847                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6848
6849 fi;
6850
6851           eval "$ac_cv_use_loggui"
6852           if test "$no_cache" != 1; then
6853             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6854           fi
6855
6856           if test "$wxUSE_LOGGUI" = yes; then
6857             echo "$as_me:$LINENO: result: yes" >&5
6858 echo "${ECHO_T}yes" >&6
6859           else
6860             echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6
6862           fi
6863
6864
6865           enablestring=
6866           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6867 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6868           no_cache=0
6869           # Check whether --enable-logwin or --disable-logwin was given.
6870 if test "${enable_logwin+set}" = set; then
6871   enableval="$enable_logwin"
6872
6873                           if test "$enableval" = yes; then
6874                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6875                           else
6876                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6877                           fi
6878
6879 else
6880
6881                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6882                           if test "x$LINE" != x ; then
6883                             eval "DEFAULT_$LINE"
6884                           else
6885                             no_cache=1
6886                           fi
6887
6888                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6889
6890 fi;
6891
6892           eval "$ac_cv_use_logwin"
6893           if test "$no_cache" != 1; then
6894             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6895           fi
6896
6897           if test "$wxUSE_LOGWINDOW" = yes; then
6898             echo "$as_me:$LINENO: result: yes" >&5
6899 echo "${ECHO_T}yes" >&6
6900           else
6901             echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6
6903           fi
6904
6905
6906           enablestring=
6907           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6908 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6909           no_cache=0
6910           # Check whether --enable-logdialog or --disable-logdialog was given.
6911 if test "${enable_logdialog+set}" = set; then
6912   enableval="$enable_logdialog"
6913
6914                           if test "$enableval" = yes; then
6915                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6916                           else
6917                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6918                           fi
6919
6920 else
6921
6922                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6923                           if test "x$LINE" != x ; then
6924                             eval "DEFAULT_$LINE"
6925                           else
6926                             no_cache=1
6927                           fi
6928
6929                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6930
6931 fi;
6932
6933           eval "$ac_cv_use_logdialog"
6934           if test "$no_cache" != 1; then
6935             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6936           fi
6937
6938           if test "$wxUSE_LOGDIALOG" = yes; then
6939             echo "$as_me:$LINENO: result: yes" >&5
6940 echo "${ECHO_T}yes" >&6
6941           else
6942             echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6
6944           fi
6945
6946
6947           enablestring=
6948           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6949 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6950           no_cache=0
6951           # Check whether --enable-webkit or --disable-webkit was given.
6952 if test "${enable_webkit+set}" = set; then
6953   enableval="$enable_webkit"
6954
6955                           if test "$enableval" = yes; then
6956                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6957                           else
6958                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
6959                           fi
6960
6961 else
6962
6963                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6964                           if test "x$LINE" != x ; then
6965                             eval "DEFAULT_$LINE"
6966                           else
6967                             no_cache=1
6968                           fi
6969
6970                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6971
6972 fi;
6973
6974           eval "$ac_cv_use_webkit"
6975           if test "$no_cache" != 1; then
6976             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6977           fi
6978
6979           if test "$wxUSE_WEBKIT" = yes; then
6980             echo "$as_me:$LINENO: result: yes" >&5
6981 echo "${ECHO_T}yes" >&6
6982           else
6983             echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6
6985           fi
6986
6987
6988
6989           enablestring=
6990           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6991 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6992           no_cache=0
6993           # Check whether --enable-postscript or --disable-postscript was given.
6994 if test "${enable_postscript+set}" = set; then
6995   enableval="$enable_postscript"
6996
6997                           if test "$enableval" = yes; then
6998                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6999                           else
7000                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7001                           fi
7002
7003 else
7004
7005                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7006                           if test "x$LINE" != x ; then
7007                             eval "DEFAULT_$LINE"
7008                           else
7009                             no_cache=1
7010                           fi
7011
7012                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7013
7014 fi;
7015
7016           eval "$ac_cv_use_postscript"
7017           if test "$no_cache" != 1; then
7018             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7019           fi
7020
7021           if test "$wxUSE_POSTSCRIPT" = yes; then
7022             echo "$as_me:$LINENO: result: yes" >&5
7023 echo "${ECHO_T}yes" >&6
7024           else
7025             echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6
7027           fi
7028
7029
7030
7031
7032
7033           enablestring=
7034           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7035 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7036           no_cache=0
7037           # Check whether --enable-prologio or --disable-prologio was given.
7038 if test "${enable_prologio+set}" = set; then
7039   enableval="$enable_prologio"
7040
7041                           if test "$enableval" = yes; then
7042                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7043                           else
7044                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7045                           fi
7046
7047 else
7048
7049                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7050                           if test "x$LINE" != x ; then
7051                             eval "DEFAULT_$LINE"
7052                           else
7053                             no_cache=1
7054                           fi
7055
7056                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7057
7058 fi;
7059
7060           eval "$ac_cv_use_prologio"
7061           if test "$no_cache" != 1; then
7062             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7063           fi
7064
7065           if test "$wxUSE_PROLOGIO" = yes; then
7066             echo "$as_me:$LINENO: result: yes" >&5
7067 echo "${ECHO_T}yes" >&6
7068           else
7069             echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6
7071           fi
7072
7073
7074           enablestring=
7075           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7076 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7077           no_cache=0
7078           # Check whether --enable-resources or --disable-resources was given.
7079 if test "${enable_resources+set}" = set; then
7080   enableval="$enable_resources"
7081
7082                           if test "$enableval" = yes; then
7083                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7084                           else
7085                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7086                           fi
7087
7088 else
7089
7090                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7091                           if test "x$LINE" != x ; then
7092                             eval "DEFAULT_$LINE"
7093                           else
7094                             no_cache=1
7095                           fi
7096
7097                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7098
7099 fi;
7100
7101           eval "$ac_cv_use_resources"
7102           if test "$no_cache" != 1; then
7103             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7104           fi
7105
7106           if test "$wxUSE_RESOURCES" = yes; then
7107             echo "$as_me:$LINENO: result: yes" >&5
7108 echo "${ECHO_T}yes" >&6
7109           else
7110             echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6
7112           fi
7113
7114
7115
7116
7117           enablestring=
7118           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7119 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7120           no_cache=0
7121           # Check whether --enable-clipboard or --disable-clipboard was given.
7122 if test "${enable_clipboard+set}" = set; then
7123   enableval="$enable_clipboard"
7124
7125                           if test "$enableval" = yes; then
7126                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7127                           else
7128                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7129                           fi
7130
7131 else
7132
7133                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7134                           if test "x$LINE" != x ; then
7135                             eval "DEFAULT_$LINE"
7136                           else
7137                             no_cache=1
7138                           fi
7139
7140                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7141
7142 fi;
7143
7144           eval "$ac_cv_use_clipboard"
7145           if test "$no_cache" != 1; then
7146             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7147           fi
7148
7149           if test "$wxUSE_CLIPBOARD" = yes; then
7150             echo "$as_me:$LINENO: result: yes" >&5
7151 echo "${ECHO_T}yes" >&6
7152           else
7153             echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6
7155           fi
7156
7157
7158           enablestring=
7159           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7160 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7161           no_cache=0
7162           # Check whether --enable-dnd or --disable-dnd was given.
7163 if test "${enable_dnd+set}" = set; then
7164   enableval="$enable_dnd"
7165
7166                           if test "$enableval" = yes; then
7167                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7168                           else
7169                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7170                           fi
7171
7172 else
7173
7174                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7175                           if test "x$LINE" != x ; then
7176                             eval "DEFAULT_$LINE"
7177                           else
7178                             no_cache=1
7179                           fi
7180
7181                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7182
7183 fi;
7184
7185           eval "$ac_cv_use_dnd"
7186           if test "$no_cache" != 1; then
7187             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7188           fi
7189
7190           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7191             echo "$as_me:$LINENO: result: yes" >&5
7192 echo "${ECHO_T}yes" >&6
7193           else
7194             echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6
7196           fi
7197
7198
7199           enablestring=
7200           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7201 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7202           no_cache=0
7203           # Check whether --enable-metafile or --disable-metafile was given.
7204 if test "${enable_metafile+set}" = set; then
7205   enableval="$enable_metafile"
7206
7207                           if test "$enableval" = yes; then
7208                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7209                           else
7210                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7211                           fi
7212
7213 else
7214
7215                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7216                           if test "x$LINE" != x ; then
7217                             eval "DEFAULT_$LINE"
7218                           else
7219                             no_cache=1
7220                           fi
7221
7222                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7223
7224 fi;
7225
7226           eval "$ac_cv_use_metafile"
7227           if test "$no_cache" != 1; then
7228             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7229           fi
7230
7231           if test "$wxUSE_METAFILE" = yes; then
7232             echo "$as_me:$LINENO: result: yes" >&5
7233 echo "${ECHO_T}yes" >&6
7234           else
7235             echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6
7237           fi
7238
7239
7240
7241
7242
7243           enablestring=
7244           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7245 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7246           no_cache=0
7247           # Check whether --enable-controls or --disable-controls was given.
7248 if test "${enable_controls+set}" = set; then
7249   enableval="$enable_controls"
7250
7251                           if test "$enableval" = yes; then
7252                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7253                           else
7254                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7255                           fi
7256
7257 else
7258
7259                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7260                           if test "x$LINE" != x ; then
7261                             eval "DEFAULT_$LINE"
7262                           else
7263                             no_cache=1
7264                           fi
7265
7266                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7267
7268 fi;
7269
7270           eval "$ac_cv_use_controls"
7271           if test "$no_cache" != 1; then
7272             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7273           fi
7274
7275           if test "$wxUSE_CONTROLS" = yes; then
7276             echo "$as_me:$LINENO: result: yes" >&5
7277 echo "${ECHO_T}yes" >&6
7278           else
7279             echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6
7281           fi
7282
7283
7284 if test "$wxUSE_CONTROLS" = "yes"; then
7285   DEFAULT_wxUSE_ACCEL=yes
7286   DEFAULT_wxUSE_BMPBUTTON=yes
7287   DEFAULT_wxUSE_BUTTON=yes
7288   DEFAULT_wxUSE_CALCTRL=yes
7289   DEFAULT_wxUSE_CARET=yes
7290   DEFAULT_wxUSE_COMBOBOX=yes
7291   DEFAULT_wxUSE_CHECKBOX=yes
7292   DEFAULT_wxUSE_CHECKLISTBOX=yes
7293   DEFAULT_wxUSE_CHOICE=yes
7294   DEFAULT_wxUSE_CHOICEBOOK=yes
7295   DEFAULT_wxUSE_DATEPICKCTRL=yes
7296   DEFAULT_wxUSE_GAUGE=yes
7297   DEFAULT_wxUSE_GRID=yes
7298   DEFAULT_wxUSE_IMAGLIST=yes
7299   DEFAULT_wxUSE_LISTBOOK=yes
7300   DEFAULT_wxUSE_LISTBOX=yes
7301   DEFAULT_wxUSE_LISTCTRL=yes
7302   DEFAULT_wxUSE_NOTEBOOK=yes
7303   DEFAULT_wxUSE_RADIOBOX=yes
7304   DEFAULT_wxUSE_RADIOBTN=yes
7305   DEFAULT_wxUSE_SASH=yes
7306   DEFAULT_wxUSE_SCROLLBAR=yes
7307   DEFAULT_wxUSE_SLIDER=yes
7308   DEFAULT_wxUSE_SPINBTN=yes
7309   DEFAULT_wxUSE_SPINCTRL=yes
7310   DEFAULT_wxUSE_SPLITTER=yes
7311   DEFAULT_wxUSE_STATBMP=yes
7312   DEFAULT_wxUSE_STATBOX=yes
7313   DEFAULT_wxUSE_STATLINE=yes
7314   DEFAULT_wxUSE_STATUSBAR=yes
7315   DEFAULT_wxUSE_TAB_DIALOG=yes
7316   DEFAULT_wxUSE_TOGGLEBTN=yes
7317   DEFAULT_wxUSE_TOOLBAR=yes
7318   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7319   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7320   DEFAULT_wxUSE_TOOLTIPS=yes
7321   DEFAULT_wxUSE_TREECTRL=yes
7322   DEFAULT_wxUSE_POPUPWIN=yes
7323   DEFAULT_wxUSE_TIPWINDOW=yes
7324 elif test "$wxUSE_CONTROLS" = "no"; then
7325   DEFAULT_wxUSE_ACCEL=no
7326   DEFAULT_wxUSE_BMPBUTTON=no
7327   DEFAULT_wxUSE_BUTTON=no
7328   DEFAULT_wxUSE_CALCTRL=no
7329   DEFAULT_wxUSE_CARET=no
7330   DEFAULT_wxUSE_COMBOBOX=no
7331   DEFAULT_wxUSE_CHECKBOX=no
7332   DEFAULT_wxUSE_CHECKLISTBOX=no
7333   DEFAULT_wxUSE_CHOICE=no
7334   DEFAULT_wxUSE_CHOICEBOOK=no
7335   DEFAULT_wxUSE_DATEPICKCTRL=no
7336   DEFAULT_wxUSE_GAUGE=no
7337   DEFAULT_wxUSE_GRID=no
7338   DEFAULT_wxUSE_IMAGLIST=no
7339   DEFAULT_wxUSE_LISTBOOK=no
7340   DEFAULT_wxUSE_LISTBOX=no
7341   DEFAULT_wxUSE_LISTCTRL=no
7342   DEFAULT_wxUSE_NOTEBOOK=no
7343   DEFAULT_wxUSE_RADIOBOX=no
7344   DEFAULT_wxUSE_RADIOBTN=no
7345   DEFAULT_wxUSE_SASH=no
7346   DEFAULT_wxUSE_SCROLLBAR=no
7347   DEFAULT_wxUSE_SLIDER=no
7348   DEFAULT_wxUSE_SPINBTN=no
7349   DEFAULT_wxUSE_SPINCTRL=no
7350   DEFAULT_wxUSE_SPLITTER=no
7351   DEFAULT_wxUSE_STATBMP=no
7352   DEFAULT_wxUSE_STATBOX=no
7353   DEFAULT_wxUSE_STATLINE=no
7354   DEFAULT_wxUSE_STATUSBAR=no
7355   DEFAULT_wxUSE_TAB_DIALOG=no
7356   DEFAULT_wxUSE_TOGGLEBTN=no
7357   DEFAULT_wxUSE_TOOLBAR=no
7358   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7359   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7360   DEFAULT_wxUSE_TOOLTIPS=no
7361   DEFAULT_wxUSE_TREECTRL=no
7362   DEFAULT_wxUSE_POPUPWIN=no
7363   DEFAULT_wxUSE_TIPWINDOW=no
7364 fi
7365
7366
7367           enablestring=
7368           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7369 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7370           no_cache=0
7371           # Check whether --enable-accel or --disable-accel was given.
7372 if test "${enable_accel+set}" = set; then
7373   enableval="$enable_accel"
7374
7375                           if test "$enableval" = yes; then
7376                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7377                           else
7378                             ac_cv_use_accel='wxUSE_ACCEL=no'
7379                           fi
7380
7381 else
7382
7383                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7384                           if test "x$LINE" != x ; then
7385                             eval "DEFAULT_$LINE"
7386                           else
7387                             no_cache=1
7388                           fi
7389
7390                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7391
7392 fi;
7393
7394           eval "$ac_cv_use_accel"
7395           if test "$no_cache" != 1; then
7396             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7397           fi
7398
7399           if test "$wxUSE_ACCEL" = yes; then
7400             echo "$as_me:$LINENO: result: yes" >&5
7401 echo "${ECHO_T}yes" >&6
7402           else
7403             echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6
7405           fi
7406
7407
7408           enablestring=
7409           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7410 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7411           no_cache=0
7412           # Check whether --enable-button or --disable-button was given.
7413 if test "${enable_button+set}" = set; then
7414   enableval="$enable_button"
7415
7416                           if test "$enableval" = yes; then
7417                             ac_cv_use_button='wxUSE_BUTTON=yes'
7418                           else
7419                             ac_cv_use_button='wxUSE_BUTTON=no'
7420                           fi
7421
7422 else
7423
7424                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7425                           if test "x$LINE" != x ; then
7426                             eval "DEFAULT_$LINE"
7427                           else
7428                             no_cache=1
7429                           fi
7430
7431                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7432
7433 fi;
7434
7435           eval "$ac_cv_use_button"
7436           if test "$no_cache" != 1; then
7437             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7438           fi
7439
7440           if test "$wxUSE_BUTTON" = yes; then
7441             echo "$as_me:$LINENO: result: yes" >&5
7442 echo "${ECHO_T}yes" >&6
7443           else
7444             echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6
7446           fi
7447
7448
7449           enablestring=
7450           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7451 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7452           no_cache=0
7453           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7454 if test "${enable_bmpbutton+set}" = set; then
7455   enableval="$enable_bmpbutton"
7456
7457                           if test "$enableval" = yes; then
7458                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7459                           else
7460                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7461                           fi
7462
7463 else
7464
7465                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7466                           if test "x$LINE" != x ; then
7467                             eval "DEFAULT_$LINE"
7468                           else
7469                             no_cache=1
7470                           fi
7471
7472                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7473
7474 fi;
7475
7476           eval "$ac_cv_use_bmpbutton"
7477           if test "$no_cache" != 1; then
7478             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7479           fi
7480
7481           if test "$wxUSE_BMPBUTTON" = yes; then
7482             echo "$as_me:$LINENO: result: yes" >&5
7483 echo "${ECHO_T}yes" >&6
7484           else
7485             echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6
7487           fi
7488
7489
7490           enablestring=
7491           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7492 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7493           no_cache=0
7494           # Check whether --enable-calendar or --disable-calendar was given.
7495 if test "${enable_calendar+set}" = set; then
7496   enableval="$enable_calendar"
7497
7498                           if test "$enableval" = yes; then
7499                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7500                           else
7501                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7502                           fi
7503
7504 else
7505
7506                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7507                           if test "x$LINE" != x ; then
7508                             eval "DEFAULT_$LINE"
7509                           else
7510                             no_cache=1
7511                           fi
7512
7513                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7514
7515 fi;
7516
7517           eval "$ac_cv_use_calendar"
7518           if test "$no_cache" != 1; then
7519             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7520           fi
7521
7522           if test "$wxUSE_CALCTRL" = yes; then
7523             echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7525           else
7526             echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6
7528           fi
7529
7530
7531           enablestring=
7532           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7533 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7534           no_cache=0
7535           # Check whether --enable-caret or --disable-caret was given.
7536 if test "${enable_caret+set}" = set; then
7537   enableval="$enable_caret"
7538
7539                           if test "$enableval" = yes; then
7540                             ac_cv_use_caret='wxUSE_CARET=yes'
7541                           else
7542                             ac_cv_use_caret='wxUSE_CARET=no'
7543                           fi
7544
7545 else
7546
7547                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7548                           if test "x$LINE" != x ; then
7549                             eval "DEFAULT_$LINE"
7550                           else
7551                             no_cache=1
7552                           fi
7553
7554                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7555
7556 fi;
7557
7558           eval "$ac_cv_use_caret"
7559           if test "$no_cache" != 1; then
7560             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7561           fi
7562
7563           if test "$wxUSE_CARET" = yes; then
7564             echo "$as_me:$LINENO: result: yes" >&5
7565 echo "${ECHO_T}yes" >&6
7566           else
7567             echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6
7569           fi
7570
7571
7572           enablestring=
7573           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7574 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7575           no_cache=0
7576           # Check whether --enable-checkbox or --disable-checkbox was given.
7577 if test "${enable_checkbox+set}" = set; then
7578   enableval="$enable_checkbox"
7579
7580                           if test "$enableval" = yes; then
7581                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7582                           else
7583                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7584                           fi
7585
7586 else
7587
7588                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7589                           if test "x$LINE" != x ; then
7590                             eval "DEFAULT_$LINE"
7591                           else
7592                             no_cache=1
7593                           fi
7594
7595                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7596
7597 fi;
7598
7599           eval "$ac_cv_use_checkbox"
7600           if test "$no_cache" != 1; then
7601             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7602           fi
7603
7604           if test "$wxUSE_CHECKBOX" = yes; then
7605             echo "$as_me:$LINENO: result: yes" >&5
7606 echo "${ECHO_T}yes" >&6
7607           else
7608             echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6
7610           fi
7611
7612
7613           enablestring=
7614           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7615 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7616           no_cache=0
7617           # Check whether --enable-checklst or --disable-checklst was given.
7618 if test "${enable_checklst+set}" = set; then
7619   enableval="$enable_checklst"
7620
7621                           if test "$enableval" = yes; then
7622                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7623                           else
7624                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
7625                           fi
7626
7627 else
7628
7629                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7630                           if test "x$LINE" != x ; then
7631                             eval "DEFAULT_$LINE"
7632                           else
7633                             no_cache=1
7634                           fi
7635
7636                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7637
7638 fi;
7639
7640           eval "$ac_cv_use_checklst"
7641           if test "$no_cache" != 1; then
7642             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7643           fi
7644
7645           if test "$wxUSE_CHECKLST" = yes; then
7646             echo "$as_me:$LINENO: result: yes" >&5
7647 echo "${ECHO_T}yes" >&6
7648           else
7649             echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6
7651           fi
7652
7653
7654           enablestring=
7655           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7656 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7657           no_cache=0
7658           # Check whether --enable-choice or --disable-choice was given.
7659 if test "${enable_choice+set}" = set; then
7660   enableval="$enable_choice"
7661
7662                           if test "$enableval" = yes; then
7663                             ac_cv_use_choice='wxUSE_CHOICE=yes'
7664                           else
7665                             ac_cv_use_choice='wxUSE_CHOICE=no'
7666                           fi
7667
7668 else
7669
7670                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7671                           if test "x$LINE" != x ; then
7672                             eval "DEFAULT_$LINE"
7673                           else
7674                             no_cache=1
7675                           fi
7676
7677                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7678
7679 fi;
7680
7681           eval "$ac_cv_use_choice"
7682           if test "$no_cache" != 1; then
7683             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7684           fi
7685
7686           if test "$wxUSE_CHOICE" = yes; then
7687             echo "$as_me:$LINENO: result: yes" >&5
7688 echo "${ECHO_T}yes" >&6
7689           else
7690             echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6
7692           fi
7693
7694
7695           enablestring=
7696           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7697 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7698           no_cache=0
7699           # Check whether --enable-choicebook or --disable-choicebook was given.
7700 if test "${enable_choicebook+set}" = set; then
7701   enableval="$enable_choicebook"
7702
7703                           if test "$enableval" = yes; then
7704                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7705                           else
7706                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7707                           fi
7708
7709 else
7710
7711                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7712                           if test "x$LINE" != x ; then
7713                             eval "DEFAULT_$LINE"
7714                           else
7715                             no_cache=1
7716                           fi
7717
7718                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7719
7720 fi;
7721
7722           eval "$ac_cv_use_choicebook"
7723           if test "$no_cache" != 1; then
7724             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7725           fi
7726
7727           if test "$wxUSE_CHOICEBOOK" = yes; then
7728             echo "$as_me:$LINENO: result: yes" >&5
7729 echo "${ECHO_T}yes" >&6
7730           else
7731             echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6
7733           fi
7734
7735
7736           enablestring=
7737           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7738 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7739           no_cache=0
7740           # Check whether --enable-combobox or --disable-combobox was given.
7741 if test "${enable_combobox+set}" = set; then
7742   enableval="$enable_combobox"
7743
7744                           if test "$enableval" = yes; then
7745                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7746                           else
7747                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7748                           fi
7749
7750 else
7751
7752                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7753                           if test "x$LINE" != x ; then
7754                             eval "DEFAULT_$LINE"
7755                           else
7756                             no_cache=1
7757                           fi
7758
7759                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7760
7761 fi;
7762
7763           eval "$ac_cv_use_combobox"
7764           if test "$no_cache" != 1; then
7765             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7766           fi
7767
7768           if test "$wxUSE_COMBOBOX" = yes; then
7769             echo "$as_me:$LINENO: result: yes" >&5
7770 echo "${ECHO_T}yes" >&6
7771           else
7772             echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6
7774           fi
7775
7776
7777           enablestring=
7778           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7779 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7780           no_cache=0
7781           # Check whether --enable-datepick or --disable-datepick was given.
7782 if test "${enable_datepick+set}" = set; then
7783   enableval="$enable_datepick"
7784
7785                           if test "$enableval" = yes; then
7786                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7787                           else
7788                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7789                           fi
7790
7791 else
7792
7793                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7794                           if test "x$LINE" != x ; then
7795                             eval "DEFAULT_$LINE"
7796                           else
7797                             no_cache=1
7798                           fi
7799
7800                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7801
7802 fi;
7803
7804           eval "$ac_cv_use_datepick"
7805           if test "$no_cache" != 1; then
7806             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7807           fi
7808
7809           if test "$wxUSE_DATEPICKCTRL" = yes; then
7810             echo "$as_me:$LINENO: result: yes" >&5
7811 echo "${ECHO_T}yes" >&6
7812           else
7813             echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6
7815           fi
7816
7817
7818           enablestring=
7819           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7820 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7821           no_cache=0
7822           # Check whether --enable-display or --disable-display was given.
7823 if test "${enable_display+set}" = set; then
7824   enableval="$enable_display"
7825
7826                           if test "$enableval" = yes; then
7827                             ac_cv_use_display='wxUSE_DISPLAY=yes'
7828                           else
7829                             ac_cv_use_display='wxUSE_DISPLAY=no'
7830                           fi
7831
7832 else
7833
7834                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7835                           if test "x$LINE" != x ; then
7836                             eval "DEFAULT_$LINE"
7837                           else
7838                             no_cache=1
7839                           fi
7840
7841                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7842
7843 fi;
7844
7845           eval "$ac_cv_use_display"
7846           if test "$no_cache" != 1; then
7847             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7848           fi
7849
7850           if test "$wxUSE_DISPLAY" = yes; then
7851             echo "$as_me:$LINENO: result: yes" >&5
7852 echo "${ECHO_T}yes" >&6
7853           else
7854             echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6
7856           fi
7857
7858
7859           enablestring=
7860           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7861 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7862           no_cache=0
7863           # Check whether --enable-gauge or --disable-gauge was given.
7864 if test "${enable_gauge+set}" = set; then
7865   enableval="$enable_gauge"
7866
7867                           if test "$enableval" = yes; then
7868                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
7869                           else
7870                             ac_cv_use_gauge='wxUSE_GAUGE=no'
7871                           fi
7872
7873 else
7874
7875                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7876                           if test "x$LINE" != x ; then
7877                             eval "DEFAULT_$LINE"
7878                           else
7879                             no_cache=1
7880                           fi
7881
7882                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7883
7884 fi;
7885
7886           eval "$ac_cv_use_gauge"
7887           if test "$no_cache" != 1; then
7888             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7889           fi
7890
7891           if test "$wxUSE_GAUGE" = yes; then
7892             echo "$as_me:$LINENO: result: yes" >&5
7893 echo "${ECHO_T}yes" >&6
7894           else
7895             echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6
7897           fi
7898
7899
7900           enablestring=
7901           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7902 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7903           no_cache=0
7904           # Check whether --enable-grid or --disable-grid was given.
7905 if test "${enable_grid+set}" = set; then
7906   enableval="$enable_grid"
7907
7908                           if test "$enableval" = yes; then
7909                             ac_cv_use_grid='wxUSE_GRID=yes'
7910                           else
7911                             ac_cv_use_grid='wxUSE_GRID=no'
7912                           fi
7913
7914 else
7915
7916                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7917                           if test "x$LINE" != x ; then
7918                             eval "DEFAULT_$LINE"
7919                           else
7920                             no_cache=1
7921                           fi
7922
7923                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7924
7925 fi;
7926
7927           eval "$ac_cv_use_grid"
7928           if test "$no_cache" != 1; then
7929             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7930           fi
7931
7932           if test "$wxUSE_GRID" = yes; then
7933             echo "$as_me:$LINENO: result: yes" >&5
7934 echo "${ECHO_T}yes" >&6
7935           else
7936             echo "$as_me:$LINENO: result: no" >&5
7937 echo "${ECHO_T}no" >&6
7938           fi
7939
7940
7941           enablestring=
7942           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7943 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7944           no_cache=0
7945           # Check whether --enable-imaglist or --disable-imaglist was given.
7946 if test "${enable_imaglist+set}" = set; then
7947   enableval="$enable_imaglist"
7948
7949                           if test "$enableval" = yes; then
7950                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7951                           else
7952                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7953                           fi
7954
7955 else
7956
7957                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7958                           if test "x$LINE" != x ; then
7959                             eval "DEFAULT_$LINE"
7960                           else
7961                             no_cache=1
7962                           fi
7963
7964                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7965
7966 fi;
7967
7968           eval "$ac_cv_use_imaglist"
7969           if test "$no_cache" != 1; then
7970             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7971           fi
7972
7973           if test "$wxUSE_IMAGLIST" = yes; then
7974             echo "$as_me:$LINENO: result: yes" >&5
7975 echo "${ECHO_T}yes" >&6
7976           else
7977             echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6
7979           fi
7980
7981
7982           enablestring=
7983           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7984 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7985           no_cache=0
7986           # Check whether --enable-listbook or --disable-listbook was given.
7987 if test "${enable_listbook+set}" = set; then
7988   enableval="$enable_listbook"
7989
7990                           if test "$enableval" = yes; then
7991                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7992                           else
7993                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7994                           fi
7995
7996 else
7997
7998                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7999                           if test "x$LINE" != x ; then
8000                             eval "DEFAULT_$LINE"
8001                           else
8002                             no_cache=1
8003                           fi
8004
8005                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8006
8007 fi;
8008
8009           eval "$ac_cv_use_listbook"
8010           if test "$no_cache" != 1; then
8011             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8012           fi
8013
8014           if test "$wxUSE_LISTBOOK" = yes; then
8015             echo "$as_me:$LINENO: result: yes" >&5
8016 echo "${ECHO_T}yes" >&6
8017           else
8018             echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6
8020           fi
8021
8022
8023           enablestring=
8024           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8025 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8026           no_cache=0
8027           # Check whether --enable-listbox or --disable-listbox was given.
8028 if test "${enable_listbox+set}" = set; then
8029   enableval="$enable_listbox"
8030
8031                           if test "$enableval" = yes; then
8032                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8033                           else
8034                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
8035                           fi
8036
8037 else
8038
8039                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8040                           if test "x$LINE" != x ; then
8041                             eval "DEFAULT_$LINE"
8042                           else
8043                             no_cache=1
8044                           fi
8045
8046                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8047
8048 fi;
8049
8050           eval "$ac_cv_use_listbox"
8051           if test "$no_cache" != 1; then
8052             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8053           fi
8054
8055           if test "$wxUSE_LISTBOX" = yes; then
8056             echo "$as_me:$LINENO: result: yes" >&5
8057 echo "${ECHO_T}yes" >&6
8058           else
8059             echo "$as_me:$LINENO: result: no" >&5
8060 echo "${ECHO_T}no" >&6
8061           fi
8062
8063
8064           enablestring=
8065           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8066 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8067           no_cache=0
8068           # Check whether --enable-listctrl or --disable-listctrl was given.
8069 if test "${enable_listctrl+set}" = set; then
8070   enableval="$enable_listctrl"
8071
8072                           if test "$enableval" = yes; then
8073                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8074                           else
8075                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8076                           fi
8077
8078 else
8079
8080                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8081                           if test "x$LINE" != x ; then
8082                             eval "DEFAULT_$LINE"
8083                           else
8084                             no_cache=1
8085                           fi
8086
8087                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8088
8089 fi;
8090
8091           eval "$ac_cv_use_listctrl"
8092           if test "$no_cache" != 1; then
8093             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8094           fi
8095
8096           if test "$wxUSE_LISTCTRL" = yes; then
8097             echo "$as_me:$LINENO: result: yes" >&5
8098 echo "${ECHO_T}yes" >&6
8099           else
8100             echo "$as_me:$LINENO: result: no" >&5
8101 echo "${ECHO_T}no" >&6
8102           fi
8103
8104
8105           enablestring=
8106           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8107 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8108           no_cache=0
8109           # Check whether --enable-notebook or --disable-notebook was given.
8110 if test "${enable_notebook+set}" = set; then
8111   enableval="$enable_notebook"
8112
8113                           if test "$enableval" = yes; then
8114                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8115                           else
8116                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8117                           fi
8118
8119 else
8120
8121                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8122                           if test "x$LINE" != x ; then
8123                             eval "DEFAULT_$LINE"
8124                           else
8125                             no_cache=1
8126                           fi
8127
8128                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8129
8130 fi;
8131
8132           eval "$ac_cv_use_notebook"
8133           if test "$no_cache" != 1; then
8134             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8135           fi
8136
8137           if test "$wxUSE_NOTEBOOK" = yes; then
8138             echo "$as_me:$LINENO: result: yes" >&5
8139 echo "${ECHO_T}yes" >&6
8140           else
8141             echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6
8143           fi
8144
8145
8146           enablestring=
8147           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8148 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8149           no_cache=0
8150           # Check whether --enable-radiobox or --disable-radiobox was given.
8151 if test "${enable_radiobox+set}" = set; then
8152   enableval="$enable_radiobox"
8153
8154                           if test "$enableval" = yes; then
8155                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8156                           else
8157                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8158                           fi
8159
8160 else
8161
8162                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8163                           if test "x$LINE" != x ; then
8164                             eval "DEFAULT_$LINE"
8165                           else
8166                             no_cache=1
8167                           fi
8168
8169                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8170
8171 fi;
8172
8173           eval "$ac_cv_use_radiobox"
8174           if test "$no_cache" != 1; then
8175             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8176           fi
8177
8178           if test "$wxUSE_RADIOBOX" = yes; then
8179             echo "$as_me:$LINENO: result: yes" >&5
8180 echo "${ECHO_T}yes" >&6
8181           else
8182             echo "$as_me:$LINENO: result: no" >&5
8183 echo "${ECHO_T}no" >&6
8184           fi
8185
8186
8187           enablestring=
8188           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8189 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8190           no_cache=0
8191           # Check whether --enable-radiobtn or --disable-radiobtn was given.
8192 if test "${enable_radiobtn+set}" = set; then
8193   enableval="$enable_radiobtn"
8194
8195                           if test "$enableval" = yes; then
8196                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8197                           else
8198                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8199                           fi
8200
8201 else
8202
8203                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8204                           if test "x$LINE" != x ; then
8205                             eval "DEFAULT_$LINE"
8206                           else
8207                             no_cache=1
8208                           fi
8209
8210                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8211
8212 fi;
8213
8214           eval "$ac_cv_use_radiobtn"
8215           if test "$no_cache" != 1; then
8216             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8217           fi
8218
8219           if test "$wxUSE_RADIOBTN" = yes; then
8220             echo "$as_me:$LINENO: result: yes" >&5
8221 echo "${ECHO_T}yes" >&6
8222           else
8223             echo "$as_me:$LINENO: result: no" >&5
8224 echo "${ECHO_T}no" >&6
8225           fi
8226
8227
8228           enablestring=
8229           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8230 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8231           no_cache=0
8232           # Check whether --enable-sash or --disable-sash was given.
8233 if test "${enable_sash+set}" = set; then
8234   enableval="$enable_sash"
8235
8236                           if test "$enableval" = yes; then
8237                             ac_cv_use_sash='wxUSE_SASH=yes'
8238                           else
8239                             ac_cv_use_sash='wxUSE_SASH=no'
8240                           fi
8241
8242 else
8243
8244                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8245                           if test "x$LINE" != x ; then
8246                             eval "DEFAULT_$LINE"
8247                           else
8248                             no_cache=1
8249                           fi
8250
8251                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8252
8253 fi;
8254
8255           eval "$ac_cv_use_sash"
8256           if test "$no_cache" != 1; then
8257             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8258           fi
8259
8260           if test "$wxUSE_SASH" = yes; then
8261             echo "$as_me:$LINENO: result: yes" >&5
8262 echo "${ECHO_T}yes" >&6
8263           else
8264             echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6
8266           fi
8267
8268
8269           enablestring=
8270           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8271 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8272           no_cache=0
8273           # Check whether --enable-scrollbar or --disable-scrollbar was given.
8274 if test "${enable_scrollbar+set}" = set; then
8275   enableval="$enable_scrollbar"
8276
8277                           if test "$enableval" = yes; then
8278                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8279                           else
8280                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8281                           fi
8282
8283 else
8284
8285                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8286                           if test "x$LINE" != x ; then
8287                             eval "DEFAULT_$LINE"
8288                           else
8289                             no_cache=1
8290                           fi
8291
8292                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8293
8294 fi;
8295
8296           eval "$ac_cv_use_scrollbar"
8297           if test "$no_cache" != 1; then
8298             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8299           fi
8300
8301           if test "$wxUSE_SCROLLBAR" = yes; then
8302             echo "$as_me:$LINENO: result: yes" >&5
8303 echo "${ECHO_T}yes" >&6
8304           else
8305             echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6
8307           fi
8308
8309
8310           enablestring=
8311           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8312 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8313           no_cache=0
8314           # Check whether --enable-slider or --disable-slider was given.
8315 if test "${enable_slider+set}" = set; then
8316   enableval="$enable_slider"
8317
8318                           if test "$enableval" = yes; then
8319                             ac_cv_use_slider='wxUSE_SLIDER=yes'
8320                           else
8321                             ac_cv_use_slider='wxUSE_SLIDER=no'
8322                           fi
8323
8324 else
8325
8326                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8327                           if test "x$LINE" != x ; then
8328                             eval "DEFAULT_$LINE"
8329                           else
8330                             no_cache=1
8331                           fi
8332
8333                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8334
8335 fi;
8336
8337           eval "$ac_cv_use_slider"
8338           if test "$no_cache" != 1; then
8339             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8340           fi
8341
8342           if test "$wxUSE_SLIDER" = yes; then
8343             echo "$as_me:$LINENO: result: yes" >&5
8344 echo "${ECHO_T}yes" >&6
8345           else
8346             echo "$as_me:$LINENO: result: no" >&5
8347 echo "${ECHO_T}no" >&6
8348           fi
8349
8350
8351           enablestring=
8352           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8353 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8354           no_cache=0
8355           # Check whether --enable-spinbtn or --disable-spinbtn was given.
8356 if test "${enable_spinbtn+set}" = set; then
8357   enableval="$enable_spinbtn"
8358
8359                           if test "$enableval" = yes; then
8360                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8361                           else
8362                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8363                           fi
8364
8365 else
8366
8367                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8368                           if test "x$LINE" != x ; then
8369                             eval "DEFAULT_$LINE"
8370                           else
8371                             no_cache=1
8372                           fi
8373
8374                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8375
8376 fi;
8377
8378           eval "$ac_cv_use_spinbtn"
8379           if test "$no_cache" != 1; then
8380             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8381           fi
8382
8383           if test "$wxUSE_SPINBTN" = yes; then
8384             echo "$as_me:$LINENO: result: yes" >&5
8385 echo "${ECHO_T}yes" >&6
8386           else
8387             echo "$as_me:$LINENO: result: no" >&5
8388 echo "${ECHO_T}no" >&6
8389           fi
8390
8391
8392           enablestring=
8393           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8394 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8395           no_cache=0
8396           # Check whether --enable-spinctrl or --disable-spinctrl was given.
8397 if test "${enable_spinctrl+set}" = set; then
8398   enableval="$enable_spinctrl"
8399
8400                           if test "$enableval" = yes; then
8401                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8402                           else
8403                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8404                           fi
8405
8406 else
8407
8408                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8409                           if test "x$LINE" != x ; then
8410                             eval "DEFAULT_$LINE"
8411                           else
8412                             no_cache=1
8413                           fi
8414
8415                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8416
8417 fi;
8418
8419           eval "$ac_cv_use_spinctrl"
8420           if test "$no_cache" != 1; then
8421             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8422           fi
8423
8424           if test "$wxUSE_SPINCTRL" = yes; then
8425             echo "$as_me:$LINENO: result: yes" >&5
8426 echo "${ECHO_T}yes" >&6
8427           else
8428             echo "$as_me:$LINENO: result: no" >&5
8429 echo "${ECHO_T}no" >&6
8430           fi
8431
8432
8433           enablestring=
8434           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8435 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8436           no_cache=0
8437           # Check whether --enable-splitter or --disable-splitter was given.
8438 if test "${enable_splitter+set}" = set; then
8439   enableval="$enable_splitter"
8440
8441                           if test "$enableval" = yes; then
8442                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8443                           else
8444                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
8445                           fi
8446
8447 else
8448
8449                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8450                           if test "x$LINE" != x ; then
8451                             eval "DEFAULT_$LINE"
8452                           else
8453                             no_cache=1
8454                           fi
8455
8456                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8457
8458 fi;
8459
8460           eval "$ac_cv_use_splitter"
8461           if test "$no_cache" != 1; then
8462             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8463           fi
8464
8465           if test "$wxUSE_SPLITTER" = yes; then
8466             echo "$as_me:$LINENO: result: yes" >&5
8467 echo "${ECHO_T}yes" >&6
8468           else
8469             echo "$as_me:$LINENO: result: no" >&5
8470 echo "${ECHO_T}no" >&6
8471           fi
8472
8473
8474           enablestring=
8475           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8476 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8477           no_cache=0
8478           # Check whether --enable-statbmp or --disable-statbmp was given.
8479 if test "${enable_statbmp+set}" = set; then
8480   enableval="$enable_statbmp"
8481
8482                           if test "$enableval" = yes; then
8483                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8484                           else
8485                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
8486                           fi
8487
8488 else
8489
8490                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8491                           if test "x$LINE" != x ; then
8492                             eval "DEFAULT_$LINE"
8493                           else
8494                             no_cache=1
8495                           fi
8496
8497                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8498
8499 fi;
8500
8501           eval "$ac_cv_use_statbmp"
8502           if test "$no_cache" != 1; then
8503             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8504           fi
8505
8506           if test "$wxUSE_STATBMP" = yes; then
8507             echo "$as_me:$LINENO: result: yes" >&5
8508 echo "${ECHO_T}yes" >&6
8509           else
8510             echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6
8512           fi
8513
8514
8515           enablestring=
8516           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8517 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8518           no_cache=0
8519           # Check whether --enable-statbox or --disable-statbox was given.
8520 if test "${enable_statbox+set}" = set; then
8521   enableval="$enable_statbox"
8522
8523                           if test "$enableval" = yes; then
8524                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
8525                           else
8526                             ac_cv_use_statbox='wxUSE_STATBOX=no'
8527                           fi
8528
8529 else
8530
8531                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8532                           if test "x$LINE" != x ; then
8533                             eval "DEFAULT_$LINE"
8534                           else
8535                             no_cache=1
8536                           fi
8537
8538                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8539
8540 fi;
8541
8542           eval "$ac_cv_use_statbox"
8543           if test "$no_cache" != 1; then
8544             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8545           fi
8546
8547           if test "$wxUSE_STATBOX" = yes; then
8548             echo "$as_me:$LINENO: result: yes" >&5
8549 echo "${ECHO_T}yes" >&6
8550           else
8551             echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6
8553           fi
8554
8555
8556           enablestring=
8557           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8558 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8559           no_cache=0
8560           # Check whether --enable-statline or --disable-statline was given.
8561 if test "${enable_statline+set}" = set; then
8562   enableval="$enable_statline"
8563
8564                           if test "$enableval" = yes; then
8565                             ac_cv_use_statline='wxUSE_STATLINE=yes'
8566                           else
8567                             ac_cv_use_statline='wxUSE_STATLINE=no'
8568                           fi
8569
8570 else
8571
8572                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8573                           if test "x$LINE" != x ; then
8574                             eval "DEFAULT_$LINE"
8575                           else
8576                             no_cache=1
8577                           fi
8578
8579                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8580
8581 fi;
8582
8583           eval "$ac_cv_use_statline"
8584           if test "$no_cache" != 1; then
8585             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8586           fi
8587
8588           if test "$wxUSE_STATLINE" = yes; then
8589             echo "$as_me:$LINENO: result: yes" >&5
8590 echo "${ECHO_T}yes" >&6
8591           else
8592             echo "$as_me:$LINENO: result: no" >&5
8593 echo "${ECHO_T}no" >&6
8594           fi
8595
8596
8597           enablestring=
8598           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8599 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8600           no_cache=0
8601           # Check whether --enable-stattext or --disable-stattext was given.
8602 if test "${enable_stattext+set}" = set; then
8603   enableval="$enable_stattext"
8604
8605                           if test "$enableval" = yes; then
8606                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8607                           else
8608                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
8609                           fi
8610
8611 else
8612
8613                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8614                           if test "x$LINE" != x ; then
8615                             eval "DEFAULT_$LINE"
8616                           else
8617                             no_cache=1
8618                           fi
8619
8620                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8621
8622 fi;
8623
8624           eval "$ac_cv_use_stattext"
8625           if test "$no_cache" != 1; then
8626             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8627           fi
8628
8629           if test "$wxUSE_STATTEXT" = yes; then
8630             echo "$as_me:$LINENO: result: yes" >&5
8631 echo "${ECHO_T}yes" >&6
8632           else
8633             echo "$as_me:$LINENO: result: no" >&5
8634 echo "${ECHO_T}no" >&6
8635           fi
8636
8637
8638           enablestring=
8639           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8640 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8641           no_cache=0
8642           # Check whether --enable-statusbar or --disable-statusbar was given.
8643 if test "${enable_statusbar+set}" = set; then
8644   enableval="$enable_statusbar"
8645
8646                           if test "$enableval" = yes; then
8647                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8648                           else
8649                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8650                           fi
8651
8652 else
8653
8654                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8655                           if test "x$LINE" != x ; then
8656                             eval "DEFAULT_$LINE"
8657                           else
8658                             no_cache=1
8659                           fi
8660
8661                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8662
8663 fi;
8664
8665           eval "$ac_cv_use_statusbar"
8666           if test "$no_cache" != 1; then
8667             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8668           fi
8669
8670           if test "$wxUSE_STATUSBAR" = yes; then
8671             echo "$as_me:$LINENO: result: yes" >&5
8672 echo "${ECHO_T}yes" >&6
8673           else
8674             echo "$as_me:$LINENO: result: no" >&5
8675 echo "${ECHO_T}no" >&6
8676           fi
8677
8678
8679           enablestring=
8680           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8681 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8682           no_cache=0
8683           # Check whether --enable-tabdialog or --disable-tabdialog was given.
8684 if test "${enable_tabdialog+set}" = set; then
8685   enableval="$enable_tabdialog"
8686
8687                           if test "$enableval" = yes; then
8688                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8689                           else
8690                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8691                           fi
8692
8693 else
8694
8695                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8696                           if test "x$LINE" != x ; then
8697                             eval "DEFAULT_$LINE"
8698                           else
8699                             no_cache=1
8700                           fi
8701
8702                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8703
8704 fi;
8705
8706           eval "$ac_cv_use_tabdialog"
8707           if test "$no_cache" != 1; then
8708             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8709           fi
8710
8711           if test "$wxUSE_TABDIALOG" = yes; then
8712             echo "$as_me:$LINENO: result: yes" >&5
8713 echo "${ECHO_T}yes" >&6
8714           else
8715             echo "$as_me:$LINENO: result: no" >&5
8716 echo "${ECHO_T}no" >&6
8717           fi
8718
8719
8720           enablestring=
8721           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8722 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8723           no_cache=0
8724           # Check whether --enable-textctrl or --disable-textctrl was given.
8725 if test "${enable_textctrl+set}" = set; then
8726   enableval="$enable_textctrl"
8727
8728                           if test "$enableval" = yes; then
8729                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8730                           else
8731                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8732                           fi
8733
8734 else
8735
8736                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8737                           if test "x$LINE" != x ; then
8738                             eval "DEFAULT_$LINE"
8739                           else
8740                             no_cache=1
8741                           fi
8742
8743                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8744
8745 fi;
8746
8747           eval "$ac_cv_use_textctrl"
8748           if test "$no_cache" != 1; then
8749             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8750           fi
8751
8752           if test "$wxUSE_TEXTCTRL" = yes; then
8753             echo "$as_me:$LINENO: result: yes" >&5
8754 echo "${ECHO_T}yes" >&6
8755           else
8756             echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8758           fi
8759
8760
8761           enablestring=
8762           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8763 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8764           no_cache=0
8765           # Check whether --enable-togglebtn or --disable-togglebtn was given.
8766 if test "${enable_togglebtn+set}" = set; then
8767   enableval="$enable_togglebtn"
8768
8769                           if test "$enableval" = yes; then
8770                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8771                           else
8772                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8773                           fi
8774
8775 else
8776
8777                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8778                           if test "x$LINE" != x ; then
8779                             eval "DEFAULT_$LINE"
8780                           else
8781                             no_cache=1
8782                           fi
8783
8784                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8785
8786 fi;
8787
8788           eval "$ac_cv_use_togglebtn"
8789           if test "$no_cache" != 1; then
8790             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8791           fi
8792
8793           if test "$wxUSE_TOGGLEBTN" = yes; then
8794             echo "$as_me:$LINENO: result: yes" >&5
8795 echo "${ECHO_T}yes" >&6
8796           else
8797             echo "$as_me:$LINENO: result: no" >&5
8798 echo "${ECHO_T}no" >&6
8799           fi
8800
8801
8802           enablestring=
8803           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8804 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8805           no_cache=0
8806           # Check whether --enable-toolbar or --disable-toolbar was given.
8807 if test "${enable_toolbar+set}" = set; then
8808   enableval="$enable_toolbar"
8809
8810                           if test "$enableval" = yes; then
8811                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8812                           else
8813                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8814                           fi
8815
8816 else
8817
8818                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8819                           if test "x$LINE" != x ; then
8820                             eval "DEFAULT_$LINE"
8821                           else
8822                             no_cache=1
8823                           fi
8824
8825                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8826
8827 fi;
8828
8829           eval "$ac_cv_use_toolbar"
8830           if test "$no_cache" != 1; then
8831             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8832           fi
8833
8834           if test "$wxUSE_TOOLBAR" = yes; then
8835             echo "$as_me:$LINENO: result: yes" >&5
8836 echo "${ECHO_T}yes" >&6
8837           else
8838             echo "$as_me:$LINENO: result: no" >&5
8839 echo "${ECHO_T}no" >&6
8840           fi
8841
8842
8843           enablestring=
8844           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8845 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8846           no_cache=0
8847           # Check whether --enable-tbarnative or --disable-tbarnative was given.
8848 if test "${enable_tbarnative+set}" = set; then
8849   enableval="$enable_tbarnative"
8850
8851                           if test "$enableval" = yes; then
8852                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8853                           else
8854                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8855                           fi
8856
8857 else
8858
8859                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8860                           if test "x$LINE" != x ; then
8861                             eval "DEFAULT_$LINE"
8862                           else
8863                             no_cache=1
8864                           fi
8865
8866                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8867
8868 fi;
8869
8870           eval "$ac_cv_use_tbarnative"
8871           if test "$no_cache" != 1; then
8872             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8873           fi
8874
8875           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8876             echo "$as_me:$LINENO: result: yes" >&5
8877 echo "${ECHO_T}yes" >&6
8878           else
8879             echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8881           fi
8882
8883
8884           enablestring=
8885           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8886 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8887           no_cache=0
8888           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8889 if test "${enable_tbarsmpl+set}" = set; then
8890   enableval="$enable_tbarsmpl"
8891
8892                           if test "$enableval" = yes; then
8893                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8894                           else
8895                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8896                           fi
8897
8898 else
8899
8900                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8901                           if test "x$LINE" != x ; then
8902                             eval "DEFAULT_$LINE"
8903                           else
8904                             no_cache=1
8905                           fi
8906
8907                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8908
8909 fi;
8910
8911           eval "$ac_cv_use_tbarsmpl"
8912           if test "$no_cache" != 1; then
8913             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8914           fi
8915
8916           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8917             echo "$as_me:$LINENO: result: yes" >&5
8918 echo "${ECHO_T}yes" >&6
8919           else
8920             echo "$as_me:$LINENO: result: no" >&5
8921 echo "${ECHO_T}no" >&6
8922           fi
8923
8924
8925           enablestring=
8926           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8927 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8928           no_cache=0
8929           # Check whether --enable-treectrl or --disable-treectrl was given.
8930 if test "${enable_treectrl+set}" = set; then
8931   enableval="$enable_treectrl"
8932
8933                           if test "$enableval" = yes; then
8934                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8935                           else
8936                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8937                           fi
8938
8939 else
8940
8941                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8942                           if test "x$LINE" != x ; then
8943                             eval "DEFAULT_$LINE"
8944                           else
8945                             no_cache=1
8946                           fi
8947
8948                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8949
8950 fi;
8951
8952           eval "$ac_cv_use_treectrl"
8953           if test "$no_cache" != 1; then
8954             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8955           fi
8956
8957           if test "$wxUSE_TREECTRL" = yes; then
8958             echo "$as_me:$LINENO: result: yes" >&5
8959 echo "${ECHO_T}yes" >&6
8960           else
8961             echo "$as_me:$LINENO: result: no" >&5
8962 echo "${ECHO_T}no" >&6
8963           fi
8964
8965
8966           enablestring=
8967           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8968 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8969           no_cache=0
8970           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8971 if test "${enable_tipwindow+set}" = set; then
8972   enableval="$enable_tipwindow"
8973
8974                           if test "$enableval" = yes; then
8975                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8976                           else
8977                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8978                           fi
8979
8980 else
8981
8982                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8983                           if test "x$LINE" != x ; then
8984                             eval "DEFAULT_$LINE"
8985                           else
8986                             no_cache=1
8987                           fi
8988
8989                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8990
8991 fi;
8992
8993           eval "$ac_cv_use_tipwindow"
8994           if test "$no_cache" != 1; then
8995             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8996           fi
8997
8998           if test "$wxUSE_TIPWINDOW" = yes; then
8999             echo "$as_me:$LINENO: result: yes" >&5
9000 echo "${ECHO_T}yes" >&6
9001           else
9002             echo "$as_me:$LINENO: result: no" >&5
9003 echo "${ECHO_T}no" >&6
9004           fi
9005
9006
9007           enablestring=
9008           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9009 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9010           no_cache=0
9011           # Check whether --enable-popupwin or --disable-popupwin was given.
9012 if test "${enable_popupwin+set}" = set; then
9013   enableval="$enable_popupwin"
9014
9015                           if test "$enableval" = yes; then
9016                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9017                           else
9018                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9019                           fi
9020
9021 else
9022
9023                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9024                           if test "x$LINE" != x ; then
9025                             eval "DEFAULT_$LINE"
9026                           else
9027                             no_cache=1
9028                           fi
9029
9030                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9031
9032 fi;
9033
9034           eval "$ac_cv_use_popupwin"
9035           if test "$no_cache" != 1; then
9036             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9037           fi
9038
9039           if test "$wxUSE_POPUPWIN" = yes; then
9040             echo "$as_me:$LINENO: result: yes" >&5
9041 echo "${ECHO_T}yes" >&6
9042           else
9043             echo "$as_me:$LINENO: result: no" >&5
9044 echo "${ECHO_T}no" >&6
9045           fi
9046
9047
9048
9049
9050           enablestring=
9051           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9052 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9053           no_cache=0
9054           # Check whether --enable-commondlg or --disable-commondlg was given.
9055 if test "${enable_commondlg+set}" = set; then
9056   enableval="$enable_commondlg"
9057
9058                           if test "$enableval" = yes; then
9059                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9060                           else
9061                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9062                           fi
9063
9064 else
9065
9066                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9067                           if test "x$LINE" != x ; then
9068                             eval "DEFAULT_$LINE"
9069                           else
9070                             no_cache=1
9071                           fi
9072
9073                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9074
9075 fi;
9076
9077           eval "$ac_cv_use_commondlg"
9078           if test "$no_cache" != 1; then
9079             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9080           fi
9081
9082           if test "$wxUSE_COMMONDLGS" = yes; then
9083             echo "$as_me:$LINENO: result: yes" >&5
9084 echo "${ECHO_T}yes" >&6
9085           else
9086             echo "$as_me:$LINENO: result: no" >&5
9087 echo "${ECHO_T}no" >&6
9088           fi
9089
9090
9091           enablestring=
9092           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9093 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9094           no_cache=0
9095           # Check whether --enable-choicedlg or --disable-choicedlg was given.
9096 if test "${enable_choicedlg+set}" = set; then
9097   enableval="$enable_choicedlg"
9098
9099                           if test "$enableval" = yes; then
9100                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9101                           else
9102                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9103                           fi
9104
9105 else
9106
9107                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9108                           if test "x$LINE" != x ; then
9109                             eval "DEFAULT_$LINE"
9110                           else
9111                             no_cache=1
9112                           fi
9113
9114                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9115
9116 fi;
9117
9118           eval "$ac_cv_use_choicedlg"
9119           if test "$no_cache" != 1; then
9120             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9121           fi
9122
9123           if test "$wxUSE_CHOICEDLG" = yes; then
9124             echo "$as_me:$LINENO: result: yes" >&5
9125 echo "${ECHO_T}yes" >&6
9126           else
9127             echo "$as_me:$LINENO: result: no" >&5
9128 echo "${ECHO_T}no" >&6
9129           fi
9130
9131
9132           enablestring=
9133           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9134 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9135           no_cache=0
9136           # Check whether --enable-coldlg or --disable-coldlg was given.
9137 if test "${enable_coldlg+set}" = set; then
9138   enableval="$enable_coldlg"
9139
9140                           if test "$enableval" = yes; then
9141                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9142                           else
9143                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9144                           fi
9145
9146 else
9147
9148                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9149                           if test "x$LINE" != x ; then
9150                             eval "DEFAULT_$LINE"
9151                           else
9152                             no_cache=1
9153                           fi
9154
9155                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9156
9157 fi;
9158
9159           eval "$ac_cv_use_coldlg"
9160           if test "$no_cache" != 1; then
9161             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9162           fi
9163
9164           if test "$wxUSE_COLOURDLG" = yes; then
9165             echo "$as_me:$LINENO: result: yes" >&5
9166 echo "${ECHO_T}yes" >&6
9167           else
9168             echo "$as_me:$LINENO: result: no" >&5
9169 echo "${ECHO_T}no" >&6
9170           fi
9171
9172
9173           enablestring=
9174           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9175 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9176           no_cache=0
9177           # Check whether --enable-filedlg or --disable-filedlg was given.
9178 if test "${enable_filedlg+set}" = set; then
9179   enableval="$enable_filedlg"
9180
9181                           if test "$enableval" = yes; then
9182                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9183                           else
9184                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9185                           fi
9186
9187 else
9188
9189                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9190                           if test "x$LINE" != x ; then
9191                             eval "DEFAULT_$LINE"
9192                           else
9193                             no_cache=1
9194                           fi
9195
9196                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9197
9198 fi;
9199
9200           eval "$ac_cv_use_filedlg"
9201           if test "$no_cache" != 1; then
9202             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9203           fi
9204
9205           if test "$wxUSE_FILEDLG" = yes; then
9206             echo "$as_me:$LINENO: result: yes" >&5
9207 echo "${ECHO_T}yes" >&6
9208           else
9209             echo "$as_me:$LINENO: result: no" >&5
9210 echo "${ECHO_T}no" >&6
9211           fi
9212
9213
9214           enablestring=
9215           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9216 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9217           no_cache=0
9218           # Check whether --enable-finddlg or --disable-finddlg was given.
9219 if test "${enable_finddlg+set}" = set; then
9220   enableval="$enable_finddlg"
9221
9222                           if test "$enableval" = yes; then
9223                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9224                           else
9225                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9226                           fi
9227
9228 else
9229
9230                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9231                           if test "x$LINE" != x ; then
9232                             eval "DEFAULT_$LINE"
9233                           else
9234                             no_cache=1
9235                           fi
9236
9237                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9238
9239 fi;
9240
9241           eval "$ac_cv_use_finddlg"
9242           if test "$no_cache" != 1; then
9243             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9244           fi
9245
9246           if test "$wxUSE_FINDREPLDLG" = yes; then
9247             echo "$as_me:$LINENO: result: yes" >&5
9248 echo "${ECHO_T}yes" >&6
9249           else
9250             echo "$as_me:$LINENO: result: no" >&5
9251 echo "${ECHO_T}no" >&6
9252           fi
9253
9254
9255           enablestring=
9256           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9257 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9258           no_cache=0
9259           # Check whether --enable-fontdlg or --disable-fontdlg was given.
9260 if test "${enable_fontdlg+set}" = set; then
9261   enableval="$enable_fontdlg"
9262
9263                           if test "$enableval" = yes; then
9264                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9265                           else
9266                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9267                           fi
9268
9269 else
9270
9271                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9272                           if test "x$LINE" != x ; then
9273                             eval "DEFAULT_$LINE"
9274                           else
9275                             no_cache=1
9276                           fi
9277
9278                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9279
9280 fi;
9281
9282           eval "$ac_cv_use_fontdlg"
9283           if test "$no_cache" != 1; then
9284             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9285           fi
9286
9287           if test "$wxUSE_FONTDLG" = yes; then
9288             echo "$as_me:$LINENO: result: yes" >&5
9289 echo "${ECHO_T}yes" >&6
9290           else
9291             echo "$as_me:$LINENO: result: no" >&5
9292 echo "${ECHO_T}no" >&6
9293           fi
9294
9295
9296           enablestring=
9297           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9298 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9299           no_cache=0
9300           # Check whether --enable-dirdlg or --disable-dirdlg was given.
9301 if test "${enable_dirdlg+set}" = set; then
9302   enableval="$enable_dirdlg"
9303
9304                           if test "$enableval" = yes; then
9305                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9306                           else
9307                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9308                           fi
9309
9310 else
9311
9312                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9313                           if test "x$LINE" != x ; then
9314                             eval "DEFAULT_$LINE"
9315                           else
9316                             no_cache=1
9317                           fi
9318
9319                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9320
9321 fi;
9322
9323           eval "$ac_cv_use_dirdlg"
9324           if test "$no_cache" != 1; then
9325             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9326           fi
9327
9328           if test "$wxUSE_DIRDLG" = yes; then
9329             echo "$as_me:$LINENO: result: yes" >&5
9330 echo "${ECHO_T}yes" >&6
9331           else
9332             echo "$as_me:$LINENO: result: no" >&5
9333 echo "${ECHO_T}no" >&6
9334           fi
9335
9336
9337           enablestring=
9338           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9339 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9340           no_cache=0
9341           # Check whether --enable-msgdlg or --disable-msgdlg was given.
9342 if test "${enable_msgdlg+set}" = set; then
9343   enableval="$enable_msgdlg"
9344
9345                           if test "$enableval" = yes; then
9346                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9347                           else
9348                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9349                           fi
9350
9351 else
9352
9353                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9354                           if test "x$LINE" != x ; then
9355                             eval "DEFAULT_$LINE"
9356                           else
9357                             no_cache=1
9358                           fi
9359
9360                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9361
9362 fi;
9363
9364           eval "$ac_cv_use_msgdlg"
9365           if test "$no_cache" != 1; then
9366             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9367           fi
9368
9369           if test "$wxUSE_MSGDLG" = yes; then
9370             echo "$as_me:$LINENO: result: yes" >&5
9371 echo "${ECHO_T}yes" >&6
9372           else
9373             echo "$as_me:$LINENO: result: no" >&5
9374 echo "${ECHO_T}no" >&6
9375           fi
9376
9377
9378           enablestring=
9379           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9380 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9381           no_cache=0
9382           # Check whether --enable-numberdlg or --disable-numberdlg was given.
9383 if test "${enable_numberdlg+set}" = set; then
9384   enableval="$enable_numberdlg"
9385
9386                           if test "$enableval" = yes; then
9387                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9388                           else
9389                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9390                           fi
9391
9392 else
9393
9394                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9395                           if test "x$LINE" != x ; then
9396                             eval "DEFAULT_$LINE"
9397                           else
9398                             no_cache=1
9399                           fi
9400
9401                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9402
9403 fi;
9404
9405           eval "$ac_cv_use_numberdlg"
9406           if test "$no_cache" != 1; then
9407             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9408           fi
9409
9410           if test "$wxUSE_NUMBERDLG" = yes; then
9411             echo "$as_me:$LINENO: result: yes" >&5
9412 echo "${ECHO_T}yes" >&6
9413           else
9414             echo "$as_me:$LINENO: result: no" >&5
9415 echo "${ECHO_T}no" >&6
9416           fi
9417
9418
9419           enablestring=
9420           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9421 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9422           no_cache=0
9423           # Check whether --enable-splash or --disable-splash was given.
9424 if test "${enable_splash+set}" = set; then
9425   enableval="$enable_splash"
9426
9427                           if test "$enableval" = yes; then
9428                             ac_cv_use_splash='wxUSE_SPLASH=yes'
9429                           else
9430                             ac_cv_use_splash='wxUSE_SPLASH=no'
9431                           fi
9432
9433 else
9434
9435                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9436                           if test "x$LINE" != x ; then
9437                             eval "DEFAULT_$LINE"
9438                           else
9439                             no_cache=1
9440                           fi
9441
9442                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9443
9444 fi;
9445
9446           eval "$ac_cv_use_splash"
9447           if test "$no_cache" != 1; then
9448             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9449           fi
9450
9451           if test "$wxUSE_SPLASH" = yes; then
9452             echo "$as_me:$LINENO: result: yes" >&5
9453 echo "${ECHO_T}yes" >&6
9454           else
9455             echo "$as_me:$LINENO: result: no" >&5
9456 echo "${ECHO_T}no" >&6
9457           fi
9458
9459
9460           enablestring=
9461           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9462 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9463           no_cache=0
9464           # Check whether --enable-textdlg or --disable-textdlg was given.
9465 if test "${enable_textdlg+set}" = set; then
9466   enableval="$enable_textdlg"
9467
9468                           if test "$enableval" = yes; then
9469                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9470                           else
9471                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9472                           fi
9473
9474 else
9475
9476                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9477                           if test "x$LINE" != x ; then
9478                             eval "DEFAULT_$LINE"
9479                           else
9480                             no_cache=1
9481                           fi
9482
9483                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9484
9485 fi;
9486
9487           eval "$ac_cv_use_textdlg"
9488           if test "$no_cache" != 1; then
9489             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9490           fi
9491
9492           if test "$wxUSE_TEXTDLG" = yes; then
9493             echo "$as_me:$LINENO: result: yes" >&5
9494 echo "${ECHO_T}yes" >&6
9495           else
9496             echo "$as_me:$LINENO: result: no" >&5
9497 echo "${ECHO_T}no" >&6
9498           fi
9499
9500
9501           enablestring=
9502           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9503 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9504           no_cache=0
9505           # Check whether --enable-tipdlg or --disable-tipdlg was given.
9506 if test "${enable_tipdlg+set}" = set; then
9507   enableval="$enable_tipdlg"
9508
9509                           if test "$enableval" = yes; then
9510                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9511                           else
9512                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9513                           fi
9514
9515 else
9516
9517                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9518                           if test "x$LINE" != x ; then
9519                             eval "DEFAULT_$LINE"
9520                           else
9521                             no_cache=1
9522                           fi
9523
9524                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9525
9526 fi;
9527
9528           eval "$ac_cv_use_tipdlg"
9529           if test "$no_cache" != 1; then
9530             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9531           fi
9532
9533           if test "$wxUSE_STARTUP_TIPS" = yes; then
9534             echo "$as_me:$LINENO: result: yes" >&5
9535 echo "${ECHO_T}yes" >&6
9536           else
9537             echo "$as_me:$LINENO: result: no" >&5
9538 echo "${ECHO_T}no" >&6
9539           fi
9540
9541
9542           enablestring=
9543           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9544 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9545           no_cache=0
9546           # Check whether --enable-progressdlg or --disable-progressdlg was given.
9547 if test "${enable_progressdlg+set}" = set; then
9548   enableval="$enable_progressdlg"
9549
9550                           if test "$enableval" = yes; then
9551                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9552                           else
9553                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9554                           fi
9555
9556 else
9557
9558                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9559                           if test "x$LINE" != x ; then
9560                             eval "DEFAULT_$LINE"
9561                           else
9562                             no_cache=1
9563                           fi
9564
9565                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9566
9567 fi;
9568
9569           eval "$ac_cv_use_progressdlg"
9570           if test "$no_cache" != 1; then
9571             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9572           fi
9573
9574           if test "$wxUSE_PROGRESSDLG" = yes; then
9575             echo "$as_me:$LINENO: result: yes" >&5
9576 echo "${ECHO_T}yes" >&6
9577           else
9578             echo "$as_me:$LINENO: result: no" >&5
9579 echo "${ECHO_T}no" >&6
9580           fi
9581
9582
9583           enablestring=
9584           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9585 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9586           no_cache=0
9587           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9588 if test "${enable_wizarddlg+set}" = set; then
9589   enableval="$enable_wizarddlg"
9590
9591                           if test "$enableval" = yes; then
9592                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9593                           else
9594                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9595                           fi
9596
9597 else
9598
9599                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9600                           if test "x$LINE" != x ; then
9601                             eval "DEFAULT_$LINE"
9602                           else
9603                             no_cache=1
9604                           fi
9605
9606                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9607
9608 fi;
9609
9610           eval "$ac_cv_use_wizarddlg"
9611           if test "$no_cache" != 1; then
9612             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9613           fi
9614
9615           if test "$wxUSE_WIZARDDLG" = yes; then
9616             echo "$as_me:$LINENO: result: yes" >&5
9617 echo "${ECHO_T}yes" >&6
9618           else
9619             echo "$as_me:$LINENO: result: no" >&5
9620 echo "${ECHO_T}no" >&6
9621           fi
9622
9623
9624
9625
9626           enablestring=
9627           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9628 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9629           no_cache=0
9630           # Check whether --enable-menus or --disable-menus was given.
9631 if test "${enable_menus+set}" = set; then
9632   enableval="$enable_menus"
9633
9634                           if test "$enableval" = yes; then
9635                             ac_cv_use_menus='wxUSE_MENUS=yes'
9636                           else
9637                             ac_cv_use_menus='wxUSE_MENUS=no'
9638                           fi
9639
9640 else
9641
9642                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9643                           if test "x$LINE" != x ; then
9644                             eval "DEFAULT_$LINE"
9645                           else
9646                             no_cache=1
9647                           fi
9648
9649                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9650
9651 fi;
9652
9653           eval "$ac_cv_use_menus"
9654           if test "$no_cache" != 1; then
9655             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9656           fi
9657
9658           if test "$wxUSE_MENUS" = yes; then
9659             echo "$as_me:$LINENO: result: yes" >&5
9660 echo "${ECHO_T}yes" >&6
9661           else
9662             echo "$as_me:$LINENO: result: no" >&5
9663 echo "${ECHO_T}no" >&6
9664           fi
9665
9666
9667           enablestring=
9668           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9669 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9670           no_cache=0
9671           # Check whether --enable-miniframe or --disable-miniframe was given.
9672 if test "${enable_miniframe+set}" = set; then
9673   enableval="$enable_miniframe"
9674
9675                           if test "$enableval" = yes; then
9676                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9677                           else
9678                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9679                           fi
9680
9681 else
9682
9683                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9684                           if test "x$LINE" != x ; then
9685                             eval "DEFAULT_$LINE"
9686                           else
9687                             no_cache=1
9688                           fi
9689
9690                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9691
9692 fi;
9693
9694           eval "$ac_cv_use_miniframe"
9695           if test "$no_cache" != 1; then
9696             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9697           fi
9698
9699           if test "$wxUSE_MINIFRAME" = yes; then
9700             echo "$as_me:$LINENO: result: yes" >&5
9701 echo "${ECHO_T}yes" >&6
9702           else
9703             echo "$as_me:$LINENO: result: no" >&5
9704 echo "${ECHO_T}no" >&6
9705           fi
9706
9707
9708           enablestring=
9709           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9710 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9711           no_cache=0
9712           # Check whether --enable-tooltips or --disable-tooltips was given.
9713 if test "${enable_tooltips+set}" = set; then
9714   enableval="$enable_tooltips"
9715
9716                           if test "$enableval" = yes; then
9717                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9718                           else
9719                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9720                           fi
9721
9722 else
9723
9724                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9725                           if test "x$LINE" != x ; then
9726                             eval "DEFAULT_$LINE"
9727                           else
9728                             no_cache=1
9729                           fi
9730
9731                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9732
9733 fi;
9734
9735           eval "$ac_cv_use_tooltips"
9736           if test "$no_cache" != 1; then
9737             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9738           fi
9739
9740           if test "$wxUSE_TOOLTIPS" = yes; then
9741             echo "$as_me:$LINENO: result: yes" >&5
9742 echo "${ECHO_T}yes" >&6
9743           else
9744             echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6
9746           fi
9747
9748
9749           enablestring=
9750           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9751 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9752           no_cache=0
9753           # Check whether --enable-splines or --disable-splines was given.
9754 if test "${enable_splines+set}" = set; then
9755   enableval="$enable_splines"
9756
9757                           if test "$enableval" = yes; then
9758                             ac_cv_use_splines='wxUSE_SPLINES=yes'
9759                           else
9760                             ac_cv_use_splines='wxUSE_SPLINES=no'
9761                           fi
9762
9763 else
9764
9765                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9766                           if test "x$LINE" != x ; then
9767                             eval "DEFAULT_$LINE"
9768                           else
9769                             no_cache=1
9770                           fi
9771
9772                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9773
9774 fi;
9775
9776           eval "$ac_cv_use_splines"
9777           if test "$no_cache" != 1; then
9778             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9779           fi
9780
9781           if test "$wxUSE_SPLINES" = yes; then
9782             echo "$as_me:$LINENO: result: yes" >&5
9783 echo "${ECHO_T}yes" >&6
9784           else
9785             echo "$as_me:$LINENO: result: no" >&5
9786 echo "${ECHO_T}no" >&6
9787           fi
9788
9789
9790           enablestring=
9791           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9792 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9793           no_cache=0
9794           # Check whether --enable-mousewheel or --disable-mousewheel was given.
9795 if test "${enable_mousewheel+set}" = set; then
9796   enableval="$enable_mousewheel"
9797
9798                           if test "$enableval" = yes; then
9799                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9800                           else
9801                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9802                           fi
9803
9804 else
9805
9806                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9807                           if test "x$LINE" != x ; then
9808                             eval "DEFAULT_$LINE"
9809                           else
9810                             no_cache=1
9811                           fi
9812
9813                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9814
9815 fi;
9816
9817           eval "$ac_cv_use_mousewheel"
9818           if test "$no_cache" != 1; then
9819             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9820           fi
9821
9822           if test "$wxUSE_MOUSEWHEEL" = yes; then
9823             echo "$as_me:$LINENO: result: yes" >&5
9824 echo "${ECHO_T}yes" >&6
9825           else
9826             echo "$as_me:$LINENO: result: no" >&5
9827 echo "${ECHO_T}no" >&6
9828           fi
9829
9830
9831           enablestring=
9832           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9833 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9834           no_cache=0
9835           # Check whether --enable-validators or --disable-validators was given.
9836 if test "${enable_validators+set}" = set; then
9837   enableval="$enable_validators"
9838
9839                           if test "$enableval" = yes; then
9840                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9841                           else
9842                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
9843                           fi
9844
9845 else
9846
9847                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9848                           if test "x$LINE" != x ; then
9849                             eval "DEFAULT_$LINE"
9850                           else
9851                             no_cache=1
9852                           fi
9853
9854                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9855
9856 fi;
9857
9858           eval "$ac_cv_use_validators"
9859           if test "$no_cache" != 1; then
9860             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9861           fi
9862
9863           if test "$wxUSE_VALIDATORS" = yes; then
9864             echo "$as_me:$LINENO: result: yes" >&5
9865 echo "${ECHO_T}yes" >&6
9866           else
9867             echo "$as_me:$LINENO: result: no" >&5
9868 echo "${ECHO_T}no" >&6
9869           fi
9870
9871
9872           enablestring=
9873           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9874 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9875           no_cache=0
9876           # Check whether --enable-busyinfo or --disable-busyinfo was given.
9877 if test "${enable_busyinfo+set}" = set; then
9878   enableval="$enable_busyinfo"
9879
9880                           if test "$enableval" = yes; then
9881                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9882                           else
9883                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9884                           fi
9885
9886 else
9887
9888                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9889                           if test "x$LINE" != x ; then
9890                             eval "DEFAULT_$LINE"
9891                           else
9892                             no_cache=1
9893                           fi
9894
9895                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9896
9897 fi;
9898
9899           eval "$ac_cv_use_busyinfo"
9900           if test "$no_cache" != 1; then
9901             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9902           fi
9903
9904           if test "$wxUSE_BUSYINFO" = yes; then
9905             echo "$as_me:$LINENO: result: yes" >&5
9906 echo "${ECHO_T}yes" >&6
9907           else
9908             echo "$as_me:$LINENO: result: no" >&5
9909 echo "${ECHO_T}no" >&6
9910           fi
9911
9912
9913           enablestring=
9914           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9915 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9916           no_cache=0
9917           # Check whether --enable-joystick or --disable-joystick was given.
9918 if test "${enable_joystick+set}" = set; then
9919   enableval="$enable_joystick"
9920
9921                           if test "$enableval" = yes; then
9922                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9923                           else
9924                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9925                           fi
9926
9927 else
9928
9929                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9930                           if test "x$LINE" != x ; then
9931                             eval "DEFAULT_$LINE"
9932                           else
9933                             no_cache=1
9934                           fi
9935
9936                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9937
9938 fi;
9939
9940           eval "$ac_cv_use_joystick"
9941           if test "$no_cache" != 1; then
9942             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9943           fi
9944
9945           if test "$wxUSE_JOYSTICK" = yes; then
9946             echo "$as_me:$LINENO: result: yes" >&5
9947 echo "${ECHO_T}yes" >&6
9948           else
9949             echo "$as_me:$LINENO: result: no" >&5
9950 echo "${ECHO_T}no" >&6
9951           fi
9952
9953
9954           enablestring=
9955           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9956 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9957           no_cache=0
9958           # Check whether --enable-metafile or --disable-metafile was given.
9959 if test "${enable_metafile+set}" = set; then
9960   enableval="$enable_metafile"
9961
9962                           if test "$enableval" = yes; then
9963                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9964                           else
9965                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9966                           fi
9967
9968 else
9969
9970                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9971                           if test "x$LINE" != x ; then
9972                             eval "DEFAULT_$LINE"
9973                           else
9974                             no_cache=1
9975                           fi
9976
9977                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9978
9979 fi;
9980
9981           eval "$ac_cv_use_metafile"
9982           if test "$no_cache" != 1; then
9983             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9984           fi
9985
9986           if test "$wxUSE_METAFILE" = yes; then
9987             echo "$as_me:$LINENO: result: yes" >&5
9988 echo "${ECHO_T}yes" >&6
9989           else
9990             echo "$as_me:$LINENO: result: no" >&5
9991 echo "${ECHO_T}no" >&6
9992           fi
9993
9994
9995           enablestring=
9996           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9997 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9998           no_cache=0
9999           # Check whether --enable-dragimage or --disable-dragimage was given.
10000 if test "${enable_dragimage+set}" = set; then
10001   enableval="$enable_dragimage"
10002
10003                           if test "$enableval" = yes; then
10004                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10005                           else
10006                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10007                           fi
10008
10009 else
10010
10011                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10012                           if test "x$LINE" != x ; then
10013                             eval "DEFAULT_$LINE"
10014                           else
10015                             no_cache=1
10016                           fi
10017
10018                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10019
10020 fi;
10021
10022           eval "$ac_cv_use_dragimage"
10023           if test "$no_cache" != 1; then
10024             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10025           fi
10026
10027           if test "$wxUSE_DRAGIMAGE" = yes; then
10028             echo "$as_me:$LINENO: result: yes" >&5
10029 echo "${ECHO_T}yes" >&6
10030           else
10031             echo "$as_me:$LINENO: result: no" >&5
10032 echo "${ECHO_T}no" >&6
10033           fi
10034
10035
10036           enablestring=
10037           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10038 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10039           no_cache=0
10040           # Check whether --enable-accessibility or --disable-accessibility was given.
10041 if test "${enable_accessibility+set}" = set; then
10042   enableval="$enable_accessibility"
10043
10044                           if test "$enableval" = yes; then
10045                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10046                           else
10047                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10048                           fi
10049
10050 else
10051
10052                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10053                           if test "x$LINE" != x ; then
10054                             eval "DEFAULT_$LINE"
10055                           else
10056                             no_cache=1
10057                           fi
10058
10059                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10060
10061 fi;
10062
10063           eval "$ac_cv_use_accessibility"
10064           if test "$no_cache" != 1; then
10065             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10066           fi
10067
10068           if test "$wxUSE_ACCESSIBILITY" = yes; then
10069             echo "$as_me:$LINENO: result: yes" >&5
10070 echo "${ECHO_T}yes" >&6
10071           else
10072             echo "$as_me:$LINENO: result: no" >&5
10073 echo "${ECHO_T}no" >&6
10074           fi
10075
10076
10077
10078
10079           enablestring=
10080           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10081 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10082           no_cache=0
10083           # Check whether --enable-palette or --disable-palette was given.
10084 if test "${enable_palette+set}" = set; then
10085   enableval="$enable_palette"
10086
10087                           if test "$enableval" = yes; then
10088                             ac_cv_use_palette='wxUSE_PALETTE=yes'
10089                           else
10090                             ac_cv_use_palette='wxUSE_PALETTE=no'
10091                           fi
10092
10093 else
10094
10095                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10096                           if test "x$LINE" != x ; then
10097                             eval "DEFAULT_$LINE"
10098                           else
10099                             no_cache=1
10100                           fi
10101
10102                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10103
10104 fi;
10105
10106           eval "$ac_cv_use_palette"
10107           if test "$no_cache" != 1; then
10108             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10109           fi
10110
10111           if test "$wxUSE_PALETTE" = yes; then
10112             echo "$as_me:$LINENO: result: yes" >&5
10113 echo "${ECHO_T}yes" >&6
10114           else
10115             echo "$as_me:$LINENO: result: no" >&5
10116 echo "${ECHO_T}no" >&6
10117           fi
10118
10119
10120           enablestring=
10121           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10122 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10123           no_cache=0
10124           # Check whether --enable-image or --disable-image was given.
10125 if test "${enable_image+set}" = set; then
10126   enableval="$enable_image"
10127
10128                           if test "$enableval" = yes; then
10129                             ac_cv_use_image='wxUSE_IMAGE=yes'
10130                           else
10131                             ac_cv_use_image='wxUSE_IMAGE=no'
10132                           fi
10133
10134 else
10135
10136                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10137                           if test "x$LINE" != x ; then
10138                             eval "DEFAULT_$LINE"
10139                           else
10140                             no_cache=1
10141                           fi
10142
10143                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10144
10145 fi;
10146
10147           eval "$ac_cv_use_image"
10148           if test "$no_cache" != 1; then
10149             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10150           fi
10151
10152           if test "$wxUSE_IMAGE" = yes; then
10153             echo "$as_me:$LINENO: result: yes" >&5
10154 echo "${ECHO_T}yes" >&6
10155           else
10156             echo "$as_me:$LINENO: result: no" >&5
10157 echo "${ECHO_T}no" >&6
10158           fi
10159
10160
10161           enablestring=
10162           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10163 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10164           no_cache=0
10165           # Check whether --enable-gif or --disable-gif was given.
10166 if test "${enable_gif+set}" = set; then
10167   enableval="$enable_gif"
10168
10169                           if test "$enableval" = yes; then
10170                             ac_cv_use_gif='wxUSE_GIF=yes'
10171                           else
10172                             ac_cv_use_gif='wxUSE_GIF=no'
10173                           fi
10174
10175 else
10176
10177                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10178                           if test "x$LINE" != x ; then
10179                             eval "DEFAULT_$LINE"
10180                           else
10181                             no_cache=1
10182                           fi
10183
10184                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10185
10186 fi;
10187
10188           eval "$ac_cv_use_gif"
10189           if test "$no_cache" != 1; then
10190             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10191           fi
10192
10193           if test "$wxUSE_GIF" = yes; then
10194             echo "$as_me:$LINENO: result: yes" >&5
10195 echo "${ECHO_T}yes" >&6
10196           else
10197             echo "$as_me:$LINENO: result: no" >&5
10198 echo "${ECHO_T}no" >&6
10199           fi
10200
10201
10202           enablestring=
10203           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10204 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10205           no_cache=0
10206           # Check whether --enable-pcx or --disable-pcx was given.
10207 if test "${enable_pcx+set}" = set; then
10208   enableval="$enable_pcx"
10209
10210                           if test "$enableval" = yes; then
10211                             ac_cv_use_pcx='wxUSE_PCX=yes'
10212                           else
10213                             ac_cv_use_pcx='wxUSE_PCX=no'
10214                           fi
10215
10216 else
10217
10218                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10219                           if test "x$LINE" != x ; then
10220                             eval "DEFAULT_$LINE"
10221                           else
10222                             no_cache=1
10223                           fi
10224
10225                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10226
10227 fi;
10228
10229           eval "$ac_cv_use_pcx"
10230           if test "$no_cache" != 1; then
10231             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10232           fi
10233
10234           if test "$wxUSE_PCX" = yes; then
10235             echo "$as_me:$LINENO: result: yes" >&5
10236 echo "${ECHO_T}yes" >&6
10237           else
10238             echo "$as_me:$LINENO: result: no" >&5
10239 echo "${ECHO_T}no" >&6
10240           fi
10241
10242
10243           enablestring=
10244           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10245 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10246           no_cache=0
10247           # Check whether --enable-iff or --disable-iff was given.
10248 if test "${enable_iff+set}" = set; then
10249   enableval="$enable_iff"
10250
10251                           if test "$enableval" = yes; then
10252                             ac_cv_use_iff='wxUSE_IFF=yes'
10253                           else
10254                             ac_cv_use_iff='wxUSE_IFF=no'
10255                           fi
10256
10257 else
10258
10259                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10260                           if test "x$LINE" != x ; then
10261                             eval "DEFAULT_$LINE"
10262                           else
10263                             no_cache=1
10264                           fi
10265
10266                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10267
10268 fi;
10269
10270           eval "$ac_cv_use_iff"
10271           if test "$no_cache" != 1; then
10272             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10273           fi
10274
10275           if test "$wxUSE_IFF" = yes; then
10276             echo "$as_me:$LINENO: result: yes" >&5
10277 echo "${ECHO_T}yes" >&6
10278           else
10279             echo "$as_me:$LINENO: result: no" >&5
10280 echo "${ECHO_T}no" >&6
10281           fi
10282
10283
10284           enablestring=
10285           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10286 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10287           no_cache=0
10288           # Check whether --enable-pnm or --disable-pnm was given.
10289 if test "${enable_pnm+set}" = set; then
10290   enableval="$enable_pnm"
10291
10292                           if test "$enableval" = yes; then
10293                             ac_cv_use_pnm='wxUSE_PNM=yes'
10294                           else
10295                             ac_cv_use_pnm='wxUSE_PNM=no'
10296                           fi
10297
10298 else
10299
10300                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10301                           if test "x$LINE" != x ; then
10302                             eval "DEFAULT_$LINE"
10303                           else
10304                             no_cache=1
10305                           fi
10306
10307                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10308
10309 fi;
10310
10311           eval "$ac_cv_use_pnm"
10312           if test "$no_cache" != 1; then
10313             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10314           fi
10315
10316           if test "$wxUSE_PNM" = yes; then
10317             echo "$as_me:$LINENO: result: yes" >&5
10318 echo "${ECHO_T}yes" >&6
10319           else
10320             echo "$as_me:$LINENO: result: no" >&5
10321 echo "${ECHO_T}no" >&6
10322           fi
10323
10324
10325           enablestring=
10326           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10327 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10328           no_cache=0
10329           # Check whether --enable-xpm or --disable-xpm was given.
10330 if test "${enable_xpm+set}" = set; then
10331   enableval="$enable_xpm"
10332
10333                           if test "$enableval" = yes; then
10334                             ac_cv_use_xpm='wxUSE_XPM=yes'
10335                           else
10336                             ac_cv_use_xpm='wxUSE_XPM=no'
10337                           fi
10338
10339 else
10340
10341                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10342                           if test "x$LINE" != x ; then
10343                             eval "DEFAULT_$LINE"
10344                           else
10345                             no_cache=1
10346                           fi
10347
10348                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10349
10350 fi;
10351
10352           eval "$ac_cv_use_xpm"
10353           if test "$no_cache" != 1; then
10354             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10355           fi
10356
10357           if test "$wxUSE_XPM" = yes; then
10358             echo "$as_me:$LINENO: result: yes" >&5
10359 echo "${ECHO_T}yes" >&6
10360           else
10361             echo "$as_me:$LINENO: result: no" >&5
10362 echo "${ECHO_T}no" >&6
10363           fi
10364
10365
10366           enablestring=
10367           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10368 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10369           no_cache=0
10370           # Check whether --enable-ico_cur or --disable-ico_cur was given.
10371 if test "${enable_ico_cur+set}" = set; then
10372   enableval="$enable_ico_cur"
10373
10374                           if test "$enableval" = yes; then
10375                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10376                           else
10377                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10378                           fi
10379
10380 else
10381
10382                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10383                           if test "x$LINE" != x ; then
10384                             eval "DEFAULT_$LINE"
10385                           else
10386                             no_cache=1
10387                           fi
10388
10389                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10390
10391 fi;
10392
10393           eval "$ac_cv_use_ico_cur"
10394           if test "$no_cache" != 1; then
10395             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10396           fi
10397
10398           if test "$wxUSE_ICO_CUR" = yes; then
10399             echo "$as_me:$LINENO: result: yes" >&5
10400 echo "${ECHO_T}yes" >&6
10401           else
10402             echo "$as_me:$LINENO: result: no" >&5
10403 echo "${ECHO_T}no" >&6
10404           fi
10405
10406
10407 fi
10408
10409
10410
10411 # Check whether --with-flavour or --without-flavour was given.
10412 if test "${with_flavour+set}" = set; then
10413   withval="$with_flavour"
10414   WX_FLAVOUR="$withval"
10415 fi;
10416
10417
10418
10419           enablestring=
10420           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10421 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10422           no_cache=0
10423           # Check whether --enable-official_build or --disable-official_build was given.
10424 if test "${enable_official_build+set}" = set; then
10425   enableval="$enable_official_build"
10426
10427                           if test "$enableval" = yes; then
10428                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10429                           else
10430                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10431                           fi
10432
10433 else
10434
10435                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10436                           if test "x$LINE" != x ; then
10437                             eval "DEFAULT_$LINE"
10438                           else
10439                             no_cache=1
10440                           fi
10441
10442                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10443
10444 fi;
10445
10446           eval "$ac_cv_use_official_build"
10447           if test "$no_cache" != 1; then
10448             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10449           fi
10450
10451           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10452             echo "$as_me:$LINENO: result: yes" >&5
10453 echo "${ECHO_T}yes" >&6
10454           else
10455             echo "$as_me:$LINENO: result: no" >&5
10456 echo "${ECHO_T}no" >&6
10457           fi
10458
10459 # Check whether --enable-vendor or --disable-vendor was given.
10460 if test "${enable_vendor+set}" = set; then
10461   enableval="$enable_vendor"
10462   VENDOR="$enableval"
10463 fi;
10464 if test "x$VENDOR" = "x"; then
10465     VENDOR="custom"
10466 fi
10467
10468
10469
10470
10471           echo "saving argument cache $wx_arg_cache_file"
10472           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10473
10474
10475
10476 echo "$as_me:$LINENO: checking for toolkit" >&5
10477 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10478
10479 # In Wine, we need to default to MSW, not GTK or MOTIF
10480 if test "$wxUSE_WINE" = "yes"; then
10481     DEFAULT_DEFAULT_wxUSE_GTK=0
10482     DEFAULT_DEFAULT_wxUSE_MOTIF=0
10483     DEFAULT_DEFAULT_wxUSE_MSW=1
10484     wxUSE_SHARED=no
10485 fi
10486
10487 if test "$wxUSE_GUI" = "yes"; then
10488
10489     if test "$USE_BEOS" = 1; then
10490         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10491 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10492    { (exit 1); exit 1; }; }
10493     fi
10494
10495     if test "$TOOLKIT_GIVEN" = 1; then
10496             for toolkit in `echo $ALL_TOOLKITS`; do
10497         var=wxUSE_$toolkit
10498         eval "value=\$${var}"
10499         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10500       done
10501     else
10502             for toolkit in `echo $ALL_TOOLKITS`; do
10503         if test "$has_toolkit_in_cache" != 1; then
10504           var=DEFAULT_DEFAULT_wxUSE_$toolkit
10505         else
10506           var=DEFAULT_wxUSE_$toolkit
10507         fi
10508         eval "wxUSE_$toolkit=\$${var}"
10509       done
10510     fi
10511
10512             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10513                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10514                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10515
10516         case "${host}" in
10517       *-pc-os2_emx | *-pc-os2-emx )
10518         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10519     esac
10520
10521     case "$NUM_TOOLKITS" in
10522       1)
10523       ;;
10524       0)
10525         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10526 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10527    { (exit 1); exit 1; }; }
10528       ;;
10529       *)
10530         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10531 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10532    { (exit 1); exit 1; }; }
10533     esac
10534
10535         for toolkit in `echo $ALL_TOOLKITS`; do
10536       var=wxUSE_$toolkit
10537       eval "value=\$${var}"
10538       if test "x$value" != x; then
10539         cache_var=CACHE_$toolkit
10540         eval "cache=\$${cache_var}"
10541         if test "$cache" = 1; then
10542           echo "$var=$value" >> ${wx_arg_cache_file}
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 only has fake wchar_t: */
19167         #ifdef __DJGPP__
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 only has fake wchar_t: */
19247         #ifdef __DJGPP__
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 only has fake wchar_t: */
19304         #ifdef __DJGPP__
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 only has fake wchar_t: */
19377         #ifdef __DJGPP__
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 only has fake wchar_t: */
19434         #ifdef __DJGPP__
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 only has fake wchar_t: */
19515         #ifdef __DJGPP__
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 only has fake wchar_t: */
19593         #ifdef __DJGPP__
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
19680 echo "$as_me:$LINENO: checking for va_copy" >&5
19681 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19682 if test "${wx_cv_func_va_copy+set}" = set; then
19683   echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685
19686         cat >conftest.$ac_ext <<_ACEOF
19687
19688             #include <stdarg.h>
19689             void foo(char *f, ...)
19690             {
19691                 va_list ap1, ap2;
19692                 va_start(ap1, f);
19693                 va_copy(ap2, ap1);
19694                 va_end(ap2);
19695                 va_end(ap1);
19696             }
19697             int main()
19698             {
19699                 foo("hi", 17);
19700                 return 0;
19701             }
19702 _ACEOF
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705   (eval $ac_link) 2>conftest.er1
19706   ac_status=$?
19707   grep -v '^ *+' conftest.er1 >conftest.err
19708   rm -f conftest.er1
19709   cat conftest.err >&5
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); } &&
19712          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714   (eval $ac_try) 2>&5
19715   ac_status=$?
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); }; } &&
19718          { ac_try='test -s conftest$ac_exeext'
19719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720   (eval $ac_try) 2>&5
19721   ac_status=$?
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); }; }; then
19724   wx_cv_func_va_copy=yes
19725 else
19726   echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19728
19729 wx_cv_func_va_copy=no
19730
19731 fi
19732 rm -f conftest.err conftest.$ac_objext \
19733       conftest$ac_exeext conftest.$ac_ext
19734
19735
19736 fi
19737 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19738 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19739
19740 if test $wx_cv_func_va_copy = "yes"; then
19741     cat >>confdefs.h <<\_ACEOF
19742 #define HAVE_VA_COPY 1
19743 _ACEOF
19744
19745 else
19746         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19747 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19748 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19749   echo $ECHO_N "(cached) $ECHO_C" >&6
19750 else
19751
19752             if test "$cross_compiling" = yes; then
19753                   wx_cv_type_va_list_lvalue=yes
19754
19755 else
19756   cat >conftest.$ac_ext <<_ACEOF
19757
19758                 #include <stdarg.h>
19759                 int foo(char *f, ...)
19760                 {
19761                     va_list ap1, ap2;
19762                     va_start(ap1, f);
19763                     ap2 = ap1;
19764                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19765                         return 1;
19766                     va_end(ap2);
19767                     va_end(ap1);
19768                     return 0;
19769                 }
19770                 int main()
19771                 {
19772                     return foo("hi", 17);
19773                 }
19774 _ACEOF
19775 rm -f conftest$ac_exeext
19776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19777   (eval $ac_link) 2>&5
19778   ac_status=$?
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782   (eval $ac_try) 2>&5
19783   ac_status=$?
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); }; }; then
19786   wx_cv_type_va_list_lvalue=yes
19787 else
19788   echo "$as_me: program exited with status $ac_status" >&5
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19791
19792 ( exit $ac_status )
19793 wx_cv_type_va_list_lvalue=no
19794 fi
19795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19796 fi
19797
19798
19799 fi
19800 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19801 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19802
19803     if test $wx_cv_type_va_list_lvalue != "yes"; then
19804                         cat >>confdefs.h <<\_ACEOF
19805 #define VA_LIST_IS_ARRAY 1
19806 _ACEOF
19807
19808     fi
19809 fi
19810
19811 # Check whether --enable-largefile or --disable-largefile was given.
19812 if test "${enable_largefile+set}" = set; then
19813   enableval="$enable_largefile"
19814
19815 fi;
19816 if test "$enable_largefile" != no; then
19817             wx_largefile=no
19818
19819     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19820 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19821 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824
19825           cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h.  */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h.  */
19831 #define _FILE_OFFSET_BITS 64
19832                           #include <sys/types.h>
19833 int
19834 main ()
19835 {
19836 typedef struct {
19837     unsigned int field: sizeof(off_t) == 8;
19838 } wxlf;
19839
19840   ;
19841   return 0;
19842 }
19843 _ACEOF
19844 rm -f conftest.$ac_objext
19845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19846   (eval $ac_compile) 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } &&
19853          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855   (eval $ac_try) 2>&5
19856   ac_status=$?
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); }; } &&
19859          { ac_try='test -s conftest.$ac_objext'
19860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861   (eval $ac_try) 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); }; }; then
19865   ac_cv_sys_file_offset_bits=64
19866 else
19867   echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19869
19870 ac_cv_sys_file_offset_bits=no
19871 fi
19872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19873
19874
19875 fi
19876 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19877 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19878
19879     if test "$ac_cv_sys_file_offset_bits" != no; then
19880         wx_largefile=yes
19881         cat >>confdefs.h <<_ACEOF
19882 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19883 _ACEOF
19884
19885     fi
19886
19887     if test "x$wx_largefile" != "xyes"; then
19888
19889     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19890 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19891 if test "${ac_cv_sys_large_files+set}" = set; then
19892   echo $ECHO_N "(cached) $ECHO_C" >&6
19893 else
19894
19895           cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h.  */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h.  */
19901 #define _LARGE_FILES 1
19902                           #include <sys/types.h>
19903 int
19904 main ()
19905 {
19906 typedef struct {
19907     unsigned int field: sizeof(off_t) == 8;
19908 } wxlf;
19909
19910   ;
19911   return 0;
19912 }
19913 _ACEOF
19914 rm -f conftest.$ac_objext
19915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916   (eval $ac_compile) 2>conftest.er1
19917   ac_status=$?
19918   grep -v '^ *+' conftest.er1 >conftest.err
19919   rm -f conftest.er1
19920   cat conftest.err >&5
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); } &&
19923          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925   (eval $ac_try) 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); }; } &&
19929          { ac_try='test -s conftest.$ac_objext'
19930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931   (eval $ac_try) 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); }; }; then
19935   ac_cv_sys_large_files=1
19936 else
19937   echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19939
19940 ac_cv_sys_large_files=no
19941 fi
19942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19943
19944
19945 fi
19946 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19947 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19948
19949     if test "$ac_cv_sys_large_files" != no; then
19950         wx_largefile=yes
19951         cat >>confdefs.h <<_ACEOF
19952 #define _LARGE_FILES $ac_cv_sys_large_files
19953 _ACEOF
19954
19955     fi
19956
19957     fi
19958
19959     echo "$as_me:$LINENO: checking if large file support is available" >&5
19960 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19961     if test "x$wx_largefile" = "xyes"; then
19962         cat >>confdefs.h <<\_ACEOF
19963 #define HAVE_LARGEFILE_SUPPORT 1
19964 _ACEOF
19965
19966     fi
19967     echo "$as_me:$LINENO: result: $wx_largefile" >&5
19968 echo "${ECHO_T}$wx_largefile" >&6
19969 fi
19970
19971
19972 if test "x$wx_largefile" = "xyes"; then
19973     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19974         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19975     else
19976         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19977     fi
19978         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19979 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19980 if test "${ac_cv_sys_largefile_source+set}" = set; then
19981   echo $ECHO_N "(cached) $ECHO_C" >&6
19982 else
19983   while :; do
19984   ac_cv_sys_largefile_source=no
19985   cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h.  */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h.  */
19991 #include <stdio.h>
19992 int
19993 main ()
19994 {
19995 return !fseeko;
19996   ;
19997   return 0;
19998 }
19999 _ACEOF
20000 rm -f conftest.$ac_objext
20001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002   (eval $ac_compile) 2>conftest.er1
20003   ac_status=$?
20004   grep -v '^ *+' conftest.er1 >conftest.err
20005   rm -f conftest.er1
20006   cat conftest.err >&5
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); } &&
20009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011   (eval $ac_try) 2>&5
20012   ac_status=$?
20013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014   (exit $ac_status); }; } &&
20015          { ac_try='test -s conftest.$ac_objext'
20016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017   (eval $ac_try) 2>&5
20018   ac_status=$?
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); }; }; then
20021   break
20022 else
20023   echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20025
20026 fi
20027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20028   cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h.  */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h.  */
20034 #define _LARGEFILE_SOURCE 1
20035 #include <stdio.h>
20036 int
20037 main ()
20038 {
20039 return !fseeko;
20040   ;
20041   return 0;
20042 }
20043 _ACEOF
20044 rm -f conftest.$ac_objext
20045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046   (eval $ac_compile) 2>conftest.er1
20047   ac_status=$?
20048   grep -v '^ *+' conftest.er1 >conftest.err
20049   rm -f conftest.er1
20050   cat conftest.err >&5
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); } &&
20053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055   (eval $ac_try) 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); }; } &&
20059          { ac_try='test -s conftest.$ac_objext'
20060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061   (eval $ac_try) 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); }; }; then
20065   ac_cv_sys_largefile_source=1; break
20066 else
20067   echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20069
20070 fi
20071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20072   break
20073 done
20074 fi
20075 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20076 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20077 if test "$ac_cv_sys_largefile_source" != no; then
20078
20079 cat >>confdefs.h <<_ACEOF
20080 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20081 _ACEOF
20082
20083 fi
20084 rm -f conftest*
20085
20086 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20087 # in glibc 2.1.3, but that breaks too many other things.
20088 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20089 echo "$as_me:$LINENO: checking for fseeko" >&5
20090 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20091 if test "${ac_cv_func_fseeko+set}" = set; then
20092   echo $ECHO_N "(cached) $ECHO_C" >&6
20093 else
20094   cat >conftest.$ac_ext <<_ACEOF
20095 /* confdefs.h.  */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h.  */
20100 #include <stdio.h>
20101 int
20102 main ()
20103 {
20104 return fseeko && fseeko (stdin, 0, 0);
20105   ;
20106   return 0;
20107 }
20108 _ACEOF
20109 rm -f conftest.$ac_objext conftest$ac_exeext
20110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20111   (eval $ac_link) 2>conftest.er1
20112   ac_status=$?
20113   grep -v '^ *+' conftest.er1 >conftest.err
20114   rm -f conftest.er1
20115   cat conftest.err >&5
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); } &&
20118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120   (eval $ac_try) 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; } &&
20124          { ac_try='test -s conftest$ac_exeext'
20125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126   (eval $ac_try) 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); }; }; then
20130   ac_cv_func_fseeko=yes
20131 else
20132   echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20134
20135 ac_cv_func_fseeko=no
20136 fi
20137 rm -f conftest.err conftest.$ac_objext \
20138       conftest$ac_exeext conftest.$ac_ext
20139 fi
20140 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20141 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20142 if test $ac_cv_func_fseeko = yes; then
20143
20144 cat >>confdefs.h <<\_ACEOF
20145 #define HAVE_FSEEKO 1
20146 _ACEOF
20147
20148 fi
20149
20150     if test "$ac_cv_sys_largefile_source" != no; then
20151         WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
20152     fi
20153     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20154 fi
20155
20156 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20157 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20158 if test "${ac_cv_c_bigendian+set}" = set; then
20159   echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161   ac_cv_c_bigendian=unknown
20162 # See if sys/param.h defines the BYTE_ORDER macro.
20163 cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169 #include <sys/types.h>
20170 #include <sys/param.h>
20171 int
20172 main ()
20173 {
20174
20175 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20176  bogus endian macros
20177 #endif
20178   ;
20179   return 0;
20180 }
20181 _ACEOF
20182 rm -f conftest.$ac_objext
20183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20184   (eval $ac_compile) 2>conftest.er1
20185   ac_status=$?
20186   grep -v '^ *+' conftest.er1 >conftest.err
20187   rm -f conftest.er1
20188   cat conftest.err >&5
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); } &&
20191          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193   (eval $ac_try) 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); }; } &&
20197          { ac_try='test -s conftest.$ac_objext'
20198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199   (eval $ac_try) 2>&5
20200   ac_status=$?
20201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202   (exit $ac_status); }; }; then
20203   # It does; now see whether it defined to BIG_ENDIAN or not.
20204 cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h.  */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h.  */
20210 #include <sys/types.h>
20211 #include <sys/param.h>
20212 int
20213 main ()
20214 {
20215
20216 #if BYTE_ORDER != BIG_ENDIAN
20217  not big endian
20218 #endif
20219   ;
20220   return 0;
20221 }
20222 _ACEOF
20223 rm -f conftest.$ac_objext
20224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20225   (eval $ac_compile) 2>conftest.er1
20226   ac_status=$?
20227   grep -v '^ *+' conftest.er1 >conftest.err
20228   rm -f conftest.er1
20229   cat conftest.err >&5
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); } &&
20232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234   (eval $ac_try) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; } &&
20238          { ac_try='test -s conftest.$ac_objext'
20239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240   (eval $ac_try) 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); }; }; then
20244   ac_cv_c_bigendian=yes
20245 else
20246   echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 ac_cv_c_bigendian=no
20250 fi
20251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20252 else
20253   echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256 fi
20257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20258 if test $ac_cv_c_bigendian = unknown; then
20259 if test "$cross_compiling" = yes; then
20260   ac_cv_c_bigendian=unknown
20261 else
20262   cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h.  */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h.  */
20268 main () {
20269   /* Are we little or big endian?  From Harbison&Steele.  */
20270   union
20271   {
20272     long l;
20273     char c[sizeof (long)];
20274   } u;
20275   u.l = 1;
20276   exit (u.c[sizeof (long) - 1] == 1);
20277 }
20278 _ACEOF
20279 rm -f conftest$ac_exeext
20280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20281   (eval $ac_link) 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20286   (eval $ac_try) 2>&5
20287   ac_status=$?
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); }; }; then
20290   ac_cv_c_bigendian=no
20291 else
20292   echo "$as_me: program exited with status $ac_status" >&5
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20295
20296 ( exit $ac_status )
20297 ac_cv_c_bigendian=yes
20298 fi
20299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20300 fi
20301 fi
20302 fi
20303 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20304 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20305 if test $ac_cv_c_bigendian = unknown; then
20306   { 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
20307 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;}
20308 fi
20309 if test $ac_cv_c_bigendian = yes; then
20310   cat >>confdefs.h <<\_ACEOF
20311 #define WORDS_BIGENDIAN 1
20312 _ACEOF
20313
20314 fi
20315
20316
20317 ac_ext=cc
20318 ac_cpp='$CXXCPP $CPPFLAGS'
20319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20322 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20323 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20324 if test -z "$CXXCPP"; then
20325   if test "${ac_cv_prog_CXXCPP+set}" = set; then
20326   echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328       # Double quotes because CXXCPP needs to be expanded
20329     for CXXCPP in "$CXX -E" "/lib/cpp"
20330     do
20331       ac_preproc_ok=false
20332 for ac_cxx_preproc_warn_flag in '' yes
20333 do
20334   # Use a header file that comes with gcc, so configuring glibc
20335   # with a fresh cross-compiler works.
20336   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20337   # <limits.h> exists even on freestanding compilers.
20338   # On the NeXT, cc -E runs the code through the compiler's parser,
20339   # not just through cpp. "Syntax error" is here to catch this case.
20340   cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h.  */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h.  */
20346 #ifdef __STDC__
20347 # include <limits.h>
20348 #else
20349 # include <assert.h>
20350 #endif
20351                      Syntax error
20352 _ACEOF
20353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20355   ac_status=$?
20356   grep -v '^ *+' conftest.er1 >conftest.err
20357   rm -f conftest.er1
20358   cat conftest.err >&5
20359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360   (exit $ac_status); } >/dev/null; then
20361   if test -s conftest.err; then
20362     ac_cpp_err=$ac_cxx_preproc_warn_flag
20363     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20364   else
20365     ac_cpp_err=
20366   fi
20367 else
20368   ac_cpp_err=yes
20369 fi
20370 if test -z "$ac_cpp_err"; then
20371   :
20372 else
20373   echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20375
20376   # Broken: fails on valid input.
20377 continue
20378 fi
20379 rm -f conftest.err conftest.$ac_ext
20380
20381   # OK, works on sane cases.  Now check whether non-existent headers
20382   # can be detected and how.
20383   cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h.  */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h.  */
20389 #include <ac_nonexistent.h>
20390 _ACEOF
20391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20392   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20393   ac_status=$?
20394   grep -v '^ *+' conftest.er1 >conftest.err
20395   rm -f conftest.er1
20396   cat conftest.err >&5
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); } >/dev/null; then
20399   if test -s conftest.err; then
20400     ac_cpp_err=$ac_cxx_preproc_warn_flag
20401     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20402   else
20403     ac_cpp_err=
20404   fi
20405 else
20406   ac_cpp_err=yes
20407 fi
20408 if test -z "$ac_cpp_err"; then
20409   # Broken: success on invalid input.
20410 continue
20411 else
20412   echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415   # Passes both tests.
20416 ac_preproc_ok=:
20417 break
20418 fi
20419 rm -f conftest.err conftest.$ac_ext
20420
20421 done
20422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20423 rm -f conftest.err conftest.$ac_ext
20424 if $ac_preproc_ok; then
20425   break
20426 fi
20427
20428     done
20429     ac_cv_prog_CXXCPP=$CXXCPP
20430
20431 fi
20432   CXXCPP=$ac_cv_prog_CXXCPP
20433 else
20434   ac_cv_prog_CXXCPP=$CXXCPP
20435 fi
20436 echo "$as_me:$LINENO: result: $CXXCPP" >&5
20437 echo "${ECHO_T}$CXXCPP" >&6
20438 ac_preproc_ok=false
20439 for ac_cxx_preproc_warn_flag in '' yes
20440 do
20441   # Use a header file that comes with gcc, so configuring glibc
20442   # with a fresh cross-compiler works.
20443   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20444   # <limits.h> exists even on freestanding compilers.
20445   # On the NeXT, cc -E runs the code through the compiler's parser,
20446   # not just through cpp. "Syntax error" is here to catch this case.
20447   cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h.  */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h.  */
20453 #ifdef __STDC__
20454 # include <limits.h>
20455 #else
20456 # include <assert.h>
20457 #endif
20458                      Syntax error
20459 _ACEOF
20460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20462   ac_status=$?
20463   grep -v '^ *+' conftest.er1 >conftest.err
20464   rm -f conftest.er1
20465   cat conftest.err >&5
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); } >/dev/null; then
20468   if test -s conftest.err; then
20469     ac_cpp_err=$ac_cxx_preproc_warn_flag
20470     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20471   else
20472     ac_cpp_err=
20473   fi
20474 else
20475   ac_cpp_err=yes
20476 fi
20477 if test -z "$ac_cpp_err"; then
20478   :
20479 else
20480   echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483   # Broken: fails on valid input.
20484 continue
20485 fi
20486 rm -f conftest.err conftest.$ac_ext
20487
20488   # OK, works on sane cases.  Now check whether non-existent headers
20489   # can be detected and how.
20490   cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h.  */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h.  */
20496 #include <ac_nonexistent.h>
20497 _ACEOF
20498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20499   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } >/dev/null; then
20506   if test -s conftest.err; then
20507     ac_cpp_err=$ac_cxx_preproc_warn_flag
20508     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20509   else
20510     ac_cpp_err=
20511   fi
20512 else
20513   ac_cpp_err=yes
20514 fi
20515 if test -z "$ac_cpp_err"; then
20516   # Broken: success on invalid input.
20517 continue
20518 else
20519   echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20521
20522   # Passes both tests.
20523 ac_preproc_ok=:
20524 break
20525 fi
20526 rm -f conftest.err conftest.$ac_ext
20527
20528 done
20529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20530 rm -f conftest.err conftest.$ac_ext
20531 if $ac_preproc_ok; then
20532   :
20533 else
20534   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20535 See \`config.log' for more details." >&5
20536 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20537 See \`config.log' for more details." >&2;}
20538    { (exit 1); exit 1; }; }
20539 fi
20540
20541 ac_ext=cc
20542 ac_cpp='$CXXCPP $CPPFLAGS'
20543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20546
20547
20548
20549
20550
20551     ac_ext=cc
20552 ac_cpp='$CXXCPP $CPPFLAGS'
20553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20556
20557
20558
20559 for ac_header in iostream
20560 do
20561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20563   echo "$as_me:$LINENO: checking for $ac_header" >&5
20564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20566   echo $ECHO_N "(cached) $ECHO_C" >&6
20567 fi
20568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20570 else
20571   # Is the header compilable?
20572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20574 cat >conftest.$ac_ext <<_ACEOF
20575 /* confdefs.h.  */
20576 _ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h.  */
20580 $ac_includes_default
20581 #include <$ac_header>
20582 _ACEOF
20583 rm -f conftest.$ac_objext
20584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20585   (eval $ac_compile) 2>conftest.er1
20586   ac_status=$?
20587   grep -v '^ *+' conftest.er1 >conftest.err
20588   rm -f conftest.er1
20589   cat conftest.err >&5
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); } &&
20592          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594   (eval $ac_try) 2>&5
20595   ac_status=$?
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); }; } &&
20598          { ac_try='test -s conftest.$ac_objext'
20599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600   (eval $ac_try) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; }; then
20604   ac_header_compiler=yes
20605 else
20606   echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20608
20609 ac_header_compiler=no
20610 fi
20611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20613 echo "${ECHO_T}$ac_header_compiler" >&6
20614
20615 # Is the header present?
20616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h.  */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h.  */
20624 #include <$ac_header>
20625 _ACEOF
20626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20628   ac_status=$?
20629   grep -v '^ *+' conftest.er1 >conftest.err
20630   rm -f conftest.er1
20631   cat conftest.err >&5
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); } >/dev/null; then
20634   if test -s conftest.err; then
20635     ac_cpp_err=$ac_cxx_preproc_warn_flag
20636     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20637   else
20638     ac_cpp_err=
20639   fi
20640 else
20641   ac_cpp_err=yes
20642 fi
20643 if test -z "$ac_cpp_err"; then
20644   ac_header_preproc=yes
20645 else
20646   echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649   ac_header_preproc=no
20650 fi
20651 rm -f conftest.err conftest.$ac_ext
20652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20653 echo "${ECHO_T}$ac_header_preproc" >&6
20654
20655 # So?  What about this header?
20656 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20657   yes:no: )
20658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20662     ac_header_preproc=yes
20663     ;;
20664   no:yes:* )
20665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20677     (
20678       cat <<\_ASBOX
20679 ## ----------------------------------------- ##
20680 ## Report this to wx-dev@lists.wxwidgets.org ##
20681 ## ----------------------------------------- ##
20682 _ASBOX
20683     ) |
20684       sed "s/^/$as_me: WARNING:     /" >&2
20685     ;;
20686 esac
20687 echo "$as_me:$LINENO: checking for $ac_header" >&5
20688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20690   echo $ECHO_N "(cached) $ECHO_C" >&6
20691 else
20692   eval "$as_ac_Header=\$ac_header_preproc"
20693 fi
20694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20696
20697 fi
20698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20699   cat >>confdefs.h <<_ACEOF
20700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20701 _ACEOF
20702
20703 fi
20704
20705 done
20706
20707
20708     if test "$ac_cv_header_iostream" = "yes" ; then
20709       :
20710     else
20711       cat >>confdefs.h <<\_ACEOF
20712 #define wxUSE_IOSTREAMH 1
20713 _ACEOF
20714
20715     fi
20716
20717     ac_ext=c
20718 ac_cpp='$CPP $CPPFLAGS'
20719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20722
20723
20724
20725
20726   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20727 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20728 if test "${wx_cv_cpp_bool+set}" = set; then
20729   echo $ECHO_N "(cached) $ECHO_C" >&6
20730 else
20731
20732
20733
20734     ac_ext=cc
20735 ac_cpp='$CXXCPP $CPPFLAGS'
20736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20739
20740
20741     cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h.  */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h.  */
20747
20748
20749 int
20750 main ()
20751 {
20752
20753         bool b = true;
20754
20755         return 0;
20756
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 rm -f conftest.$ac_objext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20763   (eval $ac_compile) 2>conftest.er1
20764   ac_status=$?
20765   grep -v '^ *+' conftest.er1 >conftest.err
20766   rm -f conftest.er1
20767   cat conftest.err >&5
20768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); } &&
20770          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772   (eval $ac_try) 2>&5
20773   ac_status=$?
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); }; } &&
20776          { ac_try='test -s conftest.$ac_objext'
20777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778   (eval $ac_try) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; }; then
20782
20783         wx_cv_cpp_bool=yes
20784
20785 else
20786   echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789
20790         wx_cv_cpp_bool=no
20791
20792
20793 fi
20794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20795
20796     ac_ext=c
20797 ac_cpp='$CPP $CPPFLAGS'
20798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20801
20802
20803 fi
20804 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20805 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20806
20807   if test "$wx_cv_cpp_bool" = "yes"; then
20808     cat >>confdefs.h <<\_ACEOF
20809 #define HAVE_BOOL 1
20810 _ACEOF
20811
20812   fi
20813
20814
20815
20816   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20817 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20818 if test "${wx_cv_explicit+set}" = set; then
20819   echo $ECHO_N "(cached) $ECHO_C" >&6
20820 else
20821
20822
20823
20824     ac_ext=cc
20825 ac_cpp='$CXXCPP $CPPFLAGS'
20826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20829
20830
20831             cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h.  */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h.  */
20837
20838         class Foo { public: explicit Foo(int) {} };
20839
20840 int
20841 main ()
20842 {
20843
20844         return 0;
20845
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20852   (eval $ac_compile) 2>conftest.er1
20853   ac_status=$?
20854   grep -v '^ *+' conftest.er1 >conftest.err
20855   rm -f conftest.er1
20856   cat conftest.err >&5
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); } &&
20859          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861   (eval $ac_try) 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); }; } &&
20865          { ac_try='test -s conftest.$ac_objext'
20866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867   (eval $ac_try) 2>&5
20868   ac_status=$?
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); }; }; then
20871
20872         cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h.  */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h.  */
20878
20879                 class Foo { public: explicit Foo(int) {} };
20880                 static void TakeFoo(const Foo& foo) { }
20881
20882 int
20883 main ()
20884 {
20885
20886                 TakeFoo(17);
20887                 return 0;
20888
20889   ;
20890   return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext
20894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20895   (eval $ac_compile) 2>conftest.er1
20896   ac_status=$?
20897   grep -v '^ *+' conftest.er1 >conftest.err
20898   rm -f conftest.er1
20899   cat conftest.err >&5
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); } &&
20902          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904   (eval $ac_try) 2>&5
20905   ac_status=$?
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); }; } &&
20908          { ac_try='test -s conftest.$ac_objext'
20909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910   (eval $ac_try) 2>&5
20911   ac_status=$?
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); }; }; then
20914   wx_cv_explicit=no
20915 else
20916   echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 wx_cv_explicit=yes
20920
20921 fi
20922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20923
20924 else
20925   echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928 wx_cv_explicit=no
20929
20930 fi
20931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20932
20933     ac_ext=c
20934 ac_cpp='$CPP $CPPFLAGS'
20935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20938
20939
20940 fi
20941 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20942 echo "${ECHO_T}$wx_cv_explicit" >&6
20943
20944   if test "$wx_cv_explicit" = "yes"; then
20945     cat >>confdefs.h <<\_ACEOF
20946 #define HAVE_EXPLICIT 1
20947 _ACEOF
20948
20949   fi
20950
20951
20952 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20953 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20954 if test "${ac_cv_cxx_const_cast+set}" = set; then
20955   echo $ECHO_N "(cached) $ECHO_C" >&6
20956 else
20957
20958
20959  ac_ext=cc
20960 ac_cpp='$CXXCPP $CPPFLAGS'
20961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20964
20965  cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971
20972 int
20973 main ()
20974 {
20975 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20976   ;
20977   return 0;
20978 }
20979 _ACEOF
20980 rm -f conftest.$ac_objext
20981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20982   (eval $ac_compile) 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } &&
20989          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991   (eval $ac_try) 2>&5
20992   ac_status=$?
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   (exit $ac_status); }; } &&
20995          { ac_try='test -s conftest.$ac_objext'
20996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997   (eval $ac_try) 2>&5
20998   ac_status=$?
20999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000   (exit $ac_status); }; }; then
21001   ac_cv_cxx_const_cast=yes
21002 else
21003   echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21005
21006 ac_cv_cxx_const_cast=no
21007 fi
21008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21009  ac_ext=c
21010 ac_cpp='$CPP $CPPFLAGS'
21011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014
21015
21016 fi
21017 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21018 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21019 if test "$ac_cv_cxx_const_cast" = yes; then
21020
21021 cat >>confdefs.h <<\_ACEOF
21022 #define HAVE_CONST_CAST
21023 _ACEOF
21024
21025 fi
21026
21027 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21028 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21029 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21030   echo $ECHO_N "(cached) $ECHO_C" >&6
21031 else
21032
21033
21034  ac_ext=cc
21035 ac_cpp='$CXXCPP $CPPFLAGS'
21036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21039
21040  cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h.  */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h.  */
21046 #include <typeinfo>
21047 class Base { public : Base () {} virtual void f () = 0;};
21048 class Derived : public Base { public : Derived () {} virtual void f () {} };
21049 class Unrelated { public : Unrelated () {} };
21050 int g (Unrelated&) { return 0; }
21051 int
21052 main ()
21053 {
21054
21055 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21056   ;
21057   return 0;
21058 }
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21062   (eval $ac_compile) 2>conftest.er1
21063   ac_status=$?
21064   grep -v '^ *+' conftest.er1 >conftest.err
21065   rm -f conftest.er1
21066   cat conftest.err >&5
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } &&
21069          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071   (eval $ac_try) 2>&5
21072   ac_status=$?
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); }; } &&
21075          { ac_try='test -s conftest.$ac_objext'
21076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077   (eval $ac_try) 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); }; }; then
21081   ac_cv_cxx_reinterpret_cast=yes
21082 else
21083   echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21085
21086 ac_cv_cxx_reinterpret_cast=no
21087 fi
21088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21089  ac_ext=c
21090 ac_cpp='$CPP $CPPFLAGS'
21091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21094
21095
21096 fi
21097 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21098 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21099 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21100
21101 cat >>confdefs.h <<\_ACEOF
21102 #define HAVE_REINTERPRET_CAST
21103 _ACEOF
21104
21105 fi
21106
21107 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21108 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21109 if test "${ac_cv_cxx_static_cast+set}" = set; then
21110   echo $ECHO_N "(cached) $ECHO_C" >&6
21111 else
21112
21113
21114  ac_ext=cc
21115 ac_cpp='$CXXCPP $CPPFLAGS'
21116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21119
21120  cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126 #include <typeinfo>
21127 class Base { public : Base () {} virtual void f () = 0; };
21128 class Derived : public Base { public : Derived () {} virtual void f () {} };
21129 int g (Derived&) { return 0; }
21130 int
21131 main ()
21132 {
21133
21134 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21135   ;
21136   return 0;
21137 }
21138 _ACEOF
21139 rm -f conftest.$ac_objext
21140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21141   (eval $ac_compile) 2>conftest.er1
21142   ac_status=$?
21143   grep -v '^ *+' conftest.er1 >conftest.err
21144   rm -f conftest.er1
21145   cat conftest.err >&5
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); } &&
21148          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150   (eval $ac_try) 2>&5
21151   ac_status=$?
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); }; } &&
21154          { ac_try='test -s conftest.$ac_objext'
21155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156   (eval $ac_try) 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); }; }; then
21160   ac_cv_cxx_static_cast=yes
21161 else
21162   echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165 ac_cv_cxx_static_cast=no
21166 fi
21167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21168  ac_ext=c
21169 ac_cpp='$CPP $CPPFLAGS'
21170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21173
21174
21175 fi
21176 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21177 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21178 if test "$ac_cv_cxx_static_cast" = yes; then
21179
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_STATIC_CAST
21182 _ACEOF
21183
21184 fi
21185
21186
21187 if test "$wxUSE_STL" = "yes"; then
21188     ac_ext=cc
21189 ac_cpp='$CXXCPP $CPPFLAGS'
21190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21193
21194
21195         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21196 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21197     cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 #include <string>
21204                     #include <functional>
21205                     #include <algorithm>
21206                     #include <vector>
21207                     #include <list>
21208 int
21209 main ()
21210 {
21211 std::vector<int> moo;
21212                      std::list<int> foo;
21213                      std::vector<int>::iterator it =
21214                          std::find_if(moo.begin(), moo.end(),
21215                                       std::bind2nd(std::less<int>(), 3));
21216   ;
21217   return 0;
21218 }
21219 _ACEOF
21220 rm -f conftest.$ac_objext
21221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21222   (eval $ac_compile) 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } &&
21229          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231   (eval $ac_try) 2>&5
21232   ac_status=$?
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); }; } &&
21235          { ac_try='test -s conftest.$ac_objext'
21236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237   (eval $ac_try) 2>&5
21238   ac_status=$?
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); }; }; then
21241   echo "$as_me:$LINENO: result: yes" >&5
21242 echo "${ECHO_T}yes" >&6
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247 echo "$as_me:$LINENO: result: no" >&5
21248 echo "${ECHO_T}no" >&6
21249                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21250 echo "$as_me: error: Basic STL functionality missing" >&2;}
21251    { (exit 1); exit 1; }; }
21252 fi
21253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21254
21255         echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21256 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
21257     cat >conftest.$ac_ext <<_ACEOF
21258 /* confdefs.h.  */
21259 _ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h.  */
21263 #include <string>
21264 int
21265 main ()
21266 {
21267 std::wstring foo;
21268   ;
21269   return 0;
21270 }
21271 _ACEOF
21272 rm -f conftest.$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274   (eval $ac_compile) 2>conftest.er1
21275   ac_status=$?
21276   grep -v '^ *+' conftest.er1 >conftest.err
21277   rm -f conftest.er1
21278   cat conftest.err >&5
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); } &&
21281          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283   (eval $ac_try) 2>&5
21284   ac_status=$?
21285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286   (exit $ac_status); }; } &&
21287          { ac_try='test -s conftest.$ac_objext'
21288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289   (eval $ac_try) 2>&5
21290   ac_status=$?
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); }; }; then
21293   echo "$as_me:$LINENO: result: yes" >&5
21294 echo "${ECHO_T}yes" >&6
21295                     cat >>confdefs.h <<\_ACEOF
21296 #define HAVE_STD_WSTRING 1
21297 _ACEOF
21298
21299 else
21300   echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303 echo "$as_me:$LINENO: result: no" >&5
21304 echo "${ECHO_T}no" >&6
21305 fi
21306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21307
21308         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21309 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21310     cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h.  */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h.  */
21316 #include <string>
21317 int
21318 main ()
21319 {
21320 std::string foo, bar;
21321                     foo.compare(bar);
21322                     foo.compare(1, 1, bar);
21323                     foo.compare(1, 1, bar, 1, 1);
21324                     foo.compare("");
21325                     foo.compare(1, 1, "");
21326                     foo.compare(1, 1, "", 2);
21327   ;
21328   return 0;
21329 }
21330 _ACEOF
21331 rm -f conftest.$ac_objext
21332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21333   (eval $ac_compile) 2>conftest.er1
21334   ac_status=$?
21335   grep -v '^ *+' conftest.er1 >conftest.err
21336   rm -f conftest.er1
21337   cat conftest.err >&5
21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339   (exit $ac_status); } &&
21340          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342   (eval $ac_try) 2>&5
21343   ac_status=$?
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); }; } &&
21346          { ac_try='test -s conftest.$ac_objext'
21347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348   (eval $ac_try) 2>&5
21349   ac_status=$?
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); }; }; then
21352   echo "$as_me:$LINENO: result: yes" >&5
21353 echo "${ECHO_T}yes" >&6
21354                     cat >>confdefs.h <<\_ACEOF
21355 #define HAVE_STD_STRING_COMPARE 1
21356 _ACEOF
21357
21358 else
21359   echo "$as_me: failed program was:" >&5
21360 sed 's/^/| /' conftest.$ac_ext >&5
21361
21362 echo "$as_me:$LINENO: result: no" >&5
21363 echo "${ECHO_T}no" >&6
21364 fi
21365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21366
21367         if test "${ac_cv_header_hash_map+set}" = set; then
21368   echo "$as_me:$LINENO: checking for hash_map" >&5
21369 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21370 if test "${ac_cv_header_hash_map+set}" = set; then
21371   echo $ECHO_N "(cached) $ECHO_C" >&6
21372 fi
21373 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21374 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21375 else
21376   # Is the header compilable?
21377 echo "$as_me:$LINENO: checking hash_map usability" >&5
21378 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21379 cat >conftest.$ac_ext <<_ACEOF
21380 /* confdefs.h.  */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h.  */
21385 $ac_includes_default
21386 #include <hash_map>
21387 _ACEOF
21388 rm -f conftest.$ac_objext
21389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21390   (eval $ac_compile) 2>conftest.er1
21391   ac_status=$?
21392   grep -v '^ *+' conftest.er1 >conftest.err
21393   rm -f conftest.er1
21394   cat conftest.err >&5
21395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396   (exit $ac_status); } &&
21397          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399   (eval $ac_try) 2>&5
21400   ac_status=$?
21401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402   (exit $ac_status); }; } &&
21403          { ac_try='test -s conftest.$ac_objext'
21404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405   (eval $ac_try) 2>&5
21406   ac_status=$?
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); }; }; then
21409   ac_header_compiler=yes
21410 else
21411   echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21413
21414 ac_header_compiler=no
21415 fi
21416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21418 echo "${ECHO_T}$ac_header_compiler" >&6
21419
21420 # Is the header present?
21421 echo "$as_me:$LINENO: checking hash_map presence" >&5
21422 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21423 cat >conftest.$ac_ext <<_ACEOF
21424 /* confdefs.h.  */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h.  */
21429 #include <hash_map>
21430 _ACEOF
21431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21433   ac_status=$?
21434   grep -v '^ *+' conftest.er1 >conftest.err
21435   rm -f conftest.er1
21436   cat conftest.err >&5
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); } >/dev/null; then
21439   if test -s conftest.err; then
21440     ac_cpp_err=$ac_cxx_preproc_warn_flag
21441     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21442   else
21443     ac_cpp_err=
21444   fi
21445 else
21446   ac_cpp_err=yes
21447 fi
21448 if test -z "$ac_cpp_err"; then
21449   ac_header_preproc=yes
21450 else
21451   echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21453
21454   ac_header_preproc=no
21455 fi
21456 rm -f conftest.err conftest.$ac_ext
21457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21458 echo "${ECHO_T}$ac_header_preproc" >&6
21459
21460 # So?  What about this header?
21461 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21462   yes:no: )
21463     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21464 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
21465     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21466 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21467     ac_header_preproc=yes
21468     ;;
21469   no:yes:* )
21470     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21471 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
21472     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
21473 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
21474     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21475 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21476     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
21477 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
21478     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21479 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
21480     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21481 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
21482     (
21483       cat <<\_ASBOX
21484 ## ----------------------------------------- ##
21485 ## Report this to wx-dev@lists.wxwidgets.org ##
21486 ## ----------------------------------------- ##
21487 _ASBOX
21488     ) |
21489       sed "s/^/$as_me: WARNING:     /" >&2
21490     ;;
21491 esac
21492 echo "$as_me:$LINENO: checking for hash_map" >&5
21493 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21494 if test "${ac_cv_header_hash_map+set}" = set; then
21495   echo $ECHO_N "(cached) $ECHO_C" >&6
21496 else
21497   ac_cv_header_hash_map=$ac_header_preproc
21498 fi
21499 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21500 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21501
21502 fi
21503 if test $ac_cv_header_hash_map = yes; then
21504   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21505 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21506                      cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 #include <hash_map>
21513                                      #include <hash_set>
21514 int
21515 main ()
21516 {
21517 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21518                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21519   ;
21520   return 0;
21521 }
21522 _ACEOF
21523 rm -f conftest.$ac_objext
21524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21525   (eval $ac_compile) 2>conftest.er1
21526   ac_status=$?
21527   grep -v '^ *+' conftest.er1 >conftest.err
21528   rm -f conftest.er1
21529   cat conftest.err >&5
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); } &&
21532          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534   (eval $ac_try) 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; } &&
21538          { ac_try='test -s conftest.$ac_objext'
21539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540   (eval $ac_try) 2>&5
21541   ac_status=$?
21542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543   (exit $ac_status); }; }; then
21544   echo "$as_me:$LINENO: result: yes" >&5
21545 echo "${ECHO_T}yes" >&6
21546                                      cat >>confdefs.h <<\_ACEOF
21547 #define HAVE_HASH_MAP 1
21548 _ACEOF
21549
21550                                      cat >>confdefs.h <<\_ACEOF
21551 #define HAVE_STD_HASH_MAP 1
21552 _ACEOF
21553
21554 else
21555   echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558 echo "$as_me:$LINENO: result: no" >&5
21559 echo "${ECHO_T}no" >&6
21560 fi
21561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21562
21563 fi
21564
21565
21566
21567     if test "${ac_cv_header_ext_hash_map+set}" = set; then
21568   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21569 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21570 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21571   echo $ECHO_N "(cached) $ECHO_C" >&6
21572 fi
21573 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21574 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21575 else
21576   # Is the header compilable?
21577 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21578 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h.  */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h.  */
21585 $ac_includes_default
21586 #include <ext/hash_map>
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21590   (eval $ac_compile) 2>conftest.er1
21591   ac_status=$?
21592   grep -v '^ *+' conftest.er1 >conftest.err
21593   rm -f conftest.er1
21594   cat conftest.err >&5
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); } &&
21597          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599   (eval $ac_try) 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); }; } &&
21603          { ac_try='test -s conftest.$ac_objext'
21604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605   (eval $ac_try) 2>&5
21606   ac_status=$?
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); }; }; then
21609   ac_header_compiler=yes
21610 else
21611   echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21613
21614 ac_header_compiler=no
21615 fi
21616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21618 echo "${ECHO_T}$ac_header_compiler" >&6
21619
21620 # Is the header present?
21621 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21622 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21623 cat >conftest.$ac_ext <<_ACEOF
21624 /* confdefs.h.  */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h.  */
21629 #include <ext/hash_map>
21630 _ACEOF
21631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21633   ac_status=$?
21634   grep -v '^ *+' conftest.er1 >conftest.err
21635   rm -f conftest.er1
21636   cat conftest.err >&5
21637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638   (exit $ac_status); } >/dev/null; then
21639   if test -s conftest.err; then
21640     ac_cpp_err=$ac_cxx_preproc_warn_flag
21641     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21642   else
21643     ac_cpp_err=
21644   fi
21645 else
21646   ac_cpp_err=yes
21647 fi
21648 if test -z "$ac_cpp_err"; then
21649   ac_header_preproc=yes
21650 else
21651   echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21653
21654   ac_header_preproc=no
21655 fi
21656 rm -f conftest.err conftest.$ac_ext
21657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21658 echo "${ECHO_T}$ac_header_preproc" >&6
21659
21660 # So?  What about this header?
21661 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21662   yes:no: )
21663     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21664 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
21665     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21666 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21667     ac_header_preproc=yes
21668     ;;
21669   no:yes:* )
21670     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21671 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
21672     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
21673 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
21674     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21675 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21676     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
21677 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
21678     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21679 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
21680     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21681 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
21682     (
21683       cat <<\_ASBOX
21684 ## ----------------------------------------- ##
21685 ## Report this to wx-dev@lists.wxwidgets.org ##
21686 ## ----------------------------------------- ##
21687 _ASBOX
21688     ) |
21689       sed "s/^/$as_me: WARNING:     /" >&2
21690     ;;
21691 esac
21692 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21693 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21694 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697   ac_cv_header_ext_hash_map=$ac_header_preproc
21698 fi
21699 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21700 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21701
21702 fi
21703 if test $ac_cv_header_ext_hash_map = yes; then
21704   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21705 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21706                      cat >conftest.$ac_ext <<_ACEOF
21707 /* confdefs.h.  */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h.  */
21712 #include <ext/hash_map>
21713                                      #include <ext/hash_set>
21714 int
21715 main ()
21716 {
21717 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21718                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21719   ;
21720   return 0;
21721 }
21722 _ACEOF
21723 rm -f conftest.$ac_objext
21724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21725   (eval $ac_compile) 2>conftest.er1
21726   ac_status=$?
21727   grep -v '^ *+' conftest.er1 >conftest.err
21728   rm -f conftest.er1
21729   cat conftest.err >&5
21730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731   (exit $ac_status); } &&
21732          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734   (eval $ac_try) 2>&5
21735   ac_status=$?
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); }; } &&
21738          { ac_try='test -s conftest.$ac_objext'
21739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740   (eval $ac_try) 2>&5
21741   ac_status=$?
21742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743   (exit $ac_status); }; }; then
21744   echo "$as_me:$LINENO: result: yes" >&5
21745 echo "${ECHO_T}yes" >&6
21746                                      cat >>confdefs.h <<\_ACEOF
21747 #define HAVE_EXT_HASH_MAP 1
21748 _ACEOF
21749
21750                                      cat >>confdefs.h <<\_ACEOF
21751 #define HAVE_GNU_CXX_HASH_MAP 1
21752 _ACEOF
21753
21754 else
21755   echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21757
21758 echo "$as_me:$LINENO: result: no" >&5
21759 echo "${ECHO_T}no" >&6
21760 fi
21761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21762
21763 fi
21764
21765
21766
21767     ac_ext=c
21768 ac_cpp='$CPP $CPPFLAGS'
21769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21772
21773 fi
21774
21775
21776 SEARCH_INCLUDE="\
21777     /usr/local/include        \
21778                               \
21779     /usr/Motif-2.1/include    \
21780     /usr/Motif-1.2/include    \
21781     /usr/include/Motif1.2     \
21782     /opt/xpm/include/X11      \
21783     /opt/GBxpm/include/       \
21784     /opt/GBxpm/X11/include/   \
21785                               \
21786     /usr/dt/include           \
21787     /usr/openwin/include      \
21788                               \
21789     /usr/include/Xm           \
21790                               \
21791     /usr/X11R6/include        \
21792     /usr/X11R6.4/include      \
21793     /usr/X11R5/include        \
21794     /usr/X11R4/include        \
21795                               \
21796     /usr/include/X11R6        \
21797     /usr/include/X11R5        \
21798     /usr/include/X11R4        \
21799                               \
21800     /usr/local/X11R6/include  \
21801     /usr/local/X11R5/include  \
21802     /usr/local/X11R4/include  \
21803                               \
21804     /usr/local/include/X11R6  \
21805     /usr/local/include/X11R5  \
21806     /usr/local/include/X11R4  \
21807                               \
21808     /usr/X11/include          \
21809     /usr/include/X11          \
21810     /usr/local/X11/include    \
21811     /usr/local/include/X11    \
21812                               \
21813     /usr/X386/include         \
21814     /usr/x386/include         \
21815     /usr/XFree86/include/X11  \
21816                               \
21817     X:/XFree86/include        \
21818     X:/XFree86/include/X11    \
21819                               \
21820     /usr/include/gtk          \
21821     /usr/local/include/gtk    \
21822     /usr/include/glib         \
21823     /usr/local/include/glib   \
21824                               \
21825     /usr/include/qt           \
21826     /usr/local/include/qt     \
21827                               \
21828     /usr/local/arm/3.3.2/include     \
21829                               \
21830     /usr/include/windows      \
21831     /usr/include/wine         \
21832     /usr/local/include/wine   \
21833                               \
21834     /usr/unsupported/include  \
21835     /usr/athena/include       \
21836     /usr/local/x11r5/include  \
21837     /usr/lpp/Xamples/include  \
21838                               \
21839     /usr/openwin/share/include"
21840
21841 SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
21842
21843
21844 cat >confcache <<\_ACEOF
21845 # This file is a shell script that caches the results of configure
21846 # tests run on this system so they can be shared between configure
21847 # scripts and configure runs, see configure's option --config-cache.
21848 # It is not useful on other systems.  If it contains results you don't
21849 # want to keep, you may remove or edit it.
21850 #
21851 # config.status only pays attention to the cache file if you give it
21852 # the --recheck option to rerun configure.
21853 #
21854 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21855 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21856 # following values.
21857
21858 _ACEOF
21859
21860 # The following way of writing the cache mishandles newlines in values,
21861 # but we know of no workaround that is simple, portable, and efficient.
21862 # So, don't put newlines in cache variables' values.
21863 # Ultrix sh set writes to stderr and can't be redirected directly,
21864 # and sets the high bit in the cache file unless we assign to the vars.
21865 {
21866   (set) 2>&1 |
21867     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21868     *ac_space=\ *)
21869       # `set' does not quote correctly, so add quotes (double-quote
21870       # substitution turns \\\\ into \\, and sed turns \\ into \).
21871       sed -n \
21872         "s/'/'\\\\''/g;
21873           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21874       ;;
21875     *)
21876       # `set' quotes correctly as required by POSIX, so do not add quotes.
21877       sed -n \
21878         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21879       ;;
21880     esac;
21881 } |
21882   sed '
21883      t clear
21884      : clear
21885      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21886      t end
21887      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21888      : end' >>confcache
21889 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21890   if test -w $cache_file; then
21891     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21892     cat confcache >$cache_file
21893   else
21894     echo "not updating unwritable cache $cache_file"
21895   fi
21896 fi
21897 rm -f confcache
21898
21899 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21900     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21901 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21902 if test "${wx_cv_lib_glibc21+set}" = set; then
21903   echo $ECHO_N "(cached) $ECHO_C" >&6
21904 else
21905
21906         cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 #include <features.h>
21913 int
21914 main ()
21915 {
21916
21917                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21918                     #error not glibc2.1
21919                 #endif
21920
21921   ;
21922   return 0;
21923 }
21924 _ACEOF
21925 rm -f conftest.$ac_objext
21926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21927   (eval $ac_compile) 2>conftest.er1
21928   ac_status=$?
21929   grep -v '^ *+' conftest.er1 >conftest.err
21930   rm -f conftest.er1
21931   cat conftest.err >&5
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); } &&
21934          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936   (eval $ac_try) 2>&5
21937   ac_status=$?
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); }; } &&
21940          { ac_try='test -s conftest.$ac_objext'
21941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21942   (eval $ac_try) 2>&5
21943   ac_status=$?
21944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945   (exit $ac_status); }; }; then
21946
21947                 wx_cv_lib_glibc21=yes
21948
21949 else
21950   echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21952
21953
21954                 wx_cv_lib_glibc21=no
21955
21956
21957 fi
21958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21959
21960 fi
21961 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21962 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21963     if test "$wx_cv_lib_glibc21" = "yes"; then
21964         cat >>confdefs.h <<\_ACEOF
21965 #define wxHAVE_GLIBC2 1
21966 _ACEOF
21967
21968     fi
21969 fi
21970
21971 if test "x$wx_cv_lib_glibc21" = "xyes"; then
21972     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21973         cat >>confdefs.h <<\_ACEOF
21974 #define _GNU_SOURCE 1
21975 _ACEOF
21976
21977     fi
21978 fi
21979
21980
21981
21982 if test "$wxUSE_REGEX" != "no"; then
21983     cat >>confdefs.h <<\_ACEOF
21984 #define wxUSE_REGEX 1
21985 _ACEOF
21986
21987
21988     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21989         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21990 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21991         wxUSE_REGEX=builtin
21992     fi
21993
21994     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21995                         if test "${ac_cv_header_regex_h+set}" = set; then
21996   echo "$as_me:$LINENO: checking for regex.h" >&5
21997 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21998 if test "${ac_cv_header_regex_h+set}" = set; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 fi
22001 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22002 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22003 else
22004   # Is the header compilable?
22005 echo "$as_me:$LINENO: checking regex.h usability" >&5
22006 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22007 cat >conftest.$ac_ext <<_ACEOF
22008 /* confdefs.h.  */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h.  */
22013 $ac_includes_default
22014 #include <regex.h>
22015 _ACEOF
22016 rm -f conftest.$ac_objext
22017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22018   (eval $ac_compile) 2>conftest.er1
22019   ac_status=$?
22020   grep -v '^ *+' conftest.er1 >conftest.err
22021   rm -f conftest.er1
22022   cat conftest.err >&5
22023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024   (exit $ac_status); } &&
22025          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027   (eval $ac_try) 2>&5
22028   ac_status=$?
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); }; } &&
22031          { ac_try='test -s conftest.$ac_objext'
22032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033   (eval $ac_try) 2>&5
22034   ac_status=$?
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); }; }; then
22037   ac_header_compiler=yes
22038 else
22039   echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042 ac_header_compiler=no
22043 fi
22044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22046 echo "${ECHO_T}$ac_header_compiler" >&6
22047
22048 # Is the header present?
22049 echo "$as_me:$LINENO: checking regex.h presence" >&5
22050 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h.  */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h.  */
22057 #include <regex.h>
22058 _ACEOF
22059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22061   ac_status=$?
22062   grep -v '^ *+' conftest.er1 >conftest.err
22063   rm -f conftest.er1
22064   cat conftest.err >&5
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); } >/dev/null; then
22067   if test -s conftest.err; then
22068     ac_cpp_err=$ac_c_preproc_warn_flag
22069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22070   else
22071     ac_cpp_err=
22072   fi
22073 else
22074   ac_cpp_err=yes
22075 fi
22076 if test -z "$ac_cpp_err"; then
22077   ac_header_preproc=yes
22078 else
22079   echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22081
22082   ac_header_preproc=no
22083 fi
22084 rm -f conftest.err conftest.$ac_ext
22085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22086 echo "${ECHO_T}$ac_header_preproc" >&6
22087
22088 # So?  What about this header?
22089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22090   yes:no: )
22091     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22092 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22093     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22094 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22095     ac_header_preproc=yes
22096     ;;
22097   no:yes:* )
22098     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22099 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22100     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22101 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22102     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22103 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22104     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22105 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22106     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22107 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22108     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22109 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22110     (
22111       cat <<\_ASBOX
22112 ## ----------------------------------------- ##
22113 ## Report this to wx-dev@lists.wxwidgets.org ##
22114 ## ----------------------------------------- ##
22115 _ASBOX
22116     ) |
22117       sed "s/^/$as_me: WARNING:     /" >&2
22118     ;;
22119 esac
22120 echo "$as_me:$LINENO: checking for regex.h" >&5
22121 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22122 if test "${ac_cv_header_regex_h+set}" = set; then
22123   echo $ECHO_N "(cached) $ECHO_C" >&6
22124 else
22125   ac_cv_header_regex_h=$ac_header_preproc
22126 fi
22127 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22128 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22129
22130 fi
22131 if test $ac_cv_header_regex_h = yes; then
22132
22133 for ac_func in regcomp
22134 do
22135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22136 echo "$as_me:$LINENO: checking for $ac_func" >&5
22137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22138 if eval "test \"\${$as_ac_var+set}\" = set"; then
22139   echo $ECHO_N "(cached) $ECHO_C" >&6
22140 else
22141   cat >conftest.$ac_ext <<_ACEOF
22142 /* confdefs.h.  */
22143 _ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h.  */
22147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22149 #define $ac_func innocuous_$ac_func
22150
22151 /* System header to define __stub macros and hopefully few prototypes,
22152     which can conflict with char $ac_func (); below.
22153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22154     <limits.h> exists even on freestanding compilers.  */
22155
22156 #ifdef __STDC__
22157 # include <limits.h>
22158 #else
22159 # include <assert.h>
22160 #endif
22161
22162 #undef $ac_func
22163
22164 /* Override any gcc2 internal prototype to avoid an error.  */
22165 #ifdef __cplusplus
22166 extern "C"
22167 {
22168 #endif
22169 /* We use char because int might match the return type of a gcc2
22170    builtin and then its argument prototype would still apply.  */
22171 char $ac_func ();
22172 /* The GNU C library defines this for functions which it implements
22173     to always fail with ENOSYS.  Some functions are actually named
22174     something starting with __ and the normal name is an alias.  */
22175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22176 choke me
22177 #else
22178 char (*f) () = $ac_func;
22179 #endif
22180 #ifdef __cplusplus
22181 }
22182 #endif
22183
22184 int
22185 main ()
22186 {
22187 return f != $ac_func;
22188   ;
22189   return 0;
22190 }
22191 _ACEOF
22192 rm -f conftest.$ac_objext conftest$ac_exeext
22193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22194   (eval $ac_link) 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_exeext'
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   eval "$as_ac_var=yes"
22214 else
22215   echo "$as_me: failed program was:" >&5
22216 sed 's/^/| /' conftest.$ac_ext >&5
22217
22218 eval "$as_ac_var=no"
22219 fi
22220 rm -f conftest.err conftest.$ac_objext \
22221       conftest$ac_exeext conftest.$ac_ext
22222 fi
22223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22225 if test `eval echo '${'$as_ac_var'}'` = yes; then
22226   cat >>confdefs.h <<_ACEOF
22227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22228 _ACEOF
22229
22230 fi
22231 done
22232
22233 fi
22234
22235
22236
22237         if test "x$ac_cv_func_regcomp" != "xyes"; then
22238             if test "$wxUSE_REGEX" = "sys" ; then
22239                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22240 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22241    { (exit 1); exit 1; }; }
22242             else
22243                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22244 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22245                 wxUSE_REGEX=builtin
22246             fi
22247         else
22248                         wxUSE_REGEX=sys
22249                         cat >>confdefs.h <<\_ACEOF
22250 #define WX_NO_REGEX_ADVANCED 1
22251 _ACEOF
22252
22253         fi
22254     fi
22255 fi
22256
22257
22258 ZLIB_LINK=
22259 if test "$wxUSE_ZLIB" != "no" ; then
22260     cat >>confdefs.h <<\_ACEOF
22261 #define wxUSE_ZLIB 1
22262 _ACEOF
22263
22264
22265     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22266                                                 if test "$USE_DARWIN" = 1; then
22267             system_zlib_h_ok="yes"
22268         else
22269                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22270 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22271 if test "${ac_cv_header_zlib_h+set}" = set; then
22272   echo $ECHO_N "(cached) $ECHO_C" >&6
22273 else
22274   if test "$cross_compiling" = yes; then
22275                       unset ac_cv_header_zlib_h
22276
22277 else
22278   cat >conftest.$ac_ext <<_ACEOF
22279 /* confdefs.h.  */
22280 _ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h.  */
22284
22285                         #include <zlib.h>
22286                         #include <stdio.h>
22287
22288                         int main()
22289                         {
22290                             FILE *f=fopen("conftestval", "w");
22291                             if (!f) exit(1);
22292                             fprintf(f, "%s",
22293                                     ZLIB_VERSION[0] == '1' &&
22294                                     (ZLIB_VERSION[2] > '1' ||
22295                                     (ZLIB_VERSION[2] == '1' &&
22296                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22297                             exit(0);
22298                         }
22299
22300 _ACEOF
22301 rm -f conftest$ac_exeext
22302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22303   (eval $ac_link) 2>&5
22304   ac_status=$?
22305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308   (eval $ac_try) 2>&5
22309   ac_status=$?
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); }; }; then
22312   ac_cv_header_zlib_h=`cat conftestval`
22313 else
22314   echo "$as_me: program exited with status $ac_status" >&5
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 ( exit $ac_status )
22319 ac_cv_header_zlib_h=no
22320 fi
22321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22322 fi
22323
22324 fi
22325 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22326 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22327                                     if test "${ac_cv_header_zlib_h+set}" = set; then
22328   echo "$as_me:$LINENO: checking for zlib.h" >&5
22329 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22330 if test "${ac_cv_header_zlib_h+set}" = set; then
22331   echo $ECHO_N "(cached) $ECHO_C" >&6
22332 fi
22333 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22334 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22335 else
22336   # Is the header compilable?
22337 echo "$as_me:$LINENO: checking zlib.h usability" >&5
22338 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22339 cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h.  */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h.  */
22345 $ac_includes_default
22346 #include <zlib.h>
22347 _ACEOF
22348 rm -f conftest.$ac_objext
22349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22350   (eval $ac_compile) 2>conftest.er1
22351   ac_status=$?
22352   grep -v '^ *+' conftest.er1 >conftest.err
22353   rm -f conftest.er1
22354   cat conftest.err >&5
22355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356   (exit $ac_status); } &&
22357          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359   (eval $ac_try) 2>&5
22360   ac_status=$?
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); }; } &&
22363          { ac_try='test -s conftest.$ac_objext'
22364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365   (eval $ac_try) 2>&5
22366   ac_status=$?
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); }; }; then
22369   ac_header_compiler=yes
22370 else
22371   echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22373
22374 ac_header_compiler=no
22375 fi
22376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22378 echo "${ECHO_T}$ac_header_compiler" >&6
22379
22380 # Is the header present?
22381 echo "$as_me:$LINENO: checking zlib.h presence" >&5
22382 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22383 cat >conftest.$ac_ext <<_ACEOF
22384 /* confdefs.h.  */
22385 _ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h.  */
22389 #include <zlib.h>
22390 _ACEOF
22391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22392   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22393   ac_status=$?
22394   grep -v '^ *+' conftest.er1 >conftest.err
22395   rm -f conftest.er1
22396   cat conftest.err >&5
22397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); } >/dev/null; then
22399   if test -s conftest.err; then
22400     ac_cpp_err=$ac_c_preproc_warn_flag
22401     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22402   else
22403     ac_cpp_err=
22404   fi
22405 else
22406   ac_cpp_err=yes
22407 fi
22408 if test -z "$ac_cpp_err"; then
22409   ac_header_preproc=yes
22410 else
22411   echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22413
22414   ac_header_preproc=no
22415 fi
22416 rm -f conftest.err conftest.$ac_ext
22417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22418 echo "${ECHO_T}$ac_header_preproc" >&6
22419
22420 # So?  What about this header?
22421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22422   yes:no: )
22423     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22424 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22425     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22426 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22427     ac_header_preproc=yes
22428     ;;
22429   no:yes:* )
22430     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22431 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22432     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
22433 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
22434     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22435 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22436     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
22437 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22438     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22439 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22440     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22441 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22442     (
22443       cat <<\_ASBOX
22444 ## ----------------------------------------- ##
22445 ## Report this to wx-dev@lists.wxwidgets.org ##
22446 ## ----------------------------------------- ##
22447 _ASBOX
22448     ) |
22449       sed "s/^/$as_me: WARNING:     /" >&2
22450     ;;
22451 esac
22452 echo "$as_me:$LINENO: checking for zlib.h" >&5
22453 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22454 if test "${ac_cv_header_zlib_h+set}" = set; then
22455   echo $ECHO_N "(cached) $ECHO_C" >&6
22456 else
22457   ac_cv_header_zlib_h=$ac_header_preproc
22458 fi
22459 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22460 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22461
22462 fi
22463
22464
22465
22466             system_zlib_h_ok=$ac_cv_header_zlib_h
22467         fi
22468
22469         if test "$system_zlib_h_ok" = "yes"; then
22470             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22471 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22472 if test "${ac_cv_lib_z_deflate+set}" = set; then
22473   echo $ECHO_N "(cached) $ECHO_C" >&6
22474 else
22475   ac_check_lib_save_LIBS=$LIBS
22476 LIBS="-lz  $LIBS"
22477 cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h.  */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h.  */
22483
22484 /* Override any gcc2 internal prototype to avoid an error.  */
22485 #ifdef __cplusplus
22486 extern "C"
22487 #endif
22488 /* We use char because int might match the return type of a gcc2
22489    builtin and then its argument prototype would still apply.  */
22490 char deflate ();
22491 int
22492 main ()
22493 {
22494 deflate ();
22495   ;
22496   return 0;
22497 }
22498 _ACEOF
22499 rm -f conftest.$ac_objext conftest$ac_exeext
22500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22501   (eval $ac_link) 2>conftest.er1
22502   ac_status=$?
22503   grep -v '^ *+' conftest.er1 >conftest.err
22504   rm -f conftest.er1
22505   cat conftest.err >&5
22506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507   (exit $ac_status); } &&
22508          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22510   (eval $ac_try) 2>&5
22511   ac_status=$?
22512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513   (exit $ac_status); }; } &&
22514          { ac_try='test -s conftest$ac_exeext'
22515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516   (eval $ac_try) 2>&5
22517   ac_status=$?
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); }; }; then
22520   ac_cv_lib_z_deflate=yes
22521 else
22522   echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22524
22525 ac_cv_lib_z_deflate=no
22526 fi
22527 rm -f conftest.err conftest.$ac_objext \
22528       conftest$ac_exeext conftest.$ac_ext
22529 LIBS=$ac_check_lib_save_LIBS
22530 fi
22531 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22532 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22533 if test $ac_cv_lib_z_deflate = yes; then
22534   ZLIB_LINK=" -lz"
22535 fi
22536
22537         fi
22538
22539         if test "x$ZLIB_LINK" = "x" ; then
22540             if test "$wxUSE_ZLIB" = "sys" ; then
22541                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22542 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22543    { (exit 1); exit 1; }; }
22544             else
22545                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22546 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22547                 wxUSE_ZLIB=builtin
22548             fi
22549         else
22550                         wxUSE_ZLIB=sys
22551         fi
22552     fi
22553 fi
22554
22555
22556 PNG_LINK=
22557 if test "$wxUSE_LIBPNG" != "no" ; then
22558     cat >>confdefs.h <<\_ACEOF
22559 #define wxUSE_LIBPNG 1
22560 _ACEOF
22561
22562
22563     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22564         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22565 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22566         wxUSE_LIBPNG=sys
22567     fi
22568
22569                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22570         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22571 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22572         wxUSE_LIBPNG=builtin
22573     fi
22574
22575     if test "$wxUSE_MGL" != 1 ; then
22576                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22577                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22578 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22579 if test "${ac_cv_header_png_h+set}" = set; then
22580   echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582   if test "$cross_compiling" = yes; then
22583                       unset ac_cv_header_png_h
22584
22585 else
22586   cat >conftest.$ac_ext <<_ACEOF
22587 /* confdefs.h.  */
22588 _ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h.  */
22592
22593                         #include <png.h>
22594                         #include <stdio.h>
22595
22596                         int main()
22597                         {
22598                             FILE *f=fopen("conftestval", "w");
22599                             if (!f) exit(1);
22600                             fprintf(f, "%s",
22601                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
22602                             exit(0);
22603                         }
22604
22605 _ACEOF
22606 rm -f conftest$ac_exeext
22607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22608   (eval $ac_link) 2>&5
22609   ac_status=$?
22610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613   (eval $ac_try) 2>&5
22614   ac_status=$?
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); }; }; then
22617   ac_cv_header_png_h=`cat conftestval`
22618 else
22619   echo "$as_me: program exited with status $ac_status" >&5
22620 echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22622
22623 ( exit $ac_status )
22624 ac_cv_header_png_h=no
22625 fi
22626 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22627 fi
22628
22629 fi
22630 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22631 echo "${ECHO_T}$ac_cv_header_png_h" >&6
22632             if test "${ac_cv_header_png_h+set}" = set; then
22633   echo "$as_me:$LINENO: checking for png.h" >&5
22634 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22635 if test "${ac_cv_header_png_h+set}" = set; then
22636   echo $ECHO_N "(cached) $ECHO_C" >&6
22637 fi
22638 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22639 echo "${ECHO_T}$ac_cv_header_png_h" >&6
22640 else
22641   # Is the header compilable?
22642 echo "$as_me:$LINENO: checking png.h usability" >&5
22643 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22644 cat >conftest.$ac_ext <<_ACEOF
22645 /* confdefs.h.  */
22646 _ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h.  */
22650 $ac_includes_default
22651 #include <png.h>
22652 _ACEOF
22653 rm -f conftest.$ac_objext
22654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22655   (eval $ac_compile) 2>conftest.er1
22656   ac_status=$?
22657   grep -v '^ *+' conftest.er1 >conftest.err
22658   rm -f conftest.er1
22659   cat conftest.err >&5
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); } &&
22662          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664   (eval $ac_try) 2>&5
22665   ac_status=$?
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); }; } &&
22668          { ac_try='test -s conftest.$ac_objext'
22669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22670   (eval $ac_try) 2>&5
22671   ac_status=$?
22672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673   (exit $ac_status); }; }; then
22674   ac_header_compiler=yes
22675 else
22676   echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22678
22679 ac_header_compiler=no
22680 fi
22681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22683 echo "${ECHO_T}$ac_header_compiler" >&6
22684
22685 # Is the header present?
22686 echo "$as_me:$LINENO: checking png.h presence" >&5
22687 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22688 cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h.  */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h.  */
22694 #include <png.h>
22695 _ACEOF
22696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22698   ac_status=$?
22699   grep -v '^ *+' conftest.er1 >conftest.err
22700   rm -f conftest.er1
22701   cat conftest.err >&5
22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); } >/dev/null; then
22704   if test -s conftest.err; then
22705     ac_cpp_err=$ac_c_preproc_warn_flag
22706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22707   else
22708     ac_cpp_err=
22709   fi
22710 else
22711   ac_cpp_err=yes
22712 fi
22713 if test -z "$ac_cpp_err"; then
22714   ac_header_preproc=yes
22715 else
22716   echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719   ac_header_preproc=no
22720 fi
22721 rm -f conftest.err conftest.$ac_ext
22722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22723 echo "${ECHO_T}$ac_header_preproc" >&6
22724
22725 # So?  What about this header?
22726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22727   yes:no: )
22728     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22729 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22730     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22731 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22732     ac_header_preproc=yes
22733     ;;
22734   no:yes:* )
22735     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22736 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
22737     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
22738 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
22739     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22740 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22741     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
22742 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22743     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22744 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
22745     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22746 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
22747     (
22748       cat <<\_ASBOX
22749 ## ----------------------------------------- ##
22750 ## Report this to wx-dev@lists.wxwidgets.org ##
22751 ## ----------------------------------------- ##
22752 _ASBOX
22753     ) |
22754       sed "s/^/$as_me: WARNING:     /" >&2
22755     ;;
22756 esac
22757 echo "$as_me:$LINENO: checking for png.h" >&5
22758 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22759 if test "${ac_cv_header_png_h+set}" = set; then
22760   echo $ECHO_N "(cached) $ECHO_C" >&6
22761 else
22762   ac_cv_header_png_h=$ac_header_preproc
22763 fi
22764 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22765 echo "${ECHO_T}$ac_cv_header_png_h" >&6
22766
22767 fi
22768
22769
22770
22771             if test "$ac_cv_header_png_h" = "yes"; then
22772                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22773 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22774 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22775   echo $ECHO_N "(cached) $ECHO_C" >&6
22776 else
22777   ac_check_lib_save_LIBS=$LIBS
22778 LIBS="-lpng -lz -lm $LIBS"
22779 cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h.  */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h.  */
22785
22786 /* Override any gcc2 internal prototype to avoid an error.  */
22787 #ifdef __cplusplus
22788 extern "C"
22789 #endif
22790 /* We use char because int might match the return type of a gcc2
22791    builtin and then its argument prototype would still apply.  */
22792 char png_check_sig ();
22793 int
22794 main ()
22795 {
22796 png_check_sig ();
22797   ;
22798   return 0;
22799 }
22800 _ACEOF
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22803   (eval $ac_link) 2>conftest.er1
22804   ac_status=$?
22805   grep -v '^ *+' conftest.er1 >conftest.err
22806   rm -f conftest.er1
22807   cat conftest.err >&5
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); } &&
22810          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22812   (eval $ac_try) 2>&5
22813   ac_status=$?
22814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815   (exit $ac_status); }; } &&
22816          { ac_try='test -s conftest$ac_exeext'
22817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818   (eval $ac_try) 2>&5
22819   ac_status=$?
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); }; }; then
22822   ac_cv_lib_png_png_check_sig=yes
22823 else
22824   echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827 ac_cv_lib_png_png_check_sig=no
22828 fi
22829 rm -f conftest.err conftest.$ac_objext \
22830       conftest$ac_exeext conftest.$ac_ext
22831 LIBS=$ac_check_lib_save_LIBS
22832 fi
22833 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22834 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22835 if test $ac_cv_lib_png_png_check_sig = yes; then
22836   PNG_LINK=" -lpng -lz"
22837 fi
22838
22839             fi
22840
22841             if test "x$PNG_LINK" = "x" ; then
22842                 if test "$wxUSE_LIBPNG" = "sys" ; then
22843                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22844 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22845    { (exit 1); exit 1; }; }
22846                 else
22847                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22848 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22849                     wxUSE_LIBPNG=builtin
22850                 fi
22851             else
22852                                 wxUSE_LIBPNG=sys
22853             fi
22854         fi
22855     fi
22856
22857     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22858 fi
22859
22860
22861 JPEG_LINK=
22862 if test "$wxUSE_LIBJPEG" != "no" ; then
22863     cat >>confdefs.h <<\_ACEOF
22864 #define wxUSE_LIBJPEG 1
22865 _ACEOF
22866
22867
22868     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22869         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22870 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22871         wxUSE_LIBJPEG=sys
22872     fi
22873
22874     if test "$wxUSE_MGL" != 1 ; then
22875                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22876                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22877 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22878             if test "${ac_cv_header_jpeglib_h+set}" = set; then
22879   echo $ECHO_N "(cached) $ECHO_C" >&6
22880 else
22881   cat >conftest.$ac_ext <<_ACEOF
22882 /* confdefs.h.  */
22883 _ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h.  */
22887
22888                         #undef HAVE_STDLIB_H
22889                         #include <stdio.h>
22890                         #include <jpeglib.h>
22891
22892 int
22893 main ()
22894 {
22895
22896
22897   ;
22898   return 0;
22899 }
22900 _ACEOF
22901 rm -f conftest.$ac_objext
22902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22903   (eval $ac_compile) 2>conftest.er1
22904   ac_status=$?
22905   grep -v '^ *+' conftest.er1 >conftest.err
22906   rm -f conftest.er1
22907   cat conftest.err >&5
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); } &&
22910          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912   (eval $ac_try) 2>&5
22913   ac_status=$?
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); }; } &&
22916          { ac_try='test -s conftest.$ac_objext'
22917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22918   (eval $ac_try) 2>&5
22919   ac_status=$?
22920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921   (exit $ac_status); }; }; then
22922   ac_cv_header_jpeglib_h=yes
22923 else
22924   echo "$as_me: failed program was:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22926
22927 ac_cv_header_jpeglib_h=no
22928
22929 fi
22930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22931
22932 fi
22933
22934             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22935 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22936
22937             if test "$ac_cv_header_jpeglib_h" = "yes"; then
22938                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22939 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22940 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22941   echo $ECHO_N "(cached) $ECHO_C" >&6
22942 else
22943   ac_check_lib_save_LIBS=$LIBS
22944 LIBS="-ljpeg  $LIBS"
22945 cat >conftest.$ac_ext <<_ACEOF
22946 /* confdefs.h.  */
22947 _ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h.  */
22951
22952 /* Override any gcc2 internal prototype to avoid an error.  */
22953 #ifdef __cplusplus
22954 extern "C"
22955 #endif
22956 /* We use char because int might match the return type of a gcc2
22957    builtin and then its argument prototype would still apply.  */
22958 char jpeg_read_header ();
22959 int
22960 main ()
22961 {
22962 jpeg_read_header ();
22963   ;
22964   return 0;
22965 }
22966 _ACEOF
22967 rm -f conftest.$ac_objext conftest$ac_exeext
22968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22969   (eval $ac_link) 2>conftest.er1
22970   ac_status=$?
22971   grep -v '^ *+' conftest.er1 >conftest.err
22972   rm -f conftest.er1
22973   cat conftest.err >&5
22974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); } &&
22976          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978   (eval $ac_try) 2>&5
22979   ac_status=$?
22980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981   (exit $ac_status); }; } &&
22982          { ac_try='test -s conftest$ac_exeext'
22983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984   (eval $ac_try) 2>&5
22985   ac_status=$?
22986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987   (exit $ac_status); }; }; then
22988   ac_cv_lib_jpeg_jpeg_read_header=yes
22989 else
22990   echo "$as_me: failed program was:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22992
22993 ac_cv_lib_jpeg_jpeg_read_header=no
22994 fi
22995 rm -f conftest.err conftest.$ac_objext \
22996       conftest$ac_exeext conftest.$ac_ext
22997 LIBS=$ac_check_lib_save_LIBS
22998 fi
22999 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23000 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23001 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23002   JPEG_LINK=" -ljpeg"
23003 fi
23004
23005             fi
23006
23007             if test "x$JPEG_LINK" = "x" ; then
23008                 if test "$wxUSE_LIBJPEG" = "sys" ; then
23009                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23010 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23011    { (exit 1); exit 1; }; }
23012                 else
23013                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23014 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23015                     wxUSE_LIBJPEG=builtin
23016                 fi
23017             else
23018                                 wxUSE_LIBJPEG=sys
23019             fi
23020         fi
23021     fi
23022 fi
23023
23024
23025 TIFF_LINK=
23026 TIFF_PREREQ_LINKS=-lm
23027 if test "$wxUSE_LIBTIFF" != "no" ; then
23028     cat >>confdefs.h <<\_ACEOF
23029 #define wxUSE_LIBTIFF 1
23030 _ACEOF
23031
23032
23033     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23034                         if test "$wxUSE_LIBJPEG" = "sys"; then
23035             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23036         fi
23037         if test "$wxUSE_ZLIB" = "sys"; then
23038             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23039         fi
23040         if test "${ac_cv_header_tiffio_h+set}" = set; then
23041   echo "$as_me:$LINENO: checking for tiffio.h" >&5
23042 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23043 if test "${ac_cv_header_tiffio_h+set}" = set; then
23044   echo $ECHO_N "(cached) $ECHO_C" >&6
23045 fi
23046 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23047 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23048 else
23049   # Is the header compilable?
23050 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23051 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23052 cat >conftest.$ac_ext <<_ACEOF
23053 /* confdefs.h.  */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h.  */
23058 $ac_includes_default
23059 #include <tiffio.h>
23060 _ACEOF
23061 rm -f conftest.$ac_objext
23062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23063   (eval $ac_compile) 2>conftest.er1
23064   ac_status=$?
23065   grep -v '^ *+' conftest.er1 >conftest.err
23066   rm -f conftest.er1
23067   cat conftest.err >&5
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); } &&
23070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072   (eval $ac_try) 2>&5
23073   ac_status=$?
23074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); }; } &&
23076          { ac_try='test -s conftest.$ac_objext'
23077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078   (eval $ac_try) 2>&5
23079   ac_status=$?
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); }; }; then
23082   ac_header_compiler=yes
23083 else
23084   echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23086
23087 ac_header_compiler=no
23088 fi
23089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23091 echo "${ECHO_T}$ac_header_compiler" >&6
23092
23093 # Is the header present?
23094 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23095 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23096 cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h.  */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h.  */
23102 #include <tiffio.h>
23103 _ACEOF
23104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23106   ac_status=$?
23107   grep -v '^ *+' conftest.er1 >conftest.err
23108   rm -f conftest.er1
23109   cat conftest.err >&5
23110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111   (exit $ac_status); } >/dev/null; then
23112   if test -s conftest.err; then
23113     ac_cpp_err=$ac_c_preproc_warn_flag
23114     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23115   else
23116     ac_cpp_err=
23117   fi
23118 else
23119   ac_cpp_err=yes
23120 fi
23121 if test -z "$ac_cpp_err"; then
23122   ac_header_preproc=yes
23123 else
23124   echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23126
23127   ac_header_preproc=no
23128 fi
23129 rm -f conftest.err conftest.$ac_ext
23130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23131 echo "${ECHO_T}$ac_header_preproc" >&6
23132
23133 # So?  What about this header?
23134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23135   yes:no: )
23136     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23137 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23138     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23139 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23140     ac_header_preproc=yes
23141     ;;
23142   no:yes:* )
23143     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23144 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
23145     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
23146 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
23147     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23148 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23149     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
23150 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23151     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23152 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
23153     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23154 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
23155     (
23156       cat <<\_ASBOX
23157 ## ----------------------------------------- ##
23158 ## Report this to wx-dev@lists.wxwidgets.org ##
23159 ## ----------------------------------------- ##
23160 _ASBOX
23161     ) |
23162       sed "s/^/$as_me: WARNING:     /" >&2
23163     ;;
23164 esac
23165 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23166 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23167 if test "${ac_cv_header_tiffio_h+set}" = set; then
23168   echo $ECHO_N "(cached) $ECHO_C" >&6
23169 else
23170   ac_cv_header_tiffio_h=$ac_header_preproc
23171 fi
23172 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23173 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23174
23175 fi
23176 if test $ac_cv_header_tiffio_h = yes; then
23177
23178                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23179 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23180 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23181   echo $ECHO_N "(cached) $ECHO_C" >&6
23182 else
23183   ac_check_lib_save_LIBS=$LIBS
23184 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23185 cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h.  */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h.  */
23191
23192 /* Override any gcc2 internal prototype to avoid an error.  */
23193 #ifdef __cplusplus
23194 extern "C"
23195 #endif
23196 /* We use char because int might match the return type of a gcc2
23197    builtin and then its argument prototype would still apply.  */
23198 char TIFFError ();
23199 int
23200 main ()
23201 {
23202 TIFFError ();
23203   ;
23204   return 0;
23205 }
23206 _ACEOF
23207 rm -f conftest.$ac_objext conftest$ac_exeext
23208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23209   (eval $ac_link) 2>conftest.er1
23210   ac_status=$?
23211   grep -v '^ *+' conftest.er1 >conftest.err
23212   rm -f conftest.er1
23213   cat conftest.err >&5
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); } &&
23216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218   (eval $ac_try) 2>&5
23219   ac_status=$?
23220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221   (exit $ac_status); }; } &&
23222          { ac_try='test -s conftest$ac_exeext'
23223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224   (eval $ac_try) 2>&5
23225   ac_status=$?
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); }; }; then
23228   ac_cv_lib_tiff_TIFFError=yes
23229 else
23230   echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233 ac_cv_lib_tiff_TIFFError=no
23234 fi
23235 rm -f conftest.err conftest.$ac_objext \
23236       conftest$ac_exeext conftest.$ac_ext
23237 LIBS=$ac_check_lib_save_LIBS
23238 fi
23239 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23240 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23241 if test $ac_cv_lib_tiff_TIFFError = yes; then
23242   TIFF_LINK=" -ltiff"
23243 fi
23244
23245
23246
23247 fi
23248
23249
23250
23251         if test "x$TIFF_LINK" = "x" ; then
23252             if test "$wxUSE_LIBTIFF" = "sys" ; then
23253                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23254 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23255    { (exit 1); exit 1; }; }
23256             else
23257                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23258 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23259                 wxUSE_LIBTIFF=builtin
23260             fi
23261         else
23262                         wxUSE_LIBTIFF=sys
23263         fi
23264     fi
23265 fi
23266
23267
23268 if test "$wxUSE_EXPAT" != "no"; then
23269     wxUSE_XML=yes
23270     cat >>confdefs.h <<\_ACEOF
23271 #define wxUSE_EXPAT 1
23272 _ACEOF
23273
23274     cat >>confdefs.h <<\_ACEOF
23275 #define wxUSE_XML 1
23276 _ACEOF
23277
23278
23279     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23280         if test "${ac_cv_header_expat_h+set}" = set; then
23281   echo "$as_me:$LINENO: checking for expat.h" >&5
23282 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23283 if test "${ac_cv_header_expat_h+set}" = set; then
23284   echo $ECHO_N "(cached) $ECHO_C" >&6
23285 fi
23286 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23287 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23288 else
23289   # Is the header compilable?
23290 echo "$as_me:$LINENO: checking expat.h usability" >&5
23291 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23292 cat >conftest.$ac_ext <<_ACEOF
23293 /* confdefs.h.  */
23294 _ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h.  */
23298 $ac_includes_default
23299 #include <expat.h>
23300 _ACEOF
23301 rm -f conftest.$ac_objext
23302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23303   (eval $ac_compile) 2>conftest.er1
23304   ac_status=$?
23305   grep -v '^ *+' conftest.er1 >conftest.err
23306   rm -f conftest.er1
23307   cat conftest.err >&5
23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309   (exit $ac_status); } &&
23310          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312   (eval $ac_try) 2>&5
23313   ac_status=$?
23314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); }; } &&
23316          { ac_try='test -s conftest.$ac_objext'
23317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318   (eval $ac_try) 2>&5
23319   ac_status=$?
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); }; }; then
23322   ac_header_compiler=yes
23323 else
23324   echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23326
23327 ac_header_compiler=no
23328 fi
23329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23331 echo "${ECHO_T}$ac_header_compiler" >&6
23332
23333 # Is the header present?
23334 echo "$as_me:$LINENO: checking expat.h presence" >&5
23335 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23336 cat >conftest.$ac_ext <<_ACEOF
23337 /* confdefs.h.  */
23338 _ACEOF
23339 cat confdefs.h >>conftest.$ac_ext
23340 cat >>conftest.$ac_ext <<_ACEOF
23341 /* end confdefs.h.  */
23342 #include <expat.h>
23343 _ACEOF
23344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23346   ac_status=$?
23347   grep -v '^ *+' conftest.er1 >conftest.err
23348   rm -f conftest.er1
23349   cat conftest.err >&5
23350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351   (exit $ac_status); } >/dev/null; then
23352   if test -s conftest.err; then
23353     ac_cpp_err=$ac_c_preproc_warn_flag
23354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23355   else
23356     ac_cpp_err=
23357   fi
23358 else
23359   ac_cpp_err=yes
23360 fi
23361 if test -z "$ac_cpp_err"; then
23362   ac_header_preproc=yes
23363 else
23364   echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23366
23367   ac_header_preproc=no
23368 fi
23369 rm -f conftest.err conftest.$ac_ext
23370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23371 echo "${ECHO_T}$ac_header_preproc" >&6
23372
23373 # So?  What about this header?
23374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23375   yes:no: )
23376     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23377 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23378     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23379 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23380     ac_header_preproc=yes
23381     ;;
23382   no:yes:* )
23383     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23384 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
23385     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
23386 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
23387     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23388 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23389     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
23390 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23391     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23392 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
23393     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23394 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
23395     (
23396       cat <<\_ASBOX
23397 ## ----------------------------------------- ##
23398 ## Report this to wx-dev@lists.wxwidgets.org ##
23399 ## ----------------------------------------- ##
23400 _ASBOX
23401     ) |
23402       sed "s/^/$as_me: WARNING:     /" >&2
23403     ;;
23404 esac
23405 echo "$as_me:$LINENO: checking for expat.h" >&5
23406 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23407 if test "${ac_cv_header_expat_h+set}" = set; then
23408   echo $ECHO_N "(cached) $ECHO_C" >&6
23409 else
23410   ac_cv_header_expat_h=$ac_header_preproc
23411 fi
23412 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23413 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23414
23415 fi
23416 if test $ac_cv_header_expat_h = yes; then
23417   found_expat_h=1
23418 fi
23419
23420
23421         if test "x$found_expat_h" = "x1"; then
23422                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23423 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23424 if test "${wx_cv_expat_is_not_broken+set}" = set; then
23425   echo $ECHO_N "(cached) $ECHO_C" >&6
23426 else
23427
23428
23429
23430                 ac_ext=cc
23431 ac_cpp='$CXXCPP $CPPFLAGS'
23432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23435
23436                 cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442 #include <expat.h>
23443 int
23444 main ()
23445 {
23446
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext
23452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23453   (eval $ac_compile) 2>conftest.er1
23454   ac_status=$?
23455   grep -v '^ *+' conftest.er1 >conftest.err
23456   rm -f conftest.er1
23457   cat conftest.err >&5
23458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459   (exit $ac_status); } &&
23460          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462   (eval $ac_try) 2>&5
23463   ac_status=$?
23464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); }; } &&
23466          { ac_try='test -s conftest.$ac_objext'
23467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468   (eval $ac_try) 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; }; then
23472   wx_cv_expat_is_not_broken=yes
23473 else
23474   echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23476
23477 wx_cv_expat_is_not_broken=no
23478
23479 fi
23480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23481                 ac_ext=c
23482 ac_cpp='$CPP $CPPFLAGS'
23483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23486
23487
23488
23489 fi
23490 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23491 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23492             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23493                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23494 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23495 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23496   echo $ECHO_N "(cached) $ECHO_C" >&6
23497 else
23498   ac_check_lib_save_LIBS=$LIBS
23499 LIBS="-lexpat  $LIBS"
23500 cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h.  */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h.  */
23506
23507 /* Override any gcc2 internal prototype to avoid an error.  */
23508 #ifdef __cplusplus
23509 extern "C"
23510 #endif
23511 /* We use char because int might match the return type of a gcc2
23512    builtin and then its argument prototype would still apply.  */
23513 char XML_ParserCreate ();
23514 int
23515 main ()
23516 {
23517 XML_ParserCreate ();
23518   ;
23519   return 0;
23520 }
23521 _ACEOF
23522 rm -f conftest.$ac_objext conftest$ac_exeext
23523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23524   (eval $ac_link) 2>conftest.er1
23525   ac_status=$?
23526   grep -v '^ *+' conftest.er1 >conftest.err
23527   rm -f conftest.er1
23528   cat conftest.err >&5
23529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530   (exit $ac_status); } &&
23531          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533   (eval $ac_try) 2>&5
23534   ac_status=$?
23535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536   (exit $ac_status); }; } &&
23537          { ac_try='test -s conftest$ac_exeext'
23538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23539   (eval $ac_try) 2>&5
23540   ac_status=$?
23541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542   (exit $ac_status); }; }; then
23543   ac_cv_lib_expat_XML_ParserCreate=yes
23544 else
23545   echo "$as_me: failed program was:" >&5
23546 sed 's/^/| /' conftest.$ac_ext >&5
23547
23548 ac_cv_lib_expat_XML_ParserCreate=no
23549 fi
23550 rm -f conftest.err conftest.$ac_objext \
23551       conftest$ac_exeext conftest.$ac_ext
23552 LIBS=$ac_check_lib_save_LIBS
23553 fi
23554 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23555 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23556 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23557   EXPAT_LINK=" -lexpat"
23558 fi
23559
23560             fi
23561         fi
23562         if test "x$EXPAT_LINK" = "x" ; then
23563             if test "$wxUSE_EXPAT" = "sys" ; then
23564                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23565 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23566    { (exit 1); exit 1; }; }
23567             else
23568                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23569 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23570                 wxUSE_EXPAT=builtin
23571             fi
23572         else
23573                         wxUSE_EXPAT=sys
23574         fi
23575     fi
23576     if test "$wxUSE_EXPAT" = "builtin" ; then
23577
23578
23579 subdirs="$subdirs src/expat"
23580
23581     fi
23582 fi
23583
23584
23585
23586 if test "$wxUSE_LIBMSPACK" != "no"; then
23587     if test "${ac_cv_header_mspack_h+set}" = set; then
23588   echo "$as_me:$LINENO: checking for mspack.h" >&5
23589 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23590 if test "${ac_cv_header_mspack_h+set}" = set; then
23591   echo $ECHO_N "(cached) $ECHO_C" >&6
23592 fi
23593 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23594 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23595 else
23596   # Is the header compilable?
23597 echo "$as_me:$LINENO: checking mspack.h usability" >&5
23598 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23599 cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h.  */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h.  */
23605 $ac_includes_default
23606 #include <mspack.h>
23607 _ACEOF
23608 rm -f conftest.$ac_objext
23609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23610   (eval $ac_compile) 2>conftest.er1
23611   ac_status=$?
23612   grep -v '^ *+' conftest.er1 >conftest.err
23613   rm -f conftest.er1
23614   cat conftest.err >&5
23615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616   (exit $ac_status); } &&
23617          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619   (eval $ac_try) 2>&5
23620   ac_status=$?
23621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622   (exit $ac_status); }; } &&
23623          { ac_try='test -s conftest.$ac_objext'
23624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625   (eval $ac_try) 2>&5
23626   ac_status=$?
23627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628   (exit $ac_status); }; }; then
23629   ac_header_compiler=yes
23630 else
23631   echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23633
23634 ac_header_compiler=no
23635 fi
23636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23638 echo "${ECHO_T}$ac_header_compiler" >&6
23639
23640 # Is the header present?
23641 echo "$as_me:$LINENO: checking mspack.h presence" >&5
23642 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23643 cat >conftest.$ac_ext <<_ACEOF
23644 /* confdefs.h.  */
23645 _ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h.  */
23649 #include <mspack.h>
23650 _ACEOF
23651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23653   ac_status=$?
23654   grep -v '^ *+' conftest.er1 >conftest.err
23655   rm -f conftest.er1
23656   cat conftest.err >&5
23657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658   (exit $ac_status); } >/dev/null; then
23659   if test -s conftest.err; then
23660     ac_cpp_err=$ac_c_preproc_warn_flag
23661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23662   else
23663     ac_cpp_err=
23664   fi
23665 else
23666   ac_cpp_err=yes
23667 fi
23668 if test -z "$ac_cpp_err"; then
23669   ac_header_preproc=yes
23670 else
23671   echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23673
23674   ac_header_preproc=no
23675 fi
23676 rm -f conftest.err conftest.$ac_ext
23677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23678 echo "${ECHO_T}$ac_header_preproc" >&6
23679
23680 # So?  What about this header?
23681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23682   yes:no: )
23683     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23684 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23685     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23686 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23687     ac_header_preproc=yes
23688     ;;
23689   no:yes:* )
23690     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23691 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
23692     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
23693 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
23694     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23695 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23696     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
23697 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23698     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23699 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
23700     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23701 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
23702     (
23703       cat <<\_ASBOX
23704 ## ----------------------------------------- ##
23705 ## Report this to wx-dev@lists.wxwidgets.org ##
23706 ## ----------------------------------------- ##
23707 _ASBOX
23708     ) |
23709       sed "s/^/$as_me: WARNING:     /" >&2
23710     ;;
23711 esac
23712 echo "$as_me:$LINENO: checking for mspack.h" >&5
23713 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23714 if test "${ac_cv_header_mspack_h+set}" = set; then
23715   echo $ECHO_N "(cached) $ECHO_C" >&6
23716 else
23717   ac_cv_header_mspack_h=$ac_header_preproc
23718 fi
23719 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23720 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23721
23722 fi
23723 if test $ac_cv_header_mspack_h = yes; then
23724   found_mspack_h=1
23725 fi
23726
23727
23728     if test "x$found_mspack_h" = "x1"; then
23729         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23730 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23731 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23732   echo $ECHO_N "(cached) $ECHO_C" >&6
23733 else
23734   ac_check_lib_save_LIBS=$LIBS
23735 LIBS="-lmspack  $LIBS"
23736 cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h.  */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h.  */
23742
23743 /* Override any gcc2 internal prototype to avoid an error.  */
23744 #ifdef __cplusplus
23745 extern "C"
23746 #endif
23747 /* We use char because int might match the return type of a gcc2
23748    builtin and then its argument prototype would still apply.  */
23749 char mspack_create_chm_decompressor ();
23750 int
23751 main ()
23752 {
23753 mspack_create_chm_decompressor ();
23754   ;
23755   return 0;
23756 }
23757 _ACEOF
23758 rm -f conftest.$ac_objext conftest$ac_exeext
23759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23760   (eval $ac_link) 2>conftest.er1
23761   ac_status=$?
23762   grep -v '^ *+' conftest.er1 >conftest.err
23763   rm -f conftest.er1
23764   cat conftest.err >&5
23765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766   (exit $ac_status); } &&
23767          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769   (eval $ac_try) 2>&5
23770   ac_status=$?
23771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772   (exit $ac_status); }; } &&
23773          { ac_try='test -s conftest$ac_exeext'
23774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23775   (eval $ac_try) 2>&5
23776   ac_status=$?
23777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778   (exit $ac_status); }; }; then
23779   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23780 else
23781   echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23783
23784 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23785 fi
23786 rm -f conftest.err conftest.$ac_objext \
23787       conftest$ac_exeext conftest.$ac_ext
23788 LIBS=$ac_check_lib_save_LIBS
23789 fi
23790 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23791 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23792 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23793   MSPACK_LINK=" -lmspack"
23794 fi
23795
23796     fi
23797     if test "x$MSPACK_LINK" = "x" ; then
23798         wxUSE_LIBMSPACK=no
23799     fi
23800 fi
23801
23802 if test "$wxUSE_LIBMSPACK" != "no"; then
23803     cat >>confdefs.h <<\_ACEOF
23804 #define wxUSE_LIBMSPACK 1
23805 _ACEOF
23806
23807 fi
23808
23809
23810
23811 AFMINSTALL=
23812 WIN32INSTALL=
23813
23814 TOOLKIT=
23815 TOOLKIT_INCLUDE=
23816 WIDGET_SET=
23817
23818 if test "$USE_WIN32" = 1 ; then
23819
23820 for ac_header in w32api.h
23821 do
23822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23824   echo "$as_me:$LINENO: checking for $ac_header" >&5
23825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23827   echo $ECHO_N "(cached) $ECHO_C" >&6
23828 fi
23829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23831 else
23832   # Is the header compilable?
23833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23835 cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h.  */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h.  */
23841 $ac_includes_default
23842 #include <$ac_header>
23843 _ACEOF
23844 rm -f conftest.$ac_objext
23845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23846   (eval $ac_compile) 2>conftest.er1
23847   ac_status=$?
23848   grep -v '^ *+' conftest.er1 >conftest.err
23849   rm -f conftest.er1
23850   cat conftest.err >&5
23851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852   (exit $ac_status); } &&
23853          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23855   (eval $ac_try) 2>&5
23856   ac_status=$?
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); }; } &&
23859          { ac_try='test -s conftest.$ac_objext'
23860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861   (eval $ac_try) 2>&5
23862   ac_status=$?
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); }; }; then
23865   ac_header_compiler=yes
23866 else
23867   echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23869
23870 ac_header_compiler=no
23871 fi
23872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23874 echo "${ECHO_T}$ac_header_compiler" >&6
23875
23876 # Is the header present?
23877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23878 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
23886 _ACEOF
23887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23889   ac_status=$?
23890   grep -v '^ *+' conftest.er1 >conftest.err
23891   rm -f conftest.er1
23892   cat conftest.err >&5
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); } >/dev/null; then
23895   if test -s conftest.err; then
23896     ac_cpp_err=$ac_c_preproc_warn_flag
23897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23898   else
23899     ac_cpp_err=
23900   fi
23901 else
23902   ac_cpp_err=yes
23903 fi
23904 if test -z "$ac_cpp_err"; then
23905   ac_header_preproc=yes
23906 else
23907   echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23909
23910   ac_header_preproc=no
23911 fi
23912 rm -f conftest.err conftest.$ac_ext
23913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23914 echo "${ECHO_T}$ac_header_preproc" >&6
23915
23916 # So?  What about this header?
23917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23918   yes:no: )
23919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23923     ac_header_preproc=yes
23924     ;;
23925   no:yes:* )
23926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23938     (
23939       cat <<\_ASBOX
23940 ## ----------------------------------------- ##
23941 ## Report this to wx-dev@lists.wxwidgets.org ##
23942 ## ----------------------------------------- ##
23943 _ASBOX
23944     ) |
23945       sed "s/^/$as_me: WARNING:     /" >&2
23946     ;;
23947 esac
23948 echo "$as_me:$LINENO: checking for $ac_header" >&5
23949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23951   echo $ECHO_N "(cached) $ECHO_C" >&6
23952 else
23953   eval "$as_ac_Header=\$ac_header_preproc"
23954 fi
23955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23957
23958 fi
23959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23960   cat >>confdefs.h <<_ACEOF
23961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23962 _ACEOF
23963
23964 fi
23965
23966 done
23967
23968     if test "${ac_cv_header_windows_h+set}" = set; then
23969   echo "$as_me:$LINENO: checking for windows.h" >&5
23970 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23971 if test "${ac_cv_header_windows_h+set}" = set; then
23972   echo $ECHO_N "(cached) $ECHO_C" >&6
23973 fi
23974 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23975 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23976 else
23977   # Is the header compilable?
23978 echo "$as_me:$LINENO: checking windows.h usability" >&5
23979 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23980 cat >conftest.$ac_ext <<_ACEOF
23981 /* confdefs.h.  */
23982 _ACEOF
23983 cat confdefs.h >>conftest.$ac_ext
23984 cat >>conftest.$ac_ext <<_ACEOF
23985 /* end confdefs.h.  */
23986 $ac_includes_default
23987 #include <windows.h>
23988 _ACEOF
23989 rm -f conftest.$ac_objext
23990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23991   (eval $ac_compile) 2>conftest.er1
23992   ac_status=$?
23993   grep -v '^ *+' conftest.er1 >conftest.err
23994   rm -f conftest.er1
23995   cat conftest.err >&5
23996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997   (exit $ac_status); } &&
23998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000   (eval $ac_try) 2>&5
24001   ac_status=$?
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); }; } &&
24004          { ac_try='test -s conftest.$ac_objext'
24005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006   (eval $ac_try) 2>&5
24007   ac_status=$?
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); }; }; then
24010   ac_header_compiler=yes
24011 else
24012   echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24014
24015 ac_header_compiler=no
24016 fi
24017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24019 echo "${ECHO_T}$ac_header_compiler" >&6
24020
24021 # Is the header present?
24022 echo "$as_me:$LINENO: checking windows.h presence" >&5
24023 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24024 cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h.  */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h.  */
24030 #include <windows.h>
24031 _ACEOF
24032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24033   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24034   ac_status=$?
24035   grep -v '^ *+' conftest.er1 >conftest.err
24036   rm -f conftest.er1
24037   cat conftest.err >&5
24038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039   (exit $ac_status); } >/dev/null; then
24040   if test -s conftest.err; then
24041     ac_cpp_err=$ac_c_preproc_warn_flag
24042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24043   else
24044     ac_cpp_err=
24045   fi
24046 else
24047   ac_cpp_err=yes
24048 fi
24049 if test -z "$ac_cpp_err"; then
24050   ac_header_preproc=yes
24051 else
24052   echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24054
24055   ac_header_preproc=no
24056 fi
24057 rm -f conftest.err conftest.$ac_ext
24058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24059 echo "${ECHO_T}$ac_header_preproc" >&6
24060
24061 # So?  What about this header?
24062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24063   yes:no: )
24064     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24065 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24066     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24067 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24068     ac_header_preproc=yes
24069     ;;
24070   no:yes:* )
24071     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24072 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
24073     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
24074 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
24075     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24076 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24077     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
24078 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24079     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24080 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
24081     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24082 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
24083     (
24084       cat <<\_ASBOX
24085 ## ----------------------------------------- ##
24086 ## Report this to wx-dev@lists.wxwidgets.org ##
24087 ## ----------------------------------------- ##
24088 _ASBOX
24089     ) |
24090       sed "s/^/$as_me: WARNING:     /" >&2
24091     ;;
24092 esac
24093 echo "$as_me:$LINENO: checking for windows.h" >&5
24094 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24095 if test "${ac_cv_header_windows_h+set}" = set; then
24096   echo $ECHO_N "(cached) $ECHO_C" >&6
24097 else
24098   ac_cv_header_windows_h=$ac_header_preproc
24099 fi
24100 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24101 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24102
24103 fi
24104 if test $ac_cv_header_windows_h = yes; then
24105   :
24106 else
24107
24108         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24109 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24110    { (exit 1); exit 1; }; }
24111
24112 fi
24113
24114
24115
24116             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24117
24118     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24119         LIBS="$LIBS -loleacc"
24120     fi
24121
24122     case "${host}" in
24123         *-*-cygwin* )
24124                         LIBS="$LIBS -lkernel32 -luser32"
24125             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24126     esac
24127
24128         if test "$wxUSE_ODBC" = "sys" ; then
24129         wxUSE_ODBC = "yes"
24130     fi
24131     if test "$wxUSE_ODBC" = "yes" ; then
24132         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24133         cat >>confdefs.h <<\_ACEOF
24134 #define wxUSE_ODBC 1
24135 _ACEOF
24136
24137     fi
24138
24139     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24140     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24141
24142         WIN32INSTALL=win32install
24143 fi
24144
24145 if test "$wxUSE_GUI" = "yes"; then
24146     USE_GUI=1
24147
24148     GUI_TK_LIBRARY=
24149
24150     WXGTK12=
24151     WXGTK127=
24152     WXGTK20=
24153     WXGPE=
24154
24155     if test "$wxUSE_COCOA" = 1 ; then
24156         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24157             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24158 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24159             wxUSE_PRINTING_ARCHITECTURE=no
24160         fi
24161         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24162             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24163 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24164             wxUSE_DRAG_AND_DROP=no
24165         fi
24166         if test "$wxUSE_DRAGIMAGE" = "yes"; then
24167             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24168 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24169             wxUSE_DRAGIMAGE=no
24170         fi
24171     fi
24172
24173     if test "$wxUSE_MSW" = 1 ; then
24174         TOOLKIT=MSW
24175         GUIDIST=MSW_DIST
24176
24177                 case "${host}" in
24178             *-*-mingw32* )
24179                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24180         esac
24181     fi
24182
24183     if test "$wxUSE_GTK" = 1; then
24184         echo "$as_me:$LINENO: checking for GTK+ version" >&5
24185 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24186
24187         gtk_version_cached=1
24188         if test "${wx_cv_lib_gtk+set}" = set; then
24189   echo $ECHO_N "(cached) $ECHO_C" >&6
24190 else
24191
24192                                                 gtk_version_cached=0
24193                 echo "$as_me:$LINENO: result: " >&5
24194 echo "${ECHO_T}" >&6
24195
24196                                                 GTK_MODULES=
24197                 if test "$wxUSE_THREADS" = "yes"; then
24198                     GTK_MODULES=gthread
24199                 fi
24200
24201                                                 wx_cv_lib_gtk=
24202                 if test "x$wxUSE_GTK2" = "xyes"; then
24203                     # Check whether --enable-gtktest or --disable-gtktest was given.
24204 if test "${enable_gtktest+set}" = set; then
24205   enableval="$enable_gtktest"
24206
24207 else
24208   enable_gtktest=yes
24209 fi;
24210
24211   pkg_config_args=gtk+-2.0
24212   for module in . $GTK_MODULES
24213   do
24214       case "$module" in
24215          gthread)
24216              pkg_config_args="$pkg_config_args gthread-2.0"
24217          ;;
24218       esac
24219   done
24220
24221   no_gtk=""
24222
24223   # Extract the first word of "pkg-config", so it can be a program name with args.
24224 set dummy pkg-config; ac_word=$2
24225 echo "$as_me:$LINENO: checking for $ac_word" >&5
24226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24227 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24228   echo $ECHO_N "(cached) $ECHO_C" >&6
24229 else
24230   case $PKG_CONFIG in
24231   [\\/]* | ?:[\\/]*)
24232   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24233   ;;
24234   *)
24235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24236 for as_dir in $PATH
24237 do
24238   IFS=$as_save_IFS
24239   test -z "$as_dir" && as_dir=.
24240   for ac_exec_ext in '' $ac_executable_extensions; do
24241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24242     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24244     break 2
24245   fi
24246 done
24247 done
24248
24249   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24250   ;;
24251 esac
24252 fi
24253 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24254
24255 if test -n "$PKG_CONFIG"; then
24256   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24257 echo "${ECHO_T}$PKG_CONFIG" >&6
24258 else
24259   echo "$as_me:$LINENO: result: no" >&5
24260 echo "${ECHO_T}no" >&6
24261 fi
24262
24263
24264   if test x$PKG_CONFIG != xno ; then
24265     if pkg-config --atleast-pkgconfig-version 0.7 ; then
24266       :
24267     else
24268       echo "*** pkg-config too old; version 0.7 or better required."
24269       no_gtk=yes
24270       PKG_CONFIG=no
24271     fi
24272   else
24273     no_gtk=yes
24274   fi
24275
24276   min_gtk_version=2.0.0
24277   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24278 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24279
24280   if test x$PKG_CONFIG != xno ; then
24281     ## don't try to run the test against uninstalled libtool libs
24282     if $PKG_CONFIG --uninstalled $pkg_config_args; then
24283           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24284           enable_gtktest=no
24285     fi
24286
24287     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24288           :
24289     else
24290           no_gtk=yes
24291     fi
24292   fi
24293
24294   if test x"$no_gtk" = x ; then
24295     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24296     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24297     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24298            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24299     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24300            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24301     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24302            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24303     if test "x$enable_gtktest" = "xyes" ; then
24304       ac_save_CFLAGS="$CFLAGS"
24305       ac_save_LIBS="$LIBS"
24306       CFLAGS="$CFLAGS $GTK_CFLAGS"
24307       LIBS="$GTK_LIBS $LIBS"
24308       rm -f conf.gtktest
24309       if test "$cross_compiling" = yes; then
24310   echo $ac_n "cross compiling; assumed OK... $ac_c"
24311 else
24312   cat >conftest.$ac_ext <<_ACEOF
24313 /* confdefs.h.  */
24314 _ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h.  */
24318
24319 #include <gtk/gtk.h>
24320 #include <stdio.h>
24321 #include <stdlib.h>
24322
24323 int
24324 main ()
24325 {
24326   int major, minor, micro;
24327   char *tmp_version;
24328
24329   system ("touch conf.gtktest");
24330
24331   /* HP/UX 9 (%@#!) writes to sscanf strings */
24332   tmp_version = g_strdup("$min_gtk_version");
24333   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24334      printf("%s, bad version string\n", "$min_gtk_version");
24335      exit(1);
24336    }
24337
24338   if ((gtk_major_version != $gtk_config_major_version) ||
24339       (gtk_minor_version != $gtk_config_minor_version) ||
24340       (gtk_micro_version != $gtk_config_micro_version))
24341     {
24342       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24343              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24344              gtk_major_version, gtk_minor_version, gtk_micro_version);
24345       printf ("*** was found! If pkg-config was correct, then it is best\n");
24346       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24347       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24348       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24349       printf("*** required on your system.\n");
24350       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24351       printf("*** to point to the correct configuration files\n");
24352     }
24353   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24354            (gtk_minor_version != GTK_MINOR_VERSION) ||
24355            (gtk_micro_version != GTK_MICRO_VERSION))
24356     {
24357       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24358              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24359       printf("*** library (version %d.%d.%d)\n",
24360              gtk_major_version, gtk_minor_version, gtk_micro_version);
24361     }
24362   else
24363     {
24364       if ((gtk_major_version > major) ||
24365         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24366         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24367       {
24368         return 0;
24369        }
24370      else
24371       {
24372         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24373                gtk_major_version, gtk_minor_version, gtk_micro_version);
24374         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24375                major, minor, micro);
24376         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24377         printf("***\n");
24378         printf("*** If you have already installed a sufficiently new version, this error\n");
24379         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24380         printf("*** being found. The easiest way to fix this is to remove the old version\n");
24381         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24382         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24383         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24384         printf("*** so that the correct libraries are found at run-time))\n");
24385       }
24386     }
24387   return 1;
24388 }
24389
24390 _ACEOF
24391 rm -f conftest$ac_exeext
24392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24393   (eval $ac_link) 2>&5
24394   ac_status=$?
24395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398   (eval $ac_try) 2>&5
24399   ac_status=$?
24400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401   (exit $ac_status); }; }; then
24402   :
24403 else
24404   echo "$as_me: program exited with status $ac_status" >&5
24405 echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.$ac_ext >&5
24407
24408 ( exit $ac_status )
24409 no_gtk=yes
24410 fi
24411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24412 fi
24413        CFLAGS="$ac_save_CFLAGS"
24414        LIBS="$ac_save_LIBS"
24415      fi
24416   fi
24417   if test "x$no_gtk" = x ; then
24418      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24419 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24420      wx_cv_lib_gtk=2.0
24421   else
24422      echo "$as_me:$LINENO: result: no" >&5
24423 echo "${ECHO_T}no" >&6
24424      if test "$PKG_CONFIG" = "no" ; then
24425        echo "*** A new enough version of pkg-config was not found."
24426        echo "*** See http://pkgconfig.sourceforge.net"
24427      else
24428        if test -f conf.gtktest ; then
24429         :
24430        else
24431           echo "*** Could not run GTK+ test program, checking why..."
24432           ac_save_CFLAGS="$CFLAGS"
24433           ac_save_LIBS="$LIBS"
24434           CFLAGS="$CFLAGS $GTK_CFLAGS"
24435           LIBS="$LIBS $GTK_LIBS"
24436           cat >conftest.$ac_ext <<_ACEOF
24437 /* confdefs.h.  */
24438 _ACEOF
24439 cat confdefs.h >>conftest.$ac_ext
24440 cat >>conftest.$ac_ext <<_ACEOF
24441 /* end confdefs.h.  */
24442
24443 #include <gtk/gtk.h>
24444 #include <stdio.h>
24445
24446 int
24447 main ()
24448 {
24449  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24450   ;
24451   return 0;
24452 }
24453 _ACEOF
24454 rm -f conftest.$ac_objext conftest$ac_exeext
24455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24456   (eval $ac_link) 2>conftest.er1
24457   ac_status=$?
24458   grep -v '^ *+' conftest.er1 >conftest.err
24459   rm -f conftest.er1
24460   cat conftest.err >&5
24461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462   (exit $ac_status); } &&
24463          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24465   (eval $ac_try) 2>&5
24466   ac_status=$?
24467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468   (exit $ac_status); }; } &&
24469          { ac_try='test -s conftest$ac_exeext'
24470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24471   (eval $ac_try) 2>&5
24472   ac_status=$?
24473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474   (exit $ac_status); }; }; then
24475    echo "*** The test program compiled, but did not run. This usually means"
24476           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24477           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24478           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24479           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
24480           echo "*** is required on your system"
24481           echo "***"
24482           echo "*** If you have an old version installed, it is best to remove it, although"
24483           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24484 else
24485   echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24487
24488  echo "*** The test program failed to compile or link. See the file config.log for the"
24489           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24490 fi
24491 rm -f conftest.err conftest.$ac_objext \
24492       conftest$ac_exeext conftest.$ac_ext
24493           CFLAGS="$ac_save_CFLAGS"
24494           LIBS="$ac_save_LIBS"
24495        fi
24496      fi
24497      GTK_CFLAGS=""
24498      GTK_LIBS=""
24499      :
24500   fi
24501
24502
24503   rm -f conf.gtktest
24504
24505                 else
24506
24507 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24508 if test "${with_gtk_prefix+set}" = set; then
24509   withval="$with_gtk_prefix"
24510   gtk_config_prefix="$withval"
24511 else
24512   gtk_config_prefix=""
24513 fi;
24514
24515 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24516 if test "${with_gtk_exec_prefix+set}" = set; then
24517   withval="$with_gtk_exec_prefix"
24518   gtk_config_exec_prefix="$withval"
24519 else
24520   gtk_config_exec_prefix=""
24521 fi;
24522 # Check whether --enable-gtktest or --disable-gtktest was given.
24523 if test "${enable_gtktest+set}" = set; then
24524   enableval="$enable_gtktest"
24525
24526 else
24527   enable_gtktest=yes
24528 fi;
24529
24530   for module in . $GTK_MODULES
24531   do
24532       case "$module" in
24533          gthread)
24534              gtk_config_args="$gtk_config_args gthread"
24535          ;;
24536       esac
24537   done
24538
24539   if test x$gtk_config_exec_prefix != x ; then
24540      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24541      if test x${GTK_CONFIG+set} != xset ; then
24542         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24543      fi
24544   fi
24545   if test x$gtk_config_prefix != x ; then
24546      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24547      if test x${GTK_CONFIG+set} != xset ; then
24548         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24549      fi
24550   fi
24551
24552   # Extract the first word of "gtk-config", so it can be a program name with args.
24553 set dummy gtk-config; ac_word=$2
24554 echo "$as_me:$LINENO: checking for $ac_word" >&5
24555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24556 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24557   echo $ECHO_N "(cached) $ECHO_C" >&6
24558 else
24559   case $GTK_CONFIG in
24560   [\\/]* | ?:[\\/]*)
24561   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24562   ;;
24563   *)
24564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24565 for as_dir in $PATH
24566 do
24567   IFS=$as_save_IFS
24568   test -z "$as_dir" && as_dir=.
24569   for ac_exec_ext in '' $ac_executable_extensions; do
24570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24571     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24573     break 2
24574   fi
24575 done
24576 done
24577
24578   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24579   ;;
24580 esac
24581 fi
24582 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24583
24584 if test -n "$GTK_CONFIG"; then
24585   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24586 echo "${ECHO_T}$GTK_CONFIG" >&6
24587 else
24588   echo "$as_me:$LINENO: result: no" >&5
24589 echo "${ECHO_T}no" >&6
24590 fi
24591
24592   min_gtk_version=1.2.7
24593   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24594 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24595   no_gtk=""
24596   if test "$GTK_CONFIG" = "no" ; then
24597     no_gtk=yes
24598   else
24599     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24600     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24601     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24602            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24603     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24604            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24605     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24606            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24607     if test "x$enable_gtktest" = "xyes" ; then
24608       ac_save_CFLAGS="$CFLAGS"
24609       ac_save_LIBS="$LIBS"
24610       CFLAGS="$CFLAGS $GTK_CFLAGS"
24611       LIBS="$GTK_LIBS $LIBS"
24612       rm -f conf.gtktest
24613       if test "$cross_compiling" = yes; then
24614   echo $ac_n "cross compiling; assumed OK... $ac_c"
24615 else
24616   cat >conftest.$ac_ext <<_ACEOF
24617 /* confdefs.h.  */
24618 _ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h.  */
24622
24623 #include <gtk/gtk.h>
24624 #include <stdio.h>
24625 #include <stdlib.h>
24626
24627 int
24628 main ()
24629 {
24630   int major, minor, micro;
24631   char *tmp_version;
24632
24633   system ("touch conf.gtktest");
24634
24635   /* HP/UX 9 (%@#!) writes to sscanf strings */
24636   tmp_version = g_strdup("$min_gtk_version");
24637   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24638      printf("%s, bad version string\n", "$min_gtk_version");
24639      exit(1);
24640    }
24641
24642   if ((gtk_major_version != $gtk_config_major_version) ||
24643       (gtk_minor_version != $gtk_config_minor_version) ||
24644       (gtk_micro_version != $gtk_config_micro_version))
24645     {
24646       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24647              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24648              gtk_major_version, gtk_minor_version, gtk_micro_version);
24649       printf ("*** was found! If gtk-config was correct, then it is best\n");
24650       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24651       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24652       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24653       printf("*** required on your system.\n");
24654       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24655       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24656       printf("*** before re-running configure\n");
24657     }
24658 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24659   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24660            (gtk_minor_version != GTK_MINOR_VERSION) ||
24661            (gtk_micro_version != GTK_MICRO_VERSION))
24662     {
24663       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24664              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24665       printf("*** library (version %d.%d.%d)\n",
24666              gtk_major_version, gtk_minor_version, gtk_micro_version);
24667     }
24668 #endif /* defined (GTK_MAJOR_VERSION) ... */
24669   else
24670     {
24671       if ((gtk_major_version > major) ||
24672         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24673         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24674       {
24675         return 0;
24676        }
24677      else
24678       {
24679         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24680                gtk_major_version, gtk_minor_version, gtk_micro_version);
24681         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24682                major, minor, micro);
24683         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24684         printf("***\n");
24685         printf("*** If you have already installed a sufficiently new version, this error\n");
24686         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24687         printf("*** being found. The easiest way to fix this is to remove the old version\n");
24688         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24689         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24690         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24691         printf("*** so that the correct libraries are found at run-time))\n");
24692       }
24693     }
24694   return 1;
24695 }
24696
24697 _ACEOF
24698 rm -f conftest$ac_exeext
24699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24700   (eval $ac_link) 2>&5
24701   ac_status=$?
24702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24705   (eval $ac_try) 2>&5
24706   ac_status=$?
24707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708   (exit $ac_status); }; }; then
24709   :
24710 else
24711   echo "$as_me: program exited with status $ac_status" >&5
24712 echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24714
24715 ( exit $ac_status )
24716 no_gtk=yes
24717 fi
24718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24719 fi
24720        CFLAGS="$ac_save_CFLAGS"
24721        LIBS="$ac_save_LIBS"
24722      fi
24723   fi
24724   if test "x$no_gtk" = x ; then
24725      echo "$as_me:$LINENO: result: yes" >&5
24726 echo "${ECHO_T}yes" >&6
24727      wx_cv_lib_gtk=1.2.7
24728   else
24729      echo "$as_me:$LINENO: result: no" >&5
24730 echo "${ECHO_T}no" >&6
24731      if test "$GTK_CONFIG" = "no" ; then
24732        echo "*** The gtk-config script installed by GTK could not be found"
24733        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24734        echo "*** your path, or set the GTK_CONFIG environment variable to the"
24735        echo "*** full path to gtk-config."
24736      else
24737        if test -f conf.gtktest ; then
24738         :
24739        else
24740           echo "*** Could not run GTK test program, checking why..."
24741           CFLAGS="$CFLAGS $GTK_CFLAGS"
24742           LIBS="$LIBS $GTK_LIBS"
24743           cat >conftest.$ac_ext <<_ACEOF
24744 /* confdefs.h.  */
24745 _ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h.  */
24749
24750 #include <gtk/gtk.h>
24751 #include <stdio.h>
24752
24753 int
24754 main ()
24755 {
24756  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24757   ;
24758   return 0;
24759 }
24760 _ACEOF
24761 rm -f conftest.$ac_objext conftest$ac_exeext
24762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24763   (eval $ac_link) 2>conftest.er1
24764   ac_status=$?
24765   grep -v '^ *+' conftest.er1 >conftest.err
24766   rm -f conftest.er1
24767   cat conftest.err >&5
24768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769   (exit $ac_status); } &&
24770          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24772   (eval $ac_try) 2>&5
24773   ac_status=$?
24774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775   (exit $ac_status); }; } &&
24776          { ac_try='test -s conftest$ac_exeext'
24777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24778   (eval $ac_try) 2>&5
24779   ac_status=$?
24780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781   (exit $ac_status); }; }; then
24782    echo "*** The test program compiled, but did not run. This usually means"
24783           echo "*** that the run-time linker is not finding GTK or finding the wrong"
24784           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24785           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24786           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
24787           echo "*** is required on your system"
24788           echo "***"
24789           echo "*** If you have an old version installed, it is best to remove it, although"
24790           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24791           echo "***"
24792           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24793           echo "*** came with the system with the command"
24794           echo "***"
24795           echo "***    rpm --erase --nodeps gtk gtk-devel"
24796 else
24797   echo "$as_me: failed program was:" >&5
24798 sed 's/^/| /' conftest.$ac_ext >&5
24799
24800  echo "*** The test program failed to compile or link. See the file config.log for the"
24801           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24802           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24803           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24804 fi
24805 rm -f conftest.err conftest.$ac_objext \
24806       conftest$ac_exeext conftest.$ac_ext
24807           CFLAGS="$ac_save_CFLAGS"
24808           LIBS="$ac_save_LIBS"
24809        fi
24810      fi
24811      GTK_CFLAGS=""
24812      GTK_LIBS=""
24813      :
24814   fi
24815
24816
24817   rm -f conf.gtktest
24818
24819
24820                     if test -z "$wx_cv_lib_gtk"; then
24821
24822 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24823 if test "${with_gtk_prefix+set}" = set; then
24824   withval="$with_gtk_prefix"
24825   gtk_config_prefix="$withval"
24826 else
24827   gtk_config_prefix=""
24828 fi;
24829
24830 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24831 if test "${with_gtk_exec_prefix+set}" = set; then
24832   withval="$with_gtk_exec_prefix"
24833   gtk_config_exec_prefix="$withval"
24834 else
24835   gtk_config_exec_prefix=""
24836 fi;
24837 # Check whether --enable-gtktest or --disable-gtktest was given.
24838 if test "${enable_gtktest+set}" = set; then
24839   enableval="$enable_gtktest"
24840
24841 else
24842   enable_gtktest=yes
24843 fi;
24844
24845   for module in . $GTK_MODULES
24846   do
24847       case "$module" in
24848          gthread)
24849              gtk_config_args="$gtk_config_args gthread"
24850          ;;
24851       esac
24852   done
24853
24854   if test x$gtk_config_exec_prefix != x ; then
24855      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24856      if test x${GTK_CONFIG+set} != xset ; then
24857         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24858      fi
24859   fi
24860   if test x$gtk_config_prefix != x ; then
24861      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24862      if test x${GTK_CONFIG+set} != xset ; then
24863         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24864      fi
24865   fi
24866
24867   # Extract the first word of "gtk-config", so it can be a program name with args.
24868 set dummy gtk-config; ac_word=$2
24869 echo "$as_me:$LINENO: checking for $ac_word" >&5
24870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24871 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24872   echo $ECHO_N "(cached) $ECHO_C" >&6
24873 else
24874   case $GTK_CONFIG in
24875   [\\/]* | ?:[\\/]*)
24876   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24877   ;;
24878   *)
24879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24880 for as_dir in $PATH
24881 do
24882   IFS=$as_save_IFS
24883   test -z "$as_dir" && as_dir=.
24884   for ac_exec_ext in '' $ac_executable_extensions; do
24885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24886     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24888     break 2
24889   fi
24890 done
24891 done
24892
24893   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24894   ;;
24895 esac
24896 fi
24897 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24898
24899 if test -n "$GTK_CONFIG"; then
24900   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24901 echo "${ECHO_T}$GTK_CONFIG" >&6
24902 else
24903   echo "$as_me:$LINENO: result: no" >&5
24904 echo "${ECHO_T}no" >&6
24905 fi
24906
24907   min_gtk_version=1.2.3
24908   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24909 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24910   no_gtk=""
24911   if test "$GTK_CONFIG" = "no" ; then
24912     no_gtk=yes
24913   else
24914     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24915     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24916     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24917            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24918     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24919            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24920     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24921            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24922     if test "x$enable_gtktest" = "xyes" ; then
24923       ac_save_CFLAGS="$CFLAGS"
24924       ac_save_LIBS="$LIBS"
24925       CFLAGS="$CFLAGS $GTK_CFLAGS"
24926       LIBS="$GTK_LIBS $LIBS"
24927       rm -f conf.gtktest
24928       if test "$cross_compiling" = yes; then
24929   echo $ac_n "cross compiling; assumed OK... $ac_c"
24930 else
24931   cat >conftest.$ac_ext <<_ACEOF
24932 /* confdefs.h.  */
24933 _ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h.  */
24937
24938 #include <gtk/gtk.h>
24939 #include <stdio.h>
24940 #include <stdlib.h>
24941
24942 int
24943 main ()
24944 {
24945   int major, minor, micro;
24946   char *tmp_version;
24947
24948   system ("touch conf.gtktest");
24949
24950   /* HP/UX 9 (%@#!) writes to sscanf strings */
24951   tmp_version = g_strdup("$min_gtk_version");
24952   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24953      printf("%s, bad version string\n", "$min_gtk_version");
24954      exit(1);
24955    }
24956
24957   if ((gtk_major_version != $gtk_config_major_version) ||
24958       (gtk_minor_version != $gtk_config_minor_version) ||
24959       (gtk_micro_version != $gtk_config_micro_version))
24960     {
24961       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24962              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24963              gtk_major_version, gtk_minor_version, gtk_micro_version);
24964       printf ("*** was found! If gtk-config was correct, then it is best\n");
24965       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24966       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24967       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24968       printf("*** required on your system.\n");
24969       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24970       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24971       printf("*** before re-running configure\n");
24972     }
24973 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24974   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24975            (gtk_minor_version != GTK_MINOR_VERSION) ||
24976            (gtk_micro_version != GTK_MICRO_VERSION))
24977     {
24978       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24979              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24980       printf("*** library (version %d.%d.%d)\n",
24981              gtk_major_version, gtk_minor_version, gtk_micro_version);
24982     }
24983 #endif /* defined (GTK_MAJOR_VERSION) ... */
24984   else
24985     {
24986       if ((gtk_major_version > major) ||
24987         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24988         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24989       {
24990         return 0;
24991        }
24992      else
24993       {
24994         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24995                gtk_major_version, gtk_minor_version, gtk_micro_version);
24996         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24997                major, minor, micro);
24998         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24999         printf("***\n");
25000         printf("*** If you have already installed a sufficiently new version, this error\n");
25001         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25002         printf("*** being found. The easiest way to fix this is to remove the old version\n");
25003         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25004         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25005         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25006         printf("*** so that the correct libraries are found at run-time))\n");
25007       }
25008     }
25009   return 1;
25010 }
25011
25012 _ACEOF
25013 rm -f conftest$ac_exeext
25014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25015   (eval $ac_link) 2>&5
25016   ac_status=$?
25017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020   (eval $ac_try) 2>&5
25021   ac_status=$?
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); }; }; then
25024   :
25025 else
25026   echo "$as_me: program exited with status $ac_status" >&5
25027 echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.$ac_ext >&5
25029
25030 ( exit $ac_status )
25031 no_gtk=yes
25032 fi
25033 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25034 fi
25035        CFLAGS="$ac_save_CFLAGS"
25036        LIBS="$ac_save_LIBS"
25037      fi
25038   fi
25039   if test "x$no_gtk" = x ; then
25040      echo "$as_me:$LINENO: result: yes" >&5
25041 echo "${ECHO_T}yes" >&6
25042      wx_cv_lib_gtk=1.2.3
25043   else
25044      echo "$as_me:$LINENO: result: no" >&5
25045 echo "${ECHO_T}no" >&6
25046      if test "$GTK_CONFIG" = "no" ; then
25047        echo "*** The gtk-config script installed by GTK could not be found"
25048        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25049        echo "*** your path, or set the GTK_CONFIG environment variable to the"
25050        echo "*** full path to gtk-config."
25051      else
25052        if test -f conf.gtktest ; then
25053         :
25054        else
25055           echo "*** Could not run GTK test program, checking why..."
25056           CFLAGS="$CFLAGS $GTK_CFLAGS"
25057           LIBS="$LIBS $GTK_LIBS"
25058           cat >conftest.$ac_ext <<_ACEOF
25059 /* confdefs.h.  */
25060 _ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h.  */
25064
25065 #include <gtk/gtk.h>
25066 #include <stdio.h>
25067
25068 int
25069 main ()
25070 {
25071  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25072   ;
25073   return 0;
25074 }
25075 _ACEOF
25076 rm -f conftest.$ac_objext conftest$ac_exeext
25077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25078   (eval $ac_link) 2>conftest.er1
25079   ac_status=$?
25080   grep -v '^ *+' conftest.er1 >conftest.err
25081   rm -f conftest.er1
25082   cat conftest.err >&5
25083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084   (exit $ac_status); } &&
25085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087   (eval $ac_try) 2>&5
25088   ac_status=$?
25089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090   (exit $ac_status); }; } &&
25091          { ac_try='test -s conftest$ac_exeext'
25092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093   (eval $ac_try) 2>&5
25094   ac_status=$?
25095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096   (exit $ac_status); }; }; then
25097    echo "*** The test program compiled, but did not run. This usually means"
25098           echo "*** that the run-time linker is not finding GTK or finding the wrong"
25099           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25100           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25101           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
25102           echo "*** is required on your system"
25103           echo "***"
25104           echo "*** If you have an old version installed, it is best to remove it, although"
25105           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25106           echo "***"
25107           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25108           echo "*** came with the system with the command"
25109           echo "***"
25110           echo "***    rpm --erase --nodeps gtk gtk-devel"
25111 else
25112   echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.$ac_ext >&5
25114
25115  echo "*** The test program failed to compile or link. See the file config.log for the"
25116           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25117           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25118           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25119 fi
25120 rm -f conftest.err conftest.$ac_objext \
25121       conftest$ac_exeext conftest.$ac_ext
25122           CFLAGS="$ac_save_CFLAGS"
25123           LIBS="$ac_save_LIBS"
25124        fi
25125      fi
25126      GTK_CFLAGS=""
25127      GTK_LIBS=""
25128      :
25129   fi
25130
25131
25132   rm -f conf.gtktest
25133
25134                     fi
25135                 fi
25136
25137                 if test -z "$wx_cv_lib_gtk"; then
25138                                         wx_cv_lib_gtk=none
25139                 else
25140                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
25141                     wx_cv_libs_gtk=$GTK_LIBS
25142                 fi
25143
25144
25145 fi
25146
25147
25148                         if test "$gtk_version_cached" = 1; then
25149             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25150 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25151         fi
25152
25153         case "$wx_cv_lib_gtk" in
25154             2.0)    WXGTK20=1
25155                     TOOLKIT_VERSION=2
25156                     ;;
25157             1.2.7)  WXGTK127=1
25158                     WXGTK12=1
25159                     ;;
25160             1.2.3)  WXGTK12=1
25161                     ;;
25162             *)      { { echo "$as_me:$LINENO: error:
25163 Please check that gtk-config is in path, the directory
25164 where GTK+ libraries are installed (returned by
25165 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25166 equivalent variable and GTK+ is version 1.2.3 or above.
25167                             " >&5
25168 echo "$as_me: error:
25169 Please check that gtk-config is in path, the directory
25170 where GTK+ libraries are installed (returned by
25171 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25172 equivalent variable and GTK+ is version 1.2.3 or above.
25173                             " >&2;}
25174    { (exit 1); exit 1; }; }
25175                     ;;
25176         esac
25177
25178         if test "$WXGTK20" = 1; then
25179             save_CFLAGS="$CFLAGS"
25180             save_LIBS="$LIBS"
25181             CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25182             LIBS="$LIBS $wx_cv_lib_gtk"
25183
25184
25185 for ac_func in pango_font_family_is_monospace
25186 do
25187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25188 echo "$as_me:$LINENO: checking for $ac_func" >&5
25189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25190 if eval "test \"\${$as_ac_var+set}\" = set"; then
25191   echo $ECHO_N "(cached) $ECHO_C" >&6
25192 else
25193   cat >conftest.$ac_ext <<_ACEOF
25194 /* confdefs.h.  */
25195 _ACEOF
25196 cat confdefs.h >>conftest.$ac_ext
25197 cat >>conftest.$ac_ext <<_ACEOF
25198 /* end confdefs.h.  */
25199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25201 #define $ac_func innocuous_$ac_func
25202
25203 /* System header to define __stub macros and hopefully few prototypes,
25204     which can conflict with char $ac_func (); below.
25205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25206     <limits.h> exists even on freestanding compilers.  */
25207
25208 #ifdef __STDC__
25209 # include <limits.h>
25210 #else
25211 # include <assert.h>
25212 #endif
25213
25214 #undef $ac_func
25215
25216 /* Override any gcc2 internal prototype to avoid an error.  */
25217 #ifdef __cplusplus
25218 extern "C"
25219 {
25220 #endif
25221 /* We use char because int might match the return type of a gcc2
25222    builtin and then its argument prototype would still apply.  */
25223 char $ac_func ();
25224 /* The GNU C library defines this for functions which it implements
25225     to always fail with ENOSYS.  Some functions are actually named
25226     something starting with __ and the normal name is an alias.  */
25227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25228 choke me
25229 #else
25230 char (*f) () = $ac_func;
25231 #endif
25232 #ifdef __cplusplus
25233 }
25234 #endif
25235
25236 int
25237 main ()
25238 {
25239 return f != $ac_func;
25240   ;
25241   return 0;
25242 }
25243 _ACEOF
25244 rm -f conftest.$ac_objext conftest$ac_exeext
25245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25246   (eval $ac_link) 2>conftest.er1
25247   ac_status=$?
25248   grep -v '^ *+' conftest.er1 >conftest.err
25249   rm -f conftest.er1
25250   cat conftest.err >&5
25251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252   (exit $ac_status); } &&
25253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255   (eval $ac_try) 2>&5
25256   ac_status=$?
25257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258   (exit $ac_status); }; } &&
25259          { ac_try='test -s conftest$ac_exeext'
25260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261   (eval $ac_try) 2>&5
25262   ac_status=$?
25263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264   (exit $ac_status); }; }; then
25265   eval "$as_ac_var=yes"
25266 else
25267   echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25269
25270 eval "$as_ac_var=no"
25271 fi
25272 rm -f conftest.err conftest.$ac_objext \
25273       conftest$ac_exeext conftest.$ac_ext
25274 fi
25275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25277 if test `eval echo '${'$as_ac_var'}'` = yes; then
25278   cat >>confdefs.h <<_ACEOF
25279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25280 _ACEOF
25281
25282 fi
25283 done
25284
25285
25286                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25287 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25288             cat >conftest.$ac_ext <<_ACEOF
25289 /* confdefs.h.  */
25290 _ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h.  */
25294
25295                             #include <gtk/gtk.h>
25296
25297 int
25298 main ()
25299 {
25300
25301                             #if !GTK_CHECK_VERSION(2,4,0)
25302                             #error "Not GTK+ 2.4"
25303                             #endif
25304
25305   ;
25306   return 0;
25307 }
25308 _ACEOF
25309 rm -f conftest.$ac_objext
25310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25311   (eval $ac_compile) 2>conftest.er1
25312   ac_status=$?
25313   grep -v '^ *+' conftest.er1 >conftest.err
25314   rm -f conftest.er1
25315   cat conftest.err >&5
25316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317   (exit $ac_status); } &&
25318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25320   (eval $ac_try) 2>&5
25321   ac_status=$?
25322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323   (exit $ac_status); }; } &&
25324          { ac_try='test -s conftest.$ac_objext'
25325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326   (eval $ac_try) 2>&5
25327   ac_status=$?
25328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329   (exit $ac_status); }; }; then
25330
25331                             cat >>confdefs.h <<\_ACEOF
25332 #define __WXGTK24__ 1
25333 _ACEOF
25334
25335                             echo "$as_me:$LINENO: result: yes" >&5
25336 echo "${ECHO_T}yes" >&6
25337
25338 else
25339   echo "$as_me: failed program was:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25341
25342
25343                             echo "$as_me:$LINENO: result: no" >&5
25344 echo "${ECHO_T}no" >&6
25345
25346 fi
25347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25348
25349             CFLAGS="$save_CFLAGS"
25350             LIBS="$save_LIBS"
25351         else
25352             if test "$wxUSE_UNICODE" = "yes"; then
25353                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25354 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25355                 wxUSE_UNICODE=no
25356             fi
25357         fi
25358
25359                         if test "$USE_DARWIN" != 1; then
25360
25361 for ac_func in poll
25362 do
25363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25364 echo "$as_me:$LINENO: checking for $ac_func" >&5
25365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25366 if eval "test \"\${$as_ac_var+set}\" = set"; then
25367   echo $ECHO_N "(cached) $ECHO_C" >&6
25368 else
25369   cat >conftest.$ac_ext <<_ACEOF
25370 /* confdefs.h.  */
25371 _ACEOF
25372 cat confdefs.h >>conftest.$ac_ext
25373 cat >>conftest.$ac_ext <<_ACEOF
25374 /* end confdefs.h.  */
25375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25377 #define $ac_func innocuous_$ac_func
25378
25379 /* System header to define __stub macros and hopefully few prototypes,
25380     which can conflict with char $ac_func (); below.
25381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25382     <limits.h> exists even on freestanding compilers.  */
25383
25384 #ifdef __STDC__
25385 # include <limits.h>
25386 #else
25387 # include <assert.h>
25388 #endif
25389
25390 #undef $ac_func
25391
25392 /* Override any gcc2 internal prototype to avoid an error.  */
25393 #ifdef __cplusplus
25394 extern "C"
25395 {
25396 #endif
25397 /* We use char because int might match the return type of a gcc2
25398    builtin and then its argument prototype would still apply.  */
25399 char $ac_func ();
25400 /* The GNU C library defines this for functions which it implements
25401     to always fail with ENOSYS.  Some functions are actually named
25402     something starting with __ and the normal name is an alias.  */
25403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25404 choke me
25405 #else
25406 char (*f) () = $ac_func;
25407 #endif
25408 #ifdef __cplusplus
25409 }
25410 #endif
25411
25412 int
25413 main ()
25414 {
25415 return f != $ac_func;
25416   ;
25417   return 0;
25418 }
25419 _ACEOF
25420 rm -f conftest.$ac_objext conftest$ac_exeext
25421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25422   (eval $ac_link) 2>conftest.er1
25423   ac_status=$?
25424   grep -v '^ *+' conftest.er1 >conftest.err
25425   rm -f conftest.er1
25426   cat conftest.err >&5
25427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428   (exit $ac_status); } &&
25429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25431   (eval $ac_try) 2>&5
25432   ac_status=$?
25433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434   (exit $ac_status); }; } &&
25435          { ac_try='test -s conftest$ac_exeext'
25436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437   (eval $ac_try) 2>&5
25438   ac_status=$?
25439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440   (exit $ac_status); }; }; then
25441   eval "$as_ac_var=yes"
25442 else
25443   echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25445
25446 eval "$as_ac_var=no"
25447 fi
25448 rm -f conftest.err conftest.$ac_objext \
25449       conftest$ac_exeext conftest.$ac_ext
25450 fi
25451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25453 if test `eval echo '${'$as_ac_var'}'` = yes; then
25454   cat >>confdefs.h <<_ACEOF
25455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25456 _ACEOF
25457
25458 fi
25459 done
25460
25461         fi
25462
25463         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25464         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25465
25466         AFMINSTALL=afminstall
25467         TOOLKIT=GTK
25468         GUIDIST=GTK_DIST
25469
25470                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25471 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25472 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25473   echo $ECHO_N "(cached) $ECHO_C" >&6
25474 else
25475   ac_check_lib_save_LIBS=$LIBS
25476 LIBS="-lgdk  $LIBS"
25477 cat >conftest.$ac_ext <<_ACEOF
25478 /* confdefs.h.  */
25479 _ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h.  */
25483
25484 /* Override any gcc2 internal prototype to avoid an error.  */
25485 #ifdef __cplusplus
25486 extern "C"
25487 #endif
25488 /* We use char because int might match the return type of a gcc2
25489    builtin and then its argument prototype would still apply.  */
25490 char gdk_im_open ();
25491 int
25492 main ()
25493 {
25494 gdk_im_open ();
25495   ;
25496   return 0;
25497 }
25498 _ACEOF
25499 rm -f conftest.$ac_objext conftest$ac_exeext
25500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25501   (eval $ac_link) 2>conftest.er1
25502   ac_status=$?
25503   grep -v '^ *+' conftest.er1 >conftest.err
25504   rm -f conftest.er1
25505   cat conftest.err >&5
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); } &&
25508          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25510   (eval $ac_try) 2>&5
25511   ac_status=$?
25512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513   (exit $ac_status); }; } &&
25514          { ac_try='test -s conftest$ac_exeext'
25515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516   (eval $ac_try) 2>&5
25517   ac_status=$?
25518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519   (exit $ac_status); }; }; then
25520   ac_cv_lib_gdk_gdk_im_open=yes
25521 else
25522   echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25524
25525 ac_cv_lib_gdk_gdk_im_open=no
25526 fi
25527 rm -f conftest.err conftest.$ac_objext \
25528       conftest$ac_exeext conftest.$ac_ext
25529 LIBS=$ac_check_lib_save_LIBS
25530 fi
25531 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25532 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25533 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25534   cat >>confdefs.h <<\_ACEOF
25535 #define HAVE_XIM 1
25536 _ACEOF
25537
25538 fi
25539
25540
25541
25542                 if test "$wxUSE_GPE" = "yes"; then
25543             echo "$as_me:$LINENO: checking for gpewidget library" >&5
25544 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25545
25546 ac_find_libraries=
25547 for ac_dir in $SEARCH_LIB /usr/lib;
25548   do
25549     for ac_extension in a so sl dylib; do
25550       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25551         ac_find_libraries=$ac_dir
25552         break 2
25553       fi
25554     done
25555   done
25556
25557             if test "$ac_find_libraries" != "" ; then
25558
25559   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25560   result=$?
25561   if test $result = 0; then
25562     ac_path_to_link=""
25563   else
25564     ac_path_to_link=" -L$ac_find_libraries"
25565   fi
25566
25567                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25568                 WXGPE=1
25569                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25570 echo "${ECHO_T}found at $ac_find_libraries" >&6
25571             else
25572                 echo "$as_me:$LINENO: result: not found" >&5
25573 echo "${ECHO_T}not found" >&6
25574             fi
25575
25576                                                                                                                     fi
25577     fi
25578
25579     if test "$wxUSE_MGL" = 1; then
25580        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25581 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25582         if test "x$MGL_ROOT" = x ; then
25583             echo "$as_me:$LINENO: result: not found" >&5
25584 echo "${ECHO_T}not found" >&6
25585             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25586 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25587    { (exit 1); exit 1; }; }
25588         else
25589             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25590 echo "${ECHO_T}$MGL_ROOT" >&6
25591         fi
25592
25593         echo "$as_me:$LINENO: checking for libmgl location" >&5
25594 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25595                                 case "${host}" in
25596             *-*-linux* )
25597                                           if test "x$wxUSE_SHARED" = xyes ; then
25598                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25599               else
25600                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25601               fi
25602               ;;
25603             *-pc-msdosdjgpp )
25604               mgl_os_candidates="dos32/dj2"
25605               ;;
25606             *)
25607               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25608 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25609    { (exit 1); exit 1; }; }
25610         esac
25611
25612         mgl_lib_type=""
25613         mgl_os=""
25614
25615         for mgl_os_i in $mgl_os_candidates ; do
25616             if test "x$mgl_os" = x ; then
25617                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25618                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25619                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25620                         mgl_lib_type=debug
25621                         mgl_os=$mgl_os_i
25622                     fi
25623                 fi
25624                 if test "x$mgl_lib_type" = x ; then
25625                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25626                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25627                         mgl_lib_type=release
25628                         mgl_os=$mgl_os_i
25629                     fi
25630                 fi
25631             fi
25632         done
25633
25634         if test "x$mgl_os" = x ; then
25635             echo "$as_me:$LINENO: result: not found" >&5
25636 echo "${ECHO_T}not found" >&6
25637             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25638 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25639    { (exit 1); exit 1; }; }
25640         fi
25641         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25642 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25643
25644         wxUSE_UNIVERSAL="yes"
25645
25646         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25647         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25648
25649         AFMINSTALL=afminstall
25650         TOOLKIT=MGL
25651         GUIDIST=MGL_DIST
25652     fi
25653
25654     if test "$wxUSE_MICROWIN" = 1; then
25655         echo "$as_me:$LINENO: checking for MicroWindows" >&5
25656 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25657         if test "x$MICROWINDOWS" = x ; then
25658             echo "$as_me:$LINENO: result: not found" >&5
25659 echo "${ECHO_T}not found" >&6
25660             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25661 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25662    { (exit 1); exit 1; }; }
25663         else
25664             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25665 echo "${ECHO_T}$MICROWINDOWS" >&6
25666         fi
25667
25668         if test -f $MICROWINDOWS/lib/libmwin.a; then
25669             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25670 echo "${ECHO_T}MicroWindows' libraries found." >&6
25671         else
25672             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25673 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25674    { (exit 1); exit 1; }; }
25675         fi
25676
25677         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25678         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25679
25680         wxUSE_UNIVERSAL="yes"
25681
25682         AFMINSTALL=afminstall
25683         TOOLKIT=MICROWIN
25684         GUIDIST=MICROWIN_DIST
25685
25686         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25687     fi
25688
25689         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25690
25691 if test "x$ac_path_x_has_been_run" != xyes; then
25692   echo "$as_me:$LINENO: checking for X" >&5
25693 echo $ECHO_N "checking for X... $ECHO_C" >&6
25694
25695 ac_path_x_has_been_run=yes
25696
25697 # Check whether --with-x or --without-x was given.
25698 if test "${with_x+set}" = set; then
25699   withval="$with_x"
25700
25701 fi;
25702 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25703 if test "x$with_x" = xno; then
25704   # The user explicitly disabled X.
25705   have_x=disabled
25706 else
25707   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25708     # Both variables are already set.
25709     have_x=yes
25710   else
25711     if test "${ac_cv_have_x+set}" = set; then
25712   echo $ECHO_N "(cached) $ECHO_C" >&6
25713 else
25714   # One or both of the vars are not set, and there is no cached value.
25715 ac_x_includes=no ac_x_libraries=no
25716 rm -fr conftest.dir
25717 if mkdir conftest.dir; then
25718   cd conftest.dir
25719   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25720   cat >Imakefile <<'_ACEOF'
25721 acfindx:
25722         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25723 _ACEOF
25724   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25725     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25726     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25727     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25728     for ac_extension in a so sl; do
25729       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
25730          test -f $ac_im_libdir/libX11.$ac_extension; then
25731         ac_im_usrlibdir=$ac_im_libdir; break
25732       fi
25733     done
25734     # Screen out bogus values from the imake configuration.  They are
25735     # bogus both because they are the default anyway, and because
25736     # using them would break gcc on systems where it needs fixed includes.
25737     case $ac_im_incroot in
25738         /usr/include) ;;
25739         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25740     esac
25741     case $ac_im_usrlibdir in
25742         /usr/lib | /lib) ;;
25743         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25744     esac
25745   fi
25746   cd ..
25747   rm -fr conftest.dir
25748 fi
25749
25750 # Standard set of common directories for X headers.
25751 # Check X11 before X11Rn because it is often a symlink to the current release.
25752 ac_x_header_dirs='
25753 /usr/X11/include
25754 /usr/X11R6/include
25755 /usr/X11R5/include
25756 /usr/X11R4/include
25757
25758 /usr/include/X11
25759 /usr/include/X11R6
25760 /usr/include/X11R5
25761 /usr/include/X11R4
25762
25763 /usr/local/X11/include
25764 /usr/local/X11R6/include
25765 /usr/local/X11R5/include
25766 /usr/local/X11R4/include
25767
25768 /usr/local/include/X11
25769 /usr/local/include/X11R6
25770 /usr/local/include/X11R5
25771 /usr/local/include/X11R4
25772
25773 /usr/X386/include
25774 /usr/x386/include
25775 /usr/XFree86/include/X11
25776
25777 /usr/include
25778 /usr/local/include
25779 /usr/unsupported/include
25780 /usr/athena/include
25781 /usr/local/x11r5/include
25782 /usr/lpp/Xamples/include
25783
25784 /usr/openwin/include
25785 /usr/openwin/share/include'
25786
25787 if test "$ac_x_includes" = no; then
25788   # Guess where to find include files, by looking for a specified header file.
25789   # First, try using that file with no special directory specified.
25790   cat >conftest.$ac_ext <<_ACEOF
25791 /* confdefs.h.  */
25792 _ACEOF
25793 cat confdefs.h >>conftest.$ac_ext
25794 cat >>conftest.$ac_ext <<_ACEOF
25795 /* end confdefs.h.  */
25796 #include <X11/Intrinsic.h>
25797 _ACEOF
25798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25800   ac_status=$?
25801   grep -v '^ *+' conftest.er1 >conftest.err
25802   rm -f conftest.er1
25803   cat conftest.err >&5
25804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805   (exit $ac_status); } >/dev/null; then
25806   if test -s conftest.err; then
25807     ac_cpp_err=$ac_c_preproc_warn_flag
25808     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25809   else
25810     ac_cpp_err=
25811   fi
25812 else
25813   ac_cpp_err=yes
25814 fi
25815 if test -z "$ac_cpp_err"; then
25816   # We can compile using X headers with no special include directory.
25817 ac_x_includes=
25818 else
25819   echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25821
25822   for ac_dir in $ac_x_header_dirs; do
25823   if test -r "$ac_dir/X11/Intrinsic.h"; then
25824     ac_x_includes=$ac_dir
25825     break
25826   fi
25827 done
25828 fi
25829 rm -f conftest.err conftest.$ac_ext
25830 fi # $ac_x_includes = no
25831
25832 if test "$ac_x_libraries" = no; then
25833   # Check for the libraries.
25834   # See if we find them without any special options.
25835   # Don't add to $LIBS permanently.
25836   ac_save_LIBS=$LIBS
25837   LIBS="-lXt $LIBS"
25838   cat >conftest.$ac_ext <<_ACEOF
25839 /* confdefs.h.  */
25840 _ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h.  */
25844 #include <X11/Intrinsic.h>
25845 int
25846 main ()
25847 {
25848 XtMalloc (0)
25849   ;
25850   return 0;
25851 }
25852 _ACEOF
25853 rm -f conftest.$ac_objext conftest$ac_exeext
25854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25855   (eval $ac_link) 2>conftest.er1
25856   ac_status=$?
25857   grep -v '^ *+' conftest.er1 >conftest.err
25858   rm -f conftest.er1
25859   cat conftest.err >&5
25860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861   (exit $ac_status); } &&
25862          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25864   (eval $ac_try) 2>&5
25865   ac_status=$?
25866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867   (exit $ac_status); }; } &&
25868          { ac_try='test -s conftest$ac_exeext'
25869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870   (eval $ac_try) 2>&5
25871   ac_status=$?
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); }; }; then
25874   LIBS=$ac_save_LIBS
25875 # We can link X programs with no special library path.
25876 ac_x_libraries=
25877 else
25878   echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25880
25881 LIBS=$ac_save_LIBS
25882 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25883 do
25884   # Don't even attempt the hair of trying to link an X program!
25885   for ac_extension in a so sl; do
25886     if test -r $ac_dir/libXt.$ac_extension; then
25887       ac_x_libraries=$ac_dir
25888       break 2
25889     fi
25890   done
25891 done
25892 fi
25893 rm -f conftest.err conftest.$ac_objext \
25894       conftest$ac_exeext conftest.$ac_ext
25895 fi # $ac_x_libraries = no
25896
25897 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25898   # Didn't find X anywhere.  Cache the known absence of X.
25899   ac_cv_have_x="have_x=no"
25900 else
25901   # Record where we found X for the cache.
25902   ac_cv_have_x="have_x=yes \
25903                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
25904 fi
25905 fi
25906
25907   fi
25908   eval "$ac_cv_have_x"
25909 fi # $with_x != no
25910
25911 if test "$have_x" != yes; then
25912   echo "$as_me:$LINENO: result: $have_x" >&5
25913 echo "${ECHO_T}$have_x" >&6
25914   no_x=yes
25915 else
25916   # If each of the values was on the command line, it overrides each guess.
25917   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25918   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25919   # Update the cache value to reflect the command line values.
25920   ac_cv_have_x="have_x=yes \
25921                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
25922   # It might be that x_includes is empty (headers are found in the
25923   # standard search path. Then output the corresponding message
25924   ac_out_x_includes=$x_includes
25925   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
25926   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
25927 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
25928 fi
25929
25930 fi
25931 if test "$no_x" = yes; then
25932   # Not all programs may use this symbol, but it does not hurt to define it.
25933
25934 cat >>confdefs.h <<\_ACEOF
25935 #define X_DISPLAY_MISSING 1
25936 _ACEOF
25937
25938   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25939 else
25940   if test -n "$x_includes"; then
25941     X_CFLAGS="$X_CFLAGS -I$x_includes"
25942   fi
25943
25944   # It would also be nice to do this for all -L options, not just this one.
25945   if test -n "$x_libraries"; then
25946     X_LIBS="$X_LIBS -L$x_libraries"
25947     # For Solaris; some versions of Sun CC require a space after -R and
25948     # others require no space.  Words are not sufficient . . . .
25949     case `(uname -sr) 2>/dev/null` in
25950     "SunOS 5"*)
25951       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25952 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25953       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25954       cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h.  */
25956 _ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h.  */
25960
25961 int
25962 main ()
25963 {
25964
25965   ;
25966   return 0;
25967 }
25968 _ACEOF
25969 rm -f conftest.$ac_objext conftest$ac_exeext
25970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25971   (eval $ac_link) 2>conftest.er1
25972   ac_status=$?
25973   grep -v '^ *+' conftest.er1 >conftest.err
25974   rm -f conftest.er1
25975   cat conftest.err >&5
25976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977   (exit $ac_status); } &&
25978          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25980   (eval $ac_try) 2>&5
25981   ac_status=$?
25982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983   (exit $ac_status); }; } &&
25984          { ac_try='test -s conftest$ac_exeext'
25985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25986   (eval $ac_try) 2>&5
25987   ac_status=$?
25988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); }; }; then
25990   ac_R_nospace=yes
25991 else
25992   echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25994
25995 ac_R_nospace=no
25996 fi
25997 rm -f conftest.err conftest.$ac_objext \
25998       conftest$ac_exeext conftest.$ac_ext
25999       if test $ac_R_nospace = yes; then
26000         echo "$as_me:$LINENO: result: no" >&5
26001 echo "${ECHO_T}no" >&6
26002         X_LIBS="$X_LIBS -R$x_libraries"
26003       else
26004         LIBS="$ac_xsave_LIBS -R $x_libraries"
26005         cat >conftest.$ac_ext <<_ACEOF
26006 /* confdefs.h.  */
26007 _ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h.  */
26011
26012 int
26013 main ()
26014 {
26015
26016   ;
26017   return 0;
26018 }
26019 _ACEOF
26020 rm -f conftest.$ac_objext conftest$ac_exeext
26021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26022   (eval $ac_link) 2>conftest.er1
26023   ac_status=$?
26024   grep -v '^ *+' conftest.er1 >conftest.err
26025   rm -f conftest.er1
26026   cat conftest.err >&5
26027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028   (exit $ac_status); } &&
26029          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26031   (eval $ac_try) 2>&5
26032   ac_status=$?
26033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034   (exit $ac_status); }; } &&
26035          { ac_try='test -s conftest$ac_exeext'
26036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037   (eval $ac_try) 2>&5
26038   ac_status=$?
26039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); }; }; then
26041   ac_R_space=yes
26042 else
26043   echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26045
26046 ac_R_space=no
26047 fi
26048 rm -f conftest.err conftest.$ac_objext \
26049       conftest$ac_exeext conftest.$ac_ext
26050         if test $ac_R_space = yes; then
26051           echo "$as_me:$LINENO: result: yes" >&5
26052 echo "${ECHO_T}yes" >&6
26053           X_LIBS="$X_LIBS -R $x_libraries"
26054         else
26055           echo "$as_me:$LINENO: result: neither works" >&5
26056 echo "${ECHO_T}neither works" >&6
26057         fi
26058       fi
26059       LIBS=$ac_xsave_LIBS
26060     esac
26061   fi
26062
26063   # Check for system-dependent libraries X programs must link with.
26064   # Do this before checking for the system-independent R6 libraries
26065   # (-lICE), since we may need -lsocket or whatever for X linking.
26066
26067   if test "$ISC" = yes; then
26068     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26069   else
26070     # Martyn Johnson says this is needed for Ultrix, if the X
26071     # libraries were built with DECnet support.  And Karl Berry says
26072     # the Alpha needs dnet_stub (dnet does not exist).
26073     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26074     cat >conftest.$ac_ext <<_ACEOF
26075 /* confdefs.h.  */
26076 _ACEOF
26077 cat confdefs.h >>conftest.$ac_ext
26078 cat >>conftest.$ac_ext <<_ACEOF
26079 /* end confdefs.h.  */
26080
26081 /* Override any gcc2 internal prototype to avoid an error.  */
26082 #ifdef __cplusplus
26083 extern "C"
26084 #endif
26085 /* We use char because int might match the return type of a gcc2
26086    builtin and then its argument prototype would still apply.  */
26087 char XOpenDisplay ();
26088 int
26089 main ()
26090 {
26091 XOpenDisplay ();
26092   ;
26093   return 0;
26094 }
26095 _ACEOF
26096 rm -f conftest.$ac_objext conftest$ac_exeext
26097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26098   (eval $ac_link) 2>conftest.er1
26099   ac_status=$?
26100   grep -v '^ *+' conftest.er1 >conftest.err
26101   rm -f conftest.er1
26102   cat conftest.err >&5
26103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104   (exit $ac_status); } &&
26105          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26107   (eval $ac_try) 2>&5
26108   ac_status=$?
26109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110   (exit $ac_status); }; } &&
26111          { ac_try='test -s conftest$ac_exeext'
26112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113   (eval $ac_try) 2>&5
26114   ac_status=$?
26115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116   (exit $ac_status); }; }; then
26117   :
26118 else
26119   echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26121
26122 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26123 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26124 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26125   echo $ECHO_N "(cached) $ECHO_C" >&6
26126 else
26127   ac_check_lib_save_LIBS=$LIBS
26128 LIBS="-ldnet  $LIBS"
26129 cat >conftest.$ac_ext <<_ACEOF
26130 /* confdefs.h.  */
26131 _ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h.  */
26135
26136 /* Override any gcc2 internal prototype to avoid an error.  */
26137 #ifdef __cplusplus
26138 extern "C"
26139 #endif
26140 /* We use char because int might match the return type of a gcc2
26141    builtin and then its argument prototype would still apply.  */
26142 char dnet_ntoa ();
26143 int
26144 main ()
26145 {
26146 dnet_ntoa ();
26147   ;
26148   return 0;
26149 }
26150 _ACEOF
26151 rm -f conftest.$ac_objext conftest$ac_exeext
26152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26153   (eval $ac_link) 2>conftest.er1
26154   ac_status=$?
26155   grep -v '^ *+' conftest.er1 >conftest.err
26156   rm -f conftest.er1
26157   cat conftest.err >&5
26158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159   (exit $ac_status); } &&
26160          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162   (eval $ac_try) 2>&5
26163   ac_status=$?
26164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165   (exit $ac_status); }; } &&
26166          { ac_try='test -s conftest$ac_exeext'
26167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168   (eval $ac_try) 2>&5
26169   ac_status=$?
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); }; }; then
26172   ac_cv_lib_dnet_dnet_ntoa=yes
26173 else
26174   echo "$as_me: failed program was:" >&5
26175 sed 's/^/| /' conftest.$ac_ext >&5
26176
26177 ac_cv_lib_dnet_dnet_ntoa=no
26178 fi
26179 rm -f conftest.err conftest.$ac_objext \
26180       conftest$ac_exeext conftest.$ac_ext
26181 LIBS=$ac_check_lib_save_LIBS
26182 fi
26183 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26184 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26185 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26186   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26187 fi
26188
26189     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26190       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26191 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26192 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26193   echo $ECHO_N "(cached) $ECHO_C" >&6
26194 else
26195   ac_check_lib_save_LIBS=$LIBS
26196 LIBS="-ldnet_stub  $LIBS"
26197 cat >conftest.$ac_ext <<_ACEOF
26198 /* confdefs.h.  */
26199 _ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h.  */
26203
26204 /* Override any gcc2 internal prototype to avoid an error.  */
26205 #ifdef __cplusplus
26206 extern "C"
26207 #endif
26208 /* We use char because int might match the return type of a gcc2
26209    builtin and then its argument prototype would still apply.  */
26210 char dnet_ntoa ();
26211 int
26212 main ()
26213 {
26214 dnet_ntoa ();
26215   ;
26216   return 0;
26217 }
26218 _ACEOF
26219 rm -f conftest.$ac_objext conftest$ac_exeext
26220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26221   (eval $ac_link) 2>conftest.er1
26222   ac_status=$?
26223   grep -v '^ *+' conftest.er1 >conftest.err
26224   rm -f conftest.er1
26225   cat conftest.err >&5
26226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227   (exit $ac_status); } &&
26228          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26230   (eval $ac_try) 2>&5
26231   ac_status=$?
26232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233   (exit $ac_status); }; } &&
26234          { ac_try='test -s conftest$ac_exeext'
26235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26236   (eval $ac_try) 2>&5
26237   ac_status=$?
26238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239   (exit $ac_status); }; }; then
26240   ac_cv_lib_dnet_stub_dnet_ntoa=yes
26241 else
26242   echo "$as_me: failed program was:" >&5
26243 sed 's/^/| /' conftest.$ac_ext >&5
26244
26245 ac_cv_lib_dnet_stub_dnet_ntoa=no
26246 fi
26247 rm -f conftest.err conftest.$ac_objext \
26248       conftest$ac_exeext conftest.$ac_ext
26249 LIBS=$ac_check_lib_save_LIBS
26250 fi
26251 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26252 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26253 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26254   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26255 fi
26256
26257     fi
26258 fi
26259 rm -f conftest.err conftest.$ac_objext \
26260       conftest$ac_exeext conftest.$ac_ext
26261     LIBS="$ac_xsave_LIBS"
26262
26263     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26264     # to get the SysV transport functions.
26265     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26266     # needs -lnsl.
26267     # The nsl library prevents programs from opening the X display
26268     # on Irix 5.2, according to T.E. Dickey.
26269     # The functions gethostbyname, getservbyname, and inet_addr are
26270     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26271     echo "$as_me:$LINENO: checking for gethostbyname" >&5
26272 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26273 if test "${ac_cv_func_gethostbyname+set}" = set; then
26274   echo $ECHO_N "(cached) $ECHO_C" >&6
26275 else
26276   cat >conftest.$ac_ext <<_ACEOF
26277 /* confdefs.h.  */
26278 _ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h.  */
26282 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26284 #define gethostbyname innocuous_gethostbyname
26285
26286 /* System header to define __stub macros and hopefully few prototypes,
26287     which can conflict with char gethostbyname (); below.
26288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26289     <limits.h> exists even on freestanding compilers.  */
26290
26291 #ifdef __STDC__
26292 # include <limits.h>
26293 #else
26294 # include <assert.h>
26295 #endif
26296
26297 #undef gethostbyname
26298
26299 /* Override any gcc2 internal prototype to avoid an error.  */
26300 #ifdef __cplusplus
26301 extern "C"
26302 {
26303 #endif
26304 /* We use char because int might match the return type of a gcc2
26305    builtin and then its argument prototype would still apply.  */
26306 char gethostbyname ();
26307 /* The GNU C library defines this for functions which it implements
26308     to always fail with ENOSYS.  Some functions are actually named
26309     something starting with __ and the normal name is an alias.  */
26310 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26311 choke me
26312 #else
26313 char (*f) () = gethostbyname;
26314 #endif
26315 #ifdef __cplusplus
26316 }
26317 #endif
26318
26319 int
26320 main ()
26321 {
26322 return f != gethostbyname;
26323   ;
26324   return 0;
26325 }
26326 _ACEOF
26327 rm -f conftest.$ac_objext conftest$ac_exeext
26328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26329   (eval $ac_link) 2>conftest.er1
26330   ac_status=$?
26331   grep -v '^ *+' conftest.er1 >conftest.err
26332   rm -f conftest.er1
26333   cat conftest.err >&5
26334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335   (exit $ac_status); } &&
26336          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338   (eval $ac_try) 2>&5
26339   ac_status=$?
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); }; } &&
26342          { ac_try='test -s conftest$ac_exeext'
26343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344   (eval $ac_try) 2>&5
26345   ac_status=$?
26346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347   (exit $ac_status); }; }; then
26348   ac_cv_func_gethostbyname=yes
26349 else
26350   echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26352
26353 ac_cv_func_gethostbyname=no
26354 fi
26355 rm -f conftest.err conftest.$ac_objext \
26356       conftest$ac_exeext conftest.$ac_ext
26357 fi
26358 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26359 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26360
26361     if test $ac_cv_func_gethostbyname = no; then
26362       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26363 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26364 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26365   echo $ECHO_N "(cached) $ECHO_C" >&6
26366 else
26367   ac_check_lib_save_LIBS=$LIBS
26368 LIBS="-lnsl  $LIBS"
26369 cat >conftest.$ac_ext <<_ACEOF
26370 /* confdefs.h.  */
26371 _ACEOF
26372 cat confdefs.h >>conftest.$ac_ext
26373 cat >>conftest.$ac_ext <<_ACEOF
26374 /* end confdefs.h.  */
26375
26376 /* Override any gcc2 internal prototype to avoid an error.  */
26377 #ifdef __cplusplus
26378 extern "C"
26379 #endif
26380 /* We use char because int might match the return type of a gcc2
26381    builtin and then its argument prototype would still apply.  */
26382 char gethostbyname ();
26383 int
26384 main ()
26385 {
26386 gethostbyname ();
26387   ;
26388   return 0;
26389 }
26390 _ACEOF
26391 rm -f conftest.$ac_objext conftest$ac_exeext
26392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26393   (eval $ac_link) 2>conftest.er1
26394   ac_status=$?
26395   grep -v '^ *+' conftest.er1 >conftest.err
26396   rm -f conftest.er1
26397   cat conftest.err >&5
26398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399   (exit $ac_status); } &&
26400          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402   (eval $ac_try) 2>&5
26403   ac_status=$?
26404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405   (exit $ac_status); }; } &&
26406          { ac_try='test -s conftest$ac_exeext'
26407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408   (eval $ac_try) 2>&5
26409   ac_status=$?
26410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411   (exit $ac_status); }; }; then
26412   ac_cv_lib_nsl_gethostbyname=yes
26413 else
26414   echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26416
26417 ac_cv_lib_nsl_gethostbyname=no
26418 fi
26419 rm -f conftest.err conftest.$ac_objext \
26420       conftest$ac_exeext conftest.$ac_ext
26421 LIBS=$ac_check_lib_save_LIBS
26422 fi
26423 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26424 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26425 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26426   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26427 fi
26428
26429       if test $ac_cv_lib_nsl_gethostbyname = no; then
26430         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26431 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26432 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26433   echo $ECHO_N "(cached) $ECHO_C" >&6
26434 else
26435   ac_check_lib_save_LIBS=$LIBS
26436 LIBS="-lbsd  $LIBS"
26437 cat >conftest.$ac_ext <<_ACEOF
26438 /* confdefs.h.  */
26439 _ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h.  */
26443
26444 /* Override any gcc2 internal prototype to avoid an error.  */
26445 #ifdef __cplusplus
26446 extern "C"
26447 #endif
26448 /* We use char because int might match the return type of a gcc2
26449    builtin and then its argument prototype would still apply.  */
26450 char gethostbyname ();
26451 int
26452 main ()
26453 {
26454 gethostbyname ();
26455   ;
26456   return 0;
26457 }
26458 _ACEOF
26459 rm -f conftest.$ac_objext conftest$ac_exeext
26460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26461   (eval $ac_link) 2>conftest.er1
26462   ac_status=$?
26463   grep -v '^ *+' conftest.er1 >conftest.err
26464   rm -f conftest.er1
26465   cat conftest.err >&5
26466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467   (exit $ac_status); } &&
26468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26470   (eval $ac_try) 2>&5
26471   ac_status=$?
26472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473   (exit $ac_status); }; } &&
26474          { ac_try='test -s conftest$ac_exeext'
26475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476   (eval $ac_try) 2>&5
26477   ac_status=$?
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); }; }; then
26480   ac_cv_lib_bsd_gethostbyname=yes
26481 else
26482   echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26484
26485 ac_cv_lib_bsd_gethostbyname=no
26486 fi
26487 rm -f conftest.err conftest.$ac_objext \
26488       conftest$ac_exeext conftest.$ac_ext
26489 LIBS=$ac_check_lib_save_LIBS
26490 fi
26491 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26492 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26493 if test $ac_cv_lib_bsd_gethostbyname = yes; then
26494   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26495 fi
26496
26497       fi
26498     fi
26499
26500     # lieder@skyler.mavd.honeywell.com says without -lsocket,
26501     # socket/setsockopt and other routines are undefined under SCO ODT
26502     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
26503     # on later versions), says Simon Leinen: it contains gethostby*
26504     # variants that don't use the name server (or something).  -lsocket
26505     # must be given before -lnsl if both are needed.  We assume that
26506     # if connect needs -lnsl, so does gethostbyname.
26507     echo "$as_me:$LINENO: checking for connect" >&5
26508 echo $ECHO_N "checking for connect... $ECHO_C" >&6
26509 if test "${ac_cv_func_connect+set}" = set; then
26510   echo $ECHO_N "(cached) $ECHO_C" >&6
26511 else
26512   cat >conftest.$ac_ext <<_ACEOF
26513 /* confdefs.h.  */
26514 _ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h.  */
26518 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
26519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26520 #define connect innocuous_connect
26521
26522 /* System header to define __stub macros and hopefully few prototypes,
26523     which can conflict with char connect (); below.
26524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26525     <limits.h> exists even on freestanding compilers.  */
26526
26527 #ifdef __STDC__
26528 # include <limits.h>
26529 #else
26530 # include <assert.h>
26531 #endif
26532
26533 #undef connect
26534
26535 /* Override any gcc2 internal prototype to avoid an error.  */
26536 #ifdef __cplusplus
26537 extern "C"
26538 {
26539 #endif
26540 /* We use char because int might match the return type of a gcc2
26541    builtin and then its argument prototype would still apply.  */
26542 char connect ();
26543 /* The GNU C library defines this for functions which it implements
26544     to always fail with ENOSYS.  Some functions are actually named
26545     something starting with __ and the normal name is an alias.  */
26546 #if defined (__stub_connect) || defined (__stub___connect)
26547 choke me
26548 #else
26549 char (*f) () = connect;
26550 #endif
26551 #ifdef __cplusplus
26552 }
26553 #endif
26554
26555 int
26556 main ()
26557 {
26558 return f != connect;
26559   ;
26560   return 0;
26561 }
26562 _ACEOF
26563 rm -f conftest.$ac_objext conftest$ac_exeext
26564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26565   (eval $ac_link) 2>conftest.er1
26566   ac_status=$?
26567   grep -v '^ *+' conftest.er1 >conftest.err
26568   rm -f conftest.er1
26569   cat conftest.err >&5
26570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571   (exit $ac_status); } &&
26572          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574   (eval $ac_try) 2>&5
26575   ac_status=$?
26576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577   (exit $ac_status); }; } &&
26578          { ac_try='test -s conftest$ac_exeext'
26579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26580   (eval $ac_try) 2>&5
26581   ac_status=$?
26582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583   (exit $ac_status); }; }; then
26584   ac_cv_func_connect=yes
26585 else
26586   echo "$as_me: failed program was:" >&5
26587 sed 's/^/| /' conftest.$ac_ext >&5
26588
26589 ac_cv_func_connect=no
26590 fi
26591 rm -f conftest.err conftest.$ac_objext \
26592       conftest$ac_exeext conftest.$ac_ext
26593 fi
26594 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26595 echo "${ECHO_T}$ac_cv_func_connect" >&6
26596
26597     if test $ac_cv_func_connect = no; then
26598       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26599 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26600 if test "${ac_cv_lib_socket_connect+set}" = set; then
26601   echo $ECHO_N "(cached) $ECHO_C" >&6
26602 else
26603   ac_check_lib_save_LIBS=$LIBS
26604 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26605 cat >conftest.$ac_ext <<_ACEOF
26606 /* confdefs.h.  */
26607 _ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h.  */
26611
26612 /* Override any gcc2 internal prototype to avoid an error.  */
26613 #ifdef __cplusplus
26614 extern "C"
26615 #endif
26616 /* We use char because int might match the return type of a gcc2
26617    builtin and then its argument prototype would still apply.  */
26618 char connect ();
26619 int
26620 main ()
26621 {
26622 connect ();
26623   ;
26624   return 0;
26625 }
26626 _ACEOF
26627 rm -f conftest.$ac_objext conftest$ac_exeext
26628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26629   (eval $ac_link) 2>conftest.er1
26630   ac_status=$?
26631   grep -v '^ *+' conftest.er1 >conftest.err
26632   rm -f conftest.er1
26633   cat conftest.err >&5
26634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635   (exit $ac_status); } &&
26636          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638   (eval $ac_try) 2>&5
26639   ac_status=$?
26640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641   (exit $ac_status); }; } &&
26642          { ac_try='test -s conftest$ac_exeext'
26643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644   (eval $ac_try) 2>&5
26645   ac_status=$?
26646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647   (exit $ac_status); }; }; then
26648   ac_cv_lib_socket_connect=yes
26649 else
26650   echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26652
26653 ac_cv_lib_socket_connect=no
26654 fi
26655 rm -f conftest.err conftest.$ac_objext \
26656       conftest$ac_exeext conftest.$ac_ext
26657 LIBS=$ac_check_lib_save_LIBS
26658 fi
26659 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26660 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26661 if test $ac_cv_lib_socket_connect = yes; then
26662   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26663 fi
26664
26665     fi
26666
26667     # Guillermo Gomez says -lposix is necessary on A/UX.
26668     echo "$as_me:$LINENO: checking for remove" >&5
26669 echo $ECHO_N "checking for remove... $ECHO_C" >&6
26670 if test "${ac_cv_func_remove+set}" = set; then
26671   echo $ECHO_N "(cached) $ECHO_C" >&6
26672 else
26673   cat >conftest.$ac_ext <<_ACEOF
26674 /* confdefs.h.  */
26675 _ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h.  */
26679 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
26680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26681 #define remove innocuous_remove
26682
26683 /* System header to define __stub macros and hopefully few prototypes,
26684     which can conflict with char remove (); below.
26685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26686     <limits.h> exists even on freestanding compilers.  */
26687
26688 #ifdef __STDC__
26689 # include <limits.h>
26690 #else
26691 # include <assert.h>
26692 #endif
26693
26694 #undef remove
26695
26696 /* Override any gcc2 internal prototype to avoid an error.  */
26697 #ifdef __cplusplus
26698 extern "C"
26699 {
26700 #endif
26701 /* We use char because int might match the return type of a gcc2
26702    builtin and then its argument prototype would still apply.  */
26703 char remove ();
26704 /* The GNU C library defines this for functions which it implements
26705     to always fail with ENOSYS.  Some functions are actually named
26706     something starting with __ and the normal name is an alias.  */
26707 #if defined (__stub_remove) || defined (__stub___remove)
26708 choke me
26709 #else
26710 char (*f) () = remove;
26711 #endif
26712 #ifdef __cplusplus
26713 }
26714 #endif
26715
26716 int
26717 main ()
26718 {
26719 return f != remove;
26720   ;
26721   return 0;
26722 }
26723 _ACEOF
26724 rm -f conftest.$ac_objext conftest$ac_exeext
26725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26726   (eval $ac_link) 2>conftest.er1
26727   ac_status=$?
26728   grep -v '^ *+' conftest.er1 >conftest.err
26729   rm -f conftest.er1
26730   cat conftest.err >&5
26731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732   (exit $ac_status); } &&
26733          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735   (eval $ac_try) 2>&5
26736   ac_status=$?
26737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738   (exit $ac_status); }; } &&
26739          { ac_try='test -s conftest$ac_exeext'
26740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26741   (eval $ac_try) 2>&5
26742   ac_status=$?
26743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); }; }; then
26745   ac_cv_func_remove=yes
26746 else
26747   echo "$as_me: failed program was:" >&5
26748 sed 's/^/| /' conftest.$ac_ext >&5
26749
26750 ac_cv_func_remove=no
26751 fi
26752 rm -f conftest.err conftest.$ac_objext \
26753       conftest$ac_exeext conftest.$ac_ext
26754 fi
26755 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26756 echo "${ECHO_T}$ac_cv_func_remove" >&6
26757
26758     if test $ac_cv_func_remove = no; then
26759       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26760 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26761 if test "${ac_cv_lib_posix_remove+set}" = set; then
26762   echo $ECHO_N "(cached) $ECHO_C" >&6
26763 else
26764   ac_check_lib_save_LIBS=$LIBS
26765 LIBS="-lposix  $LIBS"
26766 cat >conftest.$ac_ext <<_ACEOF
26767 /* confdefs.h.  */
26768 _ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h.  */
26772
26773 /* Override any gcc2 internal prototype to avoid an error.  */
26774 #ifdef __cplusplus
26775 extern "C"
26776 #endif
26777 /* We use char because int might match the return type of a gcc2
26778    builtin and then its argument prototype would still apply.  */
26779 char remove ();
26780 int
26781 main ()
26782 {
26783 remove ();
26784   ;
26785   return 0;
26786 }
26787 _ACEOF
26788 rm -f conftest.$ac_objext conftest$ac_exeext
26789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26790   (eval $ac_link) 2>conftest.er1
26791   ac_status=$?
26792   grep -v '^ *+' conftest.er1 >conftest.err
26793   rm -f conftest.er1
26794   cat conftest.err >&5
26795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); } &&
26797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799   (eval $ac_try) 2>&5
26800   ac_status=$?
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); }; } &&
26803          { ac_try='test -s conftest$ac_exeext'
26804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805   (eval $ac_try) 2>&5
26806   ac_status=$?
26807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808   (exit $ac_status); }; }; then
26809   ac_cv_lib_posix_remove=yes
26810 else
26811   echo "$as_me: failed program was:" >&5
26812 sed 's/^/| /' conftest.$ac_ext >&5
26813
26814 ac_cv_lib_posix_remove=no
26815 fi
26816 rm -f conftest.err conftest.$ac_objext \
26817       conftest$ac_exeext conftest.$ac_ext
26818 LIBS=$ac_check_lib_save_LIBS
26819 fi
26820 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26821 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26822 if test $ac_cv_lib_posix_remove = yes; then
26823   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26824 fi
26825
26826     fi
26827
26828     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26829     echo "$as_me:$LINENO: checking for shmat" >&5
26830 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26831 if test "${ac_cv_func_shmat+set}" = set; then
26832   echo $ECHO_N "(cached) $ECHO_C" >&6
26833 else
26834   cat >conftest.$ac_ext <<_ACEOF
26835 /* confdefs.h.  */
26836 _ACEOF
26837 cat confdefs.h >>conftest.$ac_ext
26838 cat >>conftest.$ac_ext <<_ACEOF
26839 /* end confdefs.h.  */
26840 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26842 #define shmat innocuous_shmat
26843
26844 /* System header to define __stub macros and hopefully few prototypes,
26845     which can conflict with char shmat (); below.
26846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26847     <limits.h> exists even on freestanding compilers.  */
26848
26849 #ifdef __STDC__
26850 # include <limits.h>
26851 #else
26852 # include <assert.h>
26853 #endif
26854
26855 #undef shmat
26856
26857 /* Override any gcc2 internal prototype to avoid an error.  */
26858 #ifdef __cplusplus
26859 extern "C"
26860 {
26861 #endif
26862 /* We use char because int might match the return type of a gcc2
26863    builtin and then its argument prototype would still apply.  */
26864 char shmat ();
26865 /* The GNU C library defines this for functions which it implements
26866     to always fail with ENOSYS.  Some functions are actually named
26867     something starting with __ and the normal name is an alias.  */
26868 #if defined (__stub_shmat) || defined (__stub___shmat)
26869 choke me
26870 #else
26871 char (*f) () = shmat;
26872 #endif
26873 #ifdef __cplusplus
26874 }
26875 #endif
26876
26877 int
26878 main ()
26879 {
26880 return f != shmat;
26881   ;
26882   return 0;
26883 }
26884 _ACEOF
26885 rm -f conftest.$ac_objext conftest$ac_exeext
26886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26887   (eval $ac_link) 2>conftest.er1
26888   ac_status=$?
26889   grep -v '^ *+' conftest.er1 >conftest.err
26890   rm -f conftest.er1
26891   cat conftest.err >&5
26892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893   (exit $ac_status); } &&
26894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26896   (eval $ac_try) 2>&5
26897   ac_status=$?
26898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899   (exit $ac_status); }; } &&
26900          { ac_try='test -s conftest$ac_exeext'
26901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26902   (eval $ac_try) 2>&5
26903   ac_status=$?
26904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905   (exit $ac_status); }; }; then
26906   ac_cv_func_shmat=yes
26907 else
26908   echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26910
26911 ac_cv_func_shmat=no
26912 fi
26913 rm -f conftest.err conftest.$ac_objext \
26914       conftest$ac_exeext conftest.$ac_ext
26915 fi
26916 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26917 echo "${ECHO_T}$ac_cv_func_shmat" >&6
26918
26919     if test $ac_cv_func_shmat = no; then
26920       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26921 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26922 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26923   echo $ECHO_N "(cached) $ECHO_C" >&6
26924 else
26925   ac_check_lib_save_LIBS=$LIBS
26926 LIBS="-lipc  $LIBS"
26927 cat >conftest.$ac_ext <<_ACEOF
26928 /* confdefs.h.  */
26929 _ACEOF
26930 cat confdefs.h >>conftest.$ac_ext
26931 cat >>conftest.$ac_ext <<_ACEOF
26932 /* end confdefs.h.  */
26933
26934 /* Override any gcc2 internal prototype to avoid an error.  */
26935 #ifdef __cplusplus
26936 extern "C"
26937 #endif
26938 /* We use char because int might match the return type of a gcc2
26939    builtin and then its argument prototype would still apply.  */
26940 char shmat ();
26941 int
26942 main ()
26943 {
26944 shmat ();
26945   ;
26946   return 0;
26947 }
26948 _ACEOF
26949 rm -f conftest.$ac_objext conftest$ac_exeext
26950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26951   (eval $ac_link) 2>conftest.er1
26952   ac_status=$?
26953   grep -v '^ *+' conftest.er1 >conftest.err
26954   rm -f conftest.er1
26955   cat conftest.err >&5
26956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957   (exit $ac_status); } &&
26958          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26960   (eval $ac_try) 2>&5
26961   ac_status=$?
26962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963   (exit $ac_status); }; } &&
26964          { ac_try='test -s conftest$ac_exeext'
26965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26966   (eval $ac_try) 2>&5
26967   ac_status=$?
26968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969   (exit $ac_status); }; }; then
26970   ac_cv_lib_ipc_shmat=yes
26971 else
26972   echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26974
26975 ac_cv_lib_ipc_shmat=no
26976 fi
26977 rm -f conftest.err conftest.$ac_objext \
26978       conftest$ac_exeext conftest.$ac_ext
26979 LIBS=$ac_check_lib_save_LIBS
26980 fi
26981 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26982 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26983 if test $ac_cv_lib_ipc_shmat = yes; then
26984   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26985 fi
26986
26987     fi
26988   fi
26989
26990   # Check for libraries that X11R6 Xt/Xaw programs need.
26991   ac_save_LDFLAGS=$LDFLAGS
26992   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26993   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26994   # check for ICE first), but we must link in the order -lSM -lICE or
26995   # we get undefined symbols.  So assume we have SM if we have ICE.
26996   # These have to be linked with before -lX11, unlike the other
26997   # libraries we check for below, so use a different variable.
26998   # John Interrante, Karl Berry
26999   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27000 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27001 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27002   echo $ECHO_N "(cached) $ECHO_C" >&6
27003 else
27004   ac_check_lib_save_LIBS=$LIBS
27005 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27006 cat >conftest.$ac_ext <<_ACEOF
27007 /* confdefs.h.  */
27008 _ACEOF
27009 cat confdefs.h >>conftest.$ac_ext
27010 cat >>conftest.$ac_ext <<_ACEOF
27011 /* end confdefs.h.  */
27012
27013 /* Override any gcc2 internal prototype to avoid an error.  */
27014 #ifdef __cplusplus
27015 extern "C"
27016 #endif
27017 /* We use char because int might match the return type of a gcc2
27018    builtin and then its argument prototype would still apply.  */
27019 char IceConnectionNumber ();
27020 int
27021 main ()
27022 {
27023 IceConnectionNumber ();
27024   ;
27025   return 0;
27026 }
27027 _ACEOF
27028 rm -f conftest.$ac_objext conftest$ac_exeext
27029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27030   (eval $ac_link) 2>conftest.er1
27031   ac_status=$?
27032   grep -v '^ *+' conftest.er1 >conftest.err
27033   rm -f conftest.er1
27034   cat conftest.err >&5
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); } &&
27037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039   (eval $ac_try) 2>&5
27040   ac_status=$?
27041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042   (exit $ac_status); }; } &&
27043          { ac_try='test -s conftest$ac_exeext'
27044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045   (eval $ac_try) 2>&5
27046   ac_status=$?
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); }; }; then
27049   ac_cv_lib_ICE_IceConnectionNumber=yes
27050 else
27051   echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27053
27054 ac_cv_lib_ICE_IceConnectionNumber=no
27055 fi
27056 rm -f conftest.err conftest.$ac_objext \
27057       conftest$ac_exeext conftest.$ac_ext
27058 LIBS=$ac_check_lib_save_LIBS
27059 fi
27060 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27061 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27062 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27063   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27064 fi
27065
27066   LDFLAGS=$ac_save_LDFLAGS
27067
27068 fi
27069
27070
27071         if test "$no_x" = "yes"; then
27072           { { echo "$as_me:$LINENO: error: X11 not found" >&5
27073 echo "$as_me: error: X11 not found" >&2;}
27074    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27075         fi
27076
27077                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27078         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
27079         AFMINSTALL=afminstall
27080         COMPILED_X_PROGRAM=0
27081
27082     fi
27083
27084     if test "$wxUSE_X11" = 1; then
27085         if test "$wxUSE_NANOX" = "yes"; then
27086             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27087 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27088             if test "x$MICROWIN" = x ; then
27089                 echo "$as_me:$LINENO: result: not found" >&5
27090 echo "${ECHO_T}not found" >&6
27091                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27092 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27093    { (exit 1); exit 1; }; }
27094             else
27095                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27096 echo "${ECHO_T}$MICROWIN" >&6
27097                 cat >>confdefs.h <<\_ACEOF
27098 #define wxUSE_NANOX 1
27099 _ACEOF
27100
27101             fi
27102         fi
27103
27104         if test "$wxUSE_UNICODE" = "yes"; then
27105
27106   succeeded=no
27107
27108   if test -z "$PKG_CONFIG"; then
27109     # Extract the first word of "pkg-config", so it can be a program name with args.
27110 set dummy pkg-config; ac_word=$2
27111 echo "$as_me:$LINENO: checking for $ac_word" >&5
27112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27113 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27114   echo $ECHO_N "(cached) $ECHO_C" >&6
27115 else
27116   case $PKG_CONFIG in
27117   [\\/]* | ?:[\\/]*)
27118   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27119   ;;
27120   *)
27121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27122 for as_dir in $PATH
27123 do
27124   IFS=$as_save_IFS
27125   test -z "$as_dir" && as_dir=.
27126   for ac_exec_ext in '' $ac_executable_extensions; do
27127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27128     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27130     break 2
27131   fi
27132 done
27133 done
27134
27135   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27136   ;;
27137 esac
27138 fi
27139 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27140
27141 if test -n "$PKG_CONFIG"; then
27142   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27143 echo "${ECHO_T}$PKG_CONFIG" >&6
27144 else
27145   echo "$as_me:$LINENO: result: no" >&5
27146 echo "${ECHO_T}no" >&6
27147 fi
27148
27149   fi
27150
27151   if test "$PKG_CONFIG" = "no" ; then
27152      echo "*** The pkg-config script could not be found. Make sure it is"
27153      echo "*** in your path, or set the PKG_CONFIG environment variable"
27154      echo "*** to the full path to pkg-config."
27155      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27156   else
27157      PKG_CONFIG_MIN_VERSION=0.9.0
27158      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27159         echo "$as_me:$LINENO: checking for pangox" >&5
27160 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27161
27162         if $PKG_CONFIG --exists "pangox" ; then
27163             echo "$as_me:$LINENO: result: yes" >&5
27164 echo "${ECHO_T}yes" >&6
27165             succeeded=yes
27166
27167             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27168 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27169             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27170             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27171 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27172
27173             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27174 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27175             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27176             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27177 echo "${ECHO_T}$PANGOX_LIBS" >&6
27178         else
27179             PANGOX_CFLAGS=""
27180             PANGOX_LIBS=""
27181             ## If we have a custom action on failure, don't print errors, but
27182             ## do set a variable so people can do so.
27183             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27184
27185         fi
27186
27187
27188
27189      else
27190         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27191         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27192      fi
27193   fi
27194
27195   if test $succeeded = yes; then
27196
27197                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27198                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27199
27200   else
27201
27202                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27203 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27204    { (exit 1); exit 1; }; }
27205
27206
27207   fi
27208
27209
27210   succeeded=no
27211
27212   if test -z "$PKG_CONFIG"; then
27213     # Extract the first word of "pkg-config", so it can be a program name with args.
27214 set dummy pkg-config; ac_word=$2
27215 echo "$as_me:$LINENO: checking for $ac_word" >&5
27216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27217 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27218   echo $ECHO_N "(cached) $ECHO_C" >&6
27219 else
27220   case $PKG_CONFIG in
27221   [\\/]* | ?:[\\/]*)
27222   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27223   ;;
27224   *)
27225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27226 for as_dir in $PATH
27227 do
27228   IFS=$as_save_IFS
27229   test -z "$as_dir" && as_dir=.
27230   for ac_exec_ext in '' $ac_executable_extensions; do
27231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27232     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27234     break 2
27235   fi
27236 done
27237 done
27238
27239   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27240   ;;
27241 esac
27242 fi
27243 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27244
27245 if test -n "$PKG_CONFIG"; then
27246   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27247 echo "${ECHO_T}$PKG_CONFIG" >&6
27248 else
27249   echo "$as_me:$LINENO: result: no" >&5
27250 echo "${ECHO_T}no" >&6
27251 fi
27252
27253   fi
27254
27255   if test "$PKG_CONFIG" = "no" ; then
27256      echo "*** The pkg-config script could not be found. Make sure it is"
27257      echo "*** in your path, or set the PKG_CONFIG environment variable"
27258      echo "*** to the full path to pkg-config."
27259      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27260   else
27261      PKG_CONFIG_MIN_VERSION=0.9.0
27262      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27263         echo "$as_me:$LINENO: checking for pangoft2" >&5
27264 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27265
27266         if $PKG_CONFIG --exists "pangoft2" ; then
27267             echo "$as_me:$LINENO: result: yes" >&5
27268 echo "${ECHO_T}yes" >&6
27269             succeeded=yes
27270
27271             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27272 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27273             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27274             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27275 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27276
27277             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27278 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27279             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27280             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27281 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27282         else
27283             PANGOFT2_CFLAGS=""
27284             PANGOFT2_LIBS=""
27285             ## If we have a custom action on failure, don't print errors, but
27286             ## do set a variable so people can do so.
27287             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27288
27289         fi
27290
27291
27292
27293      else
27294         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27295         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27296      fi
27297   fi
27298
27299   if test $succeeded = yes; then
27300
27301                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27302                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27303
27304   else
27305
27306                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27307 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27308                         wxUSE_PRINTING_ARCHITECTURE="no"
27309
27310
27311   fi
27312
27313
27314   succeeded=no
27315
27316   if test -z "$PKG_CONFIG"; then
27317     # Extract the first word of "pkg-config", so it can be a program name with args.
27318 set dummy pkg-config; ac_word=$2
27319 echo "$as_me:$LINENO: checking for $ac_word" >&5
27320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27321 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27322   echo $ECHO_N "(cached) $ECHO_C" >&6
27323 else
27324   case $PKG_CONFIG in
27325   [\\/]* | ?:[\\/]*)
27326   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27327   ;;
27328   *)
27329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27330 for as_dir in $PATH
27331 do
27332   IFS=$as_save_IFS
27333   test -z "$as_dir" && as_dir=.
27334   for ac_exec_ext in '' $ac_executable_extensions; do
27335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27336     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27338     break 2
27339   fi
27340 done
27341 done
27342
27343   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27344   ;;
27345 esac
27346 fi
27347 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27348
27349 if test -n "$PKG_CONFIG"; then
27350   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27351 echo "${ECHO_T}$PKG_CONFIG" >&6
27352 else
27353   echo "$as_me:$LINENO: result: no" >&5
27354 echo "${ECHO_T}no" >&6
27355 fi
27356
27357   fi
27358
27359   if test "$PKG_CONFIG" = "no" ; then
27360      echo "*** The pkg-config script could not be found. Make sure it is"
27361      echo "*** in your path, or set the PKG_CONFIG environment variable"
27362      echo "*** to the full path to pkg-config."
27363      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27364   else
27365      PKG_CONFIG_MIN_VERSION=0.9.0
27366      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27367         echo "$as_me:$LINENO: checking for pangoxft" >&5
27368 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27369
27370         if $PKG_CONFIG --exists "pangoxft" ; then
27371             echo "$as_me:$LINENO: result: yes" >&5
27372 echo "${ECHO_T}yes" >&6
27373             succeeded=yes
27374
27375             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27376 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27377             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27378             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27379 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27380
27381             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27382 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27383             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27384             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27385 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27386         else
27387             PANGOXFT_CFLAGS=""
27388             PANGOXFT_LIBS=""
27389             ## If we have a custom action on failure, don't print errors, but
27390             ## do set a variable so people can do so.
27391             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27392
27393         fi
27394
27395
27396
27397      else
27398         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27399         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27400      fi
27401   fi
27402
27403   if test $succeeded = yes; then
27404
27405                         cat >>confdefs.h <<\_ACEOF
27406 #define HAVE_PANGO_XFT 1
27407 _ACEOF
27408
27409                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27410                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27411
27412   else
27413
27414                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27415 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27416
27417
27418   fi
27419
27420                 save_CFLAGS="$CFLAGS"
27421                 save_LIBS="$LIBS"
27422                 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27423                 LIBS="$LIBS $PANGOX_LIBS"
27424
27425 for ac_func in pango_font_family_is_monospace
27426 do
27427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27428 echo "$as_me:$LINENO: checking for $ac_func" >&5
27429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27430 if eval "test \"\${$as_ac_var+set}\" = set"; then
27431   echo $ECHO_N "(cached) $ECHO_C" >&6
27432 else
27433   cat >conftest.$ac_ext <<_ACEOF
27434 /* confdefs.h.  */
27435 _ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h.  */
27439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27441 #define $ac_func innocuous_$ac_func
27442
27443 /* System header to define __stub macros and hopefully few prototypes,
27444     which can conflict with char $ac_func (); below.
27445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27446     <limits.h> exists even on freestanding compilers.  */
27447
27448 #ifdef __STDC__
27449 # include <limits.h>
27450 #else
27451 # include <assert.h>
27452 #endif
27453
27454 #undef $ac_func
27455
27456 /* Override any gcc2 internal prototype to avoid an error.  */
27457 #ifdef __cplusplus
27458 extern "C"
27459 {
27460 #endif
27461 /* We use char because int might match the return type of a gcc2
27462    builtin and then its argument prototype would still apply.  */
27463 char $ac_func ();
27464 /* The GNU C library defines this for functions which it implements
27465     to always fail with ENOSYS.  Some functions are actually named
27466     something starting with __ and the normal name is an alias.  */
27467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27468 choke me
27469 #else
27470 char (*f) () = $ac_func;
27471 #endif
27472 #ifdef __cplusplus
27473 }
27474 #endif
27475
27476 int
27477 main ()
27478 {
27479 return f != $ac_func;
27480   ;
27481   return 0;
27482 }
27483 _ACEOF
27484 rm -f conftest.$ac_objext conftest$ac_exeext
27485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27486   (eval $ac_link) 2>conftest.er1
27487   ac_status=$?
27488   grep -v '^ *+' conftest.er1 >conftest.err
27489   rm -f conftest.er1
27490   cat conftest.err >&5
27491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492   (exit $ac_status); } &&
27493          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495   (eval $ac_try) 2>&5
27496   ac_status=$?
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); }; } &&
27499          { ac_try='test -s conftest$ac_exeext'
27500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501   (eval $ac_try) 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); }; }; then
27505   eval "$as_ac_var=yes"
27506 else
27507   echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27509
27510 eval "$as_ac_var=no"
27511 fi
27512 rm -f conftest.err conftest.$ac_objext \
27513       conftest$ac_exeext conftest.$ac_ext
27514 fi
27515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27517 if test `eval echo '${'$as_ac_var'}'` = yes; then
27518   cat >>confdefs.h <<_ACEOF
27519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27520 _ACEOF
27521
27522 fi
27523 done
27524
27525                 CFLAGS="$save_CFLAGS"
27526                 LIBS="$save_LIBS"
27527         fi
27528
27529         wxUSE_UNIVERSAL="yes"
27530
27531         if test "$wxUSE_NANOX" = "yes"; then
27532             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27533             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"
27534             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27535         else
27536             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27537         fi
27538
27539         TOOLKIT=X11
27540         GUIDIST=X11_DIST
27541     fi
27542
27543     if test "$wxUSE_MOTIF" = 1; then
27544         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27545 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
27546
27547 ac_find_includes=
27548 for ac_dir in $SEARCH_INCLUDE /usr/include;
27549   do
27550     if test -f "$ac_dir/Xm/Xm.h"; then
27551       ac_find_includes=$ac_dir
27552       break
27553     fi
27554   done
27555
27556         if test "$ac_find_includes" != "" ; then
27557             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27558 echo "${ECHO_T}found in $ac_find_includes" >&6
27559
27560     if test "x$ac_find_includes" = "x/usr/include"; then
27561     ac_path_to_include=""
27562   else
27563     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27564     result=$?
27565     if test $result = 0; then
27566       ac_path_to_include=""
27567     else
27568       ac_path_to_include=" -I$ac_find_includes"
27569     fi
27570   fi
27571
27572             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27573         else
27574             cat >conftest.$ac_ext <<_ACEOF
27575 /* confdefs.h.  */
27576 _ACEOF
27577 cat confdefs.h >>conftest.$ac_ext
27578 cat >>conftest.$ac_ext <<_ACEOF
27579 /* end confdefs.h.  */
27580
27581                     #include <Xm/Xm.h>
27582
27583 int
27584 main ()
27585 {
27586
27587                     int version;
27588                     version = xmUseVersion;
27589
27590   ;
27591   return 0;
27592 }
27593 _ACEOF
27594 rm -f conftest.$ac_objext
27595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27596   (eval $ac_compile) 2>conftest.er1
27597   ac_status=$?
27598   grep -v '^ *+' conftest.er1 >conftest.err
27599   rm -f conftest.er1
27600   cat conftest.err >&5
27601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602   (exit $ac_status); } &&
27603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27605   (eval $ac_try) 2>&5
27606   ac_status=$?
27607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608   (exit $ac_status); }; } &&
27609          { ac_try='test -s conftest.$ac_objext'
27610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27611   (eval $ac_try) 2>&5
27612   ac_status=$?
27613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614   (exit $ac_status); }; }; then
27615
27616                     echo "$as_me:$LINENO: result: found in default search path" >&5
27617 echo "${ECHO_T}found in default search path" >&6
27618                     COMPILED_X_PROGRAM=1
27619
27620 else
27621   echo "$as_me: failed program was:" >&5
27622 sed 's/^/| /' conftest.$ac_ext >&5
27623
27624
27625                     echo "$as_me:$LINENO: result: no" >&5
27626 echo "${ECHO_T}no" >&6
27627                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27628 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27629    { (exit 1); exit 1; }; }
27630
27631
27632 fi
27633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27634         fi
27635
27636         if test "$COMPILED_X_PROGRAM" = 0; then
27637             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27638 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27639
27640 ac_find_libraries=
27641 for ac_dir in $SEARCH_LIB /usr/lib;
27642   do
27643     for ac_extension in a so sl dylib; do
27644       if test -f "$ac_dir/libXm.$ac_extension"; then
27645         ac_find_libraries=$ac_dir
27646         break 2
27647       fi
27648     done
27649   done
27650
27651             if test "$ac_find_libraries" != "" ; then
27652                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27653 echo "${ECHO_T}found at $ac_find_libraries" >&6
27654
27655
27656   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27657   result=$?
27658   if test $result = 0; then
27659     ac_path_to_link=""
27660   else
27661     ac_path_to_link=" -L$ac_find_libraries"
27662   fi
27663
27664                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27665             else
27666                                                                 save_CFLAGS=$CFLAGS
27667                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27668
27669                 cat >conftest.$ac_ext <<_ACEOF
27670 /* confdefs.h.  */
27671 _ACEOF
27672 cat confdefs.h >>conftest.$ac_ext
27673 cat >>conftest.$ac_ext <<_ACEOF
27674 /* end confdefs.h.  */
27675
27676                         #include <Xm/Xm.h>
27677
27678 int
27679 main ()
27680 {
27681
27682                         int version;
27683                         version = xmUseVersion;
27684
27685   ;
27686   return 0;
27687 }
27688 _ACEOF
27689 rm -f conftest.$ac_objext
27690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27691   (eval $ac_compile) 2>conftest.er1
27692   ac_status=$?
27693   grep -v '^ *+' conftest.er1 >conftest.err
27694   rm -f conftest.er1
27695   cat conftest.err >&5
27696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697   (exit $ac_status); } &&
27698          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27700   (eval $ac_try) 2>&5
27701   ac_status=$?
27702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703   (exit $ac_status); }; } &&
27704          { ac_try='test -s conftest.$ac_objext'
27705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27706   (eval $ac_try) 2>&5
27707   ac_status=$?
27708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709   (exit $ac_status); }; }; then
27710
27711                         echo "$as_me:$LINENO: result: found in default search path" >&5
27712 echo "${ECHO_T}found in default search path" >&6
27713                         COMPILED_X_PROGRAM=1
27714
27715 else
27716   echo "$as_me: failed program was:" >&5
27717 sed 's/^/| /' conftest.$ac_ext >&5
27718
27719
27720                         echo "$as_me:$LINENO: result: no" >&5
27721 echo "${ECHO_T}no" >&6
27722                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27723 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27724    { (exit 1); exit 1; }; }
27725
27726
27727 fi
27728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27729
27730                 CFLAGS=$save_CFLAGS
27731             fi
27732         fi
27733
27734         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27735 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27736         libp_link=""
27737         libsm_ice_link=""
27738         libs_found=0
27739         for libp in "" " -lXp"; do
27740             if test "$libs_found" = "0"; then
27741                 for libsm_ice in "" " -lSM -lICE"; do
27742                     if test "$libs_found" = "0"; then
27743                         save_LIBS="$LIBS"
27744                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27745                         save_CFLAGS=$CFLAGS
27746                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27747
27748                         cat >conftest.$ac_ext <<_ACEOF
27749 /* confdefs.h.  */
27750 _ACEOF
27751 cat confdefs.h >>conftest.$ac_ext
27752 cat >>conftest.$ac_ext <<_ACEOF
27753 /* end confdefs.h.  */
27754
27755                                 #include <Xm/Xm.h>
27756                                 #include <Xm/List.h>
27757
27758 int
27759 main ()
27760 {
27761
27762                                 XmString string = NULL;
27763                                 Widget w = NULL;
27764                                 int position = 0;
27765                                 XmListAddItem(w, string, position);
27766
27767   ;
27768   return 0;
27769 }
27770 _ACEOF
27771 rm -f conftest.$ac_objext conftest$ac_exeext
27772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27773   (eval $ac_link) 2>conftest.er1
27774   ac_status=$?
27775   grep -v '^ *+' conftest.er1 >conftest.err
27776   rm -f conftest.er1
27777   cat conftest.err >&5
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); } &&
27780          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27782   (eval $ac_try) 2>&5
27783   ac_status=$?
27784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785   (exit $ac_status); }; } &&
27786          { ac_try='test -s conftest$ac_exeext'
27787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788   (eval $ac_try) 2>&5
27789   ac_status=$?
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); }; }; then
27792
27793                                 libp_link="$libp"
27794                                 libsm_ice_link="$libsm_ice"
27795                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27796 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27797                                 libs_found=1
27798
27799 else
27800   echo "$as_me: failed program was:" >&5
27801 sed 's/^/| /' conftest.$ac_ext >&5
27802
27803
27804
27805 fi
27806 rm -f conftest.err conftest.$ac_objext \
27807       conftest$ac_exeext conftest.$ac_ext
27808
27809                         LIBS="$save_LIBS"
27810                         CFLAGS=$save_CFLAGS
27811                     fi
27812                 done
27813             fi
27814         done
27815
27816         if test "$libs_found" = "0"; then
27817             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27818 echo "${ECHO_T}can't find the right libraries" >&6
27819             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27820 echo "$as_me: error: can't link a simple motif program" >&2;}
27821    { (exit 1); exit 1; }; }
27822         fi
27823
27824         save_CFLAGS=$CFLAGS
27825         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27826         echo "$as_me:$LINENO: checking for Motif 2" >&5
27827 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27828         cat >conftest.$ac_ext <<_ACEOF
27829 /* confdefs.h.  */
27830 _ACEOF
27831 cat confdefs.h >>conftest.$ac_ext
27832 cat >>conftest.$ac_ext <<_ACEOF
27833 /* end confdefs.h.  */
27834
27835                         #include <Xm/Xm.h>
27836
27837 int
27838 main ()
27839 {
27840
27841                         #if XmVersion < 2000
27842                         #error "Not Motif 2"
27843                         #endif
27844
27845   ;
27846   return 0;
27847 }
27848 _ACEOF
27849 rm -f conftest.$ac_objext
27850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27851   (eval $ac_compile) 2>conftest.er1
27852   ac_status=$?
27853   grep -v '^ *+' conftest.er1 >conftest.err
27854   rm -f conftest.er1
27855   cat conftest.err >&5
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); } &&
27858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27860   (eval $ac_try) 2>&5
27861   ac_status=$?
27862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863   (exit $ac_status); }; } &&
27864          { ac_try='test -s conftest.$ac_objext'
27865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27866   (eval $ac_try) 2>&5
27867   ac_status=$?
27868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869   (exit $ac_status); }; }; then
27870
27871                         cat >>confdefs.h <<\_ACEOF
27872 #define __WXMOTIF20__ 1
27873 _ACEOF
27874
27875                         echo "$as_me:$LINENO: result: found" >&5
27876 echo "${ECHO_T}found" >&6
27877
27878 else
27879   echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27881
27882
27883                         cat >>confdefs.h <<\_ACEOF
27884 #define __WXMOTIF20__ 0
27885 _ACEOF
27886
27887                         echo "$as_me:$LINENO: result: not found" >&5
27888 echo "${ECHO_T}not found" >&6
27889
27890 fi
27891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27892         CFLAGS=$save_CFLAGS
27893
27894         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
27895         TOOLKIT=MOTIF
27896         GUIDIST=MOTIF_DIST
27897     fi
27898
27899         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
27900                 if test "$wxUSE_LIBXPM" = "sys"; then
27901             echo "$as_me:$LINENO: checking for Xpm library" >&5
27902 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27903
27904 ac_find_libraries=
27905 for ac_dir in $SEARCH_LIB /usr/lib;
27906   do
27907     for ac_extension in a so sl dylib; do
27908       if test -f "$ac_dir/libXpm.$ac_extension"; then
27909         ac_find_libraries=$ac_dir
27910         break 2
27911       fi
27912     done
27913   done
27914
27915             if test "$ac_find_libraries" != "" ; then
27916
27917   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27918   result=$?
27919   if test $result = 0; then
27920     ac_path_to_link=""
27921   else
27922     ac_path_to_link=" -L$ac_find_libraries"
27923   fi
27924
27925                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27926                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27927 echo "${ECHO_T}found at $ac_find_libraries" >&6
27928
27929                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27930 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27931 if test "${wx_cv_x11_xpm_h+set}" = set; then
27932   echo $ECHO_N "(cached) $ECHO_C" >&6
27933 else
27934
27935                         save_CFLAGS=$CFLAGS
27936                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27937
27938                         cat >conftest.$ac_ext <<_ACEOF
27939 /* confdefs.h.  */
27940 _ACEOF
27941 cat confdefs.h >>conftest.$ac_ext
27942 cat >>conftest.$ac_ext <<_ACEOF
27943 /* end confdefs.h.  */
27944
27945                                 #include <X11/xpm.h>
27946
27947 int
27948 main ()
27949 {
27950
27951                                 int version;
27952                                 version = XpmLibraryVersion();
27953
27954   ;
27955   return 0;
27956 }
27957 _ACEOF
27958 rm -f conftest.$ac_objext
27959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27960   (eval $ac_compile) 2>conftest.er1
27961   ac_status=$?
27962   grep -v '^ *+' conftest.er1 >conftest.err
27963   rm -f conftest.er1
27964   cat conftest.err >&5
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); } &&
27967          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969   (eval $ac_try) 2>&5
27970   ac_status=$?
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); }; } &&
27973          { ac_try='test -s conftest.$ac_objext'
27974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975   (eval $ac_try) 2>&5
27976   ac_status=$?
27977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978   (exit $ac_status); }; }; then
27979   wx_cv_x11_xpm_h=yes
27980 else
27981   echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27983
27984 wx_cv_x11_xpm_h=no
27985
27986 fi
27987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27988
27989                         CFLAGS=$save_CFLAGS
27990
27991
27992 fi
27993 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27994 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27995
27996                 if test $wx_cv_x11_xpm_h = "yes"; then
27997                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27998                     cat >>confdefs.h <<\_ACEOF
27999 #define wxHAVE_LIB_XPM 1
28000 _ACEOF
28001
28002                 else
28003                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28004 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28005                 fi
28006             fi
28007
28008         fi
28009
28010                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28011 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28012 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28013   echo $ECHO_N "(cached) $ECHO_C" >&6
28014 else
28015   ac_check_lib_save_LIBS=$LIBS
28016 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28017 cat >conftest.$ac_ext <<_ACEOF
28018 /* confdefs.h.  */
28019 _ACEOF
28020 cat confdefs.h >>conftest.$ac_ext
28021 cat >>conftest.$ac_ext <<_ACEOF
28022 /* end confdefs.h.  */
28023
28024 /* Override any gcc2 internal prototype to avoid an error.  */
28025 #ifdef __cplusplus
28026 extern "C"
28027 #endif
28028 /* We use char because int might match the return type of a gcc2
28029    builtin and then its argument prototype would still apply.  */
28030 char XShapeQueryExtension ();
28031 int
28032 main ()
28033 {
28034 XShapeQueryExtension ();
28035   ;
28036   return 0;
28037 }
28038 _ACEOF
28039 rm -f conftest.$ac_objext conftest$ac_exeext
28040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28041   (eval $ac_link) 2>conftest.er1
28042   ac_status=$?
28043   grep -v '^ *+' conftest.er1 >conftest.err
28044   rm -f conftest.er1
28045   cat conftest.err >&5
28046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047   (exit $ac_status); } &&
28048          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28050   (eval $ac_try) 2>&5
28051   ac_status=$?
28052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053   (exit $ac_status); }; } &&
28054          { ac_try='test -s conftest$ac_exeext'
28055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28056   (eval $ac_try) 2>&5
28057   ac_status=$?
28058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059   (exit $ac_status); }; }; then
28060   ac_cv_lib_Xext_XShapeQueryExtension=yes
28061 else
28062   echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28064
28065 ac_cv_lib_Xext_XShapeQueryExtension=no
28066 fi
28067 rm -f conftest.err conftest.$ac_objext \
28068       conftest$ac_exeext conftest.$ac_ext
28069 LIBS=$ac_check_lib_save_LIBS
28070 fi
28071 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28072 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28073 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28074
28075                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28076                       wxHAVE_XEXT_LIB=1
28077
28078 fi
28079
28080
28081         if test "$wxHAVE_XEXT_LIB" = 1; then
28082             save_CFLAGS="$CFLAGS"
28083             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28084
28085             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28086 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28087             cat >conftest.$ac_ext <<_ACEOF
28088 /* confdefs.h.  */
28089 _ACEOF
28090 cat confdefs.h >>conftest.$ac_ext
28091 cat >>conftest.$ac_ext <<_ACEOF
28092 /* end confdefs.h.  */
28093
28094                             #include <X11/Xlib.h>
28095                             #include <X11/extensions/shape.h>
28096
28097 int
28098 main ()
28099 {
28100
28101                             int dummy1, dummy2;
28102                             XShapeQueryExtension((Display*)NULL,
28103                                                  (int*)NULL, (int*)NULL);
28104
28105   ;
28106   return 0;
28107 }
28108 _ACEOF
28109 rm -f conftest.$ac_objext
28110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28111   (eval $ac_compile) 2>conftest.er1
28112   ac_status=$?
28113   grep -v '^ *+' conftest.er1 >conftest.err
28114   rm -f conftest.er1
28115   cat conftest.err >&5
28116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117   (exit $ac_status); } &&
28118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28120   (eval $ac_try) 2>&5
28121   ac_status=$?
28122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123   (exit $ac_status); }; } &&
28124          { ac_try='test -s conftest.$ac_objext'
28125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126   (eval $ac_try) 2>&5
28127   ac_status=$?
28128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129   (exit $ac_status); }; }; then
28130
28131                             cat >>confdefs.h <<\_ACEOF
28132 #define HAVE_XSHAPE 1
28133 _ACEOF
28134
28135                             echo "$as_me:$LINENO: result: found" >&5
28136 echo "${ECHO_T}found" >&6
28137
28138 else
28139   echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.$ac_ext >&5
28141
28142
28143                             echo "$as_me:$LINENO: result: not found" >&5
28144 echo "${ECHO_T}not found" >&6
28145
28146 fi
28147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28148             CFLAGS="$save_CFLAGS"
28149
28150         fi
28151     fi
28152
28153     if test "$wxUSE_MAC" = 1; then
28154         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28155 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28156         if test "$GCC" = yes; then
28157             echo "$as_me:$LINENO: result: gcc" >&5
28158 echo "${ECHO_T}gcc" >&6
28159             CPPFLAGS_PASCAL="-fpascal-strings"
28160         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28161             echo "$as_me:$LINENO: result: xlc" >&5
28162 echo "${ECHO_T}xlc" >&6
28163             CPPFLAGS_PASCAL="-qmacpstr"
28164         else
28165             echo "$as_me:$LINENO: result: none" >&5
28166 echo "${ECHO_T}none" >&6
28167         fi
28168
28169         if test "x$wxUSE_UNIX" = "xyes"; then
28170             CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28171         else
28172                         CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28173         fi
28174
28175         TOOLKIT=MAC
28176                 GUIDIST=MACX_DIST
28177                         WXBASEPORT="_carbon"
28178     fi
28179
28180     if test "$wxUSE_COCOA" = 1; then
28181         TOOLKIT=COCOA
28182         GUIDIST=COCOA_DIST
28183     fi
28184
28185     if test "$wxUSE_PM" = 1; then
28186         TOOLKIT=PM
28187         GUIDIST=PM_DIST
28188         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28189 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28190 if test "${wx_cv_spbcdata+set}" = set; then
28191   echo $ECHO_N "(cached) $ECHO_C" >&6
28192 else
28193
28194                 cat >conftest.$ac_ext <<_ACEOF
28195 /* confdefs.h.  */
28196 _ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h.  */
28200
28201                         #define INCL_PM
28202                         #include <os2.h>
28203
28204 int
28205 main ()
28206 {
28207
28208                         SPBCDATA test;
28209
28210   ;
28211   return 0;
28212 }
28213 _ACEOF
28214 rm -f conftest.$ac_objext
28215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28216   (eval $ac_compile) 2>conftest.er1
28217   ac_status=$?
28218   grep -v '^ *+' conftest.er1 >conftest.err
28219   rm -f conftest.er1
28220   cat conftest.err >&5
28221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222   (exit $ac_status); } &&
28223          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28225   (eval $ac_try) 2>&5
28226   ac_status=$?
28227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228   (exit $ac_status); }; } &&
28229          { ac_try='test -s conftest.$ac_objext'
28230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28231   (eval $ac_try) 2>&5
28232   ac_status=$?
28233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234   (exit $ac_status); }; }; then
28235   wx_cv_spbcdata=yes
28236 else
28237   echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28239
28240 wx_cv_spbcdata=no
28241
28242 fi
28243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28244
28245
28246 fi
28247 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28248 echo "${ECHO_T}$wx_cv_spbcdata" >&6
28249
28250         if test $wx_cv_spbcdata = "yes"; then
28251             cat >>confdefs.h <<\_ACEOF
28252 #define HAVE_SPBCDATA 1
28253 _ACEOF
28254
28255         fi
28256     fi
28257
28258         if test "$TOOLKIT" = "PM" ; then
28259         TOOLKIT_DIR="os2"
28260     else
28261         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28262     fi
28263
28264     if test "$wxUSE_UNIVERSAL" = "yes"; then
28265         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28266         WIDGET_SET=univ
28267     fi
28268
28269         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28270     DISTDIR="wx\$(TOOLKIT)"
28271 else
28272     USE_GUI=0
28273
28274             TOOLKIT_DIR="base"
28275
28276         if test "$USE_WIN32" = 1 ; then
28277                         TOOLKIT="MSW"
28278     fi
28279
28280         GUIDIST="BASE_DIST"
28281     DISTDIR="wxBase"
28282 fi
28283
28284
28285
28286
28287 IODBC_C_SRC=""
28288
28289
28290 if test "$TOOLKIT" != "MSW" ; then
28291
28292     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28293
28294         if test "${ac_cv_header_sql_h+set}" = set; then
28295   echo "$as_me:$LINENO: checking for sql.h" >&5
28296 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28297 if test "${ac_cv_header_sql_h+set}" = set; then
28298   echo $ECHO_N "(cached) $ECHO_C" >&6
28299 fi
28300 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28301 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28302 else
28303   # Is the header compilable?
28304 echo "$as_me:$LINENO: checking sql.h usability" >&5
28305 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28306 cat >conftest.$ac_ext <<_ACEOF
28307 /* confdefs.h.  */
28308 _ACEOF
28309 cat confdefs.h >>conftest.$ac_ext
28310 cat >>conftest.$ac_ext <<_ACEOF
28311 /* end confdefs.h.  */
28312 $ac_includes_default
28313 #include <sql.h>
28314 _ACEOF
28315 rm -f conftest.$ac_objext
28316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28317   (eval $ac_compile) 2>conftest.er1
28318   ac_status=$?
28319   grep -v '^ *+' conftest.er1 >conftest.err
28320   rm -f conftest.er1
28321   cat conftest.err >&5
28322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323   (exit $ac_status); } &&
28324          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326   (eval $ac_try) 2>&5
28327   ac_status=$?
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); }; } &&
28330          { ac_try='test -s conftest.$ac_objext'
28331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332   (eval $ac_try) 2>&5
28333   ac_status=$?
28334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335   (exit $ac_status); }; }; then
28336   ac_header_compiler=yes
28337 else
28338   echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28340
28341 ac_header_compiler=no
28342 fi
28343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28345 echo "${ECHO_T}$ac_header_compiler" >&6
28346
28347 # Is the header present?
28348 echo "$as_me:$LINENO: checking sql.h presence" >&5
28349 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28350 cat >conftest.$ac_ext <<_ACEOF
28351 /* confdefs.h.  */
28352 _ACEOF
28353 cat confdefs.h >>conftest.$ac_ext
28354 cat >>conftest.$ac_ext <<_ACEOF
28355 /* end confdefs.h.  */
28356 #include <sql.h>
28357 _ACEOF
28358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28360   ac_status=$?
28361   grep -v '^ *+' conftest.er1 >conftest.err
28362   rm -f conftest.er1
28363   cat conftest.err >&5
28364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365   (exit $ac_status); } >/dev/null; then
28366   if test -s conftest.err; then
28367     ac_cpp_err=$ac_c_preproc_warn_flag
28368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28369   else
28370     ac_cpp_err=
28371   fi
28372 else
28373   ac_cpp_err=yes
28374 fi
28375 if test -z "$ac_cpp_err"; then
28376   ac_header_preproc=yes
28377 else
28378   echo "$as_me: failed program was:" >&5
28379 sed 's/^/| /' conftest.$ac_ext >&5
28380
28381   ac_header_preproc=no
28382 fi
28383 rm -f conftest.err conftest.$ac_ext
28384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28385 echo "${ECHO_T}$ac_header_preproc" >&6
28386
28387 # So?  What about this header?
28388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28389   yes:no: )
28390     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28391 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28392     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28393 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28394     ac_header_preproc=yes
28395     ;;
28396   no:yes:* )
28397     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28398 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
28399     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
28400 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
28401     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28402 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28403     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
28404 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28405     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28406 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
28407     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28408 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
28409     (
28410       cat <<\_ASBOX
28411 ## ----------------------------------------- ##
28412 ## Report this to wx-dev@lists.wxwidgets.org ##
28413 ## ----------------------------------------- ##
28414 _ASBOX
28415     ) |
28416       sed "s/^/$as_me: WARNING:     /" >&2
28417     ;;
28418 esac
28419 echo "$as_me:$LINENO: checking for sql.h" >&5
28420 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28421 if test "${ac_cv_header_sql_h+set}" = set; then
28422   echo $ECHO_N "(cached) $ECHO_C" >&6
28423 else
28424   ac_cv_header_sql_h=$ac_header_preproc
28425 fi
28426 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28427 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28428
28429 fi
28430 if test $ac_cv_header_sql_h = yes; then
28431   found_sql_h=1
28432 fi
28433
28434
28435         if test "x$found_sql_h" = "x1" ; then
28436             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28437 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28438 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28439   echo $ECHO_N "(cached) $ECHO_C" >&6
28440 else
28441   ac_check_lib_save_LIBS=$LIBS
28442 LIBS="-liodbc  $LIBS"
28443 cat >conftest.$ac_ext <<_ACEOF
28444 /* confdefs.h.  */
28445 _ACEOF
28446 cat confdefs.h >>conftest.$ac_ext
28447 cat >>conftest.$ac_ext <<_ACEOF
28448 /* end confdefs.h.  */
28449
28450 /* Override any gcc2 internal prototype to avoid an error.  */
28451 #ifdef __cplusplus
28452 extern "C"
28453 #endif
28454 /* We use char because int might match the return type of a gcc2
28455    builtin and then its argument prototype would still apply.  */
28456 char SQLAllocEnv ();
28457 int
28458 main ()
28459 {
28460 SQLAllocEnv ();
28461   ;
28462   return 0;
28463 }
28464 _ACEOF
28465 rm -f conftest.$ac_objext conftest$ac_exeext
28466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28467   (eval $ac_link) 2>conftest.er1
28468   ac_status=$?
28469   grep -v '^ *+' conftest.er1 >conftest.err
28470   rm -f conftest.er1
28471   cat conftest.err >&5
28472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473   (exit $ac_status); } &&
28474          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476   (eval $ac_try) 2>&5
28477   ac_status=$?
28478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479   (exit $ac_status); }; } &&
28480          { ac_try='test -s conftest$ac_exeext'
28481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28482   (eval $ac_try) 2>&5
28483   ac_status=$?
28484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485   (exit $ac_status); }; }; then
28486   ac_cv_lib_iodbc_SQLAllocEnv=yes
28487 else
28488   echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28490
28491 ac_cv_lib_iodbc_SQLAllocEnv=no
28492 fi
28493 rm -f conftest.err conftest.$ac_objext \
28494       conftest$ac_exeext conftest.$ac_ext
28495 LIBS=$ac_check_lib_save_LIBS
28496 fi
28497 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28498 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28499 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28500   ODBC_LINK=" -liodbc"
28501 else
28502
28503                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28504 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28505 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28506   echo $ECHO_N "(cached) $ECHO_C" >&6
28507 else
28508   ac_check_lib_save_LIBS=$LIBS
28509 LIBS="-lunixodbc  $LIBS"
28510 cat >conftest.$ac_ext <<_ACEOF
28511 /* confdefs.h.  */
28512 _ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h.  */
28516
28517 /* Override any gcc2 internal prototype to avoid an error.  */
28518 #ifdef __cplusplus
28519 extern "C"
28520 #endif
28521 /* We use char because int might match the return type of a gcc2
28522    builtin and then its argument prototype would still apply.  */
28523 char SQLAllocEnv ();
28524 int
28525 main ()
28526 {
28527 SQLAllocEnv ();
28528   ;
28529   return 0;
28530 }
28531 _ACEOF
28532 rm -f conftest.$ac_objext conftest$ac_exeext
28533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28534   (eval $ac_link) 2>conftest.er1
28535   ac_status=$?
28536   grep -v '^ *+' conftest.er1 >conftest.err
28537   rm -f conftest.er1
28538   cat conftest.err >&5
28539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540   (exit $ac_status); } &&
28541          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28543   (eval $ac_try) 2>&5
28544   ac_status=$?
28545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546   (exit $ac_status); }; } &&
28547          { ac_try='test -s conftest$ac_exeext'
28548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28549   (eval $ac_try) 2>&5
28550   ac_status=$?
28551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); }; }; then
28553   ac_cv_lib_unixodbc_SQLAllocEnv=yes
28554 else
28555   echo "$as_me: failed program was:" >&5
28556 sed 's/^/| /' conftest.$ac_ext >&5
28557
28558 ac_cv_lib_unixodbc_SQLAllocEnv=no
28559 fi
28560 rm -f conftest.err conftest.$ac_objext \
28561       conftest$ac_exeext conftest.$ac_ext
28562 LIBS=$ac_check_lib_save_LIBS
28563 fi
28564 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28565 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28566 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28567   ODBC_LINK=" -lunixodbc"
28568 else
28569
28570                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28571 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28572 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28573   echo $ECHO_N "(cached) $ECHO_C" >&6
28574 else
28575   ac_check_lib_save_LIBS=$LIBS
28576 LIBS="-lodbc  $LIBS"
28577 cat >conftest.$ac_ext <<_ACEOF
28578 /* confdefs.h.  */
28579 _ACEOF
28580 cat confdefs.h >>conftest.$ac_ext
28581 cat >>conftest.$ac_ext <<_ACEOF
28582 /* end confdefs.h.  */
28583
28584 /* Override any gcc2 internal prototype to avoid an error.  */
28585 #ifdef __cplusplus
28586 extern "C"
28587 #endif
28588 /* We use char because int might match the return type of a gcc2
28589    builtin and then its argument prototype would still apply.  */
28590 char SQLAllocEnv ();
28591 int
28592 main ()
28593 {
28594 SQLAllocEnv ();
28595   ;
28596   return 0;
28597 }
28598 _ACEOF
28599 rm -f conftest.$ac_objext conftest$ac_exeext
28600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28601   (eval $ac_link) 2>conftest.er1
28602   ac_status=$?
28603   grep -v '^ *+' conftest.er1 >conftest.err
28604   rm -f conftest.er1
28605   cat conftest.err >&5
28606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607   (exit $ac_status); } &&
28608          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610   (eval $ac_try) 2>&5
28611   ac_status=$?
28612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613   (exit $ac_status); }; } &&
28614          { ac_try='test -s conftest$ac_exeext'
28615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616   (eval $ac_try) 2>&5
28617   ac_status=$?
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); }; }; then
28620   ac_cv_lib_odbc_SQLAllocEnv=yes
28621 else
28622   echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28624
28625 ac_cv_lib_odbc_SQLAllocEnv=no
28626 fi
28627 rm -f conftest.err conftest.$ac_objext \
28628       conftest$ac_exeext conftest.$ac_ext
28629 LIBS=$ac_check_lib_save_LIBS
28630 fi
28631 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28632 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28633 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28634   ODBC_LINK=" -lodbc"
28635 fi
28636
28637
28638 fi
28639
28640
28641 fi
28642
28643         fi
28644         if test "x$ODBC_LINK" = "x" ; then
28645             if test "$wxUSE_ODBC" = "sys" ; then
28646                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28647 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28648    { (exit 1); exit 1; }; }
28649             else
28650                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28651 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28652                 wxUSE_ODBC=builtin
28653             fi
28654         else
28655                         wxUSE_ODBC=sys
28656         fi
28657     fi
28658
28659     if test "$wxUSE_ODBC" = "builtin" ; then
28660         cat >>confdefs.h <<\_ACEOF
28661 #define wxUSE_BUILTIN_IODBC 1
28662 _ACEOF
28663
28664     fi
28665 fi
28666
28667 if test "$wxUSE_ODBC" != "no" ; then
28668     cat >>confdefs.h <<\_ACEOF
28669 #define wxUSE_ODBC 1
28670 _ACEOF
28671
28672     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28673
28674         WXODBCFLAG="-D_IODBC_"
28675 fi
28676
28677
28678 if test "$wxUSE_DISPLAY" = "yes"; then
28679     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
28680         echo "$as_me:$LINENO: checking for Xinerama" >&5
28681 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28682
28683 ac_find_libraries=
28684 for ac_dir in $SEARCH_LIB /usr/lib;
28685   do
28686     for ac_extension in a so sl dylib; do
28687       if test -f "$ac_dir/libXinerama.$ac_extension"; then
28688         ac_find_libraries=$ac_dir
28689         break 2
28690       fi
28691     done
28692   done
28693
28694         if test "$ac_find_libraries" != "" ; then
28695
28696   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28697   result=$?
28698   if test $result = 0; then
28699     ac_path_to_link=""
28700   else
28701     ac_path_to_link=" -L$ac_find_libraries"
28702   fi
28703
28704             if test "$ac_path_to_link" != " -L/usr/lib" ; then
28705                 LDFLAGS="$LDFLAGS $ac_path_to_link"
28706             fi
28707             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28708             echo "$as_me:$LINENO: result: yes" >&5
28709 echo "${ECHO_T}yes" >&6
28710
28711             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28712 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28713
28714 ac_find_libraries=
28715 for ac_dir in $SEARCH_LIB /usr/lib;
28716   do
28717     for ac_extension in a so sl dylib; do
28718       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28719         ac_find_libraries=$ac_dir
28720         break 2
28721       fi
28722     done
28723   done
28724
28725             if test "$ac_find_libraries" != "" ; then
28726                 echo "$as_me:$LINENO: result: yes" >&5
28727 echo "${ECHO_T}yes" >&6
28728
28729 for ac_header in X11/extensions/xf86vmode.h
28730 do
28731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28732 echo "$as_me:$LINENO: checking for $ac_header" >&5
28733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28735   echo $ECHO_N "(cached) $ECHO_C" >&6
28736 else
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                                       #if HAVE_X11_XLIB_H
28745                                         #include <X11/Xlib.h>
28746                                       #endif
28747
28748
28749 #include <$ac_header>
28750 _ACEOF
28751 rm -f conftest.$ac_objext
28752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28753   (eval $ac_compile) 2>conftest.er1
28754   ac_status=$?
28755   grep -v '^ *+' conftest.er1 >conftest.err
28756   rm -f conftest.er1
28757   cat conftest.err >&5
28758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759   (exit $ac_status); } &&
28760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28762   (eval $ac_try) 2>&5
28763   ac_status=$?
28764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765   (exit $ac_status); }; } &&
28766          { ac_try='test -s conftest.$ac_objext'
28767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28768   (eval $ac_try) 2>&5
28769   ac_status=$?
28770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771   (exit $ac_status); }; }; then
28772   eval "$as_ac_Header=yes"
28773 else
28774   echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28776
28777 eval "$as_ac_Header=no"
28778 fi
28779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28780 fi
28781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28784   cat >>confdefs.h <<_ACEOF
28785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28786 _ACEOF
28787
28788                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28789
28790 fi
28791
28792 done
28793
28794             else
28795                 echo "$as_me:$LINENO: result: no" >&5
28796 echo "${ECHO_T}no" >&6
28797             fi
28798
28799         else
28800             echo "$as_me:$LINENO: result: no" >&5
28801 echo "${ECHO_T}no" >&6
28802             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28803 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
28804             wxUSE_DISPLAY="no"
28805         fi
28806     elif test "$wxUSE_MSW" = 1; then
28807
28808
28809 for ac_header in multimon.h ddraw.h
28810 do
28811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28812 echo "$as_me:$LINENO: checking for $ac_header" >&5
28813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28815   echo $ECHO_N "(cached) $ECHO_C" >&6
28816 else
28817   cat >conftest.$ac_ext <<_ACEOF
28818 /* confdefs.h.  */
28819 _ACEOF
28820 cat confdefs.h >>conftest.$ac_ext
28821 cat >>conftest.$ac_ext <<_ACEOF
28822 /* end confdefs.h.  */
28823 #include <windows.h>
28824
28825 #include <$ac_header>
28826 _ACEOF
28827 rm -f conftest.$ac_objext
28828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28829   (eval $ac_compile) 2>conftest.er1
28830   ac_status=$?
28831   grep -v '^ *+' conftest.er1 >conftest.err
28832   rm -f conftest.er1
28833   cat conftest.err >&5
28834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835   (exit $ac_status); } &&
28836          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28838   (eval $ac_try) 2>&5
28839   ac_status=$?
28840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841   (exit $ac_status); }; } &&
28842          { ac_try='test -s conftest.$ac_objext'
28843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28844   (eval $ac_try) 2>&5
28845   ac_status=$?
28846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847   (exit $ac_status); }; }; then
28848   eval "$as_ac_Header=yes"
28849 else
28850   echo "$as_me: failed program was:" >&5
28851 sed 's/^/| /' conftest.$ac_ext >&5
28852
28853 eval "$as_ac_Header=no"
28854 fi
28855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28856 fi
28857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28860   cat >>confdefs.h <<_ACEOF
28861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28862 _ACEOF
28863
28864 else
28865
28866                 wxUSE_DISPLAY="no"
28867                 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
28868 echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
28869
28870 fi
28871
28872 done
28873
28874     fi
28875 fi
28876
28877
28878 USE_OPENGL=0
28879 if test "$wxUSE_OPENGL" = "yes"; then
28880     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28881         OPENGL_LIBS="-framework OpenGL -framework AGL"
28882     elif test "$wxUSE_MSW" = 1; then
28883         OPENGL_LIBS="-lopengl32 -lglu32"
28884     else
28885
28886
28887 ac_find_includes=
28888 for ac_dir in $SEARCH_INCLUDE /usr/include;
28889   do
28890     if test -f "$ac_dir/GL/gl.h"; then
28891       ac_find_includes=$ac_dir
28892       break
28893     fi
28894   done
28895
28896         if test "$ac_find_includes" != "" ; then
28897             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28898 echo "${ECHO_T}found in $ac_find_includes" >&6
28899
28900     if test "x$ac_find_includes" = "x/usr/include"; then
28901     ac_path_to_include=""
28902   else
28903     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28904     result=$?
28905     if test $result = 0; then
28906       ac_path_to_include=""
28907     else
28908       ac_path_to_include=" -I$ac_find_includes"
28909     fi
28910   fi
28911
28912             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28913         fi
28914
28915         if test "${ac_cv_header_GL_gl_h+set}" = set; then
28916   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28917 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28918 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28919   echo $ECHO_N "(cached) $ECHO_C" >&6
28920 fi
28921 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28922 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28923 else
28924   # Is the header compilable?
28925 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28926 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28927 cat >conftest.$ac_ext <<_ACEOF
28928 /* confdefs.h.  */
28929 _ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h.  */
28933 $ac_includes_default
28934 #include <GL/gl.h>
28935 _ACEOF
28936 rm -f conftest.$ac_objext
28937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28938   (eval $ac_compile) 2>conftest.er1
28939   ac_status=$?
28940   grep -v '^ *+' conftest.er1 >conftest.err
28941   rm -f conftest.er1
28942   cat conftest.err >&5
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); } &&
28945          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28947   (eval $ac_try) 2>&5
28948   ac_status=$?
28949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950   (exit $ac_status); }; } &&
28951          { ac_try='test -s conftest.$ac_objext'
28952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953   (eval $ac_try) 2>&5
28954   ac_status=$?
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); }; }; then
28957   ac_header_compiler=yes
28958 else
28959   echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28961
28962 ac_header_compiler=no
28963 fi
28964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28966 echo "${ECHO_T}$ac_header_compiler" >&6
28967
28968 # Is the header present?
28969 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28970 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28971 cat >conftest.$ac_ext <<_ACEOF
28972 /* confdefs.h.  */
28973 _ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h.  */
28977 #include <GL/gl.h>
28978 _ACEOF
28979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28981   ac_status=$?
28982   grep -v '^ *+' conftest.er1 >conftest.err
28983   rm -f conftest.er1
28984   cat conftest.err >&5
28985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986   (exit $ac_status); } >/dev/null; then
28987   if test -s conftest.err; then
28988     ac_cpp_err=$ac_c_preproc_warn_flag
28989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28990   else
28991     ac_cpp_err=
28992   fi
28993 else
28994   ac_cpp_err=yes
28995 fi
28996 if test -z "$ac_cpp_err"; then
28997   ac_header_preproc=yes
28998 else
28999   echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29001
29002   ac_header_preproc=no
29003 fi
29004 rm -f conftest.err conftest.$ac_ext
29005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29006 echo "${ECHO_T}$ac_header_preproc" >&6
29007
29008 # So?  What about this header?
29009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29010   yes:no: )
29011     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29012 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29013     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29014 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29015     ac_header_preproc=yes
29016     ;;
29017   no:yes:* )
29018     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29019 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
29020     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
29021 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
29022     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29023 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29024     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
29025 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29026     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29027 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
29028     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29029 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
29030     (
29031       cat <<\_ASBOX
29032 ## ----------------------------------------- ##
29033 ## Report this to wx-dev@lists.wxwidgets.org ##
29034 ## ----------------------------------------- ##
29035 _ASBOX
29036     ) |
29037       sed "s/^/$as_me: WARNING:     /" >&2
29038     ;;
29039 esac
29040 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29041 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29042 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29043   echo $ECHO_N "(cached) $ECHO_C" >&6
29044 else
29045   ac_cv_header_GL_gl_h=$ac_header_preproc
29046 fi
29047 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29048 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29049
29050 fi
29051 if test $ac_cv_header_GL_gl_h = yes; then
29052
29053                 found_gl=0
29054
29055                 echo "$as_me:$LINENO: checking for -lGL" >&5
29056 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29057
29058 ac_find_libraries=
29059 for ac_dir in $SEARCH_LIB /usr/lib;
29060   do
29061     for ac_extension in a so sl dylib; do
29062       if test -f "$ac_dir/libGL.$ac_extension"; then
29063         ac_find_libraries=$ac_dir
29064         break 2
29065       fi
29066     done
29067   done
29068
29069                 if test "$ac_find_libraries" != "" ; then
29070                     echo "$as_me:$LINENO: result: yes" >&5
29071 echo "${ECHO_T}yes" >&6
29072
29073
29074   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29075   result=$?
29076   if test $result = 0; then
29077     ac_path_to_link=""
29078   else
29079     ac_path_to_link=" -L$ac_find_libraries"
29080   fi
29081
29082                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
29083                         LDFLAGS_GL="$ac_path_to_link"
29084                     fi
29085
29086                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
29087 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
29088
29089 ac_find_libraries=
29090 for ac_dir in $SEARCH_LIB /usr/lib;
29091   do
29092     for ac_extension in a so sl dylib; do
29093       if test -f "$ac_dir/libGLU.$ac_extension"; then
29094         ac_find_libraries=$ac_dir
29095         break 2
29096       fi
29097     done
29098   done
29099
29100                     if test "$ac_find_libraries" != "" ; then
29101
29102   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29103   result=$?
29104   if test $result = 0; then
29105     ac_path_to_link=""
29106   else
29107     ac_path_to_link=" -L$ac_find_libraries"
29108   fi
29109
29110                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
29111                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
29112                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29113                         fi
29114
29115                         found_gl=1
29116                         OPENGL_LIBS="-lGL -lGLU"
29117                         echo "$as_me:$LINENO: result: yes" >&5
29118 echo "${ECHO_T}yes" >&6
29119                     else
29120                         echo "$as_me:$LINENO: result: no" >&5
29121 echo "${ECHO_T}no" >&6
29122                     fi
29123                 else
29124                     echo "$as_me:$LINENO: result: no" >&5
29125 echo "${ECHO_T}no" >&6
29126                 fi
29127
29128                 if test "$found_gl" != 1; then
29129                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29130 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29131
29132 ac_find_libraries=
29133 for ac_dir in $SEARCH_LIB /usr/lib;
29134   do
29135     for ac_extension in a so sl dylib; do
29136       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29137         ac_find_libraries=$ac_dir
29138         break 2
29139       fi
29140     done
29141   done
29142
29143                     if test "$ac_find_libraries" != "" ; then
29144
29145   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29146   result=$?
29147   if test $result = 0; then
29148     ac_path_to_link=""
29149   else
29150     ac_path_to_link=" -L$ac_find_libraries"
29151   fi
29152
29153                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29154                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
29155                         echo "$as_me:$LINENO: result: yes" >&5
29156 echo "${ECHO_T}yes" >&6
29157                     else
29158                         echo "$as_me:$LINENO: result: no" >&5
29159 echo "${ECHO_T}no" >&6
29160                     fi
29161                 fi
29162
29163 fi
29164
29165
29166
29167         if test "x$OPENGL_LIBS" = "x"; then
29168                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29169 echo "$as_me: error: OpenGL libraries not available" >&2;}
29170    { (exit 1); exit 1; }; }
29171         fi
29172     fi
29173
29174     if test "$wxUSE_OPENGL" = "yes"; then
29175         USE_OPENGL=1
29176         cat >>confdefs.h <<\_ACEOF
29177 #define wxUSE_OPENGL 1
29178 _ACEOF
29179
29180         cat >>confdefs.h <<\_ACEOF
29181 #define wxUSE_GLCANVAS 1
29182 _ACEOF
29183
29184         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29185     fi
29186 fi
29187
29188
29189 if test -n "$TOOLKIT" ; then
29190     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29191 fi
29192
29193
29194
29195 if test "$wxUSE_SHARED" = "yes"; then
29196     case "${host}" in
29197       *-pc-msdosdjgpp )
29198                 wxUSE_SHARED=no
29199         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29200 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29201       ;;
29202     esac
29203 fi
29204
29205 if test "$wxUSE_SHARED" = "yes"; then
29206
29207
29208   found_versioning=no
29209
29210
29211     if test $found_versioning = no ; then
29212       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29213 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29214 if test "${wx_cv_version_script+set}" = set; then
29215   echo $ECHO_N "(cached) $ECHO_C" >&6
29216 else
29217
29218         echo "VER_1 { *; };" >conftest.sym
29219         echo "int main() { return 0; }" >conftest.cpp
29220
29221         if { ac_try='
29222                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29223                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29225   (eval $ac_try) 2>&5
29226   ac_status=$?
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); }; } ; then
29229           if test -s conftest.stderr ; then
29230               wx_cv_version_script=no
29231           else
29232               wx_cv_version_script=yes
29233           fi
29234         else
29235           wx_cv_version_script=no
29236         fi
29237         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29238
29239 fi
29240 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29241 echo "${ECHO_T}$wx_cv_version_script" >&6
29242       if test $wx_cv_version_script = yes ; then
29243         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29244       fi
29245   fi
29246
29247
29248     case "${host}" in
29249       *-*-linux* | *-*-gnu* )
29250         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
29251         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
29252         ;;
29253
29254       *-*-solaris2* )
29255         if test "$GCC" = yes ; then
29256                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29257
29258                                     saveLdflags="$LDFLAGS"
29259             LDFLAGS="$saveLdflags -Wl,-rpath,/"
29260             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29261 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29262             cat >conftest.$ac_ext <<_ACEOF
29263 /* confdefs.h.  */
29264 _ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h.  */
29268
29269 int
29270 main ()
29271 {
29272
29273   ;
29274   return 0;
29275 }
29276 _ACEOF
29277 rm -f conftest.$ac_objext conftest$ac_exeext
29278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29279   (eval $ac_link) 2>conftest.er1
29280   ac_status=$?
29281   grep -v '^ *+' conftest.er1 >conftest.err
29282   rm -f conftest.er1
29283   cat conftest.err >&5
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); } &&
29286          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29288   (eval $ac_try) 2>&5
29289   ac_status=$?
29290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291   (exit $ac_status); }; } &&
29292          { ac_try='test -s conftest$ac_exeext'
29293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294   (eval $ac_try) 2>&5
29295   ac_status=$?
29296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297   (exit $ac_status); }; }; then
29298
29299                     echo "$as_me:$LINENO: result: yes" >&5
29300 echo "${ECHO_T}yes" >&6
29301                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
29302                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
29303
29304 else
29305   echo "$as_me: failed program was:" >&5
29306 sed 's/^/| /' conftest.$ac_ext >&5
29307
29308
29309                     echo "$as_me:$LINENO: result: no" >&5
29310 echo "${ECHO_T}no" >&6
29311                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29312 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29313                     LDFLAGS="$saveLdflags -Wl,-R,/"
29314                     cat >conftest.$ac_ext <<_ACEOF
29315 /* confdefs.h.  */
29316 _ACEOF
29317 cat confdefs.h >>conftest.$ac_ext
29318 cat >>conftest.$ac_ext <<_ACEOF
29319 /* end confdefs.h.  */
29320
29321 int
29322 main ()
29323 {
29324
29325   ;
29326   return 0;
29327 }
29328 _ACEOF
29329 rm -f conftest.$ac_objext conftest$ac_exeext
29330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29331   (eval $ac_link) 2>conftest.er1
29332   ac_status=$?
29333   grep -v '^ *+' conftest.er1 >conftest.err
29334   rm -f conftest.er1
29335   cat conftest.err >&5
29336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337   (exit $ac_status); } &&
29338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29340   (eval $ac_try) 2>&5
29341   ac_status=$?
29342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343   (exit $ac_status); }; } &&
29344          { ac_try='test -s conftest$ac_exeext'
29345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29346   (eval $ac_try) 2>&5
29347   ac_status=$?
29348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349   (exit $ac_status); }; }; then
29350
29351                             echo "$as_me:$LINENO: result: yes" >&5
29352 echo "${ECHO_T}yes" >&6
29353                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29354                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
29355
29356 else
29357   echo "$as_me: failed program was:" >&5
29358 sed 's/^/| /' conftest.$ac_ext >&5
29359
29360
29361                             echo "$as_me:$LINENO: result: no" >&5
29362 echo "${ECHO_T}no" >&6
29363
29364 fi
29365 rm -f conftest.err conftest.$ac_objext \
29366       conftest$ac_exeext conftest.$ac_ext
29367
29368 fi
29369 rm -f conftest.err conftest.$ac_objext \
29370       conftest$ac_exeext conftest.$ac_ext
29371             LDFLAGS="$saveLdflags"
29372         else
29373             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
29374             WXCONFIG_RPATH="-R\$libdir"
29375         fi
29376       ;;
29377
29378       powerpc-*-darwin* )
29379         SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29380         cat <<EOF >change-install-names
29381 #!/bin/sh
29382 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29383 inst_cmd="install_name_tool "
29384 for i in \${libnames} ; do
29385     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29386 done
29387 \${inst_cmd} \${3}
29388 EOF
29389         chmod +x change-install-names
29390       ;;
29391
29392       *-*-cygwin* | *-*-mingw32* )
29393         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29394         ;;
29395
29396       *-*-hpux* )
29397         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29398         WXCONFIG_RPATH="-Wl,+b,\$libdir"
29399         ;;
29400
29401     esac
29402
29403     if test $wxUSE_RPATH = "no"; then
29404         SAMPLES_RPATH_FLAG=''
29405         SAMPLES_RPATH_POSTLINK=''
29406         WXCONFIG_RPATH=''
29407     fi
29408
29409     SHARED=1
29410
29411 else
29412
29413     config_linkage_component="-static"
29414     SHARED=0
29415
29416 fi
29417
29418
29419 UNICODE=0
29420 lib_unicode_suffix=
29421 WX_CHARTYPE="ansi"
29422 if test "$wxUSE_UNICODE" = "yes"; then
29423     lib_unicode_suffix=u
29424     WX_CHARTYPE="unicode"
29425     UNICODE=1
29426 fi
29427
29428 lib_debug_suffix=
29429 WX_DEBUGTYPE="release"
29430 DEBUG_FLAG=0
29431 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29432     lib_debug_suffix=d
29433     WX_DEBUGTYPE="debug"
29434     DEBUG_FLAG=1
29435 fi
29436
29437 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29438 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
29439
29440 DEBUG_INFO=0
29441 if test "$wxUSE_DEBUG_INFO" = "yes"; then
29442     DEBUG_INFO=1
29443 fi
29444
29445 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
29446
29447 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
29448
29449 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
29450
29451 if test "$cross_compiling" = "yes"; then
29452     HOST_SUFFIX="-$host_alias"
29453     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29454     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
29455 fi
29456
29457 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29458 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29459
29460
29461
29462 if test "$wxUSE_COCOA" = 1; then
29463
29464
29465     ac_ext=c
29466 ac_cpp='$CPP $CPPFLAGS'
29467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29470
29471 ac_ext=m
29472
29473     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29474 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29475     cat >conftest.$ac_ext <<_ACEOF
29476 /* confdefs.h.  */
29477 _ACEOF
29478 cat confdefs.h >>conftest.$ac_ext
29479 cat >>conftest.$ac_ext <<_ACEOF
29480 /* end confdefs.h.  */
29481 #include <AppKit/NSEvent.h>
29482 #include <CoreFoundation/CoreFoundation.h>
29483
29484 int
29485 main ()
29486 {
29487
29488   ;
29489   return 0;
29490 }
29491 _ACEOF
29492 rm -f conftest.$ac_objext
29493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29494   (eval $ac_compile) 2>conftest.er1
29495   ac_status=$?
29496   grep -v '^ *+' conftest.er1 >conftest.err
29497   rm -f conftest.er1
29498   cat conftest.err >&5
29499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500   (exit $ac_status); } &&
29501          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29503   (eval $ac_try) 2>&5
29504   ac_status=$?
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); }; } &&
29507          { ac_try='test -s conftest.$ac_objext'
29508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509   (eval $ac_try) 2>&5
29510   ac_status=$?
29511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); }; }; then
29513   echo "$as_me:$LINENO: result: no" >&5
29514 echo "${ECHO_T}no" >&6
29515 else
29516   echo "$as_me: failed program was:" >&5
29517 sed 's/^/| /' conftest.$ac_ext >&5
29518
29519 echo "$as_me:$LINENO: result: yes" >&5
29520 echo "${ECHO_T}yes" >&6
29521         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29522 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29523         cat >conftest.$ac_ext <<_ACEOF
29524 /* confdefs.h.  */
29525 _ACEOF
29526 cat confdefs.h >>conftest.$ac_ext
29527 cat >>conftest.$ac_ext <<_ACEOF
29528 /* end confdefs.h.  */
29529 #define __Point__ 1
29530 #include <AppKit/NSEvent.h>
29531 #include <CoreFoundation/CoreFoundation.h>
29532
29533 int
29534 main ()
29535 {
29536
29537   ;
29538   return 0;
29539 }
29540 _ACEOF
29541 rm -f conftest.$ac_objext
29542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29543   (eval $ac_compile) 2>conftest.er1
29544   ac_status=$?
29545   grep -v '^ *+' conftest.er1 >conftest.err
29546   rm -f conftest.er1
29547   cat conftest.err >&5
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); } &&
29550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552   (eval $ac_try) 2>&5
29553   ac_status=$?
29554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555   (exit $ac_status); }; } &&
29556          { ac_try='test -s conftest.$ac_objext'
29557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558   (eval $ac_try) 2>&5
29559   ac_status=$?
29560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561   (exit $ac_status); }; }; then
29562   echo "$as_me:$LINENO: result: yes" >&5
29563 echo "${ECHO_T}yes" >&6
29564             cat >>confdefs.h <<\_ACEOF
29565 #define __Point__ 1
29566 _ACEOF
29567
29568
29569 else
29570   echo "$as_me: failed program was:" >&5
29571 sed 's/^/| /' conftest.$ac_ext >&5
29572
29573 { { echo "$as_me:$LINENO: error: no
29574 See \`config.log' for more details." >&5
29575 echo "$as_me: error: no
29576 See \`config.log' for more details." >&2;}
29577    { (exit 1); exit 1; }; }
29578
29579 fi
29580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29581
29582 fi
29583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29584     ac_ext=c
29585 ac_cpp='$CPP $CPPFLAGS'
29586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29589
29590 fi
29591
29592 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
29593             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29594     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
29595
29596         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
29597
29598     # Extract the first word of "Rez", so it can be a program name with args.
29599 set dummy Rez; ac_word=$2
29600 echo "$as_me:$LINENO: checking for $ac_word" >&5
29601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29602 if test "${ac_cv_prog_RESCOMP+set}" = set; then
29603   echo $ECHO_N "(cached) $ECHO_C" >&6
29604 else
29605   if test -n "$RESCOMP"; then
29606   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29607 else
29608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29609 for as_dir in $PATH
29610 do
29611   IFS=$as_save_IFS
29612   test -z "$as_dir" && as_dir=.
29613   for ac_exec_ext in '' $ac_executable_extensions; do
29614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29615     ac_cv_prog_RESCOMP="Rez"
29616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29617     break 2
29618   fi
29619 done
29620 done
29621
29622   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29623 fi
29624 fi
29625 RESCOMP=$ac_cv_prog_RESCOMP
29626 if test -n "$RESCOMP"; then
29627   echo "$as_me:$LINENO: result: $RESCOMP" >&5
29628 echo "${ECHO_T}$RESCOMP" >&6
29629 else
29630   echo "$as_me:$LINENO: result: no" >&5
29631 echo "${ECHO_T}no" >&6
29632 fi
29633
29634     # Extract the first word of "DeRez", so it can be a program name with args.
29635 set dummy DeRez; ac_word=$2
29636 echo "$as_me:$LINENO: checking for $ac_word" >&5
29637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29638 if test "${ac_cv_prog_DEREZ+set}" = set; then
29639   echo $ECHO_N "(cached) $ECHO_C" >&6
29640 else
29641   if test -n "$DEREZ"; then
29642   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29643 else
29644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29645 for as_dir in $PATH
29646 do
29647   IFS=$as_save_IFS
29648   test -z "$as_dir" && as_dir=.
29649   for ac_exec_ext in '' $ac_executable_extensions; do
29650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29651     ac_cv_prog_DEREZ="DeRez"
29652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29653     break 2
29654   fi
29655 done
29656 done
29657
29658   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29659 fi
29660 fi
29661 DEREZ=$ac_cv_prog_DEREZ
29662 if test -n "$DEREZ"; then
29663   echo "$as_me:$LINENO: result: $DEREZ" >&5
29664 echo "${ECHO_T}$DEREZ" >&6
29665 else
29666   echo "$as_me:$LINENO: result: no" >&5
29667 echo "${ECHO_T}no" >&6
29668 fi
29669
29670     # Extract the first word of "SetFile", so it can be a program name with args.
29671 set dummy SetFile; ac_word=$2
29672 echo "$as_me:$LINENO: checking for $ac_word" >&5
29673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29674 if test "${ac_cv_prog_SETFILE+set}" = set; then
29675   echo $ECHO_N "(cached) $ECHO_C" >&6
29676 else
29677   if test -n "$SETFILE"; then
29678   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29679 else
29680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29681 for as_dir in $PATH
29682 do
29683   IFS=$as_save_IFS
29684   test -z "$as_dir" && as_dir=.
29685   for ac_exec_ext in '' $ac_executable_extensions; do
29686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29687     ac_cv_prog_SETFILE="SetFile"
29688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29689     break 2
29690   fi
29691 done
29692 done
29693
29694   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29695 fi
29696 fi
29697 SETFILE=$ac_cv_prog_SETFILE
29698 if test -n "$SETFILE"; then
29699   echo "$as_me:$LINENO: result: $SETFILE" >&5
29700 echo "${ECHO_T}$SETFILE" >&6
29701 else
29702   echo "$as_me:$LINENO: result: no" >&5
29703 echo "${ECHO_T}no" >&6
29704 fi
29705
29706
29707     MACSETFILE="\$(SETFILE)"
29708
29709             if test "$wxUSE_MAC" = 1; then
29710         MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29711
29712                         MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29713     else
29714         MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29715         MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29716     fi
29717 else
29718         MACSETFILE="@true"
29719     MACRESWXCONFIG="@true"
29720
29721         if test "$wxUSE_PM" = 1; then
29722         MACRESCOMP="emxbind -ep"
29723     else
29724         MACRESCOMP="@true"
29725     fi
29726 fi
29727
29728
29729
29730 echo "$as_me:$LINENO: checking for mode_t" >&5
29731 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29732 if test "${ac_cv_type_mode_t+set}" = set; then
29733   echo $ECHO_N "(cached) $ECHO_C" >&6
29734 else
29735   cat >conftest.$ac_ext <<_ACEOF
29736 /* confdefs.h.  */
29737 _ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h.  */
29741 $ac_includes_default
29742 int
29743 main ()
29744 {
29745 if ((mode_t *) 0)
29746   return 0;
29747 if (sizeof (mode_t))
29748   return 0;
29749   ;
29750   return 0;
29751 }
29752 _ACEOF
29753 rm -f conftest.$ac_objext
29754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29755   (eval $ac_compile) 2>conftest.er1
29756   ac_status=$?
29757   grep -v '^ *+' conftest.er1 >conftest.err
29758   rm -f conftest.er1
29759   cat conftest.err >&5
29760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761   (exit $ac_status); } &&
29762          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29764   (eval $ac_try) 2>&5
29765   ac_status=$?
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); }; } &&
29768          { ac_try='test -s conftest.$ac_objext'
29769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770   (eval $ac_try) 2>&5
29771   ac_status=$?
29772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773   (exit $ac_status); }; }; then
29774   ac_cv_type_mode_t=yes
29775 else
29776   echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29778
29779 ac_cv_type_mode_t=no
29780 fi
29781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29782 fi
29783 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29784 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29785 if test $ac_cv_type_mode_t = yes; then
29786   :
29787 else
29788
29789 cat >>confdefs.h <<_ACEOF
29790 #define mode_t int
29791 _ACEOF
29792
29793 fi
29794
29795 echo "$as_me:$LINENO: checking for off_t" >&5
29796 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29797 if test "${ac_cv_type_off_t+set}" = set; then
29798   echo $ECHO_N "(cached) $ECHO_C" >&6
29799 else
29800   cat >conftest.$ac_ext <<_ACEOF
29801 /* confdefs.h.  */
29802 _ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h.  */
29806 $ac_includes_default
29807 int
29808 main ()
29809 {
29810 if ((off_t *) 0)
29811   return 0;
29812 if (sizeof (off_t))
29813   return 0;
29814   ;
29815   return 0;
29816 }
29817 _ACEOF
29818 rm -f conftest.$ac_objext
29819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29820   (eval $ac_compile) 2>conftest.er1
29821   ac_status=$?
29822   grep -v '^ *+' conftest.er1 >conftest.err
29823   rm -f conftest.er1
29824   cat conftest.err >&5
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); } &&
29827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29829   (eval $ac_try) 2>&5
29830   ac_status=$?
29831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832   (exit $ac_status); }; } &&
29833          { ac_try='test -s conftest.$ac_objext'
29834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29835   (eval $ac_try) 2>&5
29836   ac_status=$?
29837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838   (exit $ac_status); }; }; then
29839   ac_cv_type_off_t=yes
29840 else
29841   echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29843
29844 ac_cv_type_off_t=no
29845 fi
29846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29847 fi
29848 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29849 echo "${ECHO_T}$ac_cv_type_off_t" >&6
29850 if test $ac_cv_type_off_t = yes; then
29851   :
29852 else
29853
29854 cat >>confdefs.h <<_ACEOF
29855 #define off_t long
29856 _ACEOF
29857
29858 fi
29859
29860 echo "$as_me:$LINENO: checking for pid_t" >&5
29861 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29862 if test "${ac_cv_type_pid_t+set}" = set; then
29863   echo $ECHO_N "(cached) $ECHO_C" >&6
29864 else
29865   cat >conftest.$ac_ext <<_ACEOF
29866 /* confdefs.h.  */
29867 _ACEOF
29868 cat confdefs.h >>conftest.$ac_ext
29869 cat >>conftest.$ac_ext <<_ACEOF
29870 /* end confdefs.h.  */
29871 $ac_includes_default
29872 int
29873 main ()
29874 {
29875 if ((pid_t *) 0)
29876   return 0;
29877 if (sizeof (pid_t))
29878   return 0;
29879   ;
29880   return 0;
29881 }
29882 _ACEOF
29883 rm -f conftest.$ac_objext
29884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29885   (eval $ac_compile) 2>conftest.er1
29886   ac_status=$?
29887   grep -v '^ *+' conftest.er1 >conftest.err
29888   rm -f conftest.er1
29889   cat conftest.err >&5
29890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891   (exit $ac_status); } &&
29892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894   (eval $ac_try) 2>&5
29895   ac_status=$?
29896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897   (exit $ac_status); }; } &&
29898          { ac_try='test -s conftest.$ac_objext'
29899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900   (eval $ac_try) 2>&5
29901   ac_status=$?
29902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903   (exit $ac_status); }; }; then
29904   ac_cv_type_pid_t=yes
29905 else
29906   echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29908
29909 ac_cv_type_pid_t=no
29910 fi
29911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29912 fi
29913 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29914 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29915 if test $ac_cv_type_pid_t = yes; then
29916   :
29917 else
29918
29919 cat >>confdefs.h <<_ACEOF
29920 #define pid_t int
29921 _ACEOF
29922
29923 fi
29924
29925 echo "$as_me:$LINENO: checking for size_t" >&5
29926 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29927 if test "${ac_cv_type_size_t+set}" = set; then
29928   echo $ECHO_N "(cached) $ECHO_C" >&6
29929 else
29930   cat >conftest.$ac_ext <<_ACEOF
29931 /* confdefs.h.  */
29932 _ACEOF
29933 cat confdefs.h >>conftest.$ac_ext
29934 cat >>conftest.$ac_ext <<_ACEOF
29935 /* end confdefs.h.  */
29936 $ac_includes_default
29937 int
29938 main ()
29939 {
29940 if ((size_t *) 0)
29941   return 0;
29942 if (sizeof (size_t))
29943   return 0;
29944   ;
29945   return 0;
29946 }
29947 _ACEOF
29948 rm -f conftest.$ac_objext
29949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29950   (eval $ac_compile) 2>conftest.er1
29951   ac_status=$?
29952   grep -v '^ *+' conftest.er1 >conftest.err
29953   rm -f conftest.er1
29954   cat conftest.err >&5
29955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956   (exit $ac_status); } &&
29957          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29959   (eval $ac_try) 2>&5
29960   ac_status=$?
29961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962   (exit $ac_status); }; } &&
29963          { ac_try='test -s conftest.$ac_objext'
29964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29965   (eval $ac_try) 2>&5
29966   ac_status=$?
29967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968   (exit $ac_status); }; }; then
29969   ac_cv_type_size_t=yes
29970 else
29971   echo "$as_me: failed program was:" >&5
29972 sed 's/^/| /' conftest.$ac_ext >&5
29973
29974 ac_cv_type_size_t=no
29975 fi
29976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29977 fi
29978 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29979 echo "${ECHO_T}$ac_cv_type_size_t" >&6
29980 if test $ac_cv_type_size_t = yes; then
29981   :
29982 else
29983
29984 cat >>confdefs.h <<_ACEOF
29985 #define size_t unsigned
29986 _ACEOF
29987
29988 fi
29989
29990 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29991 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29992 if test "${ac_cv_type_uid_t+set}" = set; then
29993   echo $ECHO_N "(cached) $ECHO_C" >&6
29994 else
29995   cat >conftest.$ac_ext <<_ACEOF
29996 /* confdefs.h.  */
29997 _ACEOF
29998 cat confdefs.h >>conftest.$ac_ext
29999 cat >>conftest.$ac_ext <<_ACEOF
30000 /* end confdefs.h.  */
30001 #include <sys/types.h>
30002
30003 _ACEOF
30004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30005   $EGREP "uid_t" >/dev/null 2>&1; then
30006   ac_cv_type_uid_t=yes
30007 else
30008   ac_cv_type_uid_t=no
30009 fi
30010 rm -f conftest*
30011
30012 fi
30013 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30014 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30015 if test $ac_cv_type_uid_t = no; then
30016
30017 cat >>confdefs.h <<\_ACEOF
30018 #define uid_t int
30019 _ACEOF
30020
30021
30022 cat >>confdefs.h <<\_ACEOF
30023 #define gid_t int
30024 _ACEOF
30025
30026 fi
30027
30028
30029 echo "$as_me:$LINENO: checking for ssize_t" >&5
30030 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30031 if test "${ac_cv_type_ssize_t+set}" = set; then
30032   echo $ECHO_N "(cached) $ECHO_C" >&6
30033 else
30034   cat >conftest.$ac_ext <<_ACEOF
30035 /* confdefs.h.  */
30036 _ACEOF
30037 cat confdefs.h >>conftest.$ac_ext
30038 cat >>conftest.$ac_ext <<_ACEOF
30039 /* end confdefs.h.  */
30040 $ac_includes_default
30041 int
30042 main ()
30043 {
30044 if ((ssize_t *) 0)
30045   return 0;
30046 if (sizeof (ssize_t))
30047   return 0;
30048   ;
30049   return 0;
30050 }
30051 _ACEOF
30052 rm -f conftest.$ac_objext
30053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30054   (eval $ac_compile) 2>conftest.er1
30055   ac_status=$?
30056   grep -v '^ *+' conftest.er1 >conftest.err
30057   rm -f conftest.er1
30058   cat conftest.err >&5
30059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060   (exit $ac_status); } &&
30061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30063   (eval $ac_try) 2>&5
30064   ac_status=$?
30065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066   (exit $ac_status); }; } &&
30067          { ac_try='test -s conftest.$ac_objext'
30068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30069   (eval $ac_try) 2>&5
30070   ac_status=$?
30071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072   (exit $ac_status); }; }; then
30073   ac_cv_type_ssize_t=yes
30074 else
30075   echo "$as_me: failed program was:" >&5
30076 sed 's/^/| /' conftest.$ac_ext >&5
30077
30078 ac_cv_type_ssize_t=no
30079 fi
30080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30081 fi
30082 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30083 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30084 if test $ac_cv_type_ssize_t = yes; then
30085
30086 cat >>confdefs.h <<_ACEOF
30087 #define HAVE_SSIZE_T 1
30088 _ACEOF
30089
30090
30091 fi
30092
30093
30094
30095
30096 ac_ext=cc
30097 ac_cpp='$CXXCPP $CPPFLAGS'
30098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30101
30102 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30103 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30104 if test "${wx_cv_size_t_is_uint+set}" = set; then
30105   echo $ECHO_N "(cached) $ECHO_C" >&6
30106 else
30107
30108                             cat >conftest.$ac_ext <<_ACEOF
30109 /* confdefs.h.  */
30110 _ACEOF
30111 cat confdefs.h >>conftest.$ac_ext
30112 cat >>conftest.$ac_ext <<_ACEOF
30113 /* end confdefs.h.  */
30114 #include <stddef.h>
30115 int
30116 main ()
30117 {
30118
30119             return 0; }
30120
30121             struct Foo { void foo(size_t); void foo(unsigned int); };
30122
30123             int bar() {
30124
30125   ;
30126   return 0;
30127 }
30128 _ACEOF
30129 rm -f conftest.$ac_objext
30130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30131   (eval $ac_compile) 2>conftest.er1
30132   ac_status=$?
30133   grep -v '^ *+' conftest.er1 >conftest.err
30134   rm -f conftest.er1
30135   cat conftest.err >&5
30136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137   (exit $ac_status); } &&
30138          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30140   (eval $ac_try) 2>&5
30141   ac_status=$?
30142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143   (exit $ac_status); }; } &&
30144          { ac_try='test -s conftest.$ac_objext'
30145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30146   (eval $ac_try) 2>&5
30147   ac_status=$?
30148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30149   (exit $ac_status); }; }; then
30150   wx_cv_size_t_is_uint=no
30151 else
30152   echo "$as_me: failed program was:" >&5
30153 sed 's/^/| /' conftest.$ac_ext >&5
30154
30155 wx_cv_size_t_is_uint=yes
30156
30157 fi
30158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30159
30160
30161 fi
30162 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30163 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30164
30165 if test "$wx_cv_size_t_is_uint" = "yes"; then
30166     cat >>confdefs.h <<\_ACEOF
30167 #define wxSIZE_T_IS_UINT 1
30168 _ACEOF
30169
30170 else
30171     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30172 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30173 if test "${wx_cv_size_t_is_ulong+set}" = set; then
30174   echo $ECHO_N "(cached) $ECHO_C" >&6
30175 else
30176   cat >conftest.$ac_ext <<_ACEOF
30177 /* confdefs.h.  */
30178 _ACEOF
30179 cat confdefs.h >>conftest.$ac_ext
30180 cat >>conftest.$ac_ext <<_ACEOF
30181 /* end confdefs.h.  */
30182 #include <stddef.h>
30183 int
30184 main ()
30185 {
30186
30187                 return 0; }
30188
30189                 struct Foo { void foo(size_t); void foo(unsigned long); };
30190
30191                 int bar() {
30192
30193   ;
30194   return 0;
30195 }
30196 _ACEOF
30197 rm -f conftest.$ac_objext
30198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30199   (eval $ac_compile) 2>conftest.er1
30200   ac_status=$?
30201   grep -v '^ *+' conftest.er1 >conftest.err
30202   rm -f conftest.er1
30203   cat conftest.err >&5
30204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205   (exit $ac_status); } &&
30206          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30208   (eval $ac_try) 2>&5
30209   ac_status=$?
30210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211   (exit $ac_status); }; } &&
30212          { ac_try='test -s conftest.$ac_objext'
30213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30214   (eval $ac_try) 2>&5
30215   ac_status=$?
30216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217   (exit $ac_status); }; }; then
30218   wx_cv_size_t_is_ulong=no
30219 else
30220   echo "$as_me: failed program was:" >&5
30221 sed 's/^/| /' conftest.$ac_ext >&5
30222
30223 wx_cv_size_t_is_ulong=yes
30224
30225 fi
30226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30227
30228 fi
30229 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30230 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30231
30232     if test "$wx_cv_size_t_is_ulong" = "yes"; then
30233         cat >>confdefs.h <<\_ACEOF
30234 #define wxSIZE_T_IS_ULONG 1
30235 _ACEOF
30236
30237     fi
30238 fi
30239
30240 ac_ext=c
30241 ac_cpp='$CPP $CPPFLAGS'
30242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30245
30246
30247
30248 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30249 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30250 if test "${wx_cv_struct_pw_gecos+set}" = set; then
30251   echo $ECHO_N "(cached) $ECHO_C" >&6
30252 else
30253
30254         cat >conftest.$ac_ext <<_ACEOF
30255 /* confdefs.h.  */
30256 _ACEOF
30257 cat confdefs.h >>conftest.$ac_ext
30258 cat >>conftest.$ac_ext <<_ACEOF
30259 /* end confdefs.h.  */
30260 #include <pwd.h>
30261 int
30262 main ()
30263 {
30264
30265                 char *p;
30266                 struct passwd *pw;
30267                 p = pw->pw_gecos;
30268
30269   ;
30270   return 0;
30271 }
30272 _ACEOF
30273 rm -f conftest.$ac_objext
30274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30275   (eval $ac_compile) 2>conftest.er1
30276   ac_status=$?
30277   grep -v '^ *+' conftest.er1 >conftest.err
30278   rm -f conftest.er1
30279   cat conftest.err >&5
30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); } &&
30282          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30284   (eval $ac_try) 2>&5
30285   ac_status=$?
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); }; } &&
30288          { ac_try='test -s conftest.$ac_objext'
30289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30290   (eval $ac_try) 2>&5
30291   ac_status=$?
30292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293   (exit $ac_status); }; }; then
30294
30295                 wx_cv_struct_pw_gecos=yes
30296
30297 else
30298   echo "$as_me: failed program was:" >&5
30299 sed 's/^/| /' conftest.$ac_ext >&5
30300
30301
30302                 wx_cv_struct_pw_gecos=no
30303
30304
30305 fi
30306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30307
30308
30309 fi
30310 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30311 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30312
30313 if test "$wx_cv_struct_pw_gecos" = "yes"; then
30314     cat >>confdefs.h <<\_ACEOF
30315 #define HAVE_PW_GECOS 1
30316 _ACEOF
30317
30318 fi
30319
30320
30321 if test "$ac_cv_sizeof_wchar_t" != "0"; then
30322     cat >>confdefs.h <<\_ACEOF
30323 #define wxUSE_WCHAR_T 1
30324 _ACEOF
30325
30326
30327         WCSLEN_FOUND=0
30328     WCHAR_LINK=
30329
30330 for ac_func in wcslen
30331 do
30332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30333 echo "$as_me:$LINENO: checking for $ac_func" >&5
30334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30335 if eval "test \"\${$as_ac_var+set}\" = set"; then
30336   echo $ECHO_N "(cached) $ECHO_C" >&6
30337 else
30338   cat >conftest.$ac_ext <<_ACEOF
30339 /* confdefs.h.  */
30340 _ACEOF
30341 cat confdefs.h >>conftest.$ac_ext
30342 cat >>conftest.$ac_ext <<_ACEOF
30343 /* end confdefs.h.  */
30344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30346 #define $ac_func innocuous_$ac_func
30347
30348 /* System header to define __stub macros and hopefully few prototypes,
30349     which can conflict with char $ac_func (); below.
30350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30351     <limits.h> exists even on freestanding compilers.  */
30352
30353 #ifdef __STDC__
30354 # include <limits.h>
30355 #else
30356 # include <assert.h>
30357 #endif
30358
30359 #undef $ac_func
30360
30361 /* Override any gcc2 internal prototype to avoid an error.  */
30362 #ifdef __cplusplus
30363 extern "C"
30364 {
30365 #endif
30366 /* We use char because int might match the return type of a gcc2
30367    builtin and then its argument prototype would still apply.  */
30368 char $ac_func ();
30369 /* The GNU C library defines this for functions which it implements
30370     to always fail with ENOSYS.  Some functions are actually named
30371     something starting with __ and the normal name is an alias.  */
30372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30373 choke me
30374 #else
30375 char (*f) () = $ac_func;
30376 #endif
30377 #ifdef __cplusplus
30378 }
30379 #endif
30380
30381 int
30382 main ()
30383 {
30384 return f != $ac_func;
30385   ;
30386   return 0;
30387 }
30388 _ACEOF
30389 rm -f conftest.$ac_objext conftest$ac_exeext
30390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30391   (eval $ac_link) 2>conftest.er1
30392   ac_status=$?
30393   grep -v '^ *+' conftest.er1 >conftest.err
30394   rm -f conftest.er1
30395   cat conftest.err >&5
30396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397   (exit $ac_status); } &&
30398          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30400   (eval $ac_try) 2>&5
30401   ac_status=$?
30402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403   (exit $ac_status); }; } &&
30404          { ac_try='test -s conftest$ac_exeext'
30405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30406   (eval $ac_try) 2>&5
30407   ac_status=$?
30408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409   (exit $ac_status); }; }; then
30410   eval "$as_ac_var=yes"
30411 else
30412   echo "$as_me: failed program was:" >&5
30413 sed 's/^/| /' conftest.$ac_ext >&5
30414
30415 eval "$as_ac_var=no"
30416 fi
30417 rm -f conftest.err conftest.$ac_objext \
30418       conftest$ac_exeext conftest.$ac_ext
30419 fi
30420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30422 if test `eval echo '${'$as_ac_var'}'` = yes; then
30423   cat >>confdefs.h <<_ACEOF
30424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30425 _ACEOF
30426  WCSLEN_FOUND=1
30427 fi
30428 done
30429
30430
30431     if test "$WCSLEN_FOUND" = 0; then
30432         if test "$TOOLKIT" = "MSW"; then
30433             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30434 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30435 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30436   echo $ECHO_N "(cached) $ECHO_C" >&6
30437 else
30438   ac_check_lib_save_LIBS=$LIBS
30439 LIBS="-lmsvcrt  $LIBS"
30440 cat >conftest.$ac_ext <<_ACEOF
30441 /* confdefs.h.  */
30442 _ACEOF
30443 cat confdefs.h >>conftest.$ac_ext
30444 cat >>conftest.$ac_ext <<_ACEOF
30445 /* end confdefs.h.  */
30446
30447 /* Override any gcc2 internal prototype to avoid an error.  */
30448 #ifdef __cplusplus
30449 extern "C"
30450 #endif
30451 /* We use char because int might match the return type of a gcc2
30452    builtin and then its argument prototype would still apply.  */
30453 char wcslen ();
30454 int
30455 main ()
30456 {
30457 wcslen ();
30458   ;
30459   return 0;
30460 }
30461 _ACEOF
30462 rm -f conftest.$ac_objext conftest$ac_exeext
30463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30464   (eval $ac_link) 2>conftest.er1
30465   ac_status=$?
30466   grep -v '^ *+' conftest.er1 >conftest.err
30467   rm -f conftest.er1
30468   cat conftest.err >&5
30469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470   (exit $ac_status); } &&
30471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473   (eval $ac_try) 2>&5
30474   ac_status=$?
30475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476   (exit $ac_status); }; } &&
30477          { ac_try='test -s conftest$ac_exeext'
30478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30479   (eval $ac_try) 2>&5
30480   ac_status=$?
30481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482   (exit $ac_status); }; }; then
30483   ac_cv_lib_msvcrt_wcslen=yes
30484 else
30485   echo "$as_me: failed program was:" >&5
30486 sed 's/^/| /' conftest.$ac_ext >&5
30487
30488 ac_cv_lib_msvcrt_wcslen=no
30489 fi
30490 rm -f conftest.err conftest.$ac_objext \
30491       conftest$ac_exeext conftest.$ac_ext
30492 LIBS=$ac_check_lib_save_LIBS
30493 fi
30494 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30495 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30496 if test $ac_cv_lib_msvcrt_wcslen = yes; then
30497   WCHAR_OK=1
30498 fi
30499
30500         else
30501             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30502 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30503 if test "${ac_cv_lib_w_wcslen+set}" = set; then
30504   echo $ECHO_N "(cached) $ECHO_C" >&6
30505 else
30506   ac_check_lib_save_LIBS=$LIBS
30507 LIBS="-lw  $LIBS"
30508 cat >conftest.$ac_ext <<_ACEOF
30509 /* confdefs.h.  */
30510 _ACEOF
30511 cat confdefs.h >>conftest.$ac_ext
30512 cat >>conftest.$ac_ext <<_ACEOF
30513 /* end confdefs.h.  */
30514
30515 /* Override any gcc2 internal prototype to avoid an error.  */
30516 #ifdef __cplusplus
30517 extern "C"
30518 #endif
30519 /* We use char because int might match the return type of a gcc2
30520    builtin and then its argument prototype would still apply.  */
30521 char wcslen ();
30522 int
30523 main ()
30524 {
30525 wcslen ();
30526   ;
30527   return 0;
30528 }
30529 _ACEOF
30530 rm -f conftest.$ac_objext conftest$ac_exeext
30531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30532   (eval $ac_link) 2>conftest.er1
30533   ac_status=$?
30534   grep -v '^ *+' conftest.er1 >conftest.err
30535   rm -f conftest.er1
30536   cat conftest.err >&5
30537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538   (exit $ac_status); } &&
30539          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30541   (eval $ac_try) 2>&5
30542   ac_status=$?
30543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30544   (exit $ac_status); }; } &&
30545          { ac_try='test -s conftest$ac_exeext'
30546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30547   (eval $ac_try) 2>&5
30548   ac_status=$?
30549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550   (exit $ac_status); }; }; then
30551   ac_cv_lib_w_wcslen=yes
30552 else
30553   echo "$as_me: failed program was:" >&5
30554 sed 's/^/| /' conftest.$ac_ext >&5
30555
30556 ac_cv_lib_w_wcslen=no
30557 fi
30558 rm -f conftest.err conftest.$ac_objext \
30559       conftest$ac_exeext conftest.$ac_ext
30560 LIBS=$ac_check_lib_save_LIBS
30561 fi
30562 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30563 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30564 if test $ac_cv_lib_w_wcslen = yes; then
30565
30566                             WCHAR_LINK=" -lw"
30567                             WCSLEN_FOUND=1
30568
30569 fi
30570
30571         fi
30572     fi
30573
30574     if test "$WCSLEN_FOUND" = 1; then
30575         cat >>confdefs.h <<\_ACEOF
30576 #define HAVE_WCSLEN 1
30577 _ACEOF
30578
30579     fi
30580
30581         if test "$USE_HPUX" = 1; then
30582         CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30583     fi
30584
30585
30586 for ac_func in wcsrtombs
30587 do
30588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30589 echo "$as_me:$LINENO: checking for $ac_func" >&5
30590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30591 if eval "test \"\${$as_ac_var+set}\" = set"; then
30592   echo $ECHO_N "(cached) $ECHO_C" >&6
30593 else
30594   cat >conftest.$ac_ext <<_ACEOF
30595 /* confdefs.h.  */
30596 _ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h.  */
30600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30602 #define $ac_func innocuous_$ac_func
30603
30604 /* System header to define __stub macros and hopefully few prototypes,
30605     which can conflict with char $ac_func (); below.
30606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30607     <limits.h> exists even on freestanding compilers.  */
30608
30609 #ifdef __STDC__
30610 # include <limits.h>
30611 #else
30612 # include <assert.h>
30613 #endif
30614
30615 #undef $ac_func
30616
30617 /* Override any gcc2 internal prototype to avoid an error.  */
30618 #ifdef __cplusplus
30619 extern "C"
30620 {
30621 #endif
30622 /* We use char because int might match the return type of a gcc2
30623    builtin and then its argument prototype would still apply.  */
30624 char $ac_func ();
30625 /* The GNU C library defines this for functions which it implements
30626     to always fail with ENOSYS.  Some functions are actually named
30627     something starting with __ and the normal name is an alias.  */
30628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30629 choke me
30630 #else
30631 char (*f) () = $ac_func;
30632 #endif
30633 #ifdef __cplusplus
30634 }
30635 #endif
30636
30637 int
30638 main ()
30639 {
30640 return f != $ac_func;
30641   ;
30642   return 0;
30643 }
30644 _ACEOF
30645 rm -f conftest.$ac_objext conftest$ac_exeext
30646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30647   (eval $ac_link) 2>conftest.er1
30648   ac_status=$?
30649   grep -v '^ *+' conftest.er1 >conftest.err
30650   rm -f conftest.er1
30651   cat conftest.err >&5
30652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653   (exit $ac_status); } &&
30654          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656   (eval $ac_try) 2>&5
30657   ac_status=$?
30658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659   (exit $ac_status); }; } &&
30660          { ac_try='test -s conftest$ac_exeext'
30661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30662   (eval $ac_try) 2>&5
30663   ac_status=$?
30664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665   (exit $ac_status); }; }; then
30666   eval "$as_ac_var=yes"
30667 else
30668   echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30670
30671 eval "$as_ac_var=no"
30672 fi
30673 rm -f conftest.err conftest.$ac_objext \
30674       conftest$ac_exeext conftest.$ac_ext
30675 fi
30676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30678 if test `eval echo '${'$as_ac_var'}'` = yes; then
30679   cat >>confdefs.h <<_ACEOF
30680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30681 _ACEOF
30682
30683 fi
30684 done
30685
30686 else
30687     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30688 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30689 fi
30690
30691
30692
30693 ac_ext=cc
30694 ac_cpp='$CXXCPP $CPPFLAGS'
30695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30698
30699
30700
30701 for ac_func in vsnprintf
30702 do
30703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30704 echo "$as_me:$LINENO: checking for $ac_func" >&5
30705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30706 if eval "test \"\${$as_ac_var+set}\" = set"; then
30707   echo $ECHO_N "(cached) $ECHO_C" >&6
30708 else
30709   cat >conftest.$ac_ext <<_ACEOF
30710 /* confdefs.h.  */
30711 _ACEOF
30712 cat confdefs.h >>conftest.$ac_ext
30713 cat >>conftest.$ac_ext <<_ACEOF
30714 /* end confdefs.h.  */
30715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30717 #define $ac_func innocuous_$ac_func
30718
30719 /* System header to define __stub macros and hopefully few prototypes,
30720     which can conflict with char $ac_func (); below.
30721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30722     <limits.h> exists even on freestanding compilers.  */
30723
30724 #ifdef __STDC__
30725 # include <limits.h>
30726 #else
30727 # include <assert.h>
30728 #endif
30729
30730 #undef $ac_func
30731
30732 /* Override any gcc2 internal prototype to avoid an error.  */
30733 #ifdef __cplusplus
30734 extern "C"
30735 {
30736 #endif
30737 /* We use char because int might match the return type of a gcc2
30738    builtin and then its argument prototype would still apply.  */
30739 char $ac_func ();
30740 /* The GNU C library defines this for functions which it implements
30741     to always fail with ENOSYS.  Some functions are actually named
30742     something starting with __ and the normal name is an alias.  */
30743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30744 choke me
30745 #else
30746 char (*f) () = $ac_func;
30747 #endif
30748 #ifdef __cplusplus
30749 }
30750 #endif
30751
30752 int
30753 main ()
30754 {
30755 return f != $ac_func;
30756   ;
30757   return 0;
30758 }
30759 _ACEOF
30760 rm -f conftest.$ac_objext conftest$ac_exeext
30761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30762   (eval $ac_link) 2>conftest.er1
30763   ac_status=$?
30764   grep -v '^ *+' conftest.er1 >conftest.err
30765   rm -f conftest.er1
30766   cat conftest.err >&5
30767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768   (exit $ac_status); } &&
30769          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30771   (eval $ac_try) 2>&5
30772   ac_status=$?
30773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774   (exit $ac_status); }; } &&
30775          { ac_try='test -s conftest$ac_exeext'
30776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30777   (eval $ac_try) 2>&5
30778   ac_status=$?
30779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780   (exit $ac_status); }; }; then
30781   eval "$as_ac_var=yes"
30782 else
30783   echo "$as_me: failed program was:" >&5
30784 sed 's/^/| /' conftest.$ac_ext >&5
30785
30786 eval "$as_ac_var=no"
30787 fi
30788 rm -f conftest.err conftest.$ac_objext \
30789       conftest$ac_exeext conftest.$ac_ext
30790 fi
30791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30793 if test `eval echo '${'$as_ac_var'}'` = yes; then
30794   cat >>confdefs.h <<_ACEOF
30795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30796 _ACEOF
30797
30798 fi
30799 done
30800
30801
30802 if test "$ac_cv_func_vsnprintf" = "yes"; then
30803         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30804 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30805 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30806   echo $ECHO_N "(cached) $ECHO_C" >&6
30807 else
30808
30809             cat >conftest.$ac_ext <<_ACEOF
30810 /* confdefs.h.  */
30811 _ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h.  */
30815
30816                     #include <stdio.h>
30817                     #include <stdarg.h>
30818
30819 int
30820 main ()
30821 {
30822
30823                     char *buf;
30824                     va_list ap;
30825                     vsnprintf(buf, 10u, "%s", ap);
30826
30827   ;
30828   return 0;
30829 }
30830 _ACEOF
30831 rm -f conftest.$ac_objext
30832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30833   (eval $ac_compile) 2>conftest.er1
30834   ac_status=$?
30835   grep -v '^ *+' conftest.er1 >conftest.err
30836   rm -f conftest.er1
30837   cat conftest.err >&5
30838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839   (exit $ac_status); } &&
30840          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30842   (eval $ac_try) 2>&5
30843   ac_status=$?
30844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845   (exit $ac_status); }; } &&
30846          { ac_try='test -s conftest.$ac_objext'
30847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30848   (eval $ac_try) 2>&5
30849   ac_status=$?
30850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851   (exit $ac_status); }; }; then
30852   wx_cv_func_vsnprintf_decl=yes
30853 else
30854   echo "$as_me: failed program was:" >&5
30855 sed 's/^/| /' conftest.$ac_ext >&5
30856
30857
30858                                                                                                                         cat >conftest.$ac_ext <<_ACEOF
30859 /* confdefs.h.  */
30860 _ACEOF
30861 cat confdefs.h >>conftest.$ac_ext
30862 cat >>conftest.$ac_ext <<_ACEOF
30863 /* end confdefs.h.  */
30864
30865                             #include <stdio.h>
30866                             #include <stdarg.h>
30867                             using namespace std;
30868
30869 int
30870 main ()
30871 {
30872
30873                             char *buf;
30874                             va_list ap;
30875                             vsnprintf(buf, 10u, "%s", ap);
30876
30877   ;
30878   return 0;
30879 }
30880 _ACEOF
30881 rm -f conftest.$ac_objext
30882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30883   (eval $ac_compile) 2>conftest.er1
30884   ac_status=$?
30885   grep -v '^ *+' conftest.er1 >conftest.err
30886   rm -f conftest.er1
30887   cat conftest.err >&5
30888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889   (exit $ac_status); } &&
30890          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30892   (eval $ac_try) 2>&5
30893   ac_status=$?
30894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895   (exit $ac_status); }; } &&
30896          { ac_try='test -s conftest.$ac_objext'
30897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30898   (eval $ac_try) 2>&5
30899   ac_status=$?
30900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901   (exit $ac_status); }; }; then
30902   wx_cv_func_vsnprintf_decl=yes
30903 else
30904   echo "$as_me: failed program was:" >&5
30905 sed 's/^/| /' conftest.$ac_ext >&5
30906
30907 wx_cv_func_vsnprintf_decl=no
30908
30909 fi
30910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30911
30912
30913 fi
30914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30915
30916
30917 fi
30918 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30919 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30920
30921     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30922         cat >>confdefs.h <<\_ACEOF
30923 #define HAVE_VSNPRINTF_DECL 1
30924 _ACEOF
30925
30926     fi
30927 fi
30928
30929 if test "$wxUSE_UNICODE" = yes; then
30930
30931
30932
30933
30934
30935
30936 for ac_func in wputc wputchar putws fputws wprintf vswprintf
30937 do
30938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30939 echo "$as_me:$LINENO: checking for $ac_func" >&5
30940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30941 if eval "test \"\${$as_ac_var+set}\" = set"; then
30942   echo $ECHO_N "(cached) $ECHO_C" >&6
30943 else
30944   cat >conftest.$ac_ext <<_ACEOF
30945 /* confdefs.h.  */
30946 _ACEOF
30947 cat confdefs.h >>conftest.$ac_ext
30948 cat >>conftest.$ac_ext <<_ACEOF
30949 /* end confdefs.h.  */
30950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30952 #define $ac_func innocuous_$ac_func
30953
30954 /* System header to define __stub macros and hopefully few prototypes,
30955     which can conflict with char $ac_func (); below.
30956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30957     <limits.h> exists even on freestanding compilers.  */
30958
30959 #ifdef __STDC__
30960 # include <limits.h>
30961 #else
30962 # include <assert.h>
30963 #endif
30964
30965 #undef $ac_func
30966
30967 /* Override any gcc2 internal prototype to avoid an error.  */
30968 #ifdef __cplusplus
30969 extern "C"
30970 {
30971 #endif
30972 /* We use char because int might match the return type of a gcc2
30973    builtin and then its argument prototype would still apply.  */
30974 char $ac_func ();
30975 /* The GNU C library defines this for functions which it implements
30976     to always fail with ENOSYS.  Some functions are actually named
30977     something starting with __ and the normal name is an alias.  */
30978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30979 choke me
30980 #else
30981 char (*f) () = $ac_func;
30982 #endif
30983 #ifdef __cplusplus
30984 }
30985 #endif
30986
30987 int
30988 main ()
30989 {
30990 return f != $ac_func;
30991   ;
30992   return 0;
30993 }
30994 _ACEOF
30995 rm -f conftest.$ac_objext conftest$ac_exeext
30996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30997   (eval $ac_link) 2>conftest.er1
30998   ac_status=$?
30999   grep -v '^ *+' conftest.er1 >conftest.err
31000   rm -f conftest.er1
31001   cat conftest.err >&5
31002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003   (exit $ac_status); } &&
31004          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31006   (eval $ac_try) 2>&5
31007   ac_status=$?
31008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009   (exit $ac_status); }; } &&
31010          { ac_try='test -s conftest$ac_exeext'
31011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31012   (eval $ac_try) 2>&5
31013   ac_status=$?
31014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015   (exit $ac_status); }; }; then
31016   eval "$as_ac_var=yes"
31017 else
31018   echo "$as_me: failed program was:" >&5
31019 sed 's/^/| /' conftest.$ac_ext >&5
31020
31021 eval "$as_ac_var=no"
31022 fi
31023 rm -f conftest.err conftest.$ac_objext \
31024       conftest$ac_exeext conftest.$ac_ext
31025 fi
31026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31028 if test `eval echo '${'$as_ac_var'}'` = yes; then
31029   cat >>confdefs.h <<_ACEOF
31030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31031 _ACEOF
31032
31033 fi
31034 done
31035
31036
31037                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31038 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31039     cat >conftest.$ac_ext <<_ACEOF
31040 /* confdefs.h.  */
31041 _ACEOF
31042 cat confdefs.h >>conftest.$ac_ext
31043 cat >>conftest.$ac_ext <<_ACEOF
31044 /* end confdefs.h.  */
31045 #include <wchar.h>
31046 int
31047 main ()
31048 {
31049 &_vsnwprintf;
31050   ;
31051   return 0;
31052 }
31053 _ACEOF
31054 rm -f conftest.$ac_objext
31055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31056   (eval $ac_compile) 2>conftest.er1
31057   ac_status=$?
31058   grep -v '^ *+' conftest.er1 >conftest.err
31059   rm -f conftest.er1
31060   cat conftest.err >&5
31061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062   (exit $ac_status); } &&
31063          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31065   (eval $ac_try) 2>&5
31066   ac_status=$?
31067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068   (exit $ac_status); }; } &&
31069          { ac_try='test -s conftest.$ac_objext'
31070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31071   (eval $ac_try) 2>&5
31072   ac_status=$?
31073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074   (exit $ac_status); }; }; then
31075   echo "$as_me:$LINENO: result: yes" >&5
31076 echo "${ECHO_T}yes" >&6
31077                     cat >>confdefs.h <<\_ACEOF
31078 #define HAVE__VSNWPRINTF 1
31079 _ACEOF
31080
31081 else
31082   echo "$as_me: failed program was:" >&5
31083 sed 's/^/| /' conftest.$ac_ext >&5
31084
31085 echo "$as_me:$LINENO: result: no" >&5
31086 echo "${ECHO_T}no" >&6
31087 fi
31088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
31089 fi
31090
31091 ac_ext=c
31092 ac_cpp='$CPP $CPPFLAGS'
31093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31096
31097
31098
31099
31100 if test "$TOOLKIT" != "MSW"; then
31101
31102
31103
31104
31105 ac_ext=cc
31106 ac_cpp='$CXXCPP $CPPFLAGS'
31107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31110
31111
31112
31113
31114 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31115 if test "${with_libiconv_prefix+set}" = set; then
31116   withval="$with_libiconv_prefix"
31117
31118     for dir in `echo "$withval" | tr : ' '`; do
31119       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31120       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31121     done
31122
31123 fi;
31124
31125   echo "$as_me:$LINENO: checking for iconv" >&5
31126 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31127 if test "${am_cv_func_iconv+set}" = set; then
31128   echo $ECHO_N "(cached) $ECHO_C" >&6
31129 else
31130
31131     am_cv_func_iconv="no, consider installing GNU libiconv"
31132     am_cv_lib_iconv=no
31133     cat >conftest.$ac_ext <<_ACEOF
31134 /* confdefs.h.  */
31135 _ACEOF
31136 cat confdefs.h >>conftest.$ac_ext
31137 cat >>conftest.$ac_ext <<_ACEOF
31138 /* end confdefs.h.  */
31139 #include <stdlib.h>
31140 #include <iconv.h>
31141 int
31142 main ()
31143 {
31144 iconv_t cd = iconv_open("","");
31145        iconv(cd,NULL,NULL,NULL,NULL);
31146        iconv_close(cd);
31147   ;
31148   return 0;
31149 }
31150 _ACEOF
31151 rm -f conftest.$ac_objext conftest$ac_exeext
31152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31153   (eval $ac_link) 2>conftest.er1
31154   ac_status=$?
31155   grep -v '^ *+' conftest.er1 >conftest.err
31156   rm -f conftest.er1
31157   cat conftest.err >&5
31158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159   (exit $ac_status); } &&
31160          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31162   (eval $ac_try) 2>&5
31163   ac_status=$?
31164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165   (exit $ac_status); }; } &&
31166          { ac_try='test -s conftest$ac_exeext'
31167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31168   (eval $ac_try) 2>&5
31169   ac_status=$?
31170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171   (exit $ac_status); }; }; then
31172   am_cv_func_iconv=yes
31173 else
31174   echo "$as_me: failed program was:" >&5
31175 sed 's/^/| /' conftest.$ac_ext >&5
31176
31177 fi
31178 rm -f conftest.err conftest.$ac_objext \
31179       conftest$ac_exeext conftest.$ac_ext
31180     if test "$am_cv_func_iconv" != yes; then
31181       am_save_LIBS="$LIBS"
31182       LIBS="$LIBS -liconv"
31183       cat >conftest.$ac_ext <<_ACEOF
31184 /* confdefs.h.  */
31185 _ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h.  */
31189 #include <stdlib.h>
31190 #include <iconv.h>
31191 int
31192 main ()
31193 {
31194 iconv_t cd = iconv_open("","");
31195          iconv(cd,NULL,NULL,NULL,NULL);
31196          iconv_close(cd);
31197   ;
31198   return 0;
31199 }
31200 _ACEOF
31201 rm -f conftest.$ac_objext conftest$ac_exeext
31202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31203   (eval $ac_link) 2>conftest.er1
31204   ac_status=$?
31205   grep -v '^ *+' conftest.er1 >conftest.err
31206   rm -f conftest.er1
31207   cat conftest.err >&5
31208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209   (exit $ac_status); } &&
31210          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31212   (eval $ac_try) 2>&5
31213   ac_status=$?
31214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215   (exit $ac_status); }; } &&
31216          { ac_try='test -s conftest$ac_exeext'
31217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31218   (eval $ac_try) 2>&5
31219   ac_status=$?
31220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221   (exit $ac_status); }; }; then
31222   am_cv_lib_iconv=yes
31223         am_cv_func_iconv=yes
31224 else
31225   echo "$as_me: failed program was:" >&5
31226 sed 's/^/| /' conftest.$ac_ext >&5
31227
31228 fi
31229 rm -f conftest.err conftest.$ac_objext \
31230       conftest$ac_exeext conftest.$ac_ext
31231       LIBS="$am_save_LIBS"
31232     fi
31233
31234 fi
31235 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31236 echo "${ECHO_T}$am_cv_func_iconv" >&6
31237   if test "$am_cv_func_iconv" = yes; then
31238
31239 cat >>confdefs.h <<\_ACEOF
31240 #define HAVE_ICONV 1
31241 _ACEOF
31242
31243     echo "$as_me:$LINENO: checking if iconv needs const" >&5
31244 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31245 if test "${wx_cv_func_iconv_const+set}" = set; then
31246   echo $ECHO_N "(cached) $ECHO_C" >&6
31247 else
31248   cat >conftest.$ac_ext <<_ACEOF
31249 /* confdefs.h.  */
31250 _ACEOF
31251 cat confdefs.h >>conftest.$ac_ext
31252 cat >>conftest.$ac_ext <<_ACEOF
31253 /* end confdefs.h.  */
31254
31255 #include <stdlib.h>
31256 #include <iconv.h>
31257 extern
31258 #ifdef __cplusplus
31259 "C"
31260 #endif
31261 #if defined(__STDC__) || defined(__cplusplus)
31262 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31263 #else
31264 size_t iconv();
31265 #endif
31266
31267 int
31268 main ()
31269 {
31270
31271   ;
31272   return 0;
31273 }
31274 _ACEOF
31275 rm -f conftest.$ac_objext
31276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31277   (eval $ac_compile) 2>conftest.er1
31278   ac_status=$?
31279   grep -v '^ *+' conftest.er1 >conftest.err
31280   rm -f conftest.er1
31281   cat conftest.err >&5
31282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283   (exit $ac_status); } &&
31284          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31286   (eval $ac_try) 2>&5
31287   ac_status=$?
31288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289   (exit $ac_status); }; } &&
31290          { ac_try='test -s conftest.$ac_objext'
31291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31292   (eval $ac_try) 2>&5
31293   ac_status=$?
31294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295   (exit $ac_status); }; }; then
31296   wx_cv_func_iconv_const="no"
31297 else
31298   echo "$as_me: failed program was:" >&5
31299 sed 's/^/| /' conftest.$ac_ext >&5
31300
31301 wx_cv_func_iconv_const="yes"
31302
31303 fi
31304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31305
31306 fi
31307 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31308 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31309
31310     iconv_const=
31311     if test "x$wx_cv_func_iconv_const" = "xyes"; then
31312         iconv_const="const"
31313     fi
31314
31315
31316 cat >>confdefs.h <<_ACEOF
31317 #define ICONV_CONST $iconv_const
31318 _ACEOF
31319
31320   fi
31321   LIBICONV=
31322   if test "$am_cv_lib_iconv" = yes; then
31323     LIBICONV="-liconv"
31324   fi
31325
31326
31327 LIBS="$LIBICONV $LIBS"
31328 ac_ext=c
31329 ac_cpp='$CPP $CPPFLAGS'
31330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31333
31334
31335 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31336
31337 for ac_func in sigaction
31338 do
31339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31340 echo "$as_me:$LINENO: checking for $ac_func" >&5
31341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31342 if eval "test \"\${$as_ac_var+set}\" = set"; then
31343   echo $ECHO_N "(cached) $ECHO_C" >&6
31344 else
31345   cat >conftest.$ac_ext <<_ACEOF
31346 /* confdefs.h.  */
31347 _ACEOF
31348 cat confdefs.h >>conftest.$ac_ext
31349 cat >>conftest.$ac_ext <<_ACEOF
31350 /* end confdefs.h.  */
31351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31353 #define $ac_func innocuous_$ac_func
31354
31355 /* System header to define __stub macros and hopefully few prototypes,
31356     which can conflict with char $ac_func (); below.
31357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31358     <limits.h> exists even on freestanding compilers.  */
31359
31360 #ifdef __STDC__
31361 # include <limits.h>
31362 #else
31363 # include <assert.h>
31364 #endif
31365
31366 #undef $ac_func
31367
31368 /* Override any gcc2 internal prototype to avoid an error.  */
31369 #ifdef __cplusplus
31370 extern "C"
31371 {
31372 #endif
31373 /* We use char because int might match the return type of a gcc2
31374    builtin and then its argument prototype would still apply.  */
31375 char $ac_func ();
31376 /* The GNU C library defines this for functions which it implements
31377     to always fail with ENOSYS.  Some functions are actually named
31378     something starting with __ and the normal name is an alias.  */
31379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31380 choke me
31381 #else
31382 char (*f) () = $ac_func;
31383 #endif
31384 #ifdef __cplusplus
31385 }
31386 #endif
31387
31388 int
31389 main ()
31390 {
31391 return f != $ac_func;
31392   ;
31393   return 0;
31394 }
31395 _ACEOF
31396 rm -f conftest.$ac_objext conftest$ac_exeext
31397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31398   (eval $ac_link) 2>conftest.er1
31399   ac_status=$?
31400   grep -v '^ *+' conftest.er1 >conftest.err
31401   rm -f conftest.er1
31402   cat conftest.err >&5
31403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404   (exit $ac_status); } &&
31405          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31407   (eval $ac_try) 2>&5
31408   ac_status=$?
31409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410   (exit $ac_status); }; } &&
31411          { ac_try='test -s conftest$ac_exeext'
31412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31413   (eval $ac_try) 2>&5
31414   ac_status=$?
31415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416   (exit $ac_status); }; }; then
31417   eval "$as_ac_var=yes"
31418 else
31419   echo "$as_me: failed program was:" >&5
31420 sed 's/^/| /' conftest.$ac_ext >&5
31421
31422 eval "$as_ac_var=no"
31423 fi
31424 rm -f conftest.err conftest.$ac_objext \
31425       conftest$ac_exeext conftest.$ac_ext
31426 fi
31427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31429 if test `eval echo '${'$as_ac_var'}'` = yes; then
31430   cat >>confdefs.h <<_ACEOF
31431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31432 _ACEOF
31433
31434 fi
31435 done
31436
31437
31438     if test "$ac_cv_func_sigaction" = "no"; then
31439         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31440 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31441         wxUSE_ON_FATAL_EXCEPTION=no
31442     fi
31443
31444     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31445
31446
31447       ac_ext=cc
31448 ac_cpp='$CXXCPP $CPPFLAGS'
31449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31452
31453
31454       echo "$as_me:$LINENO: checking for sa_handler type" >&5
31455 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31456 if test "${wx_cv_type_sa_handler+set}" = set; then
31457   echo $ECHO_N "(cached) $ECHO_C" >&6
31458 else
31459
31460         cat >conftest.$ac_ext <<_ACEOF
31461 /* confdefs.h.  */
31462 _ACEOF
31463 cat confdefs.h >>conftest.$ac_ext
31464 cat >>conftest.$ac_ext <<_ACEOF
31465 /* end confdefs.h.  */
31466 #include <signal.h>
31467 int
31468 main ()
31469 {
31470
31471                         extern void testSigHandler(int);
31472
31473                         struct sigaction sa;
31474                         sa.sa_handler = testSigHandler;
31475
31476   ;
31477   return 0;
31478 }
31479 _ACEOF
31480 rm -f conftest.$ac_objext
31481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31482   (eval $ac_compile) 2>conftest.er1
31483   ac_status=$?
31484   grep -v '^ *+' conftest.er1 >conftest.err
31485   rm -f conftest.er1
31486   cat conftest.err >&5
31487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488   (exit $ac_status); } &&
31489          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491   (eval $ac_try) 2>&5
31492   ac_status=$?
31493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494   (exit $ac_status); }; } &&
31495          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
31501
31502                         wx_cv_type_sa_handler=int
31503
31504 else
31505   echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31507
31508
31509                         wx_cv_type_sa_handler=void
31510
31511 fi
31512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31513
31514 fi
31515 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31516 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31517
31518       ac_ext=c
31519 ac_cpp='$CPP $CPPFLAGS'
31520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31523
31524
31525       cat >>confdefs.h <<_ACEOF
31526 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31527 _ACEOF
31528
31529     fi
31530 fi
31531
31532 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31533
31534
31535     ac_ext=cc
31536 ac_cpp='$CXXCPP $CPPFLAGS'
31537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31540
31541
31542     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31543 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31544 if test "${wx_cv_func_backtrace+set}" = set; then
31545   echo $ECHO_N "(cached) $ECHO_C" >&6
31546 else
31547
31548             cat >conftest.$ac_ext <<_ACEOF
31549 /* confdefs.h.  */
31550 _ACEOF
31551 cat confdefs.h >>conftest.$ac_ext
31552 cat >>conftest.$ac_ext <<_ACEOF
31553 /* end confdefs.h.  */
31554 #include <execinfo.h>
31555 int
31556 main ()
31557 {
31558
31559                     void *trace[1];
31560                     char **messages;
31561
31562                     backtrace(trace, 1);
31563                     messages = backtrace_symbols(trace, 1);
31564
31565   ;
31566   return 0;
31567 }
31568 _ACEOF
31569 rm -f conftest.$ac_objext
31570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31571   (eval $ac_compile) 2>conftest.er1
31572   ac_status=$?
31573   grep -v '^ *+' conftest.er1 >conftest.err
31574   rm -f conftest.er1
31575   cat conftest.err >&5
31576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577   (exit $ac_status); } &&
31578          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31580   (eval $ac_try) 2>&5
31581   ac_status=$?
31582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583   (exit $ac_status); }; } &&
31584          { ac_try='test -s conftest.$ac_objext'
31585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31586   (eval $ac_try) 2>&5
31587   ac_status=$?
31588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589   (exit $ac_status); }; }; then
31590   wx_cv_func_backtrace=yes
31591 else
31592   echo "$as_me: failed program was:" >&5
31593 sed 's/^/| /' conftest.$ac_ext >&5
31594
31595 wx_cv_func_backtrace=no
31596
31597 fi
31598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31599
31600
31601 fi
31602 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31603 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31604
31605
31606     if test "$wx_cv_func_backtrace" = "no"; then
31607         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31608 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31609         wxUSE_STACKWALKER=no
31610     else
31611         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31612 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31613 if test "${wx_cv_func_cxa_demangle+set}" = set; then
31614   echo $ECHO_N "(cached) $ECHO_C" >&6
31615 else
31616
31617                 cat >conftest.$ac_ext <<_ACEOF
31618 /* confdefs.h.  */
31619 _ACEOF
31620 cat confdefs.h >>conftest.$ac_ext
31621 cat >>conftest.$ac_ext <<_ACEOF
31622 /* end confdefs.h.  */
31623 #include <cxxabi.h>
31624 int
31625 main ()
31626 {
31627
31628                         int rc;
31629                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31630
31631   ;
31632   return 0;
31633 }
31634 _ACEOF
31635 rm -f conftest.$ac_objext conftest$ac_exeext
31636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31637   (eval $ac_link) 2>conftest.er1
31638   ac_status=$?
31639   grep -v '^ *+' conftest.er1 >conftest.err
31640   rm -f conftest.er1
31641   cat conftest.err >&5
31642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643   (exit $ac_status); } &&
31644          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31646   (eval $ac_try) 2>&5
31647   ac_status=$?
31648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649   (exit $ac_status); }; } &&
31650          { ac_try='test -s conftest$ac_exeext'
31651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31652   (eval $ac_try) 2>&5
31653   ac_status=$?
31654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655   (exit $ac_status); }; }; then
31656   wx_cv_func_cxa_demangle=yes
31657 else
31658   echo "$as_me: failed program was:" >&5
31659 sed 's/^/| /' conftest.$ac_ext >&5
31660
31661 wx_cv_func_cxa_demangle=no
31662
31663 fi
31664 rm -f conftest.err conftest.$ac_objext \
31665       conftest$ac_exeext conftest.$ac_ext
31666
31667
31668 fi
31669 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31670 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31671
31672         if test "$wx_cv_func_cxa_demangle" = "yes"; then
31673             cat >>confdefs.h <<\_ACEOF
31674 #define HAVE_CXA_DEMANGLE 1
31675 _ACEOF
31676
31677         fi
31678     fi
31679
31680     ac_ext=c
31681 ac_cpp='$CPP $CPPFLAGS'
31682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31685
31686 fi
31687
31688 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
31689     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
31690 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
31691     wxUSE_STACKWALKER=no
31692 fi
31693
31694
31695
31696
31697 for ac_func in mkstemp mktemp
31698 do
31699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31700 echo "$as_me:$LINENO: checking for $ac_func" >&5
31701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31702 if eval "test \"\${$as_ac_var+set}\" = set"; then
31703   echo $ECHO_N "(cached) $ECHO_C" >&6
31704 else
31705   cat >conftest.$ac_ext <<_ACEOF
31706 /* confdefs.h.  */
31707 _ACEOF
31708 cat confdefs.h >>conftest.$ac_ext
31709 cat >>conftest.$ac_ext <<_ACEOF
31710 /* end confdefs.h.  */
31711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31713 #define $ac_func innocuous_$ac_func
31714
31715 /* System header to define __stub macros and hopefully few prototypes,
31716     which can conflict with char $ac_func (); below.
31717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31718     <limits.h> exists even on freestanding compilers.  */
31719
31720 #ifdef __STDC__
31721 # include <limits.h>
31722 #else
31723 # include <assert.h>
31724 #endif
31725
31726 #undef $ac_func
31727
31728 /* Override any gcc2 internal prototype to avoid an error.  */
31729 #ifdef __cplusplus
31730 extern "C"
31731 {
31732 #endif
31733 /* We use char because int might match the return type of a gcc2
31734    builtin and then its argument prototype would still apply.  */
31735 char $ac_func ();
31736 /* The GNU C library defines this for functions which it implements
31737     to always fail with ENOSYS.  Some functions are actually named
31738     something starting with __ and the normal name is an alias.  */
31739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31740 choke me
31741 #else
31742 char (*f) () = $ac_func;
31743 #endif
31744 #ifdef __cplusplus
31745 }
31746 #endif
31747
31748 int
31749 main ()
31750 {
31751 return f != $ac_func;
31752   ;
31753   return 0;
31754 }
31755 _ACEOF
31756 rm -f conftest.$ac_objext conftest$ac_exeext
31757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31758   (eval $ac_link) 2>conftest.er1
31759   ac_status=$?
31760   grep -v '^ *+' conftest.er1 >conftest.err
31761   rm -f conftest.er1
31762   cat conftest.err >&5
31763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764   (exit $ac_status); } &&
31765          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31767   (eval $ac_try) 2>&5
31768   ac_status=$?
31769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770   (exit $ac_status); }; } &&
31771          { ac_try='test -s conftest$ac_exeext'
31772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31773   (eval $ac_try) 2>&5
31774   ac_status=$?
31775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776   (exit $ac_status); }; }; then
31777   eval "$as_ac_var=yes"
31778 else
31779   echo "$as_me: failed program was:" >&5
31780 sed 's/^/| /' conftest.$ac_ext >&5
31781
31782 eval "$as_ac_var=no"
31783 fi
31784 rm -f conftest.err conftest.$ac_objext \
31785       conftest$ac_exeext conftest.$ac_ext
31786 fi
31787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31789 if test `eval echo '${'$as_ac_var'}'` = yes; then
31790   cat >>confdefs.h <<_ACEOF
31791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31792 _ACEOF
31793  break
31794 fi
31795 done
31796
31797
31798 echo "$as_me:$LINENO: checking for statfs" >&5
31799 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31800 if test "${wx_cv_func_statfs+set}" = set; then
31801   echo $ECHO_N "(cached) $ECHO_C" >&6
31802 else
31803   cat >conftest.$ac_ext <<_ACEOF
31804 /* confdefs.h.  */
31805 _ACEOF
31806 cat confdefs.h >>conftest.$ac_ext
31807 cat >>conftest.$ac_ext <<_ACEOF
31808 /* end confdefs.h.  */
31809
31810              #if defined(__BSD__)
31811                #include <sys/param.h>
31812                #include <sys/mount.h>
31813              #else
31814                #include <sys/vfs.h>
31815              #endif
31816
31817 int
31818 main ()
31819 {
31820
31821              long l;
31822              struct statfs fs;
31823              statfs("/", &fs);
31824              l = fs.f_bsize;
31825              l += fs.f_blocks;
31826              l += fs.f_bavail;
31827
31828   ;
31829   return 0;
31830 }
31831 _ACEOF
31832 rm -f conftest.$ac_objext
31833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31834   (eval $ac_compile) 2>conftest.er1
31835   ac_status=$?
31836   grep -v '^ *+' conftest.er1 >conftest.err
31837   rm -f conftest.er1
31838   cat conftest.err >&5
31839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840   (exit $ac_status); } &&
31841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31843   (eval $ac_try) 2>&5
31844   ac_status=$?
31845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846   (exit $ac_status); }; } &&
31847          { ac_try='test -s conftest.$ac_objext'
31848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31849   (eval $ac_try) 2>&5
31850   ac_status=$?
31851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852   (exit $ac_status); }; }; then
31853
31854              wx_cv_func_statfs=yes
31855
31856 else
31857   echo "$as_me: failed program was:" >&5
31858 sed 's/^/| /' conftest.$ac_ext >&5
31859
31860
31861              wx_cv_func_statfs=no
31862
31863
31864 fi
31865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31866
31867 fi
31868 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31869 echo "${ECHO_T}$wx_cv_func_statfs" >&6
31870
31871 if test "$wx_cv_func_statfs" = "yes"; then
31872     wx_cv_type_statvfs_t="struct statfs"
31873     cat >>confdefs.h <<\_ACEOF
31874 #define HAVE_STATFS 1
31875 _ACEOF
31876
31877 else
31878     echo "$as_me:$LINENO: checking for statvfs" >&5
31879 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31880 if test "${wx_cv_func_statvfs+set}" = set; then
31881   echo $ECHO_N "(cached) $ECHO_C" >&6
31882 else
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
31890                 #include <stddef.h>
31891                 #include <sys/statvfs.h>
31892
31893 int
31894 main ()
31895 {
31896
31897                 statvfs("/", NULL);
31898
31899   ;
31900   return 0;
31901 }
31902 _ACEOF
31903 rm -f conftest.$ac_objext
31904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31905   (eval $ac_compile) 2>conftest.er1
31906   ac_status=$?
31907   grep -v '^ *+' conftest.er1 >conftest.err
31908   rm -f conftest.er1
31909   cat conftest.err >&5
31910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911   (exit $ac_status); } &&
31912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31914   (eval $ac_try) 2>&5
31915   ac_status=$?
31916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917   (exit $ac_status); }; } &&
31918          { ac_try='test -s conftest.$ac_objext'
31919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31920   (eval $ac_try) 2>&5
31921   ac_status=$?
31922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923   (exit $ac_status); }; }; then
31924   wx_cv_func_statvfs=yes
31925 else
31926   echo "$as_me: failed program was:" >&5
31927 sed 's/^/| /' conftest.$ac_ext >&5
31928
31929 wx_cv_func_statvfs=no
31930
31931 fi
31932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31933
31934 fi
31935 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31936 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31937
31938     if test "$wx_cv_func_statvfs" = "yes"; then
31939
31940
31941         ac_ext=cc
31942 ac_cpp='$CXXCPP $CPPFLAGS'
31943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31946
31947
31948         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31949 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31950 if test "${wx_cv_type_statvfs_t+set}" = set; then
31951   echo $ECHO_N "(cached) $ECHO_C" >&6
31952 else
31953   cat >conftest.$ac_ext <<_ACEOF
31954 /* confdefs.h.  */
31955 _ACEOF
31956 cat confdefs.h >>conftest.$ac_ext
31957 cat >>conftest.$ac_ext <<_ACEOF
31958 /* end confdefs.h.  */
31959
31960                     #include <sys/statvfs.h>
31961
31962 int
31963 main ()
31964 {
31965
31966                     long l;
31967                     statvfs_t fs;
31968                     statvfs("/", &fs);
31969                     l = fs.f_bsize;
31970                     l += fs.f_blocks;
31971                     l += fs.f_bavail;
31972
31973   ;
31974   return 0;
31975 }
31976 _ACEOF
31977 rm -f conftest.$ac_objext
31978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31979   (eval $ac_compile) 2>conftest.er1
31980   ac_status=$?
31981   grep -v '^ *+' conftest.er1 >conftest.err
31982   rm -f conftest.er1
31983   cat conftest.err >&5
31984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985   (exit $ac_status); } &&
31986          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31988   (eval $ac_try) 2>&5
31989   ac_status=$?
31990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991   (exit $ac_status); }; } &&
31992          { ac_try='test -s conftest.$ac_objext'
31993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31994   (eval $ac_try) 2>&5
31995   ac_status=$?
31996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997   (exit $ac_status); }; }; then
31998   wx_cv_type_statvfs_t=statvfs_t
31999 else
32000   echo "$as_me: failed program was:" >&5
32001 sed 's/^/| /' conftest.$ac_ext >&5
32002
32003
32004                     cat >conftest.$ac_ext <<_ACEOF
32005 /* confdefs.h.  */
32006 _ACEOF
32007 cat confdefs.h >>conftest.$ac_ext
32008 cat >>conftest.$ac_ext <<_ACEOF
32009 /* end confdefs.h.  */
32010
32011                             #include <sys/statvfs.h>
32012
32013 int
32014 main ()
32015 {
32016
32017                             long l;
32018                             struct statvfs fs;
32019                             statvfs("/", &fs);
32020                             l = fs.f_bsize;
32021                             l += fs.f_blocks;
32022                             l += fs.f_bavail;
32023
32024   ;
32025   return 0;
32026 }
32027 _ACEOF
32028 rm -f conftest.$ac_objext
32029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32030   (eval $ac_compile) 2>conftest.er1
32031   ac_status=$?
32032   grep -v '^ *+' conftest.er1 >conftest.err
32033   rm -f conftest.er1
32034   cat conftest.err >&5
32035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32036   (exit $ac_status); } &&
32037          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32039   (eval $ac_try) 2>&5
32040   ac_status=$?
32041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042   (exit $ac_status); }; } &&
32043          { ac_try='test -s conftest.$ac_objext'
32044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32045   (eval $ac_try) 2>&5
32046   ac_status=$?
32047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048   (exit $ac_status); }; }; then
32049   wx_cv_type_statvfs_t="struct statvfs"
32050 else
32051   echo "$as_me: failed program was:" >&5
32052 sed 's/^/| /' conftest.$ac_ext >&5
32053
32054 wx_cv_type_statvfs_t="unknown"
32055
32056 fi
32057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32058
32059
32060 fi
32061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32062
32063 fi
32064 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32065 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32066
32067         ac_ext=c
32068 ac_cpp='$CPP $CPPFLAGS'
32069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32072
32073
32074         if test "$wx_cv_type_statvfs_t" != "unknown"; then
32075             cat >>confdefs.h <<\_ACEOF
32076 #define HAVE_STATVFS 1
32077 _ACEOF
32078
32079         fi
32080     else
32081                 wx_cv_type_statvfs_t="unknown"
32082     fi
32083 fi
32084
32085 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32086     cat >>confdefs.h <<_ACEOF
32087 #define WX_STATFS_T $wx_cv_type_statvfs_t
32088 _ACEOF
32089
32090 else
32091     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32092 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32093 fi
32094
32095 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32096
32097
32098 for ac_func in fcntl flock
32099 do
32100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32101 echo "$as_me:$LINENO: checking for $ac_func" >&5
32102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32103 if eval "test \"\${$as_ac_var+set}\" = set"; then
32104   echo $ECHO_N "(cached) $ECHO_C" >&6
32105 else
32106   cat >conftest.$ac_ext <<_ACEOF
32107 /* confdefs.h.  */
32108 _ACEOF
32109 cat confdefs.h >>conftest.$ac_ext
32110 cat >>conftest.$ac_ext <<_ACEOF
32111 /* end confdefs.h.  */
32112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32114 #define $ac_func innocuous_$ac_func
32115
32116 /* System header to define __stub macros and hopefully few prototypes,
32117     which can conflict with char $ac_func (); below.
32118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32119     <limits.h> exists even on freestanding compilers.  */
32120
32121 #ifdef __STDC__
32122 # include <limits.h>
32123 #else
32124 # include <assert.h>
32125 #endif
32126
32127 #undef $ac_func
32128
32129 /* Override any gcc2 internal prototype to avoid an error.  */
32130 #ifdef __cplusplus
32131 extern "C"
32132 {
32133 #endif
32134 /* We use char because int might match the return type of a gcc2
32135    builtin and then its argument prototype would still apply.  */
32136 char $ac_func ();
32137 /* The GNU C library defines this for functions which it implements
32138     to always fail with ENOSYS.  Some functions are actually named
32139     something starting with __ and the normal name is an alias.  */
32140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32141 choke me
32142 #else
32143 char (*f) () = $ac_func;
32144 #endif
32145 #ifdef __cplusplus
32146 }
32147 #endif
32148
32149 int
32150 main ()
32151 {
32152 return f != $ac_func;
32153   ;
32154   return 0;
32155 }
32156 _ACEOF
32157 rm -f conftest.$ac_objext conftest$ac_exeext
32158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32159   (eval $ac_link) 2>conftest.er1
32160   ac_status=$?
32161   grep -v '^ *+' conftest.er1 >conftest.err
32162   rm -f conftest.er1
32163   cat conftest.err >&5
32164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165   (exit $ac_status); } &&
32166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32168   (eval $ac_try) 2>&5
32169   ac_status=$?
32170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171   (exit $ac_status); }; } &&
32172          { ac_try='test -s conftest$ac_exeext'
32173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32174   (eval $ac_try) 2>&5
32175   ac_status=$?
32176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177   (exit $ac_status); }; }; then
32178   eval "$as_ac_var=yes"
32179 else
32180   echo "$as_me: failed program was:" >&5
32181 sed 's/^/| /' conftest.$ac_ext >&5
32182
32183 eval "$as_ac_var=no"
32184 fi
32185 rm -f conftest.err conftest.$ac_objext \
32186       conftest$ac_exeext conftest.$ac_ext
32187 fi
32188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32190 if test `eval echo '${'$as_ac_var'}'` = yes; then
32191   cat >>confdefs.h <<_ACEOF
32192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32193 _ACEOF
32194  break
32195 fi
32196 done
32197
32198
32199     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32200         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32201 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32202         wxUSE_SNGLINST_CHECKER=no
32203     fi
32204 fi
32205
32206
32207 for ac_func in timegm
32208 do
32209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32210 echo "$as_me:$LINENO: checking for $ac_func" >&5
32211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32212 if eval "test \"\${$as_ac_var+set}\" = set"; then
32213   echo $ECHO_N "(cached) $ECHO_C" >&6
32214 else
32215   cat >conftest.$ac_ext <<_ACEOF
32216 /* confdefs.h.  */
32217 _ACEOF
32218 cat confdefs.h >>conftest.$ac_ext
32219 cat >>conftest.$ac_ext <<_ACEOF
32220 /* end confdefs.h.  */
32221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32223 #define $ac_func innocuous_$ac_func
32224
32225 /* System header to define __stub macros and hopefully few prototypes,
32226     which can conflict with char $ac_func (); below.
32227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32228     <limits.h> exists even on freestanding compilers.  */
32229
32230 #ifdef __STDC__
32231 # include <limits.h>
32232 #else
32233 # include <assert.h>
32234 #endif
32235
32236 #undef $ac_func
32237
32238 /* Override any gcc2 internal prototype to avoid an error.  */
32239 #ifdef __cplusplus
32240 extern "C"
32241 {
32242 #endif
32243 /* We use char because int might match the return type of a gcc2
32244    builtin and then its argument prototype would still apply.  */
32245 char $ac_func ();
32246 /* The GNU C library defines this for functions which it implements
32247     to always fail with ENOSYS.  Some functions are actually named
32248     something starting with __ and the normal name is an alias.  */
32249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32250 choke me
32251 #else
32252 char (*f) () = $ac_func;
32253 #endif
32254 #ifdef __cplusplus
32255 }
32256 #endif
32257
32258 int
32259 main ()
32260 {
32261 return f != $ac_func;
32262   ;
32263   return 0;
32264 }
32265 _ACEOF
32266 rm -f conftest.$ac_objext conftest$ac_exeext
32267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32268   (eval $ac_link) 2>conftest.er1
32269   ac_status=$?
32270   grep -v '^ *+' conftest.er1 >conftest.err
32271   rm -f conftest.er1
32272   cat conftest.err >&5
32273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274   (exit $ac_status); } &&
32275          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32277   (eval $ac_try) 2>&5
32278   ac_status=$?
32279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280   (exit $ac_status); }; } &&
32281          { ac_try='test -s conftest$ac_exeext'
32282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32283   (eval $ac_try) 2>&5
32284   ac_status=$?
32285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286   (exit $ac_status); }; }; then
32287   eval "$as_ac_var=yes"
32288 else
32289   echo "$as_me: failed program was:" >&5
32290 sed 's/^/| /' conftest.$ac_ext >&5
32291
32292 eval "$as_ac_var=no"
32293 fi
32294 rm -f conftest.err conftest.$ac_objext \
32295       conftest$ac_exeext conftest.$ac_ext
32296 fi
32297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32299 if test `eval echo '${'$as_ac_var'}'` = yes; then
32300   cat >>confdefs.h <<_ACEOF
32301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32302 _ACEOF
32303
32304 fi
32305 done
32306
32307
32308
32309
32310 for ac_func in putenv setenv
32311 do
32312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32313 echo "$as_me:$LINENO: checking for $ac_func" >&5
32314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32315 if eval "test \"\${$as_ac_var+set}\" = set"; then
32316   echo $ECHO_N "(cached) $ECHO_C" >&6
32317 else
32318   cat >conftest.$ac_ext <<_ACEOF
32319 /* confdefs.h.  */
32320 _ACEOF
32321 cat confdefs.h >>conftest.$ac_ext
32322 cat >>conftest.$ac_ext <<_ACEOF
32323 /* end confdefs.h.  */
32324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32326 #define $ac_func innocuous_$ac_func
32327
32328 /* System header to define __stub macros and hopefully few prototypes,
32329     which can conflict with char $ac_func (); below.
32330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32331     <limits.h> exists even on freestanding compilers.  */
32332
32333 #ifdef __STDC__
32334 # include <limits.h>
32335 #else
32336 # include <assert.h>
32337 #endif
32338
32339 #undef $ac_func
32340
32341 /* Override any gcc2 internal prototype to avoid an error.  */
32342 #ifdef __cplusplus
32343 extern "C"
32344 {
32345 #endif
32346 /* We use char because int might match the return type of a gcc2
32347    builtin and then its argument prototype would still apply.  */
32348 char $ac_func ();
32349 /* The GNU C library defines this for functions which it implements
32350     to always fail with ENOSYS.  Some functions are actually named
32351     something starting with __ and the normal name is an alias.  */
32352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32353 choke me
32354 #else
32355 char (*f) () = $ac_func;
32356 #endif
32357 #ifdef __cplusplus
32358 }
32359 #endif
32360
32361 int
32362 main ()
32363 {
32364 return f != $ac_func;
32365   ;
32366   return 0;
32367 }
32368 _ACEOF
32369 rm -f conftest.$ac_objext conftest$ac_exeext
32370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32371   (eval $ac_link) 2>conftest.er1
32372   ac_status=$?
32373   grep -v '^ *+' conftest.er1 >conftest.err
32374   rm -f conftest.er1
32375   cat conftest.err >&5
32376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377   (exit $ac_status); } &&
32378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
32384          { ac_try='test -s conftest$ac_exeext'
32385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32386   (eval $ac_try) 2>&5
32387   ac_status=$?
32388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389   (exit $ac_status); }; }; then
32390   eval "$as_ac_var=yes"
32391 else
32392   echo "$as_me: failed program was:" >&5
32393 sed 's/^/| /' conftest.$ac_ext >&5
32394
32395 eval "$as_ac_var=no"
32396 fi
32397 rm -f conftest.err conftest.$ac_objext \
32398       conftest$ac_exeext conftest.$ac_ext
32399 fi
32400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32402 if test `eval echo '${'$as_ac_var'}'` = yes; then
32403   cat >>confdefs.h <<_ACEOF
32404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32405 _ACEOF
32406  break
32407 fi
32408 done
32409
32410
32411 HAVE_SOME_SLEEP_FUNC=0
32412 if test "$USE_BEOS" = 1; then
32413             cat >>confdefs.h <<\_ACEOF
32414 #define HAVE_SLEEP 1
32415 _ACEOF
32416
32417     HAVE_SOME_SLEEP_FUNC=1
32418 fi
32419
32420 if test "$USE_DARWIN" = 1; then
32421             cat >>confdefs.h <<\_ACEOF
32422 #define HAVE_USLEEP 1
32423 _ACEOF
32424
32425     HAVE_SOME_SLEEP_FUNC=1
32426 fi
32427
32428 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32429         POSIX4_LINK=
32430
32431 for ac_func in nanosleep
32432 do
32433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32434 echo "$as_me:$LINENO: checking for $ac_func" >&5
32435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32436 if eval "test \"\${$as_ac_var+set}\" = set"; then
32437   echo $ECHO_N "(cached) $ECHO_C" >&6
32438 else
32439   cat >conftest.$ac_ext <<_ACEOF
32440 /* confdefs.h.  */
32441 _ACEOF
32442 cat confdefs.h >>conftest.$ac_ext
32443 cat >>conftest.$ac_ext <<_ACEOF
32444 /* end confdefs.h.  */
32445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32447 #define $ac_func innocuous_$ac_func
32448
32449 /* System header to define __stub macros and hopefully few prototypes,
32450     which can conflict with char $ac_func (); below.
32451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32452     <limits.h> exists even on freestanding compilers.  */
32453
32454 #ifdef __STDC__
32455 # include <limits.h>
32456 #else
32457 # include <assert.h>
32458 #endif
32459
32460 #undef $ac_func
32461
32462 /* Override any gcc2 internal prototype to avoid an error.  */
32463 #ifdef __cplusplus
32464 extern "C"
32465 {
32466 #endif
32467 /* We use char because int might match the return type of a gcc2
32468    builtin and then its argument prototype would still apply.  */
32469 char $ac_func ();
32470 /* The GNU C library defines this for functions which it implements
32471     to always fail with ENOSYS.  Some functions are actually named
32472     something starting with __ and the normal name is an alias.  */
32473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32474 choke me
32475 #else
32476 char (*f) () = $ac_func;
32477 #endif
32478 #ifdef __cplusplus
32479 }
32480 #endif
32481
32482 int
32483 main ()
32484 {
32485 return f != $ac_func;
32486   ;
32487   return 0;
32488 }
32489 _ACEOF
32490 rm -f conftest.$ac_objext conftest$ac_exeext
32491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32492   (eval $ac_link) 2>conftest.er1
32493   ac_status=$?
32494   grep -v '^ *+' conftest.er1 >conftest.err
32495   rm -f conftest.er1
32496   cat conftest.err >&5
32497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498   (exit $ac_status); } &&
32499          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32501   (eval $ac_try) 2>&5
32502   ac_status=$?
32503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504   (exit $ac_status); }; } &&
32505          { ac_try='test -s conftest$ac_exeext'
32506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32507   (eval $ac_try) 2>&5
32508   ac_status=$?
32509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510   (exit $ac_status); }; }; then
32511   eval "$as_ac_var=yes"
32512 else
32513   echo "$as_me: failed program was:" >&5
32514 sed 's/^/| /' conftest.$ac_ext >&5
32515
32516 eval "$as_ac_var=no"
32517 fi
32518 rm -f conftest.err conftest.$ac_objext \
32519       conftest$ac_exeext conftest.$ac_ext
32520 fi
32521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32523 if test `eval echo '${'$as_ac_var'}'` = yes; then
32524   cat >>confdefs.h <<_ACEOF
32525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32526 _ACEOF
32527  cat >>confdefs.h <<\_ACEOF
32528 #define HAVE_NANOSLEEP 1
32529 _ACEOF
32530
32531 else
32532
32533             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32534 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32535 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32536   echo $ECHO_N "(cached) $ECHO_C" >&6
32537 else
32538   ac_check_lib_save_LIBS=$LIBS
32539 LIBS="-lposix4  $LIBS"
32540 cat >conftest.$ac_ext <<_ACEOF
32541 /* confdefs.h.  */
32542 _ACEOF
32543 cat confdefs.h >>conftest.$ac_ext
32544 cat >>conftest.$ac_ext <<_ACEOF
32545 /* end confdefs.h.  */
32546
32547 /* Override any gcc2 internal prototype to avoid an error.  */
32548 #ifdef __cplusplus
32549 extern "C"
32550 #endif
32551 /* We use char because int might match the return type of a gcc2
32552    builtin and then its argument prototype would still apply.  */
32553 char nanosleep ();
32554 int
32555 main ()
32556 {
32557 nanosleep ();
32558   ;
32559   return 0;
32560 }
32561 _ACEOF
32562 rm -f conftest.$ac_objext conftest$ac_exeext
32563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32564   (eval $ac_link) 2>conftest.er1
32565   ac_status=$?
32566   grep -v '^ *+' conftest.er1 >conftest.err
32567   rm -f conftest.er1
32568   cat conftest.err >&5
32569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570   (exit $ac_status); } &&
32571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32573   (eval $ac_try) 2>&5
32574   ac_status=$?
32575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32576   (exit $ac_status); }; } &&
32577          { ac_try='test -s conftest$ac_exeext'
32578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32579   (eval $ac_try) 2>&5
32580   ac_status=$?
32581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582   (exit $ac_status); }; }; then
32583   ac_cv_lib_posix4_nanosleep=yes
32584 else
32585   echo "$as_me: failed program was:" >&5
32586 sed 's/^/| /' conftest.$ac_ext >&5
32587
32588 ac_cv_lib_posix4_nanosleep=no
32589 fi
32590 rm -f conftest.err conftest.$ac_objext \
32591       conftest$ac_exeext conftest.$ac_ext
32592 LIBS=$ac_check_lib_save_LIBS
32593 fi
32594 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32595 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32596 if test $ac_cv_lib_posix4_nanosleep = yes; then
32597
32598                     cat >>confdefs.h <<\_ACEOF
32599 #define HAVE_NANOSLEEP 1
32600 _ACEOF
32601
32602                     POSIX4_LINK=" -lposix4"
32603
32604 else
32605
32606
32607 for ac_func in usleep
32608 do
32609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32610 echo "$as_me:$LINENO: checking for $ac_func" >&5
32611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32612 if eval "test \"\${$as_ac_var+set}\" = set"; then
32613   echo $ECHO_N "(cached) $ECHO_C" >&6
32614 else
32615   cat >conftest.$ac_ext <<_ACEOF
32616 /* confdefs.h.  */
32617 _ACEOF
32618 cat confdefs.h >>conftest.$ac_ext
32619 cat >>conftest.$ac_ext <<_ACEOF
32620 /* end confdefs.h.  */
32621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32623 #define $ac_func innocuous_$ac_func
32624
32625 /* System header to define __stub macros and hopefully few prototypes,
32626     which can conflict with char $ac_func (); below.
32627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32628     <limits.h> exists even on freestanding compilers.  */
32629
32630 #ifdef __STDC__
32631 # include <limits.h>
32632 #else
32633 # include <assert.h>
32634 #endif
32635
32636 #undef $ac_func
32637
32638 /* Override any gcc2 internal prototype to avoid an error.  */
32639 #ifdef __cplusplus
32640 extern "C"
32641 {
32642 #endif
32643 /* We use char because int might match the return type of a gcc2
32644    builtin and then its argument prototype would still apply.  */
32645 char $ac_func ();
32646 /* The GNU C library defines this for functions which it implements
32647     to always fail with ENOSYS.  Some functions are actually named
32648     something starting with __ and the normal name is an alias.  */
32649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32650 choke me
32651 #else
32652 char (*f) () = $ac_func;
32653 #endif
32654 #ifdef __cplusplus
32655 }
32656 #endif
32657
32658 int
32659 main ()
32660 {
32661 return f != $ac_func;
32662   ;
32663   return 0;
32664 }
32665 _ACEOF
32666 rm -f conftest.$ac_objext conftest$ac_exeext
32667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32668   (eval $ac_link) 2>conftest.er1
32669   ac_status=$?
32670   grep -v '^ *+' conftest.er1 >conftest.err
32671   rm -f conftest.er1
32672   cat conftest.err >&5
32673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674   (exit $ac_status); } &&
32675          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32677   (eval $ac_try) 2>&5
32678   ac_status=$?
32679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680   (exit $ac_status); }; } &&
32681          { ac_try='test -s conftest$ac_exeext'
32682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32683   (eval $ac_try) 2>&5
32684   ac_status=$?
32685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686   (exit $ac_status); }; }; then
32687   eval "$as_ac_var=yes"
32688 else
32689   echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32691
32692 eval "$as_ac_var=no"
32693 fi
32694 rm -f conftest.err conftest.$ac_objext \
32695       conftest$ac_exeext conftest.$ac_ext
32696 fi
32697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32699 if test `eval echo '${'$as_ac_var'}'` = yes; then
32700   cat >>confdefs.h <<_ACEOF
32701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32702 _ACEOF
32703  cat >>confdefs.h <<\_ACEOF
32704 #define HAVE_USLEEP 1
32705 _ACEOF
32706
32707 else
32708   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32709 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32710
32711 fi
32712 done
32713
32714
32715
32716 fi
32717
32718
32719
32720 fi
32721 done
32722
32723 fi
32724
32725
32726
32727 for ac_func in uname gethostname
32728 do
32729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32730 echo "$as_me:$LINENO: checking for $ac_func" >&5
32731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32732 if eval "test \"\${$as_ac_var+set}\" = set"; then
32733   echo $ECHO_N "(cached) $ECHO_C" >&6
32734 else
32735   cat >conftest.$ac_ext <<_ACEOF
32736 /* confdefs.h.  */
32737 _ACEOF
32738 cat confdefs.h >>conftest.$ac_ext
32739 cat >>conftest.$ac_ext <<_ACEOF
32740 /* end confdefs.h.  */
32741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32743 #define $ac_func innocuous_$ac_func
32744
32745 /* System header to define __stub macros and hopefully few prototypes,
32746     which can conflict with char $ac_func (); below.
32747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32748     <limits.h> exists even on freestanding compilers.  */
32749
32750 #ifdef __STDC__
32751 # include <limits.h>
32752 #else
32753 # include <assert.h>
32754 #endif
32755
32756 #undef $ac_func
32757
32758 /* Override any gcc2 internal prototype to avoid an error.  */
32759 #ifdef __cplusplus
32760 extern "C"
32761 {
32762 #endif
32763 /* We use char because int might match the return type of a gcc2
32764    builtin and then its argument prototype would still apply.  */
32765 char $ac_func ();
32766 /* The GNU C library defines this for functions which it implements
32767     to always fail with ENOSYS.  Some functions are actually named
32768     something starting with __ and the normal name is an alias.  */
32769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32770 choke me
32771 #else
32772 char (*f) () = $ac_func;
32773 #endif
32774 #ifdef __cplusplus
32775 }
32776 #endif
32777
32778 int
32779 main ()
32780 {
32781 return f != $ac_func;
32782   ;
32783   return 0;
32784 }
32785 _ACEOF
32786 rm -f conftest.$ac_objext conftest$ac_exeext
32787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32788   (eval $ac_link) 2>conftest.er1
32789   ac_status=$?
32790   grep -v '^ *+' conftest.er1 >conftest.err
32791   rm -f conftest.er1
32792   cat conftest.err >&5
32793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794   (exit $ac_status); } &&
32795          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32797   (eval $ac_try) 2>&5
32798   ac_status=$?
32799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800   (exit $ac_status); }; } &&
32801          { ac_try='test -s conftest$ac_exeext'
32802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32803   (eval $ac_try) 2>&5
32804   ac_status=$?
32805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806   (exit $ac_status); }; }; then
32807   eval "$as_ac_var=yes"
32808 else
32809   echo "$as_me: failed program was:" >&5
32810 sed 's/^/| /' conftest.$ac_ext >&5
32811
32812 eval "$as_ac_var=no"
32813 fi
32814 rm -f conftest.err conftest.$ac_objext \
32815       conftest$ac_exeext conftest.$ac_ext
32816 fi
32817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32819 if test `eval echo '${'$as_ac_var'}'` = yes; then
32820   cat >>confdefs.h <<_ACEOF
32821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32822 _ACEOF
32823  break
32824 fi
32825 done
32826
32827
32828
32829
32830 ac_ext=cc
32831 ac_cpp='$CXXCPP $CPPFLAGS'
32832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32835
32836
32837
32838 for ac_func in strtok_r
32839 do
32840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32841 echo "$as_me:$LINENO: checking for $ac_func" >&5
32842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32843 if eval "test \"\${$as_ac_var+set}\" = set"; then
32844   echo $ECHO_N "(cached) $ECHO_C" >&6
32845 else
32846   cat >conftest.$ac_ext <<_ACEOF
32847 /* confdefs.h.  */
32848 _ACEOF
32849 cat confdefs.h >>conftest.$ac_ext
32850 cat >>conftest.$ac_ext <<_ACEOF
32851 /* end confdefs.h.  */
32852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32854 #define $ac_func innocuous_$ac_func
32855
32856 /* System header to define __stub macros and hopefully few prototypes,
32857     which can conflict with char $ac_func (); below.
32858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32859     <limits.h> exists even on freestanding compilers.  */
32860
32861 #ifdef __STDC__
32862 # include <limits.h>
32863 #else
32864 # include <assert.h>
32865 #endif
32866
32867 #undef $ac_func
32868
32869 /* Override any gcc2 internal prototype to avoid an error.  */
32870 #ifdef __cplusplus
32871 extern "C"
32872 {
32873 #endif
32874 /* We use char because int might match the return type of a gcc2
32875    builtin and then its argument prototype would still apply.  */
32876 char $ac_func ();
32877 /* The GNU C library defines this for functions which it implements
32878     to always fail with ENOSYS.  Some functions are actually named
32879     something starting with __ and the normal name is an alias.  */
32880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32881 choke me
32882 #else
32883 char (*f) () = $ac_func;
32884 #endif
32885 #ifdef __cplusplus
32886 }
32887 #endif
32888
32889 int
32890 main ()
32891 {
32892 return f != $ac_func;
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_cxx_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   eval "$as_ac_var=yes"
32919 else
32920   echo "$as_me: failed program was:" >&5
32921 sed 's/^/| /' conftest.$ac_ext >&5
32922
32923 eval "$as_ac_var=no"
32924 fi
32925 rm -f conftest.err conftest.$ac_objext \
32926       conftest$ac_exeext conftest.$ac_ext
32927 fi
32928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32930 if test `eval echo '${'$as_ac_var'}'` = yes; then
32931   cat >>confdefs.h <<_ACEOF
32932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32933 _ACEOF
32934
32935 fi
32936 done
32937
32938
32939 ac_ext=c
32940 ac_cpp='$CPP $CPPFLAGS'
32941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32944
32945
32946 INET_LINK=
32947
32948 for ac_func in inet_addr
32949 do
32950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32951 echo "$as_me:$LINENO: checking for $ac_func" >&5
32952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32953 if eval "test \"\${$as_ac_var+set}\" = set"; then
32954   echo $ECHO_N "(cached) $ECHO_C" >&6
32955 else
32956   cat >conftest.$ac_ext <<_ACEOF
32957 /* confdefs.h.  */
32958 _ACEOF
32959 cat confdefs.h >>conftest.$ac_ext
32960 cat >>conftest.$ac_ext <<_ACEOF
32961 /* end confdefs.h.  */
32962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32964 #define $ac_func innocuous_$ac_func
32965
32966 /* System header to define __stub macros and hopefully few prototypes,
32967     which can conflict with char $ac_func (); below.
32968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32969     <limits.h> exists even on freestanding compilers.  */
32970
32971 #ifdef __STDC__
32972 # include <limits.h>
32973 #else
32974 # include <assert.h>
32975 #endif
32976
32977 #undef $ac_func
32978
32979 /* Override any gcc2 internal prototype to avoid an error.  */
32980 #ifdef __cplusplus
32981 extern "C"
32982 {
32983 #endif
32984 /* We use char because int might match the return type of a gcc2
32985    builtin and then its argument prototype would still apply.  */
32986 char $ac_func ();
32987 /* The GNU C library defines this for functions which it implements
32988     to always fail with ENOSYS.  Some functions are actually named
32989     something starting with __ and the normal name is an alias.  */
32990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32991 choke me
32992 #else
32993 char (*f) () = $ac_func;
32994 #endif
32995 #ifdef __cplusplus
32996 }
32997 #endif
32998
32999 int
33000 main ()
33001 {
33002 return f != $ac_func;
33003   ;
33004   return 0;
33005 }
33006 _ACEOF
33007 rm -f conftest.$ac_objext conftest$ac_exeext
33008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33009   (eval $ac_link) 2>conftest.er1
33010   ac_status=$?
33011   grep -v '^ *+' conftest.er1 >conftest.err
33012   rm -f conftest.er1
33013   cat conftest.err >&5
33014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015   (exit $ac_status); } &&
33016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33018   (eval $ac_try) 2>&5
33019   ac_status=$?
33020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021   (exit $ac_status); }; } &&
33022          { ac_try='test -s conftest$ac_exeext'
33023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33024   (eval $ac_try) 2>&5
33025   ac_status=$?
33026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027   (exit $ac_status); }; }; then
33028   eval "$as_ac_var=yes"
33029 else
33030   echo "$as_me: failed program was:" >&5
33031 sed 's/^/| /' conftest.$ac_ext >&5
33032
33033 eval "$as_ac_var=no"
33034 fi
33035 rm -f conftest.err conftest.$ac_objext \
33036       conftest$ac_exeext conftest.$ac_ext
33037 fi
33038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33040 if test `eval echo '${'$as_ac_var'}'` = yes; then
33041   cat >>confdefs.h <<_ACEOF
33042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33043 _ACEOF
33044  cat >>confdefs.h <<\_ACEOF
33045 #define HAVE_INET_ADDR 1
33046 _ACEOF
33047
33048 else
33049
33050         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33051 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33052 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33053   echo $ECHO_N "(cached) $ECHO_C" >&6
33054 else
33055   ac_check_lib_save_LIBS=$LIBS
33056 LIBS="-lnsl  $LIBS"
33057 cat >conftest.$ac_ext <<_ACEOF
33058 /* confdefs.h.  */
33059 _ACEOF
33060 cat confdefs.h >>conftest.$ac_ext
33061 cat >>conftest.$ac_ext <<_ACEOF
33062 /* end confdefs.h.  */
33063
33064 /* Override any gcc2 internal prototype to avoid an error.  */
33065 #ifdef __cplusplus
33066 extern "C"
33067 #endif
33068 /* We use char because int might match the return type of a gcc2
33069    builtin and then its argument prototype would still apply.  */
33070 char inet_addr ();
33071 int
33072 main ()
33073 {
33074 inet_addr ();
33075   ;
33076   return 0;
33077 }
33078 _ACEOF
33079 rm -f conftest.$ac_objext conftest$ac_exeext
33080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33081   (eval $ac_link) 2>conftest.er1
33082   ac_status=$?
33083   grep -v '^ *+' conftest.er1 >conftest.err
33084   rm -f conftest.er1
33085   cat conftest.err >&5
33086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087   (exit $ac_status); } &&
33088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33090   (eval $ac_try) 2>&5
33091   ac_status=$?
33092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093   (exit $ac_status); }; } &&
33094          { ac_try='test -s conftest$ac_exeext'
33095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33096   (eval $ac_try) 2>&5
33097   ac_status=$?
33098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099   (exit $ac_status); }; }; then
33100   ac_cv_lib_nsl_inet_addr=yes
33101 else
33102   echo "$as_me: failed program was:" >&5
33103 sed 's/^/| /' conftest.$ac_ext >&5
33104
33105 ac_cv_lib_nsl_inet_addr=no
33106 fi
33107 rm -f conftest.err conftest.$ac_objext \
33108       conftest$ac_exeext conftest.$ac_ext
33109 LIBS=$ac_check_lib_save_LIBS
33110 fi
33111 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33112 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33113 if test $ac_cv_lib_nsl_inet_addr = yes; then
33114   INET_LINK="nsl"
33115 else
33116
33117                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33118 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33119 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33120   echo $ECHO_N "(cached) $ECHO_C" >&6
33121 else
33122   ac_check_lib_save_LIBS=$LIBS
33123 LIBS="-lresolv  $LIBS"
33124 cat >conftest.$ac_ext <<_ACEOF
33125 /* confdefs.h.  */
33126 _ACEOF
33127 cat confdefs.h >>conftest.$ac_ext
33128 cat >>conftest.$ac_ext <<_ACEOF
33129 /* end confdefs.h.  */
33130
33131 /* Override any gcc2 internal prototype to avoid an error.  */
33132 #ifdef __cplusplus
33133 extern "C"
33134 #endif
33135 /* We use char because int might match the return type of a gcc2
33136    builtin and then its argument prototype would still apply.  */
33137 char inet_addr ();
33138 int
33139 main ()
33140 {
33141 inet_addr ();
33142   ;
33143   return 0;
33144 }
33145 _ACEOF
33146 rm -f conftest.$ac_objext conftest$ac_exeext
33147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33148   (eval $ac_link) 2>conftest.er1
33149   ac_status=$?
33150   grep -v '^ *+' conftest.er1 >conftest.err
33151   rm -f conftest.er1
33152   cat conftest.err >&5
33153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33154   (exit $ac_status); } &&
33155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33157   (eval $ac_try) 2>&5
33158   ac_status=$?
33159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160   (exit $ac_status); }; } &&
33161          { ac_try='test -s conftest$ac_exeext'
33162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33163   (eval $ac_try) 2>&5
33164   ac_status=$?
33165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166   (exit $ac_status); }; }; then
33167   ac_cv_lib_resolv_inet_addr=yes
33168 else
33169   echo "$as_me: failed program was:" >&5
33170 sed 's/^/| /' conftest.$ac_ext >&5
33171
33172 ac_cv_lib_resolv_inet_addr=no
33173 fi
33174 rm -f conftest.err conftest.$ac_objext \
33175       conftest$ac_exeext conftest.$ac_ext
33176 LIBS=$ac_check_lib_save_LIBS
33177 fi
33178 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33179 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33180 if test $ac_cv_lib_resolv_inet_addr = yes; then
33181   INET_LINK="resolv"
33182 else
33183
33184                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33185 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33186 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33187   echo $ECHO_N "(cached) $ECHO_C" >&6
33188 else
33189   ac_check_lib_save_LIBS=$LIBS
33190 LIBS="-lsocket  $LIBS"
33191 cat >conftest.$ac_ext <<_ACEOF
33192 /* confdefs.h.  */
33193 _ACEOF
33194 cat confdefs.h >>conftest.$ac_ext
33195 cat >>conftest.$ac_ext <<_ACEOF
33196 /* end confdefs.h.  */
33197
33198 /* Override any gcc2 internal prototype to avoid an error.  */
33199 #ifdef __cplusplus
33200 extern "C"
33201 #endif
33202 /* We use char because int might match the return type of a gcc2
33203    builtin and then its argument prototype would still apply.  */
33204 char inet_addr ();
33205 int
33206 main ()
33207 {
33208 inet_addr ();
33209   ;
33210   return 0;
33211 }
33212 _ACEOF
33213 rm -f conftest.$ac_objext conftest$ac_exeext
33214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33215   (eval $ac_link) 2>conftest.er1
33216   ac_status=$?
33217   grep -v '^ *+' conftest.er1 >conftest.err
33218   rm -f conftest.er1
33219   cat conftest.err >&5
33220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221   (exit $ac_status); } &&
33222          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33224   (eval $ac_try) 2>&5
33225   ac_status=$?
33226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227   (exit $ac_status); }; } &&
33228          { ac_try='test -s conftest$ac_exeext'
33229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33230   (eval $ac_try) 2>&5
33231   ac_status=$?
33232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233   (exit $ac_status); }; }; then
33234   ac_cv_lib_socket_inet_addr=yes
33235 else
33236   echo "$as_me: failed program was:" >&5
33237 sed 's/^/| /' conftest.$ac_ext >&5
33238
33239 ac_cv_lib_socket_inet_addr=no
33240 fi
33241 rm -f conftest.err conftest.$ac_objext \
33242       conftest$ac_exeext conftest.$ac_ext
33243 LIBS=$ac_check_lib_save_LIBS
33244 fi
33245 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33246 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33247 if test $ac_cv_lib_socket_inet_addr = yes; then
33248   INET_LINK="socket"
33249
33250 fi
33251
33252
33253
33254 fi
33255
33256
33257
33258 fi
33259
33260
33261
33262 fi
33263 done
33264
33265
33266
33267 for ac_func in inet_aton
33268 do
33269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33270 echo "$as_me:$LINENO: checking for $ac_func" >&5
33271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33272 if eval "test \"\${$as_ac_var+set}\" = set"; then
33273   echo $ECHO_N "(cached) $ECHO_C" >&6
33274 else
33275   cat >conftest.$ac_ext <<_ACEOF
33276 /* confdefs.h.  */
33277 _ACEOF
33278 cat confdefs.h >>conftest.$ac_ext
33279 cat >>conftest.$ac_ext <<_ACEOF
33280 /* end confdefs.h.  */
33281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33283 #define $ac_func innocuous_$ac_func
33284
33285 /* System header to define __stub macros and hopefully few prototypes,
33286     which can conflict with char $ac_func (); below.
33287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33288     <limits.h> exists even on freestanding compilers.  */
33289
33290 #ifdef __STDC__
33291 # include <limits.h>
33292 #else
33293 # include <assert.h>
33294 #endif
33295
33296 #undef $ac_func
33297
33298 /* Override any gcc2 internal prototype to avoid an error.  */
33299 #ifdef __cplusplus
33300 extern "C"
33301 {
33302 #endif
33303 /* We use char because int might match the return type of a gcc2
33304    builtin and then its argument prototype would still apply.  */
33305 char $ac_func ();
33306 /* The GNU C library defines this for functions which it implements
33307     to always fail with ENOSYS.  Some functions are actually named
33308     something starting with __ and the normal name is an alias.  */
33309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33310 choke me
33311 #else
33312 char (*f) () = $ac_func;
33313 #endif
33314 #ifdef __cplusplus
33315 }
33316 #endif
33317
33318 int
33319 main ()
33320 {
33321 return f != $ac_func;
33322   ;
33323   return 0;
33324 }
33325 _ACEOF
33326 rm -f conftest.$ac_objext conftest$ac_exeext
33327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33328   (eval $ac_link) 2>conftest.er1
33329   ac_status=$?
33330   grep -v '^ *+' conftest.er1 >conftest.err
33331   rm -f conftest.er1
33332   cat conftest.err >&5
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); } &&
33335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33337   (eval $ac_try) 2>&5
33338   ac_status=$?
33339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340   (exit $ac_status); }; } &&
33341          { ac_try='test -s conftest$ac_exeext'
33342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33343   (eval $ac_try) 2>&5
33344   ac_status=$?
33345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346   (exit $ac_status); }; }; then
33347   eval "$as_ac_var=yes"
33348 else
33349   echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33351
33352 eval "$as_ac_var=no"
33353 fi
33354 rm -f conftest.err conftest.$ac_objext \
33355       conftest$ac_exeext conftest.$ac_ext
33356 fi
33357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33359 if test `eval echo '${'$as_ac_var'}'` = yes; then
33360   cat >>confdefs.h <<_ACEOF
33361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33362 _ACEOF
33363  cat >>confdefs.h <<\_ACEOF
33364 #define HAVE_INET_ATON 1
33365 _ACEOF
33366
33367 else
33368
33369                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33370 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33371 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33372 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33373   echo $ECHO_N "(cached) $ECHO_C" >&6
33374 else
33375   ac_check_lib_save_LIBS=$LIBS
33376 LIBS="-l$INET_LINK  $LIBS"
33377 cat >conftest.$ac_ext <<_ACEOF
33378 /* confdefs.h.  */
33379 _ACEOF
33380 cat confdefs.h >>conftest.$ac_ext
33381 cat >>conftest.$ac_ext <<_ACEOF
33382 /* end confdefs.h.  */
33383
33384 /* Override any gcc2 internal prototype to avoid an error.  */
33385 #ifdef __cplusplus
33386 extern "C"
33387 #endif
33388 /* We use char because int might match the return type of a gcc2
33389    builtin and then its argument prototype would still apply.  */
33390 char inet_aton ();
33391 int
33392 main ()
33393 {
33394 inet_aton ();
33395   ;
33396   return 0;
33397 }
33398 _ACEOF
33399 rm -f conftest.$ac_objext conftest$ac_exeext
33400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33401   (eval $ac_link) 2>conftest.er1
33402   ac_status=$?
33403   grep -v '^ *+' conftest.er1 >conftest.err
33404   rm -f conftest.er1
33405   cat conftest.err >&5
33406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407   (exit $ac_status); } &&
33408          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33410   (eval $ac_try) 2>&5
33411   ac_status=$?
33412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413   (exit $ac_status); }; } &&
33414          { ac_try='test -s conftest$ac_exeext'
33415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33416   (eval $ac_try) 2>&5
33417   ac_status=$?
33418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419   (exit $ac_status); }; }; then
33420   eval "$as_ac_Lib=yes"
33421 else
33422   echo "$as_me: failed program was:" >&5
33423 sed 's/^/| /' conftest.$ac_ext >&5
33424
33425 eval "$as_ac_Lib=no"
33426 fi
33427 rm -f conftest.err conftest.$ac_objext \
33428       conftest$ac_exeext conftest.$ac_ext
33429 LIBS=$ac_check_lib_save_LIBS
33430 fi
33431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33432 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33433 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33434   cat >>confdefs.h <<\_ACEOF
33435 #define HAVE_INET_ATON 1
33436 _ACEOF
33437
33438 fi
33439
33440
33441 fi
33442 done
33443
33444
33445 if test "x$INET_LINK" != "x"; then
33446     cat >>confdefs.h <<\_ACEOF
33447 #define HAVE_INET_ADDR 1
33448 _ACEOF
33449
33450     INET_LINK=" -l$INET_LINK"
33451 fi
33452
33453 fi
33454
33455
33456
33457 EXTRALIBS_ESD=
33458 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33459 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33460 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33461   echo $ECHO_N "(cached) $ECHO_C" >&6
33462 else
33463   ac_check_lib_save_LIBS=$LIBS
33464 LIBS="-lesd  $LIBS"
33465 cat >conftest.$ac_ext <<_ACEOF
33466 /* confdefs.h.  */
33467 _ACEOF
33468 cat confdefs.h >>conftest.$ac_ext
33469 cat >>conftest.$ac_ext <<_ACEOF
33470 /* end confdefs.h.  */
33471
33472 /* Override any gcc2 internal prototype to avoid an error.  */
33473 #ifdef __cplusplus
33474 extern "C"
33475 #endif
33476 /* We use char because int might match the return type of a gcc2
33477    builtin and then its argument prototype would still apply.  */
33478 char esd_close ();
33479 int
33480 main ()
33481 {
33482 esd_close ();
33483   ;
33484   return 0;
33485 }
33486 _ACEOF
33487 rm -f conftest.$ac_objext conftest$ac_exeext
33488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33489   (eval $ac_link) 2>conftest.er1
33490   ac_status=$?
33491   grep -v '^ *+' conftest.er1 >conftest.err
33492   rm -f conftest.er1
33493   cat conftest.err >&5
33494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33495   (exit $ac_status); } &&
33496          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
33502          { ac_try='test -s conftest$ac_exeext'
33503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33504   (eval $ac_try) 2>&5
33505   ac_status=$?
33506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33507   (exit $ac_status); }; }; then
33508   ac_cv_lib_esd_esd_close=yes
33509 else
33510   echo "$as_me: failed program was:" >&5
33511 sed 's/^/| /' conftest.$ac_ext >&5
33512
33513 ac_cv_lib_esd_esd_close=no
33514 fi
33515 rm -f conftest.err conftest.$ac_objext \
33516       conftest$ac_exeext conftest.$ac_ext
33517 LIBS=$ac_check_lib_save_LIBS
33518 fi
33519 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33520 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33521 if test $ac_cv_lib_esd_esd_close = yes; then
33522
33523
33524 for ac_header in esd.h
33525 do
33526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33528   echo "$as_me:$LINENO: checking for $ac_header" >&5
33529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33531   echo $ECHO_N "(cached) $ECHO_C" >&6
33532 fi
33533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33535 else
33536   # Is the header compilable?
33537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33539 cat >conftest.$ac_ext <<_ACEOF
33540 /* confdefs.h.  */
33541 _ACEOF
33542 cat confdefs.h >>conftest.$ac_ext
33543 cat >>conftest.$ac_ext <<_ACEOF
33544 /* end confdefs.h.  */
33545 $ac_includes_default
33546 #include <$ac_header>
33547 _ACEOF
33548 rm -f conftest.$ac_objext
33549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33550   (eval $ac_compile) 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_objext'
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_header_compiler=yes
33570 else
33571   echo "$as_me: failed program was:" >&5
33572 sed 's/^/| /' conftest.$ac_ext >&5
33573
33574 ac_header_compiler=no
33575 fi
33576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33578 echo "${ECHO_T}$ac_header_compiler" >&6
33579
33580 # Is the header present?
33581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33583 cat >conftest.$ac_ext <<_ACEOF
33584 /* confdefs.h.  */
33585 _ACEOF
33586 cat confdefs.h >>conftest.$ac_ext
33587 cat >>conftest.$ac_ext <<_ACEOF
33588 /* end confdefs.h.  */
33589 #include <$ac_header>
33590 _ACEOF
33591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33592   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33593   ac_status=$?
33594   grep -v '^ *+' conftest.er1 >conftest.err
33595   rm -f conftest.er1
33596   cat conftest.err >&5
33597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598   (exit $ac_status); } >/dev/null; then
33599   if test -s conftest.err; then
33600     ac_cpp_err=$ac_c_preproc_warn_flag
33601     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33602   else
33603     ac_cpp_err=
33604   fi
33605 else
33606   ac_cpp_err=yes
33607 fi
33608 if test -z "$ac_cpp_err"; then
33609   ac_header_preproc=yes
33610 else
33611   echo "$as_me: failed program was:" >&5
33612 sed 's/^/| /' conftest.$ac_ext >&5
33613
33614   ac_header_preproc=no
33615 fi
33616 rm -f conftest.err conftest.$ac_ext
33617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33618 echo "${ECHO_T}$ac_header_preproc" >&6
33619
33620 # So?  What about this header?
33621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33622   yes:no: )
33623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33627     ac_header_preproc=yes
33628     ;;
33629   no:yes:* )
33630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33642     (
33643       cat <<\_ASBOX
33644 ## ----------------------------------------- ##
33645 ## Report this to wx-dev@lists.wxwidgets.org ##
33646 ## ----------------------------------------- ##
33647 _ASBOX
33648     ) |
33649       sed "s/^/$as_me: WARNING:     /" >&2
33650     ;;
33651 esac
33652 echo "$as_me:$LINENO: checking for $ac_header" >&5
33653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33655   echo $ECHO_N "(cached) $ECHO_C" >&6
33656 else
33657   eval "$as_ac_Header=\$ac_header_preproc"
33658 fi
33659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33661
33662 fi
33663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33664   cat >>confdefs.h <<_ACEOF
33665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33666 _ACEOF
33667
33668     EXTRALIBS_ESD="-lesd"
33669
33670 fi
33671
33672 done
33673
33674
33675 fi
33676
33677
33678
33679 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33680 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33681 cat >conftest.$ac_ext <<_ACEOF
33682 /* confdefs.h.  */
33683 _ACEOF
33684 cat confdefs.h >>conftest.$ac_ext
33685 cat >>conftest.$ac_ext <<_ACEOF
33686 /* end confdefs.h.  */
33687 #ifdef __linux__
33688                 #include <linux/cdrom.h>
33689                 #else
33690                 /* For Solaris */
33691                 #include <sys/cdio.h>
33692                 #endif
33693
33694 int
33695 main ()
33696 {
33697 struct cdrom_tocentry entry, old_entry;
33698   ;
33699   return 0;
33700 }
33701 _ACEOF
33702 rm -f conftest.$ac_objext
33703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33704   (eval $ac_compile) 2>conftest.er1
33705   ac_status=$?
33706   grep -v '^ *+' conftest.er1 >conftest.err
33707   rm -f conftest.er1
33708   cat conftest.err >&5
33709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710   (exit $ac_status); } &&
33711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33713   (eval $ac_try) 2>&5
33714   ac_status=$?
33715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716   (exit $ac_status); }; } &&
33717          { ac_try='test -s conftest.$ac_objext'
33718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33719   (eval $ac_try) 2>&5
33720   ac_status=$?
33721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722   (exit $ac_status); }; }; then
33723   echo "$as_me:$LINENO: result: yes" >&5
33724 echo "${ECHO_T}yes" >&6
33725                 cat >>confdefs.h <<\_ACEOF
33726 #define HAVE_KNOWN_CDROM_INTERFACE 1
33727 _ACEOF
33728
33729 else
33730   echo "$as_me: failed program was:" >&5
33731 sed 's/^/| /' conftest.$ac_ext >&5
33732
33733 echo "$as_me:$LINENO: result: no" >&5
33734 echo "${ECHO_T}no" >&6
33735 fi
33736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33737
33738
33739 cat >confcache <<\_ACEOF
33740 # This file is a shell script that caches the results of configure
33741 # tests run on this system so they can be shared between configure
33742 # scripts and configure runs, see configure's option --config-cache.
33743 # It is not useful on other systems.  If it contains results you don't
33744 # want to keep, you may remove or edit it.
33745 #
33746 # config.status only pays attention to the cache file if you give it
33747 # the --recheck option to rerun configure.
33748 #
33749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33751 # following values.
33752
33753 _ACEOF
33754
33755 # The following way of writing the cache mishandles newlines in values,
33756 # but we know of no workaround that is simple, portable, and efficient.
33757 # So, don't put newlines in cache variables' values.
33758 # Ultrix sh set writes to stderr and can't be redirected directly,
33759 # and sets the high bit in the cache file unless we assign to the vars.
33760 {
33761   (set) 2>&1 |
33762     case `(ac_space=' '; set | grep ac_space) 2>&1` in
33763     *ac_space=\ *)
33764       # `set' does not quote correctly, so add quotes (double-quote
33765       # substitution turns \\\\ into \\, and sed turns \\ into \).
33766       sed -n \
33767         "s/'/'\\\\''/g;
33768           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33769       ;;
33770     *)
33771       # `set' quotes correctly as required by POSIX, so do not add quotes.
33772       sed -n \
33773         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
33774       ;;
33775     esac;
33776 } |
33777   sed '
33778      t clear
33779      : clear
33780      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33781      t end
33782      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33783      : end' >>confcache
33784 if diff $cache_file confcache >/dev/null 2>&1; then :; else
33785   if test -w $cache_file; then
33786     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33787     cat confcache >$cache_file
33788   else
33789     echo "not updating unwritable cache $cache_file"
33790   fi
33791 fi
33792 rm -f confcache
33793
33794
33795 CPP_MT_FLAG=
33796 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33797
33798
33799     THREADS_LINK=
33800     THREADS_CFLAGS=
33801
33802     if test "$wxUSE_THREADS" = "yes" ; then
33803         if test "$USE_BEOS" = 1; then
33804             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33805 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33806             wxUSE_THREADS="no"
33807         fi
33808     fi
33809
33810     if test "$wxUSE_THREADS" = "yes" ; then
33811
33812
33813                                 THREAD_OPTS="-pthread"
33814         case "${host}" in
33815           *-*-solaris2* | *-*-sunos4* )
33816                 if test "x$GCC" = "xyes"; then
33817                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
33818                 else
33819                     THREAD_OPTS="-mt $THREAD_OPTS"
33820                 fi
33821                 ;;
33822           *-*-freebsd*)
33823                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33824                 ;;
33825           *-*-darwin* | *-*-cygwin* )
33826                                                 THREAD_OPTS=""
33827                 ;;
33828           *-*-aix*)
33829                                 THREAD_OPTS="pthreads"
33830                 ;;
33831           *-hp-hpux* )
33832                                                                 if test "x$GCC" != "xyes"; then
33833                     THREAD_OPTS=""
33834                 fi
33835                 ;;
33836
33837           *-*-irix* )
33838                                                                 if test "x$GCC" = "xyes"; then
33839                     THREAD_OPTS=""
33840                 fi
33841                 ;;
33842
33843           *-*-*UnixWare*)
33844                                 if test "x$GCC" != "xyes"; then
33845                     THREAD_OPTS="-Ethread"
33846                 fi
33847                 ;;
33848         esac
33849
33850                                 THREAD_OPTS="$THREAD_OPTS pthread none"
33851
33852                 THREADS_OK=no
33853         for flag in $THREAD_OPTS; do
33854             case $flag in
33855                 none)
33856                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33857 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33858                     ;;
33859
33860                 -*)
33861                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33862 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33863                     THREADS_CFLAGS="$flag"
33864                     ;;
33865
33866                 *)
33867                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33868 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33869                     THREADS_LINK="-l$flag"
33870                     ;;
33871               esac
33872
33873               save_LIBS="$LIBS"
33874               save_CFLAGS="$CFLAGS"
33875               LIBS="$THREADS_LINK $LIBS"
33876               CFLAGS="$THREADS_CFLAGS $CFLAGS"
33877
33878               cat >conftest.$ac_ext <<_ACEOF
33879 /* confdefs.h.  */
33880 _ACEOF
33881 cat confdefs.h >>conftest.$ac_ext
33882 cat >>conftest.$ac_ext <<_ACEOF
33883 /* end confdefs.h.  */
33884 #include <pthread.h>
33885 int
33886 main ()
33887 {
33888 pthread_create(0,0,0,0);
33889   ;
33890   return 0;
33891 }
33892 _ACEOF
33893 rm -f conftest.$ac_objext conftest$ac_exeext
33894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33895   (eval $ac_link) 2>conftest.er1
33896   ac_status=$?
33897   grep -v '^ *+' conftest.er1 >conftest.err
33898   rm -f conftest.er1
33899   cat conftest.err >&5
33900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33901   (exit $ac_status); } &&
33902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33904   (eval $ac_try) 2>&5
33905   ac_status=$?
33906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907   (exit $ac_status); }; } &&
33908          { ac_try='test -s conftest$ac_exeext'
33909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33910   (eval $ac_try) 2>&5
33911   ac_status=$?
33912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33913   (exit $ac_status); }; }; then
33914   THREADS_OK=yes
33915 else
33916   echo "$as_me: failed program was:" >&5
33917 sed 's/^/| /' conftest.$ac_ext >&5
33918
33919 fi
33920 rm -f conftest.err conftest.$ac_objext \
33921       conftest$ac_exeext conftest.$ac_ext
33922
33923               LIBS="$save_LIBS"
33924               CFLAGS="$save_CFLAGS"
33925
33926               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33927 echo "${ECHO_T}$THREADS_OK" >&6
33928               if test "x$THREADS_OK" = "xyes"; then
33929                       break;
33930               fi
33931
33932               THREADS_LINK=""
33933               THREADS_CFLAGS=""
33934       done
33935
33936       if test "x$THREADS_OK" != "xyes"; then
33937           wxUSE_THREADS=no
33938           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33939 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33940       else
33941                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33942           LIBS="$THREADS_LINK $LIBS"
33943
33944           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33945 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33946           flag=no
33947           case "${host}" in
33948             *-aix*)
33949                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33950                 flag="-D_THREAD_SAFE"
33951                 ;;
33952             *-freebsd*)
33953                 flag="-D_THREAD_SAFE"
33954                 ;;
33955             *-hp-hpux* )
33956                 flag="-D_REENTRANT"
33957                 if test "x$GCC" != "xyes"; then
33958                                         flag="$flag -D_RWSTD_MULTI_THREAD"
33959                 fi
33960                 ;;
33961             *solaris* | alpha*-osf*)
33962                 flag="-D_REENTRANT"
33963                 ;;
33964           esac
33965           echo "$as_me:$LINENO: result: ${flag}" >&5
33966 echo "${ECHO_T}${flag}" >&6
33967           if test "x$flag" != xno; then
33968               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33969           fi
33970
33971           if test "x$THREADS_CFLAGS" != "x"; then
33972                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
33973             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33974           fi
33975       fi
33976     fi
33977
33978         if test "$wxUSE_THREADS" = "yes" ; then
33979
33980 for ac_func in thr_setconcurrency
33981 do
33982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33983 echo "$as_me:$LINENO: checking for $ac_func" >&5
33984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33985 if eval "test \"\${$as_ac_var+set}\" = set"; then
33986   echo $ECHO_N "(cached) $ECHO_C" >&6
33987 else
33988   cat >conftest.$ac_ext <<_ACEOF
33989 /* confdefs.h.  */
33990 _ACEOF
33991 cat confdefs.h >>conftest.$ac_ext
33992 cat >>conftest.$ac_ext <<_ACEOF
33993 /* end confdefs.h.  */
33994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33996 #define $ac_func innocuous_$ac_func
33997
33998 /* System header to define __stub macros and hopefully few prototypes,
33999     which can conflict with char $ac_func (); below.
34000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34001     <limits.h> exists even on freestanding compilers.  */
34002
34003 #ifdef __STDC__
34004 # include <limits.h>
34005 #else
34006 # include <assert.h>
34007 #endif
34008
34009 #undef $ac_func
34010
34011 /* Override any gcc2 internal prototype to avoid an error.  */
34012 #ifdef __cplusplus
34013 extern "C"
34014 {
34015 #endif
34016 /* We use char because int might match the return type of a gcc2
34017    builtin and then its argument prototype would still apply.  */
34018 char $ac_func ();
34019 /* The GNU C library defines this for functions which it implements
34020     to always fail with ENOSYS.  Some functions are actually named
34021     something starting with __ and the normal name is an alias.  */
34022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34023 choke me
34024 #else
34025 char (*f) () = $ac_func;
34026 #endif
34027 #ifdef __cplusplus
34028 }
34029 #endif
34030
34031 int
34032 main ()
34033 {
34034 return f != $ac_func;
34035   ;
34036   return 0;
34037 }
34038 _ACEOF
34039 rm -f conftest.$ac_objext conftest$ac_exeext
34040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34041   (eval $ac_link) 2>conftest.er1
34042   ac_status=$?
34043   grep -v '^ *+' conftest.er1 >conftest.err
34044   rm -f conftest.er1
34045   cat conftest.err >&5
34046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047   (exit $ac_status); } &&
34048          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34050   (eval $ac_try) 2>&5
34051   ac_status=$?
34052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053   (exit $ac_status); }; } &&
34054          { ac_try='test -s conftest$ac_exeext'
34055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34056   (eval $ac_try) 2>&5
34057   ac_status=$?
34058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34059   (exit $ac_status); }; }; then
34060   eval "$as_ac_var=yes"
34061 else
34062   echo "$as_me: failed program was:" >&5
34063 sed 's/^/| /' conftest.$ac_ext >&5
34064
34065 eval "$as_ac_var=no"
34066 fi
34067 rm -f conftest.err conftest.$ac_objext \
34068       conftest$ac_exeext conftest.$ac_ext
34069 fi
34070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34072 if test `eval echo '${'$as_ac_var'}'` = yes; then
34073   cat >>confdefs.h <<_ACEOF
34074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34075 _ACEOF
34076
34077 fi
34078 done
34079
34080
34081
34082 for ac_header in sched.h
34083 do
34084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34086   echo "$as_me:$LINENO: checking for $ac_header" >&5
34087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34089   echo $ECHO_N "(cached) $ECHO_C" >&6
34090 fi
34091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34093 else
34094   # Is the header compilable?
34095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34097 cat >conftest.$ac_ext <<_ACEOF
34098 /* confdefs.h.  */
34099 _ACEOF
34100 cat confdefs.h >>conftest.$ac_ext
34101 cat >>conftest.$ac_ext <<_ACEOF
34102 /* end confdefs.h.  */
34103 $ac_includes_default
34104 #include <$ac_header>
34105 _ACEOF
34106 rm -f conftest.$ac_objext
34107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34108   (eval $ac_compile) 2>conftest.er1
34109   ac_status=$?
34110   grep -v '^ *+' conftest.er1 >conftest.err
34111   rm -f conftest.er1
34112   cat conftest.err >&5
34113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114   (exit $ac_status); } &&
34115          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34117   (eval $ac_try) 2>&5
34118   ac_status=$?
34119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120   (exit $ac_status); }; } &&
34121          { ac_try='test -s conftest.$ac_objext'
34122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34123   (eval $ac_try) 2>&5
34124   ac_status=$?
34125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126   (exit $ac_status); }; }; then
34127   ac_header_compiler=yes
34128 else
34129   echo "$as_me: failed program was:" >&5
34130 sed 's/^/| /' conftest.$ac_ext >&5
34131
34132 ac_header_compiler=no
34133 fi
34134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34136 echo "${ECHO_T}$ac_header_compiler" >&6
34137
34138 # Is the header present?
34139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34141 cat >conftest.$ac_ext <<_ACEOF
34142 /* confdefs.h.  */
34143 _ACEOF
34144 cat confdefs.h >>conftest.$ac_ext
34145 cat >>conftest.$ac_ext <<_ACEOF
34146 /* end confdefs.h.  */
34147 #include <$ac_header>
34148 _ACEOF
34149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34151   ac_status=$?
34152   grep -v '^ *+' conftest.er1 >conftest.err
34153   rm -f conftest.er1
34154   cat conftest.err >&5
34155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156   (exit $ac_status); } >/dev/null; then
34157   if test -s conftest.err; then
34158     ac_cpp_err=$ac_c_preproc_warn_flag
34159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34160   else
34161     ac_cpp_err=
34162   fi
34163 else
34164   ac_cpp_err=yes
34165 fi
34166 if test -z "$ac_cpp_err"; then
34167   ac_header_preproc=yes
34168 else
34169   echo "$as_me: failed program was:" >&5
34170 sed 's/^/| /' conftest.$ac_ext >&5
34171
34172   ac_header_preproc=no
34173 fi
34174 rm -f conftest.err conftest.$ac_ext
34175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34176 echo "${ECHO_T}$ac_header_preproc" >&6
34177
34178 # So?  What about this header?
34179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34180   yes:no: )
34181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34185     ac_header_preproc=yes
34186     ;;
34187   no:yes:* )
34188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34200     (
34201       cat <<\_ASBOX
34202 ## ----------------------------------------- ##
34203 ## Report this to wx-dev@lists.wxwidgets.org ##
34204 ## ----------------------------------------- ##
34205 _ASBOX
34206     ) |
34207       sed "s/^/$as_me: WARNING:     /" >&2
34208     ;;
34209 esac
34210 echo "$as_me:$LINENO: checking for $ac_header" >&5
34211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34213   echo $ECHO_N "(cached) $ECHO_C" >&6
34214 else
34215   eval "$as_ac_Header=\$ac_header_preproc"
34216 fi
34217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34219
34220 fi
34221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34222   cat >>confdefs.h <<_ACEOF
34223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34224 _ACEOF
34225
34226 fi
34227
34228 done
34229
34230       if test "$ac_cv_header_sched_h" = "yes"; then
34231           echo "$as_me:$LINENO: checking for sched_yield" >&5
34232 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34233 if test "${ac_cv_func_sched_yield+set}" = set; then
34234   echo $ECHO_N "(cached) $ECHO_C" >&6
34235 else
34236   cat >conftest.$ac_ext <<_ACEOF
34237 /* confdefs.h.  */
34238 _ACEOF
34239 cat confdefs.h >>conftest.$ac_ext
34240 cat >>conftest.$ac_ext <<_ACEOF
34241 /* end confdefs.h.  */
34242 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34244 #define sched_yield innocuous_sched_yield
34245
34246 /* System header to define __stub macros and hopefully few prototypes,
34247     which can conflict with char sched_yield (); below.
34248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34249     <limits.h> exists even on freestanding compilers.  */
34250
34251 #ifdef __STDC__
34252 # include <limits.h>
34253 #else
34254 # include <assert.h>
34255 #endif
34256
34257 #undef sched_yield
34258
34259 /* Override any gcc2 internal prototype to avoid an error.  */
34260 #ifdef __cplusplus
34261 extern "C"
34262 {
34263 #endif
34264 /* We use char because int might match the return type of a gcc2
34265    builtin and then its argument prototype would still apply.  */
34266 char sched_yield ();
34267 /* The GNU C library defines this for functions which it implements
34268     to always fail with ENOSYS.  Some functions are actually named
34269     something starting with __ and the normal name is an alias.  */
34270 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34271 choke me
34272 #else
34273 char (*f) () = sched_yield;
34274 #endif
34275 #ifdef __cplusplus
34276 }
34277 #endif
34278
34279 int
34280 main ()
34281 {
34282 return f != sched_yield;
34283   ;
34284   return 0;
34285 }
34286 _ACEOF
34287 rm -f conftest.$ac_objext conftest$ac_exeext
34288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34289   (eval $ac_link) 2>conftest.er1
34290   ac_status=$?
34291   grep -v '^ *+' conftest.er1 >conftest.err
34292   rm -f conftest.er1
34293   cat conftest.err >&5
34294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295   (exit $ac_status); } &&
34296          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34298   (eval $ac_try) 2>&5
34299   ac_status=$?
34300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301   (exit $ac_status); }; } &&
34302          { ac_try='test -s conftest$ac_exeext'
34303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34304   (eval $ac_try) 2>&5
34305   ac_status=$?
34306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307   (exit $ac_status); }; }; then
34308   ac_cv_func_sched_yield=yes
34309 else
34310   echo "$as_me: failed program was:" >&5
34311 sed 's/^/| /' conftest.$ac_ext >&5
34312
34313 ac_cv_func_sched_yield=no
34314 fi
34315 rm -f conftest.err conftest.$ac_objext \
34316       conftest$ac_exeext conftest.$ac_ext
34317 fi
34318 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34319 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34320 if test $ac_cv_func_sched_yield = yes; then
34321   cat >>confdefs.h <<\_ACEOF
34322 #define HAVE_SCHED_YIELD 1
34323 _ACEOF
34324
34325 else
34326
34327                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34328 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34329 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34330   echo $ECHO_N "(cached) $ECHO_C" >&6
34331 else
34332   ac_check_lib_save_LIBS=$LIBS
34333 LIBS="-lposix4  $LIBS"
34334 cat >conftest.$ac_ext <<_ACEOF
34335 /* confdefs.h.  */
34336 _ACEOF
34337 cat confdefs.h >>conftest.$ac_ext
34338 cat >>conftest.$ac_ext <<_ACEOF
34339 /* end confdefs.h.  */
34340
34341 /* Override any gcc2 internal prototype to avoid an error.  */
34342 #ifdef __cplusplus
34343 extern "C"
34344 #endif
34345 /* We use char because int might match the return type of a gcc2
34346    builtin and then its argument prototype would still apply.  */
34347 char sched_yield ();
34348 int
34349 main ()
34350 {
34351 sched_yield ();
34352   ;
34353   return 0;
34354 }
34355 _ACEOF
34356 rm -f conftest.$ac_objext conftest$ac_exeext
34357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34358   (eval $ac_link) 2>conftest.er1
34359   ac_status=$?
34360   grep -v '^ *+' conftest.er1 >conftest.err
34361   rm -f conftest.er1
34362   cat conftest.err >&5
34363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364   (exit $ac_status); } &&
34365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34367   (eval $ac_try) 2>&5
34368   ac_status=$?
34369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370   (exit $ac_status); }; } &&
34371          { ac_try='test -s conftest$ac_exeext'
34372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34373   (eval $ac_try) 2>&5
34374   ac_status=$?
34375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376   (exit $ac_status); }; }; then
34377   ac_cv_lib_posix4_sched_yield=yes
34378 else
34379   echo "$as_me: failed program was:" >&5
34380 sed 's/^/| /' conftest.$ac_ext >&5
34381
34382 ac_cv_lib_posix4_sched_yield=no
34383 fi
34384 rm -f conftest.err conftest.$ac_objext \
34385       conftest$ac_exeext conftest.$ac_ext
34386 LIBS=$ac_check_lib_save_LIBS
34387 fi
34388 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34389 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34390 if test $ac_cv_lib_posix4_sched_yield = yes; then
34391   cat >>confdefs.h <<\_ACEOF
34392 #define HAVE_SCHED_YIELD 1
34393 _ACEOF
34394  POSIX4_LINK=" -lposix4"
34395 else
34396   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34397 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34398
34399 fi
34400
34401
34402
34403 fi
34404
34405       fi
34406
34407                                           HAVE_PRIOR_FUNCS=0
34408       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34409 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34410 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34411   echo $ECHO_N "(cached) $ECHO_C" >&6
34412 else
34413   cat >conftest.$ac_ext <<_ACEOF
34414 /* confdefs.h.  */
34415 _ACEOF
34416 cat confdefs.h >>conftest.$ac_ext
34417 cat >>conftest.$ac_ext <<_ACEOF
34418 /* end confdefs.h.  */
34419 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34421 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34422
34423 /* System header to define __stub macros and hopefully few prototypes,
34424     which can conflict with char pthread_attr_getschedpolicy (); below.
34425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34426     <limits.h> exists even on freestanding compilers.  */
34427
34428 #ifdef __STDC__
34429 # include <limits.h>
34430 #else
34431 # include <assert.h>
34432 #endif
34433
34434 #undef pthread_attr_getschedpolicy
34435
34436 /* Override any gcc2 internal prototype to avoid an error.  */
34437 #ifdef __cplusplus
34438 extern "C"
34439 {
34440 #endif
34441 /* We use char because int might match the return type of a gcc2
34442    builtin and then its argument prototype would still apply.  */
34443 char pthread_attr_getschedpolicy ();
34444 /* The GNU C library defines this for functions which it implements
34445     to always fail with ENOSYS.  Some functions are actually named
34446     something starting with __ and the normal name is an alias.  */
34447 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34448 choke me
34449 #else
34450 char (*f) () = pthread_attr_getschedpolicy;
34451 #endif
34452 #ifdef __cplusplus
34453 }
34454 #endif
34455
34456 int
34457 main ()
34458 {
34459 return f != pthread_attr_getschedpolicy;
34460   ;
34461   return 0;
34462 }
34463 _ACEOF
34464 rm -f conftest.$ac_objext conftest$ac_exeext
34465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34466   (eval $ac_link) 2>conftest.er1
34467   ac_status=$?
34468   grep -v '^ *+' conftest.er1 >conftest.err
34469   rm -f conftest.er1
34470   cat conftest.err >&5
34471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472   (exit $ac_status); } &&
34473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34475   (eval $ac_try) 2>&5
34476   ac_status=$?
34477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478   (exit $ac_status); }; } &&
34479          { ac_try='test -s conftest$ac_exeext'
34480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481   (eval $ac_try) 2>&5
34482   ac_status=$?
34483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484   (exit $ac_status); }; }; then
34485   ac_cv_func_pthread_attr_getschedpolicy=yes
34486 else
34487   echo "$as_me: failed program was:" >&5
34488 sed 's/^/| /' conftest.$ac_ext >&5
34489
34490 ac_cv_func_pthread_attr_getschedpolicy=no
34491 fi
34492 rm -f conftest.err conftest.$ac_objext \
34493       conftest$ac_exeext conftest.$ac_ext
34494 fi
34495 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34496 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34497 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34498   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34499 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34500 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34501   echo $ECHO_N "(cached) $ECHO_C" >&6
34502 else
34503   cat >conftest.$ac_ext <<_ACEOF
34504 /* confdefs.h.  */
34505 _ACEOF
34506 cat confdefs.h >>conftest.$ac_ext
34507 cat >>conftest.$ac_ext <<_ACEOF
34508 /* end confdefs.h.  */
34509 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34511 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34512
34513 /* System header to define __stub macros and hopefully few prototypes,
34514     which can conflict with char pthread_attr_setschedparam (); below.
34515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34516     <limits.h> exists even on freestanding compilers.  */
34517
34518 #ifdef __STDC__
34519 # include <limits.h>
34520 #else
34521 # include <assert.h>
34522 #endif
34523
34524 #undef pthread_attr_setschedparam
34525
34526 /* Override any gcc2 internal prototype to avoid an error.  */
34527 #ifdef __cplusplus
34528 extern "C"
34529 {
34530 #endif
34531 /* We use char because int might match the return type of a gcc2
34532    builtin and then its argument prototype would still apply.  */
34533 char pthread_attr_setschedparam ();
34534 /* The GNU C library defines this for functions which it implements
34535     to always fail with ENOSYS.  Some functions are actually named
34536     something starting with __ and the normal name is an alias.  */
34537 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34538 choke me
34539 #else
34540 char (*f) () = pthread_attr_setschedparam;
34541 #endif
34542 #ifdef __cplusplus
34543 }
34544 #endif
34545
34546 int
34547 main ()
34548 {
34549 return f != pthread_attr_setschedparam;
34550   ;
34551   return 0;
34552 }
34553 _ACEOF
34554 rm -f conftest.$ac_objext conftest$ac_exeext
34555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34556   (eval $ac_link) 2>conftest.er1
34557   ac_status=$?
34558   grep -v '^ *+' conftest.er1 >conftest.err
34559   rm -f conftest.er1
34560   cat conftest.err >&5
34561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562   (exit $ac_status); } &&
34563          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34565   (eval $ac_try) 2>&5
34566   ac_status=$?
34567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568   (exit $ac_status); }; } &&
34569          { ac_try='test -s conftest$ac_exeext'
34570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34571   (eval $ac_try) 2>&5
34572   ac_status=$?
34573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574   (exit $ac_status); }; }; then
34575   ac_cv_func_pthread_attr_setschedparam=yes
34576 else
34577   echo "$as_me: failed program was:" >&5
34578 sed 's/^/| /' conftest.$ac_ext >&5
34579
34580 ac_cv_func_pthread_attr_setschedparam=no
34581 fi
34582 rm -f conftest.err conftest.$ac_objext \
34583       conftest$ac_exeext conftest.$ac_ext
34584 fi
34585 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34586 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34587 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34588   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34589 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34590 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34591   echo $ECHO_N "(cached) $ECHO_C" >&6
34592 else
34593   cat >conftest.$ac_ext <<_ACEOF
34594 /* confdefs.h.  */
34595 _ACEOF
34596 cat confdefs.h >>conftest.$ac_ext
34597 cat >>conftest.$ac_ext <<_ACEOF
34598 /* end confdefs.h.  */
34599 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34601 #define sched_get_priority_max innocuous_sched_get_priority_max
34602
34603 /* System header to define __stub macros and hopefully few prototypes,
34604     which can conflict with char sched_get_priority_max (); below.
34605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34606     <limits.h> exists even on freestanding compilers.  */
34607
34608 #ifdef __STDC__
34609 # include <limits.h>
34610 #else
34611 # include <assert.h>
34612 #endif
34613
34614 #undef sched_get_priority_max
34615
34616 /* Override any gcc2 internal prototype to avoid an error.  */
34617 #ifdef __cplusplus
34618 extern "C"
34619 {
34620 #endif
34621 /* We use char because int might match the return type of a gcc2
34622    builtin and then its argument prototype would still apply.  */
34623 char sched_get_priority_max ();
34624 /* The GNU C library defines this for functions which it implements
34625     to always fail with ENOSYS.  Some functions are actually named
34626     something starting with __ and the normal name is an alias.  */
34627 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34628 choke me
34629 #else
34630 char (*f) () = sched_get_priority_max;
34631 #endif
34632 #ifdef __cplusplus
34633 }
34634 #endif
34635
34636 int
34637 main ()
34638 {
34639 return f != sched_get_priority_max;
34640   ;
34641   return 0;
34642 }
34643 _ACEOF
34644 rm -f conftest.$ac_objext conftest$ac_exeext
34645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34646   (eval $ac_link) 2>conftest.er1
34647   ac_status=$?
34648   grep -v '^ *+' conftest.er1 >conftest.err
34649   rm -f conftest.er1
34650   cat conftest.err >&5
34651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34652   (exit $ac_status); } &&
34653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34655   (eval $ac_try) 2>&5
34656   ac_status=$?
34657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658   (exit $ac_status); }; } &&
34659          { ac_try='test -s conftest$ac_exeext'
34660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34661   (eval $ac_try) 2>&5
34662   ac_status=$?
34663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34664   (exit $ac_status); }; }; then
34665   ac_cv_func_sched_get_priority_max=yes
34666 else
34667   echo "$as_me: failed program was:" >&5
34668 sed 's/^/| /' conftest.$ac_ext >&5
34669
34670 ac_cv_func_sched_get_priority_max=no
34671 fi
34672 rm -f conftest.err conftest.$ac_objext \
34673       conftest$ac_exeext conftest.$ac_ext
34674 fi
34675 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34676 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34677 if test $ac_cv_func_sched_get_priority_max = yes; then
34678   HAVE_PRIOR_FUNCS=1
34679 else
34680   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34681 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34682 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34683   echo $ECHO_N "(cached) $ECHO_C" >&6
34684 else
34685   ac_check_lib_save_LIBS=$LIBS
34686 LIBS="-lposix4  $LIBS"
34687 cat >conftest.$ac_ext <<_ACEOF
34688 /* confdefs.h.  */
34689 _ACEOF
34690 cat confdefs.h >>conftest.$ac_ext
34691 cat >>conftest.$ac_ext <<_ACEOF
34692 /* end confdefs.h.  */
34693
34694 /* Override any gcc2 internal prototype to avoid an error.  */
34695 #ifdef __cplusplus
34696 extern "C"
34697 #endif
34698 /* We use char because int might match the return type of a gcc2
34699    builtin and then its argument prototype would still apply.  */
34700 char sched_get_priority_max ();
34701 int
34702 main ()
34703 {
34704 sched_get_priority_max ();
34705   ;
34706   return 0;
34707 }
34708 _ACEOF
34709 rm -f conftest.$ac_objext conftest$ac_exeext
34710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34711   (eval $ac_link) 2>conftest.er1
34712   ac_status=$?
34713   grep -v '^ *+' conftest.er1 >conftest.err
34714   rm -f conftest.er1
34715   cat conftest.err >&5
34716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717   (exit $ac_status); } &&
34718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34720   (eval $ac_try) 2>&5
34721   ac_status=$?
34722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723   (exit $ac_status); }; } &&
34724          { ac_try='test -s conftest$ac_exeext'
34725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34726   (eval $ac_try) 2>&5
34727   ac_status=$?
34728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729   (exit $ac_status); }; }; then
34730   ac_cv_lib_posix4_sched_get_priority_max=yes
34731 else
34732   echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34734
34735 ac_cv_lib_posix4_sched_get_priority_max=no
34736 fi
34737 rm -f conftest.err conftest.$ac_objext \
34738       conftest$ac_exeext conftest.$ac_ext
34739 LIBS=$ac_check_lib_save_LIBS
34740 fi
34741 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34742 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34743 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34744
34745                                 HAVE_PRIOR_FUNCS=1
34746                                 POSIX4_LINK=" -lposix4"
34747
34748 fi
34749
34750
34751 fi
34752
34753
34754 fi
34755
34756
34757 fi
34758
34759
34760       if test "$HAVE_PRIOR_FUNCS" = 1; then
34761         cat >>confdefs.h <<\_ACEOF
34762 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34763 _ACEOF
34764
34765       else
34766         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34767 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34768       fi
34769
34770       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34771 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34772 if test "${ac_cv_func_pthread_cancel+set}" = set; then
34773   echo $ECHO_N "(cached) $ECHO_C" >&6
34774 else
34775   cat >conftest.$ac_ext <<_ACEOF
34776 /* confdefs.h.  */
34777 _ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h.  */
34781 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34783 #define pthread_cancel innocuous_pthread_cancel
34784
34785 /* System header to define __stub macros and hopefully few prototypes,
34786     which can conflict with char pthread_cancel (); below.
34787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34788     <limits.h> exists even on freestanding compilers.  */
34789
34790 #ifdef __STDC__
34791 # include <limits.h>
34792 #else
34793 # include <assert.h>
34794 #endif
34795
34796 #undef pthread_cancel
34797
34798 /* Override any gcc2 internal prototype to avoid an error.  */
34799 #ifdef __cplusplus
34800 extern "C"
34801 {
34802 #endif
34803 /* We use char because int might match the return type of a gcc2
34804    builtin and then its argument prototype would still apply.  */
34805 char pthread_cancel ();
34806 /* The GNU C library defines this for functions which it implements
34807     to always fail with ENOSYS.  Some functions are actually named
34808     something starting with __ and the normal name is an alias.  */
34809 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34810 choke me
34811 #else
34812 char (*f) () = pthread_cancel;
34813 #endif
34814 #ifdef __cplusplus
34815 }
34816 #endif
34817
34818 int
34819 main ()
34820 {
34821 return f != pthread_cancel;
34822   ;
34823   return 0;
34824 }
34825 _ACEOF
34826 rm -f conftest.$ac_objext conftest$ac_exeext
34827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34828   (eval $ac_link) 2>conftest.er1
34829   ac_status=$?
34830   grep -v '^ *+' conftest.er1 >conftest.err
34831   rm -f conftest.er1
34832   cat conftest.err >&5
34833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834   (exit $ac_status); } &&
34835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34837   (eval $ac_try) 2>&5
34838   ac_status=$?
34839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840   (exit $ac_status); }; } &&
34841          { ac_try='test -s conftest$ac_exeext'
34842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34843   (eval $ac_try) 2>&5
34844   ac_status=$?
34845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846   (exit $ac_status); }; }; then
34847   ac_cv_func_pthread_cancel=yes
34848 else
34849   echo "$as_me: failed program was:" >&5
34850 sed 's/^/| /' conftest.$ac_ext >&5
34851
34852 ac_cv_func_pthread_cancel=no
34853 fi
34854 rm -f conftest.err conftest.$ac_objext \
34855       conftest$ac_exeext conftest.$ac_ext
34856 fi
34857 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34858 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34859 if test $ac_cv_func_pthread_cancel = yes; then
34860   cat >>confdefs.h <<\_ACEOF
34861 #define HAVE_PTHREAD_CANCEL 1
34862 _ACEOF
34863
34864 else
34865   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34866 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34867 fi
34868
34869
34870
34871
34872       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34873 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34874 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34875   echo $ECHO_N "(cached) $ECHO_C" >&6
34876 else
34877
34878         cat >conftest.$ac_ext <<_ACEOF
34879 /* confdefs.h.  */
34880 _ACEOF
34881 cat confdefs.h >>conftest.$ac_ext
34882 cat >>conftest.$ac_ext <<_ACEOF
34883 /* end confdefs.h.  */
34884 #include <pthread.h>
34885 int
34886 main ()
34887 {
34888
34889                pthread_mutexattr_t attr;
34890                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34891
34892   ;
34893   return 0;
34894 }
34895 _ACEOF
34896 rm -f conftest.$ac_objext
34897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34898   (eval $ac_compile) 2>conftest.er1
34899   ac_status=$?
34900   grep -v '^ *+' conftest.er1 >conftest.err
34901   rm -f conftest.er1
34902   cat conftest.err >&5
34903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34904   (exit $ac_status); } &&
34905          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34907   (eval $ac_try) 2>&5
34908   ac_status=$?
34909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34910   (exit $ac_status); }; } &&
34911          { ac_try='test -s conftest.$ac_objext'
34912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34913   (eval $ac_try) 2>&5
34914   ac_status=$?
34915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916   (exit $ac_status); }; }; then
34917
34918                wx_cv_type_pthread_mutexattr_t=yes
34919
34920 else
34921   echo "$as_me: failed program was:" >&5
34922 sed 's/^/| /' conftest.$ac_ext >&5
34923
34924
34925                wx_cv_type_pthread_mutexattr_t=no
34926
34927
34928 fi
34929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34930
34931 fi
34932 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34933 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34934
34935       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34936         cat >>confdefs.h <<\_ACEOF
34937 #define HAVE_PTHREAD_MUTEXATTR_T 1
34938 _ACEOF
34939
34940       else
34941                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34942 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34943 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34944   echo $ECHO_N "(cached) $ECHO_C" >&6
34945 else
34946
34947             cat >conftest.$ac_ext <<_ACEOF
34948 /* confdefs.h.  */
34949 _ACEOF
34950 cat confdefs.h >>conftest.$ac_ext
34951 cat >>conftest.$ac_ext <<_ACEOF
34952 /* end confdefs.h.  */
34953 #include <pthread.h>
34954 int
34955 main ()
34956 {
34957
34958                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34959
34960   ;
34961   return 0;
34962 }
34963 _ACEOF
34964 rm -f conftest.$ac_objext
34965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34966   (eval $ac_compile) 2>conftest.er1
34967   ac_status=$?
34968   grep -v '^ *+' conftest.er1 >conftest.err
34969   rm -f conftest.er1
34970   cat conftest.err >&5
34971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34972   (exit $ac_status); } &&
34973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34975   (eval $ac_try) 2>&5
34976   ac_status=$?
34977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34978   (exit $ac_status); }; } &&
34979          { ac_try='test -s conftest.$ac_objext'
34980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34981   (eval $ac_try) 2>&5
34982   ac_status=$?
34983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984   (exit $ac_status); }; }; then
34985
34986                     wx_cv_type_pthread_rec_mutex_init=yes
34987
34988 else
34989   echo "$as_me: failed program was:" >&5
34990 sed 's/^/| /' conftest.$ac_ext >&5
34991
34992
34993                     wx_cv_type_pthread_rec_mutex_init=no
34994
34995
34996 fi
34997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34998
34999 fi
35000 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35001 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35002         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35003           cat >>confdefs.h <<\_ACEOF
35004 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35005 _ACEOF
35006
35007         else
35008                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35009 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35010         fi
35011       fi
35012     fi
35013
35014 else
35015     if test "$wxUSE_THREADS" = "yes" ; then
35016       case "${host}" in
35017         *-*-mingw32* )
35018                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35019 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35020 if test "${wx_cv_cflags_mthread+set}" = set; then
35021   echo $ECHO_N "(cached) $ECHO_C" >&6
35022 else
35023
35024                     CFLAGS_OLD="$CFLAGS"
35025                     CFLAGS="$CFLAGS -mthreads"
35026                     cat >conftest.$ac_ext <<_ACEOF
35027 /* confdefs.h.  */
35028 _ACEOF
35029 cat confdefs.h >>conftest.$ac_ext
35030 cat >>conftest.$ac_ext <<_ACEOF
35031 /* end confdefs.h.  */
35032
35033 int
35034 main ()
35035 {
35036
35037   ;
35038   return 0;
35039 }
35040 _ACEOF
35041 rm -f conftest.$ac_objext
35042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35043   (eval $ac_compile) 2>conftest.er1
35044   ac_status=$?
35045   grep -v '^ *+' conftest.er1 >conftest.err
35046   rm -f conftest.er1
35047   cat conftest.err >&5
35048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35049   (exit $ac_status); } &&
35050          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35052   (eval $ac_try) 2>&5
35053   ac_status=$?
35054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35055   (exit $ac_status); }; } &&
35056          { ac_try='test -s conftest.$ac_objext'
35057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35058   (eval $ac_try) 2>&5
35059   ac_status=$?
35060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061   (exit $ac_status); }; }; then
35062   wx_cv_cflags_mthread=yes
35063 else
35064   echo "$as_me: failed program was:" >&5
35065 sed 's/^/| /' conftest.$ac_ext >&5
35066
35067 wx_cv_cflags_mthread=no
35068
35069 fi
35070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35071
35072
35073 fi
35074 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35075 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35076
35077             if test "$wx_cv_cflags_mthread" = "yes"; then
35078                                 CXXFLAGS="$CXXFLAGS -mthreads"
35079                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35080                 LDFLAGS="$LDFLAGS -mthreads"
35081             else
35082                                 CFLAGS="$CFLAGS_OLD"
35083             fi
35084         ;;
35085         *-pc-os2*emx )
35086             CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35087             CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35088             LDFLAGS="$LDFLAGS -Zmt"
35089         ;;
35090       esac
35091     fi
35092 fi
35093
35094 if test "$wxUSE_THREADS" = "yes"; then
35095   cat >>confdefs.h <<\_ACEOF
35096 #define wxUSE_THREADS 1
35097 _ACEOF
35098
35099
35100   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35101 else
35102       if test "$ac_cv_func_strtok_r" = "yes"; then
35103     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35104 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35105     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35106         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35107         echo "$as_me:$LINENO: result: yes" >&5
35108 echo "${ECHO_T}yes" >&6
35109     else
35110         echo "$as_me:$LINENO: result: no" >&5
35111 echo "${ECHO_T}no" >&6
35112     fi
35113   fi
35114 fi
35115
35116 if test "$WXGTK20" = 1 ; then
35117   cat >>confdefs.h <<_ACEOF
35118 #define __WXGTK20__ $WXGTK20
35119 _ACEOF
35120
35121   WXGTK12=1
35122 fi
35123
35124 if test "$WXGTK12" = 1 ; then
35125   cat >>confdefs.h <<_ACEOF
35126 #define __WXGTK12__ $WXGTK12
35127 _ACEOF
35128
35129 fi
35130
35131 if test "$WXGTK127" = 1 ; then
35132   cat >>confdefs.h <<_ACEOF
35133 #define __WXGTK127__ $WXGTK127
35134 _ACEOF
35135
35136 fi
35137
35138 if test "$WXGPE" = 1 ; then
35139   cat >>confdefs.h <<_ACEOF
35140 #define __WXGPE__ $WXGPE
35141 _ACEOF
35142
35143 fi
35144
35145 WXDEBUG=
35146
35147 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35148     WXDEBUG="-g"
35149     wxUSE_OPTIMISE=no
35150 fi
35151
35152 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35153     wxUSE_DEBUG_INFO=yes
35154     WXDEBUG="-ggdb"
35155 fi
35156
35157 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35158     cat >>confdefs.h <<\_ACEOF
35159 #define WXDEBUG 1
35160 _ACEOF
35161
35162     WXDEBUG_DEFINE="-D__WXDEBUG__"
35163 else
35164     if test "$wxUSE_GTK" = 1 ; then
35165         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35166     fi
35167 fi
35168
35169 if test "$wxUSE_MEM_TRACING" = "yes" ; then
35170     cat >>confdefs.h <<\_ACEOF
35171 #define wxUSE_MEMORY_TRACING 1
35172 _ACEOF
35173
35174     cat >>confdefs.h <<\_ACEOF
35175 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35176 _ACEOF
35177
35178     cat >>confdefs.h <<\_ACEOF
35179 #define wxUSE_DEBUG_NEW_ALWAYS 1
35180 _ACEOF
35181
35182     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35183 fi
35184
35185 if test "$wxUSE_DMALLOC" = "yes" ; then
35186     DMALLOC_LIBS="-ldmalloc"
35187 fi
35188
35189 PROFILE=
35190 if test "$wxUSE_PROFILE" = "yes" ; then
35191     PROFILE=" -pg"
35192 fi
35193
35194 CODE_GEN_FLAGS=
35195 CODE_GEN_FLAGS_CXX=
35196 if test "$GCC" = "yes" ; then
35197     if test "$wxUSE_NO_RTTI" = "yes" ; then
35198         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35199     fi
35200     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35201         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35202     fi
35203     if test "$wxUSE_PERMISSIVE" = "yes" ; then
35204         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35205     fi
35206
35207                                                 case "${host}" in
35208       powerpc*-*-aix* )
35209         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35210         ;;
35211       *-hppa* )
35212         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35213         ;;
35214     esac
35215 fi
35216
35217 OPTIMISE=
35218 if test "$wxUSE_OPTIMISE" = "no" ; then
35219     if test "$GCC" = yes ; then
35220                         OPTIMISE="-O0"
35221     fi
35222 else
35223     if test "$GCC" = yes ; then
35224         OPTIMISE="-O2"
35225
35226                 case "${host}" in
35227             i586-*-*|i686-*-* )
35228             OPTIMISE="${OPTIMISE} "
35229         ;;
35230         esac
35231     else
35232         OPTIMISE="-O"
35233     fi
35234 fi
35235
35236
35237 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35238     cat >>confdefs.h <<\_ACEOF
35239 #define WXWIN_COMPATIBILITY_2_2 1
35240 _ACEOF
35241
35242
35243     WXWIN_COMPATIBILITY_2_4="yes"
35244 fi
35245
35246 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35247     cat >>confdefs.h <<\_ACEOF
35248 #define WXWIN_COMPATIBILITY_2_4 1
35249 _ACEOF
35250
35251 fi
35252
35253
35254 if test "$wxUSE_GUI" = "yes"; then
35255     cat >>confdefs.h <<\_ACEOF
35256 #define wxUSE_GUI 1
35257 _ACEOF
35258
35259
35260                                             fi
35261
35262
35263 if test "$wxUSE_UNIX" = "yes"; then
35264   cat >>confdefs.h <<\_ACEOF
35265 #define wxUSE_UNIX 1
35266 _ACEOF
35267
35268 fi
35269
35270
35271 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35272
35273     HAVE_DL_FUNCS=0
35274     HAVE_SHL_FUNCS=0
35275     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35276         if test "$USE_DARWIN" = 1; then
35277                         HAVE_DL_FUNCS=1
35278         else
35279
35280 for ac_func in dlopen
35281 do
35282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35283 echo "$as_me:$LINENO: checking for $ac_func" >&5
35284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35285 if eval "test \"\${$as_ac_var+set}\" = set"; then
35286   echo $ECHO_N "(cached) $ECHO_C" >&6
35287 else
35288   cat >conftest.$ac_ext <<_ACEOF
35289 /* confdefs.h.  */
35290 _ACEOF
35291 cat confdefs.h >>conftest.$ac_ext
35292 cat >>conftest.$ac_ext <<_ACEOF
35293 /* end confdefs.h.  */
35294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35296 #define $ac_func innocuous_$ac_func
35297
35298 /* System header to define __stub macros and hopefully few prototypes,
35299     which can conflict with char $ac_func (); below.
35300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35301     <limits.h> exists even on freestanding compilers.  */
35302
35303 #ifdef __STDC__
35304 # include <limits.h>
35305 #else
35306 # include <assert.h>
35307 #endif
35308
35309 #undef $ac_func
35310
35311 /* Override any gcc2 internal prototype to avoid an error.  */
35312 #ifdef __cplusplus
35313 extern "C"
35314 {
35315 #endif
35316 /* We use char because int might match the return type of a gcc2
35317    builtin and then its argument prototype would still apply.  */
35318 char $ac_func ();
35319 /* The GNU C library defines this for functions which it implements
35320     to always fail with ENOSYS.  Some functions are actually named
35321     something starting with __ and the normal name is an alias.  */
35322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35323 choke me
35324 #else
35325 char (*f) () = $ac_func;
35326 #endif
35327 #ifdef __cplusplus
35328 }
35329 #endif
35330
35331 int
35332 main ()
35333 {
35334 return f != $ac_func;
35335   ;
35336   return 0;
35337 }
35338 _ACEOF
35339 rm -f conftest.$ac_objext conftest$ac_exeext
35340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35341   (eval $ac_link) 2>conftest.er1
35342   ac_status=$?
35343   grep -v '^ *+' conftest.er1 >conftest.err
35344   rm -f conftest.er1
35345   cat conftest.err >&5
35346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347   (exit $ac_status); } &&
35348          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35350   (eval $ac_try) 2>&5
35351   ac_status=$?
35352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353   (exit $ac_status); }; } &&
35354          { ac_try='test -s conftest$ac_exeext'
35355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35356   (eval $ac_try) 2>&5
35357   ac_status=$?
35358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359   (exit $ac_status); }; }; then
35360   eval "$as_ac_var=yes"
35361 else
35362   echo "$as_me: failed program was:" >&5
35363 sed 's/^/| /' conftest.$ac_ext >&5
35364
35365 eval "$as_ac_var=no"
35366 fi
35367 rm -f conftest.err conftest.$ac_objext \
35368       conftest$ac_exeext conftest.$ac_ext
35369 fi
35370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35372 if test `eval echo '${'$as_ac_var'}'` = yes; then
35373   cat >>confdefs.h <<_ACEOF
35374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35375 _ACEOF
35376
35377                 cat >>confdefs.h <<\_ACEOF
35378 #define HAVE_DLOPEN 1
35379 _ACEOF
35380
35381                 HAVE_DL_FUNCS=1
35382
35383 else
35384
35385                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35386 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35387 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35388   echo $ECHO_N "(cached) $ECHO_C" >&6
35389 else
35390   ac_check_lib_save_LIBS=$LIBS
35391 LIBS="-ldl  $LIBS"
35392 cat >conftest.$ac_ext <<_ACEOF
35393 /* confdefs.h.  */
35394 _ACEOF
35395 cat confdefs.h >>conftest.$ac_ext
35396 cat >>conftest.$ac_ext <<_ACEOF
35397 /* end confdefs.h.  */
35398
35399 /* Override any gcc2 internal prototype to avoid an error.  */
35400 #ifdef __cplusplus
35401 extern "C"
35402 #endif
35403 /* We use char because int might match the return type of a gcc2
35404    builtin and then its argument prototype would still apply.  */
35405 char dlopen ();
35406 int
35407 main ()
35408 {
35409 dlopen ();
35410   ;
35411   return 0;
35412 }
35413 _ACEOF
35414 rm -f conftest.$ac_objext conftest$ac_exeext
35415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35416   (eval $ac_link) 2>conftest.er1
35417   ac_status=$?
35418   grep -v '^ *+' conftest.er1 >conftest.err
35419   rm -f conftest.er1
35420   cat conftest.err >&5
35421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35422   (exit $ac_status); } &&
35423          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35425   (eval $ac_try) 2>&5
35426   ac_status=$?
35427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35428   (exit $ac_status); }; } &&
35429          { ac_try='test -s conftest$ac_exeext'
35430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35431   (eval $ac_try) 2>&5
35432   ac_status=$?
35433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434   (exit $ac_status); }; }; then
35435   ac_cv_lib_dl_dlopen=yes
35436 else
35437   echo "$as_me: failed program was:" >&5
35438 sed 's/^/| /' conftest.$ac_ext >&5
35439
35440 ac_cv_lib_dl_dlopen=no
35441 fi
35442 rm -f conftest.err conftest.$ac_objext \
35443       conftest$ac_exeext conftest.$ac_ext
35444 LIBS=$ac_check_lib_save_LIBS
35445 fi
35446 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35447 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35448 if test $ac_cv_lib_dl_dlopen = yes; then
35449
35450                                 cat >>confdefs.h <<\_ACEOF
35451 #define HAVE_DLOPEN 1
35452 _ACEOF
35453
35454                                 HAVE_DL_FUNCS=1
35455                                 DL_LINK=" -ldl$DL_LINK"
35456
35457 else
35458
35459
35460 for ac_func in shl_load
35461 do
35462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35463 echo "$as_me:$LINENO: checking for $ac_func" >&5
35464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35465 if eval "test \"\${$as_ac_var+set}\" = set"; then
35466   echo $ECHO_N "(cached) $ECHO_C" >&6
35467 else
35468   cat >conftest.$ac_ext <<_ACEOF
35469 /* confdefs.h.  */
35470 _ACEOF
35471 cat confdefs.h >>conftest.$ac_ext
35472 cat >>conftest.$ac_ext <<_ACEOF
35473 /* end confdefs.h.  */
35474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35476 #define $ac_func innocuous_$ac_func
35477
35478 /* System header to define __stub macros and hopefully few prototypes,
35479     which can conflict with char $ac_func (); below.
35480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35481     <limits.h> exists even on freestanding compilers.  */
35482
35483 #ifdef __STDC__
35484 # include <limits.h>
35485 #else
35486 # include <assert.h>
35487 #endif
35488
35489 #undef $ac_func
35490
35491 /* Override any gcc2 internal prototype to avoid an error.  */
35492 #ifdef __cplusplus
35493 extern "C"
35494 {
35495 #endif
35496 /* We use char because int might match the return type of a gcc2
35497    builtin and then its argument prototype would still apply.  */
35498 char $ac_func ();
35499 /* The GNU C library defines this for functions which it implements
35500     to always fail with ENOSYS.  Some functions are actually named
35501     something starting with __ and the normal name is an alias.  */
35502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35503 choke me
35504 #else
35505 char (*f) () = $ac_func;
35506 #endif
35507 #ifdef __cplusplus
35508 }
35509 #endif
35510
35511 int
35512 main ()
35513 {
35514 return f != $ac_func;
35515   ;
35516   return 0;
35517 }
35518 _ACEOF
35519 rm -f conftest.$ac_objext conftest$ac_exeext
35520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35521   (eval $ac_link) 2>conftest.er1
35522   ac_status=$?
35523   grep -v '^ *+' conftest.er1 >conftest.err
35524   rm -f conftest.er1
35525   cat conftest.err >&5
35526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527   (exit $ac_status); } &&
35528          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35530   (eval $ac_try) 2>&5
35531   ac_status=$?
35532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35533   (exit $ac_status); }; } &&
35534          { ac_try='test -s conftest$ac_exeext'
35535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35536   (eval $ac_try) 2>&5
35537   ac_status=$?
35538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539   (exit $ac_status); }; }; then
35540   eval "$as_ac_var=yes"
35541 else
35542   echo "$as_me: failed program was:" >&5
35543 sed 's/^/| /' conftest.$ac_ext >&5
35544
35545 eval "$as_ac_var=no"
35546 fi
35547 rm -f conftest.err conftest.$ac_objext \
35548       conftest$ac_exeext conftest.$ac_ext
35549 fi
35550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35552 if test `eval echo '${'$as_ac_var'}'` = yes; then
35553   cat >>confdefs.h <<_ACEOF
35554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35555 _ACEOF
35556
35557                                                 cat >>confdefs.h <<\_ACEOF
35558 #define HAVE_SHL_LOAD 1
35559 _ACEOF
35560
35561                                                 HAVE_SHL_FUNCS=1
35562
35563 else
35564
35565                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35566 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35567 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35568   echo $ECHO_N "(cached) $ECHO_C" >&6
35569 else
35570   ac_check_lib_save_LIBS=$LIBS
35571 LIBS="-lshl_load  $LIBS"
35572 cat >conftest.$ac_ext <<_ACEOF
35573 /* confdefs.h.  */
35574 _ACEOF
35575 cat confdefs.h >>conftest.$ac_ext
35576 cat >>conftest.$ac_ext <<_ACEOF
35577 /* end confdefs.h.  */
35578
35579 /* Override any gcc2 internal prototype to avoid an error.  */
35580 #ifdef __cplusplus
35581 extern "C"
35582 #endif
35583 /* We use char because int might match the return type of a gcc2
35584    builtin and then its argument prototype would still apply.  */
35585 char dld ();
35586 int
35587 main ()
35588 {
35589 dld ();
35590   ;
35591   return 0;
35592 }
35593 _ACEOF
35594 rm -f conftest.$ac_objext conftest$ac_exeext
35595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35596   (eval $ac_link) 2>conftest.er1
35597   ac_status=$?
35598   grep -v '^ *+' conftest.er1 >conftest.err
35599   rm -f conftest.er1
35600   cat conftest.err >&5
35601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602   (exit $ac_status); } &&
35603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35605   (eval $ac_try) 2>&5
35606   ac_status=$?
35607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608   (exit $ac_status); }; } &&
35609          { ac_try='test -s conftest$ac_exeext'
35610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35611   (eval $ac_try) 2>&5
35612   ac_status=$?
35613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614   (exit $ac_status); }; }; then
35615   ac_cv_lib_shl_load_dld=yes
35616 else
35617   echo "$as_me: failed program was:" >&5
35618 sed 's/^/| /' conftest.$ac_ext >&5
35619
35620 ac_cv_lib_shl_load_dld=no
35621 fi
35622 rm -f conftest.err conftest.$ac_objext \
35623       conftest$ac_exeext conftest.$ac_ext
35624 LIBS=$ac_check_lib_save_LIBS
35625 fi
35626 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35627 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35628 if test $ac_cv_lib_shl_load_dld = yes; then
35629
35630                                                                 HAVE_SHL_FUNCS=1
35631                                                                 DL_LINK=" -ldld$DL_LINK"
35632
35633 fi
35634
35635
35636 fi
35637 done
35638
35639
35640 fi
35641
35642
35643 fi
35644 done
35645
35646
35647                 if test "$HAVE_DL_FUNCS" = 1; then
35648
35649 for ac_func in dlerror
35650 do
35651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35652 echo "$as_me:$LINENO: checking for $ac_func" >&5
35653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35654 if eval "test \"\${$as_ac_var+set}\" = set"; then
35655   echo $ECHO_N "(cached) $ECHO_C" >&6
35656 else
35657   cat >conftest.$ac_ext <<_ACEOF
35658 /* confdefs.h.  */
35659 _ACEOF
35660 cat confdefs.h >>conftest.$ac_ext
35661 cat >>conftest.$ac_ext <<_ACEOF
35662 /* end confdefs.h.  */
35663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35665 #define $ac_func innocuous_$ac_func
35666
35667 /* System header to define __stub macros and hopefully few prototypes,
35668     which can conflict with char $ac_func (); below.
35669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35670     <limits.h> exists even on freestanding compilers.  */
35671
35672 #ifdef __STDC__
35673 # include <limits.h>
35674 #else
35675 # include <assert.h>
35676 #endif
35677
35678 #undef $ac_func
35679
35680 /* Override any gcc2 internal prototype to avoid an error.  */
35681 #ifdef __cplusplus
35682 extern "C"
35683 {
35684 #endif
35685 /* We use char because int might match the return type of a gcc2
35686    builtin and then its argument prototype would still apply.  */
35687 char $ac_func ();
35688 /* The GNU C library defines this for functions which it implements
35689     to always fail with ENOSYS.  Some functions are actually named
35690     something starting with __ and the normal name is an alias.  */
35691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35692 choke me
35693 #else
35694 char (*f) () = $ac_func;
35695 #endif
35696 #ifdef __cplusplus
35697 }
35698 #endif
35699
35700 int
35701 main ()
35702 {
35703 return f != $ac_func;
35704   ;
35705   return 0;
35706 }
35707 _ACEOF
35708 rm -f conftest.$ac_objext conftest$ac_exeext
35709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35710   (eval $ac_link) 2>conftest.er1
35711   ac_status=$?
35712   grep -v '^ *+' conftest.er1 >conftest.err
35713   rm -f conftest.er1
35714   cat conftest.err >&5
35715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35716   (exit $ac_status); } &&
35717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35719   (eval $ac_try) 2>&5
35720   ac_status=$?
35721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35722   (exit $ac_status); }; } &&
35723          { ac_try='test -s conftest$ac_exeext'
35724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35725   (eval $ac_try) 2>&5
35726   ac_status=$?
35727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728   (exit $ac_status); }; }; then
35729   eval "$as_ac_var=yes"
35730 else
35731   echo "$as_me: failed program was:" >&5
35732 sed 's/^/| /' conftest.$ac_ext >&5
35733
35734 eval "$as_ac_var=no"
35735 fi
35736 rm -f conftest.err conftest.$ac_objext \
35737       conftest$ac_exeext conftest.$ac_ext
35738 fi
35739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35741 if test `eval echo '${'$as_ac_var'}'` = yes; then
35742   cat >>confdefs.h <<_ACEOF
35743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35744 _ACEOF
35745  cat >>confdefs.h <<\_ACEOF
35746 #define HAVE_DLERROR 1
35747 _ACEOF
35748
35749 else
35750
35751                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35752 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35753 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35754   echo $ECHO_N "(cached) $ECHO_C" >&6
35755 else
35756   ac_check_lib_save_LIBS=$LIBS
35757 LIBS="-ldl  $LIBS"
35758 cat >conftest.$ac_ext <<_ACEOF
35759 /* confdefs.h.  */
35760 _ACEOF
35761 cat confdefs.h >>conftest.$ac_ext
35762 cat >>conftest.$ac_ext <<_ACEOF
35763 /* end confdefs.h.  */
35764
35765 /* Override any gcc2 internal prototype to avoid an error.  */
35766 #ifdef __cplusplus
35767 extern "C"
35768 #endif
35769 /* We use char because int might match the return type of a gcc2
35770    builtin and then its argument prototype would still apply.  */
35771 char dlerror ();
35772 int
35773 main ()
35774 {
35775 dlerror ();
35776   ;
35777   return 0;
35778 }
35779 _ACEOF
35780 rm -f conftest.$ac_objext conftest$ac_exeext
35781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35782   (eval $ac_link) 2>conftest.er1
35783   ac_status=$?
35784   grep -v '^ *+' conftest.er1 >conftest.err
35785   rm -f conftest.er1
35786   cat conftest.err >&5
35787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788   (exit $ac_status); } &&
35789          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35791   (eval $ac_try) 2>&5
35792   ac_status=$?
35793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794   (exit $ac_status); }; } &&
35795          { ac_try='test -s conftest$ac_exeext'
35796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35797   (eval $ac_try) 2>&5
35798   ac_status=$?
35799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800   (exit $ac_status); }; }; then
35801   ac_cv_lib_dl_dlerror=yes
35802 else
35803   echo "$as_me: failed program was:" >&5
35804 sed 's/^/| /' conftest.$ac_ext >&5
35805
35806 ac_cv_lib_dl_dlerror=no
35807 fi
35808 rm -f conftest.err conftest.$ac_objext \
35809       conftest$ac_exeext conftest.$ac_ext
35810 LIBS=$ac_check_lib_save_LIBS
35811 fi
35812 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35813 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35814 if test $ac_cv_lib_dl_dlerror = yes; then
35815   cat >>confdefs.h <<\_ACEOF
35816 #define HAVE_DLERROR 1
35817 _ACEOF
35818
35819 fi
35820
35821
35822
35823 fi
35824 done
35825
35826         fi
35827         fi
35828
35829         if test "$HAVE_DL_FUNCS" = 0; then
35830             if test "$HAVE_SHL_FUNCS" = 0; then
35831               if test "$USE_UNIX" = 1; then
35832                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35833 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35834                   wxUSE_DYNAMIC_LOADER=no
35835                   wxUSE_DYNLIB_CLASS=no
35836               else
35837                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35838 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35839               fi
35840             fi
35841         fi
35842     fi
35843 fi
35844
35845 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35846     cat >>confdefs.h <<\_ACEOF
35847 #define wxUSE_DYNAMIC_LOADER 1
35848 _ACEOF
35849
35850 fi
35851 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35852     cat >>confdefs.h <<\_ACEOF
35853 #define wxUSE_DYNLIB_CLASS 1
35854 _ACEOF
35855
35856 fi
35857
35858
35859
35860 if test "$wxUSE_PLUGINS" = "yes" ; then
35861     if test "$wxUSE_SHARED" = "no" ; then
35862         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35863 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35864         wxUSE_PLUGINS=no
35865     fi
35866     if test "$wxUSE_MONOLITHIC" = "yes" ; then
35867         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35868 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35869         wxUSE_PLUGINS=no
35870     fi
35871     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35872         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35873 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35874         wxUSE_PLUGINS=no
35875     fi
35876     if test "$wxUSE_PLUGINS" = "yes" ; then
35877         cat >>confdefs.h <<\_ACEOF
35878 #define wxUSE_PLUGINS 1
35879 _ACEOF
35880
35881     fi
35882 fi
35883
35884
35885 if test "$wxUSE_STL" = "yes"; then
35886   cat >>confdefs.h <<\_ACEOF
35887 #define wxUSE_STL 1
35888 _ACEOF
35889
35890 fi
35891
35892 if test "$wxUSE_APPLE_IEEE" = "yes"; then
35893   cat >>confdefs.h <<\_ACEOF
35894 #define wxUSE_APPLE_IEEE 1
35895 _ACEOF
35896
35897 fi
35898
35899 if test "$wxUSE_TIMER" = "yes"; then
35900   cat >>confdefs.h <<\_ACEOF
35901 #define wxUSE_TIMER 1
35902 _ACEOF
35903
35904 fi
35905
35906 WITH_PLUGIN_SDL=0
35907 if test "$wxUSE_SOUND" = "yes"; then
35908       if test "$USE_UNIX" = "1" ; then
35909
35910 for ac_header in sys/soundcard.h
35911 do
35912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35914   echo "$as_me:$LINENO: checking for $ac_header" >&5
35915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35917   echo $ECHO_N "(cached) $ECHO_C" >&6
35918 fi
35919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35921 else
35922   # Is the header compilable?
35923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35925 cat >conftest.$ac_ext <<_ACEOF
35926 /* confdefs.h.  */
35927 _ACEOF
35928 cat confdefs.h >>conftest.$ac_ext
35929 cat >>conftest.$ac_ext <<_ACEOF
35930 /* end confdefs.h.  */
35931 $ac_includes_default
35932 #include <$ac_header>
35933 _ACEOF
35934 rm -f conftest.$ac_objext
35935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35936   (eval $ac_compile) 2>conftest.er1
35937   ac_status=$?
35938   grep -v '^ *+' conftest.er1 >conftest.err
35939   rm -f conftest.er1
35940   cat conftest.err >&5
35941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942   (exit $ac_status); } &&
35943          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35945   (eval $ac_try) 2>&5
35946   ac_status=$?
35947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948   (exit $ac_status); }; } &&
35949          { ac_try='test -s conftest.$ac_objext'
35950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951   (eval $ac_try) 2>&5
35952   ac_status=$?
35953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954   (exit $ac_status); }; }; then
35955   ac_header_compiler=yes
35956 else
35957   echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35959
35960 ac_header_compiler=no
35961 fi
35962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35964 echo "${ECHO_T}$ac_header_compiler" >&6
35965
35966 # Is the header present?
35967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35969 cat >conftest.$ac_ext <<_ACEOF
35970 /* confdefs.h.  */
35971 _ACEOF
35972 cat confdefs.h >>conftest.$ac_ext
35973 cat >>conftest.$ac_ext <<_ACEOF
35974 /* end confdefs.h.  */
35975 #include <$ac_header>
35976 _ACEOF
35977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35979   ac_status=$?
35980   grep -v '^ *+' conftest.er1 >conftest.err
35981   rm -f conftest.er1
35982   cat conftest.err >&5
35983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984   (exit $ac_status); } >/dev/null; then
35985   if test -s conftest.err; then
35986     ac_cpp_err=$ac_c_preproc_warn_flag
35987     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35988   else
35989     ac_cpp_err=
35990   fi
35991 else
35992   ac_cpp_err=yes
35993 fi
35994 if test -z "$ac_cpp_err"; then
35995   ac_header_preproc=yes
35996 else
35997   echo "$as_me: failed program was:" >&5
35998 sed 's/^/| /' conftest.$ac_ext >&5
35999
36000   ac_header_preproc=no
36001 fi
36002 rm -f conftest.err conftest.$ac_ext
36003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36004 echo "${ECHO_T}$ac_header_preproc" >&6
36005
36006 # So?  What about this header?
36007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36008   yes:no: )
36009     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36013     ac_header_preproc=yes
36014     ;;
36015   no:yes:* )
36016     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36018     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36019 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36020     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36022     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36023 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36026     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36028     (
36029       cat <<\_ASBOX
36030 ## ----------------------------------------- ##
36031 ## Report this to wx-dev@lists.wxwidgets.org ##
36032 ## ----------------------------------------- ##
36033 _ASBOX
36034     ) |
36035       sed "s/^/$as_me: WARNING:     /" >&2
36036     ;;
36037 esac
36038 echo "$as_me:$LINENO: checking for $ac_header" >&5
36039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36041   echo $ECHO_N "(cached) $ECHO_C" >&6
36042 else
36043   eval "$as_ac_Header=\$ac_header_preproc"
36044 fi
36045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36047
36048 fi
36049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36050   cat >>confdefs.h <<_ACEOF
36051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36052 _ACEOF
36053
36054 fi
36055
36056 done
36057
36058
36059     if test "$wxUSE_LIBSDL" != "no"; then
36060
36061 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36062 if test "${with_sdl_prefix+set}" = set; then
36063   withval="$with_sdl_prefix"
36064   sdl_prefix="$withval"
36065 else
36066   sdl_prefix=""
36067 fi;
36068
36069 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36070 if test "${with_sdl_exec_prefix+set}" = set; then
36071   withval="$with_sdl_exec_prefix"
36072   sdl_exec_prefix="$withval"
36073 else
36074   sdl_exec_prefix=""
36075 fi;
36076 # Check whether --enable-sdltest or --disable-sdltest was given.
36077 if test "${enable_sdltest+set}" = set; then
36078   enableval="$enable_sdltest"
36079
36080 else
36081   enable_sdltest=yes
36082 fi;
36083
36084   if test x$sdl_exec_prefix != x ; then
36085      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36086      if test x${SDL_CONFIG+set} != xset ; then
36087         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36088      fi
36089   fi
36090   if test x$sdl_prefix != x ; then
36091      sdl_args="$sdl_args --prefix=$sdl_prefix"
36092      if test x${SDL_CONFIG+set} != xset ; then
36093         SDL_CONFIG=$sdl_prefix/bin/sdl-config
36094      fi
36095   fi
36096
36097
36098   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36099   # Extract the first word of "sdl-config", so it can be a program name with args.
36100 set dummy sdl-config; ac_word=$2
36101 echo "$as_me:$LINENO: checking for $ac_word" >&5
36102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36103 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36104   echo $ECHO_N "(cached) $ECHO_C" >&6
36105 else
36106   case $SDL_CONFIG in
36107   [\\/]* | ?:[\\/]*)
36108   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36109   ;;
36110   *)
36111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36112 for as_dir in $PATH
36113 do
36114   IFS=$as_save_IFS
36115   test -z "$as_dir" && as_dir=.
36116   for ac_exec_ext in '' $ac_executable_extensions; do
36117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36118     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36120     break 2
36121   fi
36122 done
36123 done
36124
36125   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36126   ;;
36127 esac
36128 fi
36129 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36130
36131 if test -n "$SDL_CONFIG"; then
36132   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36133 echo "${ECHO_T}$SDL_CONFIG" >&6
36134 else
36135   echo "$as_me:$LINENO: result: no" >&5
36136 echo "${ECHO_T}no" >&6
36137 fi
36138
36139   min_sdl_version=1.2.0
36140   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36141 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36142   no_sdl=""
36143   if test "$SDL_CONFIG" = "no" ; then
36144     no_sdl=yes
36145   else
36146     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36147     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36148
36149     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36150            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36151     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36152            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36153     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36154            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36155     if test "x$enable_sdltest" = "xyes" ; then
36156       ac_save_CFLAGS="$CFLAGS"
36157       ac_save_CXXFLAGS="$CXXFLAGS"
36158       ac_save_LIBS="$LIBS"
36159       CFLAGS="$CFLAGS $SDL_CFLAGS"
36160       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36161       LIBS="$LIBS $SDL_LIBS"
36162       rm -f conf.sdltest
36163       if test "$cross_compiling" = yes; then
36164   echo $ac_n "cross compiling; assumed OK... $ac_c"
36165 else
36166   cat >conftest.$ac_ext <<_ACEOF
36167 /* confdefs.h.  */
36168 _ACEOF
36169 cat confdefs.h >>conftest.$ac_ext
36170 cat >>conftest.$ac_ext <<_ACEOF
36171 /* end confdefs.h.  */
36172
36173 #include <stdio.h>
36174 #include <stdlib.h>
36175 #include <string.h>
36176 #include "SDL.h"
36177
36178 char*
36179 my_strdup (char *str)
36180 {
36181   char *new_str;
36182
36183   if (str)
36184     {
36185       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36186       strcpy (new_str, str);
36187     }
36188   else
36189     new_str = NULL;
36190
36191   return new_str;
36192 }
36193
36194 int main (int argc, char *argv[])
36195 {
36196   int major, minor, micro;
36197   char *tmp_version;
36198
36199   /* This hangs on some systems (?)
36200   system ("touch conf.sdltest");
36201   */
36202   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36203
36204   /* HP/UX 9 (%@#!) writes to sscanf strings */
36205   tmp_version = my_strdup("$min_sdl_version");
36206   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36207      printf("%s, bad version string\n", "$min_sdl_version");
36208      exit(1);
36209    }
36210
36211    if (($sdl_major_version > major) ||
36212       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36213       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36214     {
36215       return 0;
36216     }
36217   else
36218     {
36219       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36220       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36221       printf("*** best to upgrade to the required version.\n");
36222       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36223       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36224       printf("*** config.cache before re-running configure\n");
36225       return 1;
36226     }
36227 }
36228
36229
36230 _ACEOF
36231 rm -f conftest$ac_exeext
36232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36233   (eval $ac_link) 2>&5
36234   ac_status=$?
36235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36238   (eval $ac_try) 2>&5
36239   ac_status=$?
36240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241   (exit $ac_status); }; }; then
36242   :
36243 else
36244   echo "$as_me: program exited with status $ac_status" >&5
36245 echo "$as_me: failed program was:" >&5
36246 sed 's/^/| /' conftest.$ac_ext >&5
36247
36248 ( exit $ac_status )
36249 no_sdl=yes
36250 fi
36251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36252 fi
36253        CFLAGS="$ac_save_CFLAGS"
36254        CXXFLAGS="$ac_save_CXXFLAGS"
36255        LIBS="$ac_save_LIBS"
36256      fi
36257   fi
36258   if test "x$no_sdl" = x ; then
36259      echo "$as_me:$LINENO: result: yes" >&5
36260 echo "${ECHO_T}yes" >&6
36261
36262                     EXTRALIBS_SDL="$SDL_LIBS"
36263                     CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36264                     cat >>confdefs.h <<\_ACEOF
36265 #define wxUSE_LIBSDL 1
36266 _ACEOF
36267
36268
36269   else
36270      echo "$as_me:$LINENO: result: no" >&5
36271 echo "${ECHO_T}no" >&6
36272      if test "$SDL_CONFIG" = "no" ; then
36273        echo "*** The sdl-config script installed by SDL could not be found"
36274        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36275        echo "*** your path, or set the SDL_CONFIG environment variable to the"
36276        echo "*** full path to sdl-config."
36277      else
36278        if test -f conf.sdltest ; then
36279         :
36280        else
36281           echo "*** Could not run SDL test program, checking why..."
36282           CFLAGS="$CFLAGS $SDL_CFLAGS"
36283           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36284           LIBS="$LIBS $SDL_LIBS"
36285           cat >conftest.$ac_ext <<_ACEOF
36286 /* confdefs.h.  */
36287 _ACEOF
36288 cat confdefs.h >>conftest.$ac_ext
36289 cat >>conftest.$ac_ext <<_ACEOF
36290 /* end confdefs.h.  */
36291
36292 #include <stdio.h>
36293 #include "SDL.h"
36294
36295 int main(int argc, char *argv[])
36296 { return 0; }
36297 #undef  main
36298 #define main K_and_R_C_main
36299
36300 int
36301 main ()
36302 {
36303  return 0;
36304   ;
36305   return 0;
36306 }
36307 _ACEOF
36308 rm -f conftest.$ac_objext conftest$ac_exeext
36309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36310   (eval $ac_link) 2>conftest.er1
36311   ac_status=$?
36312   grep -v '^ *+' conftest.er1 >conftest.err
36313   rm -f conftest.er1
36314   cat conftest.err >&5
36315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36316   (exit $ac_status); } &&
36317          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36319   (eval $ac_try) 2>&5
36320   ac_status=$?
36321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322   (exit $ac_status); }; } &&
36323          { ac_try='test -s conftest$ac_exeext'
36324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36325   (eval $ac_try) 2>&5
36326   ac_status=$?
36327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328   (exit $ac_status); }; }; then
36329    echo "*** The test program compiled, but did not run. This usually means"
36330           echo "*** that the run-time linker is not finding SDL or finding the wrong"
36331           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36332           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36333           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
36334           echo "*** is required on your system"
36335           echo "***"
36336           echo "*** If you have an old version installed, it is best to remove it, although"
36337           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36338 else
36339   echo "$as_me: failed program was:" >&5
36340 sed 's/^/| /' conftest.$ac_ext >&5
36341
36342  echo "*** The test program failed to compile or link. See the file config.log for the"
36343           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36344           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36345           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36346 fi
36347 rm -f conftest.err conftest.$ac_objext \
36348       conftest$ac_exeext conftest.$ac_ext
36349           CFLAGS="$ac_save_CFLAGS"
36350           CXXFLAGS="$ac_save_CXXFLAGS"
36351           LIBS="$ac_save_LIBS"
36352        fi
36353      fi
36354      SDL_CFLAGS=""
36355      SDL_LIBS=""
36356      wxUSE_LIBSDL="no"
36357   fi
36358
36359
36360   rm -f conf.sdltest
36361
36362       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36363         WITH_PLUGIN_SDL=1
36364       fi
36365     fi
36366   fi
36367
36368   cat >>confdefs.h <<\_ACEOF
36369 #define wxUSE_SOUND 1
36370 _ACEOF
36371
36372   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36373 fi
36374
36375 if test "$WXGTK20" = 1; then
36376     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36377         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36378
36379
36380   succeeded=no
36381
36382   if test -z "$PKG_CONFIG"; then
36383     # Extract the first word of "pkg-config", so it can be a program name with args.
36384 set dummy pkg-config; ac_word=$2
36385 echo "$as_me:$LINENO: checking for $ac_word" >&5
36386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36387 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36388   echo $ECHO_N "(cached) $ECHO_C" >&6
36389 else
36390   case $PKG_CONFIG in
36391   [\\/]* | ?:[\\/]*)
36392   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36393   ;;
36394   *)
36395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36396 for as_dir in $PATH
36397 do
36398   IFS=$as_save_IFS
36399   test -z "$as_dir" && as_dir=.
36400   for ac_exec_ext in '' $ac_executable_extensions; do
36401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36402     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36404     break 2
36405   fi
36406 done
36407 done
36408
36409   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36410   ;;
36411 esac
36412 fi
36413 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36414
36415 if test -n "$PKG_CONFIG"; then
36416   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36417 echo "${ECHO_T}$PKG_CONFIG" >&6
36418 else
36419   echo "$as_me:$LINENO: result: no" >&5
36420 echo "${ECHO_T}no" >&6
36421 fi
36422
36423   fi
36424
36425   if test "$PKG_CONFIG" = "no" ; then
36426      echo "*** The pkg-config script could not be found. Make sure it is"
36427      echo "*** in your path, or set the PKG_CONFIG environment variable"
36428      echo "*** to the full path to pkg-config."
36429      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36430   else
36431      PKG_CONFIG_MIN_VERSION=0.9.0
36432      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
36433         echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36434 echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
36435
36436         if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
36437             echo "$as_me:$LINENO: result: yes" >&5
36438 echo "${ECHO_T}yes" >&6
36439             succeeded=yes
36440
36441             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36442 echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
36443             LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
36444             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36445 echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36446
36447             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36448 echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
36449             LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
36450             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36451 echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36452         else
36453             LIBGNOMEPRINTUI_CFLAGS=""
36454             LIBGNOMEPRINTUI_LIBS=""
36455             ## If we have a custom action on failure, don't print errors, but
36456             ## do set a variable so people can do so.
36457             LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
36458
36459         fi
36460
36461
36462
36463      else
36464         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36465         echo "*** See http://www.freedesktop.org/software/pkgconfig"
36466      fi
36467   fi
36468
36469   if test $succeeded = yes; then
36470
36471                         CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36472                         cat >>confdefs.h <<\_ACEOF
36473 #define wxUSE_LIBGNOMEPRINT 1
36474 _ACEOF
36475
36476
36477   else
36478
36479                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36480 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36481                         wxUSE_LIBGNOMEPRINT="no"
36482
36483
36484   fi
36485
36486         fi
36487     fi
36488 fi
36489
36490
36491 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36492   cat >>confdefs.h <<\_ACEOF
36493 #define wxUSE_CMDLINE_PARSER 1
36494 _ACEOF
36495
36496 fi
36497
36498 if test "$wxUSE_STOPWATCH" = "yes"; then
36499   cat >>confdefs.h <<\_ACEOF
36500 #define wxUSE_STOPWATCH 1
36501 _ACEOF
36502
36503 fi
36504
36505 if test "$wxUSE_DATETIME" = "yes"; then
36506   cat >>confdefs.h <<\_ACEOF
36507 #define wxUSE_DATETIME 1
36508 _ACEOF
36509
36510 fi
36511
36512 if test "$wxUSE_FILE" = "yes"; then
36513   cat >>confdefs.h <<\_ACEOF
36514 #define wxUSE_FILE 1
36515 _ACEOF
36516
36517 fi
36518
36519 if test "$wxUSE_FFILE" = "yes"; then
36520   cat >>confdefs.h <<\_ACEOF
36521 #define wxUSE_FFILE 1
36522 _ACEOF
36523
36524 fi
36525
36526 if test "$wxUSE_FILESYSTEM" = "yes"; then
36527   cat >>confdefs.h <<\_ACEOF
36528 #define wxUSE_FILESYSTEM 1
36529 _ACEOF
36530
36531 fi
36532
36533 if test "$wxUSE_FS_ZIP" = "yes"; then
36534   cat >>confdefs.h <<\_ACEOF
36535 #define wxUSE_FS_ZIP 1
36536 _ACEOF
36537
36538 fi
36539
36540 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
36541   cat >>confdefs.h <<\_ACEOF
36542 #define wxUSE_ARCHIVE_STREAMS 1
36543 _ACEOF
36544
36545 fi
36546
36547 if test "$wxUSE_ZIPSTREAM" = "yes"; then
36548   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
36549     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36550 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36551   elif test "$wxUSE_ZLIB" = "no"; then
36552     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36553 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36554   else
36555     cat >>confdefs.h <<\_ACEOF
36556 #define wxUSE_ZIPSTREAM 1
36557 _ACEOF
36558
36559   fi
36560 fi
36561
36562 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36563   cat >>confdefs.h <<\_ACEOF
36564 #define wxUSE_ON_FATAL_EXCEPTION 1
36565 _ACEOF
36566
36567 fi
36568
36569 if test "$wxUSE_STACKWALKER" = "yes"; then
36570     cat >>confdefs.h <<\_ACEOF
36571 #define wxUSE_STACKWALKER 1
36572 _ACEOF
36573
36574 fi
36575
36576 if test "$wxUSE_DEBUGREPORT" = "yes"; then
36577     if test "$USE_OS2" = "1"; then
36578         { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36579 echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36580         wxUSE_DEBUGREPORT=no
36581     else
36582         cat >>confdefs.h <<\_ACEOF
36583 #define wxUSE_DEBUGREPORT 1
36584 _ACEOF
36585
36586         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36587     fi
36588 fi
36589
36590 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36591   cat >>confdefs.h <<\_ACEOF
36592 #define wxUSE_SNGLINST_CHECKER 1
36593 _ACEOF
36594
36595 fi
36596
36597 if test "$wxUSE_BUSYINFO" = "yes"; then
36598   cat >>confdefs.h <<\_ACEOF
36599 #define wxUSE_BUSYINFO 1
36600 _ACEOF
36601
36602 fi
36603
36604 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36605   cat >>confdefs.h <<\_ACEOF
36606 #define wxUSE_STD_IOSTREAM 1
36607 _ACEOF
36608
36609 fi
36610
36611 if test "$wxUSE_STD_STRING" = "yes"; then
36612   cat >>confdefs.h <<\_ACEOF
36613 #define wxUSE_STD_STRING 1
36614 _ACEOF
36615
36616 fi
36617
36618 if test "$wxUSE_STDPATHS" = "yes"; then
36619   cat >>confdefs.h <<\_ACEOF
36620 #define wxUSE_STDPATHS 1
36621 _ACEOF
36622
36623 fi
36624
36625 if test "$wxUSE_TEXTBUFFER" = "yes"; then
36626     cat >>confdefs.h <<\_ACEOF
36627 #define wxUSE_TEXTBUFFER 1
36628 _ACEOF
36629
36630 fi
36631
36632 if test "$wxUSE_TEXTFILE" = "yes"; then
36633   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36634     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36635 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36636   else
36637     cat >>confdefs.h <<\_ACEOF
36638 #define wxUSE_TEXTFILE 1
36639 _ACEOF
36640
36641   fi
36642 fi
36643
36644 if test "$wxUSE_CONFIG" = "yes" ; then
36645   if test "$wxUSE_TEXTFILE" != "yes"; then
36646     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36647 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36648   else
36649     cat >>confdefs.h <<\_ACEOF
36650 #define wxUSE_CONFIG 1
36651 _ACEOF
36652
36653     cat >>confdefs.h <<\_ACEOF
36654 #define wxUSE_CONFIG_NATIVE 1
36655 _ACEOF
36656
36657     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36658   fi
36659 fi
36660
36661 if test "$wxUSE_INTL" = "yes" ; then
36662   if test "$wxUSE_FILE" != "yes"; then
36663     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36664 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36665   else
36666     cat >>confdefs.h <<\_ACEOF
36667 #define wxUSE_INTL 1
36668 _ACEOF
36669
36670     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36671     GUIDIST="$GUIDIST INTL_DIST"
36672   fi
36673 fi
36674
36675 if test "$wxUSE_LOG" = "yes"; then
36676   cat >>confdefs.h <<\_ACEOF
36677 #define wxUSE_LOG 1
36678 _ACEOF
36679
36680
36681     if test "$wxUSE_LOGGUI" = "yes"; then
36682       cat >>confdefs.h <<\_ACEOF
36683 #define wxUSE_LOGGUI 1
36684 _ACEOF
36685
36686     fi
36687
36688     if test "$wxUSE_LOGWINDOW" = "yes"; then
36689       cat >>confdefs.h <<\_ACEOF
36690 #define wxUSE_LOGWINDOW 1
36691 _ACEOF
36692
36693     fi
36694
36695     if test "$wxUSE_LOGDIALOG" = "yes"; then
36696       cat >>confdefs.h <<\_ACEOF
36697 #define wxUSE_LOG_DIALOG 1
36698 _ACEOF
36699
36700     fi
36701
36702         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
36703 fi
36704
36705 if test "$wxUSE_LONGLONG" = "yes"; then
36706   cat >>confdefs.h <<\_ACEOF
36707 #define wxUSE_LONGLONG 1
36708 _ACEOF
36709
36710 fi
36711
36712 if test "$wxUSE_GEOMETRY" = "yes"; then
36713   cat >>confdefs.h <<\_ACEOF
36714 #define wxUSE_GEOMETRY 1
36715 _ACEOF
36716
36717 fi
36718
36719 if test "$wxUSE_STREAMS" = "yes" ; then
36720   cat >>confdefs.h <<\_ACEOF
36721 #define wxUSE_STREAMS 1
36722 _ACEOF
36723
36724 fi
36725
36726
36727 if test "$wxUSE_DATETIME" = "yes"; then
36728
36729 for ac_func in strptime
36730 do
36731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36732 echo "$as_me:$LINENO: checking for $ac_func" >&5
36733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36734 if eval "test \"\${$as_ac_var+set}\" = set"; then
36735   echo $ECHO_N "(cached) $ECHO_C" >&6
36736 else
36737   cat >conftest.$ac_ext <<_ACEOF
36738 /* confdefs.h.  */
36739 _ACEOF
36740 cat confdefs.h >>conftest.$ac_ext
36741 cat >>conftest.$ac_ext <<_ACEOF
36742 /* end confdefs.h.  */
36743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36745 #define $ac_func innocuous_$ac_func
36746
36747 /* System header to define __stub macros and hopefully few prototypes,
36748     which can conflict with char $ac_func (); below.
36749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36750     <limits.h> exists even on freestanding compilers.  */
36751
36752 #ifdef __STDC__
36753 # include <limits.h>
36754 #else
36755 # include <assert.h>
36756 #endif
36757
36758 #undef $ac_func
36759
36760 /* Override any gcc2 internal prototype to avoid an error.  */
36761 #ifdef __cplusplus
36762 extern "C"
36763 {
36764 #endif
36765 /* We use char because int might match the return type of a gcc2
36766    builtin and then its argument prototype would still apply.  */
36767 char $ac_func ();
36768 /* The GNU C library defines this for functions which it implements
36769     to always fail with ENOSYS.  Some functions are actually named
36770     something starting with __ and the normal name is an alias.  */
36771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36772 choke me
36773 #else
36774 char (*f) () = $ac_func;
36775 #endif
36776 #ifdef __cplusplus
36777 }
36778 #endif
36779
36780 int
36781 main ()
36782 {
36783 return f != $ac_func;
36784   ;
36785   return 0;
36786 }
36787 _ACEOF
36788 rm -f conftest.$ac_objext conftest$ac_exeext
36789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36790   (eval $ac_link) 2>conftest.er1
36791   ac_status=$?
36792   grep -v '^ *+' conftest.er1 >conftest.err
36793   rm -f conftest.er1
36794   cat conftest.err >&5
36795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796   (exit $ac_status); } &&
36797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36799   (eval $ac_try) 2>&5
36800   ac_status=$?
36801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802   (exit $ac_status); }; } &&
36803          { ac_try='test -s conftest$ac_exeext'
36804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36805   (eval $ac_try) 2>&5
36806   ac_status=$?
36807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36808   (exit $ac_status); }; }; then
36809   eval "$as_ac_var=yes"
36810 else
36811   echo "$as_me: failed program was:" >&5
36812 sed 's/^/| /' conftest.$ac_ext >&5
36813
36814 eval "$as_ac_var=no"
36815 fi
36816 rm -f conftest.err conftest.$ac_objext \
36817       conftest$ac_exeext conftest.$ac_ext
36818 fi
36819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36821 if test `eval echo '${'$as_ac_var'}'` = yes; then
36822   cat >>confdefs.h <<_ACEOF
36823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36824 _ACEOF
36825
36826 fi
36827 done
36828
36829
36830             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36831 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36832 if test "${wx_cv_var_timezone+set}" = set; then
36833   echo $ECHO_N "(cached) $ECHO_C" >&6
36834 else
36835
36836                         cat >conftest.$ac_ext <<_ACEOF
36837 /* confdefs.h.  */
36838 _ACEOF
36839 cat confdefs.h >>conftest.$ac_ext
36840 cat >>conftest.$ac_ext <<_ACEOF
36841 /* end confdefs.h.  */
36842
36843                                 #include <time.h>
36844
36845 int
36846 main ()
36847 {
36848
36849                                 int tz;
36850                                 tz = timezone;
36851
36852   ;
36853   return 0;
36854 }
36855 _ACEOF
36856 rm -f conftest.$ac_objext
36857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36858   (eval $ac_compile) 2>conftest.er1
36859   ac_status=$?
36860   grep -v '^ *+' conftest.er1 >conftest.err
36861   rm -f conftest.er1
36862   cat conftest.err >&5
36863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864   (exit $ac_status); } &&
36865          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36867   (eval $ac_try) 2>&5
36868   ac_status=$?
36869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870   (exit $ac_status); }; } &&
36871          { ac_try='test -s conftest.$ac_objext'
36872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36873   (eval $ac_try) 2>&5
36874   ac_status=$?
36875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876   (exit $ac_status); }; }; then
36877
36878                                 wx_cv_var_timezone=timezone
36879
36880 else
36881   echo "$as_me: failed program was:" >&5
36882 sed 's/^/| /' conftest.$ac_ext >&5
36883
36884
36885                                 cat >conftest.$ac_ext <<_ACEOF
36886 /* confdefs.h.  */
36887 _ACEOF
36888 cat confdefs.h >>conftest.$ac_ext
36889 cat >>conftest.$ac_ext <<_ACEOF
36890 /* end confdefs.h.  */
36891
36892                                         #include <time.h>
36893
36894 int
36895 main ()
36896 {
36897
36898                                         int tz;
36899                                         tz = _timezone;
36900
36901   ;
36902   return 0;
36903 }
36904 _ACEOF
36905 rm -f conftest.$ac_objext
36906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36907   (eval $ac_compile) 2>conftest.er1
36908   ac_status=$?
36909   grep -v '^ *+' conftest.er1 >conftest.err
36910   rm -f conftest.er1
36911   cat conftest.err >&5
36912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36913   (exit $ac_status); } &&
36914          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36916   (eval $ac_try) 2>&5
36917   ac_status=$?
36918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36919   (exit $ac_status); }; } &&
36920          { ac_try='test -s conftest.$ac_objext'
36921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36922   (eval $ac_try) 2>&5
36923   ac_status=$?
36924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36925   (exit $ac_status); }; }; then
36926
36927                                         wx_cv_var_timezone=_timezone
36928
36929 else
36930   echo "$as_me: failed program was:" >&5
36931 sed 's/^/| /' conftest.$ac_ext >&5
36932
36933
36934                                         cat >conftest.$ac_ext <<_ACEOF
36935 /* confdefs.h.  */
36936 _ACEOF
36937 cat confdefs.h >>conftest.$ac_ext
36938 cat >>conftest.$ac_ext <<_ACEOF
36939 /* end confdefs.h.  */
36940
36941                                                 #include <time.h>
36942
36943 int
36944 main ()
36945 {
36946
36947                                                 int tz;
36948                                                 tz = __timezone;
36949
36950   ;
36951   return 0;
36952 }
36953 _ACEOF
36954 rm -f conftest.$ac_objext
36955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36956   (eval $ac_compile) 2>conftest.er1
36957   ac_status=$?
36958   grep -v '^ *+' conftest.er1 >conftest.err
36959   rm -f conftest.er1
36960   cat conftest.err >&5
36961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36962   (exit $ac_status); } &&
36963          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36965   (eval $ac_try) 2>&5
36966   ac_status=$?
36967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968   (exit $ac_status); }; } &&
36969          { ac_try='test -s conftest.$ac_objext'
36970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36971   (eval $ac_try) 2>&5
36972   ac_status=$?
36973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974   (exit $ac_status); }; }; then
36975
36976                                                 wx_cv_var_timezone=__timezone
36977
36978 else
36979   echo "$as_me: failed program was:" >&5
36980 sed 's/^/| /' conftest.$ac_ext >&5
36981
36982
36983                                                 if test "$USE_DOS" = 0 ; then
36984                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36985 echo "$as_me: WARNING: no timezone variable" >&2;}
36986                                                 fi
36987
36988
36989 fi
36990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36991
36992
36993 fi
36994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36995
36996
36997 fi
36998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36999
37000
37001 fi
37002 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37003 echo "${ECHO_T}$wx_cv_var_timezone" >&6
37004
37005         if test "x$wx_cv_var_timezone" != x ; then
37006         cat >>confdefs.h <<_ACEOF
37007 #define WX_TIMEZONE $wx_cv_var_timezone
37008 _ACEOF
37009
37010     fi
37011
37012
37013 for ac_func in localtime
37014 do
37015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37016 echo "$as_me:$LINENO: checking for $ac_func" >&5
37017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37018 if eval "test \"\${$as_ac_var+set}\" = set"; then
37019   echo $ECHO_N "(cached) $ECHO_C" >&6
37020 else
37021   cat >conftest.$ac_ext <<_ACEOF
37022 /* confdefs.h.  */
37023 _ACEOF
37024 cat confdefs.h >>conftest.$ac_ext
37025 cat >>conftest.$ac_ext <<_ACEOF
37026 /* end confdefs.h.  */
37027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37029 #define $ac_func innocuous_$ac_func
37030
37031 /* System header to define __stub macros and hopefully few prototypes,
37032     which can conflict with char $ac_func (); below.
37033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37034     <limits.h> exists even on freestanding compilers.  */
37035
37036 #ifdef __STDC__
37037 # include <limits.h>
37038 #else
37039 # include <assert.h>
37040 #endif
37041
37042 #undef $ac_func
37043
37044 /* Override any gcc2 internal prototype to avoid an error.  */
37045 #ifdef __cplusplus
37046 extern "C"
37047 {
37048 #endif
37049 /* We use char because int might match the return type of a gcc2
37050    builtin and then its argument prototype would still apply.  */
37051 char $ac_func ();
37052 /* The GNU C library defines this for functions which it implements
37053     to always fail with ENOSYS.  Some functions are actually named
37054     something starting with __ and the normal name is an alias.  */
37055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37056 choke me
37057 #else
37058 char (*f) () = $ac_func;
37059 #endif
37060 #ifdef __cplusplus
37061 }
37062 #endif
37063
37064 int
37065 main ()
37066 {
37067 return f != $ac_func;
37068   ;
37069   return 0;
37070 }
37071 _ACEOF
37072 rm -f conftest.$ac_objext conftest$ac_exeext
37073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37074   (eval $ac_link) 2>conftest.er1
37075   ac_status=$?
37076   grep -v '^ *+' conftest.er1 >conftest.err
37077   rm -f conftest.er1
37078   cat conftest.err >&5
37079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37080   (exit $ac_status); } &&
37081          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37083   (eval $ac_try) 2>&5
37084   ac_status=$?
37085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37086   (exit $ac_status); }; } &&
37087          { ac_try='test -s conftest$ac_exeext'
37088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37089   (eval $ac_try) 2>&5
37090   ac_status=$?
37091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092   (exit $ac_status); }; }; then
37093   eval "$as_ac_var=yes"
37094 else
37095   echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37097
37098 eval "$as_ac_var=no"
37099 fi
37100 rm -f conftest.err conftest.$ac_objext \
37101       conftest$ac_exeext conftest.$ac_ext
37102 fi
37103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37105 if test `eval echo '${'$as_ac_var'}'` = yes; then
37106   cat >>confdefs.h <<_ACEOF
37107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37108 _ACEOF
37109
37110 fi
37111 done
37112
37113
37114     if test "$ac_cv_func_localtime" = "yes"; then
37115         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37116 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37117 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37118   echo $ECHO_N "(cached) $ECHO_C" >&6
37119 else
37120
37121             cat >conftest.$ac_ext <<_ACEOF
37122 /* confdefs.h.  */
37123 _ACEOF
37124 cat confdefs.h >>conftest.$ac_ext
37125 cat >>conftest.$ac_ext <<_ACEOF
37126 /* end confdefs.h.  */
37127
37128                     #include <time.h>
37129
37130 int
37131 main ()
37132 {
37133
37134                     struct tm tm;
37135                     tm.tm_gmtoff++;
37136
37137   ;
37138   return 0;
37139 }
37140 _ACEOF
37141 rm -f conftest.$ac_objext
37142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37143   (eval $ac_compile) 2>conftest.er1
37144   ac_status=$?
37145   grep -v '^ *+' conftest.er1 >conftest.err
37146   rm -f conftest.er1
37147   cat conftest.err >&5
37148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149   (exit $ac_status); } &&
37150          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37152   (eval $ac_try) 2>&5
37153   ac_status=$?
37154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155   (exit $ac_status); }; } &&
37156          { ac_try='test -s conftest.$ac_objext'
37157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37158   (eval $ac_try) 2>&5
37159   ac_status=$?
37160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161   (exit $ac_status); }; }; then
37162
37163                     wx_cv_struct_tm_has_gmtoff=yes
37164
37165 else
37166   echo "$as_me: failed program was:" >&5
37167 sed 's/^/| /' conftest.$ac_ext >&5
37168
37169 wx_cv_struct_tm_has_gmtoff=no
37170
37171 fi
37172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37173
37174 fi
37175 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37176 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37177     fi
37178
37179     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37180         cat >>confdefs.h <<\_ACEOF
37181 #define WX_GMTOFF_IN_TM 1
37182 _ACEOF
37183
37184     fi
37185
37186
37187
37188 for ac_func in gettimeofday ftime
37189 do
37190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37191 echo "$as_me:$LINENO: checking for $ac_func" >&5
37192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37193 if eval "test \"\${$as_ac_var+set}\" = set"; then
37194   echo $ECHO_N "(cached) $ECHO_C" >&6
37195 else
37196   cat >conftest.$ac_ext <<_ACEOF
37197 /* confdefs.h.  */
37198 _ACEOF
37199 cat confdefs.h >>conftest.$ac_ext
37200 cat >>conftest.$ac_ext <<_ACEOF
37201 /* end confdefs.h.  */
37202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37204 #define $ac_func innocuous_$ac_func
37205
37206 /* System header to define __stub macros and hopefully few prototypes,
37207     which can conflict with char $ac_func (); below.
37208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37209     <limits.h> exists even on freestanding compilers.  */
37210
37211 #ifdef __STDC__
37212 # include <limits.h>
37213 #else
37214 # include <assert.h>
37215 #endif
37216
37217 #undef $ac_func
37218
37219 /* Override any gcc2 internal prototype to avoid an error.  */
37220 #ifdef __cplusplus
37221 extern "C"
37222 {
37223 #endif
37224 /* We use char because int might match the return type of a gcc2
37225    builtin and then its argument prototype would still apply.  */
37226 char $ac_func ();
37227 /* The GNU C library defines this for functions which it implements
37228     to always fail with ENOSYS.  Some functions are actually named
37229     something starting with __ and the normal name is an alias.  */
37230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37231 choke me
37232 #else
37233 char (*f) () = $ac_func;
37234 #endif
37235 #ifdef __cplusplus
37236 }
37237 #endif
37238
37239 int
37240 main ()
37241 {
37242 return f != $ac_func;
37243   ;
37244   return 0;
37245 }
37246 _ACEOF
37247 rm -f conftest.$ac_objext conftest$ac_exeext
37248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37249   (eval $ac_link) 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_exeext'
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   eval "$as_ac_var=yes"
37269 else
37270   echo "$as_me: failed program was:" >&5
37271 sed 's/^/| /' conftest.$ac_ext >&5
37272
37273 eval "$as_ac_var=no"
37274 fi
37275 rm -f conftest.err conftest.$ac_objext \
37276       conftest$ac_exeext conftest.$ac_ext
37277 fi
37278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37280 if test `eval echo '${'$as_ac_var'}'` = yes; then
37281   cat >>confdefs.h <<_ACEOF
37282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37283 _ACEOF
37284  break
37285 fi
37286 done
37287
37288
37289     if test "$ac_cv_func_gettimeofday" = "yes"; then
37290         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37291 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37292 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37293   echo $ECHO_N "(cached) $ECHO_C" >&6
37294 else
37295
37296
37297
37298             ac_ext=cc
37299 ac_cpp='$CXXCPP $CPPFLAGS'
37300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37303
37304
37305             cat >conftest.$ac_ext <<_ACEOF
37306 /* confdefs.h.  */
37307 _ACEOF
37308 cat confdefs.h >>conftest.$ac_ext
37309 cat >>conftest.$ac_ext <<_ACEOF
37310 /* end confdefs.h.  */
37311
37312                     #include <sys/time.h>
37313                     #include <unistd.h>
37314
37315 int
37316 main ()
37317 {
37318
37319                     struct timeval tv;
37320                     gettimeofday(&tv, NULL);
37321
37322   ;
37323   return 0;
37324 }
37325 _ACEOF
37326 rm -f conftest.$ac_objext
37327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37328   (eval $ac_compile) 2>conftest.er1
37329   ac_status=$?
37330   grep -v '^ *+' conftest.er1 >conftest.err
37331   rm -f conftest.er1
37332   cat conftest.err >&5
37333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334   (exit $ac_status); } &&
37335          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37337   (eval $ac_try) 2>&5
37338   ac_status=$?
37339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340   (exit $ac_status); }; } &&
37341          { ac_try='test -s conftest.$ac_objext'
37342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37343   (eval $ac_try) 2>&5
37344   ac_status=$?
37345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346   (exit $ac_status); }; }; then
37347   wx_cv_func_gettimeofday_has_2_args=yes
37348 else
37349   echo "$as_me: failed program was:" >&5
37350 sed 's/^/| /' conftest.$ac_ext >&5
37351
37352 cat >conftest.$ac_ext <<_ACEOF
37353 /* confdefs.h.  */
37354 _ACEOF
37355 cat confdefs.h >>conftest.$ac_ext
37356 cat >>conftest.$ac_ext <<_ACEOF
37357 /* end confdefs.h.  */
37358
37359                         #include <sys/time.h>
37360                         #include <unistd.h>
37361
37362 int
37363 main ()
37364 {
37365
37366                         struct timeval tv;
37367                         gettimeofday(&tv);
37368
37369   ;
37370   return 0;
37371 }
37372 _ACEOF
37373 rm -f conftest.$ac_objext
37374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37375   (eval $ac_compile) 2>conftest.er1
37376   ac_status=$?
37377   grep -v '^ *+' conftest.er1 >conftest.err
37378   rm -f conftest.er1
37379   cat conftest.err >&5
37380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37381   (exit $ac_status); } &&
37382          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37384   (eval $ac_try) 2>&5
37385   ac_status=$?
37386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387   (exit $ac_status); }; } &&
37388          { ac_try='test -s conftest.$ac_objext'
37389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37390   (eval $ac_try) 2>&5
37391   ac_status=$?
37392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393   (exit $ac_status); }; }; then
37394   wx_cv_func_gettimeofday_has_2_args=no
37395 else
37396   echo "$as_me: failed program was:" >&5
37397 sed 's/^/| /' conftest.$ac_ext >&5
37398
37399
37400                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37401 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37402                         wx_cv_func_gettimeofday_has_2_args=unknown
37403
37404
37405 fi
37406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37407
37408 fi
37409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37410             ac_ext=c
37411 ac_cpp='$CPP $CPPFLAGS'
37412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37415
37416
37417 fi
37418 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37419 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37420
37421         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37422             cat >>confdefs.h <<\_ACEOF
37423 #define WX_GETTIMEOFDAY_NO_TZ 1
37424 _ACEOF
37425
37426         fi
37427     fi
37428
37429     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37430 fi
37431
37432
37433 if test "$wxUSE_SOCKETS" = "yes"; then
37434     if test "$wxUSE_MGL" = "1"; then
37435         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37436 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37437         wxUSE_SOCKETS="no"
37438     fi
37439 fi
37440
37441 if test "$wxUSE_SOCKETS" = "yes"; then
37442         if test "$TOOLKIT" != "MSW"; then
37443                 echo "$as_me:$LINENO: checking for socket" >&5
37444 echo $ECHO_N "checking for socket... $ECHO_C" >&6
37445 if test "${ac_cv_func_socket+set}" = set; then
37446   echo $ECHO_N "(cached) $ECHO_C" >&6
37447 else
37448   cat >conftest.$ac_ext <<_ACEOF
37449 /* confdefs.h.  */
37450 _ACEOF
37451 cat confdefs.h >>conftest.$ac_ext
37452 cat >>conftest.$ac_ext <<_ACEOF
37453 /* end confdefs.h.  */
37454 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
37455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37456 #define socket innocuous_socket
37457
37458 /* System header to define __stub macros and hopefully few prototypes,
37459     which can conflict with char socket (); below.
37460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37461     <limits.h> exists even on freestanding compilers.  */
37462
37463 #ifdef __STDC__
37464 # include <limits.h>
37465 #else
37466 # include <assert.h>
37467 #endif
37468
37469 #undef socket
37470
37471 /* Override any gcc2 internal prototype to avoid an error.  */
37472 #ifdef __cplusplus
37473 extern "C"
37474 {
37475 #endif
37476 /* We use char because int might match the return type of a gcc2
37477    builtin and then its argument prototype would still apply.  */
37478 char socket ();
37479 /* The GNU C library defines this for functions which it implements
37480     to always fail with ENOSYS.  Some functions are actually named
37481     something starting with __ and the normal name is an alias.  */
37482 #if defined (__stub_socket) || defined (__stub___socket)
37483 choke me
37484 #else
37485 char (*f) () = socket;
37486 #endif
37487 #ifdef __cplusplus
37488 }
37489 #endif
37490
37491 int
37492 main ()
37493 {
37494 return f != socket;
37495   ;
37496   return 0;
37497 }
37498 _ACEOF
37499 rm -f conftest.$ac_objext conftest$ac_exeext
37500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37501   (eval $ac_link) 2>conftest.er1
37502   ac_status=$?
37503   grep -v '^ *+' conftest.er1 >conftest.err
37504   rm -f conftest.er1
37505   cat conftest.err >&5
37506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507   (exit $ac_status); } &&
37508          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37510   (eval $ac_try) 2>&5
37511   ac_status=$?
37512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513   (exit $ac_status); }; } &&
37514          { ac_try='test -s conftest$ac_exeext'
37515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37516   (eval $ac_try) 2>&5
37517   ac_status=$?
37518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519   (exit $ac_status); }; }; then
37520   ac_cv_func_socket=yes
37521 else
37522   echo "$as_me: failed program was:" >&5
37523 sed 's/^/| /' conftest.$ac_ext >&5
37524
37525 ac_cv_func_socket=no
37526 fi
37527 rm -f conftest.err conftest.$ac_objext \
37528       conftest$ac_exeext conftest.$ac_ext
37529 fi
37530 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37531 echo "${ECHO_T}$ac_cv_func_socket" >&6
37532 if test $ac_cv_func_socket = yes; then
37533   :
37534 else
37535
37536                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37537 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37538 if test "${ac_cv_lib_socket_socket+set}" = set; then
37539   echo $ECHO_N "(cached) $ECHO_C" >&6
37540 else
37541   ac_check_lib_save_LIBS=$LIBS
37542 LIBS="-lsocket  $LIBS"
37543 cat >conftest.$ac_ext <<_ACEOF
37544 /* confdefs.h.  */
37545 _ACEOF
37546 cat confdefs.h >>conftest.$ac_ext
37547 cat >>conftest.$ac_ext <<_ACEOF
37548 /* end confdefs.h.  */
37549
37550 /* Override any gcc2 internal prototype to avoid an error.  */
37551 #ifdef __cplusplus
37552 extern "C"
37553 #endif
37554 /* We use char because int might match the return type of a gcc2
37555    builtin and then its argument prototype would still apply.  */
37556 char socket ();
37557 int
37558 main ()
37559 {
37560 socket ();
37561   ;
37562   return 0;
37563 }
37564 _ACEOF
37565 rm -f conftest.$ac_objext conftest$ac_exeext
37566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37567   (eval $ac_link) 2>conftest.er1
37568   ac_status=$?
37569   grep -v '^ *+' conftest.er1 >conftest.err
37570   rm -f conftest.er1
37571   cat conftest.err >&5
37572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573   (exit $ac_status); } &&
37574          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37576   (eval $ac_try) 2>&5
37577   ac_status=$?
37578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37579   (exit $ac_status); }; } &&
37580          { ac_try='test -s conftest$ac_exeext'
37581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37582   (eval $ac_try) 2>&5
37583   ac_status=$?
37584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585   (exit $ac_status); }; }; then
37586   ac_cv_lib_socket_socket=yes
37587 else
37588   echo "$as_me: failed program was:" >&5
37589 sed 's/^/| /' conftest.$ac_ext >&5
37590
37591 ac_cv_lib_socket_socket=no
37592 fi
37593 rm -f conftest.err conftest.$ac_objext \
37594       conftest$ac_exeext conftest.$ac_ext
37595 LIBS=$ac_check_lib_save_LIBS
37596 fi
37597 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37598 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37599 if test $ac_cv_lib_socket_socket = yes; then
37600   if test "$INET_LINK" != " -lsocket"; then
37601                         INET_LINK="$INET_LINK -lsocket"
37602                     fi
37603 else
37604
37605                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37606 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37607                         wxUSE_SOCKETS=no
37608
37609
37610 fi
37611
37612
37613
37614 fi
37615
37616     fi
37617 fi
37618
37619 if test "$wxUSE_SOCKETS" = "yes" ; then
37620                 if test "$TOOLKIT" != "MSW"; then
37621                                         ac_ext=cc
37622 ac_cpp='$CXXCPP $CPPFLAGS'
37623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37626
37627         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
37628 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37629 if test "${wx_cv_type_getsockname3+set}" = set; then
37630   echo $ECHO_N "(cached) $ECHO_C" >&6
37631 else
37632
37633                 cat >conftest.$ac_ext <<_ACEOF
37634 /* confdefs.h.  */
37635 _ACEOF
37636 cat confdefs.h >>conftest.$ac_ext
37637 cat >>conftest.$ac_ext <<_ACEOF
37638 /* end confdefs.h.  */
37639
37640                         #include <sys/types.h>
37641                         #include <sys/socket.h>
37642
37643 int
37644 main ()
37645 {
37646
37647                         socklen_t len;
37648                         getsockname(0, 0, &len);
37649
37650   ;
37651   return 0;
37652 }
37653 _ACEOF
37654 rm -f conftest.$ac_objext
37655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37656   (eval $ac_compile) 2>conftest.er1
37657   ac_status=$?
37658   grep -v '^ *+' conftest.er1 >conftest.err
37659   rm -f conftest.er1
37660   cat conftest.err >&5
37661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37662   (exit $ac_status); } &&
37663          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37665   (eval $ac_try) 2>&5
37666   ac_status=$?
37667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668   (exit $ac_status); }; } &&
37669          { ac_try='test -s conftest.$ac_objext'
37670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37671   (eval $ac_try) 2>&5
37672   ac_status=$?
37673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674   (exit $ac_status); }; }; then
37675   wx_cv_type_getsockname3=socklen_t
37676 else
37677   echo "$as_me: failed program was:" >&5
37678 sed 's/^/| /' conftest.$ac_ext >&5
37679
37680
37681                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
37682                         if test "$GCC" = yes ; then
37683                             CFLAGS="$CFLAGS -Werror"
37684                         fi
37685
37686                         cat >conftest.$ac_ext <<_ACEOF
37687 /* confdefs.h.  */
37688 _ACEOF
37689 cat confdefs.h >>conftest.$ac_ext
37690 cat >>conftest.$ac_ext <<_ACEOF
37691 /* end confdefs.h.  */
37692
37693                                 #include <sys/types.h>
37694                                 #include <sys/socket.h>
37695
37696 int
37697 main ()
37698 {
37699
37700                                 size_t len;
37701                                 getsockname(0, 0, &len);
37702
37703   ;
37704   return 0;
37705 }
37706 _ACEOF
37707 rm -f conftest.$ac_objext
37708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37709   (eval $ac_compile) 2>conftest.er1
37710   ac_status=$?
37711   grep -v '^ *+' conftest.er1 >conftest.err
37712   rm -f conftest.er1
37713   cat conftest.err >&5
37714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715   (exit $ac_status); } &&
37716          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37718   (eval $ac_try) 2>&5
37719   ac_status=$?
37720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37721   (exit $ac_status); }; } &&
37722          { ac_try='test -s conftest.$ac_objext'
37723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37724   (eval $ac_try) 2>&5
37725   ac_status=$?
37726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37727   (exit $ac_status); }; }; then
37728   wx_cv_type_getsockname3=size_t
37729 else
37730   echo "$as_me: failed program was:" >&5
37731 sed 's/^/| /' conftest.$ac_ext >&5
37732
37733 cat >conftest.$ac_ext <<_ACEOF
37734 /* confdefs.h.  */
37735 _ACEOF
37736 cat confdefs.h >>conftest.$ac_ext
37737 cat >>conftest.$ac_ext <<_ACEOF
37738 /* end confdefs.h.  */
37739
37740                                     #include <sys/types.h>
37741                                     #include <sys/socket.h>
37742
37743 int
37744 main ()
37745 {
37746
37747                                     int len;
37748                                     getsockname(0, 0, &len);
37749
37750   ;
37751   return 0;
37752 }
37753 _ACEOF
37754 rm -f conftest.$ac_objext
37755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37756   (eval $ac_compile) 2>conftest.er1
37757   ac_status=$?
37758   grep -v '^ *+' conftest.er1 >conftest.err
37759   rm -f conftest.er1
37760   cat conftest.err >&5
37761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762   (exit $ac_status); } &&
37763          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37765   (eval $ac_try) 2>&5
37766   ac_status=$?
37767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768   (exit $ac_status); }; } &&
37769          { ac_try='test -s conftest.$ac_objext'
37770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37771   (eval $ac_try) 2>&5
37772   ac_status=$?
37773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37774   (exit $ac_status); }; }; then
37775   wx_cv_type_getsockname3=int
37776 else
37777   echo "$as_me: failed program was:" >&5
37778 sed 's/^/| /' conftest.$ac_ext >&5
37779
37780 wx_cv_type_getsockname3=unknown
37781
37782 fi
37783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37784
37785 fi
37786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37787
37788                         CFLAGS="$CFLAGS_OLD"
37789
37790
37791 fi
37792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37793
37794 fi
37795 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37796 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37797
37798         if test "$wx_cv_type_getsockname3" = "unknown"; then
37799             wxUSE_SOCKETS=no
37800             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37801 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37802         else
37803             cat >>confdefs.h <<_ACEOF
37804 #define SOCKLEN_T $wx_cv_type_getsockname3
37805 _ACEOF
37806
37807         fi
37808                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37809 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37810 if test "${wx_cv_type_getsockopt5+set}" = set; then
37811   echo $ECHO_N "(cached) $ECHO_C" >&6
37812 else
37813
37814                 cat >conftest.$ac_ext <<_ACEOF
37815 /* confdefs.h.  */
37816 _ACEOF
37817 cat confdefs.h >>conftest.$ac_ext
37818 cat >>conftest.$ac_ext <<_ACEOF
37819 /* end confdefs.h.  */
37820
37821                         #include <sys/types.h>
37822                         #include <sys/socket.h>
37823
37824 int
37825 main ()
37826 {
37827
37828                         socklen_t len;
37829                         getsockopt(0, 0, 0, 0, &len);
37830
37831   ;
37832   return 0;
37833 }
37834 _ACEOF
37835 rm -f conftest.$ac_objext
37836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37837   (eval $ac_compile) 2>conftest.er1
37838   ac_status=$?
37839   grep -v '^ *+' conftest.er1 >conftest.err
37840   rm -f conftest.er1
37841   cat conftest.err >&5
37842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37843   (exit $ac_status); } &&
37844          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37846   (eval $ac_try) 2>&5
37847   ac_status=$?
37848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849   (exit $ac_status); }; } &&
37850          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
37856   wx_cv_type_getsockopt5=socklen_t
37857 else
37858   echo "$as_me: failed program was:" >&5
37859 sed 's/^/| /' conftest.$ac_ext >&5
37860
37861
37862                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
37863                         if test "$GCC" = yes ; then
37864                             CFLAGS="$CFLAGS -Werror"
37865                         fi
37866
37867                         cat >conftest.$ac_ext <<_ACEOF
37868 /* confdefs.h.  */
37869 _ACEOF
37870 cat confdefs.h >>conftest.$ac_ext
37871 cat >>conftest.$ac_ext <<_ACEOF
37872 /* end confdefs.h.  */
37873
37874                                 #include <sys/types.h>
37875                                 #include <sys/socket.h>
37876
37877 int
37878 main ()
37879 {
37880
37881                                 size_t len;
37882                                 getsockopt(0, 0, 0, 0, &len);
37883
37884   ;
37885   return 0;
37886 }
37887 _ACEOF
37888 rm -f conftest.$ac_objext
37889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37890   (eval $ac_compile) 2>conftest.er1
37891   ac_status=$?
37892   grep -v '^ *+' conftest.er1 >conftest.err
37893   rm -f conftest.er1
37894   cat conftest.err >&5
37895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896   (exit $ac_status); } &&
37897          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37899   (eval $ac_try) 2>&5
37900   ac_status=$?
37901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902   (exit $ac_status); }; } &&
37903          { ac_try='test -s conftest.$ac_objext'
37904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37905   (eval $ac_try) 2>&5
37906   ac_status=$?
37907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37908   (exit $ac_status); }; }; then
37909   wx_cv_type_getsockopt5=size_t
37910 else
37911   echo "$as_me: failed program was:" >&5
37912 sed 's/^/| /' conftest.$ac_ext >&5
37913
37914 cat >conftest.$ac_ext <<_ACEOF
37915 /* confdefs.h.  */
37916 _ACEOF
37917 cat confdefs.h >>conftest.$ac_ext
37918 cat >>conftest.$ac_ext <<_ACEOF
37919 /* end confdefs.h.  */
37920
37921                                     #include <sys/types.h>
37922                                     #include <sys/socket.h>
37923
37924 int
37925 main ()
37926 {
37927
37928                                     int len;
37929                                     getsockopt(0, 0, 0, 0, &len);
37930
37931   ;
37932   return 0;
37933 }
37934 _ACEOF
37935 rm -f conftest.$ac_objext
37936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37937   (eval $ac_compile) 2>conftest.er1
37938   ac_status=$?
37939   grep -v '^ *+' conftest.er1 >conftest.err
37940   rm -f conftest.er1
37941   cat conftest.err >&5
37942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943   (exit $ac_status); } &&
37944          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946   (eval $ac_try) 2>&5
37947   ac_status=$?
37948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949   (exit $ac_status); }; } &&
37950          { ac_try='test -s conftest.$ac_objext'
37951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37952   (eval $ac_try) 2>&5
37953   ac_status=$?
37954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37955   (exit $ac_status); }; }; then
37956   wx_cv_type_getsockopt5=int
37957 else
37958   echo "$as_me: failed program was:" >&5
37959 sed 's/^/| /' conftest.$ac_ext >&5
37960
37961 wx_cv_type_getsockopt5=unknown
37962
37963 fi
37964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37965
37966 fi
37967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37968
37969                         CFLAGS="$CFLAGS_OLD"
37970
37971
37972 fi
37973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37974
37975 fi
37976 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37977 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37978
37979         if test "$wx_cv_type_getsockopt5" = "unknown"; then
37980             wxUSE_SOCKETS=no
37981             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37982 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37983         else
37984             cat >>confdefs.h <<_ACEOF
37985 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
37986 _ACEOF
37987
37988         fi
37989         ac_ext=c
37990 ac_cpp='$CPP $CPPFLAGS'
37991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37994
37995     fi
37996 fi
37997
37998 if test "$wxUSE_SOCKETS" = "yes" ; then
37999     cat >>confdefs.h <<\_ACEOF
38000 #define wxUSE_SOCKETS 1
38001 _ACEOF
38002
38003     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38004 fi
38005
38006 if test "$wxUSE_PROTOCOL" = "yes"; then
38007     if test "$wxUSE_SOCKETS" != "yes"; then
38008         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38009 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38010         wxUSE_PROTOCOL=no
38011     fi
38012 fi
38013
38014 if test "$wxUSE_PROTOCOL" = "yes"; then
38015     cat >>confdefs.h <<\_ACEOF
38016 #define wxUSE_PROTOCOL 1
38017 _ACEOF
38018
38019
38020     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38021         cat >>confdefs.h <<\_ACEOF
38022 #define wxUSE_PROTOCOL_HTTP 1
38023 _ACEOF
38024
38025     fi
38026     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38027         cat >>confdefs.h <<\_ACEOF
38028 #define wxUSE_PROTOCOL_FTP 1
38029 _ACEOF
38030
38031     fi
38032     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38033         cat >>confdefs.h <<\_ACEOF
38034 #define wxUSE_PROTOCOL_FILE 1
38035 _ACEOF
38036
38037     fi
38038 else
38039     if test "$wxUSE_FS_INET" = "yes"; then
38040         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38041 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38042         wxUSE_FS_INET="no"
38043     fi
38044 fi
38045
38046 if test "$wxUSE_URL" = "yes"; then
38047     if test "$wxUSE_PROTOCOL" != "yes"; then
38048         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38049 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38050         wxUSE_URL=no
38051     fi
38052     if test "$wxUSE_URL" = "yes"; then
38053         cat >>confdefs.h <<\_ACEOF
38054 #define wxUSE_URL 1
38055 _ACEOF
38056
38057     fi
38058 fi
38059
38060 if test "$wxUSE_FS_INET" = "yes"; then
38061   cat >>confdefs.h <<\_ACEOF
38062 #define wxUSE_FS_INET 1
38063 _ACEOF
38064
38065 fi
38066
38067
38068 if test "$wxUSE_GUI" = "yes"; then
38069           if test "$wxUSE_JOYSTICK" = "yes"; then
38070
38071                 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
38072
38073 for ac_header in linux/joystick.h
38074 do
38075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38077   echo "$as_me:$LINENO: checking for $ac_header" >&5
38078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38080   echo $ECHO_N "(cached) $ECHO_C" >&6
38081 fi
38082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38084 else
38085   # Is the header compilable?
38086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38088 cat >conftest.$ac_ext <<_ACEOF
38089 /* confdefs.h.  */
38090 _ACEOF
38091 cat confdefs.h >>conftest.$ac_ext
38092 cat >>conftest.$ac_ext <<_ACEOF
38093 /* end confdefs.h.  */
38094 $ac_includes_default
38095 #include <$ac_header>
38096 _ACEOF
38097 rm -f conftest.$ac_objext
38098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38099   (eval $ac_compile) 2>conftest.er1
38100   ac_status=$?
38101   grep -v '^ *+' conftest.er1 >conftest.err
38102   rm -f conftest.er1
38103   cat conftest.err >&5
38104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38105   (exit $ac_status); } &&
38106          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38108   (eval $ac_try) 2>&5
38109   ac_status=$?
38110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38111   (exit $ac_status); }; } &&
38112          { ac_try='test -s conftest.$ac_objext'
38113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38114   (eval $ac_try) 2>&5
38115   ac_status=$?
38116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38117   (exit $ac_status); }; }; then
38118   ac_header_compiler=yes
38119 else
38120   echo "$as_me: failed program was:" >&5
38121 sed 's/^/| /' conftest.$ac_ext >&5
38122
38123 ac_header_compiler=no
38124 fi
38125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38127 echo "${ECHO_T}$ac_header_compiler" >&6
38128
38129 # Is the header present?
38130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38132 cat >conftest.$ac_ext <<_ACEOF
38133 /* confdefs.h.  */
38134 _ACEOF
38135 cat confdefs.h >>conftest.$ac_ext
38136 cat >>conftest.$ac_ext <<_ACEOF
38137 /* end confdefs.h.  */
38138 #include <$ac_header>
38139 _ACEOF
38140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38142   ac_status=$?
38143   grep -v '^ *+' conftest.er1 >conftest.err
38144   rm -f conftest.er1
38145   cat conftest.err >&5
38146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147   (exit $ac_status); } >/dev/null; then
38148   if test -s conftest.err; then
38149     ac_cpp_err=$ac_c_preproc_warn_flag
38150     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38151   else
38152     ac_cpp_err=
38153   fi
38154 else
38155   ac_cpp_err=yes
38156 fi
38157 if test -z "$ac_cpp_err"; then
38158   ac_header_preproc=yes
38159 else
38160   echo "$as_me: failed program was:" >&5
38161 sed 's/^/| /' conftest.$ac_ext >&5
38162
38163   ac_header_preproc=no
38164 fi
38165 rm -f conftest.err conftest.$ac_ext
38166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38167 echo "${ECHO_T}$ac_header_preproc" >&6
38168
38169 # So?  What about this header?
38170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38171   yes:no: )
38172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38176     ac_header_preproc=yes
38177     ;;
38178   no:yes:* )
38179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38191     (
38192       cat <<\_ASBOX
38193 ## ----------------------------------------- ##
38194 ## Report this to wx-dev@lists.wxwidgets.org ##
38195 ## ----------------------------------------- ##
38196 _ASBOX
38197     ) |
38198       sed "s/^/$as_me: WARNING:     /" >&2
38199     ;;
38200 esac
38201 echo "$as_me:$LINENO: checking for $ac_header" >&5
38202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38204   echo $ECHO_N "(cached) $ECHO_C" >&6
38205 else
38206   eval "$as_ac_Header=\$ac_header_preproc"
38207 fi
38208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38210
38211 fi
38212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38213   cat >>confdefs.h <<_ACEOF
38214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38215 _ACEOF
38216
38217 fi
38218
38219 done
38220
38221             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38222                 wxUSE_JOYSTICK=no
38223                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38224 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38225             fi
38226         else
38227                       if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38228                 wxUSE_JOYSTICK=no
38229                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38230 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38231            fi
38232         fi
38233
38234
38235         if test "$wxUSE_JOYSTICK" = "yes"; then
38236             cat >>confdefs.h <<\_ACEOF
38237 #define wxUSE_JOYSTICK 1
38238 _ACEOF
38239
38240             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38241         fi
38242     fi
38243 fi
38244
38245
38246
38247 if test "$wxUSE_FONTMAP" = "yes" ; then
38248   cat >>confdefs.h <<\_ACEOF
38249 #define wxUSE_FONTMAP 1
38250 _ACEOF
38251
38252 fi
38253
38254 if test "$wxUSE_UNICODE" = "yes" ; then
38255   cat >>confdefs.h <<\_ACEOF
38256 #define wxUSE_UNICODE 1
38257 _ACEOF
38258
38259
38260   if test "$USE_WIN32" != 1; then
38261       wxUSE_UNICODE_MSLU=no
38262   fi
38263
38264   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38265         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38266 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38267 if test "${ac_cv_lib_unicows_main+set}" = set; then
38268   echo $ECHO_N "(cached) $ECHO_C" >&6
38269 else
38270   ac_check_lib_save_LIBS=$LIBS
38271 LIBS="-lunicows  $LIBS"
38272 cat >conftest.$ac_ext <<_ACEOF
38273 /* confdefs.h.  */
38274 _ACEOF
38275 cat confdefs.h >>conftest.$ac_ext
38276 cat >>conftest.$ac_ext <<_ACEOF
38277 /* end confdefs.h.  */
38278
38279
38280 int
38281 main ()
38282 {
38283 main ();
38284   ;
38285   return 0;
38286 }
38287 _ACEOF
38288 rm -f conftest.$ac_objext conftest$ac_exeext
38289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38290   (eval $ac_link) 2>conftest.er1
38291   ac_status=$?
38292   grep -v '^ *+' conftest.er1 >conftest.err
38293   rm -f conftest.er1
38294   cat conftest.err >&5
38295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296   (exit $ac_status); } &&
38297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38299   (eval $ac_try) 2>&5
38300   ac_status=$?
38301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38302   (exit $ac_status); }; } &&
38303          { ac_try='test -s conftest$ac_exeext'
38304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38305   (eval $ac_try) 2>&5
38306   ac_status=$?
38307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38308   (exit $ac_status); }; }; then
38309   ac_cv_lib_unicows_main=yes
38310 else
38311   echo "$as_me: failed program was:" >&5
38312 sed 's/^/| /' conftest.$ac_ext >&5
38313
38314 ac_cv_lib_unicows_main=no
38315 fi
38316 rm -f conftest.err conftest.$ac_objext \
38317       conftest$ac_exeext conftest.$ac_ext
38318 LIBS=$ac_check_lib_save_LIBS
38319 fi
38320 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38321 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38322 if test $ac_cv_lib_unicows_main = yes; then
38323
38324                 cat >>confdefs.h <<\_ACEOF
38325 #define wxUSE_UNICODE_MSLU 1
38326 _ACEOF
38327
38328
38329 else
38330
38331                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38332                              Applications will only run on Windows NT/2000/XP!" >&5
38333 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38334                              Applications will only run on Windows NT/2000/XP!" >&2;}
38335                 wxUSE_UNICODE_MSLU=no
38336
38337 fi
38338
38339     fi
38340 fi
38341
38342 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38343   cat >>confdefs.h <<\_ACEOF
38344 #define wxUSE_EXPERIMENTAL_PRINTF 1
38345 _ACEOF
38346
38347 fi
38348
38349
38350 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38351   cat >>confdefs.h <<\_ACEOF
38352 #define wxUSE_POSTSCRIPT 1
38353 _ACEOF
38354
38355 fi
38356
38357 cat >>confdefs.h <<\_ACEOF
38358 #define wxUSE_AFM_FOR_POSTSCRIPT 1
38359 _ACEOF
38360
38361
38362 cat >>confdefs.h <<\_ACEOF
38363 #define wxUSE_NORMALIZED_PS_FONTS 1
38364 _ACEOF
38365
38366
38367
38368 if test "$wxUSE_CONSTRAINTS" = "yes"; then
38369     cat >>confdefs.h <<\_ACEOF
38370 #define wxUSE_CONSTRAINTS 1
38371 _ACEOF
38372
38373     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38374 fi
38375
38376 if test "$wxUSE_MDI" = "yes"; then
38377     cat >>confdefs.h <<\_ACEOF
38378 #define wxUSE_MDI 1
38379 _ACEOF
38380
38381
38382     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38383         cat >>confdefs.h <<\_ACEOF
38384 #define wxUSE_MDI_ARCHITECTURE 1
38385 _ACEOF
38386
38387         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38388     fi
38389 fi
38390
38391 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38392     cat >>confdefs.h <<\_ACEOF
38393 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
38394 _ACEOF
38395
38396     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38397     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38398         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38399     fi
38400 fi
38401
38402 if test "$wxUSE_HELP" = "yes"; then
38403     cat >>confdefs.h <<\_ACEOF
38404 #define wxUSE_HELP 1
38405 _ACEOF
38406
38407     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38408
38409     if test "$wxUSE_MSW" = 1; then
38410       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38411         cat >>confdefs.h <<\_ACEOF
38412 #define wxUSE_MS_HTML_HELP 1
38413 _ACEOF
38414
38415       fi
38416     fi
38417
38418     if test "$wxUSE_WXHTML_HELP" = "yes"; then
38419       if test "$wxUSE_HTML" = "yes"; then
38420         cat >>confdefs.h <<\_ACEOF
38421 #define wxUSE_WXHTML_HELP 1
38422 _ACEOF
38423
38424       else
38425         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38426 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38427         wxUSE_WXHTML_HELP=no
38428       fi
38429     fi
38430 fi
38431
38432 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38433     if test "$wxUSE_CONSTRAINTS" != "yes"; then
38434         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38435 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38436     else
38437         cat >>confdefs.h <<\_ACEOF
38438 #define wxUSE_PRINTING_ARCHITECTURE 1
38439 _ACEOF
38440
38441     fi
38442     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38443 fi
38444
38445 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
38446     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38447 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38448    { (exit 1); exit 1; }; }
38449 fi
38450
38451
38452 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
38453                           -o "$wxUSE_CLIPBOARD"     = "yes" \
38454                           -o "$wxUSE_OLE"     = "yes" \
38455                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38456
38457 for ac_header in ole2.h
38458 do
38459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38461   echo "$as_me:$LINENO: checking for $ac_header" >&5
38462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38464   echo $ECHO_N "(cached) $ECHO_C" >&6
38465 fi
38466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38468 else
38469   # Is the header compilable?
38470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38472 cat >conftest.$ac_ext <<_ACEOF
38473 /* confdefs.h.  */
38474 _ACEOF
38475 cat confdefs.h >>conftest.$ac_ext
38476 cat >>conftest.$ac_ext <<_ACEOF
38477 /* end confdefs.h.  */
38478 $ac_includes_default
38479 #include <$ac_header>
38480 _ACEOF
38481 rm -f conftest.$ac_objext
38482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38483   (eval $ac_compile) 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); } &&
38490          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38492   (eval $ac_try) 2>&5
38493   ac_status=$?
38494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38495   (exit $ac_status); }; } &&
38496          { ac_try='test -s conftest.$ac_objext'
38497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38498   (eval $ac_try) 2>&5
38499   ac_status=$?
38500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38501   (exit $ac_status); }; }; then
38502   ac_header_compiler=yes
38503 else
38504   echo "$as_me: failed program was:" >&5
38505 sed 's/^/| /' conftest.$ac_ext >&5
38506
38507 ac_header_compiler=no
38508 fi
38509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38511 echo "${ECHO_T}$ac_header_compiler" >&6
38512
38513 # Is the header present?
38514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38516 cat >conftest.$ac_ext <<_ACEOF
38517 /* confdefs.h.  */
38518 _ACEOF
38519 cat confdefs.h >>conftest.$ac_ext
38520 cat >>conftest.$ac_ext <<_ACEOF
38521 /* end confdefs.h.  */
38522 #include <$ac_header>
38523 _ACEOF
38524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38526   ac_status=$?
38527   grep -v '^ *+' conftest.er1 >conftest.err
38528   rm -f conftest.er1
38529   cat conftest.err >&5
38530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38531   (exit $ac_status); } >/dev/null; then
38532   if test -s conftest.err; then
38533     ac_cpp_err=$ac_c_preproc_warn_flag
38534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38535   else
38536     ac_cpp_err=
38537   fi
38538 else
38539   ac_cpp_err=yes
38540 fi
38541 if test -z "$ac_cpp_err"; then
38542   ac_header_preproc=yes
38543 else
38544   echo "$as_me: failed program was:" >&5
38545 sed 's/^/| /' conftest.$ac_ext >&5
38546
38547   ac_header_preproc=no
38548 fi
38549 rm -f conftest.err conftest.$ac_ext
38550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38551 echo "${ECHO_T}$ac_header_preproc" >&6
38552
38553 # So?  What about this header?
38554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38555   yes:no: )
38556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38560     ac_header_preproc=yes
38561     ;;
38562   no:yes:* )
38563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38575     (
38576       cat <<\_ASBOX
38577 ## ----------------------------------------- ##
38578 ## Report this to wx-dev@lists.wxwidgets.org ##
38579 ## ----------------------------------------- ##
38580 _ASBOX
38581     ) |
38582       sed "s/^/$as_me: WARNING:     /" >&2
38583     ;;
38584 esac
38585 echo "$as_me:$LINENO: checking for $ac_header" >&5
38586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38588   echo $ECHO_N "(cached) $ECHO_C" >&6
38589 else
38590   eval "$as_ac_Header=\$ac_header_preproc"
38591 fi
38592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38594
38595 fi
38596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38597   cat >>confdefs.h <<_ACEOF
38598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38599 _ACEOF
38600
38601 fi
38602
38603 done
38604
38605
38606     if test "$ac_cv_header_ole2_h" = "yes" ; then
38607         if test "$GCC" = yes ; then
38608
38609
38610             ac_ext=cc
38611 ac_cpp='$CXXCPP $CPPFLAGS'
38612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38615
38616
38617             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38618 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38619             cat >conftest.$ac_ext <<_ACEOF
38620 /* confdefs.h.  */
38621 _ACEOF
38622 cat confdefs.h >>conftest.$ac_ext
38623 cat >>conftest.$ac_ext <<_ACEOF
38624 /* end confdefs.h.  */
38625 #include <windows.h>
38626                             #include <ole2.h>
38627 int
38628 main ()
38629 {
38630
38631   ;
38632   return 0;
38633 }
38634 _ACEOF
38635 rm -f conftest.$ac_objext
38636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38637   (eval $ac_compile) 2>conftest.er1
38638   ac_status=$?
38639   grep -v '^ *+' conftest.er1 >conftest.err
38640   rm -f conftest.er1
38641   cat conftest.err >&5
38642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643   (exit $ac_status); } &&
38644          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38646   (eval $ac_try) 2>&5
38647   ac_status=$?
38648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649   (exit $ac_status); }; } &&
38650          { ac_try='test -s conftest.$ac_objext'
38651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38652   (eval $ac_try) 2>&5
38653   ac_status=$?
38654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655   (exit $ac_status); }; }; then
38656   echo "$as_me:$LINENO: result: no" >&5
38657 echo "${ECHO_T}no" >&6
38658 else
38659   echo "$as_me: failed program was:" >&5
38660 sed 's/^/| /' conftest.$ac_ext >&5
38661
38662 echo "$as_me:$LINENO: result: yes" >&5
38663 echo "${ECHO_T}yes" >&6
38664                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38665 fi
38666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38667             ac_ext=c
38668 ac_cpp='$CPP $CPPFLAGS'
38669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38672
38673             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38674             if test "$wxUSE_OLE" = "yes" ; then
38675                 cat >>confdefs.h <<\_ACEOF
38676 #define wxUSE_OLE 1
38677 _ACEOF
38678
38679                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
38680             fi
38681         fi
38682
38683                 if test "$wxUSE_DATAOBJ" = "yes" ; then
38684             cat >>confdefs.h <<\_ACEOF
38685 #define wxUSE_DATAOBJ 1
38686 _ACEOF
38687
38688         fi
38689     else
38690         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38691 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38692
38693         wxUSE_CLIPBOARD=no
38694         wxUSE_DRAG_AND_DROP=no
38695         wxUSE_DATAOBJ=no
38696         wxUSE_OLE=no
38697     fi
38698
38699     if test "$wxUSE_METAFILE" = "yes"; then
38700         cat >>confdefs.h <<\_ACEOF
38701 #define wxUSE_METAFILE 1
38702 _ACEOF
38703
38704
38705                 cat >>confdefs.h <<\_ACEOF
38706 #define wxUSE_ENH_METAFILE 1
38707 _ACEOF
38708
38709     fi
38710 fi
38711
38712 if test "$wxUSE_IPC" = "yes"; then
38713     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
38714         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38715 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
38716         wxUSE_IPC=no
38717     fi
38718
38719     if test "$wxUSE_IPC" = "yes"; then
38720         cat >>confdefs.h <<\_ACEOF
38721 #define wxUSE_IPC 1
38722 _ACEOF
38723
38724         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38725     fi
38726 fi
38727
38728 if test "$wxUSE_CLIPBOARD" = "yes"; then
38729     if test "$wxUSE_MGL" = 1; then
38730         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38731 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38732         wxUSE_CLIPBOARD=no
38733     fi
38734
38735     if test "$wxUSE_CLIPBOARD" = "yes"; then
38736         cat >>confdefs.h <<\_ACEOF
38737 #define wxUSE_CLIPBOARD 1
38738 _ACEOF
38739
38740
38741                 cat >>confdefs.h <<\_ACEOF
38742 #define wxUSE_DATAOBJ 1
38743 _ACEOF
38744
38745     fi
38746 fi
38747
38748 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38749     if test "$wxUSE_GTK" = 1; then
38750         if test "$WXGTK12" != 1; then
38751             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38752 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38753             wxUSE_DRAG_AND_DROP=no
38754         fi
38755     fi
38756
38757     if test "$wxUSE_MOTIF" = 1; then
38758         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38759 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38760         wxUSE_DRAG_AND_DROP=no
38761     fi
38762
38763     if test "$wxUSE_X11" = 1; then
38764         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38765 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38766         wxUSE_DRAG_AND_DROP=no
38767     fi
38768
38769     if test "$wxUSE_MGL" = 1; then
38770         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38771 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38772         wxUSE_DRAG_AND_DROP=no
38773     fi
38774
38775     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38776         cat >>confdefs.h <<\_ACEOF
38777 #define wxUSE_DRAG_AND_DROP 1
38778 _ACEOF
38779
38780     fi
38781
38782 fi
38783
38784 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38785     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38786 fi
38787
38788 if test "$wxUSE_SPLINES" = "yes" ; then
38789   cat >>confdefs.h <<\_ACEOF
38790 #define wxUSE_SPLINES 1
38791 _ACEOF
38792
38793 fi
38794
38795 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
38796   cat >>confdefs.h <<\_ACEOF
38797 #define wxUSE_MOUSEWHEEL 1
38798 _ACEOF
38799
38800 fi
38801
38802
38803 USES_CONTROLS=0
38804 if test "$wxUSE_CONTROLS" = "yes"; then
38805   USES_CONTROLS=1
38806 fi
38807
38808 if test "$wxUSE_ACCEL" = "yes"; then
38809   cat >>confdefs.h <<\_ACEOF
38810 #define wxUSE_ACCEL 1
38811 _ACEOF
38812
38813   USES_CONTROLS=1
38814 fi
38815
38816 if test "$wxUSE_BUTTON" = "yes"; then
38817   cat >>confdefs.h <<\_ACEOF
38818 #define wxUSE_BUTTON 1
38819 _ACEOF
38820
38821   USES_CONTROLS=1
38822 fi
38823
38824 if test "$wxUSE_BMPBUTTON" = "yes"; then
38825   cat >>confdefs.h <<\_ACEOF
38826 #define wxUSE_BMPBUTTON 1
38827 _ACEOF
38828
38829   USES_CONTROLS=1
38830 fi
38831
38832 if test "$wxUSE_CALCTRL" = "yes"; then
38833   cat >>confdefs.h <<\_ACEOF
38834 #define wxUSE_CALENDARCTRL 1
38835 _ACEOF
38836
38837   USES_CONTROLS=1
38838   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38839 fi
38840
38841 if test "$wxUSE_CARET" = "yes"; then
38842   cat >>confdefs.h <<\_ACEOF
38843 #define wxUSE_CARET 1
38844 _ACEOF
38845
38846   USES_CONTROLS=1
38847   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38848 fi
38849
38850 if test "$wxUSE_COMBOBOX" = "yes"; then
38851   cat >>confdefs.h <<\_ACEOF
38852 #define wxUSE_COMBOBOX 1
38853 _ACEOF
38854
38855   USES_CONTROLS=1
38856 fi
38857
38858 if test "$wxUSE_CHOICE" = "yes"; then
38859   cat >>confdefs.h <<\_ACEOF
38860 #define wxUSE_CHOICE 1
38861 _ACEOF
38862
38863   USES_CONTROLS=1
38864 fi
38865
38866 if test "$wxUSE_CHOICEBOOK" = "yes"; then
38867     cat >>confdefs.h <<\_ACEOF
38868 #define wxUSE_CHOICEBOOK 1
38869 _ACEOF
38870
38871     USES_CONTROLS=1
38872 fi
38873
38874 if test "$wxUSE_CHECKBOX" = "yes"; then
38875   cat >>confdefs.h <<\_ACEOF
38876 #define wxUSE_CHECKBOX 1
38877 _ACEOF
38878
38879   USES_CONTROLS=1
38880 fi
38881
38882 if test "$wxUSE_CHECKLST" = "yes"; then
38883   cat >>confdefs.h <<\_ACEOF
38884 #define wxUSE_CHECKLISTBOX 1
38885 _ACEOF
38886
38887   USES_CONTROLS=1
38888   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38889 fi
38890
38891 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38892   cat >>confdefs.h <<\_ACEOF
38893 #define wxUSE_DATEPICKCTRL 1
38894 _ACEOF
38895
38896   USES_CONTROLS=1
38897 fi
38898
38899 if test "$wxUSE_DISPLAY" = "yes"; then
38900     cat >>confdefs.h <<\_ACEOF
38901 #define wxUSE_DISPLAY 1
38902 _ACEOF
38903
38904     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
38905 fi
38906
38907 if test "$wxUSE_GAUGE" = "yes"; then
38908   cat >>confdefs.h <<\_ACEOF
38909 #define wxUSE_GAUGE 1
38910 _ACEOF
38911
38912   USES_CONTROLS=1
38913 fi
38914
38915 if test "$wxUSE_GRID" = "yes"; then
38916   cat >>confdefs.h <<\_ACEOF
38917 #define wxUSE_GRID 1
38918 _ACEOF
38919
38920   USES_CONTROLS=1
38921   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38922 fi
38923
38924 if test "$wxUSE_IMAGLIST" = "yes"; then
38925     cat >>confdefs.h <<\_ACEOF
38926 #define wxUSE_IMAGLIST 1
38927 _ACEOF
38928
38929 fi
38930
38931 if test "$wxUSE_LISTBOOK" = "yes"; then
38932     cat >>confdefs.h <<\_ACEOF
38933 #define wxUSE_LISTBOOK 1
38934 _ACEOF
38935
38936     USES_CONTROLS=1
38937 fi
38938
38939 if test "$wxUSE_LISTBOX" = "yes"; then
38940     cat >>confdefs.h <<\_ACEOF
38941 #define wxUSE_LISTBOX 1
38942 _ACEOF
38943
38944     USES_CONTROLS=1
38945     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
38946 fi
38947
38948 if test "$wxUSE_LISTCTRL" = "yes"; then
38949     if test "$wxUSE_IMAGLIST" = "yes"; then
38950         cat >>confdefs.h <<\_ACEOF
38951 #define wxUSE_LISTCTRL 1
38952 _ACEOF
38953
38954         USES_CONTROLS=1
38955         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38956     else
38957         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38958 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38959     fi
38960 fi
38961
38962 if test "$wxUSE_NOTEBOOK" = "yes"; then
38963     cat >>confdefs.h <<\_ACEOF
38964 #define wxUSE_NOTEBOOK 1
38965 _ACEOF
38966
38967     USES_CONTROLS=1
38968     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38969 fi
38970
38971
38972 if test "$wxUSE_RADIOBOX" = "yes"; then
38973     cat >>confdefs.h <<\_ACEOF
38974 #define wxUSE_RADIOBOX 1
38975 _ACEOF
38976
38977     USES_CONTROLS=1
38978 fi
38979
38980 if test "$wxUSE_RADIOBTN" = "yes"; then
38981     cat >>confdefs.h <<\_ACEOF
38982 #define wxUSE_RADIOBTN 1
38983 _ACEOF
38984
38985     USES_CONTROLS=1
38986 fi
38987
38988 if test "$wxUSE_SASH" = "yes"; then
38989     cat >>confdefs.h <<\_ACEOF
38990 #define wxUSE_SASH 1
38991 _ACEOF
38992
38993     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38994 fi
38995
38996 if test "$wxUSE_SCROLLBAR" = "yes"; then
38997     cat >>confdefs.h <<\_ACEOF
38998 #define wxUSE_SCROLLBAR 1
38999 _ACEOF
39000
39001     USES_CONTROLS=1
39002     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39003 fi
39004
39005 if test "$wxUSE_SLIDER" = "yes"; then
39006     cat >>confdefs.h <<\_ACEOF
39007 #define wxUSE_SLIDER 1
39008 _ACEOF
39009
39010     USES_CONTROLS=1
39011 fi
39012
39013 if test "$wxUSE_SPINBTN" = "yes"; then
39014     cat >>confdefs.h <<\_ACEOF
39015 #define wxUSE_SPINBTN 1
39016 _ACEOF
39017
39018     USES_CONTROLS=1
39019 fi
39020
39021 if test "$wxUSE_SPINCTRL" = "yes"; then
39022     cat >>confdefs.h <<\_ACEOF
39023 #define wxUSE_SPINCTRL 1
39024 _ACEOF
39025
39026     USES_CONTROLS=1
39027 fi
39028
39029 if test "$wxUSE_SPLITTER" = "yes"; then
39030     cat >>confdefs.h <<\_ACEOF
39031 #define wxUSE_SPLITTER 1
39032 _ACEOF
39033
39034     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39035 fi
39036
39037 if test "$wxUSE_STATBMP" = "yes"; then
39038     cat >>confdefs.h <<\_ACEOF
39039 #define wxUSE_STATBMP 1
39040 _ACEOF
39041
39042     USES_CONTROLS=1
39043 fi
39044
39045 if test "$wxUSE_STATBOX" = "yes"; then
39046     cat >>confdefs.h <<\_ACEOF
39047 #define wxUSE_STATBOX 1
39048 _ACEOF
39049
39050     USES_CONTROLS=1
39051 fi
39052
39053 if test "$wxUSE_STATTEXT" = "yes"; then
39054     cat >>confdefs.h <<\_ACEOF
39055 #define wxUSE_STATTEXT 1
39056 _ACEOF
39057
39058     USES_CONTROLS=1
39059 fi
39060
39061 if test "$wxUSE_STATLINE" = "yes"; then
39062     cat >>confdefs.h <<\_ACEOF
39063 #define wxUSE_STATLINE 1
39064 _ACEOF
39065
39066     USES_CONTROLS=1
39067 fi
39068
39069 if test "$wxUSE_STATUSBAR" = "yes"; then
39070         cat >>confdefs.h <<\_ACEOF
39071 #define wxUSE_NATIVE_STATUSBAR 1
39072 _ACEOF
39073
39074     cat >>confdefs.h <<\_ACEOF
39075 #define wxUSE_STATUSBAR 1
39076 _ACEOF
39077
39078     USES_CONTROLS=1
39079
39080     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39081 fi
39082
39083 if test "$wxUSE_TABDIALOG" = "yes"; then
39084     cat >>confdefs.h <<\_ACEOF
39085 #define wxUSE_TAB_DIALOG 1
39086 _ACEOF
39087
39088 fi
39089
39090 if test "$wxUSE_TEXTCTRL" = "yes"; then
39091     cat >>confdefs.h <<\_ACEOF
39092 #define wxUSE_TEXTCTRL 1
39093 _ACEOF
39094
39095     USES_CONTROLS=1
39096     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39097 fi
39098
39099 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39100     if test "$wxUSE_COCOA" = 1 ; then
39101         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39102 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39103         wxUSE_TOGGLEBTN=no
39104     fi
39105     if test "$wxUSE_UNIVERSAL" = "yes"; then
39106         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39107 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39108         wxUSE_TOGGLEBTN=no
39109     fi
39110
39111     if test "$wxUSE_TOGGLEBTN" = "yes"; then
39112         cat >>confdefs.h <<\_ACEOF
39113 #define wxUSE_TOGGLEBTN 1
39114 _ACEOF
39115
39116         USES_CONTROLS=1
39117     fi
39118 fi
39119
39120 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39121     cat >>confdefs.h <<\_ACEOF
39122 #define wxUSE_TOOLBAR_SIMPLE 1
39123 _ACEOF
39124
39125     wxUSE_TOOLBAR="yes"
39126     USES_CONTROLS=1
39127 fi
39128
39129 if test "$wxUSE_TOOLBAR" = "yes"; then
39130     cat >>confdefs.h <<\_ACEOF
39131 #define wxUSE_TOOLBAR 1
39132 _ACEOF
39133
39134     USES_CONTROLS=1
39135
39136         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39137         wxUSE_TOOLBAR_NATIVE="yes"
39138     fi
39139
39140     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39141         cat >>confdefs.h <<\_ACEOF
39142 #define wxUSE_TOOLBAR_NATIVE 1
39143 _ACEOF
39144
39145         USES_CONTROLS=1
39146     fi
39147
39148     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39149 fi
39150
39151 if test "$wxUSE_TOOLTIPS" = "yes"; then
39152     if test "$wxUSE_MOTIF" = 1; then
39153         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39154 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39155     else
39156         if test "$wxUSE_UNIVERSAL" = "yes"; then
39157             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39158 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39159         else
39160             cat >>confdefs.h <<\_ACEOF
39161 #define wxUSE_TOOLTIPS 1
39162 _ACEOF
39163
39164         fi
39165     fi
39166 fi
39167
39168 if test "$wxUSE_TREECTRL" = "yes"; then
39169     if test "$wxUSE_IMAGLIST" = "yes"; then
39170         cat >>confdefs.h <<\_ACEOF
39171 #define wxUSE_TREECTRL 1
39172 _ACEOF
39173
39174         USES_CONTROLS=1
39175         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39176     else
39177         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39178 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39179     fi
39180 fi
39181
39182 if test "$wxUSE_POPUPWIN" = "yes"; then
39183     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39184         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39185 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39186     else
39187         if test "$wxUSE_PM" = 1; then
39188             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39189 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39190         else
39191             cat >>confdefs.h <<\_ACEOF
39192 #define wxUSE_POPUPWIN 1
39193 _ACEOF
39194
39195             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
39196
39197             USES_CONTROLS=1
39198         fi
39199     fi
39200 fi
39201
39202 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
39203     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39204         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39205 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39206     else
39207         cat >>confdefs.h <<\_ACEOF
39208 #define wxUSE_DIALUP_MANAGER 1
39209 _ACEOF
39210
39211         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39212     fi
39213 fi
39214
39215 if test "$wxUSE_TIPWINDOW" = "yes"; then
39216     if test "$wxUSE_PM" = 1; then
39217         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39218 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39219     else
39220         cat >>confdefs.h <<\_ACEOF
39221 #define wxUSE_TIPWINDOW 1
39222 _ACEOF
39223
39224     fi
39225 fi
39226
39227 if test "$USES_CONTROLS" = 1; then
39228     cat >>confdefs.h <<\_ACEOF
39229 #define wxUSE_CONTROLS 1
39230 _ACEOF
39231
39232 fi
39233
39234
39235 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39236     cat >>confdefs.h <<\_ACEOF
39237 #define wxUSE_ACCESSIBILITY 1
39238 _ACEOF
39239
39240     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39241 fi
39242
39243 if test "$wxUSE_DRAGIMAGE" = "yes"; then
39244     cat >>confdefs.h <<\_ACEOF
39245 #define wxUSE_DRAGIMAGE 1
39246 _ACEOF
39247
39248     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39249 fi
39250
39251 if test "$wxUSE_EXCEPTIONS" = "yes"; then
39252     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39253         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39254 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39255     else
39256         cat >>confdefs.h <<\_ACEOF
39257 #define wxUSE_EXCEPTIONS 1
39258 _ACEOF
39259
39260         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39261     fi
39262 fi
39263
39264 USE_HTML=0
39265 if test "$wxUSE_HTML" = "yes"; then
39266     cat >>confdefs.h <<\_ACEOF
39267 #define wxUSE_HTML 1
39268 _ACEOF
39269
39270     USE_HTML=1
39271     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
39272     if test "$wxUSE_MAC" = 1; then
39273         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39274     fi
39275 fi
39276 if test "$wxUSE_WEBKIT" = "yes"; then
39277     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
39278         old_CPPFLAGS="$CPPFLAGS"
39279         CPPFLAGS="$CPPFLAGS -x objective-c++"
39280         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39281 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39282 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39283   echo $ECHO_N "(cached) $ECHO_C" >&6
39284 else
39285   cat >conftest.$ac_ext <<_ACEOF
39286 /* confdefs.h.  */
39287 _ACEOF
39288 cat confdefs.h >>conftest.$ac_ext
39289 cat >>conftest.$ac_ext <<_ACEOF
39290 /* end confdefs.h.  */
39291 #include <Carbon/Carbon.h>
39292
39293 #include <WebKit/HIWebView.h>
39294 _ACEOF
39295 rm -f conftest.$ac_objext
39296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39297   (eval $ac_compile) 2>conftest.er1
39298   ac_status=$?
39299   grep -v '^ *+' conftest.er1 >conftest.err
39300   rm -f conftest.er1
39301   cat conftest.err >&5
39302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39303   (exit $ac_status); } &&
39304          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39306   (eval $ac_try) 2>&5
39307   ac_status=$?
39308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39309   (exit $ac_status); }; } &&
39310          { ac_try='test -s conftest.$ac_objext'
39311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39312   (eval $ac_try) 2>&5
39313   ac_status=$?
39314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39315   (exit $ac_status); }; }; then
39316   ac_cv_header_WebKit_HIWebView_h=yes
39317 else
39318   echo "$as_me: failed program was:" >&5
39319 sed 's/^/| /' conftest.$ac_ext >&5
39320
39321 ac_cv_header_WebKit_HIWebView_h=no
39322 fi
39323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39324 fi
39325 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39326 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39327 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39328
39329                            cat >>confdefs.h <<\_ACEOF
39330 #define wxUSE_WEBKIT 1
39331 _ACEOF
39332
39333                            WEBKIT_LINK="-framework WebKit"
39334
39335 else
39336
39337                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39338 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39339                            wxUSE_WEBKIT=no
39340
39341 fi
39342
39343
39344         CPPFLAGS="$old_CPPFLAGS"
39345     elif test "$wxUSE_COCOA" = 1; then
39346         cat >>confdefs.h <<\_ACEOF
39347 #define wxUSE_WEBKIT 1
39348 _ACEOF
39349
39350     else
39351         wxUSE_WEBKIT=no
39352     fi
39353 fi
39354
39355 USE_XRC=0
39356 if test "$wxUSE_XRC" = "yes"; then
39357     if test "$wxUSE_XML" != "yes"; then
39358         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39359 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39360         wxUSE_XRC=no
39361     else
39362         cat >>confdefs.h <<\_ACEOF
39363 #define wxUSE_XRC 1
39364 _ACEOF
39365
39366         USE_XRC=1
39367         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39368     fi
39369 fi
39370
39371 if test "$wxUSE_MENUS" = "yes"; then
39372     cat >>confdefs.h <<\_ACEOF
39373 #define wxUSE_MENUS 1
39374 _ACEOF
39375
39376     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39377 fi
39378
39379 if test "$wxUSE_METAFILE" = "yes"; then
39380     cat >>confdefs.h <<\_ACEOF
39381 #define wxUSE_METAFILE 1
39382 _ACEOF
39383
39384 fi
39385
39386 if test "$wxUSE_MIMETYPE" = "yes"; then
39387     cat >>confdefs.h <<\_ACEOF
39388 #define wxUSE_MIMETYPE 1
39389 _ACEOF
39390
39391 fi
39392
39393 if test "$wxUSE_MINIFRAME" = "yes"; then
39394     cat >>confdefs.h <<\_ACEOF
39395 #define wxUSE_MINIFRAME 1
39396 _ACEOF
39397
39398     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39399 fi
39400
39401 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39402     cat >>confdefs.h <<\_ACEOF
39403 #define wxUSE_SYSTEM_OPTIONS 1
39404 _ACEOF
39405
39406     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
39407         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
39408         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39409     fi
39410 fi
39411
39412
39413 if test "$wxUSE_VALIDATORS" = "yes"; then
39414     cat >>confdefs.h <<\_ACEOF
39415 #define wxUSE_VALIDATORS 1
39416 _ACEOF
39417
39418     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39419 fi
39420
39421 if test "$wxUSE_PALETTE" = "yes" ; then
39422   cat >>confdefs.h <<\_ACEOF
39423 #define wxUSE_PALETTE 1
39424 _ACEOF
39425
39426 fi
39427
39428 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39429     LIBS=" -lunicows $LIBS"
39430 fi
39431
39432
39433 if test "$wxUSE_IMAGE" = "yes" ; then
39434     cat >>confdefs.h <<\_ACEOF
39435 #define wxUSE_IMAGE 1
39436 _ACEOF
39437
39438
39439     if test "$wxUSE_GIF" = "yes" ; then
39440       cat >>confdefs.h <<\_ACEOF
39441 #define wxUSE_GIF 1
39442 _ACEOF
39443
39444     fi
39445
39446     if test "$wxUSE_PCX" = "yes" ; then
39447       cat >>confdefs.h <<\_ACEOF
39448 #define wxUSE_PCX 1
39449 _ACEOF
39450
39451     fi
39452
39453     if test "$wxUSE_IFF" = "yes" ; then
39454       cat >>confdefs.h <<\_ACEOF
39455 #define wxUSE_IFF 1
39456 _ACEOF
39457
39458     fi
39459
39460     if test "$wxUSE_PNM" = "yes" ; then
39461       cat >>confdefs.h <<\_ACEOF
39462 #define wxUSE_PNM 1
39463 _ACEOF
39464
39465     fi
39466
39467     if test "$wxUSE_XPM" = "yes" ; then
39468       cat >>confdefs.h <<\_ACEOF
39469 #define wxUSE_XPM 1
39470 _ACEOF
39471
39472     fi
39473
39474     if test "$wxUSE_ICO_CUR" = "yes" ; then
39475       cat >>confdefs.h <<\_ACEOF
39476 #define wxUSE_ICO_CUR 1
39477 _ACEOF
39478
39479     fi
39480 fi
39481
39482
39483 if test "$wxUSE_CHOICEDLG" = "yes"; then
39484     cat >>confdefs.h <<\_ACEOF
39485 #define wxUSE_CHOICEDLG 1
39486 _ACEOF
39487
39488 fi
39489
39490 if test "$wxUSE_COLOURDLG" = "yes"; then
39491     cat >>confdefs.h <<\_ACEOF
39492 #define wxUSE_COLOURDLG 1
39493 _ACEOF
39494
39495 fi
39496
39497 if test "$wxUSE_FILEDLG" = "yes"; then
39498     cat >>confdefs.h <<\_ACEOF
39499 #define wxUSE_FILEDLG 1
39500 _ACEOF
39501
39502 fi
39503
39504 if test "$wxUSE_FINDREPLDLG" = "yes"; then
39505     cat >>confdefs.h <<\_ACEOF
39506 #define wxUSE_FINDREPLDLG 1
39507 _ACEOF
39508
39509 fi
39510
39511 if test "$wxUSE_FONTDLG" = "yes"; then
39512     cat >>confdefs.h <<\_ACEOF
39513 #define wxUSE_FONTDLG 1
39514 _ACEOF
39515
39516 fi
39517
39518 if test "$wxUSE_DIRDLG" = "yes"; then
39519     if test "$wxUSE_TREECTRL" != "yes"; then
39520         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39521 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39522     else
39523         cat >>confdefs.h <<\_ACEOF
39524 #define wxUSE_DIRDLG 1
39525 _ACEOF
39526
39527     fi
39528 fi
39529
39530 if test "$wxUSE_MSGDLG" = "yes"; then
39531     cat >>confdefs.h <<\_ACEOF
39532 #define wxUSE_MSGDLG 1
39533 _ACEOF
39534
39535 fi
39536
39537 if test "$wxUSE_NUMBERDLG" = "yes"; then
39538     cat >>confdefs.h <<\_ACEOF
39539 #define wxUSE_NUMBERDLG 1
39540 _ACEOF
39541
39542 fi
39543
39544 if test "$wxUSE_PROGRESSDLG" = "yes"; then
39545     if test "$wxUSE_CONSTRAINTS" != "yes"; then
39546        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39547 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39548     else
39549         cat >>confdefs.h <<\_ACEOF
39550 #define wxUSE_PROGRESSDLG 1
39551 _ACEOF
39552
39553     fi
39554 fi
39555
39556 if test "$wxUSE_SPLASH" = "yes"; then
39557     cat >>confdefs.h <<\_ACEOF
39558 #define wxUSE_SPLASH 1
39559 _ACEOF
39560
39561     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
39562 fi
39563
39564 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39565     if test "$wxUSE_CONSTRAINTS" != "yes"; then
39566        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39567 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39568     else
39569         cat >>confdefs.h <<\_ACEOF
39570 #define wxUSE_STARTUP_TIPS 1
39571 _ACEOF
39572
39573     fi
39574 fi
39575
39576 if test "$wxUSE_TEXTDLG" = "yes"; then
39577     cat >>confdefs.h <<\_ACEOF
39578 #define wxUSE_TEXTDLG 1
39579 _ACEOF
39580
39581 fi
39582
39583 if test "$wxUSE_WIZARDDLG" = "yes"; then
39584     cat >>confdefs.h <<\_ACEOF
39585 #define wxUSE_WIZARDDLG 1
39586 _ACEOF
39587
39588     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39589 fi
39590
39591
39592 if test "$wxUSE_MEDIACTRL" = "yes"; then
39593     if test "$wxUSE_MSW" = 1; then
39594                     wxUSE_DIRECTSHOW="yes"
39595
39596 for ac_header in dshow.h
39597 do
39598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39599 echo "$as_me:$LINENO: checking for $ac_header" >&5
39600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39602   echo $ECHO_N "(cached) $ECHO_C" >&6
39603 else
39604   cat >conftest.$ac_ext <<_ACEOF
39605 /* confdefs.h.  */
39606 _ACEOF
39607 cat confdefs.h >>conftest.$ac_ext
39608 cat >>conftest.$ac_ext <<_ACEOF
39609 /* end confdefs.h.  */
39610 #include <windows.h>
39611
39612 #include <$ac_header>
39613 _ACEOF
39614 rm -f conftest.$ac_objext
39615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39616   (eval $ac_compile) 2>conftest.er1
39617   ac_status=$?
39618   grep -v '^ *+' conftest.er1 >conftest.err
39619   rm -f conftest.er1
39620   cat conftest.err >&5
39621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622   (exit $ac_status); } &&
39623          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39625   (eval $ac_try) 2>&5
39626   ac_status=$?
39627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628   (exit $ac_status); }; } &&
39629          { ac_try='test -s conftest.$ac_objext'
39630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39631   (eval $ac_try) 2>&5
39632   ac_status=$?
39633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634   (exit $ac_status); }; }; then
39635   eval "$as_ac_Header=yes"
39636 else
39637   echo "$as_me: failed program was:" >&5
39638 sed 's/^/| /' conftest.$ac_ext >&5
39639
39640 eval "$as_ac_Header=no"
39641 fi
39642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39643 fi
39644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39647   cat >>confdefs.h <<_ACEOF
39648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39649 _ACEOF
39650
39651 else
39652
39653                 wxUSE_DIRECTSHOW="no"
39654                 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39655 echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39656
39657 fi
39658
39659 done
39660
39661
39662        if test "$wxUSE_DIRECTSHOW" = "yes"; then
39663             cat >>confdefs.h <<\_ACEOF
39664 #define wxUSE_DIRECTSHOW 1
39665 _ACEOF
39666
39667             LIBS="$LIBS -lstrmiids"
39668        fi
39669     fi
39670
39671                 if test "$wxUSE_GTK" = 1; then
39672         wxUSE_GSTREAMER="yes"
39673
39674
39675   succeeded=no
39676
39677   if test -z "$PKG_CONFIG"; then
39678     # Extract the first word of "pkg-config", so it can be a program name with args.
39679 set dummy pkg-config; ac_word=$2
39680 echo "$as_me:$LINENO: checking for $ac_word" >&5
39681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39682 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39683   echo $ECHO_N "(cached) $ECHO_C" >&6
39684 else
39685   case $PKG_CONFIG in
39686   [\\/]* | ?:[\\/]*)
39687   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39688   ;;
39689   *)
39690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39691 for as_dir in $PATH
39692 do
39693   IFS=$as_save_IFS
39694   test -z "$as_dir" && as_dir=.
39695   for ac_exec_ext in '' $ac_executable_extensions; do
39696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39697     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39699     break 2
39700   fi
39701 done
39702 done
39703
39704   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39705   ;;
39706 esac
39707 fi
39708 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39709
39710 if test -n "$PKG_CONFIG"; then
39711   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39712 echo "${ECHO_T}$PKG_CONFIG" >&6
39713 else
39714   echo "$as_me:$LINENO: result: no" >&5
39715 echo "${ECHO_T}no" >&6
39716 fi
39717
39718   fi
39719
39720   if test "$PKG_CONFIG" = "no" ; then
39721      echo "*** The pkg-config script could not be found. Make sure it is"
39722      echo "*** in your path, or set the PKG_CONFIG environment variable"
39723      echo "*** to the full path to pkg-config."
39724      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39725   else
39726      PKG_CONFIG_MIN_VERSION=0.9.0
39727      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39728         echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39729 echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39730
39731         if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39732             echo "$as_me:$LINENO: result: yes" >&5
39733 echo "${ECHO_T}yes" >&6
39734             succeeded=yes
39735
39736             echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39737 echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39738             GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39739             echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39740 echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39741
39742             echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39743 echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39744             GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39745             echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39746 echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39747         else
39748             GSTREAMER_CFLAGS=""
39749             GSTREAMER_LIBS=""
39750             ## If we have a custom action on failure, don't print errors, but
39751             ## do set a variable so people can do so.
39752             GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
39753
39754         fi
39755
39756
39757
39758      else
39759         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39760         echo "*** See http://www.freedesktop.org/software/pkgconfig"
39761      fi
39762   fi
39763
39764   if test $succeeded = yes; then
39765
39766             CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39767             LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
39768
39769   else
39770
39771             { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39772 echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39773             wxUSE_GSTREAMER="no"
39774
39775   fi
39776
39777
39778
39779
39780
39781         if test "x$GST_INSPECT" == "x"; then
39782             # Extract the first word of "gst-inspect", so it can be a program name with args.
39783 set dummy gst-inspect; ac_word=$2
39784 echo "$as_me:$LINENO: checking for $ac_word" >&5
39785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39786 if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39787   echo $ECHO_N "(cached) $ECHO_C" >&6
39788 else
39789   if test -n "$GST_INSPECT"; then
39790   ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39791 else
39792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39793 for as_dir in $PATH
39794 do
39795   IFS=$as_save_IFS
39796   test -z "$as_dir" && as_dir=.
39797   for ac_exec_ext in '' $ac_executable_extensions; do
39798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39799     ac_cv_prog_GST_INSPECT="gst-inspect"
39800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39801     break 2
39802   fi
39803 done
39804 done
39805
39806 fi
39807 fi
39808 GST_INSPECT=$ac_cv_prog_GST_INSPECT
39809 if test -n "$GST_INSPECT"; then
39810   echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39811 echo "${ECHO_T}$GST_INSPECT" >&6
39812 else
39813   echo "$as_me:$LINENO: result: no" >&5
39814 echo "${ECHO_T}no" >&6
39815 fi
39816
39817         fi
39818
39819         if test "x$GST_INSPECT" != "x"; then
39820             echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39821 echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39822             if  $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39823             echo "$as_me:$LINENO: result: found." >&5
39824 echo "${ECHO_T}found." >&6
39825
39826             else
39827             echo "$as_me:$LINENO: result: not found." >&5
39828 echo "${ECHO_T}not found." >&6
39829
39830                             wxUSE_GSTREAMER="no"
39831                             { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39832 echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39833
39834             fi
39835         fi
39836
39837
39838                                 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39839 echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39840 if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39841   echo $ECHO_N "(cached) $ECHO_C" >&6
39842 else
39843   cat >conftest.$ac_ext <<_ACEOF
39844 /* confdefs.h.  */
39845 _ACEOF
39846 cat confdefs.h >>conftest.$ac_ext
39847 cat >>conftest.$ac_ext <<_ACEOF
39848 /* end confdefs.h.  */
39849 #include <gst/gst.h>
39850
39851 #include <gst/xoverlay/xoverlay.h>
39852 _ACEOF
39853 rm -f conftest.$ac_objext
39854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39855   (eval $ac_compile) 2>conftest.er1
39856   ac_status=$?
39857   grep -v '^ *+' conftest.er1 >conftest.err
39858   rm -f conftest.er1
39859   cat conftest.err >&5
39860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39861   (exit $ac_status); } &&
39862          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39864   (eval $ac_try) 2>&5
39865   ac_status=$?
39866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39867   (exit $ac_status); }; } &&
39868          { ac_try='test -s conftest.$ac_objext'
39869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39870   (eval $ac_try) 2>&5
39871   ac_status=$?
39872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39873   (exit $ac_status); }; }; then
39874   ac_cv_header_gst_xoverlay_xoverlay_h=yes
39875 else
39876   echo "$as_me: failed program was:" >&5
39877 sed 's/^/| /' conftest.$ac_ext >&5
39878
39879 ac_cv_header_gst_xoverlay_xoverlay_h=no
39880 fi
39881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39882 fi
39883 echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39884 echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39885 if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39886   :
39887 else
39888
39889                             wxUSE_GSTREAMER="no"
39890                             { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39891 echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
39892
39893 fi
39894
39895
39896
39897         echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
39898 echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39899
39900 ac_find_libraries=
39901 for ac_dir in $SEARCH_LIB /usr/lib;
39902   do
39903     for ac_extension in a so sl dylib; do
39904       if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39905         ac_find_libraries=$ac_dir
39906         break 2
39907       fi
39908     done
39909   done
39910
39911
39912         if test "$ac_find_libraries" = "" ; then
39913             echo "$as_me:$LINENO: result: no" >&5
39914 echo "${ECHO_T}no" >&6
39915             wxUSE_GSTREAMER="no"
39916         else
39917             echo "$as_me:$LINENO: result: yes" >&5
39918 echo "${ECHO_T}yes" >&6
39919         fi
39920
39921         if test "$wxUSE_GSTREAMER" = "yes"; then
39922             cat >>confdefs.h <<\_ACEOF
39923 #define wxUSE_GSTREAMER 1
39924 _ACEOF
39925
39926             echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39927 echo "${ECHO_T}GStreamer detection successful" >&6
39928         fi
39929     fi
39930     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39931     cat >>confdefs.h <<\_ACEOF
39932 #define wxUSE_MEDIACTRL 1
39933 _ACEOF
39934
39935 fi
39936
39937
39938 if test "$cross_compiling" = "yes"; then
39939         OSINFO="\"$host\""
39940 else
39941         OSINFO=`uname -s -r -m`
39942     OSINFO="\"$OSINFO\""
39943 fi
39944
39945 cat >>confdefs.h <<_ACEOF
39946 #define WXWIN_OS_DESCRIPTION $OSINFO
39947 _ACEOF
39948
39949
39950
39951 if test "x$prefix" != "xNONE"; then
39952     wxPREFIX=$prefix
39953 else
39954     wxPREFIX=$ac_default_prefix
39955 fi
39956
39957 cat >>confdefs.h <<_ACEOF
39958 #define wxINSTALL_PREFIX "$wxPREFIX"
39959 _ACEOF
39960
39961
39962
39963
39964 CORE_BASE_LIBS="net base"
39965 CORE_GUI_LIBS="adv core"
39966
39967 if test "$wxUSE_XML" = "yes" ; then
39968     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39969 fi
39970 if test "$wxUSE_ODBC" != "no" ; then
39971     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39972     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39973 fi
39974 if test "$wxUSE_HTML" = "yes" ; then
39975     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39976 fi
39977 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
39978     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
39979 fi
39980 if test "$wxUSE_XRC" = "yes" ; then
39981     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39982 fi
39983
39984 if test "$wxUSE_GUI" != "yes"; then
39985     CORE_GUI_LIBS=""
39986 fi
39987
39988
39989
39990
39991
39992
39993
39994
39995 if test "$wxUSE_MAC" = 1 ; then
39996     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
39997         if test "$USE_DARWIN" = 1; then
39998             LDFLAGS="$LDFLAGS -framework QuickTime"
39999         else
40000             LDFLAGS="$LDFLAGS -lQuickTimeLib"
40001         fi
40002     fi
40003     if test "$USE_DARWIN" = 1; then
40004         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40005     else
40006         LDFLAGS="$LDFLAGS -lCarbonLib"
40007     fi
40008 elif test "$USE_DARWIN" = 1; then
40009     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System"
40010 fi
40011 if test "$wxUSE_COCOA" = 1 ; then
40012     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
40013     if test "$wxUSE_MEDIACTRL" = "yes"; then
40014         LDFLAGS="$LDFLAGS -framework QuickTime"
40015     fi
40016 fi
40017
40018
40019 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40020
40021 have_cos=0
40022 have_floor=0
40023
40024 for ac_func in cos
40025 do
40026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40027 echo "$as_me:$LINENO: checking for $ac_func" >&5
40028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40029 if eval "test \"\${$as_ac_var+set}\" = set"; then
40030   echo $ECHO_N "(cached) $ECHO_C" >&6
40031 else
40032   cat >conftest.$ac_ext <<_ACEOF
40033 /* confdefs.h.  */
40034 _ACEOF
40035 cat confdefs.h >>conftest.$ac_ext
40036 cat >>conftest.$ac_ext <<_ACEOF
40037 /* end confdefs.h.  */
40038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40040 #define $ac_func innocuous_$ac_func
40041
40042 /* System header to define __stub macros and hopefully few prototypes,
40043     which can conflict with char $ac_func (); below.
40044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40045     <limits.h> exists even on freestanding compilers.  */
40046
40047 #ifdef __STDC__
40048 # include <limits.h>
40049 #else
40050 # include <assert.h>
40051 #endif
40052
40053 #undef $ac_func
40054
40055 /* Override any gcc2 internal prototype to avoid an error.  */
40056 #ifdef __cplusplus
40057 extern "C"
40058 {
40059 #endif
40060 /* We use char because int might match the return type of a gcc2
40061    builtin and then its argument prototype would still apply.  */
40062 char $ac_func ();
40063 /* The GNU C library defines this for functions which it implements
40064     to always fail with ENOSYS.  Some functions are actually named
40065     something starting with __ and the normal name is an alias.  */
40066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40067 choke me
40068 #else
40069 char (*f) () = $ac_func;
40070 #endif
40071 #ifdef __cplusplus
40072 }
40073 #endif
40074
40075 int
40076 main ()
40077 {
40078 return f != $ac_func;
40079   ;
40080   return 0;
40081 }
40082 _ACEOF
40083 rm -f conftest.$ac_objext conftest$ac_exeext
40084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40085   (eval $ac_link) 2>conftest.er1
40086   ac_status=$?
40087   grep -v '^ *+' conftest.er1 >conftest.err
40088   rm -f conftest.er1
40089   cat conftest.err >&5
40090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40091   (exit $ac_status); } &&
40092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40094   (eval $ac_try) 2>&5
40095   ac_status=$?
40096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40097   (exit $ac_status); }; } &&
40098          { ac_try='test -s conftest$ac_exeext'
40099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40100   (eval $ac_try) 2>&5
40101   ac_status=$?
40102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40103   (exit $ac_status); }; }; then
40104   eval "$as_ac_var=yes"
40105 else
40106   echo "$as_me: failed program was:" >&5
40107 sed 's/^/| /' conftest.$ac_ext >&5
40108
40109 eval "$as_ac_var=no"
40110 fi
40111 rm -f conftest.err conftest.$ac_objext \
40112       conftest$ac_exeext conftest.$ac_ext
40113 fi
40114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40116 if test `eval echo '${'$as_ac_var'}'` = yes; then
40117   cat >>confdefs.h <<_ACEOF
40118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40119 _ACEOF
40120  have_cos=1
40121 fi
40122 done
40123
40124
40125 for ac_func in floor
40126 do
40127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40128 echo "$as_me:$LINENO: checking for $ac_func" >&5
40129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40130 if eval "test \"\${$as_ac_var+set}\" = set"; then
40131   echo $ECHO_N "(cached) $ECHO_C" >&6
40132 else
40133   cat >conftest.$ac_ext <<_ACEOF
40134 /* confdefs.h.  */
40135 _ACEOF
40136 cat confdefs.h >>conftest.$ac_ext
40137 cat >>conftest.$ac_ext <<_ACEOF
40138 /* end confdefs.h.  */
40139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40141 #define $ac_func innocuous_$ac_func
40142
40143 /* System header to define __stub macros and hopefully few prototypes,
40144     which can conflict with char $ac_func (); below.
40145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40146     <limits.h> exists even on freestanding compilers.  */
40147
40148 #ifdef __STDC__
40149 # include <limits.h>
40150 #else
40151 # include <assert.h>
40152 #endif
40153
40154 #undef $ac_func
40155
40156 /* Override any gcc2 internal prototype to avoid an error.  */
40157 #ifdef __cplusplus
40158 extern "C"
40159 {
40160 #endif
40161 /* We use char because int might match the return type of a gcc2
40162    builtin and then its argument prototype would still apply.  */
40163 char $ac_func ();
40164 /* The GNU C library defines this for functions which it implements
40165     to always fail with ENOSYS.  Some functions are actually named
40166     something starting with __ and the normal name is an alias.  */
40167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40168 choke me
40169 #else
40170 char (*f) () = $ac_func;
40171 #endif
40172 #ifdef __cplusplus
40173 }
40174 #endif
40175
40176 int
40177 main ()
40178 {
40179 return f != $ac_func;
40180   ;
40181   return 0;
40182 }
40183 _ACEOF
40184 rm -f conftest.$ac_objext conftest$ac_exeext
40185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40186   (eval $ac_link) 2>conftest.er1
40187   ac_status=$?
40188   grep -v '^ *+' conftest.er1 >conftest.err
40189   rm -f conftest.er1
40190   cat conftest.err >&5
40191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192   (exit $ac_status); } &&
40193          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40195   (eval $ac_try) 2>&5
40196   ac_status=$?
40197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40198   (exit $ac_status); }; } &&
40199          { ac_try='test -s conftest$ac_exeext'
40200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40201   (eval $ac_try) 2>&5
40202   ac_status=$?
40203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40204   (exit $ac_status); }; }; then
40205   eval "$as_ac_var=yes"
40206 else
40207   echo "$as_me: failed program was:" >&5
40208 sed 's/^/| /' conftest.$ac_ext >&5
40209
40210 eval "$as_ac_var=no"
40211 fi
40212 rm -f conftest.err conftest.$ac_objext \
40213       conftest$ac_exeext conftest.$ac_ext
40214 fi
40215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40217 if test `eval echo '${'$as_ac_var'}'` = yes; then
40218   cat >>confdefs.h <<_ACEOF
40219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40220 _ACEOF
40221  have_floor=1
40222 fi
40223 done
40224
40225 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40226 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40227 if test "$have_cos" = 1 -a "$have_floor" = 1; then
40228     echo "$as_me:$LINENO: result: yes" >&5
40229 echo "${ECHO_T}yes" >&6
40230 else
40231     echo "$as_me:$LINENO: result: no" >&5
40232 echo "${ECHO_T}no" >&6
40233     LIBS="$LIBS -lm"
40234     # use different functions to avoid configure caching
40235     have_sin=0
40236     have_ceil=0
40237
40238 for ac_func in sin
40239 do
40240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40241 echo "$as_me:$LINENO: checking for $ac_func" >&5
40242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40243 if eval "test \"\${$as_ac_var+set}\" = set"; then
40244   echo $ECHO_N "(cached) $ECHO_C" >&6
40245 else
40246   cat >conftest.$ac_ext <<_ACEOF
40247 /* confdefs.h.  */
40248 _ACEOF
40249 cat confdefs.h >>conftest.$ac_ext
40250 cat >>conftest.$ac_ext <<_ACEOF
40251 /* end confdefs.h.  */
40252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40254 #define $ac_func innocuous_$ac_func
40255
40256 /* System header to define __stub macros and hopefully few prototypes,
40257     which can conflict with char $ac_func (); below.
40258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40259     <limits.h> exists even on freestanding compilers.  */
40260
40261 #ifdef __STDC__
40262 # include <limits.h>
40263 #else
40264 # include <assert.h>
40265 #endif
40266
40267 #undef $ac_func
40268
40269 /* Override any gcc2 internal prototype to avoid an error.  */
40270 #ifdef __cplusplus
40271 extern "C"
40272 {
40273 #endif
40274 /* We use char because int might match the return type of a gcc2
40275    builtin and then its argument prototype would still apply.  */
40276 char $ac_func ();
40277 /* The GNU C library defines this for functions which it implements
40278     to always fail with ENOSYS.  Some functions are actually named
40279     something starting with __ and the normal name is an alias.  */
40280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40281 choke me
40282 #else
40283 char (*f) () = $ac_func;
40284 #endif
40285 #ifdef __cplusplus
40286 }
40287 #endif
40288
40289 int
40290 main ()
40291 {
40292 return f != $ac_func;
40293   ;
40294   return 0;
40295 }
40296 _ACEOF
40297 rm -f conftest.$ac_objext conftest$ac_exeext
40298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40299   (eval $ac_link) 2>conftest.er1
40300   ac_status=$?
40301   grep -v '^ *+' conftest.er1 >conftest.err
40302   rm -f conftest.er1
40303   cat conftest.err >&5
40304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40305   (exit $ac_status); } &&
40306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40308   (eval $ac_try) 2>&5
40309   ac_status=$?
40310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40311   (exit $ac_status); }; } &&
40312          { ac_try='test -s conftest$ac_exeext'
40313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40314   (eval $ac_try) 2>&5
40315   ac_status=$?
40316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40317   (exit $ac_status); }; }; then
40318   eval "$as_ac_var=yes"
40319 else
40320   echo "$as_me: failed program was:" >&5
40321 sed 's/^/| /' conftest.$ac_ext >&5
40322
40323 eval "$as_ac_var=no"
40324 fi
40325 rm -f conftest.err conftest.$ac_objext \
40326       conftest$ac_exeext conftest.$ac_ext
40327 fi
40328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40330 if test `eval echo '${'$as_ac_var'}'` = yes; then
40331   cat >>confdefs.h <<_ACEOF
40332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40333 _ACEOF
40334  have_sin=1
40335 fi
40336 done
40337
40338
40339 for ac_func in ceil
40340 do
40341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40342 echo "$as_me:$LINENO: checking for $ac_func" >&5
40343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40344 if eval "test \"\${$as_ac_var+set}\" = set"; then
40345   echo $ECHO_N "(cached) $ECHO_C" >&6
40346 else
40347   cat >conftest.$ac_ext <<_ACEOF
40348 /* confdefs.h.  */
40349 _ACEOF
40350 cat confdefs.h >>conftest.$ac_ext
40351 cat >>conftest.$ac_ext <<_ACEOF
40352 /* end confdefs.h.  */
40353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40355 #define $ac_func innocuous_$ac_func
40356
40357 /* System header to define __stub macros and hopefully few prototypes,
40358     which can conflict with char $ac_func (); below.
40359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40360     <limits.h> exists even on freestanding compilers.  */
40361
40362 #ifdef __STDC__
40363 # include <limits.h>
40364 #else
40365 # include <assert.h>
40366 #endif
40367
40368 #undef $ac_func
40369
40370 /* Override any gcc2 internal prototype to avoid an error.  */
40371 #ifdef __cplusplus
40372 extern "C"
40373 {
40374 #endif
40375 /* We use char because int might match the return type of a gcc2
40376    builtin and then its argument prototype would still apply.  */
40377 char $ac_func ();
40378 /* The GNU C library defines this for functions which it implements
40379     to always fail with ENOSYS.  Some functions are actually named
40380     something starting with __ and the normal name is an alias.  */
40381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40382 choke me
40383 #else
40384 char (*f) () = $ac_func;
40385 #endif
40386 #ifdef __cplusplus
40387 }
40388 #endif
40389
40390 int
40391 main ()
40392 {
40393 return f != $ac_func;
40394   ;
40395   return 0;
40396 }
40397 _ACEOF
40398 rm -f conftest.$ac_objext conftest$ac_exeext
40399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40400   (eval $ac_link) 2>conftest.er1
40401   ac_status=$?
40402   grep -v '^ *+' conftest.er1 >conftest.err
40403   rm -f conftest.er1
40404   cat conftest.err >&5
40405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40406   (exit $ac_status); } &&
40407          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40409   (eval $ac_try) 2>&5
40410   ac_status=$?
40411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412   (exit $ac_status); }; } &&
40413          { ac_try='test -s conftest$ac_exeext'
40414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40415   (eval $ac_try) 2>&5
40416   ac_status=$?
40417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418   (exit $ac_status); }; }; then
40419   eval "$as_ac_var=yes"
40420 else
40421   echo "$as_me: failed program was:" >&5
40422 sed 's/^/| /' conftest.$ac_ext >&5
40423
40424 eval "$as_ac_var=no"
40425 fi
40426 rm -f conftest.err conftest.$ac_objext \
40427       conftest$ac_exeext conftest.$ac_ext
40428 fi
40429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40431 if test `eval echo '${'$as_ac_var'}'` = yes; then
40432   cat >>confdefs.h <<_ACEOF
40433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40434 _ACEOF
40435  have_ceil=1
40436 fi
40437 done
40438
40439     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40440 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40441     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40442         echo "$as_me:$LINENO: result: yes" >&5
40443 echo "${ECHO_T}yes" >&6
40444     else
40445         echo "$as_me:$LINENO: result: no" >&5
40446 echo "${ECHO_T}no" >&6
40447         # not sure we should warn the user, crash, etc.
40448     fi
40449 fi
40450
40451 if test "$wxUSE_GUI" = "yes"; then
40452
40453
40454         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40455                      dynamic erase event exec font image minimal mobile \
40456                      mobile/wxedit mobile/styles propsize render \
40457                      richedit rotate shaped vscroll widgets"
40458
40459     if test "$wxUSE_MONOLITHIC" != "yes"; then
40460         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40461     fi
40462     if test "$TOOLKIT" = "MSW"; then
40463         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40464         if test "$wxUSE_UNIVERSAL" != "yes"; then
40465             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40466         fi
40467     fi
40468     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40469         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
40470     fi
40471 else
40472     SAMPLES_SUBDIRS="console"
40473 fi
40474
40475
40476 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
40477 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40478
40479 if test "$GXX" = yes ; then
40480         CWARNINGS="-Wall"
40481     CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
40482         fi
40483
40484 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40485
40486 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
40487 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
40488 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
40489
40490 if test "x$MWCC" = "xyes"; then
40491
40492             CC="$CC -cwd source -I-"
40493     CXX="$CXX -cwd source -I-"
40494 fi
40495
40496
40497 LIBS=`echo $LIBS`
40498 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40499 EXTRALIBS_XML="$EXPAT_LINK"
40500 EXTRALIBS_HTML="$MSPACK_LINK"
40501 EXTRALIBS_ODBC="$ODBC_LINK"
40502 if test "$wxUSE_GUI" = "yes"; then
40503     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
40504 fi
40505 if test "$wxUSE_OPENGL" = "yes"; then
40506     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40507 fi
40508
40509 LDFLAGS="$LDFLAGS $PROFILE"
40510
40511 if test "$wxUSE_GTK" = 1; then
40512     WXCONFIG_INCLUDE=
40513 else
40514     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40515 fi
40516
40517 WXCONFIG_EXTRALIBS="$LIBS"
40518
40519 if test "$wxUSE_REGEX" = "builtin" ; then
40520     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
40521 fi
40522 if test "$wxUSE_EXPAT" = "builtin" ; then
40523     wxconfig_3rdparty="expat $wxconfig_3rdparty"
40524 fi
40525 if test "$wxUSE_ODBC" = "builtin" ; then
40526     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
40527 fi
40528 if test "$wxUSE_LIBTIFF" = "builtin" ; then
40529     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
40530 fi
40531 if test "$wxUSE_LIBJPEG" = "builtin" ; then
40532     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
40533 fi
40534 if test "$wxUSE_LIBPNG" = "builtin" ; then
40535     wxconfig_3rdparty="png $wxconfig_3rdparty"
40536 fi
40537 if test "$wxUSE_ZLIB" = "builtin" ; then
40538     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
40539 fi
40540
40541 for i in $wxconfig_3rdparty ; do
40542     WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
40543 done
40544
40545
40546 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40547     WXUNIV=1
40548 else
40549     WXUNIV=0
40550 fi
40551
40552
40553
40554
40555
40556
40557
40558
40559
40560 if test $wxUSE_MONOLITHIC = "yes" ; then
40561     MONOLITHIC=1
40562 else
40563     MONOLITHIC=0
40564 fi
40565
40566 if test $wxUSE_PLUGINS = "yes" ; then
40567     USE_PLUGINS=1
40568 else
40569     USE_PLUGINS=0
40570 fi
40571
40572 if test $wxUSE_ODBC != "no" ; then
40573     USE_ODBC=1
40574 else
40575     USE_ODBC=0
40576 fi
40577
40578 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40579     USE_QA=1
40580 else
40581     USE_QA=0
40582 fi
40583
40584 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40585     OFFICIAL_BUILD=1
40586 else
40587     OFFICIAL_BUILD=0
40588 fi
40589
40590
40591
40592
40593
40594
40595
40596
40597
40598
40599
40600
40601
40602
40603
40604
40605
40606
40607
40608
40609
40610
40611
40612 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40613
40614
40615
40616
40617
40618
40619
40620
40621 case "$TOOLKIT" in
40622     GTK)
40623         TOOLKIT_USER="GTK+"
40624         if test "$WXGTK20" = 1; then
40625             TOOLKIT_USER="$TOOLKIT_USER 2"
40626         fi
40627         ;;
40628
40629     *)
40630         TOOLKIT_USER=$TOOLKIT_LOWERCASE
40631         ;;
40632 esac
40633
40634
40635
40636
40637     if test "x$BAKEFILE_HOST" = "x"; then
40638         BAKEFILE_HOST="${host}"
40639     fi
40640
40641     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40642
40643     if test -n "$ac_tool_prefix"; then
40644   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40645 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40646 echo "$as_me:$LINENO: checking for $ac_word" >&5
40647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40648 if test "${ac_cv_prog_RANLIB+set}" = set; then
40649   echo $ECHO_N "(cached) $ECHO_C" >&6
40650 else
40651   if test -n "$RANLIB"; then
40652   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40653 else
40654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40655 for as_dir in $PATH
40656 do
40657   IFS=$as_save_IFS
40658   test -z "$as_dir" && as_dir=.
40659   for ac_exec_ext in '' $ac_executable_extensions; do
40660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40661     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40663     break 2
40664   fi
40665 done
40666 done
40667
40668 fi
40669 fi
40670 RANLIB=$ac_cv_prog_RANLIB
40671 if test -n "$RANLIB"; then
40672   echo "$as_me:$LINENO: result: $RANLIB" >&5
40673 echo "${ECHO_T}$RANLIB" >&6
40674 else
40675   echo "$as_me:$LINENO: result: no" >&5
40676 echo "${ECHO_T}no" >&6
40677 fi
40678
40679 fi
40680 if test -z "$ac_cv_prog_RANLIB"; then
40681   ac_ct_RANLIB=$RANLIB
40682   # Extract the first word of "ranlib", so it can be a program name with args.
40683 set dummy ranlib; ac_word=$2
40684 echo "$as_me:$LINENO: checking for $ac_word" >&5
40685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40686 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40687   echo $ECHO_N "(cached) $ECHO_C" >&6
40688 else
40689   if test -n "$ac_ct_RANLIB"; then
40690   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40691 else
40692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40693 for as_dir in $PATH
40694 do
40695   IFS=$as_save_IFS
40696   test -z "$as_dir" && as_dir=.
40697   for ac_exec_ext in '' $ac_executable_extensions; do
40698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40699     ac_cv_prog_ac_ct_RANLIB="ranlib"
40700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40701     break 2
40702   fi
40703 done
40704 done
40705
40706   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40707 fi
40708 fi
40709 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40710 if test -n "$ac_ct_RANLIB"; then
40711   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40712 echo "${ECHO_T}$ac_ct_RANLIB" >&6
40713 else
40714   echo "$as_me:$LINENO: result: no" >&5
40715 echo "${ECHO_T}no" >&6
40716 fi
40717
40718   RANLIB=$ac_ct_RANLIB
40719 else
40720   RANLIB="$ac_cv_prog_RANLIB"
40721 fi
40722
40723     # Find a good install program.  We prefer a C program (faster),
40724 # so one script is as good as another.  But avoid the broken or
40725 # incompatible versions:
40726 # SysV /etc/install, /usr/sbin/install
40727 # SunOS /usr/etc/install
40728 # IRIX /sbin/install
40729 # AIX /bin/install
40730 # AmigaOS /C/install, which installs bootblocks on floppy discs
40731 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40732 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
40733 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
40734 # OS/2's system install, which has a completely different semantic
40735 # ./install, which can be erroneously created by make from ./install.sh.
40736 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40737 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40738 if test -z "$INSTALL"; then
40739 if test "${ac_cv_path_install+set}" = set; then
40740   echo $ECHO_N "(cached) $ECHO_C" >&6
40741 else
40742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40743 for as_dir in $PATH
40744 do
40745   IFS=$as_save_IFS
40746   test -z "$as_dir" && as_dir=.
40747   # Account for people who put trailing slashes in PATH elements.
40748 case $as_dir/ in
40749   ./ | .// | /cC/* | \
40750   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
40751   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
40752   /usr/ucb/* ) ;;
40753   *)
40754     # OSF1 and SCO ODT 3.0 have their own names for install.
40755     # Don't use installbsd from OSF since it installs stuff as root
40756     # by default.
40757     for ac_prog in ginstall scoinst install; do
40758       for ac_exec_ext in '' $ac_executable_extensions; do
40759         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40760           if test $ac_prog = install &&
40761             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40762             # AIX install.  It has an incompatible calling convention.
40763             :
40764           elif test $ac_prog = install &&
40765             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40766             # program-specific install script used by HP pwplus--don't use.
40767             :
40768           else
40769             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40770             break 3
40771           fi
40772         fi
40773       done
40774     done
40775     ;;
40776 esac
40777 done
40778
40779
40780 fi
40781   if test "${ac_cv_path_install+set}" = set; then
40782     INSTALL=$ac_cv_path_install
40783   else
40784     # As a last resort, use the slow shell script.  We don't cache a
40785     # path for INSTALL within a source directory, because that will
40786     # break other packages using the cache if that directory is
40787     # removed, or if the path is relative.
40788     INSTALL=$ac_install_sh
40789   fi
40790 fi
40791 echo "$as_me:$LINENO: result: $INSTALL" >&5
40792 echo "${ECHO_T}$INSTALL" >&6
40793
40794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40795 # It thinks the first close brace ends the variable substitution.
40796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40797
40798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40799
40800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40801
40802     echo "$as_me:$LINENO: checking whether ln -s works" >&5
40803 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40804 LN_S=$as_ln_s
40805 if test "$LN_S" = "ln -s"; then
40806   echo "$as_me:$LINENO: result: yes" >&5
40807 echo "${ECHO_T}yes" >&6
40808 else
40809   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40810 echo "${ECHO_T}no, using $LN_S" >&6
40811 fi
40812
40813
40814     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40815 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
40816 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
40817 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40818   echo $ECHO_N "(cached) $ECHO_C" >&6
40819 else
40820   cat >conftest.make <<\_ACEOF
40821 all:
40822         @echo 'ac_maketemp="$(MAKE)"'
40823 _ACEOF
40824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40825 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40826 if test -n "$ac_maketemp"; then
40827   eval ac_cv_prog_make_${ac_make}_set=yes
40828 else
40829   eval ac_cv_prog_make_${ac_make}_set=no
40830 fi
40831 rm -f conftest.make
40832 fi
40833 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40834   echo "$as_me:$LINENO: result: yes" >&5
40835 echo "${ECHO_T}yes" >&6
40836   SET_MAKE=
40837 else
40838   echo "$as_me:$LINENO: result: no" >&5
40839 echo "${ECHO_T}no" >&6
40840   SET_MAKE="MAKE=${MAKE-make}"
40841 fi
40842
40843
40844
40845     if test -n "$ac_tool_prefix"; then
40846   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40847 set dummy ${ac_tool_prefix}ar; ac_word=$2
40848 echo "$as_me:$LINENO: checking for $ac_word" >&5
40849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40850 if test "${ac_cv_prog_AR+set}" = set; then
40851   echo $ECHO_N "(cached) $ECHO_C" >&6
40852 else
40853   if test -n "$AR"; then
40854   ac_cv_prog_AR="$AR" # Let the user override the test.
40855 else
40856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40857 for as_dir in $PATH
40858 do
40859   IFS=$as_save_IFS
40860   test -z "$as_dir" && as_dir=.
40861   for ac_exec_ext in '' $ac_executable_extensions; do
40862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40863     ac_cv_prog_AR="${ac_tool_prefix}ar"
40864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40865     break 2
40866   fi
40867 done
40868 done
40869
40870 fi
40871 fi
40872 AR=$ac_cv_prog_AR
40873 if test -n "$AR"; then
40874   echo "$as_me:$LINENO: result: $AR" >&5
40875 echo "${ECHO_T}$AR" >&6
40876 else
40877   echo "$as_me:$LINENO: result: no" >&5
40878 echo "${ECHO_T}no" >&6
40879 fi
40880
40881 fi
40882 if test -z "$ac_cv_prog_AR"; then
40883   ac_ct_AR=$AR
40884   # Extract the first word of "ar", so it can be a program name with args.
40885 set dummy ar; ac_word=$2
40886 echo "$as_me:$LINENO: checking for $ac_word" >&5
40887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40888 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40889   echo $ECHO_N "(cached) $ECHO_C" >&6
40890 else
40891   if test -n "$ac_ct_AR"; then
40892   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40893 else
40894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40895 for as_dir in $PATH
40896 do
40897   IFS=$as_save_IFS
40898   test -z "$as_dir" && as_dir=.
40899   for ac_exec_ext in '' $ac_executable_extensions; do
40900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40901     ac_cv_prog_ac_ct_AR="ar"
40902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40903     break 2
40904   fi
40905 done
40906 done
40907
40908   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40909 fi
40910 fi
40911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
40912 if test -n "$ac_ct_AR"; then
40913   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40914 echo "${ECHO_T}$ac_ct_AR" >&6
40915 else
40916   echo "$as_me:$LINENO: result: no" >&5
40917 echo "${ECHO_T}no" >&6
40918 fi
40919
40920   AR=$ac_ct_AR
40921 else
40922   AR="$ac_cv_prog_AR"
40923 fi
40924
40925     if test -n "$ac_tool_prefix"; then
40926   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40927 set dummy ${ac_tool_prefix}strip; ac_word=$2
40928 echo "$as_me:$LINENO: checking for $ac_word" >&5
40929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40930 if test "${ac_cv_prog_STRIP+set}" = set; then
40931   echo $ECHO_N "(cached) $ECHO_C" >&6
40932 else
40933   if test -n "$STRIP"; then
40934   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40935 else
40936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40937 for as_dir in $PATH
40938 do
40939   IFS=$as_save_IFS
40940   test -z "$as_dir" && as_dir=.
40941   for ac_exec_ext in '' $ac_executable_extensions; do
40942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40943     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40945     break 2
40946   fi
40947 done
40948 done
40949
40950 fi
40951 fi
40952 STRIP=$ac_cv_prog_STRIP
40953 if test -n "$STRIP"; then
40954   echo "$as_me:$LINENO: result: $STRIP" >&5
40955 echo "${ECHO_T}$STRIP" >&6
40956 else
40957   echo "$as_me:$LINENO: result: no" >&5
40958 echo "${ECHO_T}no" >&6
40959 fi
40960
40961 fi
40962 if test -z "$ac_cv_prog_STRIP"; then
40963   ac_ct_STRIP=$STRIP
40964   # Extract the first word of "strip", so it can be a program name with args.
40965 set dummy strip; ac_word=$2
40966 echo "$as_me:$LINENO: checking for $ac_word" >&5
40967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40968 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40969   echo $ECHO_N "(cached) $ECHO_C" >&6
40970 else
40971   if test -n "$ac_ct_STRIP"; then
40972   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40973 else
40974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40975 for as_dir in $PATH
40976 do
40977   IFS=$as_save_IFS
40978   test -z "$as_dir" && as_dir=.
40979   for ac_exec_ext in '' $ac_executable_extensions; do
40980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40981     ac_cv_prog_ac_ct_STRIP="strip"
40982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40983     break 2
40984   fi
40985 done
40986 done
40987
40988   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40989 fi
40990 fi
40991 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40992 if test -n "$ac_ct_STRIP"; then
40993   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40994 echo "${ECHO_T}$ac_ct_STRIP" >&6
40995 else
40996   echo "$as_me:$LINENO: result: no" >&5
40997 echo "${ECHO_T}no" >&6
40998 fi
40999
41000   STRIP=$ac_ct_STRIP
41001 else
41002   STRIP="$ac_cv_prog_STRIP"
41003 fi
41004
41005     if test -n "$ac_tool_prefix"; then
41006   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41007 set dummy ${ac_tool_prefix}nm; ac_word=$2
41008 echo "$as_me:$LINENO: checking for $ac_word" >&5
41009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41010 if test "${ac_cv_prog_NM+set}" = set; then
41011   echo $ECHO_N "(cached) $ECHO_C" >&6
41012 else
41013   if test -n "$NM"; then
41014   ac_cv_prog_NM="$NM" # Let the user override the test.
41015 else
41016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41017 for as_dir in $PATH
41018 do
41019   IFS=$as_save_IFS
41020   test -z "$as_dir" && as_dir=.
41021   for ac_exec_ext in '' $ac_executable_extensions; do
41022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41023     ac_cv_prog_NM="${ac_tool_prefix}nm"
41024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41025     break 2
41026   fi
41027 done
41028 done
41029
41030 fi
41031 fi
41032 NM=$ac_cv_prog_NM
41033 if test -n "$NM"; then
41034   echo "$as_me:$LINENO: result: $NM" >&5
41035 echo "${ECHO_T}$NM" >&6
41036 else
41037   echo "$as_me:$LINENO: result: no" >&5
41038 echo "${ECHO_T}no" >&6
41039 fi
41040
41041 fi
41042 if test -z "$ac_cv_prog_NM"; then
41043   ac_ct_NM=$NM
41044   # Extract the first word of "nm", so it can be a program name with args.
41045 set dummy nm; ac_word=$2
41046 echo "$as_me:$LINENO: checking for $ac_word" >&5
41047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41048 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41049   echo $ECHO_N "(cached) $ECHO_C" >&6
41050 else
41051   if test -n "$ac_ct_NM"; then
41052   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41053 else
41054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41055 for as_dir in $PATH
41056 do
41057   IFS=$as_save_IFS
41058   test -z "$as_dir" && as_dir=.
41059   for ac_exec_ext in '' $ac_executable_extensions; do
41060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41061     ac_cv_prog_ac_ct_NM="nm"
41062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41063     break 2
41064   fi
41065 done
41066 done
41067
41068   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41069 fi
41070 fi
41071 ac_ct_NM=$ac_cv_prog_ac_ct_NM
41072 if test -n "$ac_ct_NM"; then
41073   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41074 echo "${ECHO_T}$ac_ct_NM" >&6
41075 else
41076   echo "$as_me:$LINENO: result: no" >&5
41077 echo "${ECHO_T}no" >&6
41078 fi
41079
41080   NM=$ac_ct_NM
41081 else
41082   NM="$ac_cv_prog_NM"
41083 fi
41084
41085
41086     case ${BAKEFILE_HOST} in
41087         *-hp-hpux* )
41088                                     INSTALL_DIR="mkdir -p"
41089             ;;
41090         *)  INSTALL_DIR="$INSTALL -d"
41091             ;;
41092     esac
41093
41094
41095     LDFLAGS_GUI=
41096     case ${BAKEFILE_HOST} in
41097         *-*-cygwin* | *-*-mingw32* )
41098         LDFLAGS_GUI="-mwindows"
41099     esac
41100
41101
41102     fi
41103
41104         echo "$as_me:$LINENO: checking if make is GNU make" >&5
41105 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41106 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41107   echo $ECHO_N "(cached) $ECHO_C" >&6
41108 else
41109
41110         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41111                 egrep -s GNU > /dev/null); then
41112             bakefile_cv_prog_makeisgnu="yes"
41113         else
41114             bakefile_cv_prog_makeisgnu="no"
41115         fi
41116
41117 fi
41118 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41119 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41120
41121     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41122         IF_GNU_MAKE=""
41123     else
41124         IF_GNU_MAKE="#"
41125     fi
41126
41127
41128
41129     PLATFORM_UNIX=0
41130     PLATFORM_WIN32=0
41131     PLATFORM_MSDOS=0
41132     PLATFORM_MAC=0
41133     PLATFORM_MACOS=0
41134     PLATFORM_MACOSX=0
41135     PLATFORM_OS2=0
41136     PLATFORM_BEOS=0
41137
41138     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41139         case "${BAKEFILE_HOST}" in
41140             *-*-cygwin* | *-*-mingw32* )
41141                 PLATFORM_WIN32=1
41142             ;;
41143             *-pc-msdosdjgpp )
41144                 PLATFORM_MSDOS=1
41145             ;;
41146             *-pc-os2_emx | *-pc-os2-emx )
41147                 PLATFORM_OS2=1
41148             ;;
41149             powerpc-*-darwin* )
41150                 PLATFORM_MAC=1
41151                 PLATFORM_MACOSX=1
41152             ;;
41153             *-*-beos* )
41154                 PLATFORM_BEOS=1
41155             ;;
41156             powerpc-apple-macos* )
41157                 PLATFORM_MAC=1
41158                 PLATFORM_MACOS=1
41159             ;;
41160             * )
41161                 PLATFORM_UNIX=1
41162             ;;
41163         esac
41164     else
41165         case "$BAKEFILE_FORCE_PLATFORM" in
41166             win32 )
41167                 PLATFORM_WIN32=1
41168             ;;
41169             msdos )
41170                 PLATFORM_MSDOS=1
41171             ;;
41172             os2 )
41173                 PLATFORM_OS2=1
41174             ;;
41175             darwin )
41176                 PLATFORM_MAC=1
41177                 PLATFORM_MACOSX=1
41178             ;;
41179             unix )
41180                 PLATFORM_UNIX=1
41181             ;;
41182             beos )
41183                 PLATFORM_BEOS=1
41184             ;;
41185             * )
41186                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41187 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41188    { (exit 1); exit 1; }; }
41189             ;;
41190         esac
41191     fi
41192
41193
41194
41195
41196
41197
41198
41199
41200
41201
41202
41203     # Check whether --enable-omf or --disable-omf was given.
41204 if test "${enable_omf+set}" = set; then
41205   enableval="$enable_omf"
41206   bk_os2_use_omf="$enableval"
41207 fi;
41208
41209     case "${BAKEFILE_HOST}" in
41210       *-*-darwin* )
41211                         CFLAGS="$CFLAGS -fno-common"
41212         CXXFLAGS="$CXXFLAGS -fno-common"
41213         ;;
41214
41215       *-pc-os2_emx | *-pc-os2-emx )
41216         if test "x$bk_os2_use_omf" = "xyes" ; then
41217             AR=emxomfar
41218             RANLIB=:
41219             LDFLAGS="-Zomf $LDFLAGS"
41220             CFLAGS="-Zomf $CFLAGS"
41221             CXXFLAGS="-Zomf $CXXFLAGS"
41222             OS2_LIBEXT="lib"
41223         else
41224             OS2_LIBEXT="a"
41225         fi
41226         ;;
41227
41228       i*86-*-beos* )
41229         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41230         ;;
41231     esac
41232
41233
41234     SO_SUFFIX="so"
41235     SO_SUFFIX_MODULE="so"
41236     EXEEXT=""
41237     LIBPREFIX="lib"
41238     LIBEXT=".a"
41239     DLLPREFIX="lib"
41240     DLLPREFIX_MODULE=""
41241     DLLIMP_SUFFIX=""
41242
41243     case "${BAKEFILE_HOST}" in
41244         *-hp-hpux* )
41245             SO_SUFFIX="sl"
41246             SO_SUFFIX_MODULE="sl"
41247         ;;
41248         *-*-aix* )
41249                                                                         SO_SUFFIX="a"
41250             SO_SUFFIX_MODULE="a"
41251         ;;
41252         *-*-cygwin* | *-*-mingw32* )
41253             SO_SUFFIX="dll"
41254             SO_SUFFIX_MODULE="dll"
41255             DLLIMP_SUFFIX="dll.a"
41256             EXEEXT=".exe"
41257             DLLPREFIX=""
41258         ;;
41259         *-pc-msdosdjgpp )
41260             EXEEXT=".exe"
41261             DLLPREFIX=""
41262         ;;
41263         *-pc-os2_emx | *-pc-os2-emx )
41264             SO_SUFFIX="dll"
41265             SO_SUFFIX_MODULE="dll"
41266             DLLIMP_SUFFIX=$OS2_LIBEXT
41267             EXEEXT=".exe"
41268             DLLPREFIX=""
41269             LIBPREFIX=""
41270             LIBEXT=".$OS2_LIBEXT"
41271         ;;
41272         powerpc-*-darwin* )
41273             SO_SUFFIX="dylib"
41274             SO_SUFFIX_MODULE="bundle"
41275         ;;
41276     esac
41277
41278     if test "x$DLLIMP_SUFFIX" = "x" ; then
41279         DLLIMP_SUFFIX="$SO_SUFFIX"
41280     fi
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292         PIC_FLAG=""
41293     if test "x$GCC" = "xyes"; then
41294                 PIC_FLAG="-fPIC"
41295     fi
41296
41297         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41298     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41299
41300     case "${BAKEFILE_HOST}" in
41301       *-hp-hpux* )
41302                 if test "x$GCC" != "xyes"; then
41303                         LDFLAGS="$LDFLAGS -L/usr/lib"
41304
41305             SHARED_LD_CC="${CC} -b -o"
41306             SHARED_LD_CXX="${CXX} -b -o"
41307             PIC_FLAG="+Z"
41308         fi
41309       ;;
41310
41311       *-*-linux* )
41312         if test "x$GCC" != "xyes"; then
41313             echo "$as_me:$LINENO: checking for Intel compiler" >&5
41314 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41315 if test "${bakefile_cv_prog_icc+set}" = set; then
41316   echo $ECHO_N "(cached) $ECHO_C" >&6
41317 else
41318
41319                 cat >conftest.$ac_ext <<_ACEOF
41320 /* confdefs.h.  */
41321 _ACEOF
41322 cat confdefs.h >>conftest.$ac_ext
41323 cat >>conftest.$ac_ext <<_ACEOF
41324 /* end confdefs.h.  */
41325
41326 int
41327 main ()
41328 {
41329
41330                         #ifndef __INTEL_COMPILER
41331                         #error Not icc
41332                         #endif
41333
41334   ;
41335   return 0;
41336 }
41337 _ACEOF
41338 rm -f conftest.$ac_objext
41339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41340   (eval $ac_compile) 2>conftest.er1
41341   ac_status=$?
41342   grep -v '^ *+' conftest.er1 >conftest.err
41343   rm -f conftest.er1
41344   cat conftest.err >&5
41345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41346   (exit $ac_status); } &&
41347          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41349   (eval $ac_try) 2>&5
41350   ac_status=$?
41351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41352   (exit $ac_status); }; } &&
41353          { ac_try='test -s conftest.$ac_objext'
41354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41355   (eval $ac_try) 2>&5
41356   ac_status=$?
41357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41358   (exit $ac_status); }; }; then
41359   bakefile_cv_prog_icc=yes
41360 else
41361   echo "$as_me: failed program was:" >&5
41362 sed 's/^/| /' conftest.$ac_ext >&5
41363
41364 bakefile_cv_prog_icc=no
41365
41366 fi
41367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41368
41369 fi
41370 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41371 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41372             if test "$bakefile_cv_prog_icc" = "yes"; then
41373                 PIC_FLAG="-KPIC"
41374             fi
41375         fi
41376       ;;
41377
41378       *-*-solaris2* )
41379         if test "x$GCC" != xyes ; then
41380             SHARED_LD_CC="${CC} -G -o"
41381             SHARED_LD_CXX="${CXX} -G -o"
41382             PIC_FLAG="-KPIC"
41383         fi
41384       ;;
41385
41386       *-*-darwin* )
41387
41388                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41389 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41390 if test "${wx_cv_gcc31+set}" = set; then
41391   echo $ECHO_N "(cached) $ECHO_C" >&6
41392 else
41393
41394            cat >conftest.$ac_ext <<_ACEOF
41395 /* confdefs.h.  */
41396 _ACEOF
41397 cat confdefs.h >>conftest.$ac_ext
41398 cat >>conftest.$ac_ext <<_ACEOF
41399 /* end confdefs.h.  */
41400
41401 int
41402 main ()
41403 {
41404
41405                    #if (__GNUC__ < 3) || \
41406                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41407                        #error old gcc
41408                    #endif
41409
41410   ;
41411   return 0;
41412 }
41413 _ACEOF
41414 rm -f conftest.$ac_objext
41415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41416   (eval $ac_compile) 2>conftest.er1
41417   ac_status=$?
41418   grep -v '^ *+' conftest.er1 >conftest.err
41419   rm -f conftest.er1
41420   cat conftest.err >&5
41421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41422   (exit $ac_status); } &&
41423          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41425   (eval $ac_try) 2>&5
41426   ac_status=$?
41427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41428   (exit $ac_status); }; } &&
41429          { ac_try='test -s conftest.$ac_objext'
41430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41431   (eval $ac_try) 2>&5
41432   ac_status=$?
41433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41434   (exit $ac_status); }; }; then
41435
41436                    wx_cv_gcc31=yes
41437
41438 else
41439   echo "$as_me: failed program was:" >&5
41440 sed 's/^/| /' conftest.$ac_ext >&5
41441
41442
41443                    wx_cv_gcc31=no
41444
41445
41446 fi
41447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41448
41449 fi
41450 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41451 echo "${ECHO_T}$wx_cv_gcc31" >&6
41452         if test "$wx_cv_gcc31" = "no"; then
41453
41454 D='$'
41455 cat <<EOF >shared-ld-sh
41456 #!/bin/sh
41457 #-----------------------------------------------------------------------------
41458 #-- Name:        distrib/mac/shared-ld-sh
41459 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
41460 #-- Author:      Gilles Depeyrot
41461 #-- Copyright:   (c) 2002 Gilles Depeyrot
41462 #-- Licence:     any use permitted
41463 #-----------------------------------------------------------------------------
41464
41465 verbose=0
41466 args=""
41467 objects=""
41468 linking_flag="-dynamiclib"
41469
41470 while test ${D}# -gt 0; do
41471     case ${D}1 in
41472
41473        -v)
41474         verbose=1
41475         ;;
41476
41477        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41478         # collect these options and values
41479         args="${D}{args} ${D}1 ${D}2"
41480         shift
41481         ;;
41482
41483        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41484         # collect these options
41485         args="${D}{args} ${D}1"
41486         ;;
41487
41488        -dynamiclib|-bundle)
41489         linking_flag="${D}1"
41490         ;;
41491
41492        -*)
41493         echo "shared-ld: unhandled option '${D}1'"
41494         exit 1
41495         ;;
41496
41497         *.o | *.a | *.dylib)
41498         # collect object files
41499         objects="${D}{objects} ${D}1"
41500         ;;
41501
41502         *)
41503         echo "shared-ld: unhandled argument '${D}1'"
41504         exit 1
41505         ;;
41506
41507     esac
41508     shift
41509 done
41510
41511 #
41512 # Link one module containing all the others
41513 #
41514 if test ${D}{verbose} = 1; then
41515     echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
41516 fi
41517 c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41518 status=${D}?
41519 if test ${D}{status} != 0; then
41520     exit ${D}{status}
41521 fi
41522
41523 #
41524 # Link the shared library from the single module created
41525 #
41526 if test ${D}{verbose} = 1; then
41527     echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
41528 fi
41529 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41530 status=${D}?
41531 if test ${D}{status} != 0; then
41532     exit ${D}{status}
41533 fi
41534
41535 #
41536 # Remove intermediate module
41537 #
41538 rm -f master.${D}${D}.o
41539
41540 exit 0
41541 EOF
41542
41543             chmod +x shared-ld-sh
41544
41545                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41546             SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41547             SHARED_LD_CXX="$SHARED_LD_CC"
41548             SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41549         else
41550                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41551             SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41552             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41553             SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41554         fi
41555
41556         PIC_FLAG="-dynamic -fPIC"
41557       ;;
41558
41559       *-*-aix* )
41560                 if test "x$GCC" != "xyes"; then
41561                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41562 set dummy makeC++SharedLib; ac_word=$2
41563 echo "$as_me:$LINENO: checking for $ac_word" >&5
41564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41565 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41566   echo $ECHO_N "(cached) $ECHO_C" >&6
41567 else
41568   if test -n "$AIX_CXX_LD"; then
41569   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41570 else
41571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41572 for as_dir in $PATH
41573 do
41574   IFS=$as_save_IFS
41575   test -z "$as_dir" && as_dir=.
41576   for ac_exec_ext in '' $ac_executable_extensions; do
41577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41578     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41580     break 2
41581   fi
41582 done
41583 done
41584
41585   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41586 fi
41587 fi
41588 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41589 if test -n "$AIX_CXX_LD"; then
41590   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41591 echo "${ECHO_T}$AIX_CXX_LD" >&6
41592 else
41593   echo "$as_me:$LINENO: result: no" >&5
41594 echo "${ECHO_T}no" >&6
41595 fi
41596
41597                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41598             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41599         fi
41600       ;;
41601
41602       *-*-beos* )
41603                         SHARED_LD_CC="${LD} -nostart -o"
41604         SHARED_LD_CXX="${LD} -nostart -o"
41605       ;;
41606
41607       *-*-irix* )
41608                 if test "x$GCC" != "xyes"; then
41609             PIC_FLAG="-KPIC"
41610         fi
41611       ;;
41612
41613       *-*-cygwin* | *-*-mingw32* )
41614         PIC_FLAG=""
41615         SHARED_LD_CC="\$(CC) -shared -o"
41616         SHARED_LD_CXX="\$(CXX) -shared -o"
41617       ;;
41618
41619       *-pc-os2_emx | *-pc-os2-emx )
41620         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41621         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41622         PIC_FLAG=""
41623
41624 D='$'
41625 cat <<EOF >dllar.sh
41626 #!/bin/sh
41627 #
41628 # dllar - a tool to build both a .dll and an .a file
41629 # from a set of object (.o) files for EMX/OS2.
41630 #
41631 #  Written by Andrew Zabolotny, bit@freya.etu.ru
41632 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41633 #
41634 #  This script will accept a set of files on the command line.
41635 #  All the public symbols from the .o files will be exported into
41636 #  a .DEF file, then linker will be run (through gcc) against them to
41637 #  build a shared library consisting of all given .o files. All libraries
41638 #  (.a) will be first decompressed into component .o files then act as
41639 #  described above. You can optionally give a description (-d "description")
41640 #  which will be put into .DLL. To see the list of accepted options (as well
41641 #  as command-line format) simply run this program without options. The .DLL
41642 #  is built to be imported by name (there is no guarantee that new versions
41643 #  of the library you build will have same ordinals for same symbols).
41644 #
41645 #  dllar is free software; you can redistribute it and/or modify
41646 #  it under the terms of the GNU General Public License as published by
41647 #  the Free Software Foundation; either version 2, or (at your option)
41648 #  any later version.
41649 #
41650 #  dllar is distributed in the hope that it will be useful,
41651 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
41652 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41653 #  GNU General Public License for more details.
41654 #
41655 #  You should have received a copy of the GNU General Public License
41656 #  along with dllar; see the file COPYING.  If not, write to the Free
41657 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41658 #  02111-1307, USA.
41659
41660 # To successfuly run this program you will need:
41661 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
41662 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41663 #  - gcc
41664 #    (used to build the .dll)
41665 #  - emxexp
41666 #    (used to create .def file from .o files)
41667 #  - emximp
41668 #    (used to create .a file from .def file)
41669 #  - GNU text utilites (cat, sort, uniq)
41670 #    used to process emxexp output
41671 #  - GNU file utilities (mv, rm)
41672 #  - GNU sed
41673 #  - lxlite (optional, see flag below)
41674 #    (used for general .dll cleanup)
41675 #
41676
41677 flag_USE_LXLITE=1;
41678
41679 #
41680 # helper functions
41681 # basnam, variant of basename, which does _not_ remove the path, _iff_
41682 #                              second argument (suffix to remove) is given
41683 basnam(){
41684     case ${D}# in
41685     1)
41686         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
41687         ;;
41688     2)
41689         echo ${D}1 | sed 's/'${D}2'${D}//'
41690         ;;
41691     *)
41692         echo "error in basnam ${D}*"
41693         exit 8
41694         ;;
41695     esac
41696 }
41697
41698 # Cleanup temporary files and output
41699 CleanUp() {
41700     cd ${D}curDir
41701     for i in ${D}inputFiles ; do
41702         case ${D}i in
41703         *!)
41704             rm -rf \`basnam ${D}i !\`
41705             ;;
41706         *)
41707             ;;
41708         esac
41709     done
41710
41711     # Kill result in case of failure as there is just to many stupid make/nmake
41712     # things out there which doesn't do this.
41713     if [ ${D}# -eq 0 ]; then
41714         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41715     fi
41716 }
41717
41718 # Print usage and exit script with rc=1.
41719 PrintHelp() {
41720  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41721  echo '       [-name-mangler-script script.sh]'
41722  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41723  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
41724  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
41725  echo '       [*.o] [*.a]'
41726  echo '*> "output_file" should have no extension.'
41727  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
41728  echo '   The import library name is derived from this and is set to "name".a,'
41729  echo '   unless overridden by -import'
41730  echo '*> "importlib_name" should have no extension.'
41731  echo '   If it has the .o, or .a extension, it is automatically removed.'
41732  echo '   This name is used as the import library name and may be longer and'
41733  echo '   more descriptive than the DLL name which has to follow the old '
41734  echo '   8.3 convention of FAT.'
41735  echo '*> "script.sh may be given to override the output_file name by a'
41736  echo '   different name. It is mainly useful if the regular make process'
41737  echo '   of some package does not take into account OS/2 restriction of'
41738  echo '   DLL name lengths. It takes the importlib name as input and is'
41739  echo '   supposed to procude a shorter name as output. The script should'
41740  echo '   expect to get importlib_name without extension and should produce'
41741  echo '   a (max.) 8 letter name without extension.'
41742  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
41743  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41744  echo '   These flags will be put at the start of GCC command line.'
41745  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41746  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
41747  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41748  echo '   If the last character of a symbol is "*", all symbols beginning'
41749  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
41750  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
41751  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
41752  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
41753  echo '   C runtime DLLs.'
41754  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
41755  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41756  echo '   unchanged to GCC at the end of command line.'
41757  echo '*> If you create a DLL from a library and you do not specify -o,'
41758  echo '   the basename for DLL and import library will be set to library name,'
41759  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
41760  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41761  echo '   library will be renamed into gcc_s.a.'
41762  echo '--------'
41763  echo 'Example:'
41764  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41765  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41766  CleanUp
41767  exit 1
41768 }
41769
41770 # Execute a command.
41771 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41772 # @Uses    Whatever CleanUp() uses.
41773 doCommand() {
41774     echo "${D}*"
41775     eval ${D}*
41776     rcCmd=${D}?
41777
41778     if [ ${D}rcCmd -ne 0 ]; then
41779         echo "command failed, exit code="${D}rcCmd
41780         CleanUp
41781         exit ${D}rcCmd
41782     fi
41783 }
41784
41785 # main routine
41786 # setup globals
41787 cmdLine=${D}*
41788 outFile=""
41789 outimpFile=""
41790 inputFiles=""
41791 renameScript=""
41792 description=""
41793 CC=gcc.exe
41794 CFLAGS="-s -Zcrtdll"
41795 EXTRA_CFLAGS=""
41796 EXPORT_BY_ORDINALS=0
41797 exclude_symbols=""
41798 library_flags=""
41799 curDir=\`pwd\`
41800 curDirS=curDir
41801 case ${D}curDirS in
41802 */)
41803   ;;
41804 *)
41805   curDirS=${D}{curDirS}"/"
41806   ;;
41807 esac
41808 # Parse commandline
41809 libsToLink=0
41810 omfLinking=0
41811 while [ ${D}1 ]; do
41812     case ${D}1 in
41813     -ord*)
41814         EXPORT_BY_ORDINALS=1;
41815         ;;
41816     -o*)
41817         shift
41818         outFile=${D}1
41819         ;;
41820     -i*)
41821         shift
41822         outimpFile=${D}1
41823         ;;
41824     -name-mangler-script)
41825         shift
41826         renameScript=${D}1
41827         ;;
41828     -d*)
41829         shift
41830         description=${D}1
41831         ;;
41832     -f*)
41833         shift
41834         CFLAGS=${D}1
41835         ;;
41836     -c*)
41837         shift
41838         CC=${D}1
41839         ;;
41840     -h*)
41841         PrintHelp
41842         ;;
41843     -ex*)
41844         shift
41845         exclude_symbols=${D}{exclude_symbols}${D}1" "
41846         ;;
41847     -libf*)
41848         shift
41849         library_flags=${D}{library_flags}${D}1" "
41850         ;;
41851     -nocrt*)
41852         CFLAGS="-s"
41853         ;;
41854     -nolxl*)
41855         flag_USE_LXLITE=0
41856         ;;
41857     -* | /*)
41858         case ${D}1 in
41859         -L* | -l*)
41860             libsToLink=1
41861             ;;
41862         -Zomf)
41863             omfLinking=1
41864             ;;
41865         *)
41866             ;;
41867         esac
41868         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41869         ;;
41870     *.dll)
41871         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41872         if [ ${D}omfLinking -eq 1 ]; then
41873             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41874         else
41875             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41876         fi
41877         ;;
41878     *)
41879         found=0;
41880         if [ ${D}libsToLink -ne 0 ]; then
41881             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41882         else
41883             for file in ${D}1 ; do
41884                 if [ -f ${D}file ]; then
41885                     inputFiles="${D}{inputFiles} ${D}file"
41886                     found=1
41887                 fi
41888             done
41889             if [ ${D}found -eq 0 ]; then
41890                 echo "ERROR: No file(s) found: "${D}1
41891                 exit 8
41892             fi
41893         fi
41894       ;;
41895     esac
41896     shift
41897 done # iterate cmdline words
41898
41899 #
41900 if [ -z "${D}inputFiles" ]; then
41901     echo "dllar: no input files"
41902     PrintHelp
41903 fi
41904
41905 # Now extract all .o files from .a files
41906 newInputFiles=""
41907 for file in ${D}inputFiles ; do
41908     case ${D}file in
41909     *.a | *.lib)
41910         case ${D}file in
41911         *.a)
41912             suffix=".a"
41913             AR="ar"
41914             ;;
41915         *.lib)
41916             suffix=".lib"
41917             AR="emxomfar"
41918             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41919             ;;
41920         *)
41921             ;;
41922         esac
41923         dirname=\`basnam ${D}file ${D}suffix\`"_%"
41924         mkdir ${D}dirname
41925         if [ ${D}? -ne 0 ]; then
41926             echo "Failed to create subdirectory ./${D}dirname"
41927             CleanUp
41928             exit 8;
41929         fi
41930         # Append '!' to indicate archive
41931         newInputFiles="${D}newInputFiles ${D}{dirname}!"
41932         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41933         cd ${D}curDir
41934         found=0;
41935         for subfile in ${D}dirname/*.o* ; do
41936             if [ -f ${D}subfile ]; then
41937                 found=1
41938                 if [ -s ${D}subfile ]; then
41939                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41940                     newInputFiles="${D}newInputFiles ${D}subfile"
41941                 fi
41942             fi
41943         done
41944         if [ ${D}found -eq 0 ]; then
41945             echo "WARNING: there are no files in archive \\'${D}file\\'"
41946         fi
41947         ;;
41948     *)
41949         newInputFiles="${D}{newInputFiles} ${D}file"
41950         ;;
41951     esac
41952 done
41953 inputFiles="${D}newInputFiles"
41954
41955 # Output filename(s).
41956 do_backup=0;
41957 if [ -z ${D}outFile ]; then
41958     do_backup=1;
41959     set outFile ${D}inputFiles; outFile=${D}2
41960 fi
41961
41962 # If it is an archive, remove the '!' and the '_%' suffixes
41963 case ${D}outFile in
41964 *_%!)
41965     outFile=\`basnam ${D}outFile _%!\`
41966     ;;
41967 *)
41968     ;;
41969 esac
41970 case ${D}outFile in
41971 *.dll)
41972     outFile=\`basnam ${D}outFile .dll\`
41973     ;;
41974 *.DLL)
41975     outFile=\`basnam ${D}outFile .DLL\`
41976     ;;
41977 *.o)
41978     outFile=\`basnam ${D}outFile .o\`
41979     ;;
41980 *.obj)
41981     outFile=\`basnam ${D}outFile .obj\`
41982     ;;
41983 *.a)
41984     outFile=\`basnam ${D}outFile .a\`
41985     ;;
41986 *.lib)
41987     outFile=\`basnam ${D}outFile .lib\`
41988     ;;
41989 *)
41990     ;;
41991 esac
41992 case ${D}outimpFile in
41993 *.a)
41994     outimpFile=\`basnam ${D}outimpFile .a\`
41995     ;;
41996 *.lib)
41997     outimpFile=\`basnam ${D}outimpFile .lib\`
41998     ;;
41999 *)
42000     ;;
42001 esac
42002 if [ -z ${D}outimpFile ]; then
42003     outimpFile=${D}outFile
42004 fi
42005 defFile="${D}{outFile}.def"
42006 arcFile="${D}{outimpFile}.a"
42007 arcFile2="${D}{outimpFile}.lib"
42008
42009 #create ${D}dllFile as something matching 8.3 restrictions,
42010 if [ -z ${D}renameScript ] ; then
42011     dllFile="${D}outFile"
42012 else
42013     dllFile=\`${D}renameScript ${D}outimpFile\`
42014 fi
42015
42016 if [ ${D}do_backup -ne 0 ] ; then
42017     if [ -f ${D}arcFile ] ; then
42018         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42019     fi
42020     if [ -f ${D}arcFile2 ] ; then
42021         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42022     fi
42023 fi
42024
42025 # Extract public symbols from all the object files.
42026 tmpdefFile=${D}{defFile}_%
42027 rm -f ${D}tmpdefFile
42028 for file in ${D}inputFiles ; do
42029     case ${D}file in
42030     *!)
42031         ;;
42032     *)
42033         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42034         ;;
42035     esac
42036 done
42037
42038 # Create the def file.
42039 rm -f ${D}defFile
42040 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
42041 dllFile="${D}{dllFile}.dll"
42042 if [ ! -z ${D}description ]; then
42043     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
42044 fi
42045 echo "EXPORTS" >> ${D}defFile
42046
42047 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42048 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42049
42050 # Checks if the export is ok or not.
42051 for word in ${D}exclude_symbols; do
42052     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42053     mv ${D}{tmpdefFile}% ${D}tmpdefFile
42054 done
42055
42056
42057 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42058     sed "=" < ${D}tmpdefFile | \\
42059     sed '
42060       N
42061       : loop
42062       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
42063       t loop
42064     ' > ${D}{tmpdefFile}%
42065     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42066 else
42067     rm -f ${D}{tmpdefFile}%
42068 fi
42069 cat ${D}tmpdefFile >> ${D}defFile
42070 rm -f ${D}tmpdefFile
42071
42072 # Do linking, create implib, and apply lxlite.
42073 gccCmdl="";
42074 for file in ${D}inputFiles ; do
42075     case ${D}file in
42076     *!)
42077         ;;
42078     *)
42079         gccCmdl="${D}gccCmdl ${D}file"
42080         ;;
42081     esac
42082 done
42083 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42084 touch "${D}{outFile}.dll"
42085
42086 doCommand "emximp -o ${D}arcFile ${D}defFile"
42087 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
42088     add_flags="";
42089     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42090         add_flags="-ynd"
42091     fi
42092     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42093 fi
42094 doCommand "emxomf -s -l ${D}arcFile"
42095
42096 # Successful exit.
42097 CleanUp 1
42098 exit 0
42099 EOF
42100
42101         chmod +x dllar.sh
42102       ;;
42103
42104       powerpc-apple-macos* | \
42105       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42106       *-*-sunos4* | \
42107       *-*-osf* | \
42108       *-*-dgux5* | \
42109       *-*-sysv5* )
42110               ;;
42111
42112       *)
42113         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42114 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42115    { (exit 1); exit 1; }; }
42116     esac
42117
42118     if test "x$PIC_FLAG" != "x" ; then
42119         PIC_FLAG="$PIC_FLAG -DPIC"
42120     fi
42121
42122     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42123         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42124     fi
42125     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42126         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42127     fi
42128
42129
42130
42131
42132
42133
42134
42135
42136     USE_SOVERSION=0
42137     USE_SOVERLINUX=0
42138     USE_SOVERSOLARIS=0
42139     USE_SOSYMLINKS=0
42140     USE_MACVERSION=0
42141     SONAME_FLAG=
42142
42143     case "${BAKEFILE_HOST}" in
42144       *-*-linux* | *-*-freebsd* )
42145         SONAME_FLAG="-Wl,-soname,"
42146         USE_SOVERSION=1
42147         USE_SOVERLINUX=1
42148         USE_SOSYMLINKS=1
42149       ;;
42150
42151       *-*-solaris2* )
42152         SONAME_FLAG="-h "
42153         USE_SOVERSION=1
42154         USE_SOVERSOLARIS=1
42155         USE_SOSYMLINKS=1
42156       ;;
42157
42158       *-*-darwin* )
42159         USE_MACVERSION=1
42160         USE_SOVERSION=1
42161         USE_SOSYMLINKS=1
42162       ;;
42163     esac
42164
42165
42166
42167
42168
42169
42170
42171
42172
42173     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42174 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42175     DEPS_TRACKING=0
42176
42177     if test "x$GCC" = "xyes"; then
42178         DEPSMODE=gcc
42179         DEPS_TRACKING=1
42180         case "${BAKEFILE_HOST}" in
42181             powerpc-*-darwin* )
42182                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42183             ;;
42184             * )
42185                 DEPSFLAG_GCC="-MMD"
42186             ;;
42187         esac
42188         echo "$as_me:$LINENO: result: gcc" >&5
42189 echo "${ECHO_T}gcc" >&6
42190     elif test "x$MWCC" = "xyes"; then
42191         DEPSMODE=mwcc
42192         DEPS_TRACKING=1
42193         DEPSFLAG_MWCC="-MM"
42194         echo "$as_me:$LINENO: result: mwcc" >&5
42195 echo "${ECHO_T}mwcc" >&6
42196     else
42197         echo "$as_me:$LINENO: result: none" >&5
42198 echo "${ECHO_T}none" >&6
42199     fi
42200
42201     if test $DEPS_TRACKING = 1 ; then
42202
42203 D='$'
42204 cat <<EOF >bk-deps
42205 #!/bin/sh
42206
42207 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42208 # script. It is used to track C/C++ files dependencies in portable way.
42209 #
42210 # Permission is given to use this file in any way.
42211
42212 DEPSMODE=${DEPSMODE}
42213 DEPSDIR=.deps
42214 DEPSFLAG_GCC="${DEPSFLAG_GCC}"
42215 DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
42216
42217 mkdir -p ${D}DEPSDIR
42218
42219 if test ${D}DEPSMODE = gcc ; then
42220     ${D}* ${D}{DEPSFLAG_GCC}
42221     status=${D}?
42222     if test ${D}{status} != 0 ; then
42223         exit ${D}{status}
42224     fi
42225     # move created file to the location we want it in:
42226     while test ${D}# -gt 0; do
42227         case "${D}1" in
42228             -o )
42229                 shift
42230                 objfile=${D}1
42231             ;;
42232             -* )
42233             ;;
42234             * )
42235                 srcfile=${D}1
42236             ;;
42237         esac
42238         shift
42239     done
42240     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42241     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
42242     if test -f ${D}depfile ; then
42243         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42244         rm -f ${D}depfile
42245     else
42246         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
42247         if test -f ${D}depfile ; then
42248             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42249             rm -f ${D}depfile
42250         fi
42251     fi
42252     exit 0
42253 elif test ${D}DEPSMODE = mwcc ; then
42254     ${D}*
42255     status=${D}?
42256     if test ${D}{status} != 0 ; then
42257         exit ${D}{status}
42258     fi
42259     # Run mwcc again with -MM and redirect into the dep file we want
42260     # NOTE: We can't use shift here because we need ${D}* to be valid
42261     prevarg=
42262     for arg in ${D}* ; do
42263         if test "${D}prevarg" = "-o"; then
42264             objfile=${D}arg
42265         else
42266             case "${D}arg" in
42267                 -* )
42268                 ;;
42269                 * )
42270                     srcfile=${D}arg
42271                 ;;
42272             esac
42273         fi
42274         prevarg="${D}arg"
42275     done
42276     ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42277     exit 0
42278 else
42279     ${D}*
42280     exit ${D}?
42281 fi
42282 EOF
42283
42284         chmod +x bk-deps
42285     fi
42286
42287
42288
42289
42290     RESCOMP=
42291     SETFILE=
42292
42293     case ${BAKEFILE_HOST} in
42294         *-*-cygwin* | *-*-mingw32* )
42295                         if test "$build" != "$host" ; then
42296                 RESCOMP=$host_alias-windres
42297             else
42298                 # Extract the first word of "windres", so it can be a program name with args.
42299 set dummy windres; ac_word=$2
42300 echo "$as_me:$LINENO: checking for $ac_word" >&5
42301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42302 if test "${ac_cv_prog_RESCOMP+set}" = set; then
42303   echo $ECHO_N "(cached) $ECHO_C" >&6
42304 else
42305   if test -n "$RESCOMP"; then
42306   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42307 else
42308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42309 for as_dir in $PATH
42310 do
42311   IFS=$as_save_IFS
42312   test -z "$as_dir" && as_dir=.
42313   for ac_exec_ext in '' $ac_executable_extensions; do
42314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42315     ac_cv_prog_RESCOMP="windres"
42316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42317     break 2
42318   fi
42319 done
42320 done
42321
42322   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42323 fi
42324 fi
42325 RESCOMP=$ac_cv_prog_RESCOMP
42326 if test -n "$RESCOMP"; then
42327   echo "$as_me:$LINENO: result: $RESCOMP" >&5
42328 echo "${ECHO_T}$RESCOMP" >&6
42329 else
42330   echo "$as_me:$LINENO: result: no" >&5
42331 echo "${ECHO_T}no" >&6
42332 fi
42333
42334             fi
42335          ;;
42336
42337       *-*-darwin* | powerpc-apple-macos* )
42338             # Extract the first word of "Rez", so it can be a program name with args.
42339 set dummy Rez; ac_word=$2
42340 echo "$as_me:$LINENO: checking for $ac_word" >&5
42341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42342 if test "${ac_cv_prog_RESCOMP+set}" = set; then
42343   echo $ECHO_N "(cached) $ECHO_C" >&6
42344 else
42345   if test -n "$RESCOMP"; then
42346   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42347 else
42348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42349 for as_dir in $PATH
42350 do
42351   IFS=$as_save_IFS
42352   test -z "$as_dir" && as_dir=.
42353   for ac_exec_ext in '' $ac_executable_extensions; do
42354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42355     ac_cv_prog_RESCOMP="Rez"
42356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42357     break 2
42358   fi
42359 done
42360 done
42361
42362   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42363 fi
42364 fi
42365 RESCOMP=$ac_cv_prog_RESCOMP
42366 if test -n "$RESCOMP"; then
42367   echo "$as_me:$LINENO: result: $RESCOMP" >&5
42368 echo "${ECHO_T}$RESCOMP" >&6
42369 else
42370   echo "$as_me:$LINENO: result: no" >&5
42371 echo "${ECHO_T}no" >&6
42372 fi
42373
42374             # Extract the first word of "SetFile", so it can be a program name with args.
42375 set dummy SetFile; ac_word=$2
42376 echo "$as_me:$LINENO: checking for $ac_word" >&5
42377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42378 if test "${ac_cv_prog_SETFILE+set}" = set; then
42379   echo $ECHO_N "(cached) $ECHO_C" >&6
42380 else
42381   if test -n "$SETFILE"; then
42382   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42383 else
42384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42385 for as_dir in $PATH
42386 do
42387   IFS=$as_save_IFS
42388   test -z "$as_dir" && as_dir=.
42389   for ac_exec_ext in '' $ac_executable_extensions; do
42390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42391     ac_cv_prog_SETFILE="SetFile"
42392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42393     break 2
42394   fi
42395 done
42396 done
42397
42398   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42399 fi
42400 fi
42401 SETFILE=$ac_cv_prog_SETFILE
42402 if test -n "$SETFILE"; then
42403   echo "$as_me:$LINENO: result: $SETFILE" >&5
42404 echo "${ECHO_T}$SETFILE" >&6
42405 else
42406   echo "$as_me:$LINENO: result: no" >&5
42407 echo "${ECHO_T}no" >&6
42408 fi
42409
42410         ;;
42411     esac
42412
42413
42414
42415
42416
42417     BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
42418
42419
42420 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
42421
42422
42423
42424     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42425 if test "${enable_precomp_headers+set}" = set; then
42426   enableval="$enable_precomp_headers"
42427   bk_use_pch="$enableval"
42428 fi;
42429
42430     GCC_PCH=0
42431
42432     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42433         if test "x$GCC" = "xyes"; then
42434                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42435 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42436             cat >conftest.$ac_ext <<_ACEOF
42437 /* confdefs.h.  */
42438 _ACEOF
42439 cat confdefs.h >>conftest.$ac_ext
42440 cat >>conftest.$ac_ext <<_ACEOF
42441 /* end confdefs.h.  */
42442
42443 int
42444 main ()
42445 {
42446
42447                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42448                         #error "no pch support"
42449                     #endif
42450                     #if (__GNUC__ < 3)
42451                         #error "no pch support"
42452                     #endif
42453                     #if (__GNUC__ == 3) && \
42454                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42455                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42456                         #error "no pch support"
42457                     #endif
42458
42459   ;
42460   return 0;
42461 }
42462 _ACEOF
42463 rm -f conftest.$ac_objext
42464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42465   (eval $ac_compile) 2>conftest.er1
42466   ac_status=$?
42467   grep -v '^ *+' conftest.er1 >conftest.err
42468   rm -f conftest.er1
42469   cat conftest.err >&5
42470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471   (exit $ac_status); } &&
42472          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42474   (eval $ac_try) 2>&5
42475   ac_status=$?
42476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477   (exit $ac_status); }; } &&
42478          { ac_try='test -s conftest.$ac_objext'
42479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42480   (eval $ac_try) 2>&5
42481   ac_status=$?
42482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42483   (exit $ac_status); }; }; then
42484
42485                     echo "$as_me:$LINENO: result: yes" >&5
42486 echo "${ECHO_T}yes" >&6
42487                     GCC_PCH=1
42488
42489 else
42490   echo "$as_me: failed program was:" >&5
42491 sed 's/^/| /' conftest.$ac_ext >&5
42492
42493
42494                     echo "$as_me:$LINENO: result: no" >&5
42495 echo "${ECHO_T}no" >&6
42496
42497 fi
42498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42499             if test $GCC_PCH = 1 ; then
42500
42501 D='$'
42502 cat <<EOF >bk-make-pch
42503 #!/bin/sh
42504
42505 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42506 # script. It is used to generated precompiled headers.
42507 #
42508 # Permission is given to use this file in any way.
42509
42510 outfile="${D}{1}"
42511 header="${D}{2}"
42512 shift
42513 shift
42514
42515 compiler=
42516 headerfile=
42517 while test ${D}{#} -gt 0; do
42518     case "${D}{1}" in
42519         -I* )
42520             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42521             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42522                 headerfile="${D}{incdir}/${D}{header}"
42523             fi
42524         ;;
42525     esac
42526     compiler="${D}{compiler} ${D}{1}"
42527     shift
42528 done
42529
42530 if test "x${D}{headerfile}" = "x" ; then
42531     echo "error: can't find header ${D}{header} in include paths" >2
42532 else
42533     if test -f ${D}{outfile} ; then
42534         rm -f ${D}{outfile}
42535     else
42536         mkdir -p \`dirname ${D}{outfile}\`
42537     fi
42538     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
42539     mkdir -p .deps
42540     # can do this because gcc is >= 3.4:
42541     ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42542     exit ${D}{?}
42543 fi
42544 EOF
42545
42546                 chmod +x bk-make-pch
42547             fi
42548         fi
42549     fi
42550
42551
42552
42553     COND_BUILD_DEBUG="#"
42554     if test "x$BUILD" = "xdebug" ; then
42555         COND_BUILD_DEBUG=""
42556     fi
42557
42558     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42559     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42560         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42561     fi
42562
42563     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42564     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42565         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42566     fi
42567
42568     COND_BUILD_DEBUG_UNICODE_0="#"
42569     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42570         COND_BUILD_DEBUG_UNICODE_0=""
42571     fi
42572
42573     COND_BUILD_DEBUG_UNICODE_1="#"
42574     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42575         COND_BUILD_DEBUG_UNICODE_1=""
42576     fi
42577
42578     COND_BUILD_RELEASE="#"
42579     if test "x$BUILD" = "xrelease" ; then
42580         COND_BUILD_RELEASE=""
42581     fi
42582
42583     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42584     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42585         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42586     fi
42587
42588     COND_BUILD_RELEASE_UNICODE_0="#"
42589     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42590         COND_BUILD_RELEASE_UNICODE_0=""
42591     fi
42592
42593     COND_BUILD_RELEASE_UNICODE_1="#"
42594     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42595         COND_BUILD_RELEASE_UNICODE_1=""
42596     fi
42597
42598     COND_DEBUG_FLAG_1="#"
42599     if test "x$DEBUG_FLAG" = "x1" ; then
42600         COND_DEBUG_FLAG_1=""
42601     fi
42602
42603     COND_DEBUG_INFO_0="#"
42604     if test "x$DEBUG_INFO" = "x0" ; then
42605         COND_DEBUG_INFO_0=""
42606     fi
42607
42608     COND_DEBUG_INFO_1="#"
42609     if test "x$DEBUG_INFO" = "x1" ; then
42610         COND_DEBUG_INFO_1=""
42611     fi
42612
42613     COND_DEPS_TRACKING_0="#"
42614     if test "x$DEPS_TRACKING" = "x0" ; then
42615         COND_DEPS_TRACKING_0=""
42616     fi
42617
42618     COND_DEPS_TRACKING_1="#"
42619     if test "x$DEPS_TRACKING" = "x1" ; then
42620         COND_DEPS_TRACKING_1=""
42621     fi
42622
42623     COND_GCC_PCH_1="#"
42624     if test "x$GCC_PCH" = "x1" ; then
42625         COND_GCC_PCH_1=""
42626     fi
42627
42628     COND_MONOLITHIC_0="#"
42629     if test "x$MONOLITHIC" = "x0" ; then
42630         COND_MONOLITHIC_0=""
42631     fi
42632
42633     COND_MONOLITHIC_0_SHARED_0="#"
42634     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42635         COND_MONOLITHIC_0_SHARED_0=""
42636     fi
42637
42638     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42639     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42640         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42641     fi
42642
42643     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42644     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42645         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42646     fi
42647
42648     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42649     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42650         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42651     fi
42652
42653     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42654     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42655         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42656     fi
42657
42658     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42659     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42660         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42661     fi
42662
42663     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42664     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42665         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42666     fi
42667
42668     COND_MONOLITHIC_0_SHARED_1="#"
42669     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42670         COND_MONOLITHIC_0_SHARED_1=""
42671     fi
42672
42673     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42674     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42675         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42676     fi
42677
42678     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42679     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42680         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42681     fi
42682
42683     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42684     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42685         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42686     fi
42687
42688     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42689     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42690         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42691     fi
42692
42693     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42694     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42695         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42696     fi
42697
42698     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42699     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42700         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42701     fi
42702
42703     COND_MONOLITHIC_0_USE_ODBC_1="#"
42704     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42705         COND_MONOLITHIC_0_USE_ODBC_1=""
42706     fi
42707
42708     COND_MONOLITHIC_1="#"
42709     if test "x$MONOLITHIC" = "x1" ; then
42710         COND_MONOLITHIC_1=""
42711     fi
42712
42713     COND_MONOLITHIC_1_SHARED_0="#"
42714     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42715         COND_MONOLITHIC_1_SHARED_0=""
42716     fi
42717
42718     COND_MONOLITHIC_1_SHARED_1="#"
42719     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42720         COND_MONOLITHIC_1_SHARED_1=""
42721     fi
42722
42723     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42724     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42725         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42726     fi
42727
42728     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42729     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42730         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42731     fi
42732
42733     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42734     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42735         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42736     fi
42737
42738     COND_PLATFORM_MACOSX_1="#"
42739     if test "x$PLATFORM_MACOSX" = "x1" ; then
42740         COND_PLATFORM_MACOSX_1=""
42741     fi
42742
42743     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42744     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42745         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42746     fi
42747
42748     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42749     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42750         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42751     fi
42752
42753     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42754     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42755         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42756     fi
42757
42758     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42759     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42760         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42761     fi
42762
42763     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42764     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42765         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42766     fi
42767
42768     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42769     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42770         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42771     fi
42772
42773     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42774     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42775         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42776     fi
42777
42778     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42779     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42780         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42781     fi
42782
42783     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42784     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42785         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42786     fi
42787
42788     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42789     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42790         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42791     fi
42792
42793     COND_PLATFORM_MACOS_1="#"
42794     if test "x$PLATFORM_MACOS" = "x1" ; then
42795         COND_PLATFORM_MACOS_1=""
42796     fi
42797
42798     COND_PLATFORM_MAC_1="#"
42799     if test "x$PLATFORM_MAC" = "x1" ; then
42800         COND_PLATFORM_MAC_1=""
42801     fi
42802
42803     COND_PLATFORM_OS2_1="#"
42804     if test "x$PLATFORM_OS2" = "x1" ; then
42805         COND_PLATFORM_OS2_1=""
42806     fi
42807
42808     COND_PLATFORM_UNIX_0="#"
42809     if test "x$PLATFORM_UNIX" = "x0" ; then
42810         COND_PLATFORM_UNIX_0=""
42811     fi
42812
42813     COND_PLATFORM_UNIX_1="#"
42814     if test "x$PLATFORM_UNIX" = "x1" ; then
42815         COND_PLATFORM_UNIX_1=""
42816     fi
42817
42818     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42819     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42820         COND_PLATFORM_UNIX_1_USE_GUI_1=""
42821     fi
42822
42823     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42824     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42825         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42826     fi
42827
42828     COND_PLATFORM_WIN32_0="#"
42829     if test "x$PLATFORM_WIN32" = "x0" ; then
42830         COND_PLATFORM_WIN32_0=""
42831     fi
42832
42833     COND_PLATFORM_WIN32_1="#"
42834     if test "x$PLATFORM_WIN32" = "x1" ; then
42835         COND_PLATFORM_WIN32_1=""
42836     fi
42837
42838     COND_SHARED_0="#"
42839     if test "x$SHARED" = "x0" ; then
42840         COND_SHARED_0=""
42841     fi
42842
42843     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42844     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42845         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42846     fi
42847
42848     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42849     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42850         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42851     fi
42852
42853     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42854     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42855         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42856     fi
42857
42858     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42859     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42860         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42861     fi
42862
42863     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42864     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42865         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42866     fi
42867
42868     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42869     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42870         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42871     fi
42872
42873     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42874     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42875         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42876     fi
42877
42878     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42879     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42880         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42881     fi
42882
42883     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42884     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42885         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42886     fi
42887
42888     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42889     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42890         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42891     fi
42892
42893     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42894     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42895         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42896     fi
42897
42898     COND_SHARED_1="#"
42899     if test "x$SHARED" = "x1" ; then
42900         COND_SHARED_1=""
42901     fi
42902
42903     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42904     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42905         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42906     fi
42907
42908     COND_TOOLKIT_="#"
42909     if test "x$TOOLKIT" = "x" ; then
42910         COND_TOOLKIT_=""
42911     fi
42912
42913     COND_TOOLKIT_COCOA="#"
42914     if test "x$TOOLKIT" = "xCOCOA" ; then
42915         COND_TOOLKIT_COCOA=""
42916     fi
42917
42918     COND_TOOLKIT_COCOA_USE_GUI_1="#"
42919     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42920         COND_TOOLKIT_COCOA_USE_GUI_1=""
42921     fi
42922
42923     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42924     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42925         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42926     fi
42927
42928     COND_TOOLKIT_GTK="#"
42929     if test "x$TOOLKIT" = "xGTK" ; then
42930         COND_TOOLKIT_GTK=""
42931     fi
42932
42933     COND_TOOLKIT_GTK_USE_GUI_1="#"
42934     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42935         COND_TOOLKIT_GTK_USE_GUI_1=""
42936     fi
42937
42938     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42939     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42940         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42941     fi
42942
42943     COND_TOOLKIT_MAC="#"
42944     if test "x$TOOLKIT" = "xMAC" ; then
42945         COND_TOOLKIT_MAC=""
42946     fi
42947
42948     COND_TOOLKIT_MAC_USE_GUI_1="#"
42949     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42950         COND_TOOLKIT_MAC_USE_GUI_1=""
42951     fi
42952
42953     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42954     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42955         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42956     fi
42957
42958     COND_TOOLKIT_MGL="#"
42959     if test "x$TOOLKIT" = "xMGL" ; then
42960         COND_TOOLKIT_MGL=""
42961     fi
42962
42963     COND_TOOLKIT_MGL_USE_GUI_1="#"
42964     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42965         COND_TOOLKIT_MGL_USE_GUI_1=""
42966     fi
42967
42968     COND_TOOLKIT_MOTIF="#"
42969     if test "x$TOOLKIT" = "xMOTIF" ; then
42970         COND_TOOLKIT_MOTIF=""
42971     fi
42972
42973     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42974     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42975         COND_TOOLKIT_MOTIF_USE_GUI_1=""
42976     fi
42977
42978     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42979     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42980         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42981     fi
42982
42983     COND_TOOLKIT_MSW="#"
42984     if test "x$TOOLKIT" = "xMSW" ; then
42985         COND_TOOLKIT_MSW=""
42986     fi
42987
42988     COND_TOOLKIT_MSW_USE_GUI_1="#"
42989     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42990         COND_TOOLKIT_MSW_USE_GUI_1=""
42991     fi
42992
42993     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42994     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42995         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42996     fi
42997
42998     COND_TOOLKIT_PM="#"
42999     if test "x$TOOLKIT" = "xPM" ; then
43000         COND_TOOLKIT_PM=""
43001     fi
43002
43003     COND_TOOLKIT_PM_USE_GUI_1="#"
43004     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43005         COND_TOOLKIT_PM_USE_GUI_1=""
43006     fi
43007
43008     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43009     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43010         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43011     fi
43012
43013     COND_TOOLKIT_WINCE="#"
43014     if test "x$TOOLKIT" = "xWINCE" ; then
43015         COND_TOOLKIT_WINCE=""
43016     fi
43017
43018     COND_TOOLKIT_WINCE_USE_GUI_1="#"
43019     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43020         COND_TOOLKIT_WINCE_USE_GUI_1=""
43021     fi
43022
43023     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43024     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43025         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43026     fi
43027
43028     COND_TOOLKIT_X11="#"
43029     if test "x$TOOLKIT" = "xX11" ; then
43030         COND_TOOLKIT_X11=""
43031     fi
43032
43033     COND_TOOLKIT_X11_USE_GUI_1="#"
43034     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43035         COND_TOOLKIT_X11_USE_GUI_1=""
43036     fi
43037
43038     COND_UNICODE_1="#"
43039     if test "x$UNICODE" = "x1" ; then
43040         COND_UNICODE_1=""
43041     fi
43042
43043     COND_USE_EXCEPTIONS_0="#"
43044     if test "x$USE_EXCEPTIONS" = "x0" ; then
43045         COND_USE_EXCEPTIONS_0=""
43046     fi
43047
43048     COND_USE_EXCEPTIONS_1="#"
43049     if test "x$USE_EXCEPTIONS" = "x1" ; then
43050         COND_USE_EXCEPTIONS_1=""
43051     fi
43052
43053     COND_USE_GUI_0="#"
43054     if test "x$USE_GUI" = "x0" ; then
43055         COND_USE_GUI_0=""
43056     fi
43057
43058     COND_USE_GUI_1="#"
43059     if test "x$USE_GUI" = "x1" ; then
43060         COND_USE_GUI_1=""
43061     fi
43062
43063     COND_USE_GUI_1_WXUNIV_0="#"
43064     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43065         COND_USE_GUI_1_WXUNIV_0=""
43066     fi
43067
43068     COND_USE_GUI_1_WXUNIV_1="#"
43069     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43070         COND_USE_GUI_1_WXUNIV_1=""
43071     fi
43072
43073     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43074     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43075         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43076     fi
43077
43078     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43079     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43080         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43081     fi
43082
43083     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43084     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43085         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43086     fi
43087
43088     COND_USE_ODBC_1="#"
43089     if test "x$USE_ODBC" = "x1" ; then
43090         COND_USE_ODBC_1=""
43091     fi
43092
43093     COND_USE_OPENGL_1="#"
43094     if test "x$USE_OPENGL" = "x1" ; then
43095         COND_USE_OPENGL_1=""
43096     fi
43097
43098     COND_USE_PLUGINS_0="#"
43099     if test "x$USE_PLUGINS" = "x0" ; then
43100         COND_USE_PLUGINS_0=""
43101     fi
43102
43103     COND_USE_RTTI_0="#"
43104     if test "x$USE_RTTI" = "x0" ; then
43105         COND_USE_RTTI_0=""
43106     fi
43107
43108     COND_USE_RTTI_1="#"
43109     if test "x$USE_RTTI" = "x1" ; then
43110         COND_USE_RTTI_1=""
43111     fi
43112
43113     COND_USE_SOSYMLINKS_1="#"
43114     if test "x$USE_SOSYMLINKS" = "x1" ; then
43115         COND_USE_SOSYMLINKS_1=""
43116     fi
43117
43118     COND_USE_SOVERLINUX_1="#"
43119     if test "x$USE_SOVERLINUX" = "x1" ; then
43120         COND_USE_SOVERLINUX_1=""
43121     fi
43122
43123     COND_USE_SOVERSION_0="#"
43124     if test "x$USE_SOVERSION" = "x0" ; then
43125         COND_USE_SOVERSION_0=""
43126     fi
43127
43128     COND_USE_SOVERSOLARIS_1="#"
43129     if test "x$USE_SOVERSOLARIS" = "x1" ; then
43130         COND_USE_SOVERSOLARIS_1=""
43131     fi
43132
43133     COND_USE_THREADS_0="#"
43134     if test "x$USE_THREADS" = "x0" ; then
43135         COND_USE_THREADS_0=""
43136     fi
43137
43138     COND_USE_THREADS_1="#"
43139     if test "x$USE_THREADS" = "x1" ; then
43140         COND_USE_THREADS_1=""
43141     fi
43142
43143     COND_USE_XRC_1="#"
43144     if test "x$USE_XRC" = "x1" ; then
43145         COND_USE_XRC_1=""
43146     fi
43147
43148     COND_WITH_PLUGIN_SDL_1="#"
43149     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43150         COND_WITH_PLUGIN_SDL_1=""
43151     fi
43152
43153     COND_WXUNIV_0="#"
43154     if test "x$WXUNIV" = "x0" ; then
43155         COND_WXUNIV_0=""
43156     fi
43157
43158     COND_WXUNIV_1="#"
43159     if test "x$WXUNIV" = "x1" ; then
43160         COND_WXUNIV_1=""
43161     fi
43162
43163     COND_WXUSE_EXPAT_BUILTIN="#"
43164     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43165         COND_WXUSE_EXPAT_BUILTIN=""
43166     fi
43167
43168     COND_WXUSE_LIBJPEG_BUILTIN="#"
43169     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43170         COND_WXUSE_LIBJPEG_BUILTIN=""
43171     fi
43172
43173     COND_WXUSE_LIBPNG_BUILTIN="#"
43174     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43175         COND_WXUSE_LIBPNG_BUILTIN=""
43176     fi
43177
43178     COND_WXUSE_LIBTIFF_BUILTIN="#"
43179     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43180         COND_WXUSE_LIBTIFF_BUILTIN=""
43181     fi
43182
43183     COND_WXUSE_ODBC_BUILTIN="#"
43184     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43185         COND_WXUSE_ODBC_BUILTIN=""
43186     fi
43187
43188     COND_WXUSE_REGEX_BUILTIN="#"
43189     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43190         COND_WXUSE_REGEX_BUILTIN=""
43191     fi
43192
43193     COND_WXUSE_ZLIB_BUILTIN="#"
43194     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43195         COND_WXUSE_ZLIB_BUILTIN=""
43196     fi
43197
43198
43199
43200     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43201         { { 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
43202 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;}
43203    { (exit 1); exit 1; }; }
43204     fi
43205
43206
43207 if test "$wxUSE_SHARED" = "yes"; then
43208
43209                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43210     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43211
43212                 case "${host}" in
43213       *-pc-os2_emx | *-pc-os2-emx )
43214         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43215         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43216         cp -p ${srcdir}/src/os2/dllnames.sh .
43217         cp -p ${srcdir}/src/os2/dllar.sh .
43218       ;;
43219     esac
43220 else
43221
43222         EXE_LINKER="$CXX -o"
43223
43224 fi
43225 if test "$wxUSE_OMF" = "yes"; then
43226     case "${host}" in
43227       *-pc-os2_emx | *-pc-os2-emx )
43228         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43229         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43230         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43231       ;;
43232     esac
43233 fi
43234
43235 GCC_PRAGMA_FLAGS=""
43236 PCH_FLAGS=""
43237 if test $GCC_PCH = 1 ; then
43238     GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43239     PCH_FLAGS="-DWX_PRECOMP"
43240 else
43241     case "${host}" in
43242         powerpc-*-darwin* )
43243                                     GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43244             ;;
43245         *-*-mingw32* )
43246                                                                                     if test "$wxUSE_STL" = "yes" -o \
43247                     "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43248                     "$wxUSE_NO_RTTI" != "yes"; then
43249                echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43250 echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43251                cat >conftest.$ac_ext <<_ACEOF
43252 /* confdefs.h.  */
43253 _ACEOF
43254 cat confdefs.h >>conftest.$ac_ext
43255 cat >>conftest.$ac_ext <<_ACEOF
43256 /* end confdefs.h.  */
43257
43258 int
43259 main ()
43260 {
43261 #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43262                                #error "Not GCC 3.2 or greater"
43263                                #endif
43264
43265   ;
43266   return 0;
43267 }
43268 _ACEOF
43269 rm -f conftest.$ac_objext
43270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43271   (eval $ac_compile) 2>conftest.er1
43272   ac_status=$?
43273   grep -v '^ *+' conftest.er1 >conftest.err
43274   rm -f conftest.er1
43275   cat conftest.err >&5
43276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43277   (exit $ac_status); } &&
43278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43280   (eval $ac_try) 2>&5
43281   ac_status=$?
43282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43283   (exit $ac_status); }; } &&
43284          { ac_try='test -s conftest.$ac_objext'
43285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43286   (eval $ac_try) 2>&5
43287   ac_status=$?
43288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43289   (exit $ac_status); }; }; then
43290   GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43291                                echo "$as_me:$LINENO: result: yes" >&5
43292 echo "${ECHO_T}yes" >&6
43293 else
43294   echo "$as_me: failed program was:" >&5
43295 sed 's/^/| /' conftest.$ac_ext >&5
43296
43297 echo "$as_me:$LINENO: result: no" >&5
43298 echo "${ECHO_T}no" >&6
43299 fi
43300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43301             fi
43302             ;;
43303         *-pc-os2_emx | *-pc-os2-emx )
43304                                                 if test "$wxUSE_STL" = "yes"; then
43305                echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43306 echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43307                cat >conftest.$ac_ext <<_ACEOF
43308 /* confdefs.h.  */
43309 _ACEOF
43310 cat confdefs.h >>conftest.$ac_ext
43311 cat >>conftest.$ac_ext <<_ACEOF
43312 /* end confdefs.h.  */
43313
43314 int
43315 main ()
43316 {
43317 #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43318                                #error "Not GCC 3.2 or greater"
43319                                #endif
43320
43321   ;
43322   return 0;
43323 }
43324 _ACEOF
43325 rm -f conftest.$ac_objext
43326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43327   (eval $ac_compile) 2>conftest.er1
43328   ac_status=$?
43329   grep -v '^ *+' conftest.er1 >conftest.err
43330   rm -f conftest.er1
43331   cat conftest.err >&5
43332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333   (exit $ac_status); } &&
43334          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43336   (eval $ac_try) 2>&5
43337   ac_status=$?
43338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339   (exit $ac_status); }; } &&
43340          { ac_try='test -s conftest.$ac_objext'
43341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43342   (eval $ac_try) 2>&5
43343   ac_status=$?
43344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43345   (exit $ac_status); }; }; then
43346   GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43347                                echo "$as_me:$LINENO: result: yes" >&5
43348 echo "${ECHO_T}yes" >&6
43349 else
43350   echo "$as_me: failed program was:" >&5
43351 sed 's/^/| /' conftest.$ac_ext >&5
43352
43353 echo "$as_me:$LINENO: result: no" >&5
43354 echo "${ECHO_T}no" >&6
43355 fi
43356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43357             fi
43358             ;;
43359     esac
43360 fi
43361 CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
43362
43363
43364 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43365
43366
43367
43368
43369
43370
43371
43372
43373
43374
43375
43376
43377
43378
43379
43380
43381
43382
43383
43384
43385
43386
43387
43388
43389
43390
43391
43392
43393
43394
43395
43396
43397
43398
43399
43400
43401
43402
43403
43404
43405
43406
43407
43408
43409
43410
43411
43412
43413
43414
43415
43416
43417
43418
43419
43420
43421
43422
43423
43424
43425
43426
43427
43428 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43429 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
43430 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
43431 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43432   echo $ECHO_N "(cached) $ECHO_C" >&6
43433 else
43434   cat >conftest.make <<\_ACEOF
43435 all:
43436         @echo 'ac_maketemp="$(MAKE)"'
43437 _ACEOF
43438 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43439 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43440 if test -n "$ac_maketemp"; then
43441   eval ac_cv_prog_make_${ac_make}_set=yes
43442 else
43443   eval ac_cv_prog_make_${ac_make}_set=no
43444 fi
43445 rm -f conftest.make
43446 fi
43447 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43448   echo "$as_me:$LINENO: result: yes" >&5
43449 echo "${ECHO_T}yes" >&6
43450   SET_MAKE=
43451 else
43452   echo "$as_me:$LINENO: result: no" >&5
43453 echo "${ECHO_T}no" >&6
43454   SET_MAKE="MAKE=${MAKE-make}"
43455 fi
43456
43457
43458
43459           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43460
43461
43462           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
43463
43464
43465           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
43466
43467
43468                     ac_config_files="$ac_config_files version-script Makefile"
43469
43470
43471           ac_config_commands="$ac_config_commands  wx-config
43472                    "
43473
43474
43475
43476
43477 if test "$wxUSE_GUI" = "yes"; then
43478     SUBDIRS="samples demos utils contrib"
43479 else         SUBDIRS="samples utils"
43480 fi
43481
43482
43483
43484 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43485 if test "${with_cppunit_prefix+set}" = set; then
43486   withval="$with_cppunit_prefix"
43487   cppunit_config_prefix="$withval"
43488 else
43489   cppunit_config_prefix=""
43490 fi;
43491
43492 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43493 if test "${with_cppunit_exec_prefix+set}" = set; then
43494   withval="$with_cppunit_exec_prefix"
43495   cppunit_config_exec_prefix="$withval"
43496 else
43497   cppunit_config_exec_prefix=""
43498 fi;
43499
43500   if test x$cppunit_config_exec_prefix != x ; then
43501      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43502      if test x${CPPUNIT_CONFIG+set} != xset ; then
43503         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43504      fi
43505   fi
43506   if test x$cppunit_config_prefix != x ; then
43507      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43508      if test x${CPPUNIT_CONFIG+set} != xset ; then
43509         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43510      fi
43511   fi
43512
43513   # Extract the first word of "cppunit-config", so it can be a program name with args.
43514 set dummy cppunit-config; ac_word=$2
43515 echo "$as_me:$LINENO: checking for $ac_word" >&5
43516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43517 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43518   echo $ECHO_N "(cached) $ECHO_C" >&6
43519 else
43520   case $CPPUNIT_CONFIG in
43521   [\\/]* | ?:[\\/]*)
43522   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43523   ;;
43524   *)
43525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43526 for as_dir in $PATH
43527 do
43528   IFS=$as_save_IFS
43529   test -z "$as_dir" && as_dir=.
43530   for ac_exec_ext in '' $ac_executable_extensions; do
43531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43532     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43534     break 2
43535   fi
43536 done
43537 done
43538
43539   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43540   ;;
43541 esac
43542 fi
43543 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43544
43545 if test -n "$CPPUNIT_CONFIG"; then
43546   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43547 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43548 else
43549   echo "$as_me:$LINENO: result: no" >&5
43550 echo "${ECHO_T}no" >&6
43551 fi
43552
43553   cppunit_version_min=1.8.0
43554
43555   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43556 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43557   no_cppunit=""
43558   if test "$CPPUNIT_CONFIG" = "no" ; then
43559     no_cppunit=yes
43560   else
43561     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43562     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43563     cppunit_version=`$CPPUNIT_CONFIG --version`
43564
43565     cppunit_major_version=`echo $cppunit_version | \
43566            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43567     cppunit_minor_version=`echo $cppunit_version | \
43568            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43569     cppunit_micro_version=`echo $cppunit_version | \
43570            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43571
43572     cppunit_major_min=`echo $cppunit_version_min | \
43573            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43574     cppunit_minor_min=`echo $cppunit_version_min | \
43575            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43576     cppunit_micro_min=`echo $cppunit_version_min | \
43577            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43578
43579     cppunit_version_proper=`expr \
43580         $cppunit_major_version \> $cppunit_major_min \| \
43581         $cppunit_major_version \= $cppunit_major_min \& \
43582         $cppunit_minor_version \> $cppunit_minor_min \| \
43583         $cppunit_major_version \= $cppunit_major_min \& \
43584         $cppunit_minor_version \= $cppunit_minor_min \& \
43585         $cppunit_micro_version \>= $cppunit_micro_min `
43586
43587     if test "$cppunit_version_proper" = "1" ; then
43588       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43589 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43590     else
43591       echo "$as_me:$LINENO: result: no" >&5
43592 echo "${ECHO_T}no" >&6
43593       no_cppunit=yes
43594     fi
43595   fi
43596
43597   if test "x$no_cppunit" = x ; then
43598      SUBDIRS="$SUBDIRS tests"
43599   else
43600      CPPUNIT_CFLAGS=""
43601      CPPUNIT_LIBS=""
43602      :
43603   fi
43604
43605
43606
43607
43608
43609 for subdir in `echo $SUBDIRS`; do
43610     if test -d ${srcdir}/${subdir} ; then
43611         if test "$wxUSE_GUI" = "yes"; then
43612             if test ${subdir} = "samples"; then
43613                                                 makefiles="samples/Makefile.in $makefiles"
43614                 for sample in `echo $SAMPLES_SUBDIRS`; do
43615                     if test -d $srcdir/samples/$sample; then
43616                         makefiles="samples/$sample/Makefile.in $makefiles"
43617                     fi
43618                 done
43619             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43620             fi
43621         else                                     if test ${subdir} = "samples"; then
43622                 makefiles="samples/Makefile.in samples/console/Makefile.in"
43623             elif test ${subdir} = "utils"; then
43624                 makefiles=""
43625                 for util in HelpGen tex2rtf ; do
43626                     if test -d $srcdir/utils/$util ; then
43627                         makefiles="utils/$util/Makefile.in \
43628                                    utils/$util/src/Makefile.in \
43629                                    $makefiles"
43630                     fi
43631                 done
43632             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43633             fi
43634         fi
43635
43636         for mkin in $makefiles ; do
43637             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43638                       ac_config_files="$ac_config_files $mk"
43639
43640         done
43641     fi
43642 done
43643
43644
43645 cat >confcache <<\_ACEOF
43646 # This file is a shell script that caches the results of configure
43647 # tests run on this system so they can be shared between configure
43648 # scripts and configure runs, see configure's option --config-cache.
43649 # It is not useful on other systems.  If it contains results you don't
43650 # want to keep, you may remove or edit it.
43651 #
43652 # config.status only pays attention to the cache file if you give it
43653 # the --recheck option to rerun configure.
43654 #
43655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43657 # following values.
43658
43659 _ACEOF
43660
43661 # The following way of writing the cache mishandles newlines in values,
43662 # but we know of no workaround that is simple, portable, and efficient.
43663 # So, don't put newlines in cache variables' values.
43664 # Ultrix sh set writes to stderr and can't be redirected directly,
43665 # and sets the high bit in the cache file unless we assign to the vars.
43666 {
43667   (set) 2>&1 |
43668     case `(ac_space=' '; set | grep ac_space) 2>&1` in
43669     *ac_space=\ *)
43670       # `set' does not quote correctly, so add quotes (double-quote
43671       # substitution turns \\\\ into \\, and sed turns \\ into \).
43672       sed -n \
43673         "s/'/'\\\\''/g;
43674           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43675       ;;
43676     *)
43677       # `set' quotes correctly as required by POSIX, so do not add quotes.
43678       sed -n \
43679         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
43680       ;;
43681     esac;
43682 } |
43683   sed '
43684      t clear
43685      : clear
43686      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43687      t end
43688      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43689      : end' >>confcache
43690 if diff $cache_file confcache >/dev/null 2>&1; then :; else
43691   if test -w $cache_file; then
43692     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43693     cat confcache >$cache_file
43694   else
43695     echo "not updating unwritable cache $cache_file"
43696   fi
43697 fi
43698 rm -f confcache
43699
43700 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43701 # Let make expand exec_prefix.
43702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43703
43704 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43705 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43706 # trailing colons and then remove the whole line if VPATH becomes empty
43707 # (actually we leave an empty line to preserve line numbers).
43708 if test "x$srcdir" = x.; then
43709   ac_vpsub='/^[  ]*VPATH[        ]*=/{
43710 s/:*\$(srcdir):*/:/;
43711 s/:*\${srcdir}:*/:/;
43712 s/:*@srcdir@:*/:/;
43713 s/^\([^=]*=[     ]*\):*/\1/;
43714 s/:*$//;
43715 s/^[^=]*=[       ]*$//;
43716 }'
43717 fi
43718
43719 DEFS=-DHAVE_CONFIG_H
43720
43721 ac_libobjs=
43722 ac_ltlibobjs=
43723 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43724   # 1. Remove the extension, and $U if already installed.
43725   ac_i=`echo "$ac_i" |
43726          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
43727   # 2. Add them.
43728   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43729   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43730 done
43731 LIBOBJS=$ac_libobjs
43732
43733 LTLIBOBJS=$ac_ltlibobjs
43734
43735
43736
43737 : ${CONFIG_STATUS=./config.status}
43738 ac_clean_files_save=$ac_clean_files
43739 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43740 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43741 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43742 cat >$CONFIG_STATUS <<_ACEOF
43743 #! $SHELL
43744 # Generated by $as_me.
43745 # Run this file to recreate the current configuration.
43746 # Compiler output produced by configure, useful for debugging
43747 # configure, is in config.log if it exists.
43748
43749 debug=false
43750 ac_cs_recheck=false
43751 ac_cs_silent=false
43752 SHELL=\${CONFIG_SHELL-$SHELL}
43753 _ACEOF
43754
43755 cat >>$CONFIG_STATUS <<\_ACEOF
43756 ## --------------------- ##
43757 ## M4sh Initialization.  ##
43758 ## --------------------- ##
43759
43760 # Be Bourne compatible
43761 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43762   emulate sh
43763   NULLCMD=:
43764   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43765   # is contrary to our usage.  Disable this feature.
43766   alias -g '${1+"$@"}'='"$@"'
43767 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43768   set -o posix
43769 fi
43770 DUALCASE=1; export DUALCASE # for MKS sh
43771
43772 # Support unset when possible.
43773 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43774   as_unset=unset
43775 else
43776   as_unset=false
43777 fi
43778
43779
43780 # Work around bugs in pre-3.0 UWIN ksh.
43781 $as_unset ENV MAIL MAILPATH
43782 PS1='$ '
43783 PS2='> '
43784 PS4='+ '
43785
43786 # NLS nuisances.
43787 for as_var in \
43788   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43789   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43790   LC_TELEPHONE LC_TIME
43791 do
43792   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43793     eval $as_var=C; export $as_var
43794   else
43795     $as_unset $as_var
43796   fi
43797 done
43798
43799 # Required to use basename.
43800 if expr a : '\(a\)' >/dev/null 2>&1; then
43801   as_expr=expr
43802 else
43803   as_expr=false
43804 fi
43805
43806 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43807   as_basename=basename
43808 else
43809   as_basename=false
43810 fi
43811
43812
43813 # Name of the executable.
43814 as_me=`$as_basename "$0" ||
43815 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43816          X"$0" : 'X\(//\)$' \| \
43817          X"$0" : 'X\(/\)$' \| \
43818          .     : '\(.\)' 2>/dev/null ||
43819 echo X/"$0" |
43820     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43821           /^X\/\(\/\/\)$/{ s//\1/; q; }
43822           /^X\/\(\/\).*/{ s//\1/; q; }
43823           s/.*/./; q'`
43824
43825
43826 # PATH needs CR, and LINENO needs CR and PATH.
43827 # Avoid depending upon Character Ranges.
43828 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43829 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43830 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43831 as_cr_digits='0123456789'
43832 as_cr_alnum=$as_cr_Letters$as_cr_digits
43833
43834 # The user is always right.
43835 if test "${PATH_SEPARATOR+set}" != set; then
43836   echo "#! /bin/sh" >conf$$.sh
43837   echo  "exit 0"   >>conf$$.sh
43838   chmod +x conf$$.sh
43839   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43840     PATH_SEPARATOR=';'
43841   else
43842     PATH_SEPARATOR=:
43843   fi
43844   rm -f conf$$.sh
43845 fi
43846
43847
43848   as_lineno_1=$LINENO
43849   as_lineno_2=$LINENO
43850   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43851   test "x$as_lineno_1" != "x$as_lineno_2" &&
43852   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
43853   # Find who we are.  Look in the path if we contain no path at all
43854   # relative or not.
43855   case $0 in
43856     *[\\/]* ) as_myself=$0 ;;
43857     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43858 for as_dir in $PATH
43859 do
43860   IFS=$as_save_IFS
43861   test -z "$as_dir" && as_dir=.
43862   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43863 done
43864
43865        ;;
43866   esac
43867   # We did not find ourselves, most probably we were run as `sh COMMAND'
43868   # in which case we are not to be found in the path.
43869   if test "x$as_myself" = x; then
43870     as_myself=$0
43871   fi
43872   if test ! -f "$as_myself"; then
43873     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43874 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43875    { (exit 1); exit 1; }; }
43876   fi
43877   case $CONFIG_SHELL in
43878   '')
43879     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43880 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43881 do
43882   IFS=$as_save_IFS
43883   test -z "$as_dir" && as_dir=.
43884   for as_base in sh bash ksh sh5; do
43885          case $as_dir in
43886          /*)
43887            if ("$as_dir/$as_base" -c '
43888   as_lineno_1=$LINENO
43889   as_lineno_2=$LINENO
43890   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43891   test "x$as_lineno_1" != "x$as_lineno_2" &&
43892   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
43893              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43894              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43895              CONFIG_SHELL=$as_dir/$as_base
43896              export CONFIG_SHELL
43897              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43898            fi;;
43899          esac
43900        done
43901 done
43902 ;;
43903   esac
43904
43905   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43906   # uniformly replaced by the line number.  The first 'sed' inserts a
43907   # line-number line before each line; the second 'sed' does the real
43908   # work.  The second script uses 'N' to pair each line-number line
43909   # with the numbered line, and appends trailing '-' during
43910   # substitution so that $LINENO is not a special case at line end.
43911   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43912   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
43913   sed '=' <$as_myself |
43914     sed '
43915       N
43916       s,$,-,
43917       : loop
43918       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43919       t loop
43920       s,-$,,
43921       s,^['$as_cr_digits']*\n,,
43922     ' >$as_me.lineno &&
43923   chmod +x $as_me.lineno ||
43924     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43925 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43926    { (exit 1); exit 1; }; }
43927
43928   # Don't try to exec as it changes $[0], causing all sort of problems
43929   # (the dirname of $[0] is not the place where we might find the
43930   # original and so on.  Autoconf is especially sensible to this).
43931   . ./$as_me.lineno
43932   # Exit status is that of the last command.
43933   exit
43934 }
43935
43936
43937 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43938   *c*,-n*) ECHO_N= ECHO_C='
43939 ' ECHO_T='      ' ;;
43940   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43941   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
43942 esac
43943
43944 if expr a : '\(a\)' >/dev/null 2>&1; then
43945   as_expr=expr
43946 else
43947   as_expr=false
43948 fi
43949
43950 rm -f conf$$ conf$$.exe conf$$.file
43951 echo >conf$$.file
43952 if ln -s conf$$.file conf$$ 2>/dev/null; then
43953   # We could just check for DJGPP; but this test a) works b) is more generic
43954   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43955   if test -f conf$$.exe; then
43956     # Don't use ln at all; we don't have any links
43957     as_ln_s='cp -p'
43958   else
43959     as_ln_s='ln -s'
43960   fi
43961 elif ln conf$$.file conf$$ 2>/dev/null; then
43962   as_ln_s=ln
43963 else
43964   as_ln_s='cp -p'
43965 fi
43966 rm -f conf$$ conf$$.exe conf$$.file
43967
43968 if mkdir -p . 2>/dev/null; then
43969   as_mkdir_p=:
43970 else
43971   test -d ./-p && rmdir ./-p
43972   as_mkdir_p=false
43973 fi
43974
43975 as_executable_p="test -f"
43976
43977 # Sed expression to map a string onto a valid CPP name.
43978 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43979
43980 # Sed expression to map a string onto a valid variable name.
43981 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43982
43983
43984 # IFS
43985 # We need space, tab and new line, in precisely that order.
43986 as_nl='
43987 '
43988 IFS="   $as_nl"
43989
43990 # CDPATH.
43991 $as_unset CDPATH
43992
43993 exec 6>&1
43994
43995 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43996 # report actual input values of CONFIG_FILES etc. instead of their
43997 # values after options handling.  Logging --version etc. is OK.
43998 exec 5>>config.log
43999 {
44000   echo
44001   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44002 ## Running $as_me. ##
44003 _ASBOX
44004 } >&5
44005 cat >&5 <<_CSEOF
44006
44007 This file was extended by wxWidgets $as_me 2.5.5, which was
44008 generated by GNU Autoconf 2.59.  Invocation command line was
44009
44010   CONFIG_FILES    = $CONFIG_FILES
44011   CONFIG_HEADERS  = $CONFIG_HEADERS
44012   CONFIG_LINKS    = $CONFIG_LINKS
44013   CONFIG_COMMANDS = $CONFIG_COMMANDS
44014   $ $0 $@
44015
44016 _CSEOF
44017 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44018 echo >&5
44019 _ACEOF
44020
44021 # Files that config.status was made for.
44022 if test -n "$ac_config_files"; then
44023   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44024 fi
44025
44026 if test -n "$ac_config_headers"; then
44027   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44028 fi
44029
44030 if test -n "$ac_config_links"; then
44031   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44032 fi
44033
44034 if test -n "$ac_config_commands"; then
44035   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44036 fi
44037
44038 cat >>$CONFIG_STATUS <<\_ACEOF
44039
44040 ac_cs_usage="\
44041 \`$as_me' instantiates files from templates according to the
44042 current configuration.
44043
44044 Usage: $0 [OPTIONS] [FILE]...
44045
44046   -h, --help       print this help, then exit
44047   -V, --version    print version number, then exit
44048   -q, --quiet      do not print progress messages
44049   -d, --debug      don't remove temporary files
44050       --recheck    update $as_me by reconfiguring in the same conditions
44051   --file=FILE[:TEMPLATE]
44052                    instantiate the configuration file FILE
44053   --header=FILE[:TEMPLATE]
44054                    instantiate the configuration header FILE
44055
44056 Configuration files:
44057 $config_files
44058
44059 Configuration headers:
44060 $config_headers
44061
44062 Configuration commands:
44063 $config_commands
44064
44065 Report bugs to <bug-autoconf@gnu.org>."
44066 _ACEOF
44067
44068 cat >>$CONFIG_STATUS <<_ACEOF
44069 ac_cs_version="\\
44070 wxWidgets config.status 2.5.5
44071 configured by $0, generated by GNU Autoconf 2.59,
44072   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44073
44074 Copyright (C) 2003 Free Software Foundation, Inc.
44075 This config.status script is free software; the Free Software Foundation
44076 gives unlimited permission to copy, distribute and modify it."
44077 srcdir=$srcdir
44078 INSTALL="$INSTALL"
44079 _ACEOF
44080
44081 cat >>$CONFIG_STATUS <<\_ACEOF
44082 # If no file are specified by the user, then we need to provide default
44083 # value.  By we need to know if files were specified by the user.
44084 ac_need_defaults=:
44085 while test $# != 0
44086 do
44087   case $1 in
44088   --*=*)
44089     ac_option=`expr "x$1" : 'x\([^=]*\)='`
44090     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44091     ac_shift=:
44092     ;;
44093   -*)
44094     ac_option=$1
44095     ac_optarg=$2
44096     ac_shift=shift
44097     ;;
44098   *) # This is not an option, so the user has probably given explicit
44099      # arguments.
44100      ac_option=$1
44101      ac_need_defaults=false;;
44102   esac
44103
44104   case $ac_option in
44105   # Handling of the options.
44106 _ACEOF
44107 cat >>$CONFIG_STATUS <<\_ACEOF
44108   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44109     ac_cs_recheck=: ;;
44110   --version | --vers* | -V )
44111     echo "$ac_cs_version"; exit 0 ;;
44112   --he | --h)
44113     # Conflict between --help and --header
44114     { { echo "$as_me:$LINENO: error: ambiguous option: $1
44115 Try \`$0 --help' for more information." >&5
44116 echo "$as_me: error: ambiguous option: $1
44117 Try \`$0 --help' for more information." >&2;}
44118    { (exit 1); exit 1; }; };;
44119   --help | --hel | -h )
44120     echo "$ac_cs_usage"; exit 0 ;;
44121   --debug | --d* | -d )
44122     debug=: ;;
44123   --file | --fil | --fi | --f )
44124     $ac_shift
44125     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44126     ac_need_defaults=false;;
44127   --header | --heade | --head | --hea )
44128     $ac_shift
44129     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44130     ac_need_defaults=false;;
44131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44132   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44133     ac_cs_silent=: ;;
44134
44135   # This is an error.
44136   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44137 Try \`$0 --help' for more information." >&5
44138 echo "$as_me: error: unrecognized option: $1
44139 Try \`$0 --help' for more information." >&2;}
44140    { (exit 1); exit 1; }; } ;;
44141
44142   *) ac_config_targets="$ac_config_targets $1" ;;
44143
44144   esac
44145   shift
44146 done
44147
44148 ac_configure_extra_args=
44149
44150 if $ac_cs_silent; then
44151   exec 6>/dev/null
44152   ac_configure_extra_args="$ac_configure_extra_args --silent"
44153 fi
44154
44155 _ACEOF
44156 cat >>$CONFIG_STATUS <<_ACEOF
44157 if \$ac_cs_recheck; then
44158   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44159   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44160 fi
44161
44162 _ACEOF
44163
44164 cat >>$CONFIG_STATUS <<_ACEOF
44165 #
44166 # INIT-COMMANDS section.
44167 #
44168
44169  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44170  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44171  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44172                      LN_S="${LN_S}"
44173
44174
44175 _ACEOF
44176
44177
44178
44179 cat >>$CONFIG_STATUS <<\_ACEOF
44180 for ac_config_target in $ac_config_targets
44181 do
44182   case "$ac_config_target" in
44183   # Handling of arguments.
44184   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44185   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
44186   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44187   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44188   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
44189   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44190   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
44191   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44192 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44193    { (exit 1); exit 1; }; };;
44194   esac
44195 done
44196
44197 # If the user did not use the arguments to specify the items to instantiate,
44198 # then the envvar interface is used.  Set only those that are not.
44199 # We use the long form for the default assignment because of an extremely
44200 # bizarre bug on SunOS 4.1.3.
44201 if $ac_need_defaults; then
44202   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44203   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44204   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44205 fi
44206
44207 # Have a temporary directory for convenience.  Make it in the build tree
44208 # simply because there is no reason to put it here, and in addition,
44209 # creating and moving files from /tmp can sometimes cause problems.
44210 # Create a temporary directory, and hook for its removal unless debugging.
44211 $debug ||
44212 {
44213   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44214   trap '{ (exit 1); exit 1; }' 1 2 13 15
44215 }
44216
44217 # Create a (secure) tmp directory for tmp files.
44218
44219 {
44220   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44221   test -n "$tmp" && test -d "$tmp"
44222 }  ||
44223 {
44224   tmp=./confstat$$-$RANDOM
44225   (umask 077 && mkdir $tmp)
44226 } ||
44227 {
44228    echo "$me: cannot create a temporary directory in ." >&2
44229    { (exit 1); exit 1; }
44230 }
44231
44232 _ACEOF
44233
44234 cat >>$CONFIG_STATUS <<_ACEOF
44235
44236 #
44237 # CONFIG_FILES section.
44238 #
44239
44240 # No need to generate the scripts if there are no CONFIG_FILES.
44241 # This happens for instance when ./config.status config.h
44242 if test -n "\$CONFIG_FILES"; then
44243   # Protect against being on the right side of a sed subst in config.status.
44244   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44245    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44246 s,@SHELL@,$SHELL,;t t
44247 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44248 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44249 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44250 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44251 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44252 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44253 s,@exec_prefix@,$exec_prefix,;t t
44254 s,@prefix@,$prefix,;t t
44255 s,@program_transform_name@,$program_transform_name,;t t
44256 s,@bindir@,$bindir,;t t
44257 s,@sbindir@,$sbindir,;t t
44258 s,@libexecdir@,$libexecdir,;t t
44259 s,@datadir@,$datadir,;t t
44260 s,@sysconfdir@,$sysconfdir,;t t
44261 s,@sharedstatedir@,$sharedstatedir,;t t
44262 s,@localstatedir@,$localstatedir,;t t
44263 s,@libdir@,$libdir,;t t
44264 s,@includedir@,$includedir,;t t
44265 s,@oldincludedir@,$oldincludedir,;t t
44266 s,@infodir@,$infodir,;t t
44267 s,@mandir@,$mandir,;t t
44268 s,@build_alias@,$build_alias,;t t
44269 s,@host_alias@,$host_alias,;t t
44270 s,@target_alias@,$target_alias,;t t
44271 s,@DEFS@,$DEFS,;t t
44272 s,@ECHO_C@,$ECHO_C,;t t
44273 s,@ECHO_N@,$ECHO_N,;t t
44274 s,@ECHO_T@,$ECHO_T,;t t
44275 s,@LIBS@,$LIBS,;t t
44276 s,@build@,$build,;t t
44277 s,@build_cpu@,$build_cpu,;t t
44278 s,@build_vendor@,$build_vendor,;t t
44279 s,@build_os@,$build_os,;t t
44280 s,@host@,$host,;t t
44281 s,@host_cpu@,$host_cpu,;t t
44282 s,@host_vendor@,$host_vendor,;t t
44283 s,@host_os@,$host_os,;t t
44284 s,@target@,$target,;t t
44285 s,@target_cpu@,$target_cpu,;t t
44286 s,@target_vendor@,$target_vendor,;t t
44287 s,@target_os@,$target_os,;t t
44288 s,@CC@,$CC,;t t
44289 s,@CFLAGS@,$CFLAGS,;t t
44290 s,@LDFLAGS@,$LDFLAGS,;t t
44291 s,@CPPFLAGS@,$CPPFLAGS,;t t
44292 s,@ac_ct_CC@,$ac_ct_CC,;t t
44293 s,@EXEEXT@,$EXEEXT,;t t
44294 s,@OBJEXT@,$OBJEXT,;t t
44295 s,@CPP@,$CPP,;t t
44296 s,@EGREP@,$EGREP,;t t
44297 s,@CXX@,$CXX,;t t
44298 s,@CXXFLAGS@,$CXXFLAGS,;t t
44299 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44300 s,@RANLIB@,$RANLIB,;t t
44301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44302 s,@AR@,$AR,;t t
44303 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44304 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44305 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44306 s,@STRIP@,$STRIP,;t t
44307 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44308 s,@LN_S@,$LN_S,;t t
44309 s,@CXXCPP@,$CXXCPP,;t t
44310 s,@subdirs@,$subdirs,;t t
44311 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44312 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44313 s,@GTK_LIBS@,$GTK_LIBS,;t t
44314 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
44315 s,@X_CFLAGS@,$X_CFLAGS,;t t
44316 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44317 s,@X_LIBS@,$X_LIBS,;t t
44318 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44319 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44320 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
44321 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44322 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
44323 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44324 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44325 s,@RESCOMP@,$RESCOMP,;t t
44326 s,@DEREZ@,$DEREZ,;t t
44327 s,@SETFILE@,$SETFILE,;t t
44328 s,@LIBICONV@,$LIBICONV,;t t
44329 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44330 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44331 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44332 s,@SDL_LIBS@,$SDL_LIBS,;t t
44333 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44334 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
44335 s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44336 s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44337 s,@GST_INSPECT@,$GST_INSPECT,;t t
44338 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44339 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44340 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44341 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44342 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44343 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44344 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44345 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44346 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44347 s,@VENDOR@,$VENDOR,;t t
44348 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
44349 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44350 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
44351 s,@WXUNIV@,$WXUNIV,;t t
44352 s,@MONOLITHIC@,$MONOLITHIC,;t t
44353 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44354 s,@EXTRALIBS@,$EXTRALIBS,;t t
44355 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44356 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44357 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44358 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44359 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44360 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44361 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
44362 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
44363 s,@UNICODE@,$UNICODE,;t t
44364 s,@BUILD@,$BUILD,;t t
44365 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44366 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
44367 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44368 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44369 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44370 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44371 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44372 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44373 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44374 s,@SET_MAKE@,$SET_MAKE,;t t
44375 s,@MAKE_SET@,$MAKE_SET,;t t
44376 s,@ac_ct_AR@,$ac_ct_AR,;t t
44377 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44378 s,@NM@,$NM,;t t
44379 s,@ac_ct_NM@,$ac_ct_NM,;t t
44380 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44381 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44382 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44383 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44384 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44385 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
44386 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
44387 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44388 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
44389 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
44390 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44391 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44392 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44393 s,@LIBPREFIX@,$LIBPREFIX,;t t
44394 s,@LIBEXT@,$LIBEXT,;t t
44395 s,@DLLPREFIX@,$DLLPREFIX,;t t
44396 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44397 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44398 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44399 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44400 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44401 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44402 s,@PIC_FLAG@,$PIC_FLAG,;t t
44403 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44404 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44405 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44406 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44407 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44408 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44409 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44410 s,@GCC_PCH@,$GCC_PCH,;t t
44411 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44412 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44413 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44414 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44415 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44416 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44417 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44418 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44419 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44420 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44421 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44422 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44423 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44424 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44425 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44426 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44427 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44428 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
44429 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
44430 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
44431 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
44432 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
44433 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
44434 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44435 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
44436 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
44437 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
44438 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
44439 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
44440 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
44441 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44442 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44443 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44444 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44445 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44446 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44447 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44448 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
44449 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
44450 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44451 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44452 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
44453 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
44454 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
44455 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44456 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
44457 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44458 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
44459 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
44460 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44461 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44462 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44463 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44464 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44465 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44466 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44467 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44468 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
44469 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44470 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44471 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
44472 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44473 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44474 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44475 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44476 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44477 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44478 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44479 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44480 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44481 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
44482 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
44483 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
44484 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
44485 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44486 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44487 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44488 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44489 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44490 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44491 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44492 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44493 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44494 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44495 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44496 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44497 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44498 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44499 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44500 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44501 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44502 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
44503 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44504 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44505 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
44506 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44507 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44508 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44509 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44510 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44511 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44512 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44513 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44514 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44515 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44516 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44517 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44518 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
44519 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
44520 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
44521 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44522 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
44523 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44524 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44525 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44526 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
44527 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44528 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
44529 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
44530 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
44531 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
44532 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44533 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44534 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44535 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44536 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44537 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44538 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44539 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
44540 s,@SHARED@,$SHARED,;t t
44541 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44542 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
44543 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44544 s,@USE_GUI@,$USE_GUI,;t t
44545 s,@AFMINSTALL@,$AFMINSTALL,;t t
44546 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44547 s,@TOOLKIT@,$TOOLKIT,;t t
44548 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
44549 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
44550 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
44551 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44552 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
44553 s,@cross_compiling@,$cross_compiling,;t t
44554 s,@WIDGET_SET@,$WIDGET_SET,;t t
44555 s,@WX_RELEASE@,$WX_RELEASE,;t t
44556 s,@WX_VERSION@,$WX_VERSION,;t t
44557 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44558 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44559 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
44560 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
44561 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44562 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44563 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44564 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
44565 s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
44566 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44567 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
44568 s,@EXE_LINKER@,$EXE_LINKER,;t t
44569 s,@GUIDIST@,$GUIDIST,;t t
44570 s,@DISTDIR@,$DISTDIR,;t t
44571 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44572 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
44573 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44574 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44575 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44576 s,@RESFLAGS@,$RESFLAGS,;t t
44577 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44578 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44579 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44580 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44581 s,@MACRESCOMP@,$MACRESCOMP,;t t
44582 s,@MACSETFILE@,$MACSETFILE,;t t
44583 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44584 s,@GCC@,$GCC,;t t
44585 s,@DLLTOOL@,$DLLTOOL,;t t
44586 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44587 s,@LIBOBJS@,$LIBOBJS,;t t
44588 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44589 CEOF
44590
44591 _ACEOF
44592
44593   cat >>$CONFIG_STATUS <<\_ACEOF
44594   # Split the substitutions into bite-sized pieces for seds with
44595   # small command number limits, like on Digital OSF/1 and HP-UX.
44596   ac_max_sed_lines=48
44597   ac_sed_frag=1 # Number of current file.
44598   ac_beg=1 # First line for current file.
44599   ac_end=$ac_max_sed_lines # Line after last line for current file.
44600   ac_more_lines=:
44601   ac_sed_cmds=
44602   while $ac_more_lines; do
44603     if test $ac_beg -gt 1; then
44604       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44605     else
44606       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44607     fi
44608     if test ! -s $tmp/subs.frag; then
44609       ac_more_lines=false
44610     else
44611       # The purpose of the label and of the branching condition is to
44612       # speed up the sed processing (if there are no `@' at all, there
44613       # is no need to browse any of the substitutions).
44614       # These are the two extra sed commands mentioned above.
44615       (echo ':t
44616   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44617       if test -z "$ac_sed_cmds"; then
44618         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
44619       else
44620         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
44621       fi
44622       ac_sed_frag=`expr $ac_sed_frag + 1`
44623       ac_beg=$ac_end
44624       ac_end=`expr $ac_end + $ac_max_sed_lines`
44625     fi
44626   done
44627   if test -z "$ac_sed_cmds"; then
44628     ac_sed_cmds=cat
44629   fi
44630 fi # test -n "$CONFIG_FILES"
44631
44632 _ACEOF
44633 cat >>$CONFIG_STATUS <<\_ACEOF
44634 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44635   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44636   case $ac_file in
44637   - | *:- | *:-:* ) # input from stdin
44638         cat >$tmp/stdin
44639         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44640         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44641   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44642         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44643   * )   ac_file_in=$ac_file.in ;;
44644   esac
44645
44646   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44647   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44649          X"$ac_file" : 'X\(//\)[^/]' \| \
44650          X"$ac_file" : 'X\(//\)$' \| \
44651          X"$ac_file" : 'X\(/\)' \| \
44652          .     : '\(.\)' 2>/dev/null ||
44653 echo X"$ac_file" |
44654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44655           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44656           /^X\(\/\/\)$/{ s//\1/; q; }
44657           /^X\(\/\).*/{ s//\1/; q; }
44658           s/.*/./; q'`
44659   { if $as_mkdir_p; then
44660     mkdir -p "$ac_dir"
44661   else
44662     as_dir="$ac_dir"
44663     as_dirs=
44664     while test ! -d "$as_dir"; do
44665       as_dirs="$as_dir $as_dirs"
44666       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44668          X"$as_dir" : 'X\(//\)[^/]' \| \
44669          X"$as_dir" : 'X\(//\)$' \| \
44670          X"$as_dir" : 'X\(/\)' \| \
44671          .     : '\(.\)' 2>/dev/null ||
44672 echo X"$as_dir" |
44673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44674           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44675           /^X\(\/\/\)$/{ s//\1/; q; }
44676           /^X\(\/\).*/{ s//\1/; q; }
44677           s/.*/./; q'`
44678     done
44679     test ! -n "$as_dirs" || mkdir $as_dirs
44680   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44681 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44682    { (exit 1); exit 1; }; }; }
44683
44684   ac_builddir=.
44685
44686 if test "$ac_dir" != .; then
44687   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44688   # A "../" for each directory in $ac_dir_suffix.
44689   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44690 else
44691   ac_dir_suffix= ac_top_builddir=
44692 fi
44693
44694 case $srcdir in
44695   .)  # No --srcdir option.  We are building in place.
44696     ac_srcdir=.
44697     if test -z "$ac_top_builddir"; then
44698        ac_top_srcdir=.
44699     else
44700        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44701     fi ;;
44702   [\\/]* | ?:[\\/]* )  # Absolute path.
44703     ac_srcdir=$srcdir$ac_dir_suffix;
44704     ac_top_srcdir=$srcdir ;;
44705   *) # Relative path.
44706     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44707     ac_top_srcdir=$ac_top_builddir$srcdir ;;
44708 esac
44709
44710 # Do not use `cd foo && pwd` to compute absolute paths, because
44711 # the directories may not exist.
44712 case `pwd` in
44713 .) ac_abs_builddir="$ac_dir";;
44714 *)
44715   case "$ac_dir" in
44716   .) ac_abs_builddir=`pwd`;;
44717   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44718   *) ac_abs_builddir=`pwd`/"$ac_dir";;
44719   esac;;
44720 esac
44721 case $ac_abs_builddir in
44722 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44723 *)
44724   case ${ac_top_builddir}. in
44725   .) ac_abs_top_builddir=$ac_abs_builddir;;
44726   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44727   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44728   esac;;
44729 esac
44730 case $ac_abs_builddir in
44731 .) ac_abs_srcdir=$ac_srcdir;;
44732 *)
44733   case $ac_srcdir in
44734   .) ac_abs_srcdir=$ac_abs_builddir;;
44735   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44736   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44737   esac;;
44738 esac
44739 case $ac_abs_builddir in
44740 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44741 *)
44742   case $ac_top_srcdir in
44743   .) ac_abs_top_srcdir=$ac_abs_builddir;;
44744   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44745   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44746   esac;;
44747 esac
44748
44749
44750   case $INSTALL in
44751   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44752   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44753   esac
44754
44755   # Let's still pretend it is `configure' which instantiates (i.e., don't
44756   # use $as_me), people would be surprised to read:
44757   #    /* config.h.  Generated by config.status.  */
44758   if test x"$ac_file" = x-; then
44759     configure_input=
44760   else
44761     configure_input="$ac_file.  "
44762   fi
44763   configure_input=$configure_input"Generated from `echo $ac_file_in |
44764                                      sed 's,.*/,,'` by configure."
44765
44766   # First look for the input files in the build tree, otherwise in the
44767   # src tree.
44768   ac_file_inputs=`IFS=:
44769     for f in $ac_file_in; do
44770       case $f in
44771       -) echo $tmp/stdin ;;
44772       [\\/$]*)
44773          # Absolute (can't be DOS-style, as IFS=:)
44774          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44775 echo "$as_me: error: cannot find input file: $f" >&2;}
44776    { (exit 1); exit 1; }; }
44777          echo "$f";;
44778       *) # Relative
44779          if test -f "$f"; then
44780            # Build tree
44781            echo "$f"
44782          elif test -f "$srcdir/$f"; then
44783            # Source tree
44784            echo "$srcdir/$f"
44785          else
44786            # /dev/null tree
44787            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44788 echo "$as_me: error: cannot find input file: $f" >&2;}
44789    { (exit 1); exit 1; }; }
44790          fi;;
44791       esac
44792     done` || { (exit 1); exit 1; }
44793
44794   if test x"$ac_file" != x-; then
44795     { echo "$as_me:$LINENO: creating $ac_file" >&5
44796 echo "$as_me: creating $ac_file" >&6;}
44797     rm -f "$ac_file"
44798   fi
44799 _ACEOF
44800 cat >>$CONFIG_STATUS <<_ACEOF
44801   sed "$ac_vpsub
44802 $extrasub
44803 _ACEOF
44804 cat >>$CONFIG_STATUS <<\_ACEOF
44805 :t
44806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44807 s,@configure_input@,$configure_input,;t t
44808 s,@srcdir@,$ac_srcdir,;t t
44809 s,@abs_srcdir@,$ac_abs_srcdir,;t t
44810 s,@top_srcdir@,$ac_top_srcdir,;t t
44811 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44812 s,@builddir@,$ac_builddir,;t t
44813 s,@abs_builddir@,$ac_abs_builddir,;t t
44814 s,@top_builddir@,$ac_top_builddir,;t t
44815 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44816 s,@INSTALL@,$ac_INSTALL,;t t
44817 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44818   rm -f $tmp/stdin
44819   if test x"$ac_file" != x-; then
44820     mv $tmp/out $ac_file
44821   else
44822     cat $tmp/out
44823     rm -f $tmp/out
44824   fi
44825
44826   # Run the commands associated with the file.
44827   case $ac_file in
44828     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
44829     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
44830   esac
44831 done
44832 _ACEOF
44833 cat >>$CONFIG_STATUS <<\_ACEOF
44834
44835 #
44836 # CONFIG_HEADER section.
44837 #
44838
44839 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44840 # NAME is the cpp macro being defined and VALUE is the value it is being given.
44841 #
44842 # ac_d sets the value in "#define NAME VALUE" lines.
44843 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
44844 ac_dB='[         ].*$,\1#\2'
44845 ac_dC=' '
44846 ac_dD=',;t'
44847 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
44848 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
44849 ac_uB='$,\1#\2define\3'
44850 ac_uC=' '
44851 ac_uD=',;t'
44852
44853 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44854   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44855   case $ac_file in
44856   - | *:- | *:-:* ) # input from stdin
44857         cat >$tmp/stdin
44858         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44859         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44860   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44861         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44862   * )   ac_file_in=$ac_file.in ;;
44863   esac
44864
44865   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44866 echo "$as_me: creating $ac_file" >&6;}
44867
44868   # First look for the input files in the build tree, otherwise in the
44869   # src tree.
44870   ac_file_inputs=`IFS=:
44871     for f in $ac_file_in; do
44872       case $f in
44873       -) echo $tmp/stdin ;;
44874       [\\/$]*)
44875          # Absolute (can't be DOS-style, as IFS=:)
44876          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44877 echo "$as_me: error: cannot find input file: $f" >&2;}
44878    { (exit 1); exit 1; }; }
44879          # Do quote $f, to prevent DOS paths from being IFS'd.
44880          echo "$f";;
44881       *) # Relative
44882          if test -f "$f"; then
44883            # Build tree
44884            echo "$f"
44885          elif test -f "$srcdir/$f"; then
44886            # Source tree
44887            echo "$srcdir/$f"
44888          else
44889            # /dev/null tree
44890            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44891 echo "$as_me: error: cannot find input file: $f" >&2;}
44892    { (exit 1); exit 1; }; }
44893          fi;;
44894       esac
44895     done` || { (exit 1); exit 1; }
44896   # Remove the trailing spaces.
44897   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
44898
44899 _ACEOF
44900
44901 # Transform confdefs.h into two sed scripts, `conftest.defines' and
44902 # `conftest.undefs', that substitutes the proper values into
44903 # config.h.in to produce config.h.  The first handles `#define'
44904 # templates, and the second `#undef' templates.
44905 # And first: Protect against being on the right side of a sed subst in
44906 # config.status.  Protect against being in an unquoted here document
44907 # in config.status.
44908 rm -f conftest.defines conftest.undefs
44909 # Using a here document instead of a string reduces the quoting nightmare.
44910 # Putting comments in sed scripts is not portable.
44911 #
44912 # `end' is used to avoid that the second main sed command (meant for
44913 # 0-ary CPP macros) applies to n-ary macro definitions.
44914 # See the Autoconf documentation for `clear'.
44915 cat >confdef2sed.sed <<\_ACEOF
44916 s/[\\&,]/\\&/g
44917 s,[\\$`],\\&,g
44918 t clear
44919 : clear
44920 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
44921 t end
44922 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
44923 : end
44924 _ACEOF
44925 # If some macros were called several times there might be several times
44926 # the same #defines, which is useless.  Nevertheless, we may not want to
44927 # sort them, since we want the *last* AC-DEFINE to be honored.
44928 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44929 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44930 rm -f confdef2sed.sed
44931
44932 # This sed command replaces #undef with comments.  This is necessary, for
44933 # example, in the case of _POSIX_SOURCE, which is predefined and required
44934 # on some systems where configure will not decide to define it.
44935 cat >>conftest.undefs <<\_ACEOF
44936 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
44937 _ACEOF
44938
44939 # Break up conftest.defines because some shells have a limit on the size
44940 # of here documents, and old seds have small limits too (100 cmds).
44941 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
44942 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
44943 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44944 echo '  :' >>$CONFIG_STATUS
44945 rm -f conftest.tail
44946 while grep . conftest.defines >/dev/null
44947 do
44948   # Write a limited-size here document to $tmp/defines.sed.
44949   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44950   # Speed up: don't consider the non `#define' lines.
44951   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
44952   # Work around the forget-to-reset-the-flag bug.
44953   echo 't clr' >>$CONFIG_STATUS
44954   echo ': clr' >>$CONFIG_STATUS
44955   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44956   echo 'CEOF
44957   sed -f $tmp/defines.sed $tmp/in >$tmp/out
44958   rm -f $tmp/in
44959   mv $tmp/out $tmp/in
44960 ' >>$CONFIG_STATUS
44961   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44962   rm -f conftest.defines
44963   mv conftest.tail conftest.defines
44964 done
44965 rm -f conftest.defines
44966 echo '  fi # grep' >>$CONFIG_STATUS
44967 echo >>$CONFIG_STATUS
44968
44969 # Break up conftest.undefs because some shells have a limit on the size
44970 # of here documents, and old seds have small limits too (100 cmds).
44971 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
44972 rm -f conftest.tail
44973 while grep . conftest.undefs >/dev/null
44974 do
44975   # Write a limited-size here document to $tmp/undefs.sed.
44976   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44977   # Speed up: don't consider the non `#undef'
44978   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
44979   # Work around the forget-to-reset-the-flag bug.
44980   echo 't clr' >>$CONFIG_STATUS
44981   echo ': clr' >>$CONFIG_STATUS
44982   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44983   echo 'CEOF
44984   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44985   rm -f $tmp/in
44986   mv $tmp/out $tmp/in
44987 ' >>$CONFIG_STATUS
44988   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44989   rm -f conftest.undefs
44990   mv conftest.tail conftest.undefs
44991 done
44992 rm -f conftest.undefs
44993
44994 cat >>$CONFIG_STATUS <<\_ACEOF
44995   # Let's still pretend it is `configure' which instantiates (i.e., don't
44996   # use $as_me), people would be surprised to read:
44997   #    /* config.h.  Generated by config.status.  */
44998   if test x"$ac_file" = x-; then
44999     echo "/* Generated by configure.  */" >$tmp/config.h
45000   else
45001     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
45002   fi
45003   cat $tmp/in >>$tmp/config.h
45004   rm -f $tmp/in
45005   if test x"$ac_file" != x-; then
45006     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45007       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45008 echo "$as_me: $ac_file is unchanged" >&6;}
45009     else
45010       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45011 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45012          X"$ac_file" : 'X\(//\)[^/]' \| \
45013          X"$ac_file" : 'X\(//\)$' \| \
45014          X"$ac_file" : 'X\(/\)' \| \
45015          .     : '\(.\)' 2>/dev/null ||
45016 echo X"$ac_file" |
45017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45018           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45019           /^X\(\/\/\)$/{ s//\1/; q; }
45020           /^X\(\/\).*/{ s//\1/; q; }
45021           s/.*/./; q'`
45022       { if $as_mkdir_p; then
45023     mkdir -p "$ac_dir"
45024   else
45025     as_dir="$ac_dir"
45026     as_dirs=
45027     while test ! -d "$as_dir"; do
45028       as_dirs="$as_dir $as_dirs"
45029       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45031          X"$as_dir" : 'X\(//\)[^/]' \| \
45032          X"$as_dir" : 'X\(//\)$' \| \
45033          X"$as_dir" : 'X\(/\)' \| \
45034          .     : '\(.\)' 2>/dev/null ||
45035 echo X"$as_dir" |
45036     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45037           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45038           /^X\(\/\/\)$/{ s//\1/; q; }
45039           /^X\(\/\).*/{ s//\1/; q; }
45040           s/.*/./; q'`
45041     done
45042     test ! -n "$as_dirs" || mkdir $as_dirs
45043   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45044 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45045    { (exit 1); exit 1; }; }; }
45046
45047       rm -f $ac_file
45048       mv $tmp/config.h $ac_file
45049     fi
45050   else
45051     cat $tmp/config.h
45052     rm -f $tmp/config.h
45053   fi
45054 done
45055 _ACEOF
45056 cat >>$CONFIG_STATUS <<\_ACEOF
45057
45058 #
45059 # CONFIG_COMMANDS section.
45060 #
45061 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45062   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45063   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45064   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45065 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45066          X"$ac_dest" : 'X\(//\)[^/]' \| \
45067          X"$ac_dest" : 'X\(//\)$' \| \
45068          X"$ac_dest" : 'X\(/\)' \| \
45069          .     : '\(.\)' 2>/dev/null ||
45070 echo X"$ac_dest" |
45071     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45072           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45073           /^X\(\/\/\)$/{ s//\1/; q; }
45074           /^X\(\/\).*/{ s//\1/; q; }
45075           s/.*/./; q'`
45076   { if $as_mkdir_p; then
45077     mkdir -p "$ac_dir"
45078   else
45079     as_dir="$ac_dir"
45080     as_dirs=
45081     while test ! -d "$as_dir"; do
45082       as_dirs="$as_dir $as_dirs"
45083       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45085          X"$as_dir" : 'X\(//\)[^/]' \| \
45086          X"$as_dir" : 'X\(//\)$' \| \
45087          X"$as_dir" : 'X\(/\)' \| \
45088          .     : '\(.\)' 2>/dev/null ||
45089 echo X"$as_dir" |
45090     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45091           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45092           /^X\(\/\/\)$/{ s//\1/; q; }
45093           /^X\(\/\).*/{ s//\1/; q; }
45094           s/.*/./; q'`
45095     done
45096     test ! -n "$as_dirs" || mkdir $as_dirs
45097   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45098 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45099    { (exit 1); exit 1; }; }; }
45100
45101   ac_builddir=.
45102
45103 if test "$ac_dir" != .; then
45104   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45105   # A "../" for each directory in $ac_dir_suffix.
45106   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45107 else
45108   ac_dir_suffix= ac_top_builddir=
45109 fi
45110
45111 case $srcdir in
45112   .)  # No --srcdir option.  We are building in place.
45113     ac_srcdir=.
45114     if test -z "$ac_top_builddir"; then
45115        ac_top_srcdir=.
45116     else
45117        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45118     fi ;;
45119   [\\/]* | ?:[\\/]* )  # Absolute path.
45120     ac_srcdir=$srcdir$ac_dir_suffix;
45121     ac_top_srcdir=$srcdir ;;
45122   *) # Relative path.
45123     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45124     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45125 esac
45126
45127 # Do not use `cd foo && pwd` to compute absolute paths, because
45128 # the directories may not exist.
45129 case `pwd` in
45130 .) ac_abs_builddir="$ac_dir";;
45131 *)
45132   case "$ac_dir" in
45133   .) ac_abs_builddir=`pwd`;;
45134   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45135   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45136   esac;;
45137 esac
45138 case $ac_abs_builddir in
45139 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45140 *)
45141   case ${ac_top_builddir}. in
45142   .) ac_abs_top_builddir=$ac_abs_builddir;;
45143   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45144   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45145   esac;;
45146 esac
45147 case $ac_abs_builddir in
45148 .) ac_abs_srcdir=$ac_srcdir;;
45149 *)
45150   case $ac_srcdir in
45151   .) ac_abs_srcdir=$ac_abs_builddir;;
45152   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45153   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45154   esac;;
45155 esac
45156 case $ac_abs_builddir in
45157 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45158 *)
45159   case $ac_top_srcdir in
45160   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45161   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45162   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45163   esac;;
45164 esac
45165
45166
45167   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45168 echo "$as_me: executing $ac_dest commands" >&6;}
45169   case $ac_dest in
45170     wx-config )  rm -f wx-config
45171                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45172                     ;;
45173   esac
45174 done
45175 _ACEOF
45176
45177 cat >>$CONFIG_STATUS <<\_ACEOF
45178
45179 { (exit 0); exit 0; }
45180 _ACEOF
45181 chmod +x $CONFIG_STATUS
45182 ac_clean_files=$ac_clean_files_save
45183
45184
45185 # configure is writing to config.log, and then calls config.status.
45186 # config.status does its own redirection, appending to config.log.
45187 # Unfortunately, on DOS this fails, as config.log is still kept open
45188 # by configure, so config.status won't be able to write to it; its
45189 # output is simply discarded.  So we exec the FD to /dev/null,
45190 # effectively closing config.log, so it can be properly (re)opened and
45191 # appended to by config.status.  When coming back to configure, we
45192 # need to make the FD available again.
45193 if test "$no_create" != yes; then
45194   ac_cs_success=:
45195   ac_config_status_args=
45196   test "$silent" = yes &&
45197     ac_config_status_args="$ac_config_status_args --quiet"
45198   exec 5>/dev/null
45199   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45200   exec 5>>config.log
45201   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45202   # would make configure fail if this is the last instruction.
45203   $ac_cs_success || { (exit 1); exit 1; }
45204 fi
45205
45206 #
45207 # CONFIG_SUBDIRS section.
45208 #
45209 if test "$no_recursion" != yes; then
45210
45211   # Remove --cache-file and --srcdir arguments so they do not pile up.
45212   ac_sub_configure_args=
45213   ac_prev=
45214   for ac_arg in $ac_configure_args; do
45215     if test -n "$ac_prev"; then
45216       ac_prev=
45217       continue
45218     fi
45219     case $ac_arg in
45220     -cache-file | --cache-file | --cache-fil | --cache-fi \
45221     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45222       ac_prev=cache_file ;;
45223     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45224     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45225     | --c=*)
45226       ;;
45227     --config-cache | -C)
45228       ;;
45229     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45230       ac_prev=srcdir ;;
45231     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45232       ;;
45233     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45234       ac_prev=prefix ;;
45235     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45236       ;;
45237     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45238     esac
45239   done
45240
45241   # Always prepend --prefix to ensure using the same prefix
45242   # in subdir configurations.
45243   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45244
45245   ac_popdir=`pwd`
45246   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45247
45248     # Do not complain, so a configure script can configure whichever
45249     # parts of a large source tree are present.
45250     test -d $srcdir/$ac_dir || continue
45251
45252     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45253 echo "$as_me: configuring in $ac_dir" >&6;}
45254     { if $as_mkdir_p; then
45255     mkdir -p "$ac_dir"
45256   else
45257     as_dir="$ac_dir"
45258     as_dirs=
45259     while test ! -d "$as_dir"; do
45260       as_dirs="$as_dir $as_dirs"
45261       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45263          X"$as_dir" : 'X\(//\)[^/]' \| \
45264          X"$as_dir" : 'X\(//\)$' \| \
45265          X"$as_dir" : 'X\(/\)' \| \
45266          .     : '\(.\)' 2>/dev/null ||
45267 echo X"$as_dir" |
45268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45269           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45270           /^X\(\/\/\)$/{ s//\1/; q; }
45271           /^X\(\/\).*/{ s//\1/; q; }
45272           s/.*/./; q'`
45273     done
45274     test ! -n "$as_dirs" || mkdir $as_dirs
45275   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45276 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45277    { (exit 1); exit 1; }; }; }
45278
45279     ac_builddir=.
45280
45281 if test "$ac_dir" != .; then
45282   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45283   # A "../" for each directory in $ac_dir_suffix.
45284   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45285 else
45286   ac_dir_suffix= ac_top_builddir=
45287 fi
45288
45289 case $srcdir in
45290   .)  # No --srcdir option.  We are building in place.
45291     ac_srcdir=.
45292     if test -z "$ac_top_builddir"; then
45293        ac_top_srcdir=.
45294     else
45295        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45296     fi ;;
45297   [\\/]* | ?:[\\/]* )  # Absolute path.
45298     ac_srcdir=$srcdir$ac_dir_suffix;
45299     ac_top_srcdir=$srcdir ;;
45300   *) # Relative path.
45301     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45302     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45303 esac
45304
45305 # Do not use `cd foo && pwd` to compute absolute paths, because
45306 # the directories may not exist.
45307 case `pwd` in
45308 .) ac_abs_builddir="$ac_dir";;
45309 *)
45310   case "$ac_dir" in
45311   .) ac_abs_builddir=`pwd`;;
45312   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45313   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45314   esac;;
45315 esac
45316 case $ac_abs_builddir in
45317 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45318 *)
45319   case ${ac_top_builddir}. in
45320   .) ac_abs_top_builddir=$ac_abs_builddir;;
45321   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45322   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45323   esac;;
45324 esac
45325 case $ac_abs_builddir in
45326 .) ac_abs_srcdir=$ac_srcdir;;
45327 *)
45328   case $ac_srcdir in
45329   .) ac_abs_srcdir=$ac_abs_builddir;;
45330   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45331   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45332   esac;;
45333 esac
45334 case $ac_abs_builddir in
45335 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45336 *)
45337   case $ac_top_srcdir in
45338   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45339   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45340   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45341   esac;;
45342 esac
45343
45344
45345     cd $ac_dir
45346
45347     # Check for guested configure; otherwise get Cygnus style configure.
45348     if test -f $ac_srcdir/configure.gnu; then
45349       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45350     elif test -f $ac_srcdir/configure; then
45351       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45352     elif test -f $ac_srcdir/configure.in; then
45353       ac_sub_configure=$ac_configure
45354     else
45355       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45356 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45357       ac_sub_configure=
45358     fi
45359
45360     # The recursion is here.
45361     if test -n "$ac_sub_configure"; then
45362       # Make the cache file name correct relative to the subdirectory.
45363       case $cache_file in
45364       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45365       *) # Relative path.
45366         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
45367       esac
45368
45369       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45370 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45371       # The eval makes quoting arguments work.
45372       eval $ac_sub_configure $ac_sub_configure_args \
45373            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45374         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
45375 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45376    { (exit 1); exit 1; }; }
45377     fi
45378
45379     cd "$ac_popdir"
45380   done
45381 fi
45382
45383
45384 echo
45385 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
45386 echo ""
45387 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_USER:-base only}"
45388 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
45389
45390 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
45391 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
45392 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
45393
45394 echo "  What level of wxWidgets compatibility should be enabled?"
45395 echo "                                       wxWidgets 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
45396 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
45397
45398 echo "  Which libraries should wxWidgets use?"
45399 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
45400 echo "                                       png                ${wxUSE_LIBPNG-none}"
45401 echo "                                       regex              ${wxUSE_REGEX}"
45402 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
45403 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45404 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
45405 fi
45406 echo "                                       zlib               ${wxUSE_ZLIB}"
45407 echo "                                       odbc               ${wxUSE_ODBC}"
45408 echo "                                       expat              ${wxUSE_EXPAT}"
45409 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
45410 echo "                                       sdl                ${wxUSE_LIBSDL}"
45411 echo "                                       gnomeprint         ${wxUSE_LIBGNOMEPRINT-none}"
45412
45413 echo ""
45414