Fix Seeking to end of wxStreamInputStream (patch [ 1178834 ] string stream bad m_len...
[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-validators     use wxValidator and derived classes
1029   --enable-busyinfo       use wxBusyInfo
1030   --enable-joystick       use wxJoystick
1031   --enable-metafiles      use wxMetaFile (Windows only)
1032   --enable-dragimage      use wxDragImage
1033   --enable-accessibility  enable accessibility support
1034   --enable-palette        use wxPalette class
1035   --enable-image          use wxImage class
1036   --enable-gif            use gif images (GIF file format)
1037   --enable-pcx            use pcx images (PCX file format)
1038   --enable-iff            use iff images (IFF file format)
1039   --enable-pnm            use pnm images (PNM file format)
1040   --enable-xpm            use xpm images (XPM file format)
1041   --enable-icocur         use Windows ICO and CUR formats
1042   --enable-official_build official build of wxWidgets (win32 DLL only)
1043   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1044   --disable-largefile     omit support for large files
1045   --disable-gtktest       do not try to compile and run a test GTK+ program
1046   --disable-gtktest       Do not try to compile and run a test GTK program
1047   --disable-sdltest       Do not try to compile and run a test SDL program
1048   --enable-omf            use OMF object format (OS/2)
1049   --disable-precomp-headers
1050                           don't use precompiled headers even if compiler can
1051
1052 Optional Packages:
1053   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1054   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1055   --with-gtk              use GTK+
1056   --with-motif            use Motif/Lesstif
1057   --with-mac              use Mac OS X
1058   --with-cocoa            use Cocoa
1059   --with-wine             use Wine
1060   --with-msw              use MS-Windows
1061   --with-pm               use OS/2 Presentation Manager
1062   --with-mgl              use SciTech MGL
1063   --with-microwin         use MicroWindows
1064   --with-x11              use X11
1065   --with-libpng           use libpng (PNG image format)
1066   --with-libjpeg          use libjpeg (JPEG file format)
1067   --with-libtiff          use libtiff (TIFF file format)
1068   --with-libxpm           use libxpm (XPM file format)
1069   --with-libmspack        use libmspack (CHM help files loading)
1070   --with-sdl              use SDL for audio on Unix
1071   --with-gnomeprint       use GNOME print for printing under Unix
1072   --with-opengl           use OpenGL (or Mesa)
1073   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1074   --with-regex            enable support for wxRegEx class
1075   --with-zlib             use zlib for LZW compression
1076   --with-odbc             use the IODBC and wxODBC classes
1077   --with-expat            enable XML support using expat parser
1078   --with-flavour=NAME     specify a name to identify this build
1079   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1080   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1081   --with-x                use the X Window System
1082   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1083   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1084   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1085   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1086   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1087
1088 Some influential environment variables:
1089   CC          C compiler command
1090   CFLAGS      C compiler flags
1091   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1092               nonstandard directory <lib dir>
1093   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1094               headers in a nonstandard directory <include dir>
1095   CPP         C preprocessor
1096   CXX         C++ compiler command
1097   CXXFLAGS    C++ compiler flags
1098   CXXCPP      C++ preprocessor
1099
1100 Use these variables to override the choices made by `configure' or to help
1101 it to find libraries and programs with nonstandard names/locations.
1102
1103 Report bugs to <wx-dev@lists.wxwidgets.org>.
1104 _ACEOF
1105 fi
1106
1107 if test "$ac_init_help" = "recursive"; then
1108   # If there are subdirs, report their specific --help.
1109   ac_popdir=`pwd`
1110   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1111     test -d $ac_dir || continue
1112     ac_builddir=.
1113
1114 if test "$ac_dir" != .; then
1115   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1116   # A "../" for each directory in $ac_dir_suffix.
1117   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1118 else
1119   ac_dir_suffix= ac_top_builddir=
1120 fi
1121
1122 case $srcdir in
1123   .)  # No --srcdir option.  We are building in place.
1124     ac_srcdir=.
1125     if test -z "$ac_top_builddir"; then
1126        ac_top_srcdir=.
1127     else
1128        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1129     fi ;;
1130   [\\/]* | ?:[\\/]* )  # Absolute path.
1131     ac_srcdir=$srcdir$ac_dir_suffix;
1132     ac_top_srcdir=$srcdir ;;
1133   *) # Relative path.
1134     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1135     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1136 esac
1137
1138 # Do not use `cd foo && pwd` to compute absolute paths, because
1139 # the directories may not exist.
1140 case `pwd` in
1141 .) ac_abs_builddir="$ac_dir";;
1142 *)
1143   case "$ac_dir" in
1144   .) ac_abs_builddir=`pwd`;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1146   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1147   esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1151 *)
1152   case ${ac_top_builddir}. in
1153   .) ac_abs_top_builddir=$ac_abs_builddir;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1155   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1156   esac;;
1157 esac
1158 case $ac_abs_builddir in
1159 .) ac_abs_srcdir=$ac_srcdir;;
1160 *)
1161   case $ac_srcdir in
1162   .) ac_abs_srcdir=$ac_abs_builddir;;
1163   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1164   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1165   esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1169 *)
1170   case $ac_top_srcdir in
1171   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1172   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1173   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1174   esac;;
1175 esac
1176
1177     cd $ac_dir
1178     # Check for guested configure; otherwise get Cygnus style configure.
1179     if test -f $ac_srcdir/configure.gnu; then
1180       echo
1181       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1182     elif test -f $ac_srcdir/configure; then
1183       echo
1184       $SHELL $ac_srcdir/configure  --help=recursive
1185     elif test -f $ac_srcdir/configure.ac ||
1186            test -f $ac_srcdir/configure.in; then
1187       echo
1188       $ac_configure --help
1189     else
1190       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1191     fi
1192     cd "$ac_popdir"
1193   done
1194 fi
1195
1196 test -n "$ac_init_help" && exit 0
1197 if $ac_init_version; then
1198   cat <<\_ACEOF
1199 wxWidgets configure 2.5.5
1200 generated by GNU Autoconf 2.59
1201
1202 Copyright (C) 2003 Free Software Foundation, Inc.
1203 This configure script is free software; the Free Software Foundation
1204 gives unlimited permission to copy, distribute and modify it.
1205 _ACEOF
1206   exit 0
1207 fi
1208 exec 5>config.log
1209 cat >&5 <<_ACEOF
1210 This file contains any messages produced by compilers while
1211 running configure, to aid debugging if configure makes a mistake.
1212
1213 It was created by wxWidgets $as_me 2.5.5, which was
1214 generated by GNU Autoconf 2.59.  Invocation command line was
1215
1216   $ $0 $@
1217
1218 _ACEOF
1219 {
1220 cat <<_ASUNAME
1221 ## --------- ##
1222 ## Platform. ##
1223 ## --------- ##
1224
1225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1230
1231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1232 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1233
1234 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1235 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1237 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1238 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1239 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1240 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1241
1242 _ASUNAME
1243
1244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1245 for as_dir in $PATH
1246 do
1247   IFS=$as_save_IFS
1248   test -z "$as_dir" && as_dir=.
1249   echo "PATH: $as_dir"
1250 done
1251
1252 } >&5
1253
1254 cat >&5 <<_ACEOF
1255
1256
1257 ## ----------- ##
1258 ## Core tests. ##
1259 ## ----------- ##
1260
1261 _ACEOF
1262
1263
1264 # Keep a trace of the command line.
1265 # Strip out --no-create and --no-recursion so they do not pile up.
1266 # Strip out --silent because we don't want to record it for future runs.
1267 # Also quote any args containing shell meta-characters.
1268 # Make two passes to allow for proper duplicate-argument suppression.
1269 ac_configure_args=
1270 ac_configure_args0=
1271 ac_configure_args1=
1272 ac_sep=
1273 ac_must_keep_next=false
1274 for ac_pass in 1 2
1275 do
1276   for ac_arg
1277   do
1278     case $ac_arg in
1279     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1280     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281     | -silent | --silent | --silen | --sile | --sil)
1282       continue ;;
1283     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1285     esac
1286     case $ac_pass in
1287     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1288     2)
1289       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1290       if test $ac_must_keep_next = true; then
1291         ac_must_keep_next=false # Got value, back to normal.
1292       else
1293         case $ac_arg in
1294           *=* | --config-cache | -C | -disable-* | --disable-* \
1295           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1296           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1297           | -with-* | --with-* | -without-* | --without-* | --x)
1298             case "$ac_configure_args0 " in
1299               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1300             esac
1301             ;;
1302           -* ) ac_must_keep_next=true ;;
1303         esac
1304       fi
1305       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1306       # Get rid of the leading space.
1307       ac_sep=" "
1308       ;;
1309     esac
1310   done
1311 done
1312 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1313 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1314
1315 # When interrupted or exit'd, cleanup temporary files, and complete
1316 # config.log.  We remove comments because anyway the quotes in there
1317 # would cause problems or look ugly.
1318 # WARNING: Be sure not to use single quotes in there, as some shells,
1319 # such as our DU 5.0 friend, will then `close' the trap.
1320 trap 'exit_status=$?
1321   # Save into config.log some information that might help in debugging.
1322   {
1323     echo
1324
1325     cat <<\_ASBOX
1326 ## ---------------- ##
1327 ## Cache variables. ##
1328 ## ---------------- ##
1329 _ASBOX
1330     echo
1331     # The following way of writing the cache mishandles newlines in values,
1332 {
1333   (set) 2>&1 |
1334     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1335     *ac_space=\ *)
1336       sed -n \
1337         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1338           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1339       ;;
1340     *)
1341       sed -n \
1342         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1343       ;;
1344     esac;
1345 }
1346     echo
1347
1348     cat <<\_ASBOX
1349 ## ----------------- ##
1350 ## Output variables. ##
1351 ## ----------------- ##
1352 _ASBOX
1353     echo
1354     for ac_var in $ac_subst_vars
1355     do
1356       eval ac_val=$`echo $ac_var`
1357       echo "$ac_var='"'"'$ac_val'"'"'"
1358     done | sort
1359     echo
1360
1361     if test -n "$ac_subst_files"; then
1362       cat <<\_ASBOX
1363 ## ------------- ##
1364 ## Output files. ##
1365 ## ------------- ##
1366 _ASBOX
1367       echo
1368       for ac_var in $ac_subst_files
1369       do
1370         eval ac_val=$`echo $ac_var`
1371         echo "$ac_var='"'"'$ac_val'"'"'"
1372       done | sort
1373       echo
1374     fi
1375
1376     if test -s confdefs.h; then
1377       cat <<\_ASBOX
1378 ## ----------- ##
1379 ## confdefs.h. ##
1380 ## ----------- ##
1381 _ASBOX
1382       echo
1383       sed "/^$/d" confdefs.h | sort
1384       echo
1385     fi
1386     test "$ac_signal" != 0 &&
1387       echo "$as_me: caught signal $ac_signal"
1388     echo "$as_me: exit $exit_status"
1389   } >&5
1390   rm -f core *.core &&
1391   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1392     exit $exit_status
1393      ' 0
1394 for ac_signal in 1 2 13 15; do
1395   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1396 done
1397 ac_signal=0
1398
1399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1400 rm -rf conftest* confdefs.h
1401 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1402 echo >confdefs.h
1403
1404 # Predefined preprocessor variables.
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_NAME "$PACKAGE_NAME"
1408 _ACEOF
1409
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1413 _ACEOF
1414
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_STRING "$PACKAGE_STRING"
1423 _ACEOF
1424
1425
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1428 _ACEOF
1429
1430
1431 # Let the site file select an alternate cache file if it wants to.
1432 # Prefer explicitly selected file to automatically selected ones.
1433 if test -z "$CONFIG_SITE"; then
1434   if test "x$prefix" != xNONE; then
1435     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1436   else
1437     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1438   fi
1439 fi
1440 for ac_site_file in $CONFIG_SITE; do
1441   if test -r "$ac_site_file"; then
1442     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1443 echo "$as_me: loading site script $ac_site_file" >&6;}
1444     sed 's/^/| /' "$ac_site_file" >&5
1445     . "$ac_site_file"
1446   fi
1447 done
1448
1449 if test -r "$cache_file"; then
1450   # Some versions of bash will fail to source /dev/null (special
1451   # files actually), so we avoid doing that.
1452   if test -f "$cache_file"; then
1453     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1454 echo "$as_me: loading cache $cache_file" >&6;}
1455     case $cache_file in
1456       [\\/]* | ?:[\\/]* ) . $cache_file;;
1457       *)                      . ./$cache_file;;
1458     esac
1459   fi
1460 else
1461   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1462 echo "$as_me: creating cache $cache_file" >&6;}
1463   >$cache_file
1464 fi
1465
1466 # Check that the precious variables saved in the cache have kept the same
1467 # value.
1468 ac_cache_corrupted=false
1469 for ac_var in `(set) 2>&1 |
1470                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1471   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1472   eval ac_new_set=\$ac_env_${ac_var}_set
1473   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1474   eval ac_new_val="\$ac_env_${ac_var}_value"
1475   case $ac_old_set,$ac_new_set in
1476     set,)
1477       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1478 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1479       ac_cache_corrupted=: ;;
1480     ,set)
1481       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1482 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1483       ac_cache_corrupted=: ;;
1484     ,);;
1485     *)
1486       if test "x$ac_old_val" != "x$ac_new_val"; then
1487         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1488 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1489         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1490 echo "$as_me:   former value:  $ac_old_val" >&2;}
1491         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1492 echo "$as_me:   current value: $ac_new_val" >&2;}
1493         ac_cache_corrupted=:
1494       fi;;
1495   esac
1496   # Pass precious variables to config.status.
1497   if test "$ac_new_set" = set; then
1498     case $ac_new_val in
1499     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1500       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1501     *) ac_arg=$ac_var=$ac_new_val ;;
1502     esac
1503     case " $ac_configure_args " in
1504       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1505       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1506     esac
1507   fi
1508 done
1509 if $ac_cache_corrupted; then
1510   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1511 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1512   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1513 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1514    { (exit 1); exit 1; }; }
1515 fi
1516
1517 ac_ext=c
1518 ac_cpp='$CPP $CPPFLAGS'
1519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552 ac_aux_dir=
1553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1554   if test -f $ac_dir/install-sh; then
1555     ac_aux_dir=$ac_dir
1556     ac_install_sh="$ac_aux_dir/install-sh -c"
1557     break
1558   elif test -f $ac_dir/install.sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install.sh -c"
1561     break
1562   elif test -f $ac_dir/shtool; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/shtool install -c"
1565     break
1566   fi
1567 done
1568 if test -z "$ac_aux_dir"; then
1569   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1570 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1571    { (exit 1); exit 1; }; }
1572 fi
1573 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1574 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1575 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1576
1577 # Make sure we can run config.sub.
1578 $ac_config_sub sun4 >/dev/null 2>&1 ||
1579   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1580 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1581    { (exit 1); exit 1; }; }
1582
1583 echo "$as_me:$LINENO: checking build system type" >&5
1584 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1585 if test "${ac_cv_build+set}" = set; then
1586   echo $ECHO_N "(cached) $ECHO_C" >&6
1587 else
1588   ac_cv_build_alias=$build_alias
1589 test -z "$ac_cv_build_alias" &&
1590   ac_cv_build_alias=`$ac_config_guess`
1591 test -z "$ac_cv_build_alias" &&
1592   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1593 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1594    { (exit 1); exit 1; }; }
1595 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1596   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1597 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1598    { (exit 1); exit 1; }; }
1599
1600 fi
1601 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1602 echo "${ECHO_T}$ac_cv_build" >&6
1603 build=$ac_cv_build
1604 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1605 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1606 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607
1608
1609 echo "$as_me:$LINENO: checking host system type" >&5
1610 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1611 if test "${ac_cv_host+set}" = set; then
1612   echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614   ac_cv_host_alias=$host_alias
1615 test -z "$ac_cv_host_alias" &&
1616   ac_cv_host_alias=$ac_cv_build_alias
1617 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1618   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1619 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 fi
1623 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1624 echo "${ECHO_T}$ac_cv_host" >&6
1625 host=$ac_cv_host
1626 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
1630
1631 echo "$as_me:$LINENO: checking target system type" >&5
1632 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1633 if test "${ac_cv_target+set}" = set; then
1634   echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636   ac_cv_target_alias=$target_alias
1637 test "x$ac_cv_target_alias" = "x" &&
1638   ac_cv_target_alias=$ac_cv_host_alias
1639 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1640   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1641 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1642    { (exit 1); exit 1; }; }
1643
1644 fi
1645 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1646 echo "${ECHO_T}$ac_cv_target" >&6
1647 target=$ac_cv_target
1648 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653 # The aliases save the names the user supplied, while $host etc.
1654 # will get canonicalized.
1655 test -n "$target_alias" &&
1656   test "$program_prefix$program_suffix$program_transform_name" = \
1657     NONENONEs,x,x, &&
1658   program_prefix=${target_alias}-
1659
1660
1661
1662 wx_major_version_number=2
1663 wx_minor_version_number=5
1664 wx_release_number=5
1665 wx_subrelease_number=0
1666
1667 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1668 WX_VERSION=$WX_RELEASE.$wx_release_number
1669 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1670
1671 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1672
1673 WX_CURRENT=5
1674 WX_REVISION=0
1675 WX_AGE=5
1676
1677
1678
1679 USE_UNIX=1
1680 USE_OS2=0
1681 USE_WIN32=0
1682 USE_DOS=0
1683 USE_BEOS=0
1684 USE_MAC=0
1685
1686 USE_AIX=
1687 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1688 USE_GNU=                            USE_HPUX=
1689 USE_LINUX=
1690 USE_NETBSD=
1691 USE_OPENBSD=
1692 USE_OSF=                            USE_SGI=
1693 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1694 USE_ULTRIX=
1695 USE_UNIXWARE=
1696
1697 USE_ALPHA=
1698
1699 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1700
1701 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1702
1703 DEFAULT_wxUSE_COCOA=0
1704 DEFAULT_wxUSE_GTK=0
1705 DEFAULT_wxUSE_MAC=0
1706 DEFAULT_wxUSE_MGL=0
1707 DEFAULT_wxUSE_MICROWIN=0
1708 DEFAULT_wxUSE_MOTIF=0
1709 DEFAULT_wxUSE_MSW=0
1710 DEFAULT_wxUSE_PM=0
1711 DEFAULT_wxUSE_X11=0
1712
1713 DEFAULT_DEFAULT_wxUSE_COCOA=0
1714 DEFAULT_DEFAULT_wxUSE_GTK=0
1715 DEFAULT_DEFAULT_wxUSE_MAC=0
1716 DEFAULT_DEFAULT_wxUSE_MGL=0
1717 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1718 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1719 DEFAULT_DEFAULT_wxUSE_MSW=0
1720 DEFAULT_DEFAULT_wxUSE_PM=0
1721 DEFAULT_DEFAULT_wxUSE_X11=0
1722
1723 PROGRAM_EXT=
1724 SO_SUFFIX=so
1725 SAMPLES_RPATH_FLAG=
1726 SAMPLES_RPATH_POSTLINK=
1727
1728 case "${host}" in
1729   *-hp-hpux* )
1730     USE_HPUX=1
1731     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1732     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1733     SO_SUFFIX=sl
1734     cat >>confdefs.h <<\_ACEOF
1735 #define __HPUX__ 1
1736 _ACEOF
1737
1738   ;;
1739   *-*-linux* )
1740     USE_LINUX=1
1741     cat >>confdefs.h <<\_ACEOF
1742 #define __LINUX__ 1
1743 _ACEOF
1744
1745     TMP=`uname -m`
1746     if test "x$TMP" = "xalpha"; then
1747       USE_ALPHA=1
1748       cat >>confdefs.h <<\_ACEOF
1749 #define __ALPHA__ 1
1750 _ACEOF
1751
1752     fi
1753     DEFAULT_DEFAULT_wxUSE_GTK=1
1754   ;;
1755   *-*-gnu* | *-*-k*bsd*-gnu )
1756     USE_GNU=1
1757     TMP=`uname -m`
1758     if test "x$TMP" = "xalpha"; then
1759       USE_ALPHA=1
1760       cat >>confdefs.h <<\_ACEOF
1761 #define __ALPHA__ 1
1762 _ACEOF
1763
1764     fi
1765     DEFAULT_DEFAULT_wxUSE_GTK=1
1766   ;;
1767   *-*-irix5* | *-*-irix6* )
1768     USE_SGI=1
1769     USE_SVR4=1
1770     cat >>confdefs.h <<\_ACEOF
1771 #define __SGI__ 1
1772 _ACEOF
1773
1774     cat >>confdefs.h <<\_ACEOF
1775 #define __SVR4__ 1
1776 _ACEOF
1777
1778     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1779   ;;
1780   *-*-solaris2* )
1781     USE_SUN=1
1782     USE_SOLARIS=1
1783     USE_SVR4=1
1784     cat >>confdefs.h <<\_ACEOF
1785 #define __SUN__ 1
1786 _ACEOF
1787
1788     cat >>confdefs.h <<\_ACEOF
1789 #define __SOLARIS__ 1
1790 _ACEOF
1791
1792     cat >>confdefs.h <<\_ACEOF
1793 #define __SVR4__ 1
1794 _ACEOF
1795
1796     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1797     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1798   ;;
1799   *-*-sunos4* )
1800     USE_SUN=1
1801     USE_SUNOS=1
1802     USE_BSD=1
1803     cat >>confdefs.h <<\_ACEOF
1804 #define __SUN__ 1
1805 _ACEOF
1806
1807     cat >>confdefs.h <<\_ACEOF
1808 #define __SUNOS__ 1
1809 _ACEOF
1810
1811     cat >>confdefs.h <<\_ACEOF
1812 #define __BSD__ 1
1813 _ACEOF
1814
1815     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1816   ;;
1817   *-*-freebsd*)
1818     USE_BSD=1
1819     USE_FREEBSD=1
1820     cat >>confdefs.h <<\_ACEOF
1821 #define __FREEBSD__ 1
1822 _ACEOF
1823
1824     cat >>confdefs.h <<\_ACEOF
1825 #define __BSD__ 1
1826 _ACEOF
1827
1828     DEFAULT_DEFAULT_wxUSE_GTK=1
1829   ;;
1830   *-*-openbsd*)
1831     USE_BSD=1
1832     USE_OPENBSD=1
1833     cat >>confdefs.h <<\_ACEOF
1834 #define __OPENBSD__ 1
1835 _ACEOF
1836
1837     cat >>confdefs.h <<\_ACEOF
1838 #define __BSD__ 1
1839 _ACEOF
1840
1841     DEFAULT_DEFAULT_wxUSE_GTK=1
1842   ;;
1843   *-*-netbsd*)
1844     USE_BSD=1
1845     USE_NETBSD=1
1846     cat >>confdefs.h <<\_ACEOF
1847 #define __NETBSD__ 1
1848 _ACEOF
1849
1850     cat >>confdefs.h <<\_ACEOF
1851 #define __BSD__ 1
1852 _ACEOF
1853
1854     DEFAULT_DEFAULT_wxUSE_GTK=1
1855   ;;
1856   *-*-osf* )
1857     USE_ALPHA=1
1858     USE_OSF=1
1859     cat >>confdefs.h <<\_ACEOF
1860 #define __ALPHA__ 1
1861 _ACEOF
1862
1863     cat >>confdefs.h <<\_ACEOF
1864 #define __OSF__ 1
1865 _ACEOF
1866
1867     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1868     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1869   ;;
1870   *-*-dgux5* )
1871     USE_ALPHA=1
1872     USE_SVR4=1
1873     cat >>confdefs.h <<\_ACEOF
1874 #define __ALPHA__ 1
1875 _ACEOF
1876
1877     cat >>confdefs.h <<\_ACEOF
1878 #define __SVR4__ 1
1879 _ACEOF
1880
1881     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1882   ;;
1883   *-*-sysv5* )
1884     USE_SYSV=1
1885     USE_SVR4=1
1886     cat >>confdefs.h <<\_ACEOF
1887 #define __SYSV__ 1
1888 _ACEOF
1889
1890     cat >>confdefs.h <<\_ACEOF
1891 #define __SVR4__ 1
1892 _ACEOF
1893
1894     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1895   ;;
1896   *-*-aix* )
1897     USE_AIX=1
1898     USE_SYSV=1
1899     USE_SVR4=1
1900                         SO_SUFFIX=a
1901     cat >>confdefs.h <<\_ACEOF
1902 #define __AIX__ 1
1903 _ACEOF
1904
1905     cat >>confdefs.h <<\_ACEOF
1906 #define __SYSV__ 1
1907 _ACEOF
1908
1909     cat >>confdefs.h <<\_ACEOF
1910 #define __SVR4__ 1
1911 _ACEOF
1912
1913     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1914   ;;
1915
1916   *-*-*UnixWare*)
1917     USE_SYSV=1
1918     USE_SVR4=1
1919     USE_UNIXWARE=1
1920     cat >>confdefs.h <<\_ACEOF
1921 #define __UNIXWARE__ 1
1922 _ACEOF
1923
1924   ;;
1925
1926   *-*-cygwin* | *-*-mingw32* )
1927                 SO_SUFFIX=dll
1928     PROGRAM_EXT=".exe"
1929     RESCOMP=windres
1930     DEFAULT_DEFAULT_wxUSE_MSW=1
1931   ;;
1932
1933   *-pc-msdosdjgpp )
1934     USE_UNIX=0
1935     USE_DOS=1
1936     cat >>confdefs.h <<\_ACEOF
1937 #define __DOS__ 1
1938 _ACEOF
1939
1940     PROGRAM_EXT=".exe"
1941     DEFAULT_DEFAULT_wxUSE_MGL=1
1942         LIBS="$LIBS -lstdc++"
1943   ;;
1944
1945   *-pc-os2_emx | *-pc-os2-emx )
1946     cat >>confdefs.h <<\_ACEOF
1947 #define __EMX__ 1
1948 _ACEOF
1949
1950     USE_OS2=1
1951     cat >>confdefs.h <<\_ACEOF
1952 #define __OS2__ 1
1953 _ACEOF
1954
1955     PROGRAM_EXT=".exe"
1956     DEFAULT_DEFAULT_wxUSE_PM=1
1957         CXX=gcc
1958     LDFLAGS="$LDFLAGS -Zcrtdll"
1959                         ac_executable_extensions=".exe"
1960     export ac_executable_extensions
1961             ac_save_IFS="$IFS"
1962     IFS='\\'
1963     ac_TEMP_PATH=
1964     for ac_dir in $PATH; do
1965       IFS=$ac_save_IFS
1966       if test -z "$ac_TEMP_PATH"; then
1967         ac_TEMP_PATH="$ac_dir"
1968       else
1969         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1970       fi
1971     done
1972     export PATH="$ac_TEMP_PATH"
1973     unset ac_TEMP_PATH
1974   ;;
1975
1976   powerpc-*-darwin* )
1977         USE_BSD=1
1978     USE_DARWIN=1
1979     SO_SUFFIX=dylib
1980     cat >>confdefs.h <<\_ACEOF
1981 #define __BSD__ 1
1982 _ACEOF
1983
1984     cat >>confdefs.h <<\_ACEOF
1985 #define __DARWIN__ 1
1986 _ACEOF
1987
1988     cat >>confdefs.h <<\_ACEOF
1989 #define TARGET_CARBON 1
1990 _ACEOF
1991
1992     DEFAULT_DEFAULT_wxUSE_MAC=1
1993   ;;
1994   powerpc-apple-macos* )
1995         USE_UNIX=0
1996             ac_cv_c_bigendian=yes
1997     SO_SUFFIX=shlib
1998             DEFAULT_DEFAULT_wxUSE_MAC=1
1999   ;;
2000
2001   *-*-beos* )
2002         USE_BEOS=1
2003     cat >>confdefs.h <<\_ACEOF
2004 #define __BEOS__ 1
2005 _ACEOF
2006
2007   ;;
2008
2009   *)
2010     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2011 echo "$as_me: error: unknown system type ${host}." >&2;}
2012    { (exit 1); exit 1; }; }
2013 esac
2014
2015
2016
2017
2018           wx_arg_cache_file="configarg.cache"
2019           echo "loading argument cache $wx_arg_cache_file"
2020           rm -f ${wx_arg_cache_file}.tmp
2021           touch ${wx_arg_cache_file}.tmp
2022           touch ${wx_arg_cache_file}
2023
2024
2025 DEBUG_CONFIGURE=0
2026 if test $DEBUG_CONFIGURE = 1; then
2027   DEFAULT_wxUSE_UNIVERSAL=no
2028   DEFAULT_wxUSE_STL=no
2029
2030   DEFAULT_wxUSE_NANOX=no
2031
2032   DEFAULT_wxUSE_THREADS=yes
2033
2034   DEFAULT_wxUSE_SHARED=yes
2035   DEFAULT_wxUSE_OPTIMISE=no
2036   DEFAULT_wxUSE_PROFILE=no
2037   DEFAULT_wxUSE_NO_DEPS=no
2038   DEFAULT_wxUSE_NO_RTTI=no
2039   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2040   DEFAULT_wxUSE_RPATH=yes
2041   DEFAULT_wxUSE_PERMISSIVE=no
2042   DEFAULT_wxUSE_DEBUG_FLAG=yes
2043   DEFAULT_wxUSE_DEBUG_INFO=yes
2044   DEFAULT_wxUSE_DEBUG_GDB=yes
2045   DEFAULT_wxUSE_MEM_TRACING=no
2046   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2047   DEFAULT_wxUSE_DMALLOC=no
2048   DEFAULT_wxUSE_APPLE_IEEE=no
2049
2050   DEFAULT_wxUSE_EXCEPTIONS=no
2051   DEFAULT_wxUSE_LOG=yes
2052   DEFAULT_wxUSE_LOGWINDOW=no
2053   DEFAULT_wxUSE_LOGGUI=no
2054   DEFAULT_wxUSE_LOGDIALOG=no
2055
2056   DEFAULT_wxUSE_GUI=yes
2057   DEFAULT_wxUSE_CONTROLS=no
2058
2059   DEFAULT_wxUSE_REGEX=no
2060   DEFAULT_wxUSE_XML=no
2061   DEFAULT_wxUSE_EXPAT=no
2062   DEFAULT_wxUSE_ZLIB=no
2063   DEFAULT_wxUSE_LIBPNG=no
2064   DEFAULT_wxUSE_LIBJPEG=no
2065   DEFAULT_wxUSE_LIBTIFF=no
2066   DEFAULT_wxUSE_LIBXPM=no
2067   DEFAULT_wxUSE_LIBMSPACK=no
2068   DEFAULT_wxUSE_LIBSDL=no
2069   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2070   DEFAULT_wxUSE_ODBC=no
2071   DEFAULT_wxUSE_OPENGL=no
2072
2073   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2074   DEFAULT_wxUSE_STACKWALKER=no
2075   DEFAULT_wxUSE_DEBUGREPORT=no
2076   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2077   DEFAULT_wxUSE_STD_IOSTREAM=no
2078   DEFAULT_wxUSE_STD_STRING=no
2079   DEFAULT_wxUSE_CMDLINE_PARSER=no
2080   DEFAULT_wxUSE_DATETIME=no
2081   DEFAULT_wxUSE_TIMER=no
2082   DEFAULT_wxUSE_STOPWATCH=no
2083   DEFAULT_wxUSE_FILE=no
2084   DEFAULT_wxUSE_FFILE=no
2085   DEFAULT_wxUSE_STDPATHS=no
2086   DEFAULT_wxUSE_TEXTBUFFER=no
2087   DEFAULT_wxUSE_TEXTFILE=no
2088   DEFAULT_wxUSE_SOUND=no
2089   DEFAULT_wxUSE_MEDIACTRL=no
2090   DEFAULT_wxUSE_DIRECTSHOW=no
2091   DEFAULT_wxUSE_INTL=no
2092   DEFAULT_wxUSE_CONFIG=no
2093   DEFAULT_wxUSE_FONTMAP=no
2094   DEFAULT_wxUSE_STREAMS=no
2095   DEFAULT_wxUSE_SOCKETS=no
2096   DEFAULT_wxUSE_OLE=no
2097   DEFAULT_wxUSE_DATAOBJ=no
2098   DEFAULT_wxUSE_DIALUP_MANAGER=no
2099   DEFAULT_wxUSE_JOYSTICK=no
2100   DEFAULT_wxUSE_DYNLIB_CLASS=no
2101   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2102   DEFAULT_wxUSE_LONGLONG=no
2103   DEFAULT_wxUSE_GEOMETRY=no
2104
2105   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2106   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2107   DEFAULT_wxUSE_POSTSCRIPT=no
2108
2109   DEFAULT_wxUSE_CLIPBOARD=no
2110   DEFAULT_wxUSE_TOOLTIPS=no
2111   DEFAULT_wxUSE_DRAG_AND_DROP=no
2112   DEFAULT_wxUSE_DRAGIMAGE=no
2113   DEFAULT_wxUSE_SPLINES=no
2114
2115   DEFAULT_wxUSE_MDI=no
2116   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2117   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2118   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2119
2120   DEFAULT_wxUSE_RESOURCES=no
2121   DEFAULT_wxUSE_CONSTRAINTS=no
2122   DEFAULT_wxUSE_IPC=no
2123   DEFAULT_wxUSE_HELP=no
2124   DEFAULT_wxUSE_MS_HTML_HELP=no
2125   DEFAULT_wxUSE_WXHTML_HELP=no
2126   DEFAULT_wxUSE_TREELAYOUT=no
2127   DEFAULT_wxUSE_METAFILE=no
2128   DEFAULT_wxUSE_MIMETYPE=no
2129   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2130   DEFAULT_wxUSE_PROTOCOL=no
2131   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2132   DEFAULT_wxUSE_PROTOCOL_FTP=no
2133   DEFAULT_wxUSE_PROTOCOL_FILE=no
2134   DEFAULT_wxUSE_URL=no
2135
2136   DEFAULT_wxUSE_COMMONDLGS=no
2137   DEFAULT_wxUSE_CHOICEDLG=no
2138   DEFAULT_wxUSE_COLOURDLG=no
2139   DEFAULT_wxUSE_DIRDLG=no
2140   DEFAULT_wxUSE_FILEDLG=no
2141   DEFAULT_wxUSE_FINDREPLDLG=no
2142   DEFAULT_wxUSE_FONTDLG=no
2143   DEFAULT_wxUSE_MSGDLG=no
2144   DEFAULT_wxUSE_NUMBERDLG=no
2145   DEFAULT_wxUSE_TEXTDLG=no
2146   DEFAULT_wxUSE_SPLASH=no
2147   DEFAULT_wxUSE_STARTUP_TIPS=no
2148   DEFAULT_wxUSE_PROGRESSDLG=no
2149   DEFAULT_wxUSE_WIZARDDLG=no
2150
2151   DEFAULT_wxUSE_MENUS=no
2152   DEFAULT_wxUSE_MINIFRAME=no
2153   DEFAULT_wxUSE_HTML=no
2154   DEFAULT_wxUSE_XRC=no
2155   DEFAULT_wxUSE_WEBKIT=no
2156   DEFAULT_wxUSE_FILESYSTEM=no
2157   DEFAULT_wxUSE_FS_INET=no
2158   DEFAULT_wxUSE_FS_ZIP=no
2159   DEFAULT_wxUSE_BUSYINFO=no
2160   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2161   DEFAULT_wxUSE_ZIPSTREAM=no
2162   DEFAULT_wxUSE_VALIDATORS=no
2163
2164   DEFAULT_wxUSE_ACCEL=no
2165   DEFAULT_wxUSE_BUTTON=no
2166   DEFAULT_wxUSE_BMPBUTTON=no
2167   DEFAULT_wxUSE_CALCTRL=no
2168   DEFAULT_wxUSE_CARET=no
2169   DEFAULT_wxUSE_CHECKBOX=no
2170   DEFAULT_wxUSE_CHECKLST=no
2171   DEFAULT_wxUSE_CHOICE=no
2172   DEFAULT_wxUSE_CHOICEBOOK=no
2173   DEFAULT_wxUSE_COMBOBOX=no
2174   DEFAULT_wxUSE_DATEPICKCTRL=no
2175   DEFAULT_wxUSE_DISPLAY=no
2176   DEFAULT_wxUSE_GAUGE=no
2177   DEFAULT_wxUSE_GRID=no
2178   DEFAULT_wxUSE_IMAGLIST=no
2179   DEFAULT_wxUSE_LISTBOOK=no
2180   DEFAULT_wxUSE_LISTBOX=no
2181   DEFAULT_wxUSE_LISTCTRL=no
2182   DEFAULT_wxUSE_NOTEBOOK=no
2183   DEFAULT_wxUSE_RADIOBOX=no
2184   DEFAULT_wxUSE_RADIOBTN=no
2185   DEFAULT_wxUSE_SASH=no
2186   DEFAULT_wxUSE_SCROLLBAR=no
2187   DEFAULT_wxUSE_SLIDER=no
2188   DEFAULT_wxUSE_SPINBTN=no
2189   DEFAULT_wxUSE_SPINCTRL=no
2190   DEFAULT_wxUSE_SPLITTER=no
2191   DEFAULT_wxUSE_STATBMP=no
2192   DEFAULT_wxUSE_STATBOX=no
2193   DEFAULT_wxUSE_STATLINE=no
2194   DEFAULT_wxUSE_STATTEXT=no
2195   DEFAULT_wxUSE_STATUSBAR=yes
2196   DEFAULT_wxUSE_TABDIALOG=no
2197   DEFAULT_wxUSE_TEXTCTRL=no
2198   DEFAULT_wxUSE_TOGGLEBTN=no
2199   DEFAULT_wxUSE_TOOLBAR=no
2200   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2201   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2202   DEFAULT_wxUSE_TREECTRL=no
2203   DEFAULT_wxUSE_POPUPWIN=no
2204   DEFAULT_wxUSE_TIPWINDOW=no
2205
2206   DEFAULT_wxUSE_UNICODE=no
2207   DEFAULT_wxUSE_UNICODE_MSLU=no
2208   DEFAULT_wxUSE_WCSRTOMBS=no
2209
2210   DEFAULT_wxUSE_PALETTE=no
2211   DEFAULT_wxUSE_IMAGE=no
2212   DEFAULT_wxUSE_GIF=no
2213   DEFAULT_wxUSE_PCX=no
2214   DEFAULT_wxUSE_PNM=no
2215   DEFAULT_wxUSE_IFF=no
2216   DEFAULT_wxUSE_XPM=no
2217   DEFAULT_wxUSE_ICO_CUR=no
2218   DEFAULT_wxUSE_ACCESSIBILITY=no
2219
2220   DEFAULT_wxUSE_MONOLITHIC=no
2221   DEFAULT_wxUSE_PLUGINS=no
2222   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2223 else
2224   DEFAULT_wxUSE_UNIVERSAL=no
2225   DEFAULT_wxUSE_STL=no
2226
2227   DEFAULT_wxUSE_NANOX=no
2228
2229   DEFAULT_wxUSE_THREADS=yes
2230
2231   DEFAULT_wxUSE_SHARED=yes
2232   DEFAULT_wxUSE_OPTIMISE=yes
2233   DEFAULT_wxUSE_PROFILE=no
2234   DEFAULT_wxUSE_NO_DEPS=no
2235   DEFAULT_wxUSE_NO_RTTI=no
2236   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2237   DEFAULT_wxUSE_RPATH=yes
2238   DEFAULT_wxUSE_PERMISSIVE=no
2239   DEFAULT_wxUSE_DEBUG_FLAG=no
2240   DEFAULT_wxUSE_DEBUG_INFO=no
2241   DEFAULT_wxUSE_DEBUG_GDB=no
2242   DEFAULT_wxUSE_MEM_TRACING=no
2243   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2244   DEFAULT_wxUSE_DMALLOC=no
2245   DEFAULT_wxUSE_APPLE_IEEE=yes
2246
2247   DEFAULT_wxUSE_EXCEPTIONS=yes
2248   DEFAULT_wxUSE_LOG=yes
2249   DEFAULT_wxUSE_LOGWINDOW=yes
2250   DEFAULT_wxUSE_LOGGUI=yes
2251   DEFAULT_wxUSE_LOGDIALOG=yes
2252
2253   DEFAULT_wxUSE_GUI=yes
2254
2255   DEFAULT_wxUSE_REGEX=yes
2256   DEFAULT_wxUSE_XML=yes
2257   DEFAULT_wxUSE_EXPAT=yes
2258   DEFAULT_wxUSE_ZLIB=yes
2259   DEFAULT_wxUSE_LIBPNG=yes
2260   DEFAULT_wxUSE_LIBJPEG=yes
2261   DEFAULT_wxUSE_LIBTIFF=yes
2262   DEFAULT_wxUSE_LIBXPM=yes
2263   DEFAULT_wxUSE_LIBMSPACK=yes
2264   DEFAULT_wxUSE_LIBSDL=no
2265   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2266   DEFAULT_wxUSE_ODBC=no
2267   DEFAULT_wxUSE_OPENGL=no
2268
2269   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2270   DEFAULT_wxUSE_STACKWALKER=yes
2271   DEFAULT_wxUSE_DEBUGREPORT=yes
2272   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2273   DEFAULT_wxUSE_STD_IOSTREAM=no
2274   DEFAULT_wxUSE_STD_STRING=no
2275   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2276   DEFAULT_wxUSE_DATETIME=yes
2277   DEFAULT_wxUSE_TIMER=yes
2278   DEFAULT_wxUSE_STOPWATCH=yes
2279   DEFAULT_wxUSE_FILE=yes
2280   DEFAULT_wxUSE_FFILE=yes
2281   DEFAULT_wxUSE_STDPATHS=yes
2282   DEFAULT_wxUSE_TEXTBUFFER=yes
2283   DEFAULT_wxUSE_TEXTFILE=yes
2284   DEFAULT_wxUSE_SOUND=yes
2285   DEFAULT_wxUSE_MEDIACTRL=no
2286   DEFAULT_wxUSE_DIRECTSHOW=no
2287   DEFAULT_wxUSE_INTL=yes
2288   DEFAULT_wxUSE_CONFIG=yes
2289   DEFAULT_wxUSE_FONTMAP=yes
2290   DEFAULT_wxUSE_STREAMS=yes
2291   DEFAULT_wxUSE_SOCKETS=yes
2292   DEFAULT_wxUSE_OLE=yes
2293   DEFAULT_wxUSE_DATAOBJ=yes
2294   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2295   DEFAULT_wxUSE_JOYSTICK=yes
2296   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2297   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2298   DEFAULT_wxUSE_LONGLONG=yes
2299   DEFAULT_wxUSE_GEOMETRY=yes
2300
2301   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2302   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2303   DEFAULT_wxUSE_POSTSCRIPT=yes
2304
2305   DEFAULT_wxUSE_CLIPBOARD=yes
2306   DEFAULT_wxUSE_TOOLTIPS=yes
2307   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2308   DEFAULT_wxUSE_DRAGIMAGE=yes
2309   DEFAULT_wxUSE_SPLINES=yes
2310
2311   DEFAULT_wxUSE_MDI=yes
2312   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2313   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2314   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2315
2316   DEFAULT_wxUSE_RESOURCES=no
2317   DEFAULT_wxUSE_CONSTRAINTS=yes
2318   DEFAULT_wxUSE_IPC=yes
2319   DEFAULT_wxUSE_HELP=yes
2320   DEFAULT_wxUSE_MS_HTML_HELP=yes
2321   DEFAULT_wxUSE_WXHTML_HELP=yes
2322   DEFAULT_wxUSE_TREELAYOUT=yes
2323   DEFAULT_wxUSE_METAFILE=yes
2324   DEFAULT_wxUSE_MIMETYPE=yes
2325   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2326   DEFAULT_wxUSE_PROTOCOL=yes
2327   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2328   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2329   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2330   DEFAULT_wxUSE_URL=yes
2331
2332   DEFAULT_wxUSE_COMMONDLGS=yes
2333   DEFAULT_wxUSE_CHOICEDLG=yes
2334   DEFAULT_wxUSE_COLOURDLG=yes
2335   DEFAULT_wxUSE_DIRDLG=yes
2336   DEFAULT_wxUSE_FILEDLG=yes
2337   DEFAULT_wxUSE_FINDREPLDLG=yes
2338   DEFAULT_wxUSE_FONTDLG=yes
2339   DEFAULT_wxUSE_MSGDLG=yes
2340   DEFAULT_wxUSE_NUMBERDLG=yes
2341   DEFAULT_wxUSE_TEXTDLG=yes
2342   DEFAULT_wxUSE_SPLASH=yes
2343   DEFAULT_wxUSE_STARTUP_TIPS=yes
2344   DEFAULT_wxUSE_PROGRESSDLG=yes
2345   DEFAULT_wxUSE_WIZARDDLG=yes
2346
2347   DEFAULT_wxUSE_MENUS=yes
2348   DEFAULT_wxUSE_MINIFRAME=yes
2349   DEFAULT_wxUSE_HTML=yes
2350   DEFAULT_wxUSE_XRC=yes
2351   DEFAULT_wxUSE_WEBKIT=yes
2352   DEFAULT_wxUSE_FILESYSTEM=yes
2353   DEFAULT_wxUSE_FS_INET=yes
2354   DEFAULT_wxUSE_FS_ZIP=yes
2355   DEFAULT_wxUSE_BUSYINFO=yes
2356   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2357   DEFAULT_wxUSE_ZIPSTREAM=yes
2358   DEFAULT_wxUSE_VALIDATORS=yes
2359
2360   DEFAULT_wxUSE_ACCEL=yes
2361   DEFAULT_wxUSE_BUTTON=yes
2362   DEFAULT_wxUSE_BMPBUTTON=yes
2363   DEFAULT_wxUSE_CALCTRL=yes
2364   DEFAULT_wxUSE_CARET=yes
2365   DEFAULT_wxUSE_CHECKBOX=yes
2366   DEFAULT_wxUSE_CHECKLST=yes
2367   DEFAULT_wxUSE_CHOICE=yes
2368   DEFAULT_wxUSE_CHOICEBOOK=yes
2369   DEFAULT_wxUSE_COMBOBOX=yes
2370   DEFAULT_wxUSE_DATEPICKCTRL=yes
2371   DEFAULT_wxUSE_DISPLAY=yes
2372   DEFAULT_wxUSE_GAUGE=yes
2373   DEFAULT_wxUSE_GRID=yes
2374   DEFAULT_wxUSE_IMAGLIST=yes
2375   DEFAULT_wxUSE_LISTBOOK=yes
2376   DEFAULT_wxUSE_LISTBOX=yes
2377   DEFAULT_wxUSE_LISTCTRL=yes
2378   DEFAULT_wxUSE_NOTEBOOK=yes
2379   DEFAULT_wxUSE_RADIOBOX=yes
2380   DEFAULT_wxUSE_RADIOBTN=yes
2381   DEFAULT_wxUSE_SASH=yes
2382   DEFAULT_wxUSE_SCROLLBAR=yes
2383   DEFAULT_wxUSE_SLIDER=yes
2384   DEFAULT_wxUSE_SPINBTN=yes
2385   DEFAULT_wxUSE_SPINCTRL=yes
2386   DEFAULT_wxUSE_SPLITTER=yes
2387   DEFAULT_wxUSE_STATBMP=yes
2388   DEFAULT_wxUSE_STATBOX=yes
2389   DEFAULT_wxUSE_STATLINE=yes
2390   DEFAULT_wxUSE_STATTEXT=yes
2391   DEFAULT_wxUSE_STATUSBAR=yes
2392   DEFAULT_wxUSE_TABDIALOG=no
2393   DEFAULT_wxUSE_TEXTCTRL=yes
2394   DEFAULT_wxUSE_TOGGLEBTN=yes
2395   DEFAULT_wxUSE_TOOLBAR=yes
2396   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2397   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2398   DEFAULT_wxUSE_TREECTRL=yes
2399   DEFAULT_wxUSE_POPUPWIN=yes
2400   DEFAULT_wxUSE_TIPWINDOW=yes
2401
2402   DEFAULT_wxUSE_UNICODE=no
2403   DEFAULT_wxUSE_UNICODE_MSLU=yes
2404   DEFAULT_wxUSE_WCSRTOMBS=no
2405
2406   DEFAULT_wxUSE_PALETTE=yes
2407   DEFAULT_wxUSE_IMAGE=yes
2408   DEFAULT_wxUSE_GIF=yes
2409   DEFAULT_wxUSE_PCX=yes
2410   DEFAULT_wxUSE_IFF=no
2411   DEFAULT_wxUSE_PNM=yes
2412   DEFAULT_wxUSE_XPM=yes
2413   DEFAULT_wxUSE_ICO_CUR=yes
2414   DEFAULT_wxUSE_ACCESSIBILITY=no
2415
2416   DEFAULT_wxUSE_MONOLITHIC=no
2417   DEFAULT_wxUSE_PLUGINS=no
2418   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2419
2420     DEFAULT_wxUSE_GTK2=yes
2421 fi
2422
2423
2424
2425 for toolkit in `echo $ALL_TOOLKITS`; do
2426   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2427   if test "x$LINE" != "x" ; then
2428     has_toolkit_in_cache=1
2429     eval "DEFAULT_$LINE"
2430     eval "CACHE_$toolkit=1"
2431   fi
2432 done
2433
2434
2435
2436           enablestring=
2437           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2438 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2439           no_cache=0
2440           # Check whether --enable-gui or --disable-gui was given.
2441 if test "${enable_gui+set}" = set; then
2442   enableval="$enable_gui"
2443
2444                           if test "$enableval" = yes; then
2445                             ac_cv_use_gui='wxUSE_GUI=yes'
2446                           else
2447                             ac_cv_use_gui='wxUSE_GUI=no'
2448                           fi
2449
2450 else
2451
2452                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2453                           if test "x$LINE" != x ; then
2454                             eval "DEFAULT_$LINE"
2455                           else
2456                             no_cache=1
2457                           fi
2458
2459                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2460
2461 fi;
2462
2463           eval "$ac_cv_use_gui"
2464           if test "$no_cache" != 1; then
2465             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2466           fi
2467
2468           if test "$wxUSE_GUI" = yes; then
2469             echo "$as_me:$LINENO: result: yes" >&5
2470 echo "${ECHO_T}yes" >&6
2471           else
2472             echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2474           fi
2475
2476
2477           enablestring=
2478           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2479 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2480           no_cache=0
2481           # Check whether --enable-monolithic or --disable-monolithic was given.
2482 if test "${enable_monolithic+set}" = set; then
2483   enableval="$enable_monolithic"
2484
2485                           if test "$enableval" = yes; then
2486                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2487                           else
2488                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2489                           fi
2490
2491 else
2492
2493                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2494                           if test "x$LINE" != x ; then
2495                             eval "DEFAULT_$LINE"
2496                           else
2497                             no_cache=1
2498                           fi
2499
2500                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2501
2502 fi;
2503
2504           eval "$ac_cv_use_monolithic"
2505           if test "$no_cache" != 1; then
2506             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2507           fi
2508
2509           if test "$wxUSE_MONOLITHIC" = yes; then
2510             echo "$as_me:$LINENO: result: yes" >&5
2511 echo "${ECHO_T}yes" >&6
2512           else
2513             echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6
2515           fi
2516
2517
2518           enablestring=
2519           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2520 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2521           no_cache=0
2522           # Check whether --enable-plugins or --disable-plugins was given.
2523 if test "${enable_plugins+set}" = set; then
2524   enableval="$enable_plugins"
2525
2526                           if test "$enableval" = yes; then
2527                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2528                           else
2529                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2530                           fi
2531
2532 else
2533
2534                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2535                           if test "x$LINE" != x ; then
2536                             eval "DEFAULT_$LINE"
2537                           else
2538                             no_cache=1
2539                           fi
2540
2541                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2542
2543 fi;
2544
2545           eval "$ac_cv_use_plugins"
2546           if test "$no_cache" != 1; then
2547             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2548           fi
2549
2550           if test "$wxUSE_PLUGINS" = yes; then
2551             echo "$as_me:$LINENO: result: yes" >&5
2552 echo "${ECHO_T}yes" >&6
2553           else
2554             echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6
2556           fi
2557
2558
2559 if test "$wxUSE_GUI" = "yes"; then
2560
2561
2562           enablestring=
2563           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2564 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2565           no_cache=0
2566           # Check whether --enable-universal or --disable-universal was given.
2567 if test "${enable_universal+set}" = set; then
2568   enableval="$enable_universal"
2569
2570                           if test "$enableval" = yes; then
2571                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2572                           else
2573                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2574                           fi
2575
2576 else
2577
2578                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2579                           if test "x$LINE" != x ; then
2580                             eval "DEFAULT_$LINE"
2581                           else
2582                             no_cache=1
2583                           fi
2584
2585                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2586
2587 fi;
2588
2589           eval "$ac_cv_use_universal"
2590           if test "$no_cache" != 1; then
2591             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2592           fi
2593
2594           if test "$wxUSE_UNIVERSAL" = yes; then
2595             echo "$as_me:$LINENO: result: yes" >&5
2596 echo "${ECHO_T}yes" >&6
2597           else
2598             echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6
2600           fi
2601
2602
2603 # Check whether --with-gtk or --without-gtk was given.
2604 if test "${with_gtk+set}" = set; then
2605   withval="$with_gtk"
2606   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2607 fi;
2608
2609 # Check whether --with-motif or --without-motif was given.
2610 if test "${with_motif+set}" = set; then
2611   withval="$with_motif"
2612   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2613 fi;
2614
2615 # Check whether --with-mac or --without-mac was given.
2616 if test "${with_mac+set}" = set; then
2617   withval="$with_mac"
2618   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2619 fi;
2620
2621 # Check whether --with-cocoa or --without-cocoa was given.
2622 if test "${with_cocoa+set}" = set; then
2623   withval="$with_cocoa"
2624   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2625 fi;
2626
2627 # Check whether --with-wine or --without-wine was given.
2628 if test "${with_wine+set}" = set; then
2629   withval="$with_wine"
2630   wxUSE_WINE="$withval" CACHE_WINE=1
2631 fi;
2632
2633 # Check whether --with-msw or --without-msw was given.
2634 if test "${with_msw+set}" = set; then
2635   withval="$with_msw"
2636   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2637 fi;
2638
2639 # Check whether --with-pm or --without-pm was given.
2640 if test "${with_pm+set}" = set; then
2641   withval="$with_pm"
2642   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2643 fi;
2644
2645 # Check whether --with-mgl or --without-mgl was given.
2646 if test "${with_mgl+set}" = set; then
2647   withval="$with_mgl"
2648   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2649 fi;
2650
2651 # Check whether --with-microwin or --without-microwin was given.
2652 if test "${with_microwin+set}" = set; then
2653   withval="$with_microwin"
2654   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2655 fi;
2656
2657 # Check whether --with-x11 or --without-x11 was given.
2658 if test "${with_x11+set}" = set; then
2659   withval="$with_x11"
2660   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2661 fi;
2662
2663           enablestring=
2664           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2665 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2666           no_cache=0
2667           # Check whether --enable-nanox or --disable-nanox was given.
2668 if test "${enable_nanox+set}" = set; then
2669   enableval="$enable_nanox"
2670
2671                           if test "$enableval" = yes; then
2672                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2673                           else
2674                             ac_cv_use_nanox='wxUSE_NANOX=no'
2675                           fi
2676
2677 else
2678
2679                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2680                           if test "x$LINE" != x ; then
2681                             eval "DEFAULT_$LINE"
2682                           else
2683                             no_cache=1
2684                           fi
2685
2686                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2687
2688 fi;
2689
2690           eval "$ac_cv_use_nanox"
2691           if test "$no_cache" != 1; then
2692             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2693           fi
2694
2695           if test "$wxUSE_NANOX" = yes; then
2696             echo "$as_me:$LINENO: result: yes" >&5
2697 echo "${ECHO_T}yes" >&6
2698           else
2699             echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6
2701           fi
2702
2703
2704
2705           enablestring=
2706           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2707 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2708           no_cache=0
2709           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2710 if test "${enable_gtk2+set}" = set; then
2711   enableval="$enable_gtk2"
2712
2713                           if test "$enableval" = yes; then
2714                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2715                           else
2716                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2717                           fi
2718
2719 else
2720
2721                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2722                           if test "x$LINE" != x ; then
2723                             eval "DEFAULT_$LINE"
2724                           else
2725                             no_cache=1
2726                           fi
2727
2728                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2729
2730 fi;
2731
2732           eval "$ac_cv_use_gtk2"
2733           if test "$no_cache" != 1; then
2734             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2735           fi
2736
2737           if test "$wxUSE_GTK2" = yes; then
2738             echo "$as_me:$LINENO: result: yes" >&5
2739 echo "${ECHO_T}yes" >&6
2740           else
2741             echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6
2743           fi
2744
2745
2746           enablestring=
2747           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2748 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2749           no_cache=0
2750           # Check whether --enable-gpe or --disable-gpe was given.
2751 if test "${enable_gpe+set}" = set; then
2752   enableval="$enable_gpe"
2753
2754                           if test "$enableval" = yes; then
2755                             ac_cv_use_gpe='wxUSE_GPE=yes'
2756                           else
2757                             ac_cv_use_gpe='wxUSE_GPE=no'
2758                           fi
2759
2760 else
2761
2762                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2763                           if test "x$LINE" != x ; then
2764                             eval "DEFAULT_$LINE"
2765                           else
2766                             no_cache=1
2767                           fi
2768
2769                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2770
2771 fi;
2772
2773           eval "$ac_cv_use_gpe"
2774           if test "$no_cache" != 1; then
2775             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2776           fi
2777
2778           if test "$wxUSE_GPE" = yes; then
2779             echo "$as_me:$LINENO: result: yes" >&5
2780 echo "${ECHO_T}yes" >&6
2781           else
2782             echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2784           fi
2785
2786
2787
2788           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2789 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2790           no_cache=0
2791
2792 # Check whether --with-libpng or --without-libpng was given.
2793 if test "${with_libpng+set}" = set; then
2794   withval="$with_libpng"
2795
2796                         if test "$withval" = yes; then
2797                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2798                         elif test "$withval" = no; then
2799                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2800                         elif test "$withval" = sys; then
2801                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2802                         elif test "$withval" = builtin; then
2803                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2804                         else
2805                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2806 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2807    { (exit 1); exit 1; }; }
2808                         fi
2809
2810 else
2811
2812                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2813                         if test "x$LINE" != x ; then
2814                           eval "DEFAULT_$LINE"
2815                         else
2816                           no_cache=1
2817                         fi
2818
2819                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2820
2821 fi;
2822
2823           eval "$ac_cv_use_libpng"
2824           if test "$no_cache" != 1; then
2825             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2826           fi
2827
2828           if test "$wxUSE_LIBPNG" = yes; then
2829             echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6
2831           elif test "$wxUSE_LIBPNG" = no; then
2832             echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2834           elif test "$wxUSE_LIBPNG" = sys; then
2835             echo "$as_me:$LINENO: result: system version" >&5
2836 echo "${ECHO_T}system version" >&6
2837           elif test "$wxUSE_LIBPNG" = builtin; then
2838             echo "$as_me:$LINENO: result: builtin version" >&5
2839 echo "${ECHO_T}builtin version" >&6
2840           else
2841             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2842 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2843    { (exit 1); exit 1; }; }
2844           fi
2845
2846
2847           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2848 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2849           no_cache=0
2850
2851 # Check whether --with-libjpeg or --without-libjpeg was given.
2852 if test "${with_libjpeg+set}" = set; then
2853   withval="$with_libjpeg"
2854
2855                         if test "$withval" = yes; then
2856                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2857                         elif test "$withval" = no; then
2858                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2859                         elif test "$withval" = sys; then
2860                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2861                         elif test "$withval" = builtin; then
2862                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2863                         else
2864                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2865 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2866    { (exit 1); exit 1; }; }
2867                         fi
2868
2869 else
2870
2871                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2872                         if test "x$LINE" != x ; then
2873                           eval "DEFAULT_$LINE"
2874                         else
2875                           no_cache=1
2876                         fi
2877
2878                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2879
2880 fi;
2881
2882           eval "$ac_cv_use_libjpeg"
2883           if test "$no_cache" != 1; then
2884             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2885           fi
2886
2887           if test "$wxUSE_LIBJPEG" = yes; then
2888             echo "$as_me:$LINENO: result: yes" >&5
2889 echo "${ECHO_T}yes" >&6
2890           elif test "$wxUSE_LIBJPEG" = no; then
2891             echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6
2893           elif test "$wxUSE_LIBJPEG" = sys; then
2894             echo "$as_me:$LINENO: result: system version" >&5
2895 echo "${ECHO_T}system version" >&6
2896           elif test "$wxUSE_LIBJPEG" = builtin; then
2897             echo "$as_me:$LINENO: result: builtin version" >&5
2898 echo "${ECHO_T}builtin version" >&6
2899           else
2900             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2901 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2902    { (exit 1); exit 1; }; }
2903           fi
2904
2905
2906           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2907 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2908           no_cache=0
2909
2910 # Check whether --with-libtiff or --without-libtiff was given.
2911 if test "${with_libtiff+set}" = set; then
2912   withval="$with_libtiff"
2913
2914                         if test "$withval" = yes; then
2915                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2916                         elif test "$withval" = no; then
2917                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2918                         elif test "$withval" = sys; then
2919                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2920                         elif test "$withval" = builtin; then
2921                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2922                         else
2923                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2924 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2925    { (exit 1); exit 1; }; }
2926                         fi
2927
2928 else
2929
2930                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2931                         if test "x$LINE" != x ; then
2932                           eval "DEFAULT_$LINE"
2933                         else
2934                           no_cache=1
2935                         fi
2936
2937                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2938
2939 fi;
2940
2941           eval "$ac_cv_use_libtiff"
2942           if test "$no_cache" != 1; then
2943             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2944           fi
2945
2946           if test "$wxUSE_LIBTIFF" = yes; then
2947             echo "$as_me:$LINENO: result: yes" >&5
2948 echo "${ECHO_T}yes" >&6
2949           elif test "$wxUSE_LIBTIFF" = no; then
2950             echo "$as_me:$LINENO: result: no" >&5
2951 echo "${ECHO_T}no" >&6
2952           elif test "$wxUSE_LIBTIFF" = sys; then
2953             echo "$as_me:$LINENO: result: system version" >&5
2954 echo "${ECHO_T}system version" >&6
2955           elif test "$wxUSE_LIBTIFF" = builtin; then
2956             echo "$as_me:$LINENO: result: builtin version" >&5
2957 echo "${ECHO_T}builtin version" >&6
2958           else
2959             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2960 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2961    { (exit 1); exit 1; }; }
2962           fi
2963
2964
2965           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2966 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2967           no_cache=0
2968
2969 # Check whether --with-libxpm or --without-libxpm was given.
2970 if test "${with_libxpm+set}" = set; then
2971   withval="$with_libxpm"
2972
2973                         if test "$withval" = yes; then
2974                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2975                         elif test "$withval" = no; then
2976                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2977                         elif test "$withval" = sys; then
2978                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2979                         elif test "$withval" = builtin; then
2980                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2981                         else
2982                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2983 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2984    { (exit 1); exit 1; }; }
2985                         fi
2986
2987 else
2988
2989                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2990                         if test "x$LINE" != x ; then
2991                           eval "DEFAULT_$LINE"
2992                         else
2993                           no_cache=1
2994                         fi
2995
2996                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2997
2998 fi;
2999
3000           eval "$ac_cv_use_libxpm"
3001           if test "$no_cache" != 1; then
3002             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3003           fi
3004
3005           if test "$wxUSE_LIBXPM" = yes; then
3006             echo "$as_me:$LINENO: result: yes" >&5
3007 echo "${ECHO_T}yes" >&6
3008           elif test "$wxUSE_LIBXPM" = no; then
3009             echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3011           elif test "$wxUSE_LIBXPM" = sys; then
3012             echo "$as_me:$LINENO: result: system version" >&5
3013 echo "${ECHO_T}system version" >&6
3014           elif test "$wxUSE_LIBXPM" = builtin; then
3015             echo "$as_me:$LINENO: result: builtin version" >&5
3016 echo "${ECHO_T}builtin version" >&6
3017           else
3018             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3019 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3020    { (exit 1); exit 1; }; }
3021           fi
3022
3023
3024           echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3025 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3026           no_cache=0
3027
3028 # Check whether --with-libmspack or --without-libmspack was given.
3029 if test "${with_libmspack+set}" = set; then
3030   withval="$with_libmspack"
3031
3032                         if test "$withval" = yes; then
3033                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3034                         else
3035                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3036                         fi
3037
3038 else
3039
3040                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3041                         if test "x$LINE" != x ; then
3042                           eval "DEFAULT_$LINE"
3043                         else
3044                           no_cache=1
3045                         fi
3046
3047                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3048
3049 fi;
3050
3051           eval "$ac_cv_use_libmspack"
3052           if test "$no_cache" != 1; then
3053             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3054           fi
3055
3056           if test "$wxUSE_LIBMSPACK" = yes; then
3057             echo "$as_me:$LINENO: result: yes" >&5
3058 echo "${ECHO_T}yes" >&6
3059           else
3060             echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6
3062           fi
3063
3064
3065           echo "$as_me:$LINENO: checking for --with-sdl" >&5
3066 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3067           no_cache=0
3068
3069 # Check whether --with-sdl or --without-sdl was given.
3070 if test "${with_sdl+set}" = set; then
3071   withval="$with_sdl"
3072
3073                         if test "$withval" = yes; then
3074                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3075                         else
3076                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3077                         fi
3078
3079 else
3080
3081                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3082                         if test "x$LINE" != x ; then
3083                           eval "DEFAULT_$LINE"
3084                         else
3085                           no_cache=1
3086                         fi
3087
3088                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3089
3090 fi;
3091
3092           eval "$ac_cv_use_sdl"
3093           if test "$no_cache" != 1; then
3094             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3095           fi
3096
3097           if test "$wxUSE_LIBSDL" = yes; then
3098             echo "$as_me:$LINENO: result: yes" >&5
3099 echo "${ECHO_T}yes" >&6
3100           else
3101             echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3103           fi
3104
3105
3106           echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3107 echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3108           no_cache=0
3109
3110 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3111 if test "${with_gnomeprint+set}" = set; then
3112   withval="$with_gnomeprint"
3113
3114                         if test "$withval" = yes; then
3115                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3116                         else
3117                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3118                         fi
3119
3120 else
3121
3122                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3123                         if test "x$LINE" != x ; then
3124                           eval "DEFAULT_$LINE"
3125                         else
3126                           no_cache=1
3127                         fi
3128
3129                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3130
3131 fi;
3132
3133           eval "$ac_cv_use_gnomeprint"
3134           if test "$no_cache" != 1; then
3135             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3136           fi
3137
3138           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3139             echo "$as_me:$LINENO: result: yes" >&5
3140 echo "${ECHO_T}yes" >&6
3141           else
3142             echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3144           fi
3145
3146
3147           echo "$as_me:$LINENO: checking for --with-opengl" >&5
3148 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3149           no_cache=0
3150
3151 # Check whether --with-opengl or --without-opengl was given.
3152 if test "${with_opengl+set}" = set; then
3153   withval="$with_opengl"
3154
3155                         if test "$withval" = yes; then
3156                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3157                         else
3158                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3159                         fi
3160
3161 else
3162
3163                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3164                         if test "x$LINE" != x ; then
3165                           eval "DEFAULT_$LINE"
3166                         else
3167                           no_cache=1
3168                         fi
3169
3170                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3171
3172 fi;
3173
3174           eval "$ac_cv_use_opengl"
3175           if test "$no_cache" != 1; then
3176             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3177           fi
3178
3179           if test "$wxUSE_OPENGL" = yes; then
3180             echo "$as_me:$LINENO: result: yes" >&5
3181 echo "${ECHO_T}yes" >&6
3182           else
3183             echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3185           fi
3186
3187
3188 fi
3189
3190
3191           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3192 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3193           no_cache=0
3194
3195 # Check whether --with-dmalloc or --without-dmalloc was given.
3196 if test "${with_dmalloc+set}" = set; then
3197   withval="$with_dmalloc"
3198
3199                         if test "$withval" = yes; then
3200                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3201                         else
3202                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3203                         fi
3204
3205 else
3206
3207                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3208                         if test "x$LINE" != x ; then
3209                           eval "DEFAULT_$LINE"
3210                         else
3211                           no_cache=1
3212                         fi
3213
3214                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3215
3216 fi;
3217
3218           eval "$ac_cv_use_dmalloc"
3219           if test "$no_cache" != 1; then
3220             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3221           fi
3222
3223           if test "$wxUSE_DMALLOC" = yes; then
3224             echo "$as_me:$LINENO: result: yes" >&5
3225 echo "${ECHO_T}yes" >&6
3226           else
3227             echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3229           fi
3230
3231
3232           echo "$as_me:$LINENO: checking for --with-regex" >&5
3233 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3234           no_cache=0
3235
3236 # Check whether --with-regex or --without-regex was given.
3237 if test "${with_regex+set}" = set; then
3238   withval="$with_regex"
3239
3240                         if test "$withval" = yes; then
3241                           ac_cv_use_regex='wxUSE_REGEX=yes'
3242                         elif test "$withval" = no; then
3243                           ac_cv_use_regex='wxUSE_REGEX=no'
3244                         elif test "$withval" = sys; then
3245                           ac_cv_use_regex='wxUSE_REGEX=sys'
3246                         elif test "$withval" = builtin; then
3247                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3248                         else
3249                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3250 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3251    { (exit 1); exit 1; }; }
3252                         fi
3253
3254 else
3255
3256                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3257                         if test "x$LINE" != x ; then
3258                           eval "DEFAULT_$LINE"
3259                         else
3260                           no_cache=1
3261                         fi
3262
3263                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3264
3265 fi;
3266
3267           eval "$ac_cv_use_regex"
3268           if test "$no_cache" != 1; then
3269             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3270           fi
3271
3272           if test "$wxUSE_REGEX" = yes; then
3273             echo "$as_me:$LINENO: result: yes" >&5
3274 echo "${ECHO_T}yes" >&6
3275           elif test "$wxUSE_REGEX" = no; then
3276             echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6
3278           elif test "$wxUSE_REGEX" = sys; then
3279             echo "$as_me:$LINENO: result: system version" >&5
3280 echo "${ECHO_T}system version" >&6
3281           elif test "$wxUSE_REGEX" = builtin; then
3282             echo "$as_me:$LINENO: result: builtin version" >&5
3283 echo "${ECHO_T}builtin version" >&6
3284           else
3285             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3286 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3287    { (exit 1); exit 1; }; }
3288           fi
3289
3290
3291           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3292 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3293           no_cache=0
3294
3295 # Check whether --with-zlib or --without-zlib was given.
3296 if test "${with_zlib+set}" = set; then
3297   withval="$with_zlib"
3298
3299                         if test "$withval" = yes; then
3300                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3301                         elif test "$withval" = no; then
3302                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3303                         elif test "$withval" = sys; then
3304                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3305                         elif test "$withval" = builtin; then
3306                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3307                         else
3308                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3309 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3310    { (exit 1); exit 1; }; }
3311                         fi
3312
3313 else
3314
3315                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3316                         if test "x$LINE" != x ; then
3317                           eval "DEFAULT_$LINE"
3318                         else
3319                           no_cache=1
3320                         fi
3321
3322                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3323
3324 fi;
3325
3326           eval "$ac_cv_use_zlib"
3327           if test "$no_cache" != 1; then
3328             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3329           fi
3330
3331           if test "$wxUSE_ZLIB" = yes; then
3332             echo "$as_me:$LINENO: result: yes" >&5
3333 echo "${ECHO_T}yes" >&6
3334           elif test "$wxUSE_ZLIB" = no; then
3335             echo "$as_me:$LINENO: result: no" >&5
3336 echo "${ECHO_T}no" >&6
3337           elif test "$wxUSE_ZLIB" = sys; then
3338             echo "$as_me:$LINENO: result: system version" >&5
3339 echo "${ECHO_T}system version" >&6
3340           elif test "$wxUSE_ZLIB" = builtin; then
3341             echo "$as_me:$LINENO: result: builtin version" >&5
3342 echo "${ECHO_T}builtin version" >&6
3343           else
3344             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3345 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3346    { (exit 1); exit 1; }; }
3347           fi
3348
3349
3350           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3351 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3352           no_cache=0
3353
3354 # Check whether --with-odbc or --without-odbc was given.
3355 if test "${with_odbc+set}" = set; then
3356   withval="$with_odbc"
3357
3358                         if test "$withval" = yes; then
3359                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3360                         elif test "$withval" = no; then
3361                           ac_cv_use_odbc='wxUSE_ODBC=no'
3362                         elif test "$withval" = sys; then
3363                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3364                         elif test "$withval" = builtin; then
3365                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3366                         else
3367                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3368 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3369    { (exit 1); exit 1; }; }
3370                         fi
3371
3372 else
3373
3374                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3375                         if test "x$LINE" != x ; then
3376                           eval "DEFAULT_$LINE"
3377                         else
3378                           no_cache=1
3379                         fi
3380
3381                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3382
3383 fi;
3384
3385           eval "$ac_cv_use_odbc"
3386           if test "$no_cache" != 1; then
3387             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3388           fi
3389
3390           if test "$wxUSE_ODBC" = yes; then
3391             echo "$as_me:$LINENO: result: yes" >&5
3392 echo "${ECHO_T}yes" >&6
3393           elif test "$wxUSE_ODBC" = no; then
3394             echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3396           elif test "$wxUSE_ODBC" = sys; then
3397             echo "$as_me:$LINENO: result: system version" >&5
3398 echo "${ECHO_T}system version" >&6
3399           elif test "$wxUSE_ODBC" = builtin; then
3400             echo "$as_me:$LINENO: result: builtin version" >&5
3401 echo "${ECHO_T}builtin version" >&6
3402           else
3403             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3404 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3405    { (exit 1); exit 1; }; }
3406           fi
3407
3408
3409           echo "$as_me:$LINENO: checking for --with-expat" >&5
3410 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3411           no_cache=0
3412
3413 # Check whether --with-expat or --without-expat was given.
3414 if test "${with_expat+set}" = set; then
3415   withval="$with_expat"
3416
3417                         if test "$withval" = yes; then
3418                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3419                         elif test "$withval" = no; then
3420                           ac_cv_use_expat='wxUSE_EXPAT=no'
3421                         elif test "$withval" = sys; then
3422                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3423                         elif test "$withval" = builtin; then
3424                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3425                         else
3426                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3427 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3428    { (exit 1); exit 1; }; }
3429                         fi
3430
3431 else
3432
3433                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3434                         if test "x$LINE" != x ; then
3435                           eval "DEFAULT_$LINE"
3436                         else
3437                           no_cache=1
3438                         fi
3439
3440                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3441
3442 fi;
3443
3444           eval "$ac_cv_use_expat"
3445           if test "$no_cache" != 1; then
3446             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3447           fi
3448
3449           if test "$wxUSE_EXPAT" = yes; then
3450             echo "$as_me:$LINENO: result: yes" >&5
3451 echo "${ECHO_T}yes" >&6
3452           elif test "$wxUSE_EXPAT" = no; then
3453             echo "$as_me:$LINENO: result: no" >&5
3454 echo "${ECHO_T}no" >&6
3455           elif test "$wxUSE_EXPAT" = sys; then
3456             echo "$as_me:$LINENO: result: system version" >&5
3457 echo "${ECHO_T}system version" >&6
3458           elif test "$wxUSE_EXPAT" = builtin; then
3459             echo "$as_me:$LINENO: result: builtin version" >&5
3460 echo "${ECHO_T}builtin version" >&6
3461           else
3462             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3463 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3464    { (exit 1); exit 1; }; }
3465           fi
3466
3467
3468
3469
3470           enablestring=
3471           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3472 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3473           no_cache=0
3474           # Check whether --enable-shared or --disable-shared was given.
3475 if test "${enable_shared+set}" = set; then
3476   enableval="$enable_shared"
3477
3478                           if test "$enableval" = yes; then
3479                             ac_cv_use_shared='wxUSE_SHARED=yes'
3480                           else
3481                             ac_cv_use_shared='wxUSE_SHARED=no'
3482                           fi
3483
3484 else
3485
3486                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3487                           if test "x$LINE" != x ; then
3488                             eval "DEFAULT_$LINE"
3489                           else
3490                             no_cache=1
3491                           fi
3492
3493                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3494
3495 fi;
3496
3497           eval "$ac_cv_use_shared"
3498           if test "$no_cache" != 1; then
3499             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3500           fi
3501
3502           if test "$wxUSE_SHARED" = yes; then
3503             echo "$as_me:$LINENO: result: yes" >&5
3504 echo "${ECHO_T}yes" >&6
3505           else
3506             echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3508           fi
3509
3510
3511           enablestring=
3512           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3513 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3514           no_cache=0
3515           # Check whether --enable-optimise or --disable-optimise was given.
3516 if test "${enable_optimise+set}" = set; then
3517   enableval="$enable_optimise"
3518
3519                           if test "$enableval" = yes; then
3520                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3521                           else
3522                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3523                           fi
3524
3525 else
3526
3527                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3528                           if test "x$LINE" != x ; then
3529                             eval "DEFAULT_$LINE"
3530                           else
3531                             no_cache=1
3532                           fi
3533
3534                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3535
3536 fi;
3537
3538           eval "$ac_cv_use_optimise"
3539           if test "$no_cache" != 1; then
3540             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3541           fi
3542
3543           if test "$wxUSE_OPTIMISE" = yes; then
3544             echo "$as_me:$LINENO: result: yes" >&5
3545 echo "${ECHO_T}yes" >&6
3546           else
3547             echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3549           fi
3550
3551
3552           enablestring=
3553           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3554 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3555           no_cache=0
3556           # Check whether --enable-debug or --disable-debug was given.
3557 if test "${enable_debug+set}" = set; then
3558   enableval="$enable_debug"
3559
3560                           if test "$enableval" = yes; then
3561                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3562                           else
3563                             ac_cv_use_debug='wxUSE_DEBUG=no'
3564                           fi
3565
3566 else
3567
3568                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3569                           if test "x$LINE" != x ; then
3570                             eval "DEFAULT_$LINE"
3571                           else
3572                             no_cache=1
3573                           fi
3574
3575                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3576
3577 fi;
3578
3579           eval "$ac_cv_use_debug"
3580           if test "$no_cache" != 1; then
3581             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3582           fi
3583
3584           if test "$wxUSE_DEBUG" = yes; then
3585             echo "$as_me:$LINENO: result: yes" >&5
3586 echo "${ECHO_T}yes" >&6
3587           else
3588             echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3590           fi
3591
3592
3593           enablestring=
3594           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3595 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3596           no_cache=0
3597           # Check whether --enable-stl or --disable-stl was given.
3598 if test "${enable_stl+set}" = set; then
3599   enableval="$enable_stl"
3600
3601                           if test "$enableval" = yes; then
3602                             ac_cv_use_stl='wxUSE_STL=yes'
3603                           else
3604                             ac_cv_use_stl='wxUSE_STL=no'
3605                           fi
3606
3607 else
3608
3609                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3610                           if test "x$LINE" != x ; then
3611                             eval "DEFAULT_$LINE"
3612                           else
3613                             no_cache=1
3614                           fi
3615
3616                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3617
3618 fi;
3619
3620           eval "$ac_cv_use_stl"
3621           if test "$no_cache" != 1; then
3622             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3623           fi
3624
3625           if test "$wxUSE_STL" = yes; then
3626             echo "$as_me:$LINENO: result: yes" >&5
3627 echo "${ECHO_T}yes" >&6
3628           else
3629             echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6
3631           fi
3632
3633 if test "$USE_OS2" = "1"; then
3634     DEFAULT_wxUSE_OMF=no
3635
3636           enablestring=
3637           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3638 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3639           no_cache=0
3640           # Check whether --enable-omf or --disable-omf was given.
3641 if test "${enable_omf+set}" = set; then
3642   enableval="$enable_omf"
3643
3644                           if test "$enableval" = yes; then
3645                             ac_cv_use_omf='wxUSE_OMF=yes'
3646                           else
3647                             ac_cv_use_omf='wxUSE_OMF=no'
3648                           fi
3649
3650 else
3651
3652                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3653                           if test "x$LINE" != x ; then
3654                             eval "DEFAULT_$LINE"
3655                           else
3656                             no_cache=1
3657                           fi
3658
3659                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3660
3661 fi;
3662
3663           eval "$ac_cv_use_omf"
3664           if test "$no_cache" != 1; then
3665             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3666           fi
3667
3668           if test "$wxUSE_OMF" = yes; then
3669             echo "$as_me:$LINENO: result: yes" >&5
3670 echo "${ECHO_T}yes" >&6
3671           else
3672             echo "$as_me:$LINENO: result: no" >&5
3673 echo "${ECHO_T}no" >&6
3674           fi
3675
3676 fi
3677
3678 if test "$wxUSE_DEBUG" = "yes"; then
3679   DEFAULT_wxUSE_DEBUG_FLAG=yes
3680   DEFAULT_wxUSE_DEBUG_INFO=yes
3681   BUILD=debug
3682 elif test "$wxUSE_DEBUG" = "no"; then
3683   DEFAULT_wxUSE_DEBUG_FLAG=no
3684   DEFAULT_wxUSE_DEBUG_INFO=no
3685   BUILD=release
3686 fi
3687
3688
3689           enablestring=
3690           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3691 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3692           no_cache=0
3693           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3694 if test "${enable_debug_flag+set}" = set; then
3695   enableval="$enable_debug_flag"
3696
3697                           if test "$enableval" = yes; then
3698                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3699                           else
3700                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3701                           fi
3702
3703 else
3704
3705                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3706                           if test "x$LINE" != x ; then
3707                             eval "DEFAULT_$LINE"
3708                           else
3709                             no_cache=1
3710                           fi
3711
3712                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3713
3714 fi;
3715
3716           eval "$ac_cv_use_debug_flag"
3717           if test "$no_cache" != 1; then
3718             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3719           fi
3720
3721           if test "$wxUSE_DEBUG_FLAG" = yes; then
3722             echo "$as_me:$LINENO: result: yes" >&5
3723 echo "${ECHO_T}yes" >&6
3724           else
3725             echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3727           fi
3728
3729
3730           enablestring=
3731           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3732 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3733           no_cache=0
3734           # Check whether --enable-debug_info or --disable-debug_info was given.
3735 if test "${enable_debug_info+set}" = set; then
3736   enableval="$enable_debug_info"
3737
3738                           if test "$enableval" = yes; then
3739                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3740                           else
3741                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3742                           fi
3743
3744 else
3745
3746                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3747                           if test "x$LINE" != x ; then
3748                             eval "DEFAULT_$LINE"
3749                           else
3750                             no_cache=1
3751                           fi
3752
3753                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3754
3755 fi;
3756
3757           eval "$ac_cv_use_debug_info"
3758           if test "$no_cache" != 1; then
3759             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3760           fi
3761
3762           if test "$wxUSE_DEBUG_INFO" = yes; then
3763             echo "$as_me:$LINENO: result: yes" >&5
3764 echo "${ECHO_T}yes" >&6
3765           else
3766             echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3768           fi
3769
3770
3771           enablestring=
3772           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3773 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3774           no_cache=0
3775           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3776 if test "${enable_debug_gdb+set}" = set; then
3777   enableval="$enable_debug_gdb"
3778
3779                           if test "$enableval" = yes; then
3780                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3781                           else
3782                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3783                           fi
3784
3785 else
3786
3787                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3788                           if test "x$LINE" != x ; then
3789                             eval "DEFAULT_$LINE"
3790                           else
3791                             no_cache=1
3792                           fi
3793
3794                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3795
3796 fi;
3797
3798           eval "$ac_cv_use_debug_gdb"
3799           if test "$no_cache" != 1; then
3800             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3801           fi
3802
3803           if test "$wxUSE_DEBUG_GDB" = yes; then
3804             echo "$as_me:$LINENO: result: yes" >&5
3805 echo "${ECHO_T}yes" >&6
3806           else
3807             echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6
3809           fi
3810
3811
3812           enablestring=
3813           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3814 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3815           no_cache=0
3816           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3817 if test "${enable_debug_cntxt+set}" = set; then
3818   enableval="$enable_debug_cntxt"
3819
3820                           if test "$enableval" = yes; then
3821                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3822                           else
3823                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3824                           fi
3825
3826 else
3827
3828                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3829                           if test "x$LINE" != x ; then
3830                             eval "DEFAULT_$LINE"
3831                           else
3832                             no_cache=1
3833                           fi
3834
3835                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3836
3837 fi;
3838
3839           eval "$ac_cv_use_debug_cntxt"
3840           if test "$no_cache" != 1; then
3841             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3842           fi
3843
3844           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3845             echo "$as_me:$LINENO: result: yes" >&5
3846 echo "${ECHO_T}yes" >&6
3847           else
3848             echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3850           fi
3851
3852
3853           enablestring=
3854           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3855 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3856           no_cache=0
3857           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3858 if test "${enable_mem_tracing+set}" = set; then
3859   enableval="$enable_mem_tracing"
3860
3861                           if test "$enableval" = yes; then
3862                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3863                           else
3864                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3865                           fi
3866
3867 else
3868
3869                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3870                           if test "x$LINE" != x ; then
3871                             eval "DEFAULT_$LINE"
3872                           else
3873                             no_cache=1
3874                           fi
3875
3876                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3877
3878 fi;
3879
3880           eval "$ac_cv_use_mem_tracing"
3881           if test "$no_cache" != 1; then
3882             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3883           fi
3884
3885           if test "$wxUSE_MEM_TRACING" = yes; then
3886             echo "$as_me:$LINENO: result: yes" >&5
3887 echo "${ECHO_T}yes" >&6
3888           else
3889             echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3891           fi
3892
3893
3894           enablestring=
3895           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3896 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3897           no_cache=0
3898           # Check whether --enable-profile or --disable-profile was given.
3899 if test "${enable_profile+set}" = set; then
3900   enableval="$enable_profile"
3901
3902                           if test "$enableval" = yes; then
3903                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3904                           else
3905                             ac_cv_use_profile='wxUSE_PROFILE=no'
3906                           fi
3907
3908 else
3909
3910                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3911                           if test "x$LINE" != x ; then
3912                             eval "DEFAULT_$LINE"
3913                           else
3914                             no_cache=1
3915                           fi
3916
3917                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3918
3919 fi;
3920
3921           eval "$ac_cv_use_profile"
3922           if test "$no_cache" != 1; then
3923             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3924           fi
3925
3926           if test "$wxUSE_PROFILE" = yes; then
3927             echo "$as_me:$LINENO: result: yes" >&5
3928 echo "${ECHO_T}yes" >&6
3929           else
3930             echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3932           fi
3933
3934
3935           enablestring=
3936           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3937 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3938           no_cache=0
3939           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3940 if test "${enable_no_rtti+set}" = set; then
3941   enableval="$enable_no_rtti"
3942
3943                           if test "$enableval" = yes; then
3944                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3945                           else
3946                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3947                           fi
3948
3949 else
3950
3951                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3952                           if test "x$LINE" != x ; then
3953                             eval "DEFAULT_$LINE"
3954                           else
3955                             no_cache=1
3956                           fi
3957
3958                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3959
3960 fi;
3961
3962           eval "$ac_cv_use_no_rtti"
3963           if test "$no_cache" != 1; then
3964             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3965           fi
3966
3967           if test "$wxUSE_NO_RTTI" = yes; then
3968             echo "$as_me:$LINENO: result: yes" >&5
3969 echo "${ECHO_T}yes" >&6
3970           else
3971             echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6
3973           fi
3974
3975
3976           enablestring=
3977           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3978 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3979           no_cache=0
3980           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3981 if test "${enable_no_exceptions+set}" = set; then
3982   enableval="$enable_no_exceptions"
3983
3984                           if test "$enableval" = yes; then
3985                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3986                           else
3987                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3988                           fi
3989
3990 else
3991
3992                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3993                           if test "x$LINE" != x ; then
3994                             eval "DEFAULT_$LINE"
3995                           else
3996                             no_cache=1
3997                           fi
3998
3999                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4000
4001 fi;
4002
4003           eval "$ac_cv_use_no_exceptions"
4004           if test "$no_cache" != 1; then
4005             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4006           fi
4007
4008           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4009             echo "$as_me:$LINENO: result: yes" >&5
4010 echo "${ECHO_T}yes" >&6
4011           else
4012             echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4014           fi
4015
4016
4017           enablestring=
4018           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4019 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4020           no_cache=0
4021           # Check whether --enable-permissive or --disable-permissive was given.
4022 if test "${enable_permissive+set}" = set; then
4023   enableval="$enable_permissive"
4024
4025                           if test "$enableval" = yes; then
4026                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4027                           else
4028                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4029                           fi
4030
4031 else
4032
4033                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4034                           if test "x$LINE" != x ; then
4035                             eval "DEFAULT_$LINE"
4036                           else
4037                             no_cache=1
4038                           fi
4039
4040                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4041
4042 fi;
4043
4044           eval "$ac_cv_use_permissive"
4045           if test "$no_cache" != 1; then
4046             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4047           fi
4048
4049           if test "$wxUSE_PERMISSIVE" = yes; then
4050             echo "$as_me:$LINENO: result: yes" >&5
4051 echo "${ECHO_T}yes" >&6
4052           else
4053             echo "$as_me:$LINENO: result: no" >&5
4054 echo "${ECHO_T}no" >&6
4055           fi
4056
4057
4058           enablestring=
4059           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4060 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4061           no_cache=0
4062           # Check whether --enable-no_deps or --disable-no_deps was given.
4063 if test "${enable_no_deps+set}" = set; then
4064   enableval="$enable_no_deps"
4065
4066                           if test "$enableval" = yes; then
4067                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4068                           else
4069                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4070                           fi
4071
4072 else
4073
4074                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4075                           if test "x$LINE" != x ; then
4076                             eval "DEFAULT_$LINE"
4077                           else
4078                             no_cache=1
4079                           fi
4080
4081                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4082
4083 fi;
4084
4085           eval "$ac_cv_use_no_deps"
4086           if test "$no_cache" != 1; then
4087             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4088           fi
4089
4090           if test "$wxUSE_NO_DEPS" = yes; then
4091             echo "$as_me:$LINENO: result: yes" >&5
4092 echo "${ECHO_T}yes" >&6
4093           else
4094             echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6
4096           fi
4097
4098
4099
4100           enablestring=
4101           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4102 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4103           no_cache=0
4104           # Check whether --enable-compat22 or --disable-compat22 was given.
4105 if test "${enable_compat22+set}" = set; then
4106   enableval="$enable_compat22"
4107
4108                           if test "$enableval" = yes; then
4109                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4110                           else
4111                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4112                           fi
4113
4114 else
4115
4116                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4117                           if test "x$LINE" != x ; then
4118                             eval "DEFAULT_$LINE"
4119                           else
4120                             no_cache=1
4121                           fi
4122
4123                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4124
4125 fi;
4126
4127           eval "$ac_cv_use_compat22"
4128           if test "$no_cache" != 1; then
4129             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4130           fi
4131
4132           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4133             echo "$as_me:$LINENO: result: yes" >&5
4134 echo "${ECHO_T}yes" >&6
4135           else
4136             echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4138           fi
4139
4140
4141           enablestring=disable
4142           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4143 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4144           no_cache=0
4145           # Check whether --enable-compat24 or --disable-compat24 was given.
4146 if test "${enable_compat24+set}" = set; then
4147   enableval="$enable_compat24"
4148
4149                           if test "$enableval" = yes; then
4150                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4151                           else
4152                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4153                           fi
4154
4155 else
4156
4157                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4158                           if test "x$LINE" != x ; then
4159                             eval "DEFAULT_$LINE"
4160                           else
4161                             no_cache=1
4162                           fi
4163
4164                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4165
4166 fi;
4167
4168           eval "$ac_cv_use_compat24"
4169           if test "$no_cache" != 1; then
4170             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4171           fi
4172
4173           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4174             echo "$as_me:$LINENO: result: yes" >&5
4175 echo "${ECHO_T}yes" >&6
4176           else
4177             echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4179           fi
4180
4181
4182
4183           enablestring=
4184           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4185 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4186           no_cache=0
4187           # Check whether --enable-rpath or --disable-rpath was given.
4188 if test "${enable_rpath+set}" = set; then
4189   enableval="$enable_rpath"
4190
4191                           if test "$enableval" = yes; then
4192                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4193                           else
4194                             ac_cv_use_rpath='wxUSE_RPATH=no'
4195                           fi
4196
4197 else
4198
4199                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4200                           if test "x$LINE" != x ; then
4201                             eval "DEFAULT_$LINE"
4202                           else
4203                             no_cache=1
4204                           fi
4205
4206                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4207
4208 fi;
4209
4210           eval "$ac_cv_use_rpath"
4211           if test "$no_cache" != 1; then
4212             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4213           fi
4214
4215           if test "$wxUSE_RPATH" = yes; then
4216             echo "$as_me:$LINENO: result: yes" >&5
4217 echo "${ECHO_T}yes" >&6
4218           else
4219             echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6
4221           fi
4222
4223
4224
4225
4226
4227           enablestring=
4228           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4229 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4230           no_cache=0
4231           # Check whether --enable-intl or --disable-intl was given.
4232 if test "${enable_intl+set}" = set; then
4233   enableval="$enable_intl"
4234
4235                           if test "$enableval" = yes; then
4236                             ac_cv_use_intl='wxUSE_INTL=yes'
4237                           else
4238                             ac_cv_use_intl='wxUSE_INTL=no'
4239                           fi
4240
4241 else
4242
4243                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4244                           if test "x$LINE" != x ; then
4245                             eval "DEFAULT_$LINE"
4246                           else
4247                             no_cache=1
4248                           fi
4249
4250                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4251
4252 fi;
4253
4254           eval "$ac_cv_use_intl"
4255           if test "$no_cache" != 1; then
4256             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4257           fi
4258
4259           if test "$wxUSE_INTL" = yes; then
4260             echo "$as_me:$LINENO: result: yes" >&5
4261 echo "${ECHO_T}yes" >&6
4262           else
4263             echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4265           fi
4266
4267
4268           enablestring=
4269           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4270 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4271           no_cache=0
4272           # Check whether --enable-config or --disable-config was given.
4273 if test "${enable_config+set}" = set; then
4274   enableval="$enable_config"
4275
4276                           if test "$enableval" = yes; then
4277                             ac_cv_use_config='wxUSE_CONFIG=yes'
4278                           else
4279                             ac_cv_use_config='wxUSE_CONFIG=no'
4280                           fi
4281
4282 else
4283
4284                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4285                           if test "x$LINE" != x ; then
4286                             eval "DEFAULT_$LINE"
4287                           else
4288                             no_cache=1
4289                           fi
4290
4291                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4292
4293 fi;
4294
4295           eval "$ac_cv_use_config"
4296           if test "$no_cache" != 1; then
4297             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4298           fi
4299
4300           if test "$wxUSE_CONFIG" = yes; then
4301             echo "$as_me:$LINENO: result: yes" >&5
4302 echo "${ECHO_T}yes" >&6
4303           else
4304             echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4306           fi
4307
4308
4309
4310           enablestring=
4311           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4312 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4313           no_cache=0
4314           # Check whether --enable-protocols or --disable-protocols was given.
4315 if test "${enable_protocols+set}" = set; then
4316   enableval="$enable_protocols"
4317
4318                           if test "$enableval" = yes; then
4319                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4320                           else
4321                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4322                           fi
4323
4324 else
4325
4326                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4327                           if test "x$LINE" != x ; then
4328                             eval "DEFAULT_$LINE"
4329                           else
4330                             no_cache=1
4331                           fi
4332
4333                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4334
4335 fi;
4336
4337           eval "$ac_cv_use_protocols"
4338           if test "$no_cache" != 1; then
4339             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4340           fi
4341
4342           if test "$wxUSE_PROTOCOL" = yes; then
4343             echo "$as_me:$LINENO: result: yes" >&5
4344 echo "${ECHO_T}yes" >&6
4345           else
4346             echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4348           fi
4349
4350
4351           enablestring=
4352           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4353 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4354           no_cache=0
4355           # Check whether --enable-ftp or --disable-ftp was given.
4356 if test "${enable_ftp+set}" = set; then
4357   enableval="$enable_ftp"
4358
4359                           if test "$enableval" = yes; then
4360                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4361                           else
4362                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4363                           fi
4364
4365 else
4366
4367                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4368                           if test "x$LINE" != x ; then
4369                             eval "DEFAULT_$LINE"
4370                           else
4371                             no_cache=1
4372                           fi
4373
4374                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4375
4376 fi;
4377
4378           eval "$ac_cv_use_ftp"
4379           if test "$no_cache" != 1; then
4380             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4381           fi
4382
4383           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4384             echo "$as_me:$LINENO: result: yes" >&5
4385 echo "${ECHO_T}yes" >&6
4386           else
4387             echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6
4389           fi
4390
4391
4392           enablestring=
4393           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4394 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4395           no_cache=0
4396           # Check whether --enable-http or --disable-http was given.
4397 if test "${enable_http+set}" = set; then
4398   enableval="$enable_http"
4399
4400                           if test "$enableval" = yes; then
4401                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4402                           else
4403                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4404                           fi
4405
4406 else
4407
4408                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4409                           if test "x$LINE" != x ; then
4410                             eval "DEFAULT_$LINE"
4411                           else
4412                             no_cache=1
4413                           fi
4414
4415                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4416
4417 fi;
4418
4419           eval "$ac_cv_use_http"
4420           if test "$no_cache" != 1; then
4421             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4422           fi
4423
4424           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4425             echo "$as_me:$LINENO: result: yes" >&5
4426 echo "${ECHO_T}yes" >&6
4427           else
4428             echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6
4430           fi
4431
4432
4433           enablestring=
4434           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4435 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4436           no_cache=0
4437           # Check whether --enable-fileproto or --disable-fileproto was given.
4438 if test "${enable_fileproto+set}" = set; then
4439   enableval="$enable_fileproto"
4440
4441                           if test "$enableval" = yes; then
4442                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4443                           else
4444                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4445                           fi
4446
4447 else
4448
4449                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4450                           if test "x$LINE" != x ; then
4451                             eval "DEFAULT_$LINE"
4452                           else
4453                             no_cache=1
4454                           fi
4455
4456                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4457
4458 fi;
4459
4460           eval "$ac_cv_use_fileproto"
4461           if test "$no_cache" != 1; then
4462             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4463           fi
4464
4465           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4466             echo "$as_me:$LINENO: result: yes" >&5
4467 echo "${ECHO_T}yes" >&6
4468           else
4469             echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6
4471           fi
4472
4473
4474           enablestring=
4475           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4476 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4477           no_cache=0
4478           # Check whether --enable-sockets or --disable-sockets was given.
4479 if test "${enable_sockets+set}" = set; then
4480   enableval="$enable_sockets"
4481
4482                           if test "$enableval" = yes; then
4483                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4484                           else
4485                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4486                           fi
4487
4488 else
4489
4490                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4491                           if test "x$LINE" != x ; then
4492                             eval "DEFAULT_$LINE"
4493                           else
4494                             no_cache=1
4495                           fi
4496
4497                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4498
4499 fi;
4500
4501           eval "$ac_cv_use_sockets"
4502           if test "$no_cache" != 1; then
4503             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4504           fi
4505
4506           if test "$wxUSE_SOCKETS" = yes; then
4507             echo "$as_me:$LINENO: result: yes" >&5
4508 echo "${ECHO_T}yes" >&6
4509           else
4510             echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6
4512           fi
4513
4514
4515           enablestring=
4516           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4517 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4518           no_cache=0
4519           # Check whether --enable-ole or --disable-ole was given.
4520 if test "${enable_ole+set}" = set; then
4521   enableval="$enable_ole"
4522
4523                           if test "$enableval" = yes; then
4524                             ac_cv_use_ole='wxUSE_OLE=yes'
4525                           else
4526                             ac_cv_use_ole='wxUSE_OLE=no'
4527                           fi
4528
4529 else
4530
4531                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4532                           if test "x$LINE" != x ; then
4533                             eval "DEFAULT_$LINE"
4534                           else
4535                             no_cache=1
4536                           fi
4537
4538                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4539
4540 fi;
4541
4542           eval "$ac_cv_use_ole"
4543           if test "$no_cache" != 1; then
4544             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4545           fi
4546
4547           if test "$wxUSE_OLE" = yes; then
4548             echo "$as_me:$LINENO: result: yes" >&5
4549 echo "${ECHO_T}yes" >&6
4550           else
4551             echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6
4553           fi
4554
4555
4556           enablestring=
4557           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4558 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4559           no_cache=0
4560           # Check whether --enable-dataobj or --disable-dataobj was given.
4561 if test "${enable_dataobj+set}" = set; then
4562   enableval="$enable_dataobj"
4563
4564                           if test "$enableval" = yes; then
4565                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4566                           else
4567                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4568                           fi
4569
4570 else
4571
4572                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4573                           if test "x$LINE" != x ; then
4574                             eval "DEFAULT_$LINE"
4575                           else
4576                             no_cache=1
4577                           fi
4578
4579                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4580
4581 fi;
4582
4583           eval "$ac_cv_use_dataobj"
4584           if test "$no_cache" != 1; then
4585             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4586           fi
4587
4588           if test "$wxUSE_DATAOBJ" = yes; then
4589             echo "$as_me:$LINENO: result: yes" >&5
4590 echo "${ECHO_T}yes" >&6
4591           else
4592             echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4594           fi
4595
4596
4597
4598           enablestring=
4599           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4600 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4601           no_cache=0
4602           # Check whether --enable-ipc or --disable-ipc was given.
4603 if test "${enable_ipc+set}" = set; then
4604   enableval="$enable_ipc"
4605
4606                           if test "$enableval" = yes; then
4607                             ac_cv_use_ipc='wxUSE_IPC=yes'
4608                           else
4609                             ac_cv_use_ipc='wxUSE_IPC=no'
4610                           fi
4611
4612 else
4613
4614                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4615                           if test "x$LINE" != x ; then
4616                             eval "DEFAULT_$LINE"
4617                           else
4618                             no_cache=1
4619                           fi
4620
4621                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4622
4623 fi;
4624
4625           eval "$ac_cv_use_ipc"
4626           if test "$no_cache" != 1; then
4627             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4628           fi
4629
4630           if test "$wxUSE_IPC" = yes; then
4631             echo "$as_me:$LINENO: result: yes" >&5
4632 echo "${ECHO_T}yes" >&6
4633           else
4634             echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636           fi
4637
4638
4639
4640           enablestring=
4641           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4642 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4643           no_cache=0
4644           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4645 if test "${enable_apple_ieee+set}" = set; then
4646   enableval="$enable_apple_ieee"
4647
4648                           if test "$enableval" = yes; then
4649                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4650                           else
4651                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4652                           fi
4653
4654 else
4655
4656                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4657                           if test "x$LINE" != x ; then
4658                             eval "DEFAULT_$LINE"
4659                           else
4660                             no_cache=1
4661                           fi
4662
4663                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4664
4665 fi;
4666
4667           eval "$ac_cv_use_apple_ieee"
4668           if test "$no_cache" != 1; then
4669             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4670           fi
4671
4672           if test "$wxUSE_APPLE_IEEE" = yes; then
4673             echo "$as_me:$LINENO: result: yes" >&5
4674 echo "${ECHO_T}yes" >&6
4675           else
4676             echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4678           fi
4679
4680
4681           enablestring=
4682           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4683 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4684           no_cache=0
4685           # Check whether --enable-arcstream or --disable-arcstream was given.
4686 if test "${enable_arcstream+set}" = set; then
4687   enableval="$enable_arcstream"
4688
4689                           if test "$enableval" = yes; then
4690                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
4691                           else
4692                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
4693                           fi
4694
4695 else
4696
4697                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
4698                           if test "x$LINE" != x ; then
4699                             eval "DEFAULT_$LINE"
4700                           else
4701                             no_cache=1
4702                           fi
4703
4704                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
4705
4706 fi;
4707
4708           eval "$ac_cv_use_arcstream"
4709           if test "$no_cache" != 1; then
4710             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4711           fi
4712
4713           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
4714             echo "$as_me:$LINENO: result: yes" >&5
4715 echo "${ECHO_T}yes" >&6
4716           else
4717             echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6
4719           fi
4720
4721
4722           enablestring=
4723           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4724 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4725           no_cache=0
4726           # Check whether --enable-backtrace or --disable-backtrace was given.
4727 if test "${enable_backtrace+set}" = set; then
4728   enableval="$enable_backtrace"
4729
4730                           if test "$enableval" = yes; then
4731                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4732                           else
4733                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4734                           fi
4735
4736 else
4737
4738                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4739                           if test "x$LINE" != x ; then
4740                             eval "DEFAULT_$LINE"
4741                           else
4742                             no_cache=1
4743                           fi
4744
4745                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4746
4747 fi;
4748
4749           eval "$ac_cv_use_backtrace"
4750           if test "$no_cache" != 1; then
4751             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4752           fi
4753
4754           if test "$wxUSE_STACKWALKER" = yes; then
4755             echo "$as_me:$LINENO: result: yes" >&5
4756 echo "${ECHO_T}yes" >&6
4757           else
4758             echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6
4760           fi
4761
4762
4763           enablestring=
4764           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4765 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4766           no_cache=0
4767           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4768 if test "${enable_catch_segvs+set}" = set; then
4769   enableval="$enable_catch_segvs"
4770
4771                           if test "$enableval" = yes; then
4772                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4773                           else
4774                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4775                           fi
4776
4777 else
4778
4779                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4780                           if test "x$LINE" != x ; then
4781                             eval "DEFAULT_$LINE"
4782                           else
4783                             no_cache=1
4784                           fi
4785
4786                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4787
4788 fi;
4789
4790           eval "$ac_cv_use_catch_segvs"
4791           if test "$no_cache" != 1; then
4792             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4793           fi
4794
4795           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4796             echo "$as_me:$LINENO: result: yes" >&5
4797 echo "${ECHO_T}yes" >&6
4798           else
4799             echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6
4801           fi
4802
4803
4804           enablestring=
4805           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4806 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4807           no_cache=0
4808           # Check whether --enable-cmdline or --disable-cmdline was given.
4809 if test "${enable_cmdline+set}" = set; then
4810   enableval="$enable_cmdline"
4811
4812                           if test "$enableval" = yes; then
4813                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4814                           else
4815                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4816                           fi
4817
4818 else
4819
4820                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4821                           if test "x$LINE" != x ; then
4822                             eval "DEFAULT_$LINE"
4823                           else
4824                             no_cache=1
4825                           fi
4826
4827                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4828
4829 fi;
4830
4831           eval "$ac_cv_use_cmdline"
4832           if test "$no_cache" != 1; then
4833             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4834           fi
4835
4836           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4837             echo "$as_me:$LINENO: result: yes" >&5
4838 echo "${ECHO_T}yes" >&6
4839           else
4840             echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4842           fi
4843
4844
4845           enablestring=
4846           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4847 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4848           no_cache=0
4849           # Check whether --enable-datetime or --disable-datetime was given.
4850 if test "${enable_datetime+set}" = set; then
4851   enableval="$enable_datetime"
4852
4853                           if test "$enableval" = yes; then
4854                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4855                           else
4856                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4857                           fi
4858
4859 else
4860
4861                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4862                           if test "x$LINE" != x ; then
4863                             eval "DEFAULT_$LINE"
4864                           else
4865                             no_cache=1
4866                           fi
4867
4868                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4869
4870 fi;
4871
4872           eval "$ac_cv_use_datetime"
4873           if test "$no_cache" != 1; then
4874             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4875           fi
4876
4877           if test "$wxUSE_DATETIME" = yes; then
4878             echo "$as_me:$LINENO: result: yes" >&5
4879 echo "${ECHO_T}yes" >&6
4880           else
4881             echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6
4883           fi
4884
4885
4886           enablestring=
4887           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4888 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4889           no_cache=0
4890           # Check whether --enable-debugreport or --disable-debugreport was given.
4891 if test "${enable_debugreport+set}" = set; then
4892   enableval="$enable_debugreport"
4893
4894                           if test "$enableval" = yes; then
4895                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4896                           else
4897                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4898                           fi
4899
4900 else
4901
4902                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4903                           if test "x$LINE" != x ; then
4904                             eval "DEFAULT_$LINE"
4905                           else
4906                             no_cache=1
4907                           fi
4908
4909                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4910
4911 fi;
4912
4913           eval "$ac_cv_use_debugreport"
4914           if test "$no_cache" != 1; then
4915             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4916           fi
4917
4918           if test "$wxUSE_DEBUGREPORT" = yes; then
4919             echo "$as_me:$LINENO: result: yes" >&5
4920 echo "${ECHO_T}yes" >&6
4921           else
4922             echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6
4924           fi
4925
4926
4927           enablestring=
4928           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4929 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4930           no_cache=0
4931           # Check whether --enable-dialupman or --disable-dialupman was given.
4932 if test "${enable_dialupman+set}" = set; then
4933   enableval="$enable_dialupman"
4934
4935                           if test "$enableval" = yes; then
4936                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4937                           else
4938                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4939                           fi
4940
4941 else
4942
4943                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4944                           if test "x$LINE" != x ; then
4945                             eval "DEFAULT_$LINE"
4946                           else
4947                             no_cache=1
4948                           fi
4949
4950                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4951
4952 fi;
4953
4954           eval "$ac_cv_use_dialupman"
4955           if test "$no_cache" != 1; then
4956             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4957           fi
4958
4959           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4960             echo "$as_me:$LINENO: result: yes" >&5
4961 echo "${ECHO_T}yes" >&6
4962           else
4963             echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6
4965           fi
4966
4967
4968           enablestring=
4969           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4970 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4971           no_cache=0
4972           # Check whether --enable-dynlib or --disable-dynlib was given.
4973 if test "${enable_dynlib+set}" = set; then
4974   enableval="$enable_dynlib"
4975
4976                           if test "$enableval" = yes; then
4977                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4978                           else
4979                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4980                           fi
4981
4982 else
4983
4984                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4985                           if test "x$LINE" != x ; then
4986                             eval "DEFAULT_$LINE"
4987                           else
4988                             no_cache=1
4989                           fi
4990
4991                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4992
4993 fi;
4994
4995           eval "$ac_cv_use_dynlib"
4996           if test "$no_cache" != 1; then
4997             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4998           fi
4999
5000           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5001             echo "$as_me:$LINENO: result: yes" >&5
5002 echo "${ECHO_T}yes" >&6
5003           else
5004             echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6
5006           fi
5007
5008
5009           enablestring=
5010           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5011 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5012           no_cache=0
5013           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5014 if test "${enable_dynamicloader+set}" = set; then
5015   enableval="$enable_dynamicloader"
5016
5017                           if test "$enableval" = yes; then
5018                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5019                           else
5020                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5021                           fi
5022
5023 else
5024
5025                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5026                           if test "x$LINE" != x ; then
5027                             eval "DEFAULT_$LINE"
5028                           else
5029                             no_cache=1
5030                           fi
5031
5032                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5033
5034 fi;
5035
5036           eval "$ac_cv_use_dynamicloader"
5037           if test "$no_cache" != 1; then
5038             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5039           fi
5040
5041           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5042             echo "$as_me:$LINENO: result: yes" >&5
5043 echo "${ECHO_T}yes" >&6
5044           else
5045             echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047           fi
5048
5049
5050           enablestring=
5051           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5052 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5053           no_cache=0
5054           # Check whether --enable-exceptions or --disable-exceptions was given.
5055 if test "${enable_exceptions+set}" = set; then
5056   enableval="$enable_exceptions"
5057
5058                           if test "$enableval" = yes; then
5059                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5060                           else
5061                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5062                           fi
5063
5064 else
5065
5066                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5067                           if test "x$LINE" != x ; then
5068                             eval "DEFAULT_$LINE"
5069                           else
5070                             no_cache=1
5071                           fi
5072
5073                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5074
5075 fi;
5076
5077           eval "$ac_cv_use_exceptions"
5078           if test "$no_cache" != 1; then
5079             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5080           fi
5081
5082           if test "$wxUSE_EXCEPTIONS" = yes; then
5083             echo "$as_me:$LINENO: result: yes" >&5
5084 echo "${ECHO_T}yes" >&6
5085           else
5086             echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6
5088           fi
5089
5090
5091           enablestring=
5092           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5093 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5094           no_cache=0
5095           # Check whether --enable-ffile or --disable-ffile was given.
5096 if test "${enable_ffile+set}" = set; then
5097   enableval="$enable_ffile"
5098
5099                           if test "$enableval" = yes; then
5100                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5101                           else
5102                             ac_cv_use_ffile='wxUSE_FFILE=no'
5103                           fi
5104
5105 else
5106
5107                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5108                           if test "x$LINE" != x ; then
5109                             eval "DEFAULT_$LINE"
5110                           else
5111                             no_cache=1
5112                           fi
5113
5114                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5115
5116 fi;
5117
5118           eval "$ac_cv_use_ffile"
5119           if test "$no_cache" != 1; then
5120             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5121           fi
5122
5123           if test "$wxUSE_FFILE" = yes; then
5124             echo "$as_me:$LINENO: result: yes" >&5
5125 echo "${ECHO_T}yes" >&6
5126           else
5127             echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6
5129           fi
5130
5131
5132           enablestring=
5133           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5134 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5135           no_cache=0
5136           # Check whether --enable-file or --disable-file was given.
5137 if test "${enable_file+set}" = set; then
5138   enableval="$enable_file"
5139
5140                           if test "$enableval" = yes; then
5141                             ac_cv_use_file='wxUSE_FILE=yes'
5142                           else
5143                             ac_cv_use_file='wxUSE_FILE=no'
5144                           fi
5145
5146 else
5147
5148                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5149                           if test "x$LINE" != x ; then
5150                             eval "DEFAULT_$LINE"
5151                           else
5152                             no_cache=1
5153                           fi
5154
5155                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5156
5157 fi;
5158
5159           eval "$ac_cv_use_file"
5160           if test "$no_cache" != 1; then
5161             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5162           fi
5163
5164           if test "$wxUSE_FILE" = yes; then
5165             echo "$as_me:$LINENO: result: yes" >&5
5166 echo "${ECHO_T}yes" >&6
5167           else
5168             echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6
5170           fi
5171
5172
5173           enablestring=
5174           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5175 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5176           no_cache=0
5177           # Check whether --enable-filesystem or --disable-filesystem was given.
5178 if test "${enable_filesystem+set}" = set; then
5179   enableval="$enable_filesystem"
5180
5181                           if test "$enableval" = yes; then
5182                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5183                           else
5184                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5185                           fi
5186
5187 else
5188
5189                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5190                           if test "x$LINE" != x ; then
5191                             eval "DEFAULT_$LINE"
5192                           else
5193                             no_cache=1
5194                           fi
5195
5196                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5197
5198 fi;
5199
5200           eval "$ac_cv_use_filesystem"
5201           if test "$no_cache" != 1; then
5202             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5203           fi
5204
5205           if test "$wxUSE_FILESYSTEM" = yes; then
5206             echo "$as_me:$LINENO: result: yes" >&5
5207 echo "${ECHO_T}yes" >&6
5208           else
5209             echo "$as_me:$LINENO: result: no" >&5
5210 echo "${ECHO_T}no" >&6
5211           fi
5212
5213
5214           enablestring=
5215           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5216 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5217           no_cache=0
5218           # Check whether --enable-fontmap or --disable-fontmap was given.
5219 if test "${enable_fontmap+set}" = set; then
5220   enableval="$enable_fontmap"
5221
5222                           if test "$enableval" = yes; then
5223                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5224                           else
5225                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5226                           fi
5227
5228 else
5229
5230                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5231                           if test "x$LINE" != x ; then
5232                             eval "DEFAULT_$LINE"
5233                           else
5234                             no_cache=1
5235                           fi
5236
5237                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5238
5239 fi;
5240
5241           eval "$ac_cv_use_fontmap"
5242           if test "$no_cache" != 1; then
5243             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5244           fi
5245
5246           if test "$wxUSE_FONTMAP" = yes; then
5247             echo "$as_me:$LINENO: result: yes" >&5
5248 echo "${ECHO_T}yes" >&6
5249           else
5250             echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6
5252           fi
5253
5254
5255           enablestring=
5256           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5257 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5258           no_cache=0
5259           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5260 if test "${enable_fs_inet+set}" = set; then
5261   enableval="$enable_fs_inet"
5262
5263                           if test "$enableval" = yes; then
5264                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5265                           else
5266                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5267                           fi
5268
5269 else
5270
5271                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5272                           if test "x$LINE" != x ; then
5273                             eval "DEFAULT_$LINE"
5274                           else
5275                             no_cache=1
5276                           fi
5277
5278                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5279
5280 fi;
5281
5282           eval "$ac_cv_use_fs_inet"
5283           if test "$no_cache" != 1; then
5284             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5285           fi
5286
5287           if test "$wxUSE_FS_INET" = yes; then
5288             echo "$as_me:$LINENO: result: yes" >&5
5289 echo "${ECHO_T}yes" >&6
5290           else
5291             echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6
5293           fi
5294
5295
5296           enablestring=
5297           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5298 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5299           no_cache=0
5300           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5301 if test "${enable_fs_zip+set}" = set; then
5302   enableval="$enable_fs_zip"
5303
5304                           if test "$enableval" = yes; then
5305                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5306                           else
5307                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5308                           fi
5309
5310 else
5311
5312                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5313                           if test "x$LINE" != x ; then
5314                             eval "DEFAULT_$LINE"
5315                           else
5316                             no_cache=1
5317                           fi
5318
5319                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5320
5321 fi;
5322
5323           eval "$ac_cv_use_fs_zip"
5324           if test "$no_cache" != 1; then
5325             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5326           fi
5327
5328           if test "$wxUSE_FS_ZIP" = yes; then
5329             echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6
5331           else
5332             echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6
5334           fi
5335
5336
5337           enablestring=
5338           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5339 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5340           no_cache=0
5341           # Check whether --enable-geometry or --disable-geometry was given.
5342 if test "${enable_geometry+set}" = set; then
5343   enableval="$enable_geometry"
5344
5345                           if test "$enableval" = yes; then
5346                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5347                           else
5348                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5349                           fi
5350
5351 else
5352
5353                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5354                           if test "x$LINE" != x ; then
5355                             eval "DEFAULT_$LINE"
5356                           else
5357                             no_cache=1
5358                           fi
5359
5360                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5361
5362 fi;
5363
5364           eval "$ac_cv_use_geometry"
5365           if test "$no_cache" != 1; then
5366             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5367           fi
5368
5369           if test "$wxUSE_GEOMETRY" = yes; then
5370             echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6
5372           else
5373             echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6
5375           fi
5376
5377
5378           enablestring=
5379           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5380 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5381           no_cache=0
5382           # Check whether --enable-log or --disable-log was given.
5383 if test "${enable_log+set}" = set; then
5384   enableval="$enable_log"
5385
5386                           if test "$enableval" = yes; then
5387                             ac_cv_use_log='wxUSE_LOG=yes'
5388                           else
5389                             ac_cv_use_log='wxUSE_LOG=no'
5390                           fi
5391
5392 else
5393
5394                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5395                           if test "x$LINE" != x ; then
5396                             eval "DEFAULT_$LINE"
5397                           else
5398                             no_cache=1
5399                           fi
5400
5401                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5402
5403 fi;
5404
5405           eval "$ac_cv_use_log"
5406           if test "$no_cache" != 1; then
5407             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5408           fi
5409
5410           if test "$wxUSE_LOG" = yes; then
5411             echo "$as_me:$LINENO: result: yes" >&5
5412 echo "${ECHO_T}yes" >&6
5413           else
5414             echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5416           fi
5417
5418
5419           enablestring=
5420           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5421 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5422           no_cache=0
5423           # Check whether --enable-longlong or --disable-longlong was given.
5424 if test "${enable_longlong+set}" = set; then
5425   enableval="$enable_longlong"
5426
5427                           if test "$enableval" = yes; then
5428                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5429                           else
5430                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5431                           fi
5432
5433 else
5434
5435                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5436                           if test "x$LINE" != x ; then
5437                             eval "DEFAULT_$LINE"
5438                           else
5439                             no_cache=1
5440                           fi
5441
5442                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5443
5444 fi;
5445
5446           eval "$ac_cv_use_longlong"
5447           if test "$no_cache" != 1; then
5448             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5449           fi
5450
5451           if test "$wxUSE_LONGLONG" = yes; then
5452             echo "$as_me:$LINENO: result: yes" >&5
5453 echo "${ECHO_T}yes" >&6
5454           else
5455             echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5457           fi
5458
5459
5460           enablestring=
5461           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5462 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5463           no_cache=0
5464           # Check whether --enable-mimetype or --disable-mimetype was given.
5465 if test "${enable_mimetype+set}" = set; then
5466   enableval="$enable_mimetype"
5467
5468                           if test "$enableval" = yes; then
5469                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5470                           else
5471                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5472                           fi
5473
5474 else
5475
5476                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5477                           if test "x$LINE" != x ; then
5478                             eval "DEFAULT_$LINE"
5479                           else
5480                             no_cache=1
5481                           fi
5482
5483                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5484
5485 fi;
5486
5487           eval "$ac_cv_use_mimetype"
5488           if test "$no_cache" != 1; then
5489             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5490           fi
5491
5492           if test "$wxUSE_MIMETYPE" = yes; then
5493             echo "$as_me:$LINENO: result: yes" >&5
5494 echo "${ECHO_T}yes" >&6
5495           else
5496             echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6
5498           fi
5499
5500
5501           enablestring=
5502           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5503 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5504           no_cache=0
5505           # Check whether --enable-mslu or --disable-mslu was given.
5506 if test "${enable_mslu+set}" = set; then
5507   enableval="$enable_mslu"
5508
5509                           if test "$enableval" = yes; then
5510                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5511                           else
5512                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5513                           fi
5514
5515 else
5516
5517                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5518                           if test "x$LINE" != x ; then
5519                             eval "DEFAULT_$LINE"
5520                           else
5521                             no_cache=1
5522                           fi
5523
5524                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5525
5526 fi;
5527
5528           eval "$ac_cv_use_mslu"
5529           if test "$no_cache" != 1; then
5530             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5531           fi
5532
5533           if test "$wxUSE_UNICODE_MSLU" = yes; then
5534             echo "$as_me:$LINENO: result: yes" >&5
5535 echo "${ECHO_T}yes" >&6
5536           else
5537             echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6
5539           fi
5540
5541
5542           enablestring=
5543           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5544 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5545           no_cache=0
5546           # Check whether --enable-snglinst or --disable-snglinst was given.
5547 if test "${enable_snglinst+set}" = set; then
5548   enableval="$enable_snglinst"
5549
5550                           if test "$enableval" = yes; then
5551                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5552                           else
5553                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5554                           fi
5555
5556 else
5557
5558                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5559                           if test "x$LINE" != x ; then
5560                             eval "DEFAULT_$LINE"
5561                           else
5562                             no_cache=1
5563                           fi
5564
5565                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5566
5567 fi;
5568
5569           eval "$ac_cv_use_snglinst"
5570           if test "$no_cache" != 1; then
5571             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5572           fi
5573
5574           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5575             echo "$as_me:$LINENO: result: yes" >&5
5576 echo "${ECHO_T}yes" >&6
5577           else
5578             echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5580           fi
5581
5582
5583           enablestring=
5584           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5585 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5586           no_cache=0
5587           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5588 if test "${enable_std_iostreams+set}" = set; then
5589   enableval="$enable_std_iostreams"
5590
5591                           if test "$enableval" = yes; then
5592                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5593                           else
5594                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5595                           fi
5596
5597 else
5598
5599                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5600                           if test "x$LINE" != x ; then
5601                             eval "DEFAULT_$LINE"
5602                           else
5603                             no_cache=1
5604                           fi
5605
5606                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5607
5608 fi;
5609
5610           eval "$ac_cv_use_std_iostreams"
5611           if test "$no_cache" != 1; then
5612             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5613           fi
5614
5615           if test "$wxUSE_STD_IOSTREAM" = yes; then
5616             echo "$as_me:$LINENO: result: yes" >&5
5617 echo "${ECHO_T}yes" >&6
5618           else
5619             echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6
5621           fi
5622
5623
5624           enablestring=
5625           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5626 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5627           no_cache=0
5628           # Check whether --enable-std_string or --disable-std_string was given.
5629 if test "${enable_std_string+set}" = set; then
5630   enableval="$enable_std_string"
5631
5632                           if test "$enableval" = yes; then
5633                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5634                           else
5635                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5636                           fi
5637
5638 else
5639
5640                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5641                           if test "x$LINE" != x ; then
5642                             eval "DEFAULT_$LINE"
5643                           else
5644                             no_cache=1
5645                           fi
5646
5647                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5648
5649 fi;
5650
5651           eval "$ac_cv_use_std_string"
5652           if test "$no_cache" != 1; then
5653             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5654           fi
5655
5656           if test "$wxUSE_STD_STRING" = yes; then
5657             echo "$as_me:$LINENO: result: yes" >&5
5658 echo "${ECHO_T}yes" >&6
5659           else
5660             echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6
5662           fi
5663
5664
5665           enablestring=
5666           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5667 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5668           no_cache=0
5669           # Check whether --enable-stdpaths or --disable-stdpaths was given.
5670 if test "${enable_stdpaths+set}" = set; then
5671   enableval="$enable_stdpaths"
5672
5673                           if test "$enableval" = yes; then
5674                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
5675                           else
5676                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
5677                           fi
5678
5679 else
5680
5681                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
5682                           if test "x$LINE" != x ; then
5683                             eval "DEFAULT_$LINE"
5684                           else
5685                             no_cache=1
5686                           fi
5687
5688                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
5689
5690 fi;
5691
5692           eval "$ac_cv_use_stdpaths"
5693           if test "$no_cache" != 1; then
5694             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
5695           fi
5696
5697           if test "$wxUSE_STDPATHS" = yes; then
5698             echo "$as_me:$LINENO: result: yes" >&5
5699 echo "${ECHO_T}yes" >&6
5700           else
5701             echo "$as_me:$LINENO: result: no" >&5
5702 echo "${ECHO_T}no" >&6
5703           fi
5704
5705
5706           enablestring=
5707           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5708 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5709           no_cache=0
5710           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5711 if test "${enable_stopwatch+set}" = set; then
5712   enableval="$enable_stopwatch"
5713
5714                           if test "$enableval" = yes; then
5715                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5716                           else
5717                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5718                           fi
5719
5720 else
5721
5722                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5723                           if test "x$LINE" != x ; then
5724                             eval "DEFAULT_$LINE"
5725                           else
5726                             no_cache=1
5727                           fi
5728
5729                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5730
5731 fi;
5732
5733           eval "$ac_cv_use_stopwatch"
5734           if test "$no_cache" != 1; then
5735             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5736           fi
5737
5738           if test "$wxUSE_STOPWATCH" = yes; then
5739             echo "$as_me:$LINENO: result: yes" >&5
5740 echo "${ECHO_T}yes" >&6
5741           else
5742             echo "$as_me:$LINENO: result: no" >&5
5743 echo "${ECHO_T}no" >&6
5744           fi
5745
5746
5747           enablestring=
5748           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5749 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5750           no_cache=0
5751           # Check whether --enable-streams or --disable-streams was given.
5752 if test "${enable_streams+set}" = set; then
5753   enableval="$enable_streams"
5754
5755                           if test "$enableval" = yes; then
5756                             ac_cv_use_streams='wxUSE_STREAMS=yes'
5757                           else
5758                             ac_cv_use_streams='wxUSE_STREAMS=no'
5759                           fi
5760
5761 else
5762
5763                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5764                           if test "x$LINE" != x ; then
5765                             eval "DEFAULT_$LINE"
5766                           else
5767                             no_cache=1
5768                           fi
5769
5770                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5771
5772 fi;
5773
5774           eval "$ac_cv_use_streams"
5775           if test "$no_cache" != 1; then
5776             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5777           fi
5778
5779           if test "$wxUSE_STREAMS" = yes; then
5780             echo "$as_me:$LINENO: result: yes" >&5
5781 echo "${ECHO_T}yes" >&6
5782           else
5783             echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6
5785           fi
5786
5787
5788           enablestring=
5789           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5790 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5791           no_cache=0
5792           # Check whether --enable-system_options or --disable-system_options was given.
5793 if test "${enable_system_options+set}" = set; then
5794   enableval="$enable_system_options"
5795
5796                           if test "$enableval" = yes; then
5797                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5798                           else
5799                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5800                           fi
5801
5802 else
5803
5804                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5805                           if test "x$LINE" != x ; then
5806                             eval "DEFAULT_$LINE"
5807                           else
5808                             no_cache=1
5809                           fi
5810
5811                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5812
5813 fi;
5814
5815           eval "$ac_cv_use_system_options"
5816           if test "$no_cache" != 1; then
5817             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5818           fi
5819
5820           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5821             echo "$as_me:$LINENO: result: yes" >&5
5822 echo "${ECHO_T}yes" >&6
5823           else
5824             echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5826           fi
5827
5828
5829           enablestring=
5830           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5831 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5832           no_cache=0
5833           # Check whether --enable-textbuf or --disable-textbuf was given.
5834 if test "${enable_textbuf+set}" = set; then
5835   enableval="$enable_textbuf"
5836
5837                           if test "$enableval" = yes; then
5838                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5839                           else
5840                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5841                           fi
5842
5843 else
5844
5845                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5846                           if test "x$LINE" != x ; then
5847                             eval "DEFAULT_$LINE"
5848                           else
5849                             no_cache=1
5850                           fi
5851
5852                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5853
5854 fi;
5855
5856           eval "$ac_cv_use_textbuf"
5857           if test "$no_cache" != 1; then
5858             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5859           fi
5860
5861           if test "$wxUSE_TEXTBUFFER" = yes; then
5862             echo "$as_me:$LINENO: result: yes" >&5
5863 echo "${ECHO_T}yes" >&6
5864           else
5865             echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5867           fi
5868
5869
5870           enablestring=
5871           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5872 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5873           no_cache=0
5874           # Check whether --enable-textfile or --disable-textfile was given.
5875 if test "${enable_textfile+set}" = set; then
5876   enableval="$enable_textfile"
5877
5878                           if test "$enableval" = yes; then
5879                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5880                           else
5881                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5882                           fi
5883
5884 else
5885
5886                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5887                           if test "x$LINE" != x ; then
5888                             eval "DEFAULT_$LINE"
5889                           else
5890                             no_cache=1
5891                           fi
5892
5893                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5894
5895 fi;
5896
5897           eval "$ac_cv_use_textfile"
5898           if test "$no_cache" != 1; then
5899             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5900           fi
5901
5902           if test "$wxUSE_TEXTFILE" = yes; then
5903             echo "$as_me:$LINENO: result: yes" >&5
5904 echo "${ECHO_T}yes" >&6
5905           else
5906             echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5908           fi
5909
5910
5911           enablestring=
5912           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5913 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5914           no_cache=0
5915           # Check whether --enable-timer or --disable-timer was given.
5916 if test "${enable_timer+set}" = set; then
5917   enableval="$enable_timer"
5918
5919                           if test "$enableval" = yes; then
5920                             ac_cv_use_timer='wxUSE_TIMER=yes'
5921                           else
5922                             ac_cv_use_timer='wxUSE_TIMER=no'
5923                           fi
5924
5925 else
5926
5927                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5928                           if test "x$LINE" != x ; then
5929                             eval "DEFAULT_$LINE"
5930                           else
5931                             no_cache=1
5932                           fi
5933
5934                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5935
5936 fi;
5937
5938           eval "$ac_cv_use_timer"
5939           if test "$no_cache" != 1; then
5940             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5941           fi
5942
5943           if test "$wxUSE_TIMER" = yes; then
5944             echo "$as_me:$LINENO: result: yes" >&5
5945 echo "${ECHO_T}yes" >&6
5946           else
5947             echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6
5949           fi
5950
5951
5952           enablestring=
5953           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5954 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5955           no_cache=0
5956           # Check whether --enable-unicode or --disable-unicode was given.
5957 if test "${enable_unicode+set}" = set; then
5958   enableval="$enable_unicode"
5959
5960                           if test "$enableval" = yes; then
5961                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
5962                           else
5963                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5964                           fi
5965
5966 else
5967
5968                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5969                           if test "x$LINE" != x ; then
5970                             eval "DEFAULT_$LINE"
5971                           else
5972                             no_cache=1
5973                           fi
5974
5975                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5976
5977 fi;
5978
5979           eval "$ac_cv_use_unicode"
5980           if test "$no_cache" != 1; then
5981             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5982           fi
5983
5984           if test "$wxUSE_UNICODE" = yes; then
5985             echo "$as_me:$LINENO: result: yes" >&5
5986 echo "${ECHO_T}yes" >&6
5987           else
5988             echo "$as_me:$LINENO: result: no" >&5
5989 echo "${ECHO_T}no" >&6
5990           fi
5991
5992
5993           enablestring=
5994           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5995 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5996           no_cache=0
5997           # Check whether --enable-sound or --disable-sound was given.
5998 if test "${enable_sound+set}" = set; then
5999   enableval="$enable_sound"
6000
6001                           if test "$enableval" = yes; then
6002                             ac_cv_use_sound='wxUSE_SOUND=yes'
6003                           else
6004                             ac_cv_use_sound='wxUSE_SOUND=no'
6005                           fi
6006
6007 else
6008
6009                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6010                           if test "x$LINE" != x ; then
6011                             eval "DEFAULT_$LINE"
6012                           else
6013                             no_cache=1
6014                           fi
6015
6016                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6017
6018 fi;
6019
6020           eval "$ac_cv_use_sound"
6021           if test "$no_cache" != 1; then
6022             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6023           fi
6024
6025           if test "$wxUSE_SOUND" = yes; then
6026             echo "$as_me:$LINENO: result: yes" >&5
6027 echo "${ECHO_T}yes" >&6
6028           else
6029             echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6031           fi
6032
6033
6034           enablestring=
6035           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6036 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6037           no_cache=0
6038           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6039 if test "${enable_mediactrl+set}" = set; then
6040   enableval="$enable_mediactrl"
6041
6042                           if test "$enableval" = yes; then
6043                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6044                           else
6045                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6046                           fi
6047
6048 else
6049
6050                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6051                           if test "x$LINE" != x ; then
6052                             eval "DEFAULT_$LINE"
6053                           else
6054                             no_cache=1
6055                           fi
6056
6057                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6058
6059 fi;
6060
6061           eval "$ac_cv_use_mediactrl"
6062           if test "$no_cache" != 1; then
6063             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6064           fi
6065
6066           if test "$wxUSE_MEDIACTRL" = yes; then
6067             echo "$as_me:$LINENO: result: yes" >&5
6068 echo "${ECHO_T}yes" >&6
6069           else
6070             echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6
6072           fi
6073
6074
6075           enablestring=
6076           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6077 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6078           no_cache=0
6079           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6080 if test "${enable_wxprintfv+set}" = set; then
6081   enableval="$enable_wxprintfv"
6082
6083                           if test "$enableval" = yes; then
6084                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6085                           else
6086                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6087                           fi
6088
6089 else
6090
6091                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6092                           if test "x$LINE" != x ; then
6093                             eval "DEFAULT_$LINE"
6094                           else
6095                             no_cache=1
6096                           fi
6097
6098                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6099
6100 fi;
6101
6102           eval "$ac_cv_use_wxprintfv"
6103           if test "$no_cache" != 1; then
6104             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6105           fi
6106
6107           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6108             echo "$as_me:$LINENO: result: yes" >&5
6109 echo "${ECHO_T}yes" >&6
6110           else
6111             echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6
6113           fi
6114
6115
6116           enablestring=
6117           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6118 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6119           no_cache=0
6120           # Check whether --enable-zipstream or --disable-zipstream was given.
6121 if test "${enable_zipstream+set}" = set; then
6122   enableval="$enable_zipstream"
6123
6124                           if test "$enableval" = yes; then
6125                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6126                           else
6127                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6128                           fi
6129
6130 else
6131
6132                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6133                           if test "x$LINE" != x ; then
6134                             eval "DEFAULT_$LINE"
6135                           else
6136                             no_cache=1
6137                           fi
6138
6139                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6140
6141 fi;
6142
6143           eval "$ac_cv_use_zipstream"
6144           if test "$no_cache" != 1; then
6145             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6146           fi
6147
6148           if test "$wxUSE_ZIPSTREAM" = yes; then
6149             echo "$as_me:$LINENO: result: yes" >&5
6150 echo "${ECHO_T}yes" >&6
6151           else
6152             echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6
6154           fi
6155
6156
6157
6158           enablestring=
6159           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6160 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6161           no_cache=0
6162           # Check whether --enable-url or --disable-url was given.
6163 if test "${enable_url+set}" = set; then
6164   enableval="$enable_url"
6165
6166                           if test "$enableval" = yes; then
6167                             ac_cv_use_url='wxUSE_URL=yes'
6168                           else
6169                             ac_cv_use_url='wxUSE_URL=no'
6170                           fi
6171
6172 else
6173
6174                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6175                           if test "x$LINE" != x ; then
6176                             eval "DEFAULT_$LINE"
6177                           else
6178                             no_cache=1
6179                           fi
6180
6181                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6182
6183 fi;
6184
6185           eval "$ac_cv_use_url"
6186           if test "$no_cache" != 1; then
6187             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6188           fi
6189
6190           if test "$wxUSE_URL" = yes; then
6191             echo "$as_me:$LINENO: result: yes" >&5
6192 echo "${ECHO_T}yes" >&6
6193           else
6194             echo "$as_me:$LINENO: result: no" >&5
6195 echo "${ECHO_T}no" >&6
6196           fi
6197
6198
6199           enablestring=
6200           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6201 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6202           no_cache=0
6203           # Check whether --enable-protocol or --disable-protocol was given.
6204 if test "${enable_protocol+set}" = set; then
6205   enableval="$enable_protocol"
6206
6207                           if test "$enableval" = yes; then
6208                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6209                           else
6210                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6211                           fi
6212
6213 else
6214
6215                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6216                           if test "x$LINE" != x ; then
6217                             eval "DEFAULT_$LINE"
6218                           else
6219                             no_cache=1
6220                           fi
6221
6222                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6223
6224 fi;
6225
6226           eval "$ac_cv_use_protocol"
6227           if test "$no_cache" != 1; then
6228             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6229           fi
6230
6231           if test "$wxUSE_PROTOCOL" = yes; then
6232             echo "$as_me:$LINENO: result: yes" >&5
6233 echo "${ECHO_T}yes" >&6
6234           else
6235             echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6
6237           fi
6238
6239
6240           enablestring=
6241           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6242 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6243           no_cache=0
6244           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6245 if test "${enable_protocol_http+set}" = set; then
6246   enableval="$enable_protocol_http"
6247
6248                           if test "$enableval" = yes; then
6249                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6250                           else
6251                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6252                           fi
6253
6254 else
6255
6256                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6257                           if test "x$LINE" != x ; then
6258                             eval "DEFAULT_$LINE"
6259                           else
6260                             no_cache=1
6261                           fi
6262
6263                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6264
6265 fi;
6266
6267           eval "$ac_cv_use_protocol_http"
6268           if test "$no_cache" != 1; then
6269             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6270           fi
6271
6272           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6273             echo "$as_me:$LINENO: result: yes" >&5
6274 echo "${ECHO_T}yes" >&6
6275           else
6276             echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6
6278           fi
6279
6280
6281           enablestring=
6282           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6283 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6284           no_cache=0
6285           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6286 if test "${enable_protocol_ftp+set}" = set; then
6287   enableval="$enable_protocol_ftp"
6288
6289                           if test "$enableval" = yes; then
6290                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6291                           else
6292                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6293                           fi
6294
6295 else
6296
6297                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6298                           if test "x$LINE" != x ; then
6299                             eval "DEFAULT_$LINE"
6300                           else
6301                             no_cache=1
6302                           fi
6303
6304                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6305
6306 fi;
6307
6308           eval "$ac_cv_use_protocol_ftp"
6309           if test "$no_cache" != 1; then
6310             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6311           fi
6312
6313           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6314             echo "$as_me:$LINENO: result: yes" >&5
6315 echo "${ECHO_T}yes" >&6
6316           else
6317             echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6
6319           fi
6320
6321
6322           enablestring=
6323           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6324 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6325           no_cache=0
6326           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6327 if test "${enable_protocol_file+set}" = set; then
6328   enableval="$enable_protocol_file"
6329
6330                           if test "$enableval" = yes; then
6331                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6332                           else
6333                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6334                           fi
6335
6336 else
6337
6338                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6339                           if test "x$LINE" != x ; then
6340                             eval "DEFAULT_$LINE"
6341                           else
6342                             no_cache=1
6343                           fi
6344
6345                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6346
6347 fi;
6348
6349           eval "$ac_cv_use_protocol_file"
6350           if test "$no_cache" != 1; then
6351             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6352           fi
6353
6354           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6355             echo "$as_me:$LINENO: result: yes" >&5
6356 echo "${ECHO_T}yes" >&6
6357           else
6358             echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6
6360           fi
6361
6362
6363
6364
6365
6366           enablestring=
6367           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6368 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6369           no_cache=0
6370           # Check whether --enable-threads or --disable-threads was given.
6371 if test "${enable_threads+set}" = set; then
6372   enableval="$enable_threads"
6373
6374                           if test "$enableval" = yes; then
6375                             ac_cv_use_threads='wxUSE_THREADS=yes'
6376                           else
6377                             ac_cv_use_threads='wxUSE_THREADS=no'
6378                           fi
6379
6380 else
6381
6382                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6383                           if test "x$LINE" != x ; then
6384                             eval "DEFAULT_$LINE"
6385                           else
6386                             no_cache=1
6387                           fi
6388
6389                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6390
6391 fi;
6392
6393           eval "$ac_cv_use_threads"
6394           if test "$no_cache" != 1; then
6395             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6396           fi
6397
6398           if test "$wxUSE_THREADS" = yes; then
6399             echo "$as_me:$LINENO: result: yes" >&5
6400 echo "${ECHO_T}yes" >&6
6401           else
6402             echo "$as_me:$LINENO: result: no" >&5
6403 echo "${ECHO_T}no" >&6
6404           fi
6405
6406
6407 if test "$wxUSE_GUI" = "yes"; then
6408
6409
6410
6411           enablestring=
6412           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6413 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6414           no_cache=0
6415           # Check whether --enable-docview or --disable-docview was given.
6416 if test "${enable_docview+set}" = set; then
6417   enableval="$enable_docview"
6418
6419                           if test "$enableval" = yes; then
6420                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6421                           else
6422                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6423                           fi
6424
6425 else
6426
6427                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6428                           if test "x$LINE" != x ; then
6429                             eval "DEFAULT_$LINE"
6430                           else
6431                             no_cache=1
6432                           fi
6433
6434                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6435
6436 fi;
6437
6438           eval "$ac_cv_use_docview"
6439           if test "$no_cache" != 1; then
6440             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6441           fi
6442
6443           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6444             echo "$as_me:$LINENO: result: yes" >&5
6445 echo "${ECHO_T}yes" >&6
6446           else
6447             echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6
6449           fi
6450
6451
6452           enablestring=
6453           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6454 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6455           no_cache=0
6456           # Check whether --enable-help or --disable-help was given.
6457 if test "${enable_help+set}" = set; then
6458   enableval="$enable_help"
6459
6460                           if test "$enableval" = yes; then
6461                             ac_cv_use_help='wxUSE_HELP=yes'
6462                           else
6463                             ac_cv_use_help='wxUSE_HELP=no'
6464                           fi
6465
6466 else
6467
6468                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6469                           if test "x$LINE" != x ; then
6470                             eval "DEFAULT_$LINE"
6471                           else
6472                             no_cache=1
6473                           fi
6474
6475                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6476
6477 fi;
6478
6479           eval "$ac_cv_use_help"
6480           if test "$no_cache" != 1; then
6481             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6482           fi
6483
6484           if test "$wxUSE_HELP" = yes; then
6485             echo "$as_me:$LINENO: result: yes" >&5
6486 echo "${ECHO_T}yes" >&6
6487           else
6488             echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6
6490           fi
6491
6492
6493           enablestring=
6494           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6495 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6496           no_cache=0
6497           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6498 if test "${enable_mshtmlhelp+set}" = set; then
6499   enableval="$enable_mshtmlhelp"
6500
6501                           if test "$enableval" = yes; then
6502                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6503                           else
6504                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6505                           fi
6506
6507 else
6508
6509                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6510                           if test "x$LINE" != x ; then
6511                             eval "DEFAULT_$LINE"
6512                           else
6513                             no_cache=1
6514                           fi
6515
6516                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6517
6518 fi;
6519
6520           eval "$ac_cv_use_mshtmlhelp"
6521           if test "$no_cache" != 1; then
6522             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6523           fi
6524
6525           if test "$wxUSE_MS_HTML_HELP" = yes; then
6526             echo "$as_me:$LINENO: result: yes" >&5
6527 echo "${ECHO_T}yes" >&6
6528           else
6529             echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6
6531           fi
6532
6533
6534           enablestring=
6535           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6536 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6537           no_cache=0
6538           # Check whether --enable-html or --disable-html was given.
6539 if test "${enable_html+set}" = set; then
6540   enableval="$enable_html"
6541
6542                           if test "$enableval" = yes; then
6543                             ac_cv_use_html='wxUSE_HTML=yes'
6544                           else
6545                             ac_cv_use_html='wxUSE_HTML=no'
6546                           fi
6547
6548 else
6549
6550                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6551                           if test "x$LINE" != x ; then
6552                             eval "DEFAULT_$LINE"
6553                           else
6554                             no_cache=1
6555                           fi
6556
6557                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6558
6559 fi;
6560
6561           eval "$ac_cv_use_html"
6562           if test "$no_cache" != 1; then
6563             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6564           fi
6565
6566           if test "$wxUSE_HTML" = yes; then
6567             echo "$as_me:$LINENO: result: yes" >&5
6568 echo "${ECHO_T}yes" >&6
6569           else
6570             echo "$as_me:$LINENO: result: no" >&5
6571 echo "${ECHO_T}no" >&6
6572           fi
6573
6574
6575           enablestring=
6576           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6577 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6578           no_cache=0
6579           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6580 if test "${enable_htmlhelp+set}" = set; then
6581   enableval="$enable_htmlhelp"
6582
6583                           if test "$enableval" = yes; then
6584                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6585                           else
6586                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6587                           fi
6588
6589 else
6590
6591                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6592                           if test "x$LINE" != x ; then
6593                             eval "DEFAULT_$LINE"
6594                           else
6595                             no_cache=1
6596                           fi
6597
6598                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6599
6600 fi;
6601
6602           eval "$ac_cv_use_htmlhelp"
6603           if test "$no_cache" != 1; then
6604             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6605           fi
6606
6607           if test "$wxUSE_WXHTML_HELP" = yes; then
6608             echo "$as_me:$LINENO: result: yes" >&5
6609 echo "${ECHO_T}yes" >&6
6610           else
6611             echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6
6613           fi
6614
6615
6616           enablestring=
6617           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6618 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6619           no_cache=0
6620           # Check whether --enable-xrc or --disable-xrc was given.
6621 if test "${enable_xrc+set}" = set; then
6622   enableval="$enable_xrc"
6623
6624                           if test "$enableval" = yes; then
6625                             ac_cv_use_xrc='wxUSE_XRC=yes'
6626                           else
6627                             ac_cv_use_xrc='wxUSE_XRC=no'
6628                           fi
6629
6630 else
6631
6632                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6633                           if test "x$LINE" != x ; then
6634                             eval "DEFAULT_$LINE"
6635                           else
6636                             no_cache=1
6637                           fi
6638
6639                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6640
6641 fi;
6642
6643           eval "$ac_cv_use_xrc"
6644           if test "$no_cache" != 1; then
6645             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6646           fi
6647
6648           if test "$wxUSE_XRC" = yes; then
6649             echo "$as_me:$LINENO: result: yes" >&5
6650 echo "${ECHO_T}yes" >&6
6651           else
6652             echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6
6654           fi
6655
6656
6657           enablestring=
6658           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6659 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6660           no_cache=0
6661           # Check whether --enable-constraints or --disable-constraints was given.
6662 if test "${enable_constraints+set}" = set; then
6663   enableval="$enable_constraints"
6664
6665                           if test "$enableval" = yes; then
6666                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6667                           else
6668                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6669                           fi
6670
6671 else
6672
6673                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6674                           if test "x$LINE" != x ; then
6675                             eval "DEFAULT_$LINE"
6676                           else
6677                             no_cache=1
6678                           fi
6679
6680                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6681
6682 fi;
6683
6684           eval "$ac_cv_use_constraints"
6685           if test "$no_cache" != 1; then
6686             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6687           fi
6688
6689           if test "$wxUSE_CONSTRAINTS" = yes; then
6690             echo "$as_me:$LINENO: result: yes" >&5
6691 echo "${ECHO_T}yes" >&6
6692           else
6693             echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6
6695           fi
6696
6697
6698           enablestring=
6699           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6700 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6701           no_cache=0
6702           # Check whether --enable-printarch or --disable-printarch was given.
6703 if test "${enable_printarch+set}" = set; then
6704   enableval="$enable_printarch"
6705
6706                           if test "$enableval" = yes; then
6707                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6708                           else
6709                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6710                           fi
6711
6712 else
6713
6714                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6715                           if test "x$LINE" != x ; then
6716                             eval "DEFAULT_$LINE"
6717                           else
6718                             no_cache=1
6719                           fi
6720
6721                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6722
6723 fi;
6724
6725           eval "$ac_cv_use_printarch"
6726           if test "$no_cache" != 1; then
6727             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6728           fi
6729
6730           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6731             echo "$as_me:$LINENO: result: yes" >&5
6732 echo "${ECHO_T}yes" >&6
6733           else
6734             echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6
6736           fi
6737
6738
6739           enablestring=
6740           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6741 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6742           no_cache=0
6743           # Check whether --enable-mdi or --disable-mdi was given.
6744 if test "${enable_mdi+set}" = set; then
6745   enableval="$enable_mdi"
6746
6747                           if test "$enableval" = yes; then
6748                             ac_cv_use_mdi='wxUSE_MDI=yes'
6749                           else
6750                             ac_cv_use_mdi='wxUSE_MDI=no'
6751                           fi
6752
6753 else
6754
6755                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
6756                           if test "x$LINE" != x ; then
6757                             eval "DEFAULT_$LINE"
6758                           else
6759                             no_cache=1
6760                           fi
6761
6762                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
6763
6764 fi;
6765
6766           eval "$ac_cv_use_mdi"
6767           if test "$no_cache" != 1; then
6768             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6769           fi
6770
6771           if test "$wxUSE_MDI" = yes; then
6772             echo "$as_me:$LINENO: result: yes" >&5
6773 echo "${ECHO_T}yes" >&6
6774           else
6775             echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6
6777           fi
6778
6779
6780           enablestring=
6781           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6782 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6783           no_cache=0
6784           # Check whether --enable-mdidoc or --disable-mdidoc was given.
6785 if test "${enable_mdidoc+set}" = set; then
6786   enableval="$enable_mdidoc"
6787
6788                           if test "$enableval" = yes; then
6789                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6790                           else
6791                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6792                           fi
6793
6794 else
6795
6796                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6797                           if test "x$LINE" != x ; then
6798                             eval "DEFAULT_$LINE"
6799                           else
6800                             no_cache=1
6801                           fi
6802
6803                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6804
6805 fi;
6806
6807           eval "$ac_cv_use_mdidoc"
6808           if test "$no_cache" != 1; then
6809             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6810           fi
6811
6812           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6813             echo "$as_me:$LINENO: result: yes" >&5
6814 echo "${ECHO_T}yes" >&6
6815           else
6816             echo "$as_me:$LINENO: result: no" >&5
6817 echo "${ECHO_T}no" >&6
6818           fi
6819
6820
6821           enablestring=
6822           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6823 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6824           no_cache=0
6825           # Check whether --enable-loggui or --disable-loggui was given.
6826 if test "${enable_loggui+set}" = set; then
6827   enableval="$enable_loggui"
6828
6829                           if test "$enableval" = yes; then
6830                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6831                           else
6832                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6833                           fi
6834
6835 else
6836
6837                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6838                           if test "x$LINE" != x ; then
6839                             eval "DEFAULT_$LINE"
6840                           else
6841                             no_cache=1
6842                           fi
6843
6844                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6845
6846 fi;
6847
6848           eval "$ac_cv_use_loggui"
6849           if test "$no_cache" != 1; then
6850             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6851           fi
6852
6853           if test "$wxUSE_LOGGUI" = yes; then
6854             echo "$as_me:$LINENO: result: yes" >&5
6855 echo "${ECHO_T}yes" >&6
6856           else
6857             echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6
6859           fi
6860
6861
6862           enablestring=
6863           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6864 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6865           no_cache=0
6866           # Check whether --enable-logwin or --disable-logwin was given.
6867 if test "${enable_logwin+set}" = set; then
6868   enableval="$enable_logwin"
6869
6870                           if test "$enableval" = yes; then
6871                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6872                           else
6873                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6874                           fi
6875
6876 else
6877
6878                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6879                           if test "x$LINE" != x ; then
6880                             eval "DEFAULT_$LINE"
6881                           else
6882                             no_cache=1
6883                           fi
6884
6885                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6886
6887 fi;
6888
6889           eval "$ac_cv_use_logwin"
6890           if test "$no_cache" != 1; then
6891             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6892           fi
6893
6894           if test "$wxUSE_LOGWINDOW" = yes; then
6895             echo "$as_me:$LINENO: result: yes" >&5
6896 echo "${ECHO_T}yes" >&6
6897           else
6898             echo "$as_me:$LINENO: result: no" >&5
6899 echo "${ECHO_T}no" >&6
6900           fi
6901
6902
6903           enablestring=
6904           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6905 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6906           no_cache=0
6907           # Check whether --enable-logdialog or --disable-logdialog was given.
6908 if test "${enable_logdialog+set}" = set; then
6909   enableval="$enable_logdialog"
6910
6911                           if test "$enableval" = yes; then
6912                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6913                           else
6914                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6915                           fi
6916
6917 else
6918
6919                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6920                           if test "x$LINE" != x ; then
6921                             eval "DEFAULT_$LINE"
6922                           else
6923                             no_cache=1
6924                           fi
6925
6926                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6927
6928 fi;
6929
6930           eval "$ac_cv_use_logdialog"
6931           if test "$no_cache" != 1; then
6932             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6933           fi
6934
6935           if test "$wxUSE_LOGDIALOG" = yes; then
6936             echo "$as_me:$LINENO: result: yes" >&5
6937 echo "${ECHO_T}yes" >&6
6938           else
6939             echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6
6941           fi
6942
6943
6944           enablestring=
6945           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6946 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6947           no_cache=0
6948           # Check whether --enable-webkit or --disable-webkit was given.
6949 if test "${enable_webkit+set}" = set; then
6950   enableval="$enable_webkit"
6951
6952                           if test "$enableval" = yes; then
6953                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6954                           else
6955                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
6956                           fi
6957
6958 else
6959
6960                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6961                           if test "x$LINE" != x ; then
6962                             eval "DEFAULT_$LINE"
6963                           else
6964                             no_cache=1
6965                           fi
6966
6967                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6968
6969 fi;
6970
6971           eval "$ac_cv_use_webkit"
6972           if test "$no_cache" != 1; then
6973             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6974           fi
6975
6976           if test "$wxUSE_WEBKIT" = yes; then
6977             echo "$as_me:$LINENO: result: yes" >&5
6978 echo "${ECHO_T}yes" >&6
6979           else
6980             echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6
6982           fi
6983
6984
6985
6986           enablestring=
6987           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6988 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6989           no_cache=0
6990           # Check whether --enable-postscript or --disable-postscript was given.
6991 if test "${enable_postscript+set}" = set; then
6992   enableval="$enable_postscript"
6993
6994                           if test "$enableval" = yes; then
6995                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6996                           else
6997                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6998                           fi
6999
7000 else
7001
7002                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7003                           if test "x$LINE" != x ; then
7004                             eval "DEFAULT_$LINE"
7005                           else
7006                             no_cache=1
7007                           fi
7008
7009                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7010
7011 fi;
7012
7013           eval "$ac_cv_use_postscript"
7014           if test "$no_cache" != 1; then
7015             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7016           fi
7017
7018           if test "$wxUSE_POSTSCRIPT" = yes; then
7019             echo "$as_me:$LINENO: result: yes" >&5
7020 echo "${ECHO_T}yes" >&6
7021           else
7022             echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6
7024           fi
7025
7026
7027
7028
7029
7030           enablestring=
7031           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7032 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7033           no_cache=0
7034           # Check whether --enable-prologio or --disable-prologio was given.
7035 if test "${enable_prologio+set}" = set; then
7036   enableval="$enable_prologio"
7037
7038                           if test "$enableval" = yes; then
7039                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7040                           else
7041                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7042                           fi
7043
7044 else
7045
7046                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7047                           if test "x$LINE" != x ; then
7048                             eval "DEFAULT_$LINE"
7049                           else
7050                             no_cache=1
7051                           fi
7052
7053                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7054
7055 fi;
7056
7057           eval "$ac_cv_use_prologio"
7058           if test "$no_cache" != 1; then
7059             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7060           fi
7061
7062           if test "$wxUSE_PROLOGIO" = yes; then
7063             echo "$as_me:$LINENO: result: yes" >&5
7064 echo "${ECHO_T}yes" >&6
7065           else
7066             echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6
7068           fi
7069
7070
7071           enablestring=
7072           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7073 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7074           no_cache=0
7075           # Check whether --enable-resources or --disable-resources was given.
7076 if test "${enable_resources+set}" = set; then
7077   enableval="$enable_resources"
7078
7079                           if test "$enableval" = yes; then
7080                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7081                           else
7082                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7083                           fi
7084
7085 else
7086
7087                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7088                           if test "x$LINE" != x ; then
7089                             eval "DEFAULT_$LINE"
7090                           else
7091                             no_cache=1
7092                           fi
7093
7094                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7095
7096 fi;
7097
7098           eval "$ac_cv_use_resources"
7099           if test "$no_cache" != 1; then
7100             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7101           fi
7102
7103           if test "$wxUSE_RESOURCES" = yes; then
7104             echo "$as_me:$LINENO: result: yes" >&5
7105 echo "${ECHO_T}yes" >&6
7106           else
7107             echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6
7109           fi
7110
7111
7112
7113
7114           enablestring=
7115           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7116 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7117           no_cache=0
7118           # Check whether --enable-clipboard or --disable-clipboard was given.
7119 if test "${enable_clipboard+set}" = set; then
7120   enableval="$enable_clipboard"
7121
7122                           if test "$enableval" = yes; then
7123                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7124                           else
7125                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7126                           fi
7127
7128 else
7129
7130                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7131                           if test "x$LINE" != x ; then
7132                             eval "DEFAULT_$LINE"
7133                           else
7134                             no_cache=1
7135                           fi
7136
7137                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7138
7139 fi;
7140
7141           eval "$ac_cv_use_clipboard"
7142           if test "$no_cache" != 1; then
7143             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7144           fi
7145
7146           if test "$wxUSE_CLIPBOARD" = yes; then
7147             echo "$as_me:$LINENO: result: yes" >&5
7148 echo "${ECHO_T}yes" >&6
7149           else
7150             echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6
7152           fi
7153
7154
7155           enablestring=
7156           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7157 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7158           no_cache=0
7159           # Check whether --enable-dnd or --disable-dnd was given.
7160 if test "${enable_dnd+set}" = set; then
7161   enableval="$enable_dnd"
7162
7163                           if test "$enableval" = yes; then
7164                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7165                           else
7166                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7167                           fi
7168
7169 else
7170
7171                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7172                           if test "x$LINE" != x ; then
7173                             eval "DEFAULT_$LINE"
7174                           else
7175                             no_cache=1
7176                           fi
7177
7178                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7179
7180 fi;
7181
7182           eval "$ac_cv_use_dnd"
7183           if test "$no_cache" != 1; then
7184             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7185           fi
7186
7187           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7188             echo "$as_me:$LINENO: result: yes" >&5
7189 echo "${ECHO_T}yes" >&6
7190           else
7191             echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7193           fi
7194
7195
7196           enablestring=
7197           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7198 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7199           no_cache=0
7200           # Check whether --enable-metafile or --disable-metafile was given.
7201 if test "${enable_metafile+set}" = set; then
7202   enableval="$enable_metafile"
7203
7204                           if test "$enableval" = yes; then
7205                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7206                           else
7207                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7208                           fi
7209
7210 else
7211
7212                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7213                           if test "x$LINE" != x ; then
7214                             eval "DEFAULT_$LINE"
7215                           else
7216                             no_cache=1
7217                           fi
7218
7219                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7220
7221 fi;
7222
7223           eval "$ac_cv_use_metafile"
7224           if test "$no_cache" != 1; then
7225             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7226           fi
7227
7228           if test "$wxUSE_METAFILE" = yes; then
7229             echo "$as_me:$LINENO: result: yes" >&5
7230 echo "${ECHO_T}yes" >&6
7231           else
7232             echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6
7234           fi
7235
7236
7237
7238
7239
7240           enablestring=
7241           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7242 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7243           no_cache=0
7244           # Check whether --enable-controls or --disable-controls was given.
7245 if test "${enable_controls+set}" = set; then
7246   enableval="$enable_controls"
7247
7248                           if test "$enableval" = yes; then
7249                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7250                           else
7251                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7252                           fi
7253
7254 else
7255
7256                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7257                           if test "x$LINE" != x ; then
7258                             eval "DEFAULT_$LINE"
7259                           else
7260                             no_cache=1
7261                           fi
7262
7263                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7264
7265 fi;
7266
7267           eval "$ac_cv_use_controls"
7268           if test "$no_cache" != 1; then
7269             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7270           fi
7271
7272           if test "$wxUSE_CONTROLS" = yes; then
7273             echo "$as_me:$LINENO: result: yes" >&5
7274 echo "${ECHO_T}yes" >&6
7275           else
7276             echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6
7278           fi
7279
7280
7281 if test "$wxUSE_CONTROLS" = "yes"; then
7282   DEFAULT_wxUSE_ACCEL=yes
7283   DEFAULT_wxUSE_BMPBUTTON=yes
7284   DEFAULT_wxUSE_BUTTON=yes
7285   DEFAULT_wxUSE_CALCTRL=yes
7286   DEFAULT_wxUSE_CARET=yes
7287   DEFAULT_wxUSE_COMBOBOX=yes
7288   DEFAULT_wxUSE_CHECKBOX=yes
7289   DEFAULT_wxUSE_CHECKLISTBOX=yes
7290   DEFAULT_wxUSE_CHOICE=yes
7291   DEFAULT_wxUSE_CHOICEBOOK=yes
7292   DEFAULT_wxUSE_DATEPICKCTRL=yes
7293   DEFAULT_wxUSE_GAUGE=yes
7294   DEFAULT_wxUSE_GRID=yes
7295   DEFAULT_wxUSE_IMAGLIST=yes
7296   DEFAULT_wxUSE_LISTBOOK=yes
7297   DEFAULT_wxUSE_LISTBOX=yes
7298   DEFAULT_wxUSE_LISTCTRL=yes
7299   DEFAULT_wxUSE_NOTEBOOK=yes
7300   DEFAULT_wxUSE_RADIOBOX=yes
7301   DEFAULT_wxUSE_RADIOBTN=yes
7302   DEFAULT_wxUSE_SASH=yes
7303   DEFAULT_wxUSE_SCROLLBAR=yes
7304   DEFAULT_wxUSE_SLIDER=yes
7305   DEFAULT_wxUSE_SPINBTN=yes
7306   DEFAULT_wxUSE_SPINCTRL=yes
7307   DEFAULT_wxUSE_SPLITTER=yes
7308   DEFAULT_wxUSE_STATBMP=yes
7309   DEFAULT_wxUSE_STATBOX=yes
7310   DEFAULT_wxUSE_STATLINE=yes
7311   DEFAULT_wxUSE_STATUSBAR=yes
7312   DEFAULT_wxUSE_TAB_DIALOG=yes
7313   DEFAULT_wxUSE_TOGGLEBTN=yes
7314   DEFAULT_wxUSE_TOOLBAR=yes
7315   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7316   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7317   DEFAULT_wxUSE_TOOLTIPS=yes
7318   DEFAULT_wxUSE_TREECTRL=yes
7319   DEFAULT_wxUSE_POPUPWIN=yes
7320   DEFAULT_wxUSE_TIPWINDOW=yes
7321 elif test "$wxUSE_CONTROLS" = "no"; then
7322   DEFAULT_wxUSE_ACCEL=no
7323   DEFAULT_wxUSE_BMPBUTTON=no
7324   DEFAULT_wxUSE_BUTTON=no
7325   DEFAULT_wxUSE_CALCTRL=no
7326   DEFAULT_wxUSE_CARET=no
7327   DEFAULT_wxUSE_COMBOBOX=no
7328   DEFAULT_wxUSE_CHECKBOX=no
7329   DEFAULT_wxUSE_CHECKLISTBOX=no
7330   DEFAULT_wxUSE_CHOICE=no
7331   DEFAULT_wxUSE_CHOICEBOOK=no
7332   DEFAULT_wxUSE_DATEPICKCTRL=no
7333   DEFAULT_wxUSE_GAUGE=no
7334   DEFAULT_wxUSE_GRID=no
7335   DEFAULT_wxUSE_IMAGLIST=no
7336   DEFAULT_wxUSE_LISTBOOK=no
7337   DEFAULT_wxUSE_LISTBOX=no
7338   DEFAULT_wxUSE_LISTCTRL=no
7339   DEFAULT_wxUSE_NOTEBOOK=no
7340   DEFAULT_wxUSE_RADIOBOX=no
7341   DEFAULT_wxUSE_RADIOBTN=no
7342   DEFAULT_wxUSE_SASH=no
7343   DEFAULT_wxUSE_SCROLLBAR=no
7344   DEFAULT_wxUSE_SLIDER=no
7345   DEFAULT_wxUSE_SPINBTN=no
7346   DEFAULT_wxUSE_SPINCTRL=no
7347   DEFAULT_wxUSE_SPLITTER=no
7348   DEFAULT_wxUSE_STATBMP=no
7349   DEFAULT_wxUSE_STATBOX=no
7350   DEFAULT_wxUSE_STATLINE=no
7351   DEFAULT_wxUSE_STATUSBAR=no
7352   DEFAULT_wxUSE_TAB_DIALOG=no
7353   DEFAULT_wxUSE_TOGGLEBTN=no
7354   DEFAULT_wxUSE_TOOLBAR=no
7355   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7356   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7357   DEFAULT_wxUSE_TOOLTIPS=no
7358   DEFAULT_wxUSE_TREECTRL=no
7359   DEFAULT_wxUSE_POPUPWIN=no
7360   DEFAULT_wxUSE_TIPWINDOW=no
7361 fi
7362
7363
7364           enablestring=
7365           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7366 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7367           no_cache=0
7368           # Check whether --enable-accel or --disable-accel was given.
7369 if test "${enable_accel+set}" = set; then
7370   enableval="$enable_accel"
7371
7372                           if test "$enableval" = yes; then
7373                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7374                           else
7375                             ac_cv_use_accel='wxUSE_ACCEL=no'
7376                           fi
7377
7378 else
7379
7380                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7381                           if test "x$LINE" != x ; then
7382                             eval "DEFAULT_$LINE"
7383                           else
7384                             no_cache=1
7385                           fi
7386
7387                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7388
7389 fi;
7390
7391           eval "$ac_cv_use_accel"
7392           if test "$no_cache" != 1; then
7393             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7394           fi
7395
7396           if test "$wxUSE_ACCEL" = yes; then
7397             echo "$as_me:$LINENO: result: yes" >&5
7398 echo "${ECHO_T}yes" >&6
7399           else
7400             echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6
7402           fi
7403
7404
7405           enablestring=
7406           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7407 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7408           no_cache=0
7409           # Check whether --enable-button or --disable-button was given.
7410 if test "${enable_button+set}" = set; then
7411   enableval="$enable_button"
7412
7413                           if test "$enableval" = yes; then
7414                             ac_cv_use_button='wxUSE_BUTTON=yes'
7415                           else
7416                             ac_cv_use_button='wxUSE_BUTTON=no'
7417                           fi
7418
7419 else
7420
7421                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7422                           if test "x$LINE" != x ; then
7423                             eval "DEFAULT_$LINE"
7424                           else
7425                             no_cache=1
7426                           fi
7427
7428                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7429
7430 fi;
7431
7432           eval "$ac_cv_use_button"
7433           if test "$no_cache" != 1; then
7434             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7435           fi
7436
7437           if test "$wxUSE_BUTTON" = yes; then
7438             echo "$as_me:$LINENO: result: yes" >&5
7439 echo "${ECHO_T}yes" >&6
7440           else
7441             echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6
7443           fi
7444
7445
7446           enablestring=
7447           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7448 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7449           no_cache=0
7450           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7451 if test "${enable_bmpbutton+set}" = set; then
7452   enableval="$enable_bmpbutton"
7453
7454                           if test "$enableval" = yes; then
7455                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7456                           else
7457                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7458                           fi
7459
7460 else
7461
7462                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7463                           if test "x$LINE" != x ; then
7464                             eval "DEFAULT_$LINE"
7465                           else
7466                             no_cache=1
7467                           fi
7468
7469                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7470
7471 fi;
7472
7473           eval "$ac_cv_use_bmpbutton"
7474           if test "$no_cache" != 1; then
7475             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7476           fi
7477
7478           if test "$wxUSE_BMPBUTTON" = yes; then
7479             echo "$as_me:$LINENO: result: yes" >&5
7480 echo "${ECHO_T}yes" >&6
7481           else
7482             echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6
7484           fi
7485
7486
7487           enablestring=
7488           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7489 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7490           no_cache=0
7491           # Check whether --enable-calendar or --disable-calendar was given.
7492 if test "${enable_calendar+set}" = set; then
7493   enableval="$enable_calendar"
7494
7495                           if test "$enableval" = yes; then
7496                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7497                           else
7498                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7499                           fi
7500
7501 else
7502
7503                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7504                           if test "x$LINE" != x ; then
7505                             eval "DEFAULT_$LINE"
7506                           else
7507                             no_cache=1
7508                           fi
7509
7510                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7511
7512 fi;
7513
7514           eval "$ac_cv_use_calendar"
7515           if test "$no_cache" != 1; then
7516             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7517           fi
7518
7519           if test "$wxUSE_CALCTRL" = yes; then
7520             echo "$as_me:$LINENO: result: yes" >&5
7521 echo "${ECHO_T}yes" >&6
7522           else
7523             echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6
7525           fi
7526
7527
7528           enablestring=
7529           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7530 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7531           no_cache=0
7532           # Check whether --enable-caret or --disable-caret was given.
7533 if test "${enable_caret+set}" = set; then
7534   enableval="$enable_caret"
7535
7536                           if test "$enableval" = yes; then
7537                             ac_cv_use_caret='wxUSE_CARET=yes'
7538                           else
7539                             ac_cv_use_caret='wxUSE_CARET=no'
7540                           fi
7541
7542 else
7543
7544                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7545                           if test "x$LINE" != x ; then
7546                             eval "DEFAULT_$LINE"
7547                           else
7548                             no_cache=1
7549                           fi
7550
7551                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7552
7553 fi;
7554
7555           eval "$ac_cv_use_caret"
7556           if test "$no_cache" != 1; then
7557             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7558           fi
7559
7560           if test "$wxUSE_CARET" = yes; then
7561             echo "$as_me:$LINENO: result: yes" >&5
7562 echo "${ECHO_T}yes" >&6
7563           else
7564             echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6
7566           fi
7567
7568
7569           enablestring=
7570           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7571 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7572           no_cache=0
7573           # Check whether --enable-checkbox or --disable-checkbox was given.
7574 if test "${enable_checkbox+set}" = set; then
7575   enableval="$enable_checkbox"
7576
7577                           if test "$enableval" = yes; then
7578                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7579                           else
7580                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7581                           fi
7582
7583 else
7584
7585                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7586                           if test "x$LINE" != x ; then
7587                             eval "DEFAULT_$LINE"
7588                           else
7589                             no_cache=1
7590                           fi
7591
7592                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7593
7594 fi;
7595
7596           eval "$ac_cv_use_checkbox"
7597           if test "$no_cache" != 1; then
7598             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7599           fi
7600
7601           if test "$wxUSE_CHECKBOX" = yes; then
7602             echo "$as_me:$LINENO: result: yes" >&5
7603 echo "${ECHO_T}yes" >&6
7604           else
7605             echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6
7607           fi
7608
7609
7610           enablestring=
7611           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7612 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7613           no_cache=0
7614           # Check whether --enable-checklst or --disable-checklst was given.
7615 if test "${enable_checklst+set}" = set; then
7616   enableval="$enable_checklst"
7617
7618                           if test "$enableval" = yes; then
7619                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7620                           else
7621                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
7622                           fi
7623
7624 else
7625
7626                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7627                           if test "x$LINE" != x ; then
7628                             eval "DEFAULT_$LINE"
7629                           else
7630                             no_cache=1
7631                           fi
7632
7633                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7634
7635 fi;
7636
7637           eval "$ac_cv_use_checklst"
7638           if test "$no_cache" != 1; then
7639             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7640           fi
7641
7642           if test "$wxUSE_CHECKLST" = yes; then
7643             echo "$as_me:$LINENO: result: yes" >&5
7644 echo "${ECHO_T}yes" >&6
7645           else
7646             echo "$as_me:$LINENO: result: no" >&5
7647 echo "${ECHO_T}no" >&6
7648           fi
7649
7650
7651           enablestring=
7652           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7653 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7654           no_cache=0
7655           # Check whether --enable-choice or --disable-choice was given.
7656 if test "${enable_choice+set}" = set; then
7657   enableval="$enable_choice"
7658
7659                           if test "$enableval" = yes; then
7660                             ac_cv_use_choice='wxUSE_CHOICE=yes'
7661                           else
7662                             ac_cv_use_choice='wxUSE_CHOICE=no'
7663                           fi
7664
7665 else
7666
7667                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7668                           if test "x$LINE" != x ; then
7669                             eval "DEFAULT_$LINE"
7670                           else
7671                             no_cache=1
7672                           fi
7673
7674                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7675
7676 fi;
7677
7678           eval "$ac_cv_use_choice"
7679           if test "$no_cache" != 1; then
7680             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7681           fi
7682
7683           if test "$wxUSE_CHOICE" = yes; then
7684             echo "$as_me:$LINENO: result: yes" >&5
7685 echo "${ECHO_T}yes" >&6
7686           else
7687             echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6
7689           fi
7690
7691
7692           enablestring=
7693           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7694 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7695           no_cache=0
7696           # Check whether --enable-choicebook or --disable-choicebook was given.
7697 if test "${enable_choicebook+set}" = set; then
7698   enableval="$enable_choicebook"
7699
7700                           if test "$enableval" = yes; then
7701                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7702                           else
7703                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7704                           fi
7705
7706 else
7707
7708                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7709                           if test "x$LINE" != x ; then
7710                             eval "DEFAULT_$LINE"
7711                           else
7712                             no_cache=1
7713                           fi
7714
7715                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7716
7717 fi;
7718
7719           eval "$ac_cv_use_choicebook"
7720           if test "$no_cache" != 1; then
7721             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7722           fi
7723
7724           if test "$wxUSE_CHOICEBOOK" = yes; then
7725             echo "$as_me:$LINENO: result: yes" >&5
7726 echo "${ECHO_T}yes" >&6
7727           else
7728             echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6
7730           fi
7731
7732
7733           enablestring=
7734           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7735 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7736           no_cache=0
7737           # Check whether --enable-combobox or --disable-combobox was given.
7738 if test "${enable_combobox+set}" = set; then
7739   enableval="$enable_combobox"
7740
7741                           if test "$enableval" = yes; then
7742                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7743                           else
7744                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7745                           fi
7746
7747 else
7748
7749                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7750                           if test "x$LINE" != x ; then
7751                             eval "DEFAULT_$LINE"
7752                           else
7753                             no_cache=1
7754                           fi
7755
7756                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7757
7758 fi;
7759
7760           eval "$ac_cv_use_combobox"
7761           if test "$no_cache" != 1; then
7762             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7763           fi
7764
7765           if test "$wxUSE_COMBOBOX" = yes; then
7766             echo "$as_me:$LINENO: result: yes" >&5
7767 echo "${ECHO_T}yes" >&6
7768           else
7769             echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6
7771           fi
7772
7773
7774           enablestring=
7775           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7776 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7777           no_cache=0
7778           # Check whether --enable-datepick or --disable-datepick was given.
7779 if test "${enable_datepick+set}" = set; then
7780   enableval="$enable_datepick"
7781
7782                           if test "$enableval" = yes; then
7783                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7784                           else
7785                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7786                           fi
7787
7788 else
7789
7790                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7791                           if test "x$LINE" != x ; then
7792                             eval "DEFAULT_$LINE"
7793                           else
7794                             no_cache=1
7795                           fi
7796
7797                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7798
7799 fi;
7800
7801           eval "$ac_cv_use_datepick"
7802           if test "$no_cache" != 1; then
7803             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7804           fi
7805
7806           if test "$wxUSE_DATEPICKCTRL" = yes; then
7807             echo "$as_me:$LINENO: result: yes" >&5
7808 echo "${ECHO_T}yes" >&6
7809           else
7810             echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6
7812           fi
7813
7814
7815           enablestring=
7816           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7817 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7818           no_cache=0
7819           # Check whether --enable-display or --disable-display was given.
7820 if test "${enable_display+set}" = set; then
7821   enableval="$enable_display"
7822
7823                           if test "$enableval" = yes; then
7824                             ac_cv_use_display='wxUSE_DISPLAY=yes'
7825                           else
7826                             ac_cv_use_display='wxUSE_DISPLAY=no'
7827                           fi
7828
7829 else
7830
7831                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7832                           if test "x$LINE" != x ; then
7833                             eval "DEFAULT_$LINE"
7834                           else
7835                             no_cache=1
7836                           fi
7837
7838                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7839
7840 fi;
7841
7842           eval "$ac_cv_use_display"
7843           if test "$no_cache" != 1; then
7844             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7845           fi
7846
7847           if test "$wxUSE_DISPLAY" = yes; then
7848             echo "$as_me:$LINENO: result: yes" >&5
7849 echo "${ECHO_T}yes" >&6
7850           else
7851             echo "$as_me:$LINENO: result: no" >&5
7852 echo "${ECHO_T}no" >&6
7853           fi
7854
7855
7856           enablestring=
7857           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7858 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7859           no_cache=0
7860           # Check whether --enable-gauge or --disable-gauge was given.
7861 if test "${enable_gauge+set}" = set; then
7862   enableval="$enable_gauge"
7863
7864                           if test "$enableval" = yes; then
7865                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
7866                           else
7867                             ac_cv_use_gauge='wxUSE_GAUGE=no'
7868                           fi
7869
7870 else
7871
7872                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7873                           if test "x$LINE" != x ; then
7874                             eval "DEFAULT_$LINE"
7875                           else
7876                             no_cache=1
7877                           fi
7878
7879                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7880
7881 fi;
7882
7883           eval "$ac_cv_use_gauge"
7884           if test "$no_cache" != 1; then
7885             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7886           fi
7887
7888           if test "$wxUSE_GAUGE" = yes; then
7889             echo "$as_me:$LINENO: result: yes" >&5
7890 echo "${ECHO_T}yes" >&6
7891           else
7892             echo "$as_me:$LINENO: result: no" >&5
7893 echo "${ECHO_T}no" >&6
7894           fi
7895
7896
7897           enablestring=
7898           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7899 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7900           no_cache=0
7901           # Check whether --enable-grid or --disable-grid was given.
7902 if test "${enable_grid+set}" = set; then
7903   enableval="$enable_grid"
7904
7905                           if test "$enableval" = yes; then
7906                             ac_cv_use_grid='wxUSE_GRID=yes'
7907                           else
7908                             ac_cv_use_grid='wxUSE_GRID=no'
7909                           fi
7910
7911 else
7912
7913                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7914                           if test "x$LINE" != x ; then
7915                             eval "DEFAULT_$LINE"
7916                           else
7917                             no_cache=1
7918                           fi
7919
7920                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7921
7922 fi;
7923
7924           eval "$ac_cv_use_grid"
7925           if test "$no_cache" != 1; then
7926             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7927           fi
7928
7929           if test "$wxUSE_GRID" = yes; then
7930             echo "$as_me:$LINENO: result: yes" >&5
7931 echo "${ECHO_T}yes" >&6
7932           else
7933             echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6
7935           fi
7936
7937
7938           enablestring=
7939           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7940 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7941           no_cache=0
7942           # Check whether --enable-imaglist or --disable-imaglist was given.
7943 if test "${enable_imaglist+set}" = set; then
7944   enableval="$enable_imaglist"
7945
7946                           if test "$enableval" = yes; then
7947                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7948                           else
7949                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7950                           fi
7951
7952 else
7953
7954                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7955                           if test "x$LINE" != x ; then
7956                             eval "DEFAULT_$LINE"
7957                           else
7958                             no_cache=1
7959                           fi
7960
7961                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7962
7963 fi;
7964
7965           eval "$ac_cv_use_imaglist"
7966           if test "$no_cache" != 1; then
7967             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7968           fi
7969
7970           if test "$wxUSE_IMAGLIST" = yes; then
7971             echo "$as_me:$LINENO: result: yes" >&5
7972 echo "${ECHO_T}yes" >&6
7973           else
7974             echo "$as_me:$LINENO: result: no" >&5
7975 echo "${ECHO_T}no" >&6
7976           fi
7977
7978
7979           enablestring=
7980           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7981 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7982           no_cache=0
7983           # Check whether --enable-listbook or --disable-listbook was given.
7984 if test "${enable_listbook+set}" = set; then
7985   enableval="$enable_listbook"
7986
7987                           if test "$enableval" = yes; then
7988                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7989                           else
7990                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7991                           fi
7992
7993 else
7994
7995                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7996                           if test "x$LINE" != x ; then
7997                             eval "DEFAULT_$LINE"
7998                           else
7999                             no_cache=1
8000                           fi
8001
8002                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8003
8004 fi;
8005
8006           eval "$ac_cv_use_listbook"
8007           if test "$no_cache" != 1; then
8008             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8009           fi
8010
8011           if test "$wxUSE_LISTBOOK" = yes; then
8012             echo "$as_me:$LINENO: result: yes" >&5
8013 echo "${ECHO_T}yes" >&6
8014           else
8015             echo "$as_me:$LINENO: result: no" >&5
8016 echo "${ECHO_T}no" >&6
8017           fi
8018
8019
8020           enablestring=
8021           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8022 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8023           no_cache=0
8024           # Check whether --enable-listbox or --disable-listbox was given.
8025 if test "${enable_listbox+set}" = set; then
8026   enableval="$enable_listbox"
8027
8028                           if test "$enableval" = yes; then
8029                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8030                           else
8031                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
8032                           fi
8033
8034 else
8035
8036                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8037                           if test "x$LINE" != x ; then
8038                             eval "DEFAULT_$LINE"
8039                           else
8040                             no_cache=1
8041                           fi
8042
8043                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8044
8045 fi;
8046
8047           eval "$ac_cv_use_listbox"
8048           if test "$no_cache" != 1; then
8049             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8050           fi
8051
8052           if test "$wxUSE_LISTBOX" = yes; then
8053             echo "$as_me:$LINENO: result: yes" >&5
8054 echo "${ECHO_T}yes" >&6
8055           else
8056             echo "$as_me:$LINENO: result: no" >&5
8057 echo "${ECHO_T}no" >&6
8058           fi
8059
8060
8061           enablestring=
8062           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8063 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8064           no_cache=0
8065           # Check whether --enable-listctrl or --disable-listctrl was given.
8066 if test "${enable_listctrl+set}" = set; then
8067   enableval="$enable_listctrl"
8068
8069                           if test "$enableval" = yes; then
8070                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8071                           else
8072                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8073                           fi
8074
8075 else
8076
8077                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8078                           if test "x$LINE" != x ; then
8079                             eval "DEFAULT_$LINE"
8080                           else
8081                             no_cache=1
8082                           fi
8083
8084                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8085
8086 fi;
8087
8088           eval "$ac_cv_use_listctrl"
8089           if test "$no_cache" != 1; then
8090             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8091           fi
8092
8093           if test "$wxUSE_LISTCTRL" = yes; then
8094             echo "$as_me:$LINENO: result: yes" >&5
8095 echo "${ECHO_T}yes" >&6
8096           else
8097             echo "$as_me:$LINENO: result: no" >&5
8098 echo "${ECHO_T}no" >&6
8099           fi
8100
8101
8102           enablestring=
8103           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8104 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8105           no_cache=0
8106           # Check whether --enable-notebook or --disable-notebook was given.
8107 if test "${enable_notebook+set}" = set; then
8108   enableval="$enable_notebook"
8109
8110                           if test "$enableval" = yes; then
8111                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8112                           else
8113                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8114                           fi
8115
8116 else
8117
8118                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8119                           if test "x$LINE" != x ; then
8120                             eval "DEFAULT_$LINE"
8121                           else
8122                             no_cache=1
8123                           fi
8124
8125                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8126
8127 fi;
8128
8129           eval "$ac_cv_use_notebook"
8130           if test "$no_cache" != 1; then
8131             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8132           fi
8133
8134           if test "$wxUSE_NOTEBOOK" = yes; then
8135             echo "$as_me:$LINENO: result: yes" >&5
8136 echo "${ECHO_T}yes" >&6
8137           else
8138             echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6
8140           fi
8141
8142
8143           enablestring=
8144           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8145 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8146           no_cache=0
8147           # Check whether --enable-radiobox or --disable-radiobox was given.
8148 if test "${enable_radiobox+set}" = set; then
8149   enableval="$enable_radiobox"
8150
8151                           if test "$enableval" = yes; then
8152                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8153                           else
8154                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8155                           fi
8156
8157 else
8158
8159                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8160                           if test "x$LINE" != x ; then
8161                             eval "DEFAULT_$LINE"
8162                           else
8163                             no_cache=1
8164                           fi
8165
8166                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8167
8168 fi;
8169
8170           eval "$ac_cv_use_radiobox"
8171           if test "$no_cache" != 1; then
8172             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8173           fi
8174
8175           if test "$wxUSE_RADIOBOX" = yes; then
8176             echo "$as_me:$LINENO: result: yes" >&5
8177 echo "${ECHO_T}yes" >&6
8178           else
8179             echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6
8181           fi
8182
8183
8184           enablestring=
8185           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8186 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8187           no_cache=0
8188           # Check whether --enable-radiobtn or --disable-radiobtn was given.
8189 if test "${enable_radiobtn+set}" = set; then
8190   enableval="$enable_radiobtn"
8191
8192                           if test "$enableval" = yes; then
8193                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8194                           else
8195                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8196                           fi
8197
8198 else
8199
8200                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8201                           if test "x$LINE" != x ; then
8202                             eval "DEFAULT_$LINE"
8203                           else
8204                             no_cache=1
8205                           fi
8206
8207                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8208
8209 fi;
8210
8211           eval "$ac_cv_use_radiobtn"
8212           if test "$no_cache" != 1; then
8213             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8214           fi
8215
8216           if test "$wxUSE_RADIOBTN" = yes; then
8217             echo "$as_me:$LINENO: result: yes" >&5
8218 echo "${ECHO_T}yes" >&6
8219           else
8220             echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6
8222           fi
8223
8224
8225           enablestring=
8226           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8227 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8228           no_cache=0
8229           # Check whether --enable-sash or --disable-sash was given.
8230 if test "${enable_sash+set}" = set; then
8231   enableval="$enable_sash"
8232
8233                           if test "$enableval" = yes; then
8234                             ac_cv_use_sash='wxUSE_SASH=yes'
8235                           else
8236                             ac_cv_use_sash='wxUSE_SASH=no'
8237                           fi
8238
8239 else
8240
8241                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8242                           if test "x$LINE" != x ; then
8243                             eval "DEFAULT_$LINE"
8244                           else
8245                             no_cache=1
8246                           fi
8247
8248                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8249
8250 fi;
8251
8252           eval "$ac_cv_use_sash"
8253           if test "$no_cache" != 1; then
8254             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8255           fi
8256
8257           if test "$wxUSE_SASH" = yes; then
8258             echo "$as_me:$LINENO: result: yes" >&5
8259 echo "${ECHO_T}yes" >&6
8260           else
8261             echo "$as_me:$LINENO: result: no" >&5
8262 echo "${ECHO_T}no" >&6
8263           fi
8264
8265
8266           enablestring=
8267           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8268 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8269           no_cache=0
8270           # Check whether --enable-scrollbar or --disable-scrollbar was given.
8271 if test "${enable_scrollbar+set}" = set; then
8272   enableval="$enable_scrollbar"
8273
8274                           if test "$enableval" = yes; then
8275                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8276                           else
8277                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8278                           fi
8279
8280 else
8281
8282                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8283                           if test "x$LINE" != x ; then
8284                             eval "DEFAULT_$LINE"
8285                           else
8286                             no_cache=1
8287                           fi
8288
8289                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8290
8291 fi;
8292
8293           eval "$ac_cv_use_scrollbar"
8294           if test "$no_cache" != 1; then
8295             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8296           fi
8297
8298           if test "$wxUSE_SCROLLBAR" = yes; then
8299             echo "$as_me:$LINENO: result: yes" >&5
8300 echo "${ECHO_T}yes" >&6
8301           else
8302             echo "$as_me:$LINENO: result: no" >&5
8303 echo "${ECHO_T}no" >&6
8304           fi
8305
8306
8307           enablestring=
8308           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8309 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8310           no_cache=0
8311           # Check whether --enable-slider or --disable-slider was given.
8312 if test "${enable_slider+set}" = set; then
8313   enableval="$enable_slider"
8314
8315                           if test "$enableval" = yes; then
8316                             ac_cv_use_slider='wxUSE_SLIDER=yes'
8317                           else
8318                             ac_cv_use_slider='wxUSE_SLIDER=no'
8319                           fi
8320
8321 else
8322
8323                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8324                           if test "x$LINE" != x ; then
8325                             eval "DEFAULT_$LINE"
8326                           else
8327                             no_cache=1
8328                           fi
8329
8330                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8331
8332 fi;
8333
8334           eval "$ac_cv_use_slider"
8335           if test "$no_cache" != 1; then
8336             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8337           fi
8338
8339           if test "$wxUSE_SLIDER" = yes; then
8340             echo "$as_me:$LINENO: result: yes" >&5
8341 echo "${ECHO_T}yes" >&6
8342           else
8343             echo "$as_me:$LINENO: result: no" >&5
8344 echo "${ECHO_T}no" >&6
8345           fi
8346
8347
8348           enablestring=
8349           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8350 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8351           no_cache=0
8352           # Check whether --enable-spinbtn or --disable-spinbtn was given.
8353 if test "${enable_spinbtn+set}" = set; then
8354   enableval="$enable_spinbtn"
8355
8356                           if test "$enableval" = yes; then
8357                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8358                           else
8359                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8360                           fi
8361
8362 else
8363
8364                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8365                           if test "x$LINE" != x ; then
8366                             eval "DEFAULT_$LINE"
8367                           else
8368                             no_cache=1
8369                           fi
8370
8371                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8372
8373 fi;
8374
8375           eval "$ac_cv_use_spinbtn"
8376           if test "$no_cache" != 1; then
8377             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8378           fi
8379
8380           if test "$wxUSE_SPINBTN" = yes; then
8381             echo "$as_me:$LINENO: result: yes" >&5
8382 echo "${ECHO_T}yes" >&6
8383           else
8384             echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6
8386           fi
8387
8388
8389           enablestring=
8390           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8391 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8392           no_cache=0
8393           # Check whether --enable-spinctrl or --disable-spinctrl was given.
8394 if test "${enable_spinctrl+set}" = set; then
8395   enableval="$enable_spinctrl"
8396
8397                           if test "$enableval" = yes; then
8398                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8399                           else
8400                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8401                           fi
8402
8403 else
8404
8405                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8406                           if test "x$LINE" != x ; then
8407                             eval "DEFAULT_$LINE"
8408                           else
8409                             no_cache=1
8410                           fi
8411
8412                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8413
8414 fi;
8415
8416           eval "$ac_cv_use_spinctrl"
8417           if test "$no_cache" != 1; then
8418             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8419           fi
8420
8421           if test "$wxUSE_SPINCTRL" = yes; then
8422             echo "$as_me:$LINENO: result: yes" >&5
8423 echo "${ECHO_T}yes" >&6
8424           else
8425             echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6
8427           fi
8428
8429
8430           enablestring=
8431           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8432 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8433           no_cache=0
8434           # Check whether --enable-splitter or --disable-splitter was given.
8435 if test "${enable_splitter+set}" = set; then
8436   enableval="$enable_splitter"
8437
8438                           if test "$enableval" = yes; then
8439                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8440                           else
8441                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
8442                           fi
8443
8444 else
8445
8446                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8447                           if test "x$LINE" != x ; then
8448                             eval "DEFAULT_$LINE"
8449                           else
8450                             no_cache=1
8451                           fi
8452
8453                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8454
8455 fi;
8456
8457           eval "$ac_cv_use_splitter"
8458           if test "$no_cache" != 1; then
8459             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8460           fi
8461
8462           if test "$wxUSE_SPLITTER" = yes; then
8463             echo "$as_me:$LINENO: result: yes" >&5
8464 echo "${ECHO_T}yes" >&6
8465           else
8466             echo "$as_me:$LINENO: result: no" >&5
8467 echo "${ECHO_T}no" >&6
8468           fi
8469
8470
8471           enablestring=
8472           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8473 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8474           no_cache=0
8475           # Check whether --enable-statbmp or --disable-statbmp was given.
8476 if test "${enable_statbmp+set}" = set; then
8477   enableval="$enable_statbmp"
8478
8479                           if test "$enableval" = yes; then
8480                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8481                           else
8482                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
8483                           fi
8484
8485 else
8486
8487                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8488                           if test "x$LINE" != x ; then
8489                             eval "DEFAULT_$LINE"
8490                           else
8491                             no_cache=1
8492                           fi
8493
8494                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8495
8496 fi;
8497
8498           eval "$ac_cv_use_statbmp"
8499           if test "$no_cache" != 1; then
8500             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8501           fi
8502
8503           if test "$wxUSE_STATBMP" = yes; then
8504             echo "$as_me:$LINENO: result: yes" >&5
8505 echo "${ECHO_T}yes" >&6
8506           else
8507             echo "$as_me:$LINENO: result: no" >&5
8508 echo "${ECHO_T}no" >&6
8509           fi
8510
8511
8512           enablestring=
8513           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8514 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8515           no_cache=0
8516           # Check whether --enable-statbox or --disable-statbox was given.
8517 if test "${enable_statbox+set}" = set; then
8518   enableval="$enable_statbox"
8519
8520                           if test "$enableval" = yes; then
8521                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
8522                           else
8523                             ac_cv_use_statbox='wxUSE_STATBOX=no'
8524                           fi
8525
8526 else
8527
8528                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8529                           if test "x$LINE" != x ; then
8530                             eval "DEFAULT_$LINE"
8531                           else
8532                             no_cache=1
8533                           fi
8534
8535                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8536
8537 fi;
8538
8539           eval "$ac_cv_use_statbox"
8540           if test "$no_cache" != 1; then
8541             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8542           fi
8543
8544           if test "$wxUSE_STATBOX" = yes; then
8545             echo "$as_me:$LINENO: result: yes" >&5
8546 echo "${ECHO_T}yes" >&6
8547           else
8548             echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6
8550           fi
8551
8552
8553           enablestring=
8554           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8555 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8556           no_cache=0
8557           # Check whether --enable-statline or --disable-statline was given.
8558 if test "${enable_statline+set}" = set; then
8559   enableval="$enable_statline"
8560
8561                           if test "$enableval" = yes; then
8562                             ac_cv_use_statline='wxUSE_STATLINE=yes'
8563                           else
8564                             ac_cv_use_statline='wxUSE_STATLINE=no'
8565                           fi
8566
8567 else
8568
8569                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8570                           if test "x$LINE" != x ; then
8571                             eval "DEFAULT_$LINE"
8572                           else
8573                             no_cache=1
8574                           fi
8575
8576                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8577
8578 fi;
8579
8580           eval "$ac_cv_use_statline"
8581           if test "$no_cache" != 1; then
8582             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8583           fi
8584
8585           if test "$wxUSE_STATLINE" = yes; then
8586             echo "$as_me:$LINENO: result: yes" >&5
8587 echo "${ECHO_T}yes" >&6
8588           else
8589             echo "$as_me:$LINENO: result: no" >&5
8590 echo "${ECHO_T}no" >&6
8591           fi
8592
8593
8594           enablestring=
8595           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8596 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8597           no_cache=0
8598           # Check whether --enable-stattext or --disable-stattext was given.
8599 if test "${enable_stattext+set}" = set; then
8600   enableval="$enable_stattext"
8601
8602                           if test "$enableval" = yes; then
8603                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8604                           else
8605                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
8606                           fi
8607
8608 else
8609
8610                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8611                           if test "x$LINE" != x ; then
8612                             eval "DEFAULT_$LINE"
8613                           else
8614                             no_cache=1
8615                           fi
8616
8617                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8618
8619 fi;
8620
8621           eval "$ac_cv_use_stattext"
8622           if test "$no_cache" != 1; then
8623             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8624           fi
8625
8626           if test "$wxUSE_STATTEXT" = yes; then
8627             echo "$as_me:$LINENO: result: yes" >&5
8628 echo "${ECHO_T}yes" >&6
8629           else
8630             echo "$as_me:$LINENO: result: no" >&5
8631 echo "${ECHO_T}no" >&6
8632           fi
8633
8634
8635           enablestring=
8636           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8637 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8638           no_cache=0
8639           # Check whether --enable-statusbar or --disable-statusbar was given.
8640 if test "${enable_statusbar+set}" = set; then
8641   enableval="$enable_statusbar"
8642
8643                           if test "$enableval" = yes; then
8644                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8645                           else
8646                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8647                           fi
8648
8649 else
8650
8651                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8652                           if test "x$LINE" != x ; then
8653                             eval "DEFAULT_$LINE"
8654                           else
8655                             no_cache=1
8656                           fi
8657
8658                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8659
8660 fi;
8661
8662           eval "$ac_cv_use_statusbar"
8663           if test "$no_cache" != 1; then
8664             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8665           fi
8666
8667           if test "$wxUSE_STATUSBAR" = yes; then
8668             echo "$as_me:$LINENO: result: yes" >&5
8669 echo "${ECHO_T}yes" >&6
8670           else
8671             echo "$as_me:$LINENO: result: no" >&5
8672 echo "${ECHO_T}no" >&6
8673           fi
8674
8675
8676           enablestring=
8677           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8678 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8679           no_cache=0
8680           # Check whether --enable-tabdialog or --disable-tabdialog was given.
8681 if test "${enable_tabdialog+set}" = set; then
8682   enableval="$enable_tabdialog"
8683
8684                           if test "$enableval" = yes; then
8685                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8686                           else
8687                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8688                           fi
8689
8690 else
8691
8692                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8693                           if test "x$LINE" != x ; then
8694                             eval "DEFAULT_$LINE"
8695                           else
8696                             no_cache=1
8697                           fi
8698
8699                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8700
8701 fi;
8702
8703           eval "$ac_cv_use_tabdialog"
8704           if test "$no_cache" != 1; then
8705             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8706           fi
8707
8708           if test "$wxUSE_TABDIALOG" = yes; then
8709             echo "$as_me:$LINENO: result: yes" >&5
8710 echo "${ECHO_T}yes" >&6
8711           else
8712             echo "$as_me:$LINENO: result: no" >&5
8713 echo "${ECHO_T}no" >&6
8714           fi
8715
8716
8717           enablestring=
8718           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8719 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8720           no_cache=0
8721           # Check whether --enable-textctrl or --disable-textctrl was given.
8722 if test "${enable_textctrl+set}" = set; then
8723   enableval="$enable_textctrl"
8724
8725                           if test "$enableval" = yes; then
8726                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8727                           else
8728                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8729                           fi
8730
8731 else
8732
8733                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8734                           if test "x$LINE" != x ; then
8735                             eval "DEFAULT_$LINE"
8736                           else
8737                             no_cache=1
8738                           fi
8739
8740                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8741
8742 fi;
8743
8744           eval "$ac_cv_use_textctrl"
8745           if test "$no_cache" != 1; then
8746             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8747           fi
8748
8749           if test "$wxUSE_TEXTCTRL" = yes; then
8750             echo "$as_me:$LINENO: result: yes" >&5
8751 echo "${ECHO_T}yes" >&6
8752           else
8753             echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6
8755           fi
8756
8757
8758           enablestring=
8759           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8760 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8761           no_cache=0
8762           # Check whether --enable-togglebtn or --disable-togglebtn was given.
8763 if test "${enable_togglebtn+set}" = set; then
8764   enableval="$enable_togglebtn"
8765
8766                           if test "$enableval" = yes; then
8767                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8768                           else
8769                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8770                           fi
8771
8772 else
8773
8774                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8775                           if test "x$LINE" != x ; then
8776                             eval "DEFAULT_$LINE"
8777                           else
8778                             no_cache=1
8779                           fi
8780
8781                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8782
8783 fi;
8784
8785           eval "$ac_cv_use_togglebtn"
8786           if test "$no_cache" != 1; then
8787             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8788           fi
8789
8790           if test "$wxUSE_TOGGLEBTN" = yes; then
8791             echo "$as_me:$LINENO: result: yes" >&5
8792 echo "${ECHO_T}yes" >&6
8793           else
8794             echo "$as_me:$LINENO: result: no" >&5
8795 echo "${ECHO_T}no" >&6
8796           fi
8797
8798
8799           enablestring=
8800           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8801 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8802           no_cache=0
8803           # Check whether --enable-toolbar or --disable-toolbar was given.
8804 if test "${enable_toolbar+set}" = set; then
8805   enableval="$enable_toolbar"
8806
8807                           if test "$enableval" = yes; then
8808                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8809                           else
8810                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8811                           fi
8812
8813 else
8814
8815                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8816                           if test "x$LINE" != x ; then
8817                             eval "DEFAULT_$LINE"
8818                           else
8819                             no_cache=1
8820                           fi
8821
8822                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8823
8824 fi;
8825
8826           eval "$ac_cv_use_toolbar"
8827           if test "$no_cache" != 1; then
8828             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8829           fi
8830
8831           if test "$wxUSE_TOOLBAR" = yes; then
8832             echo "$as_me:$LINENO: result: yes" >&5
8833 echo "${ECHO_T}yes" >&6
8834           else
8835             echo "$as_me:$LINENO: result: no" >&5
8836 echo "${ECHO_T}no" >&6
8837           fi
8838
8839
8840           enablestring=
8841           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8842 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8843           no_cache=0
8844           # Check whether --enable-tbarnative or --disable-tbarnative was given.
8845 if test "${enable_tbarnative+set}" = set; then
8846   enableval="$enable_tbarnative"
8847
8848                           if test "$enableval" = yes; then
8849                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8850                           else
8851                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8852                           fi
8853
8854 else
8855
8856                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8857                           if test "x$LINE" != x ; then
8858                             eval "DEFAULT_$LINE"
8859                           else
8860                             no_cache=1
8861                           fi
8862
8863                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8864
8865 fi;
8866
8867           eval "$ac_cv_use_tbarnative"
8868           if test "$no_cache" != 1; then
8869             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8870           fi
8871
8872           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8873             echo "$as_me:$LINENO: result: yes" >&5
8874 echo "${ECHO_T}yes" >&6
8875           else
8876             echo "$as_me:$LINENO: result: no" >&5
8877 echo "${ECHO_T}no" >&6
8878           fi
8879
8880
8881           enablestring=
8882           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8883 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8884           no_cache=0
8885           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8886 if test "${enable_tbarsmpl+set}" = set; then
8887   enableval="$enable_tbarsmpl"
8888
8889                           if test "$enableval" = yes; then
8890                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8891                           else
8892                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8893                           fi
8894
8895 else
8896
8897                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8898                           if test "x$LINE" != x ; then
8899                             eval "DEFAULT_$LINE"
8900                           else
8901                             no_cache=1
8902                           fi
8903
8904                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8905
8906 fi;
8907
8908           eval "$ac_cv_use_tbarsmpl"
8909           if test "$no_cache" != 1; then
8910             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8911           fi
8912
8913           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8914             echo "$as_me:$LINENO: result: yes" >&5
8915 echo "${ECHO_T}yes" >&6
8916           else
8917             echo "$as_me:$LINENO: result: no" >&5
8918 echo "${ECHO_T}no" >&6
8919           fi
8920
8921
8922           enablestring=
8923           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8924 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8925           no_cache=0
8926           # Check whether --enable-treectrl or --disable-treectrl was given.
8927 if test "${enable_treectrl+set}" = set; then
8928   enableval="$enable_treectrl"
8929
8930                           if test "$enableval" = yes; then
8931                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8932                           else
8933                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8934                           fi
8935
8936 else
8937
8938                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8939                           if test "x$LINE" != x ; then
8940                             eval "DEFAULT_$LINE"
8941                           else
8942                             no_cache=1
8943                           fi
8944
8945                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8946
8947 fi;
8948
8949           eval "$ac_cv_use_treectrl"
8950           if test "$no_cache" != 1; then
8951             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8952           fi
8953
8954           if test "$wxUSE_TREECTRL" = yes; then
8955             echo "$as_me:$LINENO: result: yes" >&5
8956 echo "${ECHO_T}yes" >&6
8957           else
8958             echo "$as_me:$LINENO: result: no" >&5
8959 echo "${ECHO_T}no" >&6
8960           fi
8961
8962
8963           enablestring=
8964           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8965 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8966           no_cache=0
8967           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8968 if test "${enable_tipwindow+set}" = set; then
8969   enableval="$enable_tipwindow"
8970
8971                           if test "$enableval" = yes; then
8972                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8973                           else
8974                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8975                           fi
8976
8977 else
8978
8979                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8980                           if test "x$LINE" != x ; then
8981                             eval "DEFAULT_$LINE"
8982                           else
8983                             no_cache=1
8984                           fi
8985
8986                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8987
8988 fi;
8989
8990           eval "$ac_cv_use_tipwindow"
8991           if test "$no_cache" != 1; then
8992             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8993           fi
8994
8995           if test "$wxUSE_TIPWINDOW" = yes; then
8996             echo "$as_me:$LINENO: result: yes" >&5
8997 echo "${ECHO_T}yes" >&6
8998           else
8999             echo "$as_me:$LINENO: result: no" >&5
9000 echo "${ECHO_T}no" >&6
9001           fi
9002
9003
9004           enablestring=
9005           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9006 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9007           no_cache=0
9008           # Check whether --enable-popupwin or --disable-popupwin was given.
9009 if test "${enable_popupwin+set}" = set; then
9010   enableval="$enable_popupwin"
9011
9012                           if test "$enableval" = yes; then
9013                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9014                           else
9015                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9016                           fi
9017
9018 else
9019
9020                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9021                           if test "x$LINE" != x ; then
9022                             eval "DEFAULT_$LINE"
9023                           else
9024                             no_cache=1
9025                           fi
9026
9027                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9028
9029 fi;
9030
9031           eval "$ac_cv_use_popupwin"
9032           if test "$no_cache" != 1; then
9033             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9034           fi
9035
9036           if test "$wxUSE_POPUPWIN" = yes; then
9037             echo "$as_me:$LINENO: result: yes" >&5
9038 echo "${ECHO_T}yes" >&6
9039           else
9040             echo "$as_me:$LINENO: result: no" >&5
9041 echo "${ECHO_T}no" >&6
9042           fi
9043
9044
9045
9046
9047           enablestring=
9048           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9049 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9050           no_cache=0
9051           # Check whether --enable-commondlg or --disable-commondlg was given.
9052 if test "${enable_commondlg+set}" = set; then
9053   enableval="$enable_commondlg"
9054
9055                           if test "$enableval" = yes; then
9056                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9057                           else
9058                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9059                           fi
9060
9061 else
9062
9063                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9064                           if test "x$LINE" != x ; then
9065                             eval "DEFAULT_$LINE"
9066                           else
9067                             no_cache=1
9068                           fi
9069
9070                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9071
9072 fi;
9073
9074           eval "$ac_cv_use_commondlg"
9075           if test "$no_cache" != 1; then
9076             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9077           fi
9078
9079           if test "$wxUSE_COMMONDLGS" = yes; then
9080             echo "$as_me:$LINENO: result: yes" >&5
9081 echo "${ECHO_T}yes" >&6
9082           else
9083             echo "$as_me:$LINENO: result: no" >&5
9084 echo "${ECHO_T}no" >&6
9085           fi
9086
9087
9088           enablestring=
9089           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9090 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9091           no_cache=0
9092           # Check whether --enable-choicedlg or --disable-choicedlg was given.
9093 if test "${enable_choicedlg+set}" = set; then
9094   enableval="$enable_choicedlg"
9095
9096                           if test "$enableval" = yes; then
9097                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9098                           else
9099                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9100                           fi
9101
9102 else
9103
9104                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9105                           if test "x$LINE" != x ; then
9106                             eval "DEFAULT_$LINE"
9107                           else
9108                             no_cache=1
9109                           fi
9110
9111                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9112
9113 fi;
9114
9115           eval "$ac_cv_use_choicedlg"
9116           if test "$no_cache" != 1; then
9117             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9118           fi
9119
9120           if test "$wxUSE_CHOICEDLG" = yes; then
9121             echo "$as_me:$LINENO: result: yes" >&5
9122 echo "${ECHO_T}yes" >&6
9123           else
9124             echo "$as_me:$LINENO: result: no" >&5
9125 echo "${ECHO_T}no" >&6
9126           fi
9127
9128
9129           enablestring=
9130           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9131 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9132           no_cache=0
9133           # Check whether --enable-coldlg or --disable-coldlg was given.
9134 if test "${enable_coldlg+set}" = set; then
9135   enableval="$enable_coldlg"
9136
9137                           if test "$enableval" = yes; then
9138                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9139                           else
9140                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9141                           fi
9142
9143 else
9144
9145                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9146                           if test "x$LINE" != x ; then
9147                             eval "DEFAULT_$LINE"
9148                           else
9149                             no_cache=1
9150                           fi
9151
9152                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9153
9154 fi;
9155
9156           eval "$ac_cv_use_coldlg"
9157           if test "$no_cache" != 1; then
9158             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9159           fi
9160
9161           if test "$wxUSE_COLOURDLG" = yes; then
9162             echo "$as_me:$LINENO: result: yes" >&5
9163 echo "${ECHO_T}yes" >&6
9164           else
9165             echo "$as_me:$LINENO: result: no" >&5
9166 echo "${ECHO_T}no" >&6
9167           fi
9168
9169
9170           enablestring=
9171           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9172 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9173           no_cache=0
9174           # Check whether --enable-filedlg or --disable-filedlg was given.
9175 if test "${enable_filedlg+set}" = set; then
9176   enableval="$enable_filedlg"
9177
9178                           if test "$enableval" = yes; then
9179                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9180                           else
9181                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9182                           fi
9183
9184 else
9185
9186                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9187                           if test "x$LINE" != x ; then
9188                             eval "DEFAULT_$LINE"
9189                           else
9190                             no_cache=1
9191                           fi
9192
9193                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9194
9195 fi;
9196
9197           eval "$ac_cv_use_filedlg"
9198           if test "$no_cache" != 1; then
9199             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9200           fi
9201
9202           if test "$wxUSE_FILEDLG" = yes; then
9203             echo "$as_me:$LINENO: result: yes" >&5
9204 echo "${ECHO_T}yes" >&6
9205           else
9206             echo "$as_me:$LINENO: result: no" >&5
9207 echo "${ECHO_T}no" >&6
9208           fi
9209
9210
9211           enablestring=
9212           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9213 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9214           no_cache=0
9215           # Check whether --enable-finddlg or --disable-finddlg was given.
9216 if test "${enable_finddlg+set}" = set; then
9217   enableval="$enable_finddlg"
9218
9219                           if test "$enableval" = yes; then
9220                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9221                           else
9222                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9223                           fi
9224
9225 else
9226
9227                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9228                           if test "x$LINE" != x ; then
9229                             eval "DEFAULT_$LINE"
9230                           else
9231                             no_cache=1
9232                           fi
9233
9234                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9235
9236 fi;
9237
9238           eval "$ac_cv_use_finddlg"
9239           if test "$no_cache" != 1; then
9240             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9241           fi
9242
9243           if test "$wxUSE_FINDREPLDLG" = yes; then
9244             echo "$as_me:$LINENO: result: yes" >&5
9245 echo "${ECHO_T}yes" >&6
9246           else
9247             echo "$as_me:$LINENO: result: no" >&5
9248 echo "${ECHO_T}no" >&6
9249           fi
9250
9251
9252           enablestring=
9253           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9254 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9255           no_cache=0
9256           # Check whether --enable-fontdlg or --disable-fontdlg was given.
9257 if test "${enable_fontdlg+set}" = set; then
9258   enableval="$enable_fontdlg"
9259
9260                           if test "$enableval" = yes; then
9261                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9262                           else
9263                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9264                           fi
9265
9266 else
9267
9268                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9269                           if test "x$LINE" != x ; then
9270                             eval "DEFAULT_$LINE"
9271                           else
9272                             no_cache=1
9273                           fi
9274
9275                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9276
9277 fi;
9278
9279           eval "$ac_cv_use_fontdlg"
9280           if test "$no_cache" != 1; then
9281             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9282           fi
9283
9284           if test "$wxUSE_FONTDLG" = yes; then
9285             echo "$as_me:$LINENO: result: yes" >&5
9286 echo "${ECHO_T}yes" >&6
9287           else
9288             echo "$as_me:$LINENO: result: no" >&5
9289 echo "${ECHO_T}no" >&6
9290           fi
9291
9292
9293           enablestring=
9294           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9295 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9296           no_cache=0
9297           # Check whether --enable-dirdlg or --disable-dirdlg was given.
9298 if test "${enable_dirdlg+set}" = set; then
9299   enableval="$enable_dirdlg"
9300
9301                           if test "$enableval" = yes; then
9302                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9303                           else
9304                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9305                           fi
9306
9307 else
9308
9309                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9310                           if test "x$LINE" != x ; then
9311                             eval "DEFAULT_$LINE"
9312                           else
9313                             no_cache=1
9314                           fi
9315
9316                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9317
9318 fi;
9319
9320           eval "$ac_cv_use_dirdlg"
9321           if test "$no_cache" != 1; then
9322             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9323           fi
9324
9325           if test "$wxUSE_DIRDLG" = yes; then
9326             echo "$as_me:$LINENO: result: yes" >&5
9327 echo "${ECHO_T}yes" >&6
9328           else
9329             echo "$as_me:$LINENO: result: no" >&5
9330 echo "${ECHO_T}no" >&6
9331           fi
9332
9333
9334           enablestring=
9335           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9336 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9337           no_cache=0
9338           # Check whether --enable-msgdlg or --disable-msgdlg was given.
9339 if test "${enable_msgdlg+set}" = set; then
9340   enableval="$enable_msgdlg"
9341
9342                           if test "$enableval" = yes; then
9343                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9344                           else
9345                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9346                           fi
9347
9348 else
9349
9350                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9351                           if test "x$LINE" != x ; then
9352                             eval "DEFAULT_$LINE"
9353                           else
9354                             no_cache=1
9355                           fi
9356
9357                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9358
9359 fi;
9360
9361           eval "$ac_cv_use_msgdlg"
9362           if test "$no_cache" != 1; then
9363             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9364           fi
9365
9366           if test "$wxUSE_MSGDLG" = yes; then
9367             echo "$as_me:$LINENO: result: yes" >&5
9368 echo "${ECHO_T}yes" >&6
9369           else
9370             echo "$as_me:$LINENO: result: no" >&5
9371 echo "${ECHO_T}no" >&6
9372           fi
9373
9374
9375           enablestring=
9376           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9377 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9378           no_cache=0
9379           # Check whether --enable-numberdlg or --disable-numberdlg was given.
9380 if test "${enable_numberdlg+set}" = set; then
9381   enableval="$enable_numberdlg"
9382
9383                           if test "$enableval" = yes; then
9384                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9385                           else
9386                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9387                           fi
9388
9389 else
9390
9391                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9392                           if test "x$LINE" != x ; then
9393                             eval "DEFAULT_$LINE"
9394                           else
9395                             no_cache=1
9396                           fi
9397
9398                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9399
9400 fi;
9401
9402           eval "$ac_cv_use_numberdlg"
9403           if test "$no_cache" != 1; then
9404             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9405           fi
9406
9407           if test "$wxUSE_NUMBERDLG" = yes; then
9408             echo "$as_me:$LINENO: result: yes" >&5
9409 echo "${ECHO_T}yes" >&6
9410           else
9411             echo "$as_me:$LINENO: result: no" >&5
9412 echo "${ECHO_T}no" >&6
9413           fi
9414
9415
9416           enablestring=
9417           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9418 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9419           no_cache=0
9420           # Check whether --enable-splash or --disable-splash was given.
9421 if test "${enable_splash+set}" = set; then
9422   enableval="$enable_splash"
9423
9424                           if test "$enableval" = yes; then
9425                             ac_cv_use_splash='wxUSE_SPLASH=yes'
9426                           else
9427                             ac_cv_use_splash='wxUSE_SPLASH=no'
9428                           fi
9429
9430 else
9431
9432                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9433                           if test "x$LINE" != x ; then
9434                             eval "DEFAULT_$LINE"
9435                           else
9436                             no_cache=1
9437                           fi
9438
9439                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9440
9441 fi;
9442
9443           eval "$ac_cv_use_splash"
9444           if test "$no_cache" != 1; then
9445             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9446           fi
9447
9448           if test "$wxUSE_SPLASH" = yes; then
9449             echo "$as_me:$LINENO: result: yes" >&5
9450 echo "${ECHO_T}yes" >&6
9451           else
9452             echo "$as_me:$LINENO: result: no" >&5
9453 echo "${ECHO_T}no" >&6
9454           fi
9455
9456
9457           enablestring=
9458           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9459 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9460           no_cache=0
9461           # Check whether --enable-textdlg or --disable-textdlg was given.
9462 if test "${enable_textdlg+set}" = set; then
9463   enableval="$enable_textdlg"
9464
9465                           if test "$enableval" = yes; then
9466                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9467                           else
9468                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9469                           fi
9470
9471 else
9472
9473                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9474                           if test "x$LINE" != x ; then
9475                             eval "DEFAULT_$LINE"
9476                           else
9477                             no_cache=1
9478                           fi
9479
9480                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9481
9482 fi;
9483
9484           eval "$ac_cv_use_textdlg"
9485           if test "$no_cache" != 1; then
9486             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9487           fi
9488
9489           if test "$wxUSE_TEXTDLG" = yes; then
9490             echo "$as_me:$LINENO: result: yes" >&5
9491 echo "${ECHO_T}yes" >&6
9492           else
9493             echo "$as_me:$LINENO: result: no" >&5
9494 echo "${ECHO_T}no" >&6
9495           fi
9496
9497
9498           enablestring=
9499           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9500 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9501           no_cache=0
9502           # Check whether --enable-tipdlg or --disable-tipdlg was given.
9503 if test "${enable_tipdlg+set}" = set; then
9504   enableval="$enable_tipdlg"
9505
9506                           if test "$enableval" = yes; then
9507                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9508                           else
9509                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9510                           fi
9511
9512 else
9513
9514                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9515                           if test "x$LINE" != x ; then
9516                             eval "DEFAULT_$LINE"
9517                           else
9518                             no_cache=1
9519                           fi
9520
9521                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9522
9523 fi;
9524
9525           eval "$ac_cv_use_tipdlg"
9526           if test "$no_cache" != 1; then
9527             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9528           fi
9529
9530           if test "$wxUSE_STARTUP_TIPS" = yes; then
9531             echo "$as_me:$LINENO: result: yes" >&5
9532 echo "${ECHO_T}yes" >&6
9533           else
9534             echo "$as_me:$LINENO: result: no" >&5
9535 echo "${ECHO_T}no" >&6
9536           fi
9537
9538
9539           enablestring=
9540           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9541 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9542           no_cache=0
9543           # Check whether --enable-progressdlg or --disable-progressdlg was given.
9544 if test "${enable_progressdlg+set}" = set; then
9545   enableval="$enable_progressdlg"
9546
9547                           if test "$enableval" = yes; then
9548                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9549                           else
9550                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9551                           fi
9552
9553 else
9554
9555                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9556                           if test "x$LINE" != x ; then
9557                             eval "DEFAULT_$LINE"
9558                           else
9559                             no_cache=1
9560                           fi
9561
9562                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9563
9564 fi;
9565
9566           eval "$ac_cv_use_progressdlg"
9567           if test "$no_cache" != 1; then
9568             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9569           fi
9570
9571           if test "$wxUSE_PROGRESSDLG" = yes; then
9572             echo "$as_me:$LINENO: result: yes" >&5
9573 echo "${ECHO_T}yes" >&6
9574           else
9575             echo "$as_me:$LINENO: result: no" >&5
9576 echo "${ECHO_T}no" >&6
9577           fi
9578
9579
9580           enablestring=
9581           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9582 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9583           no_cache=0
9584           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9585 if test "${enable_wizarddlg+set}" = set; then
9586   enableval="$enable_wizarddlg"
9587
9588                           if test "$enableval" = yes; then
9589                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9590                           else
9591                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9592                           fi
9593
9594 else
9595
9596                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9597                           if test "x$LINE" != x ; then
9598                             eval "DEFAULT_$LINE"
9599                           else
9600                             no_cache=1
9601                           fi
9602
9603                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9604
9605 fi;
9606
9607           eval "$ac_cv_use_wizarddlg"
9608           if test "$no_cache" != 1; then
9609             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9610           fi
9611
9612           if test "$wxUSE_WIZARDDLG" = yes; then
9613             echo "$as_me:$LINENO: result: yes" >&5
9614 echo "${ECHO_T}yes" >&6
9615           else
9616             echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6
9618           fi
9619
9620
9621
9622
9623           enablestring=
9624           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9625 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9626           no_cache=0
9627           # Check whether --enable-menus or --disable-menus was given.
9628 if test "${enable_menus+set}" = set; then
9629   enableval="$enable_menus"
9630
9631                           if test "$enableval" = yes; then
9632                             ac_cv_use_menus='wxUSE_MENUS=yes'
9633                           else
9634                             ac_cv_use_menus='wxUSE_MENUS=no'
9635                           fi
9636
9637 else
9638
9639                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9640                           if test "x$LINE" != x ; then
9641                             eval "DEFAULT_$LINE"
9642                           else
9643                             no_cache=1
9644                           fi
9645
9646                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9647
9648 fi;
9649
9650           eval "$ac_cv_use_menus"
9651           if test "$no_cache" != 1; then
9652             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9653           fi
9654
9655           if test "$wxUSE_MENUS" = yes; then
9656             echo "$as_me:$LINENO: result: yes" >&5
9657 echo "${ECHO_T}yes" >&6
9658           else
9659             echo "$as_me:$LINENO: result: no" >&5
9660 echo "${ECHO_T}no" >&6
9661           fi
9662
9663
9664           enablestring=
9665           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9666 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9667           no_cache=0
9668           # Check whether --enable-miniframe or --disable-miniframe was given.
9669 if test "${enable_miniframe+set}" = set; then
9670   enableval="$enable_miniframe"
9671
9672                           if test "$enableval" = yes; then
9673                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9674                           else
9675                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9676                           fi
9677
9678 else
9679
9680                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9681                           if test "x$LINE" != x ; then
9682                             eval "DEFAULT_$LINE"
9683                           else
9684                             no_cache=1
9685                           fi
9686
9687                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9688
9689 fi;
9690
9691           eval "$ac_cv_use_miniframe"
9692           if test "$no_cache" != 1; then
9693             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9694           fi
9695
9696           if test "$wxUSE_MINIFRAME" = yes; then
9697             echo "$as_me:$LINENO: result: yes" >&5
9698 echo "${ECHO_T}yes" >&6
9699           else
9700             echo "$as_me:$LINENO: result: no" >&5
9701 echo "${ECHO_T}no" >&6
9702           fi
9703
9704
9705           enablestring=
9706           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9707 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9708           no_cache=0
9709           # Check whether --enable-tooltips or --disable-tooltips was given.
9710 if test "${enable_tooltips+set}" = set; then
9711   enableval="$enable_tooltips"
9712
9713                           if test "$enableval" = yes; then
9714                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9715                           else
9716                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9717                           fi
9718
9719 else
9720
9721                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9722                           if test "x$LINE" != x ; then
9723                             eval "DEFAULT_$LINE"
9724                           else
9725                             no_cache=1
9726                           fi
9727
9728                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9729
9730 fi;
9731
9732           eval "$ac_cv_use_tooltips"
9733           if test "$no_cache" != 1; then
9734             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9735           fi
9736
9737           if test "$wxUSE_TOOLTIPS" = yes; then
9738             echo "$as_me:$LINENO: result: yes" >&5
9739 echo "${ECHO_T}yes" >&6
9740           else
9741             echo "$as_me:$LINENO: result: no" >&5
9742 echo "${ECHO_T}no" >&6
9743           fi
9744
9745
9746           enablestring=
9747           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9748 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9749           no_cache=0
9750           # Check whether --enable-splines or --disable-splines was given.
9751 if test "${enable_splines+set}" = set; then
9752   enableval="$enable_splines"
9753
9754                           if test "$enableval" = yes; then
9755                             ac_cv_use_splines='wxUSE_SPLINES=yes'
9756                           else
9757                             ac_cv_use_splines='wxUSE_SPLINES=no'
9758                           fi
9759
9760 else
9761
9762                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9763                           if test "x$LINE" != x ; then
9764                             eval "DEFAULT_$LINE"
9765                           else
9766                             no_cache=1
9767                           fi
9768
9769                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9770
9771 fi;
9772
9773           eval "$ac_cv_use_splines"
9774           if test "$no_cache" != 1; then
9775             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9776           fi
9777
9778           if test "$wxUSE_SPLINES" = yes; then
9779             echo "$as_me:$LINENO: result: yes" >&5
9780 echo "${ECHO_T}yes" >&6
9781           else
9782             echo "$as_me:$LINENO: result: no" >&5
9783 echo "${ECHO_T}no" >&6
9784           fi
9785
9786
9787           enablestring=
9788           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9789 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9790           no_cache=0
9791           # Check whether --enable-validators or --disable-validators was given.
9792 if test "${enable_validators+set}" = set; then
9793   enableval="$enable_validators"
9794
9795                           if test "$enableval" = yes; then
9796                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9797                           else
9798                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
9799                           fi
9800
9801 else
9802
9803                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9804                           if test "x$LINE" != x ; then
9805                             eval "DEFAULT_$LINE"
9806                           else
9807                             no_cache=1
9808                           fi
9809
9810                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9811
9812 fi;
9813
9814           eval "$ac_cv_use_validators"
9815           if test "$no_cache" != 1; then
9816             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9817           fi
9818
9819           if test "$wxUSE_VALIDATORS" = yes; then
9820             echo "$as_me:$LINENO: result: yes" >&5
9821 echo "${ECHO_T}yes" >&6
9822           else
9823             echo "$as_me:$LINENO: result: no" >&5
9824 echo "${ECHO_T}no" >&6
9825           fi
9826
9827
9828           enablestring=
9829           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9830 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9831           no_cache=0
9832           # Check whether --enable-busyinfo or --disable-busyinfo was given.
9833 if test "${enable_busyinfo+set}" = set; then
9834   enableval="$enable_busyinfo"
9835
9836                           if test "$enableval" = yes; then
9837                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9838                           else
9839                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9840                           fi
9841
9842 else
9843
9844                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9845                           if test "x$LINE" != x ; then
9846                             eval "DEFAULT_$LINE"
9847                           else
9848                             no_cache=1
9849                           fi
9850
9851                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9852
9853 fi;
9854
9855           eval "$ac_cv_use_busyinfo"
9856           if test "$no_cache" != 1; then
9857             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9858           fi
9859
9860           if test "$wxUSE_BUSYINFO" = yes; then
9861             echo "$as_me:$LINENO: result: yes" >&5
9862 echo "${ECHO_T}yes" >&6
9863           else
9864             echo "$as_me:$LINENO: result: no" >&5
9865 echo "${ECHO_T}no" >&6
9866           fi
9867
9868
9869           enablestring=
9870           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9871 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9872           no_cache=0
9873           # Check whether --enable-joystick or --disable-joystick was given.
9874 if test "${enable_joystick+set}" = set; then
9875   enableval="$enable_joystick"
9876
9877                           if test "$enableval" = yes; then
9878                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9879                           else
9880                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9881                           fi
9882
9883 else
9884
9885                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9886                           if test "x$LINE" != x ; then
9887                             eval "DEFAULT_$LINE"
9888                           else
9889                             no_cache=1
9890                           fi
9891
9892                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9893
9894 fi;
9895
9896           eval "$ac_cv_use_joystick"
9897           if test "$no_cache" != 1; then
9898             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9899           fi
9900
9901           if test "$wxUSE_JOYSTICK" = yes; then
9902             echo "$as_me:$LINENO: result: yes" >&5
9903 echo "${ECHO_T}yes" >&6
9904           else
9905             echo "$as_me:$LINENO: result: no" >&5
9906 echo "${ECHO_T}no" >&6
9907           fi
9908
9909
9910           enablestring=
9911           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9912 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9913           no_cache=0
9914           # Check whether --enable-metafile or --disable-metafile was given.
9915 if test "${enable_metafile+set}" = set; then
9916   enableval="$enable_metafile"
9917
9918                           if test "$enableval" = yes; then
9919                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9920                           else
9921                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9922                           fi
9923
9924 else
9925
9926                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9927                           if test "x$LINE" != x ; then
9928                             eval "DEFAULT_$LINE"
9929                           else
9930                             no_cache=1
9931                           fi
9932
9933                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9934
9935 fi;
9936
9937           eval "$ac_cv_use_metafile"
9938           if test "$no_cache" != 1; then
9939             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9940           fi
9941
9942           if test "$wxUSE_METAFILE" = yes; then
9943             echo "$as_me:$LINENO: result: yes" >&5
9944 echo "${ECHO_T}yes" >&6
9945           else
9946             echo "$as_me:$LINENO: result: no" >&5
9947 echo "${ECHO_T}no" >&6
9948           fi
9949
9950
9951           enablestring=
9952           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9953 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9954           no_cache=0
9955           # Check whether --enable-dragimage or --disable-dragimage was given.
9956 if test "${enable_dragimage+set}" = set; then
9957   enableval="$enable_dragimage"
9958
9959                           if test "$enableval" = yes; then
9960                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9961                           else
9962                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9963                           fi
9964
9965 else
9966
9967                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9968                           if test "x$LINE" != x ; then
9969                             eval "DEFAULT_$LINE"
9970                           else
9971                             no_cache=1
9972                           fi
9973
9974                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9975
9976 fi;
9977
9978           eval "$ac_cv_use_dragimage"
9979           if test "$no_cache" != 1; then
9980             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9981           fi
9982
9983           if test "$wxUSE_DRAGIMAGE" = yes; then
9984             echo "$as_me:$LINENO: result: yes" >&5
9985 echo "${ECHO_T}yes" >&6
9986           else
9987             echo "$as_me:$LINENO: result: no" >&5
9988 echo "${ECHO_T}no" >&6
9989           fi
9990
9991
9992           enablestring=
9993           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9994 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9995           no_cache=0
9996           # Check whether --enable-accessibility or --disable-accessibility was given.
9997 if test "${enable_accessibility+set}" = set; then
9998   enableval="$enable_accessibility"
9999
10000                           if test "$enableval" = yes; then
10001                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10002                           else
10003                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10004                           fi
10005
10006 else
10007
10008                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10009                           if test "x$LINE" != x ; then
10010                             eval "DEFAULT_$LINE"
10011                           else
10012                             no_cache=1
10013                           fi
10014
10015                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10016
10017 fi;
10018
10019           eval "$ac_cv_use_accessibility"
10020           if test "$no_cache" != 1; then
10021             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10022           fi
10023
10024           if test "$wxUSE_ACCESSIBILITY" = yes; then
10025             echo "$as_me:$LINENO: result: yes" >&5
10026 echo "${ECHO_T}yes" >&6
10027           else
10028             echo "$as_me:$LINENO: result: no" >&5
10029 echo "${ECHO_T}no" >&6
10030           fi
10031
10032
10033
10034
10035           enablestring=
10036           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10037 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10038           no_cache=0
10039           # Check whether --enable-palette or --disable-palette was given.
10040 if test "${enable_palette+set}" = set; then
10041   enableval="$enable_palette"
10042
10043                           if test "$enableval" = yes; then
10044                             ac_cv_use_palette='wxUSE_PALETTE=yes'
10045                           else
10046                             ac_cv_use_palette='wxUSE_PALETTE=no'
10047                           fi
10048
10049 else
10050
10051                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10052                           if test "x$LINE" != x ; then
10053                             eval "DEFAULT_$LINE"
10054                           else
10055                             no_cache=1
10056                           fi
10057
10058                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10059
10060 fi;
10061
10062           eval "$ac_cv_use_palette"
10063           if test "$no_cache" != 1; then
10064             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10065           fi
10066
10067           if test "$wxUSE_PALETTE" = yes; then
10068             echo "$as_me:$LINENO: result: yes" >&5
10069 echo "${ECHO_T}yes" >&6
10070           else
10071             echo "$as_me:$LINENO: result: no" >&5
10072 echo "${ECHO_T}no" >&6
10073           fi
10074
10075
10076           enablestring=
10077           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10078 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10079           no_cache=0
10080           # Check whether --enable-image or --disable-image was given.
10081 if test "${enable_image+set}" = set; then
10082   enableval="$enable_image"
10083
10084                           if test "$enableval" = yes; then
10085                             ac_cv_use_image='wxUSE_IMAGE=yes'
10086                           else
10087                             ac_cv_use_image='wxUSE_IMAGE=no'
10088                           fi
10089
10090 else
10091
10092                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10093                           if test "x$LINE" != x ; then
10094                             eval "DEFAULT_$LINE"
10095                           else
10096                             no_cache=1
10097                           fi
10098
10099                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10100
10101 fi;
10102
10103           eval "$ac_cv_use_image"
10104           if test "$no_cache" != 1; then
10105             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10106           fi
10107
10108           if test "$wxUSE_IMAGE" = yes; then
10109             echo "$as_me:$LINENO: result: yes" >&5
10110 echo "${ECHO_T}yes" >&6
10111           else
10112             echo "$as_me:$LINENO: result: no" >&5
10113 echo "${ECHO_T}no" >&6
10114           fi
10115
10116
10117           enablestring=
10118           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10119 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10120           no_cache=0
10121           # Check whether --enable-gif or --disable-gif was given.
10122 if test "${enable_gif+set}" = set; then
10123   enableval="$enable_gif"
10124
10125                           if test "$enableval" = yes; then
10126                             ac_cv_use_gif='wxUSE_GIF=yes'
10127                           else
10128                             ac_cv_use_gif='wxUSE_GIF=no'
10129                           fi
10130
10131 else
10132
10133                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10134                           if test "x$LINE" != x ; then
10135                             eval "DEFAULT_$LINE"
10136                           else
10137                             no_cache=1
10138                           fi
10139
10140                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10141
10142 fi;
10143
10144           eval "$ac_cv_use_gif"
10145           if test "$no_cache" != 1; then
10146             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10147           fi
10148
10149           if test "$wxUSE_GIF" = yes; then
10150             echo "$as_me:$LINENO: result: yes" >&5
10151 echo "${ECHO_T}yes" >&6
10152           else
10153             echo "$as_me:$LINENO: result: no" >&5
10154 echo "${ECHO_T}no" >&6
10155           fi
10156
10157
10158           enablestring=
10159           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10160 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10161           no_cache=0
10162           # Check whether --enable-pcx or --disable-pcx was given.
10163 if test "${enable_pcx+set}" = set; then
10164   enableval="$enable_pcx"
10165
10166                           if test "$enableval" = yes; then
10167                             ac_cv_use_pcx='wxUSE_PCX=yes'
10168                           else
10169                             ac_cv_use_pcx='wxUSE_PCX=no'
10170                           fi
10171
10172 else
10173
10174                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10175                           if test "x$LINE" != x ; then
10176                             eval "DEFAULT_$LINE"
10177                           else
10178                             no_cache=1
10179                           fi
10180
10181                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10182
10183 fi;
10184
10185           eval "$ac_cv_use_pcx"
10186           if test "$no_cache" != 1; then
10187             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10188           fi
10189
10190           if test "$wxUSE_PCX" = yes; then
10191             echo "$as_me:$LINENO: result: yes" >&5
10192 echo "${ECHO_T}yes" >&6
10193           else
10194             echo "$as_me:$LINENO: result: no" >&5
10195 echo "${ECHO_T}no" >&6
10196           fi
10197
10198
10199           enablestring=
10200           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10201 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10202           no_cache=0
10203           # Check whether --enable-iff or --disable-iff was given.
10204 if test "${enable_iff+set}" = set; then
10205   enableval="$enable_iff"
10206
10207                           if test "$enableval" = yes; then
10208                             ac_cv_use_iff='wxUSE_IFF=yes'
10209                           else
10210                             ac_cv_use_iff='wxUSE_IFF=no'
10211                           fi
10212
10213 else
10214
10215                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10216                           if test "x$LINE" != x ; then
10217                             eval "DEFAULT_$LINE"
10218                           else
10219                             no_cache=1
10220                           fi
10221
10222                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10223
10224 fi;
10225
10226           eval "$ac_cv_use_iff"
10227           if test "$no_cache" != 1; then
10228             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10229           fi
10230
10231           if test "$wxUSE_IFF" = yes; then
10232             echo "$as_me:$LINENO: result: yes" >&5
10233 echo "${ECHO_T}yes" >&6
10234           else
10235             echo "$as_me:$LINENO: result: no" >&5
10236 echo "${ECHO_T}no" >&6
10237           fi
10238
10239
10240           enablestring=
10241           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10242 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10243           no_cache=0
10244           # Check whether --enable-pnm or --disable-pnm was given.
10245 if test "${enable_pnm+set}" = set; then
10246   enableval="$enable_pnm"
10247
10248                           if test "$enableval" = yes; then
10249                             ac_cv_use_pnm='wxUSE_PNM=yes'
10250                           else
10251                             ac_cv_use_pnm='wxUSE_PNM=no'
10252                           fi
10253
10254 else
10255
10256                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10257                           if test "x$LINE" != x ; then
10258                             eval "DEFAULT_$LINE"
10259                           else
10260                             no_cache=1
10261                           fi
10262
10263                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10264
10265 fi;
10266
10267           eval "$ac_cv_use_pnm"
10268           if test "$no_cache" != 1; then
10269             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10270           fi
10271
10272           if test "$wxUSE_PNM" = yes; then
10273             echo "$as_me:$LINENO: result: yes" >&5
10274 echo "${ECHO_T}yes" >&6
10275           else
10276             echo "$as_me:$LINENO: result: no" >&5
10277 echo "${ECHO_T}no" >&6
10278           fi
10279
10280
10281           enablestring=
10282           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10283 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10284           no_cache=0
10285           # Check whether --enable-xpm or --disable-xpm was given.
10286 if test "${enable_xpm+set}" = set; then
10287   enableval="$enable_xpm"
10288
10289                           if test "$enableval" = yes; then
10290                             ac_cv_use_xpm='wxUSE_XPM=yes'
10291                           else
10292                             ac_cv_use_xpm='wxUSE_XPM=no'
10293                           fi
10294
10295 else
10296
10297                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10298                           if test "x$LINE" != x ; then
10299                             eval "DEFAULT_$LINE"
10300                           else
10301                             no_cache=1
10302                           fi
10303
10304                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10305
10306 fi;
10307
10308           eval "$ac_cv_use_xpm"
10309           if test "$no_cache" != 1; then
10310             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10311           fi
10312
10313           if test "$wxUSE_XPM" = yes; then
10314             echo "$as_me:$LINENO: result: yes" >&5
10315 echo "${ECHO_T}yes" >&6
10316           else
10317             echo "$as_me:$LINENO: result: no" >&5
10318 echo "${ECHO_T}no" >&6
10319           fi
10320
10321
10322           enablestring=
10323           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10324 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10325           no_cache=0
10326           # Check whether --enable-ico_cur or --disable-ico_cur was given.
10327 if test "${enable_ico_cur+set}" = set; then
10328   enableval="$enable_ico_cur"
10329
10330                           if test "$enableval" = yes; then
10331                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10332                           else
10333                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10334                           fi
10335
10336 else
10337
10338                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10339                           if test "x$LINE" != x ; then
10340                             eval "DEFAULT_$LINE"
10341                           else
10342                             no_cache=1
10343                           fi
10344
10345                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10346
10347 fi;
10348
10349           eval "$ac_cv_use_ico_cur"
10350           if test "$no_cache" != 1; then
10351             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10352           fi
10353
10354           if test "$wxUSE_ICO_CUR" = yes; then
10355             echo "$as_me:$LINENO: result: yes" >&5
10356 echo "${ECHO_T}yes" >&6
10357           else
10358             echo "$as_me:$LINENO: result: no" >&5
10359 echo "${ECHO_T}no" >&6
10360           fi
10361
10362
10363 fi
10364
10365
10366
10367 # Check whether --with-flavour or --without-flavour was given.
10368 if test "${with_flavour+set}" = set; then
10369   withval="$with_flavour"
10370   WX_FLAVOUR="$withval"
10371 fi;
10372
10373
10374
10375           enablestring=
10376           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10377 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10378           no_cache=0
10379           # Check whether --enable-official_build or --disable-official_build was given.
10380 if test "${enable_official_build+set}" = set; then
10381   enableval="$enable_official_build"
10382
10383                           if test "$enableval" = yes; then
10384                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10385                           else
10386                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10387                           fi
10388
10389 else
10390
10391                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10392                           if test "x$LINE" != x ; then
10393                             eval "DEFAULT_$LINE"
10394                           else
10395                             no_cache=1
10396                           fi
10397
10398                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10399
10400 fi;
10401
10402           eval "$ac_cv_use_official_build"
10403           if test "$no_cache" != 1; then
10404             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10405           fi
10406
10407           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10408             echo "$as_me:$LINENO: result: yes" >&5
10409 echo "${ECHO_T}yes" >&6
10410           else
10411             echo "$as_me:$LINENO: result: no" >&5
10412 echo "${ECHO_T}no" >&6
10413           fi
10414
10415 # Check whether --enable-vendor or --disable-vendor was given.
10416 if test "${enable_vendor+set}" = set; then
10417   enableval="$enable_vendor"
10418   VENDOR="$enableval"
10419 fi;
10420 if test "x$VENDOR" = "x"; then
10421     VENDOR="custom"
10422 fi
10423
10424
10425
10426
10427           echo "saving argument cache $wx_arg_cache_file"
10428           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10429
10430
10431
10432 echo "$as_me:$LINENO: checking for toolkit" >&5
10433 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10434
10435 # In Wine, we need to default to MSW, not GTK or MOTIF
10436 if test "$wxUSE_WINE" = "yes"; then
10437     DEFAULT_DEFAULT_wxUSE_GTK=0
10438     DEFAULT_DEFAULT_wxUSE_MOTIF=0
10439     DEFAULT_DEFAULT_wxUSE_MSW=1
10440     wxUSE_SHARED=no
10441 fi
10442
10443 if test "$wxUSE_GUI" = "yes"; then
10444
10445     if test "$USE_BEOS" = 1; then
10446         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10447 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10448    { (exit 1); exit 1; }; }
10449     fi
10450
10451     if test "$TOOLKIT_GIVEN" = 1; then
10452             for toolkit in `echo $ALL_TOOLKITS`; do
10453         var=wxUSE_$toolkit
10454         eval "value=\$${var}"
10455         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10456       done
10457     else
10458             for toolkit in `echo $ALL_TOOLKITS`; do
10459         if test "$has_toolkit_in_cache" != 1; then
10460           var=DEFAULT_DEFAULT_wxUSE_$toolkit
10461         else
10462           var=DEFAULT_wxUSE_$toolkit
10463         fi
10464         eval "wxUSE_$toolkit=\$${var}"
10465       done
10466     fi
10467
10468             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10469                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10470                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10471
10472         case "${host}" in
10473       *-pc-os2_emx | *-pc-os2-emx )
10474         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10475     esac
10476
10477     case "$NUM_TOOLKITS" in
10478       1)
10479       ;;
10480       0)
10481         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10482 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10483    { (exit 1); exit 1; }; }
10484       ;;
10485       *)
10486         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10487 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10488    { (exit 1); exit 1; }; }
10489     esac
10490
10491         for toolkit in `echo $ALL_TOOLKITS`; do
10492       var=wxUSE_$toolkit
10493       eval "value=\$${var}"
10494       if test "x$value" != x; then
10495         cache_var=CACHE_$toolkit
10496         eval "cache=\$${cache_var}"
10497         if test "$cache" = 1; then
10498           echo "$var=$value" >> ${wx_arg_cache_file}
10499         fi
10500         if test "$value" = 1; then
10501           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10502           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10503 echo "${ECHO_T}$toolkit_echo" >&6
10504         fi
10505       fi
10506     done
10507 else
10508     if test "x$host_alias" != "x"; then
10509         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10510 echo "${ECHO_T}base ($host_alias hosted) only" >&6
10511     else
10512         echo "$as_me:$LINENO: result: base only" >&5
10513 echo "${ECHO_T}base only" >&6
10514     fi
10515 fi
10516
10517 wants_win32=0
10518 doesnt_want_win32=0
10519 case "${host}" in
10520   *-*-cygwin*)
10521       if test "$wxUSE_MSW" = 1 ; then
10522         wants_win32=1
10523       else
10524         doesnt_want_win32=1
10525       fi
10526   ;;
10527   *-*-mingw*)
10528       wants_win32=1
10529   ;;
10530 esac
10531
10532 if test "$wxUSE_WINE" = "yes"; then
10533     wants_win32=1
10534         CC=winegcc
10535     CXX=wineg++
10536     RESCOMP=wrc
10537     LDFLAGS_GUI="-mwindows"
10538 fi
10539
10540 if test "$wants_win32" = 1 ; then
10541     USE_UNIX=0
10542     USE_WIN32=1
10543     cat >>confdefs.h <<\_ACEOF
10544 #define __WIN32__ 1
10545 _ACEOF
10546
10547     cat >>confdefs.h <<\_ACEOF
10548 #define __WIN95__ 1
10549 _ACEOF
10550
10551     cat >>confdefs.h <<\_ACEOF
10552 #define __WINDOWS__ 1
10553 _ACEOF
10554
10555     cat >>confdefs.h <<\_ACEOF
10556 #define __GNUWIN32__ 1
10557 _ACEOF
10558
10559     cat >>confdefs.h <<\_ACEOF
10560 #define STRICT 1
10561 _ACEOF
10562
10563     cat >>confdefs.h <<\_ACEOF
10564 #define WINVER 0x0400
10565 _ACEOF
10566
10567 fi
10568 if test "$doesnt_want_win32" = 1 ; then
10569     USE_UNIX=1
10570     USE_WIN32=0
10571 fi
10572
10573 if test "$USE_UNIX" = 1 ; then
10574     wxUSE_UNIX=yes
10575     cat >>confdefs.h <<\_ACEOF
10576 #define __UNIX__ 1
10577 _ACEOF
10578
10579 fi
10580
10581
10582 cat >confcache <<\_ACEOF
10583 # This file is a shell script that caches the results of configure
10584 # tests run on this system so they can be shared between configure
10585 # scripts and configure runs, see configure's option --config-cache.
10586 # It is not useful on other systems.  If it contains results you don't
10587 # want to keep, you may remove or edit it.
10588 #
10589 # config.status only pays attention to the cache file if you give it
10590 # the --recheck option to rerun configure.
10591 #
10592 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10594 # following values.
10595
10596 _ACEOF
10597
10598 # The following way of writing the cache mishandles newlines in values,
10599 # but we know of no workaround that is simple, portable, and efficient.
10600 # So, don't put newlines in cache variables' values.
10601 # Ultrix sh set writes to stderr and can't be redirected directly,
10602 # and sets the high bit in the cache file unless we assign to the vars.
10603 {
10604   (set) 2>&1 |
10605     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10606     *ac_space=\ *)
10607       # `set' does not quote correctly, so add quotes (double-quote
10608       # substitution turns \\\\ into \\, and sed turns \\ into \).
10609       sed -n \
10610         "s/'/'\\\\''/g;
10611           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10612       ;;
10613     *)
10614       # `set' quotes correctly as required by POSIX, so do not add quotes.
10615       sed -n \
10616         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10617       ;;
10618     esac;
10619 } |
10620   sed '
10621      t clear
10622      : clear
10623      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10624      t end
10625      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10626      : end' >>confcache
10627 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10628   if test -w $cache_file; then
10629     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10630     cat confcache >$cache_file
10631   else
10632     echo "not updating unwritable cache $cache_file"
10633   fi
10634 fi
10635 rm -f confcache
10636
10637 if test "$build" != "$host" ; then
10638     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
10639         CC=$host_alias-gcc
10640         CXX=$host_alias-c++
10641         AR=$host_alias-ar
10642         RANLIB=$host_alias-ranlib
10643         DLLTOOL=$host_alias-dlltool
10644         RESCOMP=$host_alias-windres
10645         STRIP=$host_alias-strip
10646     elif test "x$CC" '!=' "x"; then
10647         echo "You set CC, I assume you know what you are doing."
10648     else
10649         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10650 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10651    { (exit 1); exit 1; }; }
10652     fi
10653 fi
10654
10655 CFLAGS=${CFLAGS:=}
10656
10657
10658     ac_ext=c
10659 ac_cpp='$CPP $CPPFLAGS'
10660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10663 if test -n "$ac_tool_prefix"; then
10664   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10665 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10666 echo "$as_me:$LINENO: checking for $ac_word" >&5
10667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10668 if test "${ac_cv_prog_CC+set}" = set; then
10669   echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671   if test -n "$CC"; then
10672   ac_cv_prog_CC="$CC" # Let the user override the test.
10673 else
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10676 do
10677   IFS=$as_save_IFS
10678   test -z "$as_dir" && as_dir=.
10679   for ac_exec_ext in '' $ac_executable_extensions; do
10680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10681     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10683     break 2
10684   fi
10685 done
10686 done
10687
10688 fi
10689 fi
10690 CC=$ac_cv_prog_CC
10691 if test -n "$CC"; then
10692   echo "$as_me:$LINENO: result: $CC" >&5
10693 echo "${ECHO_T}$CC" >&6
10694 else
10695   echo "$as_me:$LINENO: result: no" >&5
10696 echo "${ECHO_T}no" >&6
10697 fi
10698
10699 fi
10700 if test -z "$ac_cv_prog_CC"; then
10701   ac_ct_CC=$CC
10702   # Extract the first word of "gcc", so it can be a program name with args.
10703 set dummy gcc; ac_word=$2
10704 echo "$as_me:$LINENO: checking for $ac_word" >&5
10705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10707   echo $ECHO_N "(cached) $ECHO_C" >&6
10708 else
10709   if test -n "$ac_ct_CC"; then
10710   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10711 else
10712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713 for as_dir in $PATH
10714 do
10715   IFS=$as_save_IFS
10716   test -z "$as_dir" && as_dir=.
10717   for ac_exec_ext in '' $ac_executable_extensions; do
10718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719     ac_cv_prog_ac_ct_CC="gcc"
10720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10721     break 2
10722   fi
10723 done
10724 done
10725
10726 fi
10727 fi
10728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10729 if test -n "$ac_ct_CC"; then
10730   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10731 echo "${ECHO_T}$ac_ct_CC" >&6
10732 else
10733   echo "$as_me:$LINENO: result: no" >&5
10734 echo "${ECHO_T}no" >&6
10735 fi
10736
10737   CC=$ac_ct_CC
10738 else
10739   CC="$ac_cv_prog_CC"
10740 fi
10741
10742 if test -z "$CC"; then
10743   if test -n "$ac_tool_prefix"; then
10744   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10745 set dummy ${ac_tool_prefix}cc; ac_word=$2
10746 echo "$as_me:$LINENO: checking for $ac_word" >&5
10747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10748 if test "${ac_cv_prog_CC+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   if test -n "$CC"; then
10752   ac_cv_prog_CC="$CC" # Let the user override the test.
10753 else
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10756 do
10757   IFS=$as_save_IFS
10758   test -z "$as_dir" && as_dir=.
10759   for ac_exec_ext in '' $ac_executable_extensions; do
10760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761     ac_cv_prog_CC="${ac_tool_prefix}cc"
10762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10763     break 2
10764   fi
10765 done
10766 done
10767
10768 fi
10769 fi
10770 CC=$ac_cv_prog_CC
10771 if test -n "$CC"; then
10772   echo "$as_me:$LINENO: result: $CC" >&5
10773 echo "${ECHO_T}$CC" >&6
10774 else
10775   echo "$as_me:$LINENO: result: no" >&5
10776 echo "${ECHO_T}no" >&6
10777 fi
10778
10779 fi
10780 if test -z "$ac_cv_prog_CC"; then
10781   ac_ct_CC=$CC
10782   # Extract the first word of "cc", so it can be a program name with args.
10783 set dummy cc; ac_word=$2
10784 echo "$as_me:$LINENO: checking for $ac_word" >&5
10785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10787   echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789   if test -n "$ac_ct_CC"; then
10790   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10791 else
10792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793 for as_dir in $PATH
10794 do
10795   IFS=$as_save_IFS
10796   test -z "$as_dir" && as_dir=.
10797   for ac_exec_ext in '' $ac_executable_extensions; do
10798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10799     ac_cv_prog_ac_ct_CC="cc"
10800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10801     break 2
10802   fi
10803 done
10804 done
10805
10806 fi
10807 fi
10808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10809 if test -n "$ac_ct_CC"; then
10810   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10811 echo "${ECHO_T}$ac_ct_CC" >&6
10812 else
10813   echo "$as_me:$LINENO: result: no" >&5
10814 echo "${ECHO_T}no" >&6
10815 fi
10816
10817   CC=$ac_ct_CC
10818 else
10819   CC="$ac_cv_prog_CC"
10820 fi
10821
10822 fi
10823 if test -z "$CC"; then
10824   # Extract the first word of "cc", so it can be a program name with args.
10825 set dummy cc; ac_word=$2
10826 echo "$as_me:$LINENO: checking for $ac_word" >&5
10827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10828 if test "${ac_cv_prog_CC+set}" = set; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831   if test -n "$CC"; then
10832   ac_cv_prog_CC="$CC" # Let the user override the test.
10833 else
10834   ac_prog_rejected=no
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $PATH
10837 do
10838   IFS=$as_save_IFS
10839   test -z "$as_dir" && as_dir=.
10840   for ac_exec_ext in '' $ac_executable_extensions; do
10841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10843        ac_prog_rejected=yes
10844        continue
10845      fi
10846     ac_cv_prog_CC="cc"
10847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10848     break 2
10849   fi
10850 done
10851 done
10852
10853 if test $ac_prog_rejected = yes; then
10854   # We found a bogon in the path, so make sure we never use it.
10855   set dummy $ac_cv_prog_CC
10856   shift
10857   if test $# != 0; then
10858     # We chose a different compiler from the bogus one.
10859     # However, it has the same basename, so the bogon will be chosen
10860     # first if we set CC to just the basename; use the full file name.
10861     shift
10862     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10863   fi
10864 fi
10865 fi
10866 fi
10867 CC=$ac_cv_prog_CC
10868 if test -n "$CC"; then
10869   echo "$as_me:$LINENO: result: $CC" >&5
10870 echo "${ECHO_T}$CC" >&6
10871 else
10872   echo "$as_me:$LINENO: result: no" >&5
10873 echo "${ECHO_T}no" >&6
10874 fi
10875
10876 fi
10877 if test -z "$CC"; then
10878   if test -n "$ac_tool_prefix"; then
10879   for ac_prog in cl
10880   do
10881     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10883 echo "$as_me:$LINENO: checking for $ac_word" >&5
10884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10885 if test "${ac_cv_prog_CC+set}" = set; then
10886   echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888   if test -n "$CC"; then
10889   ac_cv_prog_CC="$CC" # Let the user override the test.
10890 else
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10893 do
10894   IFS=$as_save_IFS
10895   test -z "$as_dir" && as_dir=.
10896   for ac_exec_ext in '' $ac_executable_extensions; do
10897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10898     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10900     break 2
10901   fi
10902 done
10903 done
10904
10905 fi
10906 fi
10907 CC=$ac_cv_prog_CC
10908 if test -n "$CC"; then
10909   echo "$as_me:$LINENO: result: $CC" >&5
10910 echo "${ECHO_T}$CC" >&6
10911 else
10912   echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6
10914 fi
10915
10916     test -n "$CC" && break
10917   done
10918 fi
10919 if test -z "$CC"; then
10920   ac_ct_CC=$CC
10921   for ac_prog in cl
10922 do
10923   # Extract the first word of "$ac_prog", so it can be a program name with args.
10924 set dummy $ac_prog; ac_word=$2
10925 echo "$as_me:$LINENO: checking for $ac_word" >&5
10926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10928   echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930   if test -n "$ac_ct_CC"; then
10931   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10932 else
10933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934 for as_dir in $PATH
10935 do
10936   IFS=$as_save_IFS
10937   test -z "$as_dir" && as_dir=.
10938   for ac_exec_ext in '' $ac_executable_extensions; do
10939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10940     ac_cv_prog_ac_ct_CC="$ac_prog"
10941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10942     break 2
10943   fi
10944 done
10945 done
10946
10947 fi
10948 fi
10949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10950 if test -n "$ac_ct_CC"; then
10951   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10952 echo "${ECHO_T}$ac_ct_CC" >&6
10953 else
10954   echo "$as_me:$LINENO: result: no" >&5
10955 echo "${ECHO_T}no" >&6
10956 fi
10957
10958   test -n "$ac_ct_CC" && break
10959 done
10960
10961   CC=$ac_ct_CC
10962 fi
10963
10964 fi
10965
10966
10967 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10968 See \`config.log' for more details." >&5
10969 echo "$as_me: error: no acceptable C compiler found in \$PATH
10970 See \`config.log' for more details." >&2;}
10971    { (exit 1); exit 1; }; }
10972
10973 # Provide some information about the compiler.
10974 echo "$as_me:$LINENO:" \
10975      "checking for C compiler version" >&5
10976 ac_compiler=`set X $ac_compile; echo $2`
10977 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10978   (eval $ac_compiler --version </dev/null >&5) 2>&5
10979   ac_status=$?
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); }
10982 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10983   (eval $ac_compiler -v </dev/null >&5) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); }
10987 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10988   (eval $ac_compiler -V </dev/null >&5) 2>&5
10989   ac_status=$?
10990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); }
10992
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999
11000 int
11001 main ()
11002 {
11003
11004   ;
11005   return 0;
11006 }
11007 _ACEOF
11008 ac_clean_files_save=$ac_clean_files
11009 ac_clean_files="$ac_clean_files a.out a.exe b.out"
11010 # Try to create an executable without -o first, disregard a.out.
11011 # It will help us diagnose broken compilers, and finding out an intuition
11012 # of exeext.
11013 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11014 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11015 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11016 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11017   (eval $ac_link_default) 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; then
11021   # Find the output, starting from the most likely.  This scheme is
11022 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
11023 # resort.
11024
11025 # Be careful to initialize this variable, since it used to be cached.
11026 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11027 ac_cv_exeext=
11028 # b.out is created by i960 compilers.
11029 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11030 do
11031   test -f "$ac_file" || continue
11032   case $ac_file in
11033     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11034         ;;
11035     conftest.$ac_ext )
11036         # This is the source file.
11037         ;;
11038     [ab].out )
11039         # We found the default executable, but exeext='' is most
11040         # certainly right.
11041         break;;
11042     *.* )
11043         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11044         # FIXME: I believe we export ac_cv_exeext for Libtool,
11045         # but it would be cool to find out if it's true.  Does anybody
11046         # maintain Libtool? --akim.
11047         export ac_cv_exeext
11048         break;;
11049     * )
11050         break;;
11051   esac
11052 done
11053 else
11054   echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11056
11057 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
11058 See \`config.log' for more details." >&5
11059 echo "$as_me: error: C compiler cannot create executables
11060 See \`config.log' for more details." >&2;}
11061    { (exit 77); exit 77; }; }
11062 fi
11063
11064 ac_exeext=$ac_cv_exeext
11065 echo "$as_me:$LINENO: result: $ac_file" >&5
11066 echo "${ECHO_T}$ac_file" >&6
11067
11068 # Check the compiler produces executables we can run.  If not, either
11069 # the compiler is broken, or we cross compile.
11070 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11071 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11072 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11073 # If not cross compiling, check that we can run a simple program.
11074 if test "$cross_compiling" != yes; then
11075   if { ac_try='./$ac_file'
11076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077   (eval $ac_try) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081     cross_compiling=no
11082   else
11083     if test "$cross_compiling" = maybe; then
11084         cross_compiling=yes
11085     else
11086         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11087 If you meant to cross compile, use \`--host'.
11088 See \`config.log' for more details." >&5
11089 echo "$as_me: error: cannot run C compiled programs.
11090 If you meant to cross compile, use \`--host'.
11091 See \`config.log' for more details." >&2;}
11092    { (exit 1); exit 1; }; }
11093     fi
11094   fi
11095 fi
11096 echo "$as_me:$LINENO: result: yes" >&5
11097 echo "${ECHO_T}yes" >&6
11098
11099 rm -f a.out a.exe conftest$ac_cv_exeext b.out
11100 ac_clean_files=$ac_clean_files_save
11101 # Check the compiler produces executables we can run.  If not, either
11102 # the compiler is broken, or we cross compile.
11103 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11104 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11105 echo "$as_me:$LINENO: result: $cross_compiling" >&5
11106 echo "${ECHO_T}$cross_compiling" >&6
11107
11108 echo "$as_me:$LINENO: checking for suffix of executables" >&5
11109 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111   (eval $ac_link) 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); }; then
11115   # If both `conftest.exe' and `conftest' are `present' (well, observable)
11116 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
11117 # work properly (i.e., refer to `conftest.exe'), while it won't with
11118 # `rm'.
11119 for ac_file in conftest.exe conftest conftest.*; do
11120   test -f "$ac_file" || continue
11121   case $ac_file in
11122     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11123     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11124           export ac_cv_exeext
11125           break;;
11126     * ) break;;
11127   esac
11128 done
11129 else
11130   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11131 See \`config.log' for more details." >&5
11132 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11133 See \`config.log' for more details." >&2;}
11134    { (exit 1); exit 1; }; }
11135 fi
11136
11137 rm -f conftest$ac_cv_exeext
11138 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11139 echo "${ECHO_T}$ac_cv_exeext" >&6
11140
11141 rm -f conftest.$ac_ext
11142 EXEEXT=$ac_cv_exeext
11143 ac_exeext=$EXEEXT
11144 echo "$as_me:$LINENO: checking for suffix of object files" >&5
11145 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11146 if test "${ac_cv_objext+set}" = set; then
11147   echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149   cat >conftest.$ac_ext <<_ACEOF
11150 /* confdefs.h.  */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h.  */
11155
11156 int
11157 main ()
11158 {
11159
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 rm -f conftest.o conftest.obj
11165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11166   (eval $ac_compile) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; then
11170   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11171   case $ac_file in
11172     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11173     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11174        break;;
11175   esac
11176 done
11177 else
11178   echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11180
11181 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11182 See \`config.log' for more details." >&5
11183 echo "$as_me: error: cannot compute suffix of object files: cannot compile
11184 See \`config.log' for more details." >&2;}
11185    { (exit 1); exit 1; }; }
11186 fi
11187
11188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
11189 fi
11190 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11191 echo "${ECHO_T}$ac_cv_objext" >&6
11192 OBJEXT=$ac_cv_objext
11193 ac_objext=$OBJEXT
11194 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11195 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11196 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11197   echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199   cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h.  */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h.  */
11205
11206 int
11207 main ()
11208 {
11209 #ifndef __GNUC__
11210        choke me
11211 #endif
11212
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219   (eval $ac_compile) 2>conftest.er1
11220   ac_status=$?
11221   grep -v '^ *+' conftest.er1 >conftest.err
11222   rm -f conftest.er1
11223   cat conftest.err >&5
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); } &&
11226          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228   (eval $ac_try) 2>&5
11229   ac_status=$?
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); }; } &&
11232          { ac_try='test -s conftest.$ac_objext'
11233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234   (eval $ac_try) 2>&5
11235   ac_status=$?
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); }; }; then
11238   ac_compiler_gnu=yes
11239 else
11240   echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243 ac_compiler_gnu=no
11244 fi
11245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11246 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11247
11248 fi
11249 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11250 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11251 GCC=`test $ac_compiler_gnu = yes && echo yes`
11252 ac_test_CFLAGS=${CFLAGS+set}
11253 ac_save_CFLAGS=$CFLAGS
11254 CFLAGS="-g"
11255 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11256 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11257 if test "${ac_cv_prog_cc_g+set}" = set; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260   cat >conftest.$ac_ext <<_ACEOF
11261 /* confdefs.h.  */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h.  */
11266
11267 int
11268 main ()
11269 {
11270
11271   ;
11272   return 0;
11273 }
11274 _ACEOF
11275 rm -f conftest.$ac_objext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11277   (eval $ac_compile) 2>conftest.er1
11278   ac_status=$?
11279   grep -v '^ *+' conftest.er1 >conftest.err
11280   rm -f conftest.er1
11281   cat conftest.err >&5
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); } &&
11284          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286   (eval $ac_try) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; } &&
11290          { ac_try='test -s conftest.$ac_objext'
11291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292   (eval $ac_try) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); }; }; then
11296   ac_cv_prog_cc_g=yes
11297 else
11298   echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 ac_cv_prog_cc_g=no
11302 fi
11303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11304 fi
11305 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11306 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11307 if test "$ac_test_CFLAGS" = set; then
11308   CFLAGS=$ac_save_CFLAGS
11309 elif test $ac_cv_prog_cc_g = yes; then
11310   if test "$GCC" = yes; then
11311     CFLAGS="-g -O2"
11312   else
11313     CFLAGS="-g"
11314   fi
11315 else
11316   if test "$GCC" = yes; then
11317     CFLAGS="-O2"
11318   else
11319     CFLAGS=
11320   fi
11321 fi
11322 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11323 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11324 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327   ac_cv_prog_cc_stdc=no
11328 ac_save_CC=$CC
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 #include <stdarg.h>
11336 #include <stdio.h>
11337 #include <sys/types.h>
11338 #include <sys/stat.h>
11339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11340 struct buf { int x; };
11341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11342 static char *e (p, i)
11343      char **p;
11344      int i;
11345 {
11346   return p[i];
11347 }
11348 static char *f (char * (*g) (char **, int), char **p, ...)
11349 {
11350   char *s;
11351   va_list v;
11352   va_start (v,p);
11353   s = g (p, va_arg (v,int));
11354   va_end (v);
11355   return s;
11356 }
11357
11358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11359    function prototypes and stuff, but not '\xHH' hex character constants.
11360    These don't provoke an error unfortunately, instead are silently treated
11361    as 'x'.  The following induces an error, until -std1 is added to get
11362    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11363    array size at least.  It's necessary to write '\x00'==0 to get something
11364    that's true only with -std1.  */
11365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11366
11367 int test (int i, double x);
11368 struct s1 {int (*f) (int a);};
11369 struct s2 {int (*f) (double a);};
11370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11371 int argc;
11372 char **argv;
11373 int
11374 main ()
11375 {
11376 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11377   ;
11378   return 0;
11379 }
11380 _ACEOF
11381 # Don't try gcc -ansi; that turns off useful extensions and
11382 # breaks some systems' header files.
11383 # AIX                   -qlanglvl=ansi
11384 # Ultrix and OSF/1      -std1
11385 # HP-UX 10.20 and later -Ae
11386 # HP-UX older versions  -Aa -D_HPUX_SOURCE
11387 # SVR4                  -Xc -D__EXTENSIONS__
11388 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11389 do
11390   CC="$ac_save_CC $ac_arg"
11391   rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393   (eval $ac_compile) 2>conftest.er1
11394   ac_status=$?
11395   grep -v '^ *+' conftest.er1 >conftest.err
11396   rm -f conftest.er1
11397   cat conftest.err >&5
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); } &&
11400          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402   (eval $ac_try) 2>&5
11403   ac_status=$?
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); }; } &&
11406          { ac_try='test -s conftest.$ac_objext'
11407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408   (eval $ac_try) 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); }; }; then
11412   ac_cv_prog_cc_stdc=$ac_arg
11413 break
11414 else
11415   echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418 fi
11419 rm -f conftest.err conftest.$ac_objext
11420 done
11421 rm -f conftest.$ac_ext conftest.$ac_objext
11422 CC=$ac_save_CC
11423
11424 fi
11425
11426 case "x$ac_cv_prog_cc_stdc" in
11427   x|xno)
11428     echo "$as_me:$LINENO: result: none needed" >&5
11429 echo "${ECHO_T}none needed" >&6 ;;
11430   *)
11431     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11432 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11433     CC="$CC $ac_cv_prog_cc_stdc" ;;
11434 esac
11435
11436 # Some people use a C++ compiler to compile C.  Since we use `exit',
11437 # in C++ we need to declare it.  In case someone uses the same compiler
11438 # for both compiling C and C++ we need to have the C++ compiler decide
11439 # the declaration of exit, since it's the most demanding environment.
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #ifndef __cplusplus
11442   choke me
11443 #endif
11444 _ACEOF
11445 rm -f conftest.$ac_objext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11447   (eval $ac_compile) 2>conftest.er1
11448   ac_status=$?
11449   grep -v '^ *+' conftest.er1 >conftest.err
11450   rm -f conftest.er1
11451   cat conftest.err >&5
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); } &&
11454          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456   (eval $ac_try) 2>&5
11457   ac_status=$?
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); }; } &&
11460          { ac_try='test -s conftest.$ac_objext'
11461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462   (eval $ac_try) 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); }; }; then
11466   for ac_declaration in \
11467    '' \
11468    'extern "C" void std::exit (int) throw (); using std::exit;' \
11469    'extern "C" void std::exit (int); using std::exit;' \
11470    'extern "C" void exit (int) throw ();' \
11471    'extern "C" void exit (int);' \
11472    'void exit (int);'
11473 do
11474   cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480 $ac_declaration
11481 #include <stdlib.h>
11482 int
11483 main ()
11484 {
11485 exit (42);
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 rm -f conftest.$ac_objext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11492   (eval $ac_compile) 2>conftest.er1
11493   ac_status=$?
11494   grep -v '^ *+' conftest.er1 >conftest.err
11495   rm -f conftest.er1
11496   cat conftest.err >&5
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); } &&
11499          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501   (eval $ac_try) 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); }; } &&
11505          { ac_try='test -s conftest.$ac_objext'
11506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507   (eval $ac_try) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; }; then
11511   :
11512 else
11513   echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11515
11516 continue
11517 fi
11518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11519   cat >conftest.$ac_ext <<_ACEOF
11520 /* confdefs.h.  */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h.  */
11525 $ac_declaration
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   break
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 fi
11561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11562 done
11563 rm -f conftest*
11564 if test -n "$ac_declaration"; then
11565   echo '#ifdef __cplusplus' >>confdefs.h
11566   echo $ac_declaration      >>confdefs.h
11567   echo '#endif'             >>confdefs.h
11568 fi
11569
11570 else
11571   echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11573
11574 fi
11575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11576 ac_ext=c
11577 ac_cpp='$CPP $CPPFLAGS'
11578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11581
11582     echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
11583 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11584 if test "${wx_cv_c_exto+set}" = set; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587   cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h.  */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h.  */
11593
11594 int
11595 main ()
11596 {
11597
11598   ;
11599   return 0;
11600 }
11601 _ACEOF
11602 rm -f conftest.$ac_objext conftest.$ac_ext.o
11603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11604   (eval $ac_compile) 2>&5
11605   ac_status=$?
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); }; then
11608   for ac_file in `(ls conftest.* 2>/dev/null)`; do
11609     case $ac_file in
11610         conftest.$ac_ext.o)
11611             wx_cv_c_exto="-ext o"
11612             ;;
11613         *)
11614             ;;
11615     esac
11616 done
11617 else
11618   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11619 See \`config.log' for more details." >&5
11620 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11621 See \`config.log' for more details." >&2;}
11622    { (exit 1); exit 1; }; }
11623
11624 fi
11625
11626 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11627
11628 fi
11629 echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11630 echo "${ECHO_T}$wx_cv_c_exto" >&6
11631 if test "x$wx_cv_c_exto" '!=' "x"; then
11632     if test "c" = "c"; then
11633         CFLAGS="$wx_cv_c_exto $CFLAGS"
11634     fi
11635     if test "c" = "cxx"; then
11636         CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11637     fi
11638 fi
11639
11640         if test "x$wx_cv_c_exto" '!=' "x"; then
11641         unset ac_cv_prog_cc_g
11642         ac_test_CFLAGS=${CFLAGS+set}
11643 ac_save_CFLAGS=$CFLAGS
11644 CFLAGS="-g"
11645 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11646 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11647 if test "${ac_cv_prog_cc_g+set}" = set; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h.  */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h.  */
11656
11657 int
11658 main ()
11659 {
11660
11661   ;
11662   return 0;
11663 }
11664 _ACEOF
11665 rm -f conftest.$ac_objext
11666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11667   (eval $ac_compile) 2>conftest.er1
11668   ac_status=$?
11669   grep -v '^ *+' conftest.er1 >conftest.err
11670   rm -f conftest.er1
11671   cat conftest.err >&5
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } &&
11674          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676   (eval $ac_try) 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); }; } &&
11680          { ac_try='test -s conftest.$ac_objext'
11681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682   (eval $ac_try) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }; then
11686   ac_cv_prog_cc_g=yes
11687 else
11688   echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11690
11691 ac_cv_prog_cc_g=no
11692 fi
11693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11694 fi
11695 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11696 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11697 if test "$ac_test_CFLAGS" = set; then
11698   CFLAGS=$ac_save_CFLAGS
11699 elif test $ac_cv_prog_cc_g = yes; then
11700   if test "$GCC" = yes; then
11701     CFLAGS="-g -O2"
11702   else
11703     CFLAGS="-g"
11704   fi
11705 else
11706   if test "$GCC" = yes; then
11707     CFLAGS="-O2"
11708   else
11709     CFLAGS=
11710   fi
11711 fi
11712     fi
11713     ac_ext=c
11714 ac_cpp='$CPP $CPPFLAGS'
11715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11718
11719 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11720 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11721 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11722   echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724   cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h.  */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h.  */
11730
11731 int
11732 main ()
11733 {
11734 #ifndef __MWERKS__
11735        choke me
11736 #endif
11737
11738   ;
11739   return 0;
11740 }
11741 _ACEOF
11742 rm -f conftest.$ac_objext
11743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11744   (eval $ac_compile) 2>conftest.er1
11745   ac_status=$?
11746   grep -v '^ *+' conftest.er1 >conftest.err
11747   rm -f conftest.er1
11748   cat conftest.err >&5
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); } &&
11751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753   (eval $ac_try) 2>&5
11754   ac_status=$?
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); }; } &&
11757          { ac_try='test -s conftest.$ac_objext'
11758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759   (eval $ac_try) 2>&5
11760   ac_status=$?
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); }; }; then
11763   bakefile_compiler_mwerks=yes
11764 else
11765   echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768 bakefile_compiler_mwerks=no
11769 fi
11770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11771     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11772
11773 fi
11774 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11775 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11776
11777 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
11778 ac_ext=c
11779 ac_cpp='$CPP $CPPFLAGS'
11780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11783
11784
11785     ac_ext=c
11786 ac_cpp='$CPP $CPPFLAGS'
11787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11790
11791 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11792 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11793 if test "${wx_cv_c_compiler_xlc+set}" = set; then
11794   echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796   cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h.  */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h.  */
11802
11803 int
11804 main ()
11805 {
11806 #ifndef __xlC__
11807        choke me
11808 #endif
11809
11810   ;
11811   return 0;
11812 }
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816   (eval $ac_compile) 2>conftest.er1
11817   ac_status=$?
11818   grep -v '^ *+' conftest.er1 >conftest.err
11819   rm -f conftest.er1
11820   cat conftest.err >&5
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } &&
11823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825   (eval $ac_try) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; } &&
11829          { ac_try='test -s conftest.$ac_objext'
11830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831   (eval $ac_try) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; }; then
11835   wx_compiler_xlc=yes
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 wx_compiler_xlc=no
11841 fi
11842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11843     wx_cv_c_compiler_xlc=$wx_compiler_xlc
11844
11845 fi
11846 echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11847 echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11848
11849 XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
11850 ac_ext=c
11851 ac_cpp='$CPP $CPPFLAGS'
11852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11855
11856
11857
11858
11859 ac_ext=c
11860 ac_cpp='$CPP $CPPFLAGS'
11861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11864 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11865 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11866 # On Suns, sometimes $CPP names a directory.
11867 if test -n "$CPP" && test -d "$CPP"; then
11868   CPP=
11869 fi
11870 if test -z "$CPP"; then
11871   if test "${ac_cv_prog_CPP+set}" = set; then
11872   echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874       # Double quotes because CPP needs to be expanded
11875     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11876     do
11877       ac_preproc_ok=false
11878 for ac_c_preproc_warn_flag in '' yes
11879 do
11880   # Use a header file that comes with gcc, so configuring glibc
11881   # with a fresh cross-compiler works.
11882   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11883   # <limits.h> exists even on freestanding compilers.
11884   # On the NeXT, cc -E runs the code through the compiler's parser,
11885   # not just through cpp. "Syntax error" is here to catch this case.
11886   cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892 #ifdef __STDC__
11893 # include <limits.h>
11894 #else
11895 # include <assert.h>
11896 #endif
11897                      Syntax error
11898 _ACEOF
11899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11901   ac_status=$?
11902   grep -v '^ *+' conftest.er1 >conftest.err
11903   rm -f conftest.er1
11904   cat conftest.err >&5
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); } >/dev/null; then
11907   if test -s conftest.err; then
11908     ac_cpp_err=$ac_c_preproc_warn_flag
11909     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11910   else
11911     ac_cpp_err=
11912   fi
11913 else
11914   ac_cpp_err=yes
11915 fi
11916 if test -z "$ac_cpp_err"; then
11917   :
11918 else
11919   echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11921
11922   # Broken: fails on valid input.
11923 continue
11924 fi
11925 rm -f conftest.err conftest.$ac_ext
11926
11927   # OK, works on sane cases.  Now check whether non-existent headers
11928   # can be detected and how.
11929   cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h.  */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h.  */
11935 #include <ac_nonexistent.h>
11936 _ACEOF
11937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11939   ac_status=$?
11940   grep -v '^ *+' conftest.er1 >conftest.err
11941   rm -f conftest.er1
11942   cat conftest.err >&5
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); } >/dev/null; then
11945   if test -s conftest.err; then
11946     ac_cpp_err=$ac_c_preproc_warn_flag
11947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11948   else
11949     ac_cpp_err=
11950   fi
11951 else
11952   ac_cpp_err=yes
11953 fi
11954 if test -z "$ac_cpp_err"; then
11955   # Broken: success on invalid input.
11956 continue
11957 else
11958   echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11960
11961   # Passes both tests.
11962 ac_preproc_ok=:
11963 break
11964 fi
11965 rm -f conftest.err conftest.$ac_ext
11966
11967 done
11968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11969 rm -f conftest.err conftest.$ac_ext
11970 if $ac_preproc_ok; then
11971   break
11972 fi
11973
11974     done
11975     ac_cv_prog_CPP=$CPP
11976
11977 fi
11978   CPP=$ac_cv_prog_CPP
11979 else
11980   ac_cv_prog_CPP=$CPP
11981 fi
11982 echo "$as_me:$LINENO: result: $CPP" >&5
11983 echo "${ECHO_T}$CPP" >&6
11984 ac_preproc_ok=false
11985 for ac_c_preproc_warn_flag in '' yes
11986 do
11987   # Use a header file that comes with gcc, so configuring glibc
11988   # with a fresh cross-compiler works.
11989   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11990   # <limits.h> exists even on freestanding compilers.
11991   # On the NeXT, cc -E runs the code through the compiler's parser,
11992   # not just through cpp. "Syntax error" is here to catch this case.
11993   cat >conftest.$ac_ext <<_ACEOF
11994 /* confdefs.h.  */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h.  */
11999 #ifdef __STDC__
12000 # include <limits.h>
12001 #else
12002 # include <assert.h>
12003 #endif
12004                      Syntax error
12005 _ACEOF
12006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12008   ac_status=$?
12009   grep -v '^ *+' conftest.er1 >conftest.err
12010   rm -f conftest.er1
12011   cat conftest.err >&5
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } >/dev/null; then
12014   if test -s conftest.err; then
12015     ac_cpp_err=$ac_c_preproc_warn_flag
12016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12017   else
12018     ac_cpp_err=
12019   fi
12020 else
12021   ac_cpp_err=yes
12022 fi
12023 if test -z "$ac_cpp_err"; then
12024   :
12025 else
12026   echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12028
12029   # Broken: fails on valid input.
12030 continue
12031 fi
12032 rm -f conftest.err conftest.$ac_ext
12033
12034   # OK, works on sane cases.  Now check whether non-existent headers
12035   # can be detected and how.
12036   cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042 #include <ac_nonexistent.h>
12043 _ACEOF
12044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12046   ac_status=$?
12047   grep -v '^ *+' conftest.er1 >conftest.err
12048   rm -f conftest.er1
12049   cat conftest.err >&5
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); } >/dev/null; then
12052   if test -s conftest.err; then
12053     ac_cpp_err=$ac_c_preproc_warn_flag
12054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12055   else
12056     ac_cpp_err=
12057   fi
12058 else
12059   ac_cpp_err=yes
12060 fi
12061 if test -z "$ac_cpp_err"; then
12062   # Broken: success on invalid input.
12063 continue
12064 else
12065   echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068   # Passes both tests.
12069 ac_preproc_ok=:
12070 break
12071 fi
12072 rm -f conftest.err conftest.$ac_ext
12073
12074 done
12075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12076 rm -f conftest.err conftest.$ac_ext
12077 if $ac_preproc_ok; then
12078   :
12079 else
12080   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12081 See \`config.log' for more details." >&5
12082 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12083 See \`config.log' for more details." >&2;}
12084    { (exit 1); exit 1; }; }
12085 fi
12086
12087 ac_ext=c
12088 ac_cpp='$CPP $CPPFLAGS'
12089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12092
12093
12094 echo "$as_me:$LINENO: checking for egrep" >&5
12095 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12096 if test "${ac_cv_prog_egrep+set}" = set; then
12097   echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12100     then ac_cv_prog_egrep='grep -E'
12101     else ac_cv_prog_egrep='egrep'
12102     fi
12103 fi
12104 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12105 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12106  EGREP=$ac_cv_prog_egrep
12107
12108
12109 if test $ac_cv_c_compiler_gnu = yes; then
12110     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12111 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12112 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12113   echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115     ac_pattern="Autoconf.*'x'"
12116   cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h.  */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h.  */
12122 #include <sgtty.h>
12123 Autoconf TIOCGETP
12124 _ACEOF
12125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12126   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12127   ac_cv_prog_gcc_traditional=yes
12128 else
12129   ac_cv_prog_gcc_traditional=no
12130 fi
12131 rm -f conftest*
12132
12133
12134   if test $ac_cv_prog_gcc_traditional = no; then
12135     cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h.  */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h.  */
12141 #include <termio.h>
12142 Autoconf TCGETA
12143 _ACEOF
12144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12145   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12146   ac_cv_prog_gcc_traditional=yes
12147 fi
12148 rm -f conftest*
12149
12150   fi
12151 fi
12152 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12153 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12154   if test $ac_cv_prog_gcc_traditional = yes; then
12155     CC="$CC -traditional"
12156   fi
12157 fi
12158
12159
12160
12161
12162 ac_ext=cc
12163 ac_cpp='$CXXCPP $CPPFLAGS'
12164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12167
12168
12169 CXXFLAGS=${CXXFLAGS:=}
12170
12171
12172     ac_ext=cc
12173 ac_cpp='$CXXCPP $CPPFLAGS'
12174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12177 if test -n "$ac_tool_prefix"; then
12178   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12179   do
12180     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12182 echo "$as_me:$LINENO: checking for $ac_word" >&5
12183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12184 if test "${ac_cv_prog_CXX+set}" = set; then
12185   echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187   if test -n "$CXX"; then
12188   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12189 else
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12192 do
12193   IFS=$as_save_IFS
12194   test -z "$as_dir" && as_dir=.
12195   for ac_exec_ext in '' $ac_executable_extensions; do
12196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12199     break 2
12200   fi
12201 done
12202 done
12203
12204 fi
12205 fi
12206 CXX=$ac_cv_prog_CXX
12207 if test -n "$CXX"; then
12208   echo "$as_me:$LINENO: result: $CXX" >&5
12209 echo "${ECHO_T}$CXX" >&6
12210 else
12211   echo "$as_me:$LINENO: result: no" >&5
12212 echo "${ECHO_T}no" >&6
12213 fi
12214
12215     test -n "$CXX" && break
12216   done
12217 fi
12218 if test -z "$CXX"; then
12219   ac_ct_CXX=$CXX
12220   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12221 do
12222   # Extract the first word of "$ac_prog", so it can be a program name with args.
12223 set dummy $ac_prog; ac_word=$2
12224 echo "$as_me:$LINENO: checking for $ac_word" >&5
12225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12226 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12227   echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229   if test -n "$ac_ct_CXX"; then
12230   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12231 else
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12234 do
12235   IFS=$as_save_IFS
12236   test -z "$as_dir" && as_dir=.
12237   for ac_exec_ext in '' $ac_executable_extensions; do
12238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12239     ac_cv_prog_ac_ct_CXX="$ac_prog"
12240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12241     break 2
12242   fi
12243 done
12244 done
12245
12246 fi
12247 fi
12248 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12249 if test -n "$ac_ct_CXX"; then
12250   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12251 echo "${ECHO_T}$ac_ct_CXX" >&6
12252 else
12253   echo "$as_me:$LINENO: result: no" >&5
12254 echo "${ECHO_T}no" >&6
12255 fi
12256
12257   test -n "$ac_ct_CXX" && break
12258 done
12259 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12260
12261   CXX=$ac_ct_CXX
12262 fi
12263
12264
12265 # Provide some information about the compiler.
12266 echo "$as_me:$LINENO:" \
12267      "checking for C++ compiler version" >&5
12268 ac_compiler=`set X $ac_compile; echo $2`
12269 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12270   (eval $ac_compiler --version </dev/null >&5) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); }
12274 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12275   (eval $ac_compiler -v </dev/null >&5) 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); }
12279 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12280   (eval $ac_compiler -V </dev/null >&5) 2>&5
12281   ac_status=$?
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); }
12284
12285 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12286 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12287 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12288   echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290   cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h.  */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h.  */
12296
12297 int
12298 main ()
12299 {
12300 #ifndef __GNUC__
12301        choke me
12302 #endif
12303
12304   ;
12305   return 0;
12306 }
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310   (eval $ac_compile) 2>conftest.er1
12311   ac_status=$?
12312   grep -v '^ *+' conftest.er1 >conftest.err
12313   rm -f conftest.er1
12314   cat conftest.err >&5
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); } &&
12317          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319   (eval $ac_try) 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); }; } &&
12323          { ac_try='test -s conftest.$ac_objext'
12324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325   (eval $ac_try) 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); }; }; then
12329   ac_compiler_gnu=yes
12330 else
12331   echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12333
12334 ac_compiler_gnu=no
12335 fi
12336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12337 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12338
12339 fi
12340 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12341 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12342 GXX=`test $ac_compiler_gnu = yes && echo yes`
12343 ac_test_CXXFLAGS=${CXXFLAGS+set}
12344 ac_save_CXXFLAGS=$CXXFLAGS
12345 CXXFLAGS="-g"
12346 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12347 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12348 if test "${ac_cv_prog_cxx_g+set}" = set; then
12349   echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351   cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h.  */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h.  */
12357
12358 int
12359 main ()
12360 {
12361
12362   ;
12363   return 0;
12364 }
12365 _ACEOF
12366 rm -f conftest.$ac_objext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12368   (eval $ac_compile) 2>conftest.er1
12369   ac_status=$?
12370   grep -v '^ *+' conftest.er1 >conftest.err
12371   rm -f conftest.er1
12372   cat conftest.err >&5
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); } &&
12375          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377   (eval $ac_try) 2>&5
12378   ac_status=$?
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); }; } &&
12381          { ac_try='test -s conftest.$ac_objext'
12382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383   (eval $ac_try) 2>&5
12384   ac_status=$?
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); }; }; then
12387   ac_cv_prog_cxx_g=yes
12388 else
12389   echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12391
12392 ac_cv_prog_cxx_g=no
12393 fi
12394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12395 fi
12396 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12397 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12398 if test "$ac_test_CXXFLAGS" = set; then
12399   CXXFLAGS=$ac_save_CXXFLAGS
12400 elif test $ac_cv_prog_cxx_g = yes; then
12401   if test "$GXX" = yes; then
12402     CXXFLAGS="-g -O2"
12403   else
12404     CXXFLAGS="-g"
12405   fi
12406 else
12407   if test "$GXX" = yes; then
12408     CXXFLAGS="-O2"
12409   else
12410     CXXFLAGS=
12411   fi
12412 fi
12413 for ac_declaration in \
12414    '' \
12415    'extern "C" void std::exit (int) throw (); using std::exit;' \
12416    'extern "C" void std::exit (int); using std::exit;' \
12417    'extern "C" void exit (int) throw ();' \
12418    'extern "C" void exit (int);' \
12419    'void exit (int);'
12420 do
12421   cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427 $ac_declaration
12428 #include <stdlib.h>
12429 int
12430 main ()
12431 {
12432 exit (42);
12433   ;
12434   return 0;
12435 }
12436 _ACEOF
12437 rm -f conftest.$ac_objext
12438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12439   (eval $ac_compile) 2>conftest.er1
12440   ac_status=$?
12441   grep -v '^ *+' conftest.er1 >conftest.err
12442   rm -f conftest.er1
12443   cat conftest.err >&5
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); } &&
12446          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448   (eval $ac_try) 2>&5
12449   ac_status=$?
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); }; } &&
12452          { ac_try='test -s conftest.$ac_objext'
12453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454   (eval $ac_try) 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; }; then
12458   :
12459 else
12460   echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12462
12463 continue
12464 fi
12465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12466   cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h.  */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h.  */
12472 $ac_declaration
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   break
12503 else
12504   echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12506
12507 fi
12508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12509 done
12510 rm -f conftest*
12511 if test -n "$ac_declaration"; then
12512   echo '#ifdef __cplusplus' >>confdefs.h
12513   echo $ac_declaration      >>confdefs.h
12514   echo '#endif'             >>confdefs.h
12515 fi
12516
12517 ac_ext=cc
12518 ac_cpp='$CXXCPP $CPPFLAGS'
12519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12522
12523     echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
12524 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12525 if test "${wx_cv_cxx_exto+set}" = set; then
12526   echo $ECHO_N "(cached) $ECHO_C" >&6
12527 else
12528   cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h.  */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h.  */
12534
12535 int
12536 main ()
12537 {
12538
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 rm -f conftest.$ac_objext conftest.$ac_ext.o
12544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12545   (eval $ac_compile) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; then
12549   for ac_file in `(ls conftest.* 2>/dev/null)`; do
12550     case $ac_file in
12551         conftest.$ac_ext.o)
12552             wx_cv_cxx_exto="-ext o"
12553             ;;
12554         *)
12555             ;;
12556     esac
12557 done
12558 else
12559   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12560 See \`config.log' for more details." >&5
12561 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12562 See \`config.log' for more details." >&2;}
12563    { (exit 1); exit 1; }; }
12564
12565 fi
12566
12567 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12568
12569 fi
12570 echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12571 echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12572 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12573     if test "cxx" = "c"; then
12574         CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12575     fi
12576     if test "cxx" = "cxx"; then
12577         CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12578     fi
12579 fi
12580
12581         if test "x$wx_cv_cxx_exto" '!=' "x"; then
12582         unset ac_cv_prog_cxx_g
12583         ac_test_CXXFLAGS=${CXXFLAGS+set}
12584 ac_save_CXXFLAGS=$CXXFLAGS
12585 CXXFLAGS="-g"
12586 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12587 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12588 if test "${ac_cv_prog_cxx_g+set}" = set; then
12589   echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591   cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h.  */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h.  */
12597
12598 int
12599 main ()
12600 {
12601
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608   (eval $ac_compile) 2>conftest.er1
12609   ac_status=$?
12610   grep -v '^ *+' conftest.er1 >conftest.err
12611   rm -f conftest.er1
12612   cat conftest.err >&5
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } &&
12615          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617   (eval $ac_try) 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); }; } &&
12621          { ac_try='test -s conftest.$ac_objext'
12622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623   (eval $ac_try) 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; }; then
12627   ac_cv_prog_cxx_g=yes
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12631
12632 ac_cv_prog_cxx_g=no
12633 fi
12634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635 fi
12636 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12637 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12638 if test "$ac_test_CXXFLAGS" = set; then
12639   CXXFLAGS=$ac_save_CXXFLAGS
12640 elif test $ac_cv_prog_cxx_g = yes; then
12641   if test "$GXX" = yes; then
12642     CXXFLAGS="-g -O2"
12643   else
12644     CXXFLAGS="-g"
12645   fi
12646 else
12647   if test "$GXX" = yes; then
12648     CXXFLAGS="-O2"
12649   else
12650     CXXFLAGS=
12651   fi
12652 fi
12653     fi
12654     ac_ext=cc
12655 ac_cpp='$CXXCPP $CPPFLAGS'
12656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12659
12660 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12661 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12662 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12663   echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665   cat >conftest.$ac_ext <<_ACEOF
12666 /* confdefs.h.  */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h.  */
12671
12672 int
12673 main ()
12674 {
12675 #ifndef __MWERKS__
12676        choke me
12677 #endif
12678
12679   ;
12680   return 0;
12681 }
12682 _ACEOF
12683 rm -f conftest.$ac_objext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685   (eval $ac_compile) 2>conftest.er1
12686   ac_status=$?
12687   grep -v '^ *+' conftest.er1 >conftest.err
12688   rm -f conftest.er1
12689   cat conftest.err >&5
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); } &&
12692          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694   (eval $ac_try) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; } &&
12698          { ac_try='test -s conftest.$ac_objext'
12699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700   (eval $ac_try) 2>&5
12701   ac_status=$?
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); }; }; then
12704   bakefile_compiler_mwerks=yes
12705 else
12706   echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12708
12709 bakefile_compiler_mwerks=no
12710 fi
12711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12712     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12713
12714 fi
12715 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12716 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12717
12718 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
12719 ac_ext=cc
12720 ac_cpp='$CXXCPP $CPPFLAGS'
12721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12724
12725
12726     ac_ext=cc
12727 ac_cpp='$CXXCPP $CPPFLAGS'
12728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12731
12732 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12733 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12734 if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12735   echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737   cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h.  */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h.  */
12743
12744 int
12745 main ()
12746 {
12747 #ifndef __xlC__
12748        choke me
12749 #endif
12750
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757   (eval $ac_compile) 2>conftest.er1
12758   ac_status=$?
12759   grep -v '^ *+' conftest.er1 >conftest.err
12760   rm -f conftest.er1
12761   cat conftest.err >&5
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } &&
12764          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766   (eval $ac_try) 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; } &&
12770          { ac_try='test -s conftest.$ac_objext'
12771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772   (eval $ac_try) 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); }; }; then
12776   wx_compiler_xlc=yes
12777 else
12778   echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12780
12781 wx_compiler_xlc=no
12782 fi
12783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12784     wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12785
12786 fi
12787 echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12788 echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12789
12790 XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
12791 ac_ext=cc
12792 ac_cpp='$CXXCPP $CPPFLAGS'
12793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12796
12797
12798
12799
12800 ac_ext=c
12801 ac_cpp='$CPP $CPPFLAGS'
12802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12805
12806
12807 if test -n "$ac_tool_prefix"; then
12808   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12809 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12810 echo "$as_me:$LINENO: checking for $ac_word" >&5
12811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12812 if test "${ac_cv_prog_RANLIB+set}" = set; then
12813   echo $ECHO_N "(cached) $ECHO_C" >&6
12814 else
12815   if test -n "$RANLIB"; then
12816   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12817 else
12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12820 do
12821   IFS=$as_save_IFS
12822   test -z "$as_dir" && as_dir=.
12823   for ac_exec_ext in '' $ac_executable_extensions; do
12824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12825     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12827     break 2
12828   fi
12829 done
12830 done
12831
12832 fi
12833 fi
12834 RANLIB=$ac_cv_prog_RANLIB
12835 if test -n "$RANLIB"; then
12836   echo "$as_me:$LINENO: result: $RANLIB" >&5
12837 echo "${ECHO_T}$RANLIB" >&6
12838 else
12839   echo "$as_me:$LINENO: result: no" >&5
12840 echo "${ECHO_T}no" >&6
12841 fi
12842
12843 fi
12844 if test -z "$ac_cv_prog_RANLIB"; then
12845   ac_ct_RANLIB=$RANLIB
12846   # Extract the first word of "ranlib", so it can be a program name with args.
12847 set dummy ranlib; ac_word=$2
12848 echo "$as_me:$LINENO: checking for $ac_word" >&5
12849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12850 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12851   echo $ECHO_N "(cached) $ECHO_C" >&6
12852 else
12853   if test -n "$ac_ct_RANLIB"; then
12854   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12855 else
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12858 do
12859   IFS=$as_save_IFS
12860   test -z "$as_dir" && as_dir=.
12861   for ac_exec_ext in '' $ac_executable_extensions; do
12862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12863     ac_cv_prog_ac_ct_RANLIB="ranlib"
12864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12865     break 2
12866   fi
12867 done
12868 done
12869
12870   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12871 fi
12872 fi
12873 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12874 if test -n "$ac_ct_RANLIB"; then
12875   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12876 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12877 else
12878   echo "$as_me:$LINENO: result: no" >&5
12879 echo "${ECHO_T}no" >&6
12880 fi
12881
12882   RANLIB=$ac_ct_RANLIB
12883 else
12884   RANLIB="$ac_cv_prog_RANLIB"
12885 fi
12886
12887
12888 # Extract the first word of "ar", so it can be a program name with args.
12889 set dummy ar; ac_word=$2
12890 echo "$as_me:$LINENO: checking for $ac_word" >&5
12891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12892 if test "${ac_cv_prog_AR+set}" = set; then
12893   echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895   if test -n "$AR"; then
12896   ac_cv_prog_AR="$AR" # Let the user override the test.
12897 else
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12900 do
12901   IFS=$as_save_IFS
12902   test -z "$as_dir" && as_dir=.
12903   for ac_exec_ext in '' $ac_executable_extensions; do
12904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12905     ac_cv_prog_AR="ar"
12906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12907     break 2
12908   fi
12909 done
12910 done
12911
12912 fi
12913 fi
12914 AR=$ac_cv_prog_AR
12915 if test -n "$AR"; then
12916   echo "$as_me:$LINENO: result: $AR" >&5
12917 echo "${ECHO_T}$AR" >&6
12918 else
12919   echo "$as_me:$LINENO: result: no" >&5
12920 echo "${ECHO_T}no" >&6
12921 fi
12922
12923 if test "x$AR" = "x" ; then
12924     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12925 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
12926    { (exit 1); exit 1; }; }
12927 fi
12928
12929 # Find a good install program.  We prefer a C program (faster),
12930 # so one script is as good as another.  But avoid the broken or
12931 # incompatible versions:
12932 # SysV /etc/install, /usr/sbin/install
12933 # SunOS /usr/etc/install
12934 # IRIX /sbin/install
12935 # AIX /bin/install
12936 # AmigaOS /C/install, which installs bootblocks on floppy discs
12937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12940 # OS/2's system install, which has a completely different semantic
12941 # ./install, which can be erroneously created by make from ./install.sh.
12942 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12943 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12944 if test -z "$INSTALL"; then
12945 if test "${ac_cv_path_install+set}" = set; then
12946   echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12950 do
12951   IFS=$as_save_IFS
12952   test -z "$as_dir" && as_dir=.
12953   # Account for people who put trailing slashes in PATH elements.
12954 case $as_dir/ in
12955   ./ | .// | /cC/* | \
12956   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12957   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12958   /usr/ucb/* ) ;;
12959   *)
12960     # OSF1 and SCO ODT 3.0 have their own names for install.
12961     # Don't use installbsd from OSF since it installs stuff as root
12962     # by default.
12963     for ac_prog in ginstall scoinst install; do
12964       for ac_exec_ext in '' $ac_executable_extensions; do
12965         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12966           if test $ac_prog = install &&
12967             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12968             # AIX install.  It has an incompatible calling convention.
12969             :
12970           elif test $ac_prog = install &&
12971             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12972             # program-specific install script used by HP pwplus--don't use.
12973             :
12974           else
12975             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12976             break 3
12977           fi
12978         fi
12979       done
12980     done
12981     ;;
12982 esac
12983 done
12984
12985
12986 fi
12987   if test "${ac_cv_path_install+set}" = set; then
12988     INSTALL=$ac_cv_path_install
12989   else
12990     # As a last resort, use the slow shell script.  We don't cache a
12991     # path for INSTALL within a source directory, because that will
12992     # break other packages using the cache if that directory is
12993     # removed, or if the path is relative.
12994     INSTALL=$ac_install_sh
12995   fi
12996 fi
12997 echo "$as_me:$LINENO: result: $INSTALL" >&5
12998 echo "${ECHO_T}$INSTALL" >&6
12999
13000 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13001 # It thinks the first close brace ends the variable substitution.
13002 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13003
13004 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13005
13006 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13007
13008
13009 case ${INSTALL} in
13010   /* ) # Absolute
13011      ;;
13012   ?:* ) # Drive letter, considered as absolute.
13013      ;;
13014   *)
13015      INSTALL=`pwd`/${INSTALL} ;;
13016 esac
13017
13018
13019 case "${host}" in
13020
13021                 powerpc-*-darwin* )
13022         INSTALL_PROGRAM="cp -fp"
13023         INSTALL_DATA="cp -fp"
13024         ;;
13025     *)
13026         ;;
13027 esac
13028
13029 # Extract the first word of "strip", so it can be a program name with args.
13030 set dummy strip; ac_word=$2
13031 echo "$as_me:$LINENO: checking for $ac_word" >&5
13032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13033 if test "${ac_cv_prog_STRIP+set}" = set; then
13034   echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036   if test -n "$STRIP"; then
13037   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13038 else
13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040 for as_dir in $PATH
13041 do
13042   IFS=$as_save_IFS
13043   test -z "$as_dir" && as_dir=.
13044   for ac_exec_ext in '' $ac_executable_extensions; do
13045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13046     ac_cv_prog_STRIP="strip"
13047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13048     break 2
13049   fi
13050 done
13051 done
13052
13053   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13054 fi
13055 fi
13056 STRIP=$ac_cv_prog_STRIP
13057 if test -n "$STRIP"; then
13058   echo "$as_me:$LINENO: result: $STRIP" >&5
13059 echo "${ECHO_T}$STRIP" >&6
13060 else
13061   echo "$as_me:$LINENO: result: no" >&5
13062 echo "${ECHO_T}no" >&6
13063 fi
13064
13065
13066 echo "$as_me:$LINENO: checking if make is GNU make" >&5
13067 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13068 if test "${wx_cv_prog_makeisgnu+set}" = set; then
13069   echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071
13072     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13073             egrep -s GNU > /dev/null); then
13074         wx_cv_prog_makeisgnu="yes"
13075     else
13076         wx_cv_prog_makeisgnu="no"
13077     fi
13078
13079 fi
13080 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13081 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13082
13083 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13084     IF_GNU_MAKE=""
13085 else
13086     IF_GNU_MAKE="#"
13087 fi
13088
13089
13090
13091 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13092 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13093 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13094 if test "${wx_cv_prog_makevpath+set}" = set; then
13095   echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097
13098 cat - << EOF > confMake
13099 check : file
13100         cp \$? \$@
13101         cp \$? final_file
13102 EOF
13103
13104 if test ! -d sub ; then
13105   mkdir sub
13106 fi
13107 echo dummy > sub/file
13108 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13109 RESULT=$?
13110 rm -f sub/file check final_file confMake
13111 rmdir sub
13112 if test "$RESULT" = 0; then
13113   wx_cv_prog_makevpath="yes"
13114 else
13115   wx_cv_prog_makevpath="no"
13116 fi
13117
13118 fi
13119 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13120 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13121
13122 if test "x$wx_cv_prog_makevpath" != "xyes"; then
13123 { { echo "$as_me:$LINENO: error:
13124 You need a make-utility that is able to use the variable
13125 VPATH correctly.
13126 If your version of make does not support VPATH correctly,
13127 please install GNU-make (possibly as gmake), and start
13128 configure with the following command:
13129 export MAKE=gmake; ./configure  for sh-type shells
13130 setenv MAKE gmake; ./configure  for csh-type shells
13131 Also please do remember to use gmake in this case every time
13132 you are trying to compile.
13133 " >&5
13134 echo "$as_me: error:
13135 You need a make-utility that is able to use the variable
13136 VPATH correctly.
13137 If your version of make does not support VPATH correctly,
13138 please install GNU-make (possibly as gmake), and start
13139 configure with the following command:
13140 export MAKE=gmake; ./configure  for sh-type shells
13141 setenv MAKE gmake; ./configure  for csh-type shells
13142 Also please do remember to use gmake in this case every time
13143 you are trying to compile.
13144 " >&2;}
13145    { (exit 1); exit 1; }; }
13146 fi fi
13147 echo "$as_me:$LINENO: checking whether ln -s works" >&5
13148 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13149 LN_S=$as_ln_s
13150 if test "$LN_S" = "ln -s"; then
13151   echo "$as_me:$LINENO: result: yes" >&5
13152 echo "${ECHO_T}yes" >&6
13153 else
13154   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13155 echo "${ECHO_T}no, using $LN_S" >&6
13156 fi
13157
13158
13159
13160 if test "x$XLCXX" = "xyes"; then
13161     CXXFLAGS="$CXXFLAGS -qunique"
13162 fi
13163
13164
13165 case "${host}" in
13166   powerpc-*-darwin* )
13167     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13168 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13169     cat >conftest.$ac_ext <<_ACEOF
13170 /* confdefs.h.  */
13171 _ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h.  */
13175
13176 int
13177 main ()
13178 {
13179 #ifndef __POWERPC__
13180         choke me for lack of PowerPC
13181 #endif
13182
13183   ;
13184   return 0;
13185 }
13186 _ACEOF
13187 rm -f conftest.$ac_objext
13188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13189   (eval $ac_compile) 2>conftest.er1
13190   ac_status=$?
13191   grep -v '^ *+' conftest.er1 >conftest.err
13192   rm -f conftest.er1
13193   cat conftest.err >&5
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } &&
13196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198   (eval $ac_try) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); }; } &&
13202          { ac_try='test -s conftest.$ac_objext'
13203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204   (eval $ac_try) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }; }; then
13208   echo "$as_me:$LINENO: result: yes" >&5
13209 echo "${ECHO_T}yes" >&6
13210 else
13211   echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13213
13214 echo "$as_me:$LINENO: result: no" >&5
13215 echo "${ECHO_T}no" >&6
13216         cat >>confdefs.h <<\_ACEOF
13217 #define __POWERPC__ 1
13218 _ACEOF
13219
13220
13221 fi
13222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13223     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13224 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13225     cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231 #include <CoreFoundation/CFBase.h>
13232
13233 int
13234 main ()
13235 {
13236
13237   ;
13238   return 0;
13239 }
13240 _ACEOF
13241 rm -f conftest.$ac_objext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243   (eval $ac_compile) 2>conftest.er1
13244   ac_status=$?
13245   grep -v '^ *+' conftest.er1 >conftest.err
13246   rm -f conftest.er1
13247   cat conftest.err >&5
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); } &&
13250          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252   (eval $ac_try) 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }; } &&
13256          { ac_try='test -s conftest.$ac_objext'
13257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258   (eval $ac_try) 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }; }; then
13262   echo "$as_me:$LINENO: result: yes" >&5
13263 echo "${ECHO_T}yes" >&6
13264 else
13265   echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 echo "$as_me:$LINENO: result: no" >&5
13269 echo "${ECHO_T}no" >&6
13270         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13271 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13272         cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h.  */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h.  */
13278 #define __CF_USE_FRAMEWORK_INCLUDES__
13279 #include <CoreFoundation/CFBase.h>
13280
13281 int
13282 main ()
13283 {
13284
13285   ;
13286   return 0;
13287 }
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291   (eval $ac_compile) 2>conftest.er1
13292   ac_status=$?
13293   grep -v '^ *+' conftest.er1 >conftest.err
13294   rm -f conftest.er1
13295   cat conftest.err >&5
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); } &&
13298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300   (eval $ac_try) 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); }; } &&
13304          { ac_try='test -s conftest.$ac_objext'
13305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306   (eval $ac_try) 2>&5
13307   ac_status=$?
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); }; }; then
13310   echo "$as_me:$LINENO: result: yes" >&5
13311 echo "${ECHO_T}yes" >&6
13312                         CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
13318 See \`config.log' for more details." >&5
13319 echo "$as_me: error: no.  CoreFoundation not available.
13320 See \`config.log' for more details." >&2;}
13321    { (exit 1); exit 1; }; }
13322
13323 fi
13324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13325
13326
13327 fi
13328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13329   ;;
13330 esac
13331
13332 case "${host}" in
13333   *-pc-os2_emx | *-pc-os2-emx )
13334                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13335                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13336 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13337 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13338   echo $ECHO_N "(cached) $ECHO_C" >&6
13339 else
13340   ac_check_lib_save_LIBS=$LIBS
13341 LIBS="-lcExt  $LIBS"
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h.  */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h.  */
13348
13349 /* Override any gcc2 internal prototype to avoid an error.  */
13350 #ifdef __cplusplus
13351 extern "C"
13352 #endif
13353 /* We use char because int might match the return type of a gcc2
13354    builtin and then its argument prototype would still apply.  */
13355 char drand48 ();
13356 int
13357 main ()
13358 {
13359 drand48 ();
13360   ;
13361   return 0;
13362 }
13363 _ACEOF
13364 rm -f conftest.$ac_objext conftest$ac_exeext
13365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13366   (eval $ac_link) 2>conftest.er1
13367   ac_status=$?
13368   grep -v '^ *+' conftest.er1 >conftest.err
13369   rm -f conftest.er1
13370   cat conftest.err >&5
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); } &&
13373          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375   (eval $ac_try) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; } &&
13379          { ac_try='test -s conftest$ac_exeext'
13380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381   (eval $ac_try) 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }; }; then
13385   ac_cv_lib_cExt_drand48=yes
13386 else
13387   echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13389
13390 ac_cv_lib_cExt_drand48=no
13391 fi
13392 rm -f conftest.err conftest.$ac_objext \
13393       conftest$ac_exeext conftest.$ac_ext
13394 LIBS=$ac_check_lib_save_LIBS
13395 fi
13396 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13397 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13398 if test $ac_cv_lib_cExt_drand48 = yes; then
13399   LIBS="$LIBS -lcExt"
13400 fi
13401
13402       else
13403                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13404       fi
13405                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13406 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
13407 if test "${wx_cv_gccversion+set}" = set; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410
13411           if test "$cross_compiling" = yes; then
13412                 wx_cv_gccversion="EMX2"
13413
13414 else
13415   cat >conftest.$ac_ext <<_ACEOF
13416 /* confdefs.h.  */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h.  */
13421
13422                   #include <stdio.h>
13423
13424                   int main()
13425                   {
13426                       FILE *f=fopen("conftestval", "w");
13427                       if (!f) exit(1);
13428                       fprintf(f,
13429                   #if (__GNUC__ < 3)
13430                               "EMX2"
13431                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13432                               "EMX3"
13433                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13434                               "Innotek5"
13435                   #else
13436                               "Innotek6"
13437                   #endif
13438                       );
13439                       exit(0);
13440                   }
13441
13442 _ACEOF
13443 rm -f conftest$ac_exeext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13445   (eval $ac_link) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454   wx_cv_gccversion=`cat conftestval`
13455 else
13456   echo "$as_me: program exited with status $ac_status" >&5
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460 ( exit $ac_status )
13461 wx_cv_gccversion="EMX2"
13462 fi
13463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13464 fi
13465
13466 fi
13467 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13468 echo "${ECHO_T}$wx_cv_gccversion" >&6
13469       if test "$wx_cv_gccversion" = "EMX2"; then
13470           LIBS="$LIBS -lstdcpp"
13471           LDFLAGS="$LDFLAGS -Zsysv-signals"
13472       else
13473           if test "$wx_cv_gccversion" = "EMX3"; then
13474               LIBS="$LIBS -lstdcxx"
13475               LDFLAGS="$LDFLAGS -Zsysv-signals"
13476           else
13477               LIBS="$LIBS -lstdc++"
13478           fi
13479       fi
13480       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13481         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13482 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13483         wxUSE_OMF=yes
13484         enable_omf=yes
13485       fi
13486         ;;
13487   *)
13488
13489
13490
13491       ac_ext=cc
13492 ac_cpp='$CXXCPP $CPPFLAGS'
13493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13496
13497
13498       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
13499 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13500 if test "${ac_cv_string_strcasecmp+set}" = set; then
13501   echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503
13504           cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h.  */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h.  */
13510
13511               #include <string.h>
13512
13513 int
13514 main ()
13515 {
13516
13517                   strcasecmp("foo", "bar");
13518
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 rm -f conftest.$ac_objext conftest$ac_exeext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13525   (eval $ac_link) 2>conftest.er1
13526   ac_status=$?
13527   grep -v '^ *+' conftest.er1 >conftest.err
13528   rm -f conftest.er1
13529   cat conftest.err >&5
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } &&
13532          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534   (eval $ac_try) 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; } &&
13538          { ac_try='test -s conftest$ac_exeext'
13539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540   (eval $ac_try) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); }; }; then
13544   ac_cv_string_strcasecmp=yes
13545 else
13546   echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13548
13549 ac_cv_string_strcasecmp=no
13550
13551 fi
13552 rm -f conftest.err conftest.$ac_objext \
13553       conftest$ac_exeext conftest.$ac_ext
13554
13555 fi
13556 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13557 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13558
13559       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13560           cat >>confdefs.h <<\_ACEOF
13561 #define HAVE_STRCASECMP_IN_STRING_H 1
13562 _ACEOF
13563
13564       else
13565           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13566 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13567 if test "${ac_cv_strings_strcasecmp+set}" = set; then
13568   echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570
13571               cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h.  */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h.  */
13577
13578                   #include <strings.h>
13579
13580 int
13581 main ()
13582 {
13583
13584                       strcasecmp("foo", "bar");
13585
13586   ;
13587   return 0;
13588 }
13589 _ACEOF
13590 rm -f conftest.$ac_objext conftest$ac_exeext
13591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13592   (eval $ac_link) 2>conftest.er1
13593   ac_status=$?
13594   grep -v '^ *+' conftest.er1 >conftest.err
13595   rm -f conftest.er1
13596   cat conftest.err >&5
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); } &&
13599          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601   (eval $ac_try) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; } &&
13605          { ac_try='test -s conftest$ac_exeext'
13606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607   (eval $ac_try) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }; }; then
13611   ac_cv_strings_strcasecmp=yes
13612 else
13613   echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13615
13616 ac_cv_strings_strcasecmp=no
13617
13618 fi
13619 rm -f conftest.err conftest.$ac_objext \
13620       conftest$ac_exeext conftest.$ac_ext
13621
13622 fi
13623 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13624 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13625
13626           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
13627               cat >>confdefs.h <<\_ACEOF
13628 #define HAVE_STRCASECMP_IN_STRINGS_H 1
13629 _ACEOF
13630
13631           else
13632               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13633 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13634    { (exit 1); exit 1; }; }
13635           fi
13636       fi
13637
13638       ac_ext=c
13639 ac_cpp='$CPP $CPPFLAGS'
13640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13643
13644         ;;
13645 esac
13646
13647
13648 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13649 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13650 if test "${ac_cv_header_stdc+set}" = set; then
13651   echo $ECHO_N "(cached) $ECHO_C" >&6
13652 else
13653   cat >conftest.$ac_ext <<_ACEOF
13654 /* confdefs.h.  */
13655 _ACEOF
13656 cat confdefs.h >>conftest.$ac_ext
13657 cat >>conftest.$ac_ext <<_ACEOF
13658 /* end confdefs.h.  */
13659 #include <stdlib.h>
13660 #include <stdarg.h>
13661 #include <string.h>
13662 #include <float.h>
13663
13664 int
13665 main ()
13666 {
13667
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 rm -f conftest.$ac_objext
13673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13674   (eval $ac_compile) 2>conftest.er1
13675   ac_status=$?
13676   grep -v '^ *+' conftest.er1 >conftest.err
13677   rm -f conftest.er1
13678   cat conftest.err >&5
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); } &&
13681          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683   (eval $ac_try) 2>&5
13684   ac_status=$?
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); }; } &&
13687          { ac_try='test -s conftest.$ac_objext'
13688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689   (eval $ac_try) 2>&5
13690   ac_status=$?
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); }; }; then
13693   ac_cv_header_stdc=yes
13694 else
13695   echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13697
13698 ac_cv_header_stdc=no
13699 fi
13700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13701
13702 if test $ac_cv_header_stdc = yes; then
13703   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13704   cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h.  */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h.  */
13710 #include <string.h>
13711
13712 _ACEOF
13713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13714   $EGREP "memchr" >/dev/null 2>&1; then
13715   :
13716 else
13717   ac_cv_header_stdc=no
13718 fi
13719 rm -f conftest*
13720
13721 fi
13722
13723 if test $ac_cv_header_stdc = yes; then
13724   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13725   cat >conftest.$ac_ext <<_ACEOF
13726 /* confdefs.h.  */
13727 _ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h.  */
13731 #include <stdlib.h>
13732
13733 _ACEOF
13734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13735   $EGREP "free" >/dev/null 2>&1; then
13736   :
13737 else
13738   ac_cv_header_stdc=no
13739 fi
13740 rm -f conftest*
13741
13742 fi
13743
13744 if test $ac_cv_header_stdc = yes; then
13745   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13746   if test "$cross_compiling" = yes; then
13747   :
13748 else
13749   cat >conftest.$ac_ext <<_ACEOF
13750 /* confdefs.h.  */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h.  */
13755 #include <ctype.h>
13756 #if ((' ' & 0x0FF) == 0x020)
13757 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13758 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13759 #else
13760 # define ISLOWER(c) \
13761                    (('a' <= (c) && (c) <= 'i') \
13762                      || ('j' <= (c) && (c) <= 'r') \
13763                      || ('s' <= (c) && (c) <= 'z'))
13764 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13765 #endif
13766
13767 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13768 int
13769 main ()
13770 {
13771   int i;
13772   for (i = 0; i < 256; i++)
13773     if (XOR (islower (i), ISLOWER (i))
13774         || toupper (i) != TOUPPER (i))
13775       exit(2);
13776   exit (0);
13777 }
13778 _ACEOF
13779 rm -f conftest$ac_exeext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781   (eval $ac_link) 2>&5
13782   ac_status=$?
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786   (eval $ac_try) 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; }; then
13790   :
13791 else
13792   echo "$as_me: program exited with status $ac_status" >&5
13793 echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13795
13796 ( exit $ac_status )
13797 ac_cv_header_stdc=no
13798 fi
13799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13800 fi
13801 fi
13802 fi
13803 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13804 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13805 if test $ac_cv_header_stdc = yes; then
13806
13807 cat >>confdefs.h <<\_ACEOF
13808 #define STDC_HEADERS 1
13809 _ACEOF
13810
13811 fi
13812
13813 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13824                   inttypes.h stdint.h unistd.h
13825 do
13826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13827 echo "$as_me:$LINENO: checking for $ac_header" >&5
13828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13830   echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832   cat >conftest.$ac_ext <<_ACEOF
13833 /* confdefs.h.  */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h.  */
13838 $ac_includes_default
13839
13840 #include <$ac_header>
13841 _ACEOF
13842 rm -f conftest.$ac_objext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13844   (eval $ac_compile) 2>conftest.er1
13845   ac_status=$?
13846   grep -v '^ *+' conftest.er1 >conftest.err
13847   rm -f conftest.er1
13848   cat conftest.err >&5
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); } &&
13851          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853   (eval $ac_try) 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); }; } &&
13857          { ac_try='test -s conftest.$ac_objext'
13858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859   (eval $ac_try) 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; }; then
13863   eval "$as_ac_Header=yes"
13864 else
13865   echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13867
13868 eval "$as_ac_Header=no"
13869 fi
13870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13871 fi
13872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13875   cat >>confdefs.h <<_ACEOF
13876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13877 _ACEOF
13878
13879 fi
13880
13881 done
13882
13883
13884
13885 for ac_header in stdlib.h
13886 do
13887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13889   echo "$as_me:$LINENO: checking for $ac_header" >&5
13890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13892   echo $ECHO_N "(cached) $ECHO_C" >&6
13893 fi
13894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13896 else
13897   # Is the header compilable?
13898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13900 cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h.  */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h.  */
13906 $ac_includes_default
13907 #include <$ac_header>
13908 _ACEOF
13909 rm -f conftest.$ac_objext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13911   (eval $ac_compile) 2>conftest.er1
13912   ac_status=$?
13913   grep -v '^ *+' conftest.er1 >conftest.err
13914   rm -f conftest.er1
13915   cat conftest.err >&5
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); } &&
13918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; } &&
13924          { ac_try='test -s conftest.$ac_objext'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; }; then
13930   ac_header_compiler=yes
13931 else
13932   echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13934
13935 ac_header_compiler=no
13936 fi
13937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13939 echo "${ECHO_T}$ac_header_compiler" >&6
13940
13941 # Is the header present?
13942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13943 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
13951 _ACEOF
13952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13954   ac_status=$?
13955   grep -v '^ *+' conftest.er1 >conftest.err
13956   rm -f conftest.er1
13957   cat conftest.err >&5
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); } >/dev/null; then
13960   if test -s conftest.err; then
13961     ac_cpp_err=$ac_c_preproc_warn_flag
13962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13963   else
13964     ac_cpp_err=
13965   fi
13966 else
13967   ac_cpp_err=yes
13968 fi
13969 if test -z "$ac_cpp_err"; then
13970   ac_header_preproc=yes
13971 else
13972   echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13974
13975   ac_header_preproc=no
13976 fi
13977 rm -f conftest.err conftest.$ac_ext
13978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13979 echo "${ECHO_T}$ac_header_preproc" >&6
13980
13981 # So?  What about this header?
13982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13983   yes:no: )
13984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13988     ac_header_preproc=yes
13989     ;;
13990   no:yes:* )
13991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14003     (
14004       cat <<\_ASBOX
14005 ## ----------------------------------------- ##
14006 ## Report this to wx-dev@lists.wxwidgets.org ##
14007 ## ----------------------------------------- ##
14008 _ASBOX
14009     ) |
14010       sed "s/^/$as_me: WARNING:     /" >&2
14011     ;;
14012 esac
14013 echo "$as_me:$LINENO: checking for $ac_header" >&5
14014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   eval "$as_ac_Header=\$ac_header_preproc"
14019 fi
14020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14022
14023 fi
14024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14025   cat >>confdefs.h <<_ACEOF
14026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14027 _ACEOF
14028
14029 fi
14030
14031 done
14032
14033
14034 for ac_header in malloc.h
14035 do
14036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14038   echo "$as_me:$LINENO: checking for $ac_header" >&5
14039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14041   echo $ECHO_N "(cached) $ECHO_C" >&6
14042 fi
14043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14045 else
14046   # Is the header compilable?
14047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14049 cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h.  */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h.  */
14055 $ac_includes_default
14056 #include <$ac_header>
14057 _ACEOF
14058 rm -f conftest.$ac_objext
14059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14060   (eval $ac_compile) 2>conftest.er1
14061   ac_status=$?
14062   grep -v '^ *+' conftest.er1 >conftest.err
14063   rm -f conftest.er1
14064   cat conftest.err >&5
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); } &&
14067          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069   (eval $ac_try) 2>&5
14070   ac_status=$?
14071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072   (exit $ac_status); }; } &&
14073          { ac_try='test -s conftest.$ac_objext'
14074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075   (eval $ac_try) 2>&5
14076   ac_status=$?
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); }; }; then
14079   ac_header_compiler=yes
14080 else
14081   echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084 ac_header_compiler=no
14085 fi
14086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14088 echo "${ECHO_T}$ac_header_compiler" >&6
14089
14090 # Is the header present?
14091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14092 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
14100 _ACEOF
14101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14103   ac_status=$?
14104   grep -v '^ *+' conftest.er1 >conftest.err
14105   rm -f conftest.er1
14106   cat conftest.err >&5
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); } >/dev/null; then
14109   if test -s conftest.err; then
14110     ac_cpp_err=$ac_c_preproc_warn_flag
14111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14112   else
14113     ac_cpp_err=
14114   fi
14115 else
14116   ac_cpp_err=yes
14117 fi
14118 if test -z "$ac_cpp_err"; then
14119   ac_header_preproc=yes
14120 else
14121   echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14123
14124   ac_header_preproc=no
14125 fi
14126 rm -f conftest.err conftest.$ac_ext
14127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14128 echo "${ECHO_T}$ac_header_preproc" >&6
14129
14130 # So?  What about this header?
14131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14132   yes:no: )
14133     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14137     ac_header_preproc=yes
14138     ;;
14139   no:yes:* )
14140     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14142     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14143 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14144     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14146     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14147 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14150     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14152     (
14153       cat <<\_ASBOX
14154 ## ----------------------------------------- ##
14155 ## Report this to wx-dev@lists.wxwidgets.org ##
14156 ## ----------------------------------------- ##
14157 _ASBOX
14158     ) |
14159       sed "s/^/$as_me: WARNING:     /" >&2
14160     ;;
14161 esac
14162 echo "$as_me:$LINENO: checking for $ac_header" >&5
14163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14165   echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167   eval "$as_ac_Header=\$ac_header_preproc"
14168 fi
14169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14171
14172 fi
14173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14174   cat >>confdefs.h <<_ACEOF
14175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14176 _ACEOF
14177
14178 fi
14179
14180 done
14181
14182
14183 for ac_header in unistd.h
14184 do
14185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14187   echo "$as_me:$LINENO: checking for $ac_header" >&5
14188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 fi
14192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14194 else
14195   # Is the header compilable?
14196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h.  */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h.  */
14204 $ac_includes_default
14205 #include <$ac_header>
14206 _ACEOF
14207 rm -f conftest.$ac_objext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209   (eval $ac_compile) 2>conftest.er1
14210   ac_status=$?
14211   grep -v '^ *+' conftest.er1 >conftest.err
14212   rm -f conftest.er1
14213   cat conftest.err >&5
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); } &&
14216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218   (eval $ac_try) 2>&5
14219   ac_status=$?
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); }; } &&
14222          { ac_try='test -s conftest.$ac_objext'
14223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224   (eval $ac_try) 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; }; then
14228   ac_header_compiler=yes
14229 else
14230   echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14232
14233 ac_header_compiler=no
14234 fi
14235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14237 echo "${ECHO_T}$ac_header_compiler" >&6
14238
14239 # Is the header present?
14240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14241 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
14249 _ACEOF
14250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14252   ac_status=$?
14253   grep -v '^ *+' conftest.er1 >conftest.err
14254   rm -f conftest.er1
14255   cat conftest.err >&5
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } >/dev/null; then
14258   if test -s conftest.err; then
14259     ac_cpp_err=$ac_c_preproc_warn_flag
14260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14261   else
14262     ac_cpp_err=
14263   fi
14264 else
14265   ac_cpp_err=yes
14266 fi
14267 if test -z "$ac_cpp_err"; then
14268   ac_header_preproc=yes
14269 else
14270   echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273   ac_header_preproc=no
14274 fi
14275 rm -f conftest.err conftest.$ac_ext
14276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14277 echo "${ECHO_T}$ac_header_preproc" >&6
14278
14279 # So?  What about this header?
14280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14281   yes:no: )
14282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14286     ac_header_preproc=yes
14287     ;;
14288   no:yes:* )
14289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14301     (
14302       cat <<\_ASBOX
14303 ## ----------------------------------------- ##
14304 ## Report this to wx-dev@lists.wxwidgets.org ##
14305 ## ----------------------------------------- ##
14306 _ASBOX
14307     ) |
14308       sed "s/^/$as_me: WARNING:     /" >&2
14309     ;;
14310 esac
14311 echo "$as_me:$LINENO: checking for $ac_header" >&5
14312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14314   echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316   eval "$as_ac_Header=\$ac_header_preproc"
14317 fi
14318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14320
14321 fi
14322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14323   cat >>confdefs.h <<_ACEOF
14324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14325 _ACEOF
14326
14327 fi
14328
14329 done
14330
14331
14332 for ac_header in wchar.h
14333 do
14334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14336   echo "$as_me:$LINENO: checking for $ac_header" >&5
14337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14339   echo $ECHO_N "(cached) $ECHO_C" >&6
14340 fi
14341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14343 else
14344   # Is the header compilable?
14345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h.  */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h.  */
14353 $ac_includes_default
14354 #include <$ac_header>
14355 _ACEOF
14356 rm -f conftest.$ac_objext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358   (eval $ac_compile) 2>conftest.er1
14359   ac_status=$?
14360   grep -v '^ *+' conftest.er1 >conftest.err
14361   rm -f conftest.er1
14362   cat conftest.err >&5
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); } &&
14365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367   (eval $ac_try) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; } &&
14371          { ac_try='test -s conftest.$ac_objext'
14372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373   (eval $ac_try) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; }; then
14377   ac_header_compiler=yes
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382 ac_header_compiler=no
14383 fi
14384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386 echo "${ECHO_T}$ac_header_compiler" >&6
14387
14388 # Is the header present?
14389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14390 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
14398 _ACEOF
14399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14401   ac_status=$?
14402   grep -v '^ *+' conftest.er1 >conftest.err
14403   rm -f conftest.er1
14404   cat conftest.err >&5
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } >/dev/null; then
14407   if test -s conftest.err; then
14408     ac_cpp_err=$ac_c_preproc_warn_flag
14409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14410   else
14411     ac_cpp_err=
14412   fi
14413 else
14414   ac_cpp_err=yes
14415 fi
14416 if test -z "$ac_cpp_err"; then
14417   ac_header_preproc=yes
14418 else
14419   echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14421
14422   ac_header_preproc=no
14423 fi
14424 rm -f conftest.err conftest.$ac_ext
14425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14426 echo "${ECHO_T}$ac_header_preproc" >&6
14427
14428 # So?  What about this header?
14429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14430   yes:no: )
14431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14435     ac_header_preproc=yes
14436     ;;
14437   no:yes:* )
14438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14450     (
14451       cat <<\_ASBOX
14452 ## ----------------------------------------- ##
14453 ## Report this to wx-dev@lists.wxwidgets.org ##
14454 ## ----------------------------------------- ##
14455 _ASBOX
14456     ) |
14457       sed "s/^/$as_me: WARNING:     /" >&2
14458     ;;
14459 esac
14460 echo "$as_me:$LINENO: checking for $ac_header" >&5
14461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14463   echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465   eval "$as_ac_Header=\$ac_header_preproc"
14466 fi
14467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14469
14470 fi
14471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14472   cat >>confdefs.h <<_ACEOF
14473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14474 _ACEOF
14475
14476 fi
14477
14478 done
14479
14480
14481 if test "$ac_cv_header_wchar_h" != "yes"; then
14482
14483 for ac_header in wcstr.h
14484 do
14485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14487   echo "$as_me:$LINENO: checking for $ac_header" >&5
14488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14490   echo $ECHO_N "(cached) $ECHO_C" >&6
14491 fi
14492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14494 else
14495   # Is the header compilable?
14496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h.  */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h.  */
14504 $ac_includes_default
14505 #include <$ac_header>
14506 _ACEOF
14507 rm -f conftest.$ac_objext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14509   (eval $ac_compile) 2>conftest.er1
14510   ac_status=$?
14511   grep -v '^ *+' conftest.er1 >conftest.err
14512   rm -f conftest.er1
14513   cat conftest.err >&5
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); } &&
14516          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518   (eval $ac_try) 2>&5
14519   ac_status=$?
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); }; } &&
14522          { ac_try='test -s conftest.$ac_objext'
14523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524   (eval $ac_try) 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); }; }; then
14528   ac_header_compiler=yes
14529 else
14530   echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533 ac_header_compiler=no
14534 fi
14535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14537 echo "${ECHO_T}$ac_header_compiler" >&6
14538
14539 # Is the header present?
14540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14541 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
14549 _ACEOF
14550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14551   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14552   ac_status=$?
14553   grep -v '^ *+' conftest.er1 >conftest.err
14554   rm -f conftest.er1
14555   cat conftest.err >&5
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); } >/dev/null; then
14558   if test -s conftest.err; then
14559     ac_cpp_err=$ac_c_preproc_warn_flag
14560     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14561   else
14562     ac_cpp_err=
14563   fi
14564 else
14565   ac_cpp_err=yes
14566 fi
14567 if test -z "$ac_cpp_err"; then
14568   ac_header_preproc=yes
14569 else
14570   echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573   ac_header_preproc=no
14574 fi
14575 rm -f conftest.err conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14577 echo "${ECHO_T}$ac_header_preproc" >&6
14578
14579 # So?  What about this header?
14580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14581   yes:no: )
14582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14586     ac_header_preproc=yes
14587     ;;
14588   no:yes:* )
14589     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14591     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14592 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14593     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14595     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14596 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14599     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14601     (
14602       cat <<\_ASBOX
14603 ## ----------------------------------------- ##
14604 ## Report this to wx-dev@lists.wxwidgets.org ##
14605 ## ----------------------------------------- ##
14606 _ASBOX
14607     ) |
14608       sed "s/^/$as_me: WARNING:     /" >&2
14609     ;;
14610 esac
14611 echo "$as_me:$LINENO: checking for $ac_header" >&5
14612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   eval "$as_ac_Header=\$ac_header_preproc"
14617 fi
14618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14620
14621 fi
14622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14623   cat >>confdefs.h <<_ACEOF
14624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14625 _ACEOF
14626
14627 fi
14628
14629 done
14630
14631 fi
14632
14633
14634 for ac_header in fnmatch.h
14635 do
14636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14638   echo "$as_me:$LINENO: checking for $ac_header" >&5
14639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14641   echo $ECHO_N "(cached) $ECHO_C" >&6
14642 fi
14643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14645 else
14646   # Is the header compilable?
14647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14649 cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h.  */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h.  */
14655 $ac_includes_default
14656 #include <$ac_header>
14657 _ACEOF
14658 rm -f conftest.$ac_objext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14660   (eval $ac_compile) 2>conftest.er1
14661   ac_status=$?
14662   grep -v '^ *+' conftest.er1 >conftest.err
14663   rm -f conftest.er1
14664   cat conftest.err >&5
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); } &&
14667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669   (eval $ac_try) 2>&5
14670   ac_status=$?
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); }; } &&
14673          { ac_try='test -s conftest.$ac_objext'
14674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675   (eval $ac_try) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; }; then
14679   ac_header_compiler=yes
14680 else
14681   echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14683
14684 ac_header_compiler=no
14685 fi
14686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14688 echo "${ECHO_T}$ac_header_compiler" >&6
14689
14690 # Is the header present?
14691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14692 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
14700 _ACEOF
14701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14702   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14703   ac_status=$?
14704   grep -v '^ *+' conftest.er1 >conftest.err
14705   rm -f conftest.er1
14706   cat conftest.err >&5
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); } >/dev/null; then
14709   if test -s conftest.err; then
14710     ac_cpp_err=$ac_c_preproc_warn_flag
14711     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14712   else
14713     ac_cpp_err=
14714   fi
14715 else
14716   ac_cpp_err=yes
14717 fi
14718 if test -z "$ac_cpp_err"; then
14719   ac_header_preproc=yes
14720 else
14721   echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14723
14724   ac_header_preproc=no
14725 fi
14726 rm -f conftest.err conftest.$ac_ext
14727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14728 echo "${ECHO_T}$ac_header_preproc" >&6
14729
14730 # So?  What about this header?
14731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14732   yes:no: )
14733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14737     ac_header_preproc=yes
14738     ;;
14739   no:yes:* )
14740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14742     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14743 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14744     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14746     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14747 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14750     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14752     (
14753       cat <<\_ASBOX
14754 ## ----------------------------------------- ##
14755 ## Report this to wx-dev@lists.wxwidgets.org ##
14756 ## ----------------------------------------- ##
14757 _ASBOX
14758     ) |
14759       sed "s/^/$as_me: WARNING:     /" >&2
14760     ;;
14761 esac
14762 echo "$as_me:$LINENO: checking for $ac_header" >&5
14763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14765   echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767   eval "$as_ac_Header=\$ac_header_preproc"
14768 fi
14769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14771
14772 fi
14773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14774   cat >>confdefs.h <<_ACEOF
14775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14776 _ACEOF
14777
14778 fi
14779
14780 done
14781
14782
14783 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14784
14785 for ac_func in fnmatch
14786 do
14787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14788 echo "$as_me:$LINENO: checking for $ac_func" >&5
14789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14790 if eval "test \"\${$as_ac_var+set}\" = set"; then
14791   echo $ECHO_N "(cached) $ECHO_C" >&6
14792 else
14793   cat >conftest.$ac_ext <<_ACEOF
14794 /* confdefs.h.  */
14795 _ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h.  */
14799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14801 #define $ac_func innocuous_$ac_func
14802
14803 /* System header to define __stub macros and hopefully few prototypes,
14804     which can conflict with char $ac_func (); below.
14805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14806     <limits.h> exists even on freestanding compilers.  */
14807
14808 #ifdef __STDC__
14809 # include <limits.h>
14810 #else
14811 # include <assert.h>
14812 #endif
14813
14814 #undef $ac_func
14815
14816 /* Override any gcc2 internal prototype to avoid an error.  */
14817 #ifdef __cplusplus
14818 extern "C"
14819 {
14820 #endif
14821 /* We use char because int might match the return type of a gcc2
14822    builtin and then its argument prototype would still apply.  */
14823 char $ac_func ();
14824 /* The GNU C library defines this for functions which it implements
14825     to always fail with ENOSYS.  Some functions are actually named
14826     something starting with __ and the normal name is an alias.  */
14827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14828 choke me
14829 #else
14830 char (*f) () = $ac_func;
14831 #endif
14832 #ifdef __cplusplus
14833 }
14834 #endif
14835
14836 int
14837 main ()
14838 {
14839 return f != $ac_func;
14840   ;
14841   return 0;
14842 }
14843 _ACEOF
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14846   (eval $ac_link) 2>conftest.er1
14847   ac_status=$?
14848   grep -v '^ *+' conftest.er1 >conftest.err
14849   rm -f conftest.er1
14850   cat conftest.err >&5
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); } &&
14853          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855   (eval $ac_try) 2>&5
14856   ac_status=$?
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); }; } &&
14859          { ac_try='test -s conftest$ac_exeext'
14860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861   (eval $ac_try) 2>&5
14862   ac_status=$?
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); }; }; then
14865   eval "$as_ac_var=yes"
14866 else
14867   echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 eval "$as_ac_var=no"
14871 fi
14872 rm -f conftest.err conftest.$ac_objext \
14873       conftest$ac_exeext conftest.$ac_ext
14874 fi
14875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14877 if test `eval echo '${'$as_ac_var'}'` = yes; then
14878   cat >>confdefs.h <<_ACEOF
14879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14880 _ACEOF
14881
14882 fi
14883 done
14884
14885 fi
14886
14887
14888 for ac_header in langinfo.h
14889 do
14890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14892   echo "$as_me:$LINENO: checking for $ac_header" >&5
14893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14895   echo $ECHO_N "(cached) $ECHO_C" >&6
14896 fi
14897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14899 else
14900   # Is the header compilable?
14901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h.  */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h.  */
14909 $ac_includes_default
14910 #include <$ac_header>
14911 _ACEOF
14912 rm -f conftest.$ac_objext
14913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14914   (eval $ac_compile) 2>conftest.er1
14915   ac_status=$?
14916   grep -v '^ *+' conftest.er1 >conftest.err
14917   rm -f conftest.er1
14918   cat conftest.err >&5
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); } &&
14921          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923   (eval $ac_try) 2>&5
14924   ac_status=$?
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); }; } &&
14927          { ac_try='test -s conftest.$ac_objext'
14928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929   (eval $ac_try) 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); }; }; then
14933   ac_header_compiler=yes
14934 else
14935   echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14937
14938 ac_header_compiler=no
14939 fi
14940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14942 echo "${ECHO_T}$ac_header_compiler" >&6
14943
14944 # Is the header present?
14945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14946 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
14954 _ACEOF
14955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14957   ac_status=$?
14958   grep -v '^ *+' conftest.er1 >conftest.err
14959   rm -f conftest.er1
14960   cat conftest.err >&5
14961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); } >/dev/null; then
14963   if test -s conftest.err; then
14964     ac_cpp_err=$ac_c_preproc_warn_flag
14965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14966   else
14967     ac_cpp_err=
14968   fi
14969 else
14970   ac_cpp_err=yes
14971 fi
14972 if test -z "$ac_cpp_err"; then
14973   ac_header_preproc=yes
14974 else
14975   echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14977
14978   ac_header_preproc=no
14979 fi
14980 rm -f conftest.err conftest.$ac_ext
14981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14982 echo "${ECHO_T}$ac_header_preproc" >&6
14983
14984 # So?  What about this header?
14985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14986   yes:no: )
14987     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14991     ac_header_preproc=yes
14992     ;;
14993   no:yes:* )
14994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14996     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14997 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14998     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15000     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15001 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15004     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15006     (
15007       cat <<\_ASBOX
15008 ## ----------------------------------------- ##
15009 ## Report this to wx-dev@lists.wxwidgets.org ##
15010 ## ----------------------------------------- ##
15011 _ASBOX
15012     ) |
15013       sed "s/^/$as_me: WARNING:     /" >&2
15014     ;;
15015 esac
15016 echo "$as_me:$LINENO: checking for $ac_header" >&5
15017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15019   echo $ECHO_N "(cached) $ECHO_C" >&6
15020 else
15021   eval "$as_ac_Header=\$ac_header_preproc"
15022 fi
15023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15025
15026 fi
15027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15028   cat >>confdefs.h <<_ACEOF
15029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15030 _ACEOF
15031
15032 fi
15033
15034 done
15035
15036
15037 case "${host}" in
15038   *-pc-os2_emx | *-pc-os2-emx )
15039                   if test $ac_cv_header_langinfo_h = "yes" \
15040                 -a \(   "$wx_cv_gccversion" = "EMX2" \
15041                      -o "$wx_cv_gccversion" = "EMX3" \
15042                      -o "$wx_cv_gccversion" = "Innotek5" \); then
15043           LIBS="$LIBS -lintl"
15044       fi
15045   ;;
15046 esac
15047
15048 if test "$wxUSE_GUI" = "yes"; then
15049     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15050
15051 for ac_header in X11/Xlib.h
15052 do
15053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15055   echo "$as_me:$LINENO: checking for $ac_header" >&5
15056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15058   echo $ECHO_N "(cached) $ECHO_C" >&6
15059 fi
15060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15062 else
15063   # Is the header compilable?
15064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15066 cat >conftest.$ac_ext <<_ACEOF
15067 /* confdefs.h.  */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h.  */
15072 $ac_includes_default
15073 #include <$ac_header>
15074 _ACEOF
15075 rm -f conftest.$ac_objext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077   (eval $ac_compile) 2>conftest.er1
15078   ac_status=$?
15079   grep -v '^ *+' conftest.er1 >conftest.err
15080   rm -f conftest.er1
15081   cat conftest.err >&5
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } &&
15084          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086   (eval $ac_try) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; } &&
15090          { ac_try='test -s conftest.$ac_objext'
15091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092   (eval $ac_try) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); }; }; then
15096   ac_header_compiler=yes
15097 else
15098   echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15100
15101 ac_header_compiler=no
15102 fi
15103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15105 echo "${ECHO_T}$ac_header_compiler" >&6
15106
15107 # Is the header present?
15108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15109 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
15117 _ACEOF
15118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15120   ac_status=$?
15121   grep -v '^ *+' conftest.er1 >conftest.err
15122   rm -f conftest.er1
15123   cat conftest.err >&5
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); } >/dev/null; then
15126   if test -s conftest.err; then
15127     ac_cpp_err=$ac_c_preproc_warn_flag
15128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15129   else
15130     ac_cpp_err=
15131   fi
15132 else
15133   ac_cpp_err=yes
15134 fi
15135 if test -z "$ac_cpp_err"; then
15136   ac_header_preproc=yes
15137 else
15138   echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15140
15141   ac_header_preproc=no
15142 fi
15143 rm -f conftest.err conftest.$ac_ext
15144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15145 echo "${ECHO_T}$ac_header_preproc" >&6
15146
15147 # So?  What about this header?
15148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15149   yes:no: )
15150     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15154     ac_header_preproc=yes
15155     ;;
15156   no:yes:* )
15157     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15159     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15160 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15161     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15163     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15164 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15167     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15169     (
15170       cat <<\_ASBOX
15171 ## ----------------------------------------- ##
15172 ## Report this to wx-dev@lists.wxwidgets.org ##
15173 ## ----------------------------------------- ##
15174 _ASBOX
15175     ) |
15176       sed "s/^/$as_me: WARNING:     /" >&2
15177     ;;
15178 esac
15179 echo "$as_me:$LINENO: checking for $ac_header" >&5
15180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15182   echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184   eval "$as_ac_Header=\$ac_header_preproc"
15185 fi
15186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15188
15189 fi
15190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15191   cat >>confdefs.h <<_ACEOF
15192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15193 _ACEOF
15194
15195 fi
15196
15197 done
15198
15199
15200 for ac_header in X11/XKBlib.h
15201 do
15202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15203 echo "$as_me:$LINENO: checking for $ac_header" >&5
15204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15206   echo $ECHO_N "(cached) $ECHO_C" >&6
15207 else
15208   cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214
15215                           #if HAVE_X11_XLIB_H
15216                             #include <X11/Xlib.h>
15217                           #endif
15218
15219
15220 #include <$ac_header>
15221 _ACEOF
15222 rm -f conftest.$ac_objext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15224   (eval $ac_compile) 2>conftest.er1
15225   ac_status=$?
15226   grep -v '^ *+' conftest.er1 >conftest.err
15227   rm -f conftest.er1
15228   cat conftest.err >&5
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); } &&
15231          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233   (eval $ac_try) 2>&5
15234   ac_status=$?
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); }; } &&
15237          { ac_try='test -s conftest.$ac_objext'
15238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239   (eval $ac_try) 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); }; }; then
15243   eval "$as_ac_Header=yes"
15244 else
15245   echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248 eval "$as_ac_Header=no"
15249 fi
15250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15251 fi
15252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15255   cat >>confdefs.h <<_ACEOF
15256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15257 _ACEOF
15258
15259 fi
15260
15261 done
15262
15263     fi
15264 fi
15265
15266
15267 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15268 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15269 if test "${ac_cv_c_const+set}" = set; then
15270   echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272   cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278
15279 int
15280 main ()
15281 {
15282 /* FIXME: Include the comments suggested by Paul. */
15283 #ifndef __cplusplus
15284   /* Ultrix mips cc rejects this.  */
15285   typedef int charset[2];
15286   const charset x;
15287   /* SunOS 4.1.1 cc rejects this.  */
15288   char const *const *ccp;
15289   char **p;
15290   /* NEC SVR4.0.2 mips cc rejects this.  */
15291   struct point {int x, y;};
15292   static struct point const zero = {0,0};
15293   /* AIX XL C 1.02.0.0 rejects this.
15294      It does not let you subtract one const X* pointer from another in
15295      an arm of an if-expression whose if-part is not a constant
15296      expression */
15297   const char *g = "string";
15298   ccp = &g + (g ? g-g : 0);
15299   /* HPUX 7.0 cc rejects these. */
15300   ++ccp;
15301   p = (char**) ccp;
15302   ccp = (char const *const *) p;
15303   { /* SCO 3.2v4 cc rejects this.  */
15304     char *t;
15305     char const *s = 0 ? (char *) 0 : (char const *) 0;
15306
15307     *t++ = 0;
15308   }
15309   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15310     int x[] = {25, 17};
15311     const int *foo = &x[0];
15312     ++foo;
15313   }
15314   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15315     typedef const int *iptr;
15316     iptr p = 0;
15317     ++p;
15318   }
15319   { /* AIX XL C 1.02.0.0 rejects this saying
15320        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15321     struct s { int j; const int *ap[3]; };
15322     struct s *b; b->j = 5;
15323   }
15324   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15325     const int foo = 10;
15326   }
15327 #endif
15328
15329   ;
15330   return 0;
15331 }
15332 _ACEOF
15333 rm -f conftest.$ac_objext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15335   (eval $ac_compile) 2>conftest.er1
15336   ac_status=$?
15337   grep -v '^ *+' conftest.er1 >conftest.err
15338   rm -f conftest.er1
15339   cat conftest.err >&5
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); } &&
15342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344   (eval $ac_try) 2>&5
15345   ac_status=$?
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); }; } &&
15348          { ac_try='test -s conftest.$ac_objext'
15349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350   (eval $ac_try) 2>&5
15351   ac_status=$?
15352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353   (exit $ac_status); }; }; then
15354   ac_cv_c_const=yes
15355 else
15356   echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15358
15359 ac_cv_c_const=no
15360 fi
15361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15362 fi
15363 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15364 echo "${ECHO_T}$ac_cv_c_const" >&6
15365 if test $ac_cv_c_const = no; then
15366
15367 cat >>confdefs.h <<\_ACEOF
15368 #define const
15369 _ACEOF
15370
15371 fi
15372
15373 echo "$as_me:$LINENO: checking for inline" >&5
15374 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15375 if test "${ac_cv_c_inline+set}" = set; then
15376   echo $ECHO_N "(cached) $ECHO_C" >&6
15377 else
15378   ac_cv_c_inline=no
15379 for ac_kw in inline __inline__ __inline; do
15380   cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h.  */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h.  */
15386 #ifndef __cplusplus
15387 typedef int foo_t;
15388 static $ac_kw foo_t static_foo () {return 0; }
15389 $ac_kw foo_t foo () {return 0; }
15390 #endif
15391
15392 _ACEOF
15393 rm -f conftest.$ac_objext
15394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15395   (eval $ac_compile) 2>conftest.er1
15396   ac_status=$?
15397   grep -v '^ *+' conftest.er1 >conftest.err
15398   rm -f conftest.er1
15399   cat conftest.err >&5
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } &&
15402          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404   (eval $ac_try) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; } &&
15408          { ac_try='test -s conftest.$ac_objext'
15409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410   (eval $ac_try) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }; then
15414   ac_cv_c_inline=$ac_kw; break
15415 else
15416   echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15418
15419 fi
15420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15421 done
15422
15423 fi
15424 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15425 echo "${ECHO_T}$ac_cv_c_inline" >&6
15426
15427
15428 case $ac_cv_c_inline in
15429   inline | yes) ;;
15430   *)
15431     case $ac_cv_c_inline in
15432       no) ac_val=;;
15433       *) ac_val=$ac_cv_c_inline;;
15434     esac
15435     cat >>confdefs.h <<_ACEOF
15436 #ifndef __cplusplus
15437 #define inline $ac_val
15438 #endif
15439 _ACEOF
15440     ;;
15441 esac
15442
15443
15444 echo "$as_me:$LINENO: checking for char" >&5
15445 echo $ECHO_N "checking for char... $ECHO_C" >&6
15446 if test "${ac_cv_type_char+set}" = set; then
15447   echo $ECHO_N "(cached) $ECHO_C" >&6
15448 else
15449   cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h.  */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h.  */
15455 $ac_includes_default
15456 int
15457 main ()
15458 {
15459 if ((char *) 0)
15460   return 0;
15461 if (sizeof (char))
15462   return 0;
15463   ;
15464   return 0;
15465 }
15466 _ACEOF
15467 rm -f conftest.$ac_objext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15469   (eval $ac_compile) 2>conftest.er1
15470   ac_status=$?
15471   grep -v '^ *+' conftest.er1 >conftest.err
15472   rm -f conftest.er1
15473   cat conftest.err >&5
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); } &&
15476          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478   (eval $ac_try) 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }; } &&
15482          { ac_try='test -s conftest.$ac_objext'
15483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484   (eval $ac_try) 2>&5
15485   ac_status=$?
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); }; }; then
15488   ac_cv_type_char=yes
15489 else
15490   echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 ac_cv_type_char=no
15494 fi
15495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15496 fi
15497 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15498 echo "${ECHO_T}$ac_cv_type_char" >&6
15499
15500 echo "$as_me:$LINENO: checking size of char" >&5
15501 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15502 if test "${ac_cv_sizeof_char+set}" = set; then
15503   echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505   if test "$ac_cv_type_char" = yes; then
15506   # The cast to unsigned long works around a bug in the HP C Compiler
15507   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15508   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15509   # This bug is HP SR number 8606223364.
15510   if test "$cross_compiling" = yes; then
15511   # Depending upon the size, compute the lo and hi bounds.
15512 cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h.  */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h.  */
15518 $ac_includes_default
15519 int
15520 main ()
15521 {
15522 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15523 test_array [0] = 0
15524
15525   ;
15526   return 0;
15527 }
15528 _ACEOF
15529 rm -f conftest.$ac_objext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15531   (eval $ac_compile) 2>conftest.er1
15532   ac_status=$?
15533   grep -v '^ *+' conftest.er1 >conftest.err
15534   rm -f conftest.er1
15535   cat conftest.err >&5
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } &&
15538          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540   (eval $ac_try) 2>&5
15541   ac_status=$?
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); }; } &&
15544          { ac_try='test -s conftest.$ac_objext'
15545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546   (eval $ac_try) 2>&5
15547   ac_status=$?
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); }; }; then
15550   ac_lo=0 ac_mid=0
15551   while :; do
15552     cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h.  */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h.  */
15558 $ac_includes_default
15559 int
15560 main ()
15561 {
15562 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15563 test_array [0] = 0
15564
15565   ;
15566   return 0;
15567 }
15568 _ACEOF
15569 rm -f conftest.$ac_objext
15570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15571   (eval $ac_compile) 2>conftest.er1
15572   ac_status=$?
15573   grep -v '^ *+' conftest.er1 >conftest.err
15574   rm -f conftest.er1
15575   cat conftest.err >&5
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); } &&
15578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580   (eval $ac_try) 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; } &&
15584          { ac_try='test -s conftest.$ac_objext'
15585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586   (eval $ac_try) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; }; then
15590   ac_hi=$ac_mid; break
15591 else
15592   echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15594
15595 ac_lo=`expr $ac_mid + 1`
15596                     if test $ac_lo -le $ac_mid; then
15597                       ac_lo= ac_hi=
15598                       break
15599                     fi
15600                     ac_mid=`expr 2 '*' $ac_mid + 1`
15601 fi
15602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15603   done
15604 else
15605   echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15607
15608 cat >conftest.$ac_ext <<_ACEOF
15609 /* confdefs.h.  */
15610 _ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h.  */
15614 $ac_includes_default
15615 int
15616 main ()
15617 {
15618 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15619 test_array [0] = 0
15620
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15627   (eval $ac_compile) 2>conftest.er1
15628   ac_status=$?
15629   grep -v '^ *+' conftest.er1 >conftest.err
15630   rm -f conftest.er1
15631   cat conftest.err >&5
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); } &&
15634          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636   (eval $ac_try) 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; } &&
15640          { ac_try='test -s conftest.$ac_objext'
15641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642   (eval $ac_try) 2>&5
15643   ac_status=$?
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); }; }; then
15646   ac_hi=-1 ac_mid=-1
15647   while :; do
15648     cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h.  */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h.  */
15654 $ac_includes_default
15655 int
15656 main ()
15657 {
15658 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15659 test_array [0] = 0
15660
15661   ;
15662   return 0;
15663 }
15664 _ACEOF
15665 rm -f conftest.$ac_objext
15666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15667   (eval $ac_compile) 2>conftest.er1
15668   ac_status=$?
15669   grep -v '^ *+' conftest.er1 >conftest.err
15670   rm -f conftest.er1
15671   cat conftest.err >&5
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); } &&
15674          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676   (eval $ac_try) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); }; } &&
15680          { ac_try='test -s conftest.$ac_objext'
15681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682   (eval $ac_try) 2>&5
15683   ac_status=$?
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); }; }; then
15686   ac_lo=$ac_mid; break
15687 else
15688   echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15690
15691 ac_hi=`expr '(' $ac_mid ')' - 1`
15692                        if test $ac_mid -le $ac_hi; then
15693                          ac_lo= ac_hi=
15694                          break
15695                        fi
15696                        ac_mid=`expr 2 '*' $ac_mid`
15697 fi
15698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15699   done
15700 else
15701   echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 ac_lo= ac_hi=
15705 fi
15706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15707 fi
15708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15709 # Binary search between lo and hi bounds.
15710 while test "x$ac_lo" != "x$ac_hi"; do
15711   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15712   cat >conftest.$ac_ext <<_ACEOF
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718 $ac_includes_default
15719 int
15720 main ()
15721 {
15722 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15723 test_array [0] = 0
15724
15725   ;
15726   return 0;
15727 }
15728 _ACEOF
15729 rm -f conftest.$ac_objext
15730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731   (eval $ac_compile) 2>conftest.er1
15732   ac_status=$?
15733   grep -v '^ *+' conftest.er1 >conftest.err
15734   rm -f conftest.er1
15735   cat conftest.err >&5
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); } &&
15738          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; } &&
15744          { ac_try='test -s conftest.$ac_objext'
15745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746   (eval $ac_try) 2>&5
15747   ac_status=$?
15748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749   (exit $ac_status); }; }; then
15750   ac_hi=$ac_mid
15751 else
15752   echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 ac_lo=`expr '(' $ac_mid ')' + 1`
15756 fi
15757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15758 done
15759 case $ac_lo in
15760 ?*) ac_cv_sizeof_char=$ac_lo;;
15761 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15762 See \`config.log' for more details." >&5
15763 echo "$as_me: error: cannot compute sizeof (char), 77
15764 See \`config.log' for more details." >&2;}
15765    { (exit 1); exit 1; }; } ;;
15766 esac
15767 else
15768   if test "$cross_compiling" = yes; then
15769   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15770 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15771    { (exit 1); exit 1; }; }
15772 else
15773   cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h.  */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h.  */
15779 $ac_includes_default
15780 long longval () { return (long) (sizeof (char)); }
15781 unsigned long ulongval () { return (long) (sizeof (char)); }
15782 #include <stdio.h>
15783 #include <stdlib.h>
15784 int
15785 main ()
15786 {
15787
15788   FILE *f = fopen ("conftest.val", "w");
15789   if (! f)
15790     exit (1);
15791   if (((long) (sizeof (char))) < 0)
15792     {
15793       long i = longval ();
15794       if (i != ((long) (sizeof (char))))
15795         exit (1);
15796       fprintf (f, "%ld\n", i);
15797     }
15798   else
15799     {
15800       unsigned long i = ulongval ();
15801       if (i != ((long) (sizeof (char))))
15802         exit (1);
15803       fprintf (f, "%lu\n", i);
15804     }
15805   exit (ferror (f) || fclose (f) != 0);
15806
15807   ;
15808   return 0;
15809 }
15810 _ACEOF
15811 rm -f conftest$ac_exeext
15812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15813   (eval $ac_link) 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818   (eval $ac_try) 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); }; }; then
15822   ac_cv_sizeof_char=`cat conftest.val`
15823 else
15824   echo "$as_me: program exited with status $ac_status" >&5
15825 echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15827
15828 ( exit $ac_status )
15829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15830 See \`config.log' for more details." >&5
15831 echo "$as_me: error: cannot compute sizeof (char), 77
15832 See \`config.log' for more details." >&2;}
15833    { (exit 1); exit 1; }; }
15834 fi
15835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15836 fi
15837 fi
15838 rm -f conftest.val
15839 else
15840   ac_cv_sizeof_char=0
15841 fi
15842 fi
15843 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15844 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15845 cat >>confdefs.h <<_ACEOF
15846 #define SIZEOF_CHAR $ac_cv_sizeof_char
15847 _ACEOF
15848
15849
15850 echo "$as_me:$LINENO: checking for short" >&5
15851 echo $ECHO_N "checking for short... $ECHO_C" >&6
15852 if test "${ac_cv_type_short+set}" = set; then
15853   echo $ECHO_N "(cached) $ECHO_C" >&6
15854 else
15855   cat >conftest.$ac_ext <<_ACEOF
15856 /* confdefs.h.  */
15857 _ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h.  */
15861 $ac_includes_default
15862 int
15863 main ()
15864 {
15865 if ((short *) 0)
15866   return 0;
15867 if (sizeof (short))
15868   return 0;
15869   ;
15870   return 0;
15871 }
15872 _ACEOF
15873 rm -f conftest.$ac_objext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15875   (eval $ac_compile) 2>conftest.er1
15876   ac_status=$?
15877   grep -v '^ *+' conftest.er1 >conftest.err
15878   rm -f conftest.er1
15879   cat conftest.err >&5
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); } &&
15882          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884   (eval $ac_try) 2>&5
15885   ac_status=$?
15886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); }; } &&
15888          { ac_try='test -s conftest.$ac_objext'
15889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890   (eval $ac_try) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); }; }; then
15894   ac_cv_type_short=yes
15895 else
15896   echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15898
15899 ac_cv_type_short=no
15900 fi
15901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15902 fi
15903 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15904 echo "${ECHO_T}$ac_cv_type_short" >&6
15905
15906 echo "$as_me:$LINENO: checking size of short" >&5
15907 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15908 if test "${ac_cv_sizeof_short+set}" = set; then
15909   echo $ECHO_N "(cached) $ECHO_C" >&6
15910 else
15911   if test "$ac_cv_type_short" = yes; then
15912   # The cast to unsigned long works around a bug in the HP C Compiler
15913   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15914   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15915   # This bug is HP SR number 8606223364.
15916   if test "$cross_compiling" = yes; then
15917   # Depending upon the size, compute the lo and hi bounds.
15918 cat >conftest.$ac_ext <<_ACEOF
15919 /* confdefs.h.  */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h.  */
15924 $ac_includes_default
15925 int
15926 main ()
15927 {
15928 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15929 test_array [0] = 0
15930
15931   ;
15932   return 0;
15933 }
15934 _ACEOF
15935 rm -f conftest.$ac_objext
15936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15937   (eval $ac_compile) 2>conftest.er1
15938   ac_status=$?
15939   grep -v '^ *+' conftest.er1 >conftest.err
15940   rm -f conftest.er1
15941   cat conftest.err >&5
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } &&
15944          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946   (eval $ac_try) 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); }; } &&
15950          { ac_try='test -s conftest.$ac_objext'
15951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952   (eval $ac_try) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; }; then
15956   ac_lo=0 ac_mid=0
15957   while :; do
15958     cat >conftest.$ac_ext <<_ACEOF
15959 /* confdefs.h.  */
15960 _ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h.  */
15964 $ac_includes_default
15965 int
15966 main ()
15967 {
15968 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15969 test_array [0] = 0
15970
15971   ;
15972   return 0;
15973 }
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977   (eval $ac_compile) 2>conftest.er1
15978   ac_status=$?
15979   grep -v '^ *+' conftest.er1 >conftest.err
15980   rm -f conftest.er1
15981   cat conftest.err >&5
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); } &&
15984          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986   (eval $ac_try) 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); }; } &&
15990          { ac_try='test -s conftest.$ac_objext'
15991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992   (eval $ac_try) 2>&5
15993   ac_status=$?
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); }; }; then
15996   ac_hi=$ac_mid; break
15997 else
15998   echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001 ac_lo=`expr $ac_mid + 1`
16002                     if test $ac_lo -le $ac_mid; then
16003                       ac_lo= ac_hi=
16004                       break
16005                     fi
16006                     ac_mid=`expr 2 '*' $ac_mid + 1`
16007 fi
16008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16009   done
16010 else
16011   echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014 cat >conftest.$ac_ext <<_ACEOF
16015 /* confdefs.h.  */
16016 _ACEOF
16017 cat confdefs.h >>conftest.$ac_ext
16018 cat >>conftest.$ac_ext <<_ACEOF
16019 /* end confdefs.h.  */
16020 $ac_includes_default
16021 int
16022 main ()
16023 {
16024 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16025 test_array [0] = 0
16026
16027   ;
16028   return 0;
16029 }
16030 _ACEOF
16031 rm -f conftest.$ac_objext
16032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16033   (eval $ac_compile) 2>conftest.er1
16034   ac_status=$?
16035   grep -v '^ *+' conftest.er1 >conftest.err
16036   rm -f conftest.er1
16037   cat conftest.err >&5
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); } &&
16040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042   (eval $ac_try) 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); }; } &&
16046          { ac_try='test -s conftest.$ac_objext'
16047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048   (eval $ac_try) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; }; then
16052   ac_hi=-1 ac_mid=-1
16053   while :; do
16054     cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060 $ac_includes_default
16061 int
16062 main ()
16063 {
16064 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16065 test_array [0] = 0
16066
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16073   (eval $ac_compile) 2>conftest.er1
16074   ac_status=$?
16075   grep -v '^ *+' conftest.er1 >conftest.err
16076   rm -f conftest.er1
16077   cat conftest.err >&5
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); } &&
16080          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082   (eval $ac_try) 2>&5
16083   ac_status=$?
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); }; } &&
16086          { ac_try='test -s conftest.$ac_objext'
16087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088   (eval $ac_try) 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; }; then
16092   ac_lo=$ac_mid; break
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097 ac_hi=`expr '(' $ac_mid ')' - 1`
16098                        if test $ac_mid -le $ac_hi; then
16099                          ac_lo= ac_hi=
16100                          break
16101                        fi
16102                        ac_mid=`expr 2 '*' $ac_mid`
16103 fi
16104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16105   done
16106 else
16107   echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16109
16110 ac_lo= ac_hi=
16111 fi
16112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16113 fi
16114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16115 # Binary search between lo and hi bounds.
16116 while test "x$ac_lo" != "x$ac_hi"; do
16117   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16118   cat >conftest.$ac_ext <<_ACEOF
16119 /* confdefs.h.  */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h.  */
16124 $ac_includes_default
16125 int
16126 main ()
16127 {
16128 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16129 test_array [0] = 0
16130
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest.$ac_objext
16136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16137   (eval $ac_compile) 2>conftest.er1
16138   ac_status=$?
16139   grep -v '^ *+' conftest.er1 >conftest.err
16140   rm -f conftest.er1
16141   cat conftest.err >&5
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); } &&
16144          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146   (eval $ac_try) 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); }; } &&
16150          { ac_try='test -s conftest.$ac_objext'
16151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152   (eval $ac_try) 2>&5
16153   ac_status=$?
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); }; }; then
16156   ac_hi=$ac_mid
16157 else
16158   echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16160
16161 ac_lo=`expr '(' $ac_mid ')' + 1`
16162 fi
16163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16164 done
16165 case $ac_lo in
16166 ?*) ac_cv_sizeof_short=$ac_lo;;
16167 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16168 See \`config.log' for more details." >&5
16169 echo "$as_me: error: cannot compute sizeof (short), 77
16170 See \`config.log' for more details." >&2;}
16171    { (exit 1); exit 1; }; } ;;
16172 esac
16173 else
16174   if test "$cross_compiling" = yes; then
16175   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16176 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16177    { (exit 1); exit 1; }; }
16178 else
16179   cat >conftest.$ac_ext <<_ACEOF
16180 /* confdefs.h.  */
16181 _ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h.  */
16185 $ac_includes_default
16186 long longval () { return (long) (sizeof (short)); }
16187 unsigned long ulongval () { return (long) (sizeof (short)); }
16188 #include <stdio.h>
16189 #include <stdlib.h>
16190 int
16191 main ()
16192 {
16193
16194   FILE *f = fopen ("conftest.val", "w");
16195   if (! f)
16196     exit (1);
16197   if (((long) (sizeof (short))) < 0)
16198     {
16199       long i = longval ();
16200       if (i != ((long) (sizeof (short))))
16201         exit (1);
16202       fprintf (f, "%ld\n", i);
16203     }
16204   else
16205     {
16206       unsigned long i = ulongval ();
16207       if (i != ((long) (sizeof (short))))
16208         exit (1);
16209       fprintf (f, "%lu\n", i);
16210     }
16211   exit (ferror (f) || fclose (f) != 0);
16212
16213   ;
16214   return 0;
16215 }
16216 _ACEOF
16217 rm -f conftest$ac_exeext
16218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16219   (eval $ac_link) 2>&5
16220   ac_status=$?
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224   (eval $ac_try) 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; }; then
16228   ac_cv_sizeof_short=`cat conftest.val`
16229 else
16230   echo "$as_me: program exited with status $ac_status" >&5
16231 echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16233
16234 ( exit $ac_status )
16235 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16236 See \`config.log' for more details." >&5
16237 echo "$as_me: error: cannot compute sizeof (short), 77
16238 See \`config.log' for more details." >&2;}
16239    { (exit 1); exit 1; }; }
16240 fi
16241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16242 fi
16243 fi
16244 rm -f conftest.val
16245 else
16246   ac_cv_sizeof_short=0
16247 fi
16248 fi
16249 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16250 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16251 cat >>confdefs.h <<_ACEOF
16252 #define SIZEOF_SHORT $ac_cv_sizeof_short
16253 _ACEOF
16254
16255
16256 echo "$as_me:$LINENO: checking for void *" >&5
16257 echo $ECHO_N "checking for void *... $ECHO_C" >&6
16258 if test "${ac_cv_type_void_p+set}" = set; then
16259   echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261   cat >conftest.$ac_ext <<_ACEOF
16262 /* confdefs.h.  */
16263 _ACEOF
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h.  */
16267 $ac_includes_default
16268 int
16269 main ()
16270 {
16271 if ((void * *) 0)
16272   return 0;
16273 if (sizeof (void *))
16274   return 0;
16275   ;
16276   return 0;
16277 }
16278 _ACEOF
16279 rm -f conftest.$ac_objext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16281   (eval $ac_compile) 2>conftest.er1
16282   ac_status=$?
16283   grep -v '^ *+' conftest.er1 >conftest.err
16284   rm -f conftest.er1
16285   cat conftest.err >&5
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); } &&
16288          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290   (eval $ac_try) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; } &&
16294          { ac_try='test -s conftest.$ac_objext'
16295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296   (eval $ac_try) 2>&5
16297   ac_status=$?
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); }; }; then
16300   ac_cv_type_void_p=yes
16301 else
16302   echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 ac_cv_type_void_p=no
16306 fi
16307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16308 fi
16309 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16310 echo "${ECHO_T}$ac_cv_type_void_p" >&6
16311
16312 echo "$as_me:$LINENO: checking size of void *" >&5
16313 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16314 if test "${ac_cv_sizeof_void_p+set}" = set; then
16315   echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317   if test "$ac_cv_type_void_p" = yes; then
16318   # The cast to unsigned long works around a bug in the HP C Compiler
16319   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16320   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16321   # This bug is HP SR number 8606223364.
16322   if test "$cross_compiling" = yes; then
16323   # Depending upon the size, compute the lo and hi bounds.
16324 cat >conftest.$ac_ext <<_ACEOF
16325 /* confdefs.h.  */
16326 _ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h.  */
16330 $ac_includes_default
16331 int
16332 main ()
16333 {
16334 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16335 test_array [0] = 0
16336
16337   ;
16338   return 0;
16339 }
16340 _ACEOF
16341 rm -f conftest.$ac_objext
16342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16343   (eval $ac_compile) 2>conftest.er1
16344   ac_status=$?
16345   grep -v '^ *+' conftest.er1 >conftest.err
16346   rm -f conftest.er1
16347   cat conftest.err >&5
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); } &&
16350          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352   (eval $ac_try) 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); }; } &&
16356          { ac_try='test -s conftest.$ac_objext'
16357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358   (eval $ac_try) 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); }; }; then
16362   ac_lo=0 ac_mid=0
16363   while :; do
16364     cat >conftest.$ac_ext <<_ACEOF
16365 /* confdefs.h.  */
16366 _ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h.  */
16370 $ac_includes_default
16371 int
16372 main ()
16373 {
16374 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16375 test_array [0] = 0
16376
16377   ;
16378   return 0;
16379 }
16380 _ACEOF
16381 rm -f conftest.$ac_objext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383   (eval $ac_compile) 2>conftest.er1
16384   ac_status=$?
16385   grep -v '^ *+' conftest.er1 >conftest.err
16386   rm -f conftest.er1
16387   cat conftest.err >&5
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); } &&
16390          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392   (eval $ac_try) 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); }; } &&
16396          { ac_try='test -s conftest.$ac_objext'
16397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398   (eval $ac_try) 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; }; then
16402   ac_hi=$ac_mid; break
16403 else
16404   echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407 ac_lo=`expr $ac_mid + 1`
16408                     if test $ac_lo -le $ac_mid; then
16409                       ac_lo= ac_hi=
16410                       break
16411                     fi
16412                     ac_mid=`expr 2 '*' $ac_mid + 1`
16413 fi
16414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16415   done
16416 else
16417   echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16419
16420 cat >conftest.$ac_ext <<_ACEOF
16421 /* confdefs.h.  */
16422 _ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h.  */
16426 $ac_includes_default
16427 int
16428 main ()
16429 {
16430 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16431 test_array [0] = 0
16432
16433   ;
16434   return 0;
16435 }
16436 _ACEOF
16437 rm -f conftest.$ac_objext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16439   (eval $ac_compile) 2>conftest.er1
16440   ac_status=$?
16441   grep -v '^ *+' conftest.er1 >conftest.err
16442   rm -f conftest.er1
16443   cat conftest.err >&5
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); } &&
16446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448   (eval $ac_try) 2>&5
16449   ac_status=$?
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); }; } &&
16452          { ac_try='test -s conftest.$ac_objext'
16453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454   (eval $ac_try) 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; }; then
16458   ac_hi=-1 ac_mid=-1
16459   while :; do
16460     cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h.  */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h.  */
16466 $ac_includes_default
16467 int
16468 main ()
16469 {
16470 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16471 test_array [0] = 0
16472
16473   ;
16474   return 0;
16475 }
16476 _ACEOF
16477 rm -f conftest.$ac_objext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16479   (eval $ac_compile) 2>conftest.er1
16480   ac_status=$?
16481   grep -v '^ *+' conftest.er1 >conftest.err
16482   rm -f conftest.er1
16483   cat conftest.err >&5
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); } &&
16486          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488   (eval $ac_try) 2>&5
16489   ac_status=$?
16490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491   (exit $ac_status); }; } &&
16492          { ac_try='test -s conftest.$ac_objext'
16493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494   (eval $ac_try) 2>&5
16495   ac_status=$?
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); }; }; then
16498   ac_lo=$ac_mid; break
16499 else
16500   echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16502
16503 ac_hi=`expr '(' $ac_mid ')' - 1`
16504                        if test $ac_mid -le $ac_hi; then
16505                          ac_lo= ac_hi=
16506                          break
16507                        fi
16508                        ac_mid=`expr 2 '*' $ac_mid`
16509 fi
16510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16511   done
16512 else
16513   echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16515
16516 ac_lo= ac_hi=
16517 fi
16518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16519 fi
16520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16521 # Binary search between lo and hi bounds.
16522 while test "x$ac_lo" != "x$ac_hi"; do
16523   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16524   cat >conftest.$ac_ext <<_ACEOF
16525 /* confdefs.h.  */
16526 _ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h.  */
16530 $ac_includes_default
16531 int
16532 main ()
16533 {
16534 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16535 test_array [0] = 0
16536
16537   ;
16538   return 0;
16539 }
16540 _ACEOF
16541 rm -f conftest.$ac_objext
16542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16543   (eval $ac_compile) 2>conftest.er1
16544   ac_status=$?
16545   grep -v '^ *+' conftest.er1 >conftest.err
16546   rm -f conftest.er1
16547   cat conftest.err >&5
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); } &&
16550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552   (eval $ac_try) 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); }; } &&
16556          { ac_try='test -s conftest.$ac_objext'
16557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558   (eval $ac_try) 2>&5
16559   ac_status=$?
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); }; }; then
16562   ac_hi=$ac_mid
16563 else
16564   echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16566
16567 ac_lo=`expr '(' $ac_mid ')' + 1`
16568 fi
16569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16570 done
16571 case $ac_lo in
16572 ?*) ac_cv_sizeof_void_p=$ac_lo;;
16573 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16574 See \`config.log' for more details." >&5
16575 echo "$as_me: error: cannot compute sizeof (void *), 77
16576 See \`config.log' for more details." >&2;}
16577    { (exit 1); exit 1; }; } ;;
16578 esac
16579 else
16580   if test "$cross_compiling" = yes; then
16581   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16582 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16583    { (exit 1); exit 1; }; }
16584 else
16585   cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h.  */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h.  */
16591 $ac_includes_default
16592 long longval () { return (long) (sizeof (void *)); }
16593 unsigned long ulongval () { return (long) (sizeof (void *)); }
16594 #include <stdio.h>
16595 #include <stdlib.h>
16596 int
16597 main ()
16598 {
16599
16600   FILE *f = fopen ("conftest.val", "w");
16601   if (! f)
16602     exit (1);
16603   if (((long) (sizeof (void *))) < 0)
16604     {
16605       long i = longval ();
16606       if (i != ((long) (sizeof (void *))))
16607         exit (1);
16608       fprintf (f, "%ld\n", i);
16609     }
16610   else
16611     {
16612       unsigned long i = ulongval ();
16613       if (i != ((long) (sizeof (void *))))
16614         exit (1);
16615       fprintf (f, "%lu\n", i);
16616     }
16617   exit (ferror (f) || fclose (f) != 0);
16618
16619   ;
16620   return 0;
16621 }
16622 _ACEOF
16623 rm -f conftest$ac_exeext
16624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16625   (eval $ac_link) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630   (eval $ac_try) 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }; }; then
16634   ac_cv_sizeof_void_p=`cat conftest.val`
16635 else
16636   echo "$as_me: program exited with status $ac_status" >&5
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16639
16640 ( exit $ac_status )
16641 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16642 See \`config.log' for more details." >&5
16643 echo "$as_me: error: cannot compute sizeof (void *), 77
16644 See \`config.log' for more details." >&2;}
16645    { (exit 1); exit 1; }; }
16646 fi
16647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16648 fi
16649 fi
16650 rm -f conftest.val
16651 else
16652   ac_cv_sizeof_void_p=0
16653 fi
16654 fi
16655 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16656 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16657 cat >>confdefs.h <<_ACEOF
16658 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16659 _ACEOF
16660
16661
16662 echo "$as_me:$LINENO: checking for int" >&5
16663 echo $ECHO_N "checking for int... $ECHO_C" >&6
16664 if test "${ac_cv_type_int+set}" = set; then
16665   echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667   cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h.  */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h.  */
16673 $ac_includes_default
16674 int
16675 main ()
16676 {
16677 if ((int *) 0)
16678   return 0;
16679 if (sizeof (int))
16680   return 0;
16681   ;
16682   return 0;
16683 }
16684 _ACEOF
16685 rm -f conftest.$ac_objext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16687   (eval $ac_compile) 2>conftest.er1
16688   ac_status=$?
16689   grep -v '^ *+' conftest.er1 >conftest.err
16690   rm -f conftest.er1
16691   cat conftest.err >&5
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); } &&
16694          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696   (eval $ac_try) 2>&5
16697   ac_status=$?
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); }; } &&
16700          { ac_try='test -s conftest.$ac_objext'
16701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702   (eval $ac_try) 2>&5
16703   ac_status=$?
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); }; }; then
16706   ac_cv_type_int=yes
16707 else
16708   echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16710
16711 ac_cv_type_int=no
16712 fi
16713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16714 fi
16715 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16716 echo "${ECHO_T}$ac_cv_type_int" >&6
16717
16718 echo "$as_me:$LINENO: checking size of int" >&5
16719 echo $ECHO_N "checking size of int... $ECHO_C" >&6
16720 if test "${ac_cv_sizeof_int+set}" = set; then
16721   echo $ECHO_N "(cached) $ECHO_C" >&6
16722 else
16723   if test "$ac_cv_type_int" = yes; then
16724   # The cast to unsigned long works around a bug in the HP C Compiler
16725   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16726   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16727   # This bug is HP SR number 8606223364.
16728   if test "$cross_compiling" = yes; then
16729   # Depending upon the size, compute the lo and hi bounds.
16730 cat >conftest.$ac_ext <<_ACEOF
16731 /* confdefs.h.  */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h.  */
16736 $ac_includes_default
16737 int
16738 main ()
16739 {
16740 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16741 test_array [0] = 0
16742
16743   ;
16744   return 0;
16745 }
16746 _ACEOF
16747 rm -f conftest.$ac_objext
16748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16749   (eval $ac_compile) 2>conftest.er1
16750   ac_status=$?
16751   grep -v '^ *+' conftest.er1 >conftest.err
16752   rm -f conftest.er1
16753   cat conftest.err >&5
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } &&
16756          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758   (eval $ac_try) 2>&5
16759   ac_status=$?
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); }; } &&
16762          { ac_try='test -s conftest.$ac_objext'
16763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764   (eval $ac_try) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; }; then
16768   ac_lo=0 ac_mid=0
16769   while :; do
16770     cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776 $ac_includes_default
16777 int
16778 main ()
16779 {
16780 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16781 test_array [0] = 0
16782
16783   ;
16784   return 0;
16785 }
16786 _ACEOF
16787 rm -f conftest.$ac_objext
16788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16789   (eval $ac_compile) 2>conftest.er1
16790   ac_status=$?
16791   grep -v '^ *+' conftest.er1 >conftest.err
16792   rm -f conftest.er1
16793   cat conftest.err >&5
16794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795   (exit $ac_status); } &&
16796          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798   (eval $ac_try) 2>&5
16799   ac_status=$?
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); }; } &&
16802          { ac_try='test -s conftest.$ac_objext'
16803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804   (eval $ac_try) 2>&5
16805   ac_status=$?
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); }; }; then
16808   ac_hi=$ac_mid; break
16809 else
16810   echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16812
16813 ac_lo=`expr $ac_mid + 1`
16814                     if test $ac_lo -le $ac_mid; then
16815                       ac_lo= ac_hi=
16816                       break
16817                     fi
16818                     ac_mid=`expr 2 '*' $ac_mid + 1`
16819 fi
16820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16821   done
16822 else
16823   echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16825
16826 cat >conftest.$ac_ext <<_ACEOF
16827 /* confdefs.h.  */
16828 _ACEOF
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h.  */
16832 $ac_includes_default
16833 int
16834 main ()
16835 {
16836 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16837 test_array [0] = 0
16838
16839   ;
16840   return 0;
16841 }
16842 _ACEOF
16843 rm -f conftest.$ac_objext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16845   (eval $ac_compile) 2>conftest.er1
16846   ac_status=$?
16847   grep -v '^ *+' conftest.er1 >conftest.err
16848   rm -f conftest.er1
16849   cat conftest.err >&5
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); } &&
16852          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854   (eval $ac_try) 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }; } &&
16858          { ac_try='test -s conftest.$ac_objext'
16859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860   (eval $ac_try) 2>&5
16861   ac_status=$?
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); }; }; then
16864   ac_hi=-1 ac_mid=-1
16865   while :; do
16866     cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h.  */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h.  */
16872 $ac_includes_default
16873 int
16874 main ()
16875 {
16876 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16877 test_array [0] = 0
16878
16879   ;
16880   return 0;
16881 }
16882 _ACEOF
16883 rm -f conftest.$ac_objext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16885   (eval $ac_compile) 2>conftest.er1
16886   ac_status=$?
16887   grep -v '^ *+' conftest.er1 >conftest.err
16888   rm -f conftest.er1
16889   cat conftest.err >&5
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); } &&
16892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894   (eval $ac_try) 2>&5
16895   ac_status=$?
16896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897   (exit $ac_status); }; } &&
16898          { ac_try='test -s conftest.$ac_objext'
16899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900   (eval $ac_try) 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); }; }; then
16904   ac_lo=$ac_mid; break
16905 else
16906   echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16908
16909 ac_hi=`expr '(' $ac_mid ')' - 1`
16910                        if test $ac_mid -le $ac_hi; then
16911                          ac_lo= ac_hi=
16912                          break
16913                        fi
16914                        ac_mid=`expr 2 '*' $ac_mid`
16915 fi
16916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16917   done
16918 else
16919   echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16921
16922 ac_lo= ac_hi=
16923 fi
16924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16925 fi
16926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16927 # Binary search between lo and hi bounds.
16928 while test "x$ac_lo" != "x$ac_hi"; do
16929   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16930   cat >conftest.$ac_ext <<_ACEOF
16931 /* confdefs.h.  */
16932 _ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h.  */
16936 $ac_includes_default
16937 int
16938 main ()
16939 {
16940 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16941 test_array [0] = 0
16942
16943   ;
16944   return 0;
16945 }
16946 _ACEOF
16947 rm -f conftest.$ac_objext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16949   (eval $ac_compile) 2>conftest.er1
16950   ac_status=$?
16951   grep -v '^ *+' conftest.er1 >conftest.err
16952   rm -f conftest.er1
16953   cat conftest.err >&5
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); } &&
16956          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958   (eval $ac_try) 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); }; } &&
16962          { ac_try='test -s conftest.$ac_objext'
16963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964   (eval $ac_try) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }; }; then
16968   ac_hi=$ac_mid
16969 else
16970   echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 ac_lo=`expr '(' $ac_mid ')' + 1`
16974 fi
16975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16976 done
16977 case $ac_lo in
16978 ?*) ac_cv_sizeof_int=$ac_lo;;
16979 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16980 See \`config.log' for more details." >&5
16981 echo "$as_me: error: cannot compute sizeof (int), 77
16982 See \`config.log' for more details." >&2;}
16983    { (exit 1); exit 1; }; } ;;
16984 esac
16985 else
16986   if test "$cross_compiling" = yes; then
16987   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16988 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16989    { (exit 1); exit 1; }; }
16990 else
16991   cat >conftest.$ac_ext <<_ACEOF
16992 /* confdefs.h.  */
16993 _ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h.  */
16997 $ac_includes_default
16998 long longval () { return (long) (sizeof (int)); }
16999 unsigned long ulongval () { return (long) (sizeof (int)); }
17000 #include <stdio.h>
17001 #include <stdlib.h>
17002 int
17003 main ()
17004 {
17005
17006   FILE *f = fopen ("conftest.val", "w");
17007   if (! f)
17008     exit (1);
17009   if (((long) (sizeof (int))) < 0)
17010     {
17011       long i = longval ();
17012       if (i != ((long) (sizeof (int))))
17013         exit (1);
17014       fprintf (f, "%ld\n", i);
17015     }
17016   else
17017     {
17018       unsigned long i = ulongval ();
17019       if (i != ((long) (sizeof (int))))
17020         exit (1);
17021       fprintf (f, "%lu\n", i);
17022     }
17023   exit (ferror (f) || fclose (f) != 0);
17024
17025   ;
17026   return 0;
17027 }
17028 _ACEOF
17029 rm -f conftest$ac_exeext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031   (eval $ac_link) 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036   (eval $ac_try) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040   ac_cv_sizeof_int=`cat conftest.val`
17041 else
17042   echo "$as_me: program exited with status $ac_status" >&5
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17045
17046 ( exit $ac_status )
17047 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17048 See \`config.log' for more details." >&5
17049 echo "$as_me: error: cannot compute sizeof (int), 77
17050 See \`config.log' for more details." >&2;}
17051    { (exit 1); exit 1; }; }
17052 fi
17053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17054 fi
17055 fi
17056 rm -f conftest.val
17057 else
17058   ac_cv_sizeof_int=0
17059 fi
17060 fi
17061 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17062 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17063 cat >>confdefs.h <<_ACEOF
17064 #define SIZEOF_INT $ac_cv_sizeof_int
17065 _ACEOF
17066
17067
17068 echo "$as_me:$LINENO: checking for long" >&5
17069 echo $ECHO_N "checking for long... $ECHO_C" >&6
17070 if test "${ac_cv_type_long+set}" = set; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073   cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h.  */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h.  */
17079 $ac_includes_default
17080 int
17081 main ()
17082 {
17083 if ((long *) 0)
17084   return 0;
17085 if (sizeof (long))
17086   return 0;
17087   ;
17088   return 0;
17089 }
17090 _ACEOF
17091 rm -f conftest.$ac_objext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17093   (eval $ac_compile) 2>conftest.er1
17094   ac_status=$?
17095   grep -v '^ *+' conftest.er1 >conftest.err
17096   rm -f conftest.er1
17097   cat conftest.err >&5
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); } &&
17100          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102   (eval $ac_try) 2>&5
17103   ac_status=$?
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); }; } &&
17106          { ac_try='test -s conftest.$ac_objext'
17107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108   (eval $ac_try) 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); }; }; then
17112   ac_cv_type_long=yes
17113 else
17114   echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117 ac_cv_type_long=no
17118 fi
17119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17120 fi
17121 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17122 echo "${ECHO_T}$ac_cv_type_long" >&6
17123
17124 echo "$as_me:$LINENO: checking size of long" >&5
17125 echo $ECHO_N "checking size of long... $ECHO_C" >&6
17126 if test "${ac_cv_sizeof_long+set}" = set; then
17127   echo $ECHO_N "(cached) $ECHO_C" >&6
17128 else
17129   if test "$ac_cv_type_long" = yes; then
17130   # The cast to unsigned long works around a bug in the HP C Compiler
17131   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17132   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17133   # This bug is HP SR number 8606223364.
17134   if test "$cross_compiling" = yes; then
17135   # Depending upon the size, compute the lo and hi bounds.
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h.  */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h.  */
17142 $ac_includes_default
17143 int
17144 main ()
17145 {
17146 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17147 test_array [0] = 0
17148
17149   ;
17150   return 0;
17151 }
17152 _ACEOF
17153 rm -f conftest.$ac_objext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17155   (eval $ac_compile) 2>conftest.er1
17156   ac_status=$?
17157   grep -v '^ *+' conftest.er1 >conftest.err
17158   rm -f conftest.er1
17159   cat conftest.err >&5
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); } &&
17162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164   (eval $ac_try) 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); }; } &&
17168          { ac_try='test -s conftest.$ac_objext'
17169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170   (eval $ac_try) 2>&5
17171   ac_status=$?
17172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); }; }; then
17174   ac_lo=0 ac_mid=0
17175   while :; do
17176     cat >conftest.$ac_ext <<_ACEOF
17177 /* confdefs.h.  */
17178 _ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h.  */
17182 $ac_includes_default
17183 int
17184 main ()
17185 {
17186 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17187 test_array [0] = 0
17188
17189   ;
17190   return 0;
17191 }
17192 _ACEOF
17193 rm -f conftest.$ac_objext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17195   (eval $ac_compile) 2>conftest.er1
17196   ac_status=$?
17197   grep -v '^ *+' conftest.er1 >conftest.err
17198   rm -f conftest.er1
17199   cat conftest.err >&5
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); } &&
17202          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204   (eval $ac_try) 2>&5
17205   ac_status=$?
17206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207   (exit $ac_status); }; } &&
17208          { ac_try='test -s conftest.$ac_objext'
17209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210   (eval $ac_try) 2>&5
17211   ac_status=$?
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); }; }; then
17214   ac_hi=$ac_mid; break
17215 else
17216   echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17218
17219 ac_lo=`expr $ac_mid + 1`
17220                     if test $ac_lo -le $ac_mid; then
17221                       ac_lo= ac_hi=
17222                       break
17223                     fi
17224                     ac_mid=`expr 2 '*' $ac_mid + 1`
17225 fi
17226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17227   done
17228 else
17229   echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17231
17232 cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h.  */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h.  */
17238 $ac_includes_default
17239 int
17240 main ()
17241 {
17242 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17243 test_array [0] = 0
17244
17245   ;
17246   return 0;
17247 }
17248 _ACEOF
17249 rm -f conftest.$ac_objext
17250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17251   (eval $ac_compile) 2>conftest.er1
17252   ac_status=$?
17253   grep -v '^ *+' conftest.er1 >conftest.err
17254   rm -f conftest.er1
17255   cat conftest.err >&5
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); } &&
17258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260   (eval $ac_try) 2>&5
17261   ac_status=$?
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); }; } &&
17264          { ac_try='test -s conftest.$ac_objext'
17265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266   (eval $ac_try) 2>&5
17267   ac_status=$?
17268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269   (exit $ac_status); }; }; then
17270   ac_hi=-1 ac_mid=-1
17271   while :; do
17272     cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h.  */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h.  */
17278 $ac_includes_default
17279 int
17280 main ()
17281 {
17282 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17283 test_array [0] = 0
17284
17285   ;
17286   return 0;
17287 }
17288 _ACEOF
17289 rm -f conftest.$ac_objext
17290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17291   (eval $ac_compile) 2>conftest.er1
17292   ac_status=$?
17293   grep -v '^ *+' conftest.er1 >conftest.err
17294   rm -f conftest.er1
17295   cat conftest.err >&5
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); } &&
17298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300   (eval $ac_try) 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; } &&
17304          { ac_try='test -s conftest.$ac_objext'
17305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306   (eval $ac_try) 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; }; then
17310   ac_lo=$ac_mid; break
17311 else
17312   echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315 ac_hi=`expr '(' $ac_mid ')' - 1`
17316                        if test $ac_mid -le $ac_hi; then
17317                          ac_lo= ac_hi=
17318                          break
17319                        fi
17320                        ac_mid=`expr 2 '*' $ac_mid`
17321 fi
17322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17323   done
17324 else
17325   echo "$as_me: failed program was:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17327
17328 ac_lo= ac_hi=
17329 fi
17330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17331 fi
17332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17333 # Binary search between lo and hi bounds.
17334 while test "x$ac_lo" != "x$ac_hi"; do
17335   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17336   cat >conftest.$ac_ext <<_ACEOF
17337 /* confdefs.h.  */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h.  */
17342 $ac_includes_default
17343 int
17344 main ()
17345 {
17346 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17347 test_array [0] = 0
17348
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 rm -f conftest.$ac_objext
17354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17355   (eval $ac_compile) 2>conftest.er1
17356   ac_status=$?
17357   grep -v '^ *+' conftest.er1 >conftest.err
17358   rm -f conftest.er1
17359   cat conftest.err >&5
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); } &&
17362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364   (eval $ac_try) 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; } &&
17368          { ac_try='test -s conftest.$ac_objext'
17369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370   (eval $ac_try) 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; }; then
17374   ac_hi=$ac_mid
17375 else
17376   echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379 ac_lo=`expr '(' $ac_mid ')' + 1`
17380 fi
17381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17382 done
17383 case $ac_lo in
17384 ?*) ac_cv_sizeof_long=$ac_lo;;
17385 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17386 See \`config.log' for more details." >&5
17387 echo "$as_me: error: cannot compute sizeof (long), 77
17388 See \`config.log' for more details." >&2;}
17389    { (exit 1); exit 1; }; } ;;
17390 esac
17391 else
17392   if test "$cross_compiling" = yes; then
17393   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17394 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17395    { (exit 1); exit 1; }; }
17396 else
17397   cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403 $ac_includes_default
17404 long longval () { return (long) (sizeof (long)); }
17405 unsigned long ulongval () { return (long) (sizeof (long)); }
17406 #include <stdio.h>
17407 #include <stdlib.h>
17408 int
17409 main ()
17410 {
17411
17412   FILE *f = fopen ("conftest.val", "w");
17413   if (! f)
17414     exit (1);
17415   if (((long) (sizeof (long))) < 0)
17416     {
17417       long i = longval ();
17418       if (i != ((long) (sizeof (long))))
17419         exit (1);
17420       fprintf (f, "%ld\n", i);
17421     }
17422   else
17423     {
17424       unsigned long i = ulongval ();
17425       if (i != ((long) (sizeof (long))))
17426         exit (1);
17427       fprintf (f, "%lu\n", i);
17428     }
17429   exit (ferror (f) || fclose (f) != 0);
17430
17431   ;
17432   return 0;
17433 }
17434 _ACEOF
17435 rm -f conftest$ac_exeext
17436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17437   (eval $ac_link) 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442   (eval $ac_try) 2>&5
17443   ac_status=$?
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); }; }; then
17446   ac_cv_sizeof_long=`cat conftest.val`
17447 else
17448   echo "$as_me: program exited with status $ac_status" >&5
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17451
17452 ( exit $ac_status )
17453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17454 See \`config.log' for more details." >&5
17455 echo "$as_me: error: cannot compute sizeof (long), 77
17456 See \`config.log' for more details." >&2;}
17457    { (exit 1); exit 1; }; }
17458 fi
17459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17460 fi
17461 fi
17462 rm -f conftest.val
17463 else
17464   ac_cv_sizeof_long=0
17465 fi
17466 fi
17467 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17468 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17469 cat >>confdefs.h <<_ACEOF
17470 #define SIZEOF_LONG $ac_cv_sizeof_long
17471 _ACEOF
17472
17473
17474 echo "$as_me:$LINENO: checking for size_t" >&5
17475 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17476 if test "${ac_cv_type_size_t+set}" = set; then
17477   echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479   cat >conftest.$ac_ext <<_ACEOF
17480 /* confdefs.h.  */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h.  */
17485 $ac_includes_default
17486 int
17487 main ()
17488 {
17489 if ((size_t *) 0)
17490   return 0;
17491 if (sizeof (size_t))
17492   return 0;
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499   (eval $ac_compile) 2>conftest.er1
17500   ac_status=$?
17501   grep -v '^ *+' conftest.er1 >conftest.err
17502   rm -f conftest.er1
17503   cat conftest.err >&5
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); } &&
17506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508   (eval $ac_try) 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); }; } &&
17512          { ac_try='test -s conftest.$ac_objext'
17513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514   (eval $ac_try) 2>&5
17515   ac_status=$?
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); }; }; then
17518   ac_cv_type_size_t=yes
17519 else
17520   echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17522
17523 ac_cv_type_size_t=no
17524 fi
17525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17526 fi
17527 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17528 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17529
17530 echo "$as_me:$LINENO: checking size of size_t" >&5
17531 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17532 if test "${ac_cv_sizeof_size_t+set}" = set; then
17533   echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535   if test "$ac_cv_type_size_t" = yes; then
17536   # The cast to unsigned long works around a bug in the HP C Compiler
17537   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17538   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17539   # This bug is HP SR number 8606223364.
17540   if test "$cross_compiling" = yes; then
17541   # Depending upon the size, compute the lo and hi bounds.
17542 cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h.  */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h.  */
17548 $ac_includes_default
17549 int
17550 main ()
17551 {
17552 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17553 test_array [0] = 0
17554
17555   ;
17556   return 0;
17557 }
17558 _ACEOF
17559 rm -f conftest.$ac_objext
17560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17561   (eval $ac_compile) 2>conftest.er1
17562   ac_status=$?
17563   grep -v '^ *+' conftest.er1 >conftest.err
17564   rm -f conftest.er1
17565   cat conftest.err >&5
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); } &&
17568          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570   (eval $ac_try) 2>&5
17571   ac_status=$?
17572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573   (exit $ac_status); }; } &&
17574          { ac_try='test -s conftest.$ac_objext'
17575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576   (eval $ac_try) 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; }; then
17580   ac_lo=0 ac_mid=0
17581   while :; do
17582     cat >conftest.$ac_ext <<_ACEOF
17583 /* confdefs.h.  */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h.  */
17588 $ac_includes_default
17589 int
17590 main ()
17591 {
17592 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17593 test_array [0] = 0
17594
17595   ;
17596   return 0;
17597 }
17598 _ACEOF
17599 rm -f conftest.$ac_objext
17600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17601   (eval $ac_compile) 2>conftest.er1
17602   ac_status=$?
17603   grep -v '^ *+' conftest.er1 >conftest.err
17604   rm -f conftest.er1
17605   cat conftest.err >&5
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); } &&
17608          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610   (eval $ac_try) 2>&5
17611   ac_status=$?
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); }; } &&
17614          { ac_try='test -s conftest.$ac_objext'
17615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616   (eval $ac_try) 2>&5
17617   ac_status=$?
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); }; }; then
17620   ac_hi=$ac_mid; break
17621 else
17622   echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17624
17625 ac_lo=`expr $ac_mid + 1`
17626                     if test $ac_lo -le $ac_mid; then
17627                       ac_lo= ac_hi=
17628                       break
17629                     fi
17630                     ac_mid=`expr 2 '*' $ac_mid + 1`
17631 fi
17632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17633   done
17634 else
17635   echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17637
17638 cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644 $ac_includes_default
17645 int
17646 main ()
17647 {
17648 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17649 test_array [0] = 0
17650
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest.$ac_objext
17656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17657   (eval $ac_compile) 2>conftest.er1
17658   ac_status=$?
17659   grep -v '^ *+' conftest.er1 >conftest.err
17660   rm -f conftest.er1
17661   cat conftest.err >&5
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } &&
17664          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666   (eval $ac_try) 2>&5
17667   ac_status=$?
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); }; } &&
17670          { ac_try='test -s conftest.$ac_objext'
17671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672   (eval $ac_try) 2>&5
17673   ac_status=$?
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); }; }; then
17676   ac_hi=-1 ac_mid=-1
17677   while :; do
17678     cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h.  */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h.  */
17684 $ac_includes_default
17685 int
17686 main ()
17687 {
17688 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17689 test_array [0] = 0
17690
17691   ;
17692   return 0;
17693 }
17694 _ACEOF
17695 rm -f conftest.$ac_objext
17696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17697   (eval $ac_compile) 2>conftest.er1
17698   ac_status=$?
17699   grep -v '^ *+' conftest.er1 >conftest.err
17700   rm -f conftest.er1
17701   cat conftest.err >&5
17702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703   (exit $ac_status); } &&
17704          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706   (eval $ac_try) 2>&5
17707   ac_status=$?
17708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709   (exit $ac_status); }; } &&
17710          { ac_try='test -s conftest.$ac_objext'
17711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712   (eval $ac_try) 2>&5
17713   ac_status=$?
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); }; }; then
17716   ac_lo=$ac_mid; break
17717 else
17718   echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.$ac_ext >&5
17720
17721 ac_hi=`expr '(' $ac_mid ')' - 1`
17722                        if test $ac_mid -le $ac_hi; then
17723                          ac_lo= ac_hi=
17724                          break
17725                        fi
17726                        ac_mid=`expr 2 '*' $ac_mid`
17727 fi
17728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17729   done
17730 else
17731   echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17733
17734 ac_lo= ac_hi=
17735 fi
17736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17737 fi
17738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17739 # Binary search between lo and hi bounds.
17740 while test "x$ac_lo" != "x$ac_hi"; do
17741   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17742   cat >conftest.$ac_ext <<_ACEOF
17743 /* confdefs.h.  */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h.  */
17748 $ac_includes_default
17749 int
17750 main ()
17751 {
17752 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17753 test_array [0] = 0
17754
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17761   (eval $ac_compile) 2>conftest.er1
17762   ac_status=$?
17763   grep -v '^ *+' conftest.er1 >conftest.err
17764   rm -f conftest.er1
17765   cat conftest.err >&5
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); } &&
17768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770   (eval $ac_try) 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }; } &&
17774          { ac_try='test -s conftest.$ac_objext'
17775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776   (eval $ac_try) 2>&5
17777   ac_status=$?
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); }; }; then
17780   ac_hi=$ac_mid
17781 else
17782   echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17784
17785 ac_lo=`expr '(' $ac_mid ')' + 1`
17786 fi
17787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17788 done
17789 case $ac_lo in
17790 ?*) ac_cv_sizeof_size_t=$ac_lo;;
17791 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17792 See \`config.log' for more details." >&5
17793 echo "$as_me: error: cannot compute sizeof (size_t), 77
17794 See \`config.log' for more details." >&2;}
17795    { (exit 1); exit 1; }; } ;;
17796 esac
17797 else
17798   if test "$cross_compiling" = yes; then
17799   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17800 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17801    { (exit 1); exit 1; }; }
17802 else
17803   cat >conftest.$ac_ext <<_ACEOF
17804 /* confdefs.h.  */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h.  */
17809 $ac_includes_default
17810 long longval () { return (long) (sizeof (size_t)); }
17811 unsigned long ulongval () { return (long) (sizeof (size_t)); }
17812 #include <stdio.h>
17813 #include <stdlib.h>
17814 int
17815 main ()
17816 {
17817
17818   FILE *f = fopen ("conftest.val", "w");
17819   if (! f)
17820     exit (1);
17821   if (((long) (sizeof (size_t))) < 0)
17822     {
17823       long i = longval ();
17824       if (i != ((long) (sizeof (size_t))))
17825         exit (1);
17826       fprintf (f, "%ld\n", i);
17827     }
17828   else
17829     {
17830       unsigned long i = ulongval ();
17831       if (i != ((long) (sizeof (size_t))))
17832         exit (1);
17833       fprintf (f, "%lu\n", i);
17834     }
17835   exit (ferror (f) || fclose (f) != 0);
17836
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest$ac_exeext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843   (eval $ac_link) 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848   (eval $ac_try) 2>&5
17849   ac_status=$?
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); }; }; then
17852   ac_cv_sizeof_size_t=`cat conftest.val`
17853 else
17854   echo "$as_me: program exited with status $ac_status" >&5
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858 ( exit $ac_status )
17859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17860 See \`config.log' for more details." >&5
17861 echo "$as_me: error: cannot compute sizeof (size_t), 77
17862 See \`config.log' for more details." >&2;}
17863    { (exit 1); exit 1; }; }
17864 fi
17865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17866 fi
17867 fi
17868 rm -f conftest.val
17869 else
17870   ac_cv_sizeof_size_t=0
17871 fi
17872 fi
17873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17874 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17875 cat >>confdefs.h <<_ACEOF
17876 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17877 _ACEOF
17878
17879
17880
17881 case "${host}" in
17882     arm-*-linux* )
17883         echo "$as_me:$LINENO: checking for long long" >&5
17884 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17885 if test "${ac_cv_type_long_long+set}" = set; then
17886   echo $ECHO_N "(cached) $ECHO_C" >&6
17887 else
17888   cat >conftest.$ac_ext <<_ACEOF
17889 /* confdefs.h.  */
17890 _ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h.  */
17894 $ac_includes_default
17895 int
17896 main ()
17897 {
17898 if ((long long *) 0)
17899   return 0;
17900 if (sizeof (long long))
17901   return 0;
17902   ;
17903   return 0;
17904 }
17905 _ACEOF
17906 rm -f conftest.$ac_objext
17907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17908   (eval $ac_compile) 2>conftest.er1
17909   ac_status=$?
17910   grep -v '^ *+' conftest.er1 >conftest.err
17911   rm -f conftest.er1
17912   cat conftest.err >&5
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); } &&
17915          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917   (eval $ac_try) 2>&5
17918   ac_status=$?
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); }; } &&
17921          { ac_try='test -s conftest.$ac_objext'
17922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923   (eval $ac_try) 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; }; then
17927   ac_cv_type_long_long=yes
17928 else
17929   echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932 ac_cv_type_long_long=no
17933 fi
17934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17935 fi
17936 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17937 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17938
17939 echo "$as_me:$LINENO: checking size of long long" >&5
17940 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17941 if test "${ac_cv_sizeof_long_long+set}" = set; then
17942   echo $ECHO_N "(cached) $ECHO_C" >&6
17943 else
17944   if test "$ac_cv_type_long_long" = yes; then
17945   # The cast to unsigned long works around a bug in the HP C Compiler
17946   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17947   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17948   # This bug is HP SR number 8606223364.
17949   if test "$cross_compiling" = yes; then
17950   # Depending upon the size, compute the lo and hi bounds.
17951 cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957 $ac_includes_default
17958 int
17959 main ()
17960 {
17961 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17962 test_array [0] = 0
17963
17964   ;
17965   return 0;
17966 }
17967 _ACEOF
17968 rm -f conftest.$ac_objext
17969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17970   (eval $ac_compile) 2>conftest.er1
17971   ac_status=$?
17972   grep -v '^ *+' conftest.er1 >conftest.err
17973   rm -f conftest.er1
17974   cat conftest.err >&5
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); } &&
17977          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979   (eval $ac_try) 2>&5
17980   ac_status=$?
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); }; } &&
17983          { ac_try='test -s conftest.$ac_objext'
17984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985   (eval $ac_try) 2>&5
17986   ac_status=$?
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); }; }; then
17989   ac_lo=0 ac_mid=0
17990   while :; do
17991     cat >conftest.$ac_ext <<_ACEOF
17992 /* confdefs.h.  */
17993 _ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h.  */
17997 $ac_includes_default
17998 int
17999 main ()
18000 {
18001 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18002 test_array [0] = 0
18003
18004   ;
18005   return 0;
18006 }
18007 _ACEOF
18008 rm -f conftest.$ac_objext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18010   (eval $ac_compile) 2>conftest.er1
18011   ac_status=$?
18012   grep -v '^ *+' conftest.er1 >conftest.err
18013   rm -f conftest.er1
18014   cat conftest.err >&5
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); } &&
18017          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019   (eval $ac_try) 2>&5
18020   ac_status=$?
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); }; } &&
18023          { ac_try='test -s conftest.$ac_objext'
18024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025   (eval $ac_try) 2>&5
18026   ac_status=$?
18027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028   (exit $ac_status); }; }; then
18029   ac_hi=$ac_mid; break
18030 else
18031   echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18033
18034 ac_lo=`expr $ac_mid + 1`
18035                     if test $ac_lo -le $ac_mid; then
18036                       ac_lo= ac_hi=
18037                       break
18038                     fi
18039                     ac_mid=`expr 2 '*' $ac_mid + 1`
18040 fi
18041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18042   done
18043 else
18044   echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18046
18047 cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h.  */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h.  */
18053 $ac_includes_default
18054 int
18055 main ()
18056 {
18057 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18058 test_array [0] = 0
18059
18060   ;
18061   return 0;
18062 }
18063 _ACEOF
18064 rm -f conftest.$ac_objext
18065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18066   (eval $ac_compile) 2>conftest.er1
18067   ac_status=$?
18068   grep -v '^ *+' conftest.er1 >conftest.err
18069   rm -f conftest.er1
18070   cat conftest.err >&5
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); } &&
18073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075   (eval $ac_try) 2>&5
18076   ac_status=$?
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); }; } &&
18079          { ac_try='test -s conftest.$ac_objext'
18080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081   (eval $ac_try) 2>&5
18082   ac_status=$?
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); }; }; then
18085   ac_hi=-1 ac_mid=-1
18086   while :; do
18087     cat >conftest.$ac_ext <<_ACEOF
18088 /* confdefs.h.  */
18089 _ACEOF
18090 cat confdefs.h >>conftest.$ac_ext
18091 cat >>conftest.$ac_ext <<_ACEOF
18092 /* end confdefs.h.  */
18093 $ac_includes_default
18094 int
18095 main ()
18096 {
18097 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18098 test_array [0] = 0
18099
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18106   (eval $ac_compile) 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115   (eval $ac_try) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; } &&
18119          { ac_try='test -s conftest.$ac_objext'
18120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121   (eval $ac_try) 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; }; then
18125   ac_lo=$ac_mid; break
18126 else
18127   echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 ac_hi=`expr '(' $ac_mid ')' - 1`
18131                        if test $ac_mid -le $ac_hi; then
18132                          ac_lo= ac_hi=
18133                          break
18134                        fi
18135                        ac_mid=`expr 2 '*' $ac_mid`
18136 fi
18137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18138   done
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 ac_lo= ac_hi=
18144 fi
18145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18146 fi
18147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18148 # Binary search between lo and hi bounds.
18149 while test "x$ac_lo" != "x$ac_hi"; do
18150   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18151   cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h.  */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h.  */
18157 $ac_includes_default
18158 int
18159 main ()
18160 {
18161 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18162 test_array [0] = 0
18163
18164   ;
18165   return 0;
18166 }
18167 _ACEOF
18168 rm -f conftest.$ac_objext
18169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18170   (eval $ac_compile) 2>conftest.er1
18171   ac_status=$?
18172   grep -v '^ *+' conftest.er1 >conftest.err
18173   rm -f conftest.er1
18174   cat conftest.err >&5
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); } &&
18177          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179   (eval $ac_try) 2>&5
18180   ac_status=$?
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); }; } &&
18183          { ac_try='test -s conftest.$ac_objext'
18184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185   (eval $ac_try) 2>&5
18186   ac_status=$?
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); }; }; then
18189   ac_hi=$ac_mid
18190 else
18191   echo "$as_me: failed program was:" >&5
18192 sed 's/^/| /' conftest.$ac_ext >&5
18193
18194 ac_lo=`expr '(' $ac_mid ')' + 1`
18195 fi
18196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18197 done
18198 case $ac_lo in
18199 ?*) ac_cv_sizeof_long_long=$ac_lo;;
18200 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18201 See \`config.log' for more details." >&5
18202 echo "$as_me: error: cannot compute sizeof (long long), 77
18203 See \`config.log' for more details." >&2;}
18204    { (exit 1); exit 1; }; } ;;
18205 esac
18206 else
18207   if test "$cross_compiling" = yes; then
18208   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18209 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18210    { (exit 1); exit 1; }; }
18211 else
18212   cat >conftest.$ac_ext <<_ACEOF
18213 /* confdefs.h.  */
18214 _ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h.  */
18218 $ac_includes_default
18219 long longval () { return (long) (sizeof (long long)); }
18220 unsigned long ulongval () { return (long) (sizeof (long long)); }
18221 #include <stdio.h>
18222 #include <stdlib.h>
18223 int
18224 main ()
18225 {
18226
18227   FILE *f = fopen ("conftest.val", "w");
18228   if (! f)
18229     exit (1);
18230   if (((long) (sizeof (long long))) < 0)
18231     {
18232       long i = longval ();
18233       if (i != ((long) (sizeof (long long))))
18234         exit (1);
18235       fprintf (f, "%ld\n", i);
18236     }
18237   else
18238     {
18239       unsigned long i = ulongval ();
18240       if (i != ((long) (sizeof (long long))))
18241         exit (1);
18242       fprintf (f, "%lu\n", i);
18243     }
18244   exit (ferror (f) || fclose (f) != 0);
18245
18246   ;
18247   return 0;
18248 }
18249 _ACEOF
18250 rm -f conftest$ac_exeext
18251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18252   (eval $ac_link) 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257   (eval $ac_try) 2>&5
18258   ac_status=$?
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); }; }; then
18261   ac_cv_sizeof_long_long=`cat conftest.val`
18262 else
18263   echo "$as_me: program exited with status $ac_status" >&5
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267 ( exit $ac_status )
18268 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18269 See \`config.log' for more details." >&5
18270 echo "$as_me: error: cannot compute sizeof (long long), 77
18271 See \`config.log' for more details." >&2;}
18272    { (exit 1); exit 1; }; }
18273 fi
18274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18275 fi
18276 fi
18277 rm -f conftest.val
18278 else
18279   ac_cv_sizeof_long_long=0
18280 fi
18281 fi
18282 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18283 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18284 cat >>confdefs.h <<_ACEOF
18285 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18286 _ACEOF
18287
18288
18289     ;;
18290     *-hp-hpux* )
18291         echo "$as_me:$LINENO: checking for long long" >&5
18292 echo $ECHO_N "checking for long long... $ECHO_C" >&6
18293 if test "${ac_cv_type_long_long+set}" = set; then
18294   echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18296   cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h.  */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h.  */
18302 $ac_includes_default
18303 int
18304 main ()
18305 {
18306 if ((long long *) 0)
18307   return 0;
18308 if (sizeof (long long))
18309   return 0;
18310   ;
18311   return 0;
18312 }
18313 _ACEOF
18314 rm -f conftest.$ac_objext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18316   (eval $ac_compile) 2>conftest.er1
18317   ac_status=$?
18318   grep -v '^ *+' conftest.er1 >conftest.err
18319   rm -f conftest.er1
18320   cat conftest.err >&5
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); } &&
18323          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325   (eval $ac_try) 2>&5
18326   ac_status=$?
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); }; } &&
18329          { ac_try='test -s conftest.$ac_objext'
18330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331   (eval $ac_try) 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; }; then
18335   ac_cv_type_long_long=yes
18336 else
18337   echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340 ac_cv_type_long_long=no
18341 fi
18342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18343 fi
18344 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18345 echo "${ECHO_T}$ac_cv_type_long_long" >&6
18346
18347 echo "$as_me:$LINENO: checking size of long long" >&5
18348 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18349 if test "${ac_cv_sizeof_long_long+set}" = set; then
18350   echo $ECHO_N "(cached) $ECHO_C" >&6
18351 else
18352   if test "$ac_cv_type_long_long" = yes; then
18353   # The cast to unsigned long works around a bug in the HP C Compiler
18354   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18355   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18356   # This bug is HP SR number 8606223364.
18357   if test "$cross_compiling" = yes; then
18358   # Depending upon the size, compute the lo and hi bounds.
18359 cat >conftest.$ac_ext <<_ACEOF
18360 /* confdefs.h.  */
18361 _ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h.  */
18365 $ac_includes_default
18366 int
18367 main ()
18368 {
18369 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18370 test_array [0] = 0
18371
18372   ;
18373   return 0;
18374 }
18375 _ACEOF
18376 rm -f conftest.$ac_objext
18377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18378   (eval $ac_compile) 2>conftest.er1
18379   ac_status=$?
18380   grep -v '^ *+' conftest.er1 >conftest.err
18381   rm -f conftest.er1
18382   cat conftest.err >&5
18383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384   (exit $ac_status); } &&
18385          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387   (eval $ac_try) 2>&5
18388   ac_status=$?
18389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390   (exit $ac_status); }; } &&
18391          { ac_try='test -s conftest.$ac_objext'
18392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393   (eval $ac_try) 2>&5
18394   ac_status=$?
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); }; }; then
18397   ac_lo=0 ac_mid=0
18398   while :; do
18399     cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h.  */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h.  */
18405 $ac_includes_default
18406 int
18407 main ()
18408 {
18409 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18410 test_array [0] = 0
18411
18412   ;
18413   return 0;
18414 }
18415 _ACEOF
18416 rm -f conftest.$ac_objext
18417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18418   (eval $ac_compile) 2>conftest.er1
18419   ac_status=$?
18420   grep -v '^ *+' conftest.er1 >conftest.err
18421   rm -f conftest.er1
18422   cat conftest.err >&5
18423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424   (exit $ac_status); } &&
18425          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427   (eval $ac_try) 2>&5
18428   ac_status=$?
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); }; } &&
18431          { ac_try='test -s conftest.$ac_objext'
18432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433   (eval $ac_try) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }; }; then
18437   ac_hi=$ac_mid; break
18438 else
18439   echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18441
18442 ac_lo=`expr $ac_mid + 1`
18443                     if test $ac_lo -le $ac_mid; then
18444                       ac_lo= ac_hi=
18445                       break
18446                     fi
18447                     ac_mid=`expr 2 '*' $ac_mid + 1`
18448 fi
18449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18450   done
18451 else
18452   echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18454
18455 cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h.  */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h.  */
18461 $ac_includes_default
18462 int
18463 main ()
18464 {
18465 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18466 test_array [0] = 0
18467
18468   ;
18469   return 0;
18470 }
18471 _ACEOF
18472 rm -f conftest.$ac_objext
18473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18474   (eval $ac_compile) 2>conftest.er1
18475   ac_status=$?
18476   grep -v '^ *+' conftest.er1 >conftest.err
18477   rm -f conftest.er1
18478   cat conftest.err >&5
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); } &&
18481          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483   (eval $ac_try) 2>&5
18484   ac_status=$?
18485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); }; } &&
18487          { ac_try='test -s conftest.$ac_objext'
18488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489   (eval $ac_try) 2>&5
18490   ac_status=$?
18491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); }; }; then
18493   ac_hi=-1 ac_mid=-1
18494   while :; do
18495     cat >conftest.$ac_ext <<_ACEOF
18496 /* confdefs.h.  */
18497 _ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h.  */
18501 $ac_includes_default
18502 int
18503 main ()
18504 {
18505 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18506 test_array [0] = 0
18507
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 rm -f conftest.$ac_objext
18513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18514   (eval $ac_compile) 2>conftest.er1
18515   ac_status=$?
18516   grep -v '^ *+' conftest.er1 >conftest.err
18517   rm -f conftest.er1
18518   cat conftest.err >&5
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); } &&
18521          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523   (eval $ac_try) 2>&5
18524   ac_status=$?
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); }; } &&
18527          { ac_try='test -s conftest.$ac_objext'
18528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529   (eval $ac_try) 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); }; }; then
18533   ac_lo=$ac_mid; break
18534 else
18535   echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538 ac_hi=`expr '(' $ac_mid ')' - 1`
18539                        if test $ac_mid -le $ac_hi; then
18540                          ac_lo= ac_hi=
18541                          break
18542                        fi
18543                        ac_mid=`expr 2 '*' $ac_mid`
18544 fi
18545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18546   done
18547 else
18548   echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551 ac_lo= ac_hi=
18552 fi
18553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18554 fi
18555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18556 # Binary search between lo and hi bounds.
18557 while test "x$ac_lo" != "x$ac_hi"; do
18558   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18559   cat >conftest.$ac_ext <<_ACEOF
18560 /* confdefs.h.  */
18561 _ACEOF
18562 cat confdefs.h >>conftest.$ac_ext
18563 cat >>conftest.$ac_ext <<_ACEOF
18564 /* end confdefs.h.  */
18565 $ac_includes_default
18566 int
18567 main ()
18568 {
18569 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18570 test_array [0] = 0
18571
18572   ;
18573   return 0;
18574 }
18575 _ACEOF
18576 rm -f conftest.$ac_objext
18577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18578   (eval $ac_compile) 2>conftest.er1
18579   ac_status=$?
18580   grep -v '^ *+' conftest.er1 >conftest.err
18581   rm -f conftest.er1
18582   cat conftest.err >&5
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); } &&
18585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587   (eval $ac_try) 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; } &&
18591          { ac_try='test -s conftest.$ac_objext'
18592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593   (eval $ac_try) 2>&5
18594   ac_status=$?
18595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596   (exit $ac_status); }; }; then
18597   ac_hi=$ac_mid
18598 else
18599   echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.$ac_ext >&5
18601
18602 ac_lo=`expr '(' $ac_mid ')' + 1`
18603 fi
18604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18605 done
18606 case $ac_lo in
18607 ?*) ac_cv_sizeof_long_long=$ac_lo;;
18608 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18609 See \`config.log' for more details." >&5
18610 echo "$as_me: error: cannot compute sizeof (long long), 77
18611 See \`config.log' for more details." >&2;}
18612    { (exit 1); exit 1; }; } ;;
18613 esac
18614 else
18615   if test "$cross_compiling" = yes; then
18616   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18617 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18618    { (exit 1); exit 1; }; }
18619 else
18620   cat >conftest.$ac_ext <<_ACEOF
18621 /* confdefs.h.  */
18622 _ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h.  */
18626 $ac_includes_default
18627 long longval () { return (long) (sizeof (long long)); }
18628 unsigned long ulongval () { return (long) (sizeof (long long)); }
18629 #include <stdio.h>
18630 #include <stdlib.h>
18631 int
18632 main ()
18633 {
18634
18635   FILE *f = fopen ("conftest.val", "w");
18636   if (! f)
18637     exit (1);
18638   if (((long) (sizeof (long long))) < 0)
18639     {
18640       long i = longval ();
18641       if (i != ((long) (sizeof (long long))))
18642         exit (1);
18643       fprintf (f, "%ld\n", i);
18644     }
18645   else
18646     {
18647       unsigned long i = ulongval ();
18648       if (i != ((long) (sizeof (long long))))
18649         exit (1);
18650       fprintf (f, "%lu\n", i);
18651     }
18652   exit (ferror (f) || fclose (f) != 0);
18653
18654   ;
18655   return 0;
18656 }
18657 _ACEOF
18658 rm -f conftest$ac_exeext
18659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18660   (eval $ac_link) 2>&5
18661   ac_status=$?
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665   (eval $ac_try) 2>&5
18666   ac_status=$?
18667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); }; }; then
18669   ac_cv_sizeof_long_long=`cat conftest.val`
18670 else
18671   echo "$as_me: program exited with status $ac_status" >&5
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18674
18675 ( exit $ac_status )
18676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18677 See \`config.log' for more details." >&5
18678 echo "$as_me: error: cannot compute sizeof (long long), 77
18679 See \`config.log' for more details." >&2;}
18680    { (exit 1); exit 1; }; }
18681 fi
18682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18683 fi
18684 fi
18685 rm -f conftest.val
18686 else
18687   ac_cv_sizeof_long_long=0
18688 fi
18689 fi
18690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18691 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18692 cat >>confdefs.h <<_ACEOF
18693 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18694 _ACEOF
18695
18696
18697         if test "$ac_cv_sizeof_long_long" != "0"; then
18698                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18699         fi
18700     ;;
18701     * )
18702         echo "$as_me:$LINENO: checking for long long" >&5
18703 echo $ECHO_N "checking for long long... $ECHO_C" >&6
18704 if test "${ac_cv_type_long_long+set}" = set; then
18705   echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707   cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h.  */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h.  */
18713 $ac_includes_default
18714 int
18715 main ()
18716 {
18717 if ((long long *) 0)
18718   return 0;
18719 if (sizeof (long long))
18720   return 0;
18721   ;
18722   return 0;
18723 }
18724 _ACEOF
18725 rm -f conftest.$ac_objext
18726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18727   (eval $ac_compile) 2>conftest.er1
18728   ac_status=$?
18729   grep -v '^ *+' conftest.er1 >conftest.err
18730   rm -f conftest.er1
18731   cat conftest.err >&5
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); } &&
18734          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736   (eval $ac_try) 2>&5
18737   ac_status=$?
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); }; } &&
18740          { ac_try='test -s conftest.$ac_objext'
18741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742   (eval $ac_try) 2>&5
18743   ac_status=$?
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); }; }; then
18746   ac_cv_type_long_long=yes
18747 else
18748   echo "$as_me: failed program was:" >&5
18749 sed 's/^/| /' conftest.$ac_ext >&5
18750
18751 ac_cv_type_long_long=no
18752 fi
18753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18754 fi
18755 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18756 echo "${ECHO_T}$ac_cv_type_long_long" >&6
18757
18758 echo "$as_me:$LINENO: checking size of long long" >&5
18759 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18760 if test "${ac_cv_sizeof_long_long+set}" = set; then
18761   echo $ECHO_N "(cached) $ECHO_C" >&6
18762 else
18763   if test "$ac_cv_type_long_long" = yes; then
18764   # The cast to unsigned long works around a bug in the HP C Compiler
18765   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18766   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18767   # This bug is HP SR number 8606223364.
18768   if test "$cross_compiling" = yes; then
18769   # Depending upon the size, compute the lo and hi bounds.
18770 cat >conftest.$ac_ext <<_ACEOF
18771 /* confdefs.h.  */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h.  */
18776 $ac_includes_default
18777 int
18778 main ()
18779 {
18780 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18781 test_array [0] = 0
18782
18783   ;
18784   return 0;
18785 }
18786 _ACEOF
18787 rm -f conftest.$ac_objext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18789   (eval $ac_compile) 2>conftest.er1
18790   ac_status=$?
18791   grep -v '^ *+' conftest.er1 >conftest.err
18792   rm -f conftest.er1
18793   cat conftest.err >&5
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); } &&
18796          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798   (eval $ac_try) 2>&5
18799   ac_status=$?
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); }; } &&
18802          { ac_try='test -s conftest.$ac_objext'
18803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804   (eval $ac_try) 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; }; then
18808   ac_lo=0 ac_mid=0
18809   while :; do
18810     cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h.  */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h.  */
18816 $ac_includes_default
18817 int
18818 main ()
18819 {
18820 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18821 test_array [0] = 0
18822
18823   ;
18824   return 0;
18825 }
18826 _ACEOF
18827 rm -f conftest.$ac_objext
18828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18829   (eval $ac_compile) 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } &&
18836          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838   (eval $ac_try) 2>&5
18839   ac_status=$?
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); }; } &&
18842          { ac_try='test -s conftest.$ac_objext'
18843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844   (eval $ac_try) 2>&5
18845   ac_status=$?
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); }; }; then
18848   ac_hi=$ac_mid; break
18849 else
18850   echo "$as_me: failed program was:" >&5
18851 sed 's/^/| /' conftest.$ac_ext >&5
18852
18853 ac_lo=`expr $ac_mid + 1`
18854                     if test $ac_lo -le $ac_mid; then
18855                       ac_lo= ac_hi=
18856                       break
18857                     fi
18858                     ac_mid=`expr 2 '*' $ac_mid + 1`
18859 fi
18860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18861   done
18862 else
18863   echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18865
18866 cat >conftest.$ac_ext <<_ACEOF
18867 /* confdefs.h.  */
18868 _ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h.  */
18872 $ac_includes_default
18873 int
18874 main ()
18875 {
18876 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18877 test_array [0] = 0
18878
18879   ;
18880   return 0;
18881 }
18882 _ACEOF
18883 rm -f conftest.$ac_objext
18884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18885   (eval $ac_compile) 2>conftest.er1
18886   ac_status=$?
18887   grep -v '^ *+' conftest.er1 >conftest.err
18888   rm -f conftest.er1
18889   cat conftest.err >&5
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); } &&
18892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894   (eval $ac_try) 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; } &&
18898          { ac_try='test -s conftest.$ac_objext'
18899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900   (eval $ac_try) 2>&5
18901   ac_status=$?
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); }; }; then
18904   ac_hi=-1 ac_mid=-1
18905   while :; do
18906     cat >conftest.$ac_ext <<_ACEOF
18907 /* confdefs.h.  */
18908 _ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h.  */
18912 $ac_includes_default
18913 int
18914 main ()
18915 {
18916 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18917 test_array [0] = 0
18918
18919   ;
18920   return 0;
18921 }
18922 _ACEOF
18923 rm -f conftest.$ac_objext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18925   (eval $ac_compile) 2>conftest.er1
18926   ac_status=$?
18927   grep -v '^ *+' conftest.er1 >conftest.err
18928   rm -f conftest.er1
18929   cat conftest.err >&5
18930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931   (exit $ac_status); } &&
18932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934   (eval $ac_try) 2>&5
18935   ac_status=$?
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); }; } &&
18938          { ac_try='test -s conftest.$ac_objext'
18939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940   (eval $ac_try) 2>&5
18941   ac_status=$?
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); }; }; then
18944   ac_lo=$ac_mid; break
18945 else
18946   echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18948
18949 ac_hi=`expr '(' $ac_mid ')' - 1`
18950                        if test $ac_mid -le $ac_hi; then
18951                          ac_lo= ac_hi=
18952                          break
18953                        fi
18954                        ac_mid=`expr 2 '*' $ac_mid`
18955 fi
18956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18957   done
18958 else
18959   echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962 ac_lo= ac_hi=
18963 fi
18964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18965 fi
18966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18967 # Binary search between lo and hi bounds.
18968 while test "x$ac_lo" != "x$ac_hi"; do
18969   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18970   cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h.  */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h.  */
18976 $ac_includes_default
18977 int
18978 main ()
18979 {
18980 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18981 test_array [0] = 0
18982
18983   ;
18984   return 0;
18985 }
18986 _ACEOF
18987 rm -f conftest.$ac_objext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18989   (eval $ac_compile) 2>conftest.er1
18990   ac_status=$?
18991   grep -v '^ *+' conftest.er1 >conftest.err
18992   rm -f conftest.er1
18993   cat conftest.err >&5
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); } &&
18996          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998   (eval $ac_try) 2>&5
18999   ac_status=$?
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); }; } &&
19002          { ac_try='test -s conftest.$ac_objext'
19003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004   (eval $ac_try) 2>&5
19005   ac_status=$?
19006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007   (exit $ac_status); }; }; then
19008   ac_hi=$ac_mid
19009 else
19010   echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19012
19013 ac_lo=`expr '(' $ac_mid ')' + 1`
19014 fi
19015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19016 done
19017 case $ac_lo in
19018 ?*) ac_cv_sizeof_long_long=$ac_lo;;
19019 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19020 See \`config.log' for more details." >&5
19021 echo "$as_me: error: cannot compute sizeof (long long), 77
19022 See \`config.log' for more details." >&2;}
19023    { (exit 1); exit 1; }; } ;;
19024 esac
19025 else
19026   if test "$cross_compiling" = yes; then
19027   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19028 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19029    { (exit 1); exit 1; }; }
19030 else
19031   cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h.  */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h.  */
19037 $ac_includes_default
19038 long longval () { return (long) (sizeof (long long)); }
19039 unsigned long ulongval () { return (long) (sizeof (long long)); }
19040 #include <stdio.h>
19041 #include <stdlib.h>
19042 int
19043 main ()
19044 {
19045
19046   FILE *f = fopen ("conftest.val", "w");
19047   if (! f)
19048     exit (1);
19049   if (((long) (sizeof (long long))) < 0)
19050     {
19051       long i = longval ();
19052       if (i != ((long) (sizeof (long long))))
19053         exit (1);
19054       fprintf (f, "%ld\n", i);
19055     }
19056   else
19057     {
19058       unsigned long i = ulongval ();
19059       if (i != ((long) (sizeof (long long))))
19060         exit (1);
19061       fprintf (f, "%lu\n", i);
19062     }
19063   exit (ferror (f) || fclose (f) != 0);
19064
19065   ;
19066   return 0;
19067 }
19068 _ACEOF
19069 rm -f conftest$ac_exeext
19070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19071   (eval $ac_link) 2>&5
19072   ac_status=$?
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076   (eval $ac_try) 2>&5
19077   ac_status=$?
19078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079   (exit $ac_status); }; }; then
19080   ac_cv_sizeof_long_long=`cat conftest.val`
19081 else
19082   echo "$as_me: program exited with status $ac_status" >&5
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19085
19086 ( exit $ac_status )
19087 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19088 See \`config.log' for more details." >&5
19089 echo "$as_me: error: cannot compute sizeof (long long), 77
19090 See \`config.log' for more details." >&2;}
19091    { (exit 1); exit 1; }; }
19092 fi
19093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19094 fi
19095 fi
19096 rm -f conftest.val
19097 else
19098   ac_cv_sizeof_long_long=0
19099 fi
19100 fi
19101 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19102 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19103 cat >>confdefs.h <<_ACEOF
19104 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19105 _ACEOF
19106
19107
19108 esac
19109
19110 echo "$as_me:$LINENO: checking for wchar_t" >&5
19111 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19112 if test "${ac_cv_type_wchar_t+set}" = set; then
19113   echo $ECHO_N "(cached) $ECHO_C" >&6
19114 else
19115   cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h.  */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h.  */
19121
19122         /* DJGPP only has fake wchar_t: */
19123         #ifdef __DJGPP__
19124         #  error "fake wchar_t"
19125         #endif
19126         #ifdef HAVE_WCHAR_H
19127         #  ifdef __CYGWIN__
19128         #    include <stddef.h>
19129         #  endif
19130         #  include <wchar.h>
19131         #endif
19132         #ifdef HAVE_STDLIB_H
19133         #  include <stdlib.h>
19134         #endif
19135         #include <stdio.h>
19136
19137
19138
19139 int
19140 main ()
19141 {
19142 if ((wchar_t *) 0)
19143   return 0;
19144 if (sizeof (wchar_t))
19145   return 0;
19146   ;
19147   return 0;
19148 }
19149 _ACEOF
19150 rm -f conftest.$ac_objext
19151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19152   (eval $ac_compile) 2>conftest.er1
19153   ac_status=$?
19154   grep -v '^ *+' conftest.er1 >conftest.err
19155   rm -f conftest.er1
19156   cat conftest.err >&5
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } &&
19159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161   (eval $ac_try) 2>&5
19162   ac_status=$?
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); }; } &&
19165          { ac_try='test -s conftest.$ac_objext'
19166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167   (eval $ac_try) 2>&5
19168   ac_status=$?
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); }; }; then
19171   ac_cv_type_wchar_t=yes
19172 else
19173   echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19175
19176 ac_cv_type_wchar_t=no
19177 fi
19178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19179 fi
19180 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19181 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19182
19183 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19184 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19185 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19186   echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188   if test "$ac_cv_type_wchar_t" = yes; then
19189   # The cast to unsigned long works around a bug in the HP C Compiler
19190   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19191   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19192   # This bug is HP SR number 8606223364.
19193   if test "$cross_compiling" = yes; then
19194   # Depending upon the size, compute the lo and hi bounds.
19195 cat >conftest.$ac_ext <<_ACEOF
19196 /* confdefs.h.  */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h.  */
19201
19202         /* DJGPP only has fake wchar_t: */
19203         #ifdef __DJGPP__
19204         #  error "fake wchar_t"
19205         #endif
19206         #ifdef HAVE_WCHAR_H
19207         #  ifdef __CYGWIN__
19208         #    include <stddef.h>
19209         #  endif
19210         #  include <wchar.h>
19211         #endif
19212         #ifdef HAVE_STDLIB_H
19213         #  include <stdlib.h>
19214         #endif
19215         #include <stdio.h>
19216
19217
19218
19219 int
19220 main ()
19221 {
19222 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19223 test_array [0] = 0
19224
19225   ;
19226   return 0;
19227 }
19228 _ACEOF
19229 rm -f conftest.$ac_objext
19230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19231   (eval $ac_compile) 2>conftest.er1
19232   ac_status=$?
19233   grep -v '^ *+' conftest.er1 >conftest.err
19234   rm -f conftest.er1
19235   cat conftest.err >&5
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); } &&
19238          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240   (eval $ac_try) 2>&5
19241   ac_status=$?
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); }; } &&
19244          { ac_try='test -s conftest.$ac_objext'
19245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246   (eval $ac_try) 2>&5
19247   ac_status=$?
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); }; }; then
19250   ac_lo=0 ac_mid=0
19251   while :; do
19252     cat >conftest.$ac_ext <<_ACEOF
19253 /* confdefs.h.  */
19254 _ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h.  */
19258
19259         /* DJGPP only has fake wchar_t: */
19260         #ifdef __DJGPP__
19261         #  error "fake wchar_t"
19262         #endif
19263         #ifdef HAVE_WCHAR_H
19264         #  ifdef __CYGWIN__
19265         #    include <stddef.h>
19266         #  endif
19267         #  include <wchar.h>
19268         #endif
19269         #ifdef HAVE_STDLIB_H
19270         #  include <stdlib.h>
19271         #endif
19272         #include <stdio.h>
19273
19274
19275
19276 int
19277 main ()
19278 {
19279 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19280 test_array [0] = 0
19281
19282   ;
19283   return 0;
19284 }
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19288   (eval $ac_compile) 2>conftest.er1
19289   ac_status=$?
19290   grep -v '^ *+' conftest.er1 >conftest.err
19291   rm -f conftest.er1
19292   cat conftest.err >&5
19293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); } &&
19295          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297   (eval $ac_try) 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }; } &&
19301          { ac_try='test -s conftest.$ac_objext'
19302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303   (eval $ac_try) 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }; }; then
19307   ac_hi=$ac_mid; break
19308 else
19309   echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312 ac_lo=`expr $ac_mid + 1`
19313                     if test $ac_lo -le $ac_mid; then
19314                       ac_lo= ac_hi=
19315                       break
19316                     fi
19317                     ac_mid=`expr 2 '*' $ac_mid + 1`
19318 fi
19319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19320   done
19321 else
19322   echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19324
19325 cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h.  */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h.  */
19331
19332         /* DJGPP only has fake wchar_t: */
19333         #ifdef __DJGPP__
19334         #  error "fake wchar_t"
19335         #endif
19336         #ifdef HAVE_WCHAR_H
19337         #  ifdef __CYGWIN__
19338         #    include <stddef.h>
19339         #  endif
19340         #  include <wchar.h>
19341         #endif
19342         #ifdef HAVE_STDLIB_H
19343         #  include <stdlib.h>
19344         #endif
19345         #include <stdio.h>
19346
19347
19348
19349 int
19350 main ()
19351 {
19352 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19353 test_array [0] = 0
19354
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19361   (eval $ac_compile) 2>conftest.er1
19362   ac_status=$?
19363   grep -v '^ *+' conftest.er1 >conftest.err
19364   rm -f conftest.er1
19365   cat conftest.err >&5
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); } &&
19368          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370   (eval $ac_try) 2>&5
19371   ac_status=$?
19372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); }; } &&
19374          { ac_try='test -s conftest.$ac_objext'
19375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376   (eval $ac_try) 2>&5
19377   ac_status=$?
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); }; }; then
19380   ac_hi=-1 ac_mid=-1
19381   while :; do
19382     cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h.  */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h.  */
19388
19389         /* DJGPP only has fake wchar_t: */
19390         #ifdef __DJGPP__
19391         #  error "fake wchar_t"
19392         #endif
19393         #ifdef HAVE_WCHAR_H
19394         #  ifdef __CYGWIN__
19395         #    include <stddef.h>
19396         #  endif
19397         #  include <wchar.h>
19398         #endif
19399         #ifdef HAVE_STDLIB_H
19400         #  include <stdlib.h>
19401         #endif
19402         #include <stdio.h>
19403
19404
19405
19406 int
19407 main ()
19408 {
19409 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19410 test_array [0] = 0
19411
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19418   (eval $ac_compile) 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } &&
19425          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427   (eval $ac_try) 2>&5
19428   ac_status=$?
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); }; } &&
19431          { ac_try='test -s conftest.$ac_objext'
19432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433   (eval $ac_try) 2>&5
19434   ac_status=$?
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); }; }; then
19437   ac_lo=$ac_mid; break
19438 else
19439   echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19441
19442 ac_hi=`expr '(' $ac_mid ')' - 1`
19443                        if test $ac_mid -le $ac_hi; then
19444                          ac_lo= ac_hi=
19445                          break
19446                        fi
19447                        ac_mid=`expr 2 '*' $ac_mid`
19448 fi
19449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19450   done
19451 else
19452   echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19454
19455 ac_lo= ac_hi=
19456 fi
19457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19458 fi
19459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19460 # Binary search between lo and hi bounds.
19461 while test "x$ac_lo" != "x$ac_hi"; do
19462   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19463   cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h.  */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h.  */
19469
19470         /* DJGPP only has fake wchar_t: */
19471         #ifdef __DJGPP__
19472         #  error "fake wchar_t"
19473         #endif
19474         #ifdef HAVE_WCHAR_H
19475         #  ifdef __CYGWIN__
19476         #    include <stddef.h>
19477         #  endif
19478         #  include <wchar.h>
19479         #endif
19480         #ifdef HAVE_STDLIB_H
19481         #  include <stdlib.h>
19482         #endif
19483         #include <stdio.h>
19484
19485
19486
19487 int
19488 main ()
19489 {
19490 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19491 test_array [0] = 0
19492
19493   ;
19494   return 0;
19495 }
19496 _ACEOF
19497 rm -f conftest.$ac_objext
19498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19499   (eval $ac_compile) 2>conftest.er1
19500   ac_status=$?
19501   grep -v '^ *+' conftest.er1 >conftest.err
19502   rm -f conftest.er1
19503   cat conftest.err >&5
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } &&
19506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508   (eval $ac_try) 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; } &&
19512          { ac_try='test -s conftest.$ac_objext'
19513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514   (eval $ac_try) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; }; then
19518   ac_hi=$ac_mid
19519 else
19520   echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523 ac_lo=`expr '(' $ac_mid ')' + 1`
19524 fi
19525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19526 done
19527 case $ac_lo in
19528 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19529 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19530 See \`config.log' for more details." >&5
19531 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19532 See \`config.log' for more details." >&2;}
19533    { (exit 1); exit 1; }; } ;;
19534 esac
19535 else
19536   if test "$cross_compiling" = yes; then
19537   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19538 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19539    { (exit 1); exit 1; }; }
19540 else
19541   cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h.  */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h.  */
19547
19548         /* DJGPP only has fake wchar_t: */
19549         #ifdef __DJGPP__
19550         #  error "fake wchar_t"
19551         #endif
19552         #ifdef HAVE_WCHAR_H
19553         #  ifdef __CYGWIN__
19554         #    include <stddef.h>
19555         #  endif
19556         #  include <wchar.h>
19557         #endif
19558         #ifdef HAVE_STDLIB_H
19559         #  include <stdlib.h>
19560         #endif
19561         #include <stdio.h>
19562
19563
19564
19565 long longval () { return (long) (sizeof (wchar_t)); }
19566 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19567 #include <stdio.h>
19568 #include <stdlib.h>
19569 int
19570 main ()
19571 {
19572
19573   FILE *f = fopen ("conftest.val", "w");
19574   if (! f)
19575     exit (1);
19576   if (((long) (sizeof (wchar_t))) < 0)
19577     {
19578       long i = longval ();
19579       if (i != ((long) (sizeof (wchar_t))))
19580         exit (1);
19581       fprintf (f, "%ld\n", i);
19582     }
19583   else
19584     {
19585       unsigned long i = ulongval ();
19586       if (i != ((long) (sizeof (wchar_t))))
19587         exit (1);
19588       fprintf (f, "%lu\n", i);
19589     }
19590   exit (ferror (f) || fclose (f) != 0);
19591
19592   ;
19593   return 0;
19594 }
19595 _ACEOF
19596 rm -f conftest$ac_exeext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19598   (eval $ac_link) 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603   (eval $ac_try) 2>&5
19604   ac_status=$?
19605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); }; }; then
19607   ac_cv_sizeof_wchar_t=`cat conftest.val`
19608 else
19609   echo "$as_me: program exited with status $ac_status" >&5
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 ( exit $ac_status )
19614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19615 See \`config.log' for more details." >&5
19616 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19617 See \`config.log' for more details." >&2;}
19618    { (exit 1); exit 1; }; }
19619 fi
19620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19621 fi
19622 fi
19623 rm -f conftest.val
19624 else
19625   ac_cv_sizeof_wchar_t=0
19626 fi
19627 fi
19628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19629 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19630 cat >>confdefs.h <<_ACEOF
19631 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19632 _ACEOF
19633
19634
19635
19636 echo "$as_me:$LINENO: checking for va_copy" >&5
19637 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19638 if test "${wx_cv_func_va_copy+set}" = set; then
19639   echo $ECHO_N "(cached) $ECHO_C" >&6
19640 else
19641
19642         cat >conftest.$ac_ext <<_ACEOF
19643
19644             #include <stdarg.h>
19645             void foo(char *f, ...)
19646             {
19647                 va_list ap1, ap2;
19648                 va_start(ap1, f);
19649                 va_copy(ap2, ap1);
19650                 va_end(ap2);
19651                 va_end(ap1);
19652             }
19653             int main()
19654             {
19655                 foo("hi", 17);
19656                 return 0;
19657             }
19658 _ACEOF
19659 rm -f conftest.$ac_objext conftest$ac_exeext
19660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19661   (eval $ac_link) 2>conftest.er1
19662   ac_status=$?
19663   grep -v '^ *+' conftest.er1 >conftest.err
19664   rm -f conftest.er1
19665   cat conftest.err >&5
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); } &&
19668          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670   (eval $ac_try) 2>&5
19671   ac_status=$?
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); }; } &&
19674          { ac_try='test -s conftest$ac_exeext'
19675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676   (eval $ac_try) 2>&5
19677   ac_status=$?
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); }; }; then
19680   wx_cv_func_va_copy=yes
19681 else
19682   echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19684
19685 wx_cv_func_va_copy=no
19686
19687 fi
19688 rm -f conftest.err conftest.$ac_objext \
19689       conftest$ac_exeext conftest.$ac_ext
19690
19691
19692 fi
19693 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19694 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19695
19696 if test $wx_cv_func_va_copy = "yes"; then
19697     cat >>confdefs.h <<\_ACEOF
19698 #define HAVE_VA_COPY 1
19699 _ACEOF
19700
19701 else
19702         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19703 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19704 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19705   echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707
19708             if test "$cross_compiling" = yes; then
19709                   wx_cv_type_va_list_lvalue=yes
19710
19711 else
19712   cat >conftest.$ac_ext <<_ACEOF
19713
19714                 #include <stdarg.h>
19715                 int foo(char *f, ...)
19716                 {
19717                     va_list ap1, ap2;
19718                     va_start(ap1, f);
19719                     ap2 = ap1;
19720                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19721                         return 1;
19722                     va_end(ap2);
19723                     va_end(ap1);
19724                     return 0;
19725                 }
19726                 int main()
19727                 {
19728                     return foo("hi", 17);
19729                 }
19730 _ACEOF
19731 rm -f conftest$ac_exeext
19732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19733   (eval $ac_link) 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738   (eval $ac_try) 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; }; then
19742   wx_cv_type_va_list_lvalue=yes
19743 else
19744   echo "$as_me: program exited with status $ac_status" >&5
19745 echo "$as_me: failed program was:" >&5
19746 sed 's/^/| /' conftest.$ac_ext >&5
19747
19748 ( exit $ac_status )
19749 wx_cv_type_va_list_lvalue=no
19750 fi
19751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19752 fi
19753
19754
19755 fi
19756 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19757 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19758
19759     if test $wx_cv_type_va_list_lvalue != "yes"; then
19760                         cat >>confdefs.h <<\_ACEOF
19761 #define VA_LIST_IS_ARRAY 1
19762 _ACEOF
19763
19764     fi
19765 fi
19766
19767 # Check whether --enable-largefile or --disable-largefile was given.
19768 if test "${enable_largefile+set}" = set; then
19769   enableval="$enable_largefile"
19770
19771 fi;
19772 if test "$enable_largefile" != no; then
19773             wx_largefile=no
19774
19775     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19776 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19777 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19778   echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780
19781           cat >conftest.$ac_ext <<_ACEOF
19782 /* confdefs.h.  */
19783 _ACEOF
19784 cat confdefs.h >>conftest.$ac_ext
19785 cat >>conftest.$ac_ext <<_ACEOF
19786 /* end confdefs.h.  */
19787 #define _FILE_OFFSET_BITS 64
19788                           #include <sys/types.h>
19789 int
19790 main ()
19791 {
19792 typedef struct {
19793     unsigned int field: sizeof(off_t) == 8;
19794 } wxlf;
19795
19796   ;
19797   return 0;
19798 }
19799 _ACEOF
19800 rm -f conftest.$ac_objext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19802   (eval $ac_compile) 2>conftest.er1
19803   ac_status=$?
19804   grep -v '^ *+' conftest.er1 >conftest.err
19805   rm -f conftest.er1
19806   cat conftest.err >&5
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); } &&
19809          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811   (eval $ac_try) 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; } &&
19815          { ac_try='test -s conftest.$ac_objext'
19816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817   (eval $ac_try) 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); }; }; then
19821   ac_cv_sys_file_offset_bits=64
19822 else
19823   echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826 ac_cv_sys_file_offset_bits=no
19827 fi
19828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19829
19830
19831 fi
19832 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19833 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19834
19835     if test "$ac_cv_sys_file_offset_bits" != no; then
19836         wx_largefile=yes
19837         cat >>confdefs.h <<_ACEOF
19838 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19839 _ACEOF
19840
19841     fi
19842
19843     if test "x$wx_largefile" != "xyes"; then
19844
19845     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19846 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19847 if test "${ac_cv_sys_large_files+set}" = set; then
19848   echo $ECHO_N "(cached) $ECHO_C" >&6
19849 else
19850
19851           cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h.  */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h.  */
19857 #define _LARGE_FILES 1
19858                           #include <sys/types.h>
19859 int
19860 main ()
19861 {
19862 typedef struct {
19863     unsigned int field: sizeof(off_t) == 8;
19864 } wxlf;
19865
19866   ;
19867   return 0;
19868 }
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19872   (eval $ac_compile) 2>conftest.er1
19873   ac_status=$?
19874   grep -v '^ *+' conftest.er1 >conftest.err
19875   rm -f conftest.er1
19876   cat conftest.err >&5
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); } &&
19879          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881   (eval $ac_try) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; } &&
19885          { ac_try='test -s conftest.$ac_objext'
19886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887   (eval $ac_try) 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }; }; then
19891   ac_cv_sys_large_files=1
19892 else
19893   echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 ac_cv_sys_large_files=no
19897 fi
19898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19899
19900
19901 fi
19902 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19903 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19904
19905     if test "$ac_cv_sys_large_files" != no; then
19906         wx_largefile=yes
19907         cat >>confdefs.h <<_ACEOF
19908 #define _LARGE_FILES $ac_cv_sys_large_files
19909 _ACEOF
19910
19911     fi
19912
19913     fi
19914
19915     echo "$as_me:$LINENO: checking if large file support is available" >&5
19916 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19917     if test "x$wx_largefile" = "xyes"; then
19918         cat >>confdefs.h <<\_ACEOF
19919 #define HAVE_LARGEFILE_SUPPORT 1
19920 _ACEOF
19921
19922     fi
19923     echo "$as_me:$LINENO: result: $wx_largefile" >&5
19924 echo "${ECHO_T}$wx_largefile" >&6
19925 fi
19926
19927
19928 if test "x$wx_largefile" = "xyes"; then
19929     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19930         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19931     else
19932         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19933     fi
19934         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19935 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19936 if test "${ac_cv_sys_largefile_source+set}" = set; then
19937   echo $ECHO_N "(cached) $ECHO_C" >&6
19938 else
19939   while :; do
19940   ac_cv_sys_largefile_source=no
19941   cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h.  */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h.  */
19947 #include <stdio.h>
19948 int
19949 main ()
19950 {
19951 return !fseeko;
19952   ;
19953   return 0;
19954 }
19955 _ACEOF
19956 rm -f conftest.$ac_objext
19957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19958   (eval $ac_compile) 2>conftest.er1
19959   ac_status=$?
19960   grep -v '^ *+' conftest.er1 >conftest.err
19961   rm -f conftest.er1
19962   cat conftest.err >&5
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); } &&
19965          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967   (eval $ac_try) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; } &&
19971          { ac_try='test -s conftest.$ac_objext'
19972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973   (eval $ac_try) 2>&5
19974   ac_status=$?
19975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976   (exit $ac_status); }; }; then
19977   break
19978 else
19979   echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19981
19982 fi
19983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19984   cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h.  */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h.  */
19990 #define _LARGEFILE_SOURCE 1
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   ac_cv_sys_largefile_source=1; 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   break
20029 done
20030 fi
20031 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20032 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20033 if test "$ac_cv_sys_largefile_source" != no; then
20034
20035 cat >>confdefs.h <<_ACEOF
20036 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20037 _ACEOF
20038
20039 fi
20040 rm -f conftest*
20041
20042 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20043 # in glibc 2.1.3, but that breaks too many other things.
20044 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20045 echo "$as_me:$LINENO: checking for fseeko" >&5
20046 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20047 if test "${ac_cv_func_fseeko+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050   cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056 #include <stdio.h>
20057 int
20058 main ()
20059 {
20060 return fseeko && fseeko (stdin, 0, 0);
20061   ;
20062   return 0;
20063 }
20064 _ACEOF
20065 rm -f conftest.$ac_objext conftest$ac_exeext
20066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20067   (eval $ac_link) 2>conftest.er1
20068   ac_status=$?
20069   grep -v '^ *+' conftest.er1 >conftest.err
20070   rm -f conftest.er1
20071   cat conftest.err >&5
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); } &&
20074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20076   (eval $ac_try) 2>&5
20077   ac_status=$?
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); }; } &&
20080          { ac_try='test -s conftest$ac_exeext'
20081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20082   (eval $ac_try) 2>&5
20083   ac_status=$?
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); }; }; then
20086   ac_cv_func_fseeko=yes
20087 else
20088   echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20090
20091 ac_cv_func_fseeko=no
20092 fi
20093 rm -f conftest.err conftest.$ac_objext \
20094       conftest$ac_exeext conftest.$ac_ext
20095 fi
20096 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20097 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20098 if test $ac_cv_func_fseeko = yes; then
20099
20100 cat >>confdefs.h <<\_ACEOF
20101 #define HAVE_FSEEKO 1
20102 _ACEOF
20103
20104 fi
20105
20106     if test "$ac_cv_sys_largefile_source" != no; then
20107         WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
20108     fi
20109     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20110 fi
20111
20112 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20113 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20114 if test "${ac_cv_c_bigendian+set}" = set; then
20115   echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117   ac_cv_c_bigendian=unknown
20118 # See if sys/param.h defines the BYTE_ORDER macro.
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h.  */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h.  */
20125 #include <sys/types.h>
20126 #include <sys/param.h>
20127 int
20128 main ()
20129 {
20130
20131 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20132  bogus endian macros
20133 #endif
20134   ;
20135   return 0;
20136 }
20137 _ACEOF
20138 rm -f conftest.$ac_objext
20139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20140   (eval $ac_compile) 2>conftest.er1
20141   ac_status=$?
20142   grep -v '^ *+' conftest.er1 >conftest.err
20143   rm -f conftest.er1
20144   cat conftest.err >&5
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); } &&
20147          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149   (eval $ac_try) 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); }; } &&
20153          { ac_try='test -s conftest.$ac_objext'
20154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155   (eval $ac_try) 2>&5
20156   ac_status=$?
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); }; }; then
20159   # It does; now see whether it defined to BIG_ENDIAN or not.
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h.  */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h.  */
20166 #include <sys/types.h>
20167 #include <sys/param.h>
20168 int
20169 main ()
20170 {
20171
20172 #if BYTE_ORDER != BIG_ENDIAN
20173  not big endian
20174 #endif
20175   ;
20176   return 0;
20177 }
20178 _ACEOF
20179 rm -f conftest.$ac_objext
20180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20181   (eval $ac_compile) 2>conftest.er1
20182   ac_status=$?
20183   grep -v '^ *+' conftest.er1 >conftest.err
20184   rm -f conftest.er1
20185   cat conftest.err >&5
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); } &&
20188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190   (eval $ac_try) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); }; } &&
20194          { ac_try='test -s conftest.$ac_objext'
20195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196   (eval $ac_try) 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; }; then
20200   ac_cv_c_bigendian=yes
20201 else
20202   echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205 ac_cv_c_bigendian=no
20206 fi
20207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20208 else
20209   echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20211
20212 fi
20213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20214 if test $ac_cv_c_bigendian = unknown; then
20215 if test "$cross_compiling" = yes; then
20216   ac_cv_c_bigendian=unknown
20217 else
20218   cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h.  */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h.  */
20224 main () {
20225   /* Are we little or big endian?  From Harbison&Steele.  */
20226   union
20227   {
20228     long l;
20229     char c[sizeof (long)];
20230   } u;
20231   u.l = 1;
20232   exit (u.c[sizeof (long) - 1] == 1);
20233 }
20234 _ACEOF
20235 rm -f conftest$ac_exeext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20237   (eval $ac_link) 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242   (eval $ac_try) 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   ac_cv_c_bigendian=no
20247 else
20248   echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 ( exit $ac_status )
20253 ac_cv_c_bigendian=yes
20254 fi
20255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20256 fi
20257 fi
20258 fi
20259 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20260 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20261 if test $ac_cv_c_bigendian = unknown; then
20262   { 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
20263 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;}
20264 fi
20265 if test $ac_cv_c_bigendian = yes; then
20266   cat >>confdefs.h <<\_ACEOF
20267 #define WORDS_BIGENDIAN 1
20268 _ACEOF
20269
20270 fi
20271
20272
20273 ac_ext=cc
20274 ac_cpp='$CXXCPP $CPPFLAGS'
20275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20278 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20279 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20280 if test -z "$CXXCPP"; then
20281   if test "${ac_cv_prog_CXXCPP+set}" = set; then
20282   echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284       # Double quotes because CXXCPP needs to be expanded
20285     for CXXCPP in "$CXX -E" "/lib/cpp"
20286     do
20287       ac_preproc_ok=false
20288 for ac_cxx_preproc_warn_flag in '' yes
20289 do
20290   # Use a header file that comes with gcc, so configuring glibc
20291   # with a fresh cross-compiler works.
20292   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20293   # <limits.h> exists even on freestanding compilers.
20294   # On the NeXT, cc -E runs the code through the compiler's parser,
20295   # not just through cpp. "Syntax error" is here to catch this case.
20296   cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h.  */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h.  */
20302 #ifdef __STDC__
20303 # include <limits.h>
20304 #else
20305 # include <assert.h>
20306 #endif
20307                      Syntax error
20308 _ACEOF
20309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20310   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20311   ac_status=$?
20312   grep -v '^ *+' conftest.er1 >conftest.err
20313   rm -f conftest.er1
20314   cat conftest.err >&5
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); } >/dev/null; then
20317   if test -s conftest.err; then
20318     ac_cpp_err=$ac_cxx_preproc_warn_flag
20319     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20320   else
20321     ac_cpp_err=
20322   fi
20323 else
20324   ac_cpp_err=yes
20325 fi
20326 if test -z "$ac_cpp_err"; then
20327   :
20328 else
20329   echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20331
20332   # Broken: fails on valid input.
20333 continue
20334 fi
20335 rm -f conftest.err conftest.$ac_ext
20336
20337   # OK, works on sane cases.  Now check whether non-existent headers
20338   # can be detected and how.
20339   cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h.  */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h.  */
20345 #include <ac_nonexistent.h>
20346 _ACEOF
20347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20348   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20349   ac_status=$?
20350   grep -v '^ *+' conftest.er1 >conftest.err
20351   rm -f conftest.er1
20352   cat conftest.err >&5
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); } >/dev/null; then
20355   if test -s conftest.err; then
20356     ac_cpp_err=$ac_cxx_preproc_warn_flag
20357     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20358   else
20359     ac_cpp_err=
20360   fi
20361 else
20362   ac_cpp_err=yes
20363 fi
20364 if test -z "$ac_cpp_err"; then
20365   # Broken: success on invalid input.
20366 continue
20367 else
20368   echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20370
20371   # Passes both tests.
20372 ac_preproc_ok=:
20373 break
20374 fi
20375 rm -f conftest.err conftest.$ac_ext
20376
20377 done
20378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20379 rm -f conftest.err conftest.$ac_ext
20380 if $ac_preproc_ok; then
20381   break
20382 fi
20383
20384     done
20385     ac_cv_prog_CXXCPP=$CXXCPP
20386
20387 fi
20388   CXXCPP=$ac_cv_prog_CXXCPP
20389 else
20390   ac_cv_prog_CXXCPP=$CXXCPP
20391 fi
20392 echo "$as_me:$LINENO: result: $CXXCPP" >&5
20393 echo "${ECHO_T}$CXXCPP" >&6
20394 ac_preproc_ok=false
20395 for ac_cxx_preproc_warn_flag in '' yes
20396 do
20397   # Use a header file that comes with gcc, so configuring glibc
20398   # with a fresh cross-compiler works.
20399   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20400   # <limits.h> exists even on freestanding compilers.
20401   # On the NeXT, cc -E runs the code through the compiler's parser,
20402   # not just through cpp. "Syntax error" is here to catch this case.
20403   cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h.  */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h.  */
20409 #ifdef __STDC__
20410 # include <limits.h>
20411 #else
20412 # include <assert.h>
20413 #endif
20414                      Syntax error
20415 _ACEOF
20416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20418   ac_status=$?
20419   grep -v '^ *+' conftest.er1 >conftest.err
20420   rm -f conftest.er1
20421   cat conftest.err >&5
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); } >/dev/null; then
20424   if test -s conftest.err; then
20425     ac_cpp_err=$ac_cxx_preproc_warn_flag
20426     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20427   else
20428     ac_cpp_err=
20429   fi
20430 else
20431   ac_cpp_err=yes
20432 fi
20433 if test -z "$ac_cpp_err"; then
20434   :
20435 else
20436   echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439   # Broken: fails on valid input.
20440 continue
20441 fi
20442 rm -f conftest.err conftest.$ac_ext
20443
20444   # OK, works on sane cases.  Now check whether non-existent headers
20445   # can be detected and how.
20446   cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452 #include <ac_nonexistent.h>
20453 _ACEOF
20454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20455   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20456   ac_status=$?
20457   grep -v '^ *+' conftest.er1 >conftest.err
20458   rm -f conftest.er1
20459   cat conftest.err >&5
20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461   (exit $ac_status); } >/dev/null; then
20462   if test -s conftest.err; then
20463     ac_cpp_err=$ac_cxx_preproc_warn_flag
20464     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20465   else
20466     ac_cpp_err=
20467   fi
20468 else
20469   ac_cpp_err=yes
20470 fi
20471 if test -z "$ac_cpp_err"; then
20472   # Broken: success on invalid input.
20473 continue
20474 else
20475   echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20477
20478   # Passes both tests.
20479 ac_preproc_ok=:
20480 break
20481 fi
20482 rm -f conftest.err conftest.$ac_ext
20483
20484 done
20485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20486 rm -f conftest.err conftest.$ac_ext
20487 if $ac_preproc_ok; then
20488   :
20489 else
20490   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20491 See \`config.log' for more details." >&5
20492 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20493 See \`config.log' for more details." >&2;}
20494    { (exit 1); exit 1; }; }
20495 fi
20496
20497 ac_ext=cc
20498 ac_cpp='$CXXCPP $CPPFLAGS'
20499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20502
20503
20504
20505
20506
20507     ac_ext=cc
20508 ac_cpp='$CXXCPP $CPPFLAGS'
20509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20512
20513
20514
20515 for ac_header in iostream
20516 do
20517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20519   echo "$as_me:$LINENO: checking for $ac_header" >&5
20520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20522   echo $ECHO_N "(cached) $ECHO_C" >&6
20523 fi
20524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20526 else
20527   # Is the header compilable?
20528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h.  */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h.  */
20536 $ac_includes_default
20537 #include <$ac_header>
20538 _ACEOF
20539 rm -f conftest.$ac_objext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20541   (eval $ac_compile) 2>conftest.er1
20542   ac_status=$?
20543   grep -v '^ *+' conftest.er1 >conftest.err
20544   rm -f conftest.er1
20545   cat conftest.err >&5
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); } &&
20548          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550   (eval $ac_try) 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; } &&
20554          { ac_try='test -s conftest.$ac_objext'
20555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556   (eval $ac_try) 2>&5
20557   ac_status=$?
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); }; }; then
20560   ac_header_compiler=yes
20561 else
20562   echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20564
20565 ac_header_compiler=no
20566 fi
20567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20569 echo "${ECHO_T}$ac_header_compiler" >&6
20570
20571 # Is the header present?
20572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20573 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
20581 _ACEOF
20582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20584   ac_status=$?
20585   grep -v '^ *+' conftest.er1 >conftest.err
20586   rm -f conftest.er1
20587   cat conftest.err >&5
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); } >/dev/null; then
20590   if test -s conftest.err; then
20591     ac_cpp_err=$ac_cxx_preproc_warn_flag
20592     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20593   else
20594     ac_cpp_err=
20595   fi
20596 else
20597   ac_cpp_err=yes
20598 fi
20599 if test -z "$ac_cpp_err"; then
20600   ac_header_preproc=yes
20601 else
20602   echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20604
20605   ac_header_preproc=no
20606 fi
20607 rm -f conftest.err conftest.$ac_ext
20608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20609 echo "${ECHO_T}$ac_header_preproc" >&6
20610
20611 # So?  What about this header?
20612 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20613   yes:no: )
20614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20618     ac_header_preproc=yes
20619     ;;
20620   no:yes:* )
20621     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20623     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20624 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20625     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20627     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20628 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20631     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20633     (
20634       cat <<\_ASBOX
20635 ## ----------------------------------------- ##
20636 ## Report this to wx-dev@lists.wxwidgets.org ##
20637 ## ----------------------------------------- ##
20638 _ASBOX
20639     ) |
20640       sed "s/^/$as_me: WARNING:     /" >&2
20641     ;;
20642 esac
20643 echo "$as_me:$LINENO: checking for $ac_header" >&5
20644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20646   echo $ECHO_N "(cached) $ECHO_C" >&6
20647 else
20648   eval "$as_ac_Header=\$ac_header_preproc"
20649 fi
20650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20652
20653 fi
20654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20655   cat >>confdefs.h <<_ACEOF
20656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20657 _ACEOF
20658
20659 fi
20660
20661 done
20662
20663
20664     if test "$ac_cv_header_iostream" = "yes" ; then
20665       :
20666     else
20667       cat >>confdefs.h <<\_ACEOF
20668 #define wxUSE_IOSTREAMH 1
20669 _ACEOF
20670
20671     fi
20672
20673     ac_ext=c
20674 ac_cpp='$CPP $CPPFLAGS'
20675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20678
20679
20680
20681
20682   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20683 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20684 if test "${wx_cv_cpp_bool+set}" = set; then
20685   echo $ECHO_N "(cached) $ECHO_C" >&6
20686 else
20687
20688
20689
20690     ac_ext=cc
20691 ac_cpp='$CXXCPP $CPPFLAGS'
20692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20695
20696
20697     cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h.  */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h.  */
20703
20704
20705 int
20706 main ()
20707 {
20708
20709         bool b = true;
20710
20711         return 0;
20712
20713   ;
20714   return 0;
20715 }
20716 _ACEOF
20717 rm -f conftest.$ac_objext
20718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20719   (eval $ac_compile) 2>conftest.er1
20720   ac_status=$?
20721   grep -v '^ *+' conftest.er1 >conftest.err
20722   rm -f conftest.er1
20723   cat conftest.err >&5
20724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725   (exit $ac_status); } &&
20726          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728   (eval $ac_try) 2>&5
20729   ac_status=$?
20730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731   (exit $ac_status); }; } &&
20732          { ac_try='test -s conftest.$ac_objext'
20733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734   (eval $ac_try) 2>&5
20735   ac_status=$?
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); }; }; then
20738
20739         wx_cv_cpp_bool=yes
20740
20741 else
20742   echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20744
20745
20746         wx_cv_cpp_bool=no
20747
20748
20749 fi
20750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20751
20752     ac_ext=c
20753 ac_cpp='$CPP $CPPFLAGS'
20754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20757
20758
20759 fi
20760 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20761 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20762
20763   if test "$wx_cv_cpp_bool" = "yes"; then
20764     cat >>confdefs.h <<\_ACEOF
20765 #define HAVE_BOOL 1
20766 _ACEOF
20767
20768   fi
20769
20770
20771
20772   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20773 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20774 if test "${wx_cv_explicit+set}" = set; then
20775   echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777
20778
20779
20780     ac_ext=cc
20781 ac_cpp='$CXXCPP $CPPFLAGS'
20782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20785
20786
20787             cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793
20794         class Foo { public: explicit Foo(int) {} };
20795
20796 int
20797 main ()
20798 {
20799
20800         return 0;
20801
20802   ;
20803   return 0;
20804 }
20805 _ACEOF
20806 rm -f conftest.$ac_objext
20807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20808   (eval $ac_compile) 2>conftest.er1
20809   ac_status=$?
20810   grep -v '^ *+' conftest.er1 >conftest.err
20811   rm -f conftest.er1
20812   cat conftest.err >&5
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); } &&
20815          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817   (eval $ac_try) 2>&5
20818   ac_status=$?
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); }; } &&
20821          { ac_try='test -s conftest.$ac_objext'
20822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823   (eval $ac_try) 2>&5
20824   ac_status=$?
20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); }; }; then
20827
20828         cat >conftest.$ac_ext <<_ACEOF
20829 /* confdefs.h.  */
20830 _ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h.  */
20834
20835                 class Foo { public: explicit Foo(int) {} };
20836                 static void TakeFoo(const Foo& foo) { }
20837
20838 int
20839 main ()
20840 {
20841
20842                 TakeFoo(17);
20843                 return 0;
20844
20845   ;
20846   return 0;
20847 }
20848 _ACEOF
20849 rm -f conftest.$ac_objext
20850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20851   (eval $ac_compile) 2>conftest.er1
20852   ac_status=$?
20853   grep -v '^ *+' conftest.er1 >conftest.err
20854   rm -f conftest.er1
20855   cat conftest.err >&5
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); } &&
20858          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860   (eval $ac_try) 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; } &&
20864          { ac_try='test -s conftest.$ac_objext'
20865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866   (eval $ac_try) 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; }; then
20870   wx_cv_explicit=no
20871 else
20872   echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875 wx_cv_explicit=yes
20876
20877 fi
20878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20879
20880 else
20881   echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20883
20884 wx_cv_explicit=no
20885
20886 fi
20887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20888
20889     ac_ext=c
20890 ac_cpp='$CPP $CPPFLAGS'
20891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20894
20895
20896 fi
20897 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20898 echo "${ECHO_T}$wx_cv_explicit" >&6
20899
20900   if test "$wx_cv_explicit" = "yes"; then
20901     cat >>confdefs.h <<\_ACEOF
20902 #define HAVE_EXPLICIT 1
20903 _ACEOF
20904
20905   fi
20906
20907
20908 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20909 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20910 if test "${ac_cv_cxx_const_cast+set}" = set; then
20911   echo $ECHO_N "(cached) $ECHO_C" >&6
20912 else
20913
20914
20915  ac_ext=cc
20916 ac_cpp='$CXXCPP $CPPFLAGS'
20917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20920
20921  cat >conftest.$ac_ext <<_ACEOF
20922 /* confdefs.h.  */
20923 _ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h.  */
20927
20928 int
20929 main ()
20930 {
20931 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20932   ;
20933   return 0;
20934 }
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20938   (eval $ac_compile) 2>conftest.er1
20939   ac_status=$?
20940   grep -v '^ *+' conftest.er1 >conftest.err
20941   rm -f conftest.er1
20942   cat conftest.err >&5
20943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); } &&
20945          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947   (eval $ac_try) 2>&5
20948   ac_status=$?
20949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950   (exit $ac_status); }; } &&
20951          { ac_try='test -s conftest.$ac_objext'
20952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953   (eval $ac_try) 2>&5
20954   ac_status=$?
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); }; }; then
20957   ac_cv_cxx_const_cast=yes
20958 else
20959   echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20961
20962 ac_cv_cxx_const_cast=no
20963 fi
20964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20965  ac_ext=c
20966 ac_cpp='$CPP $CPPFLAGS'
20967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20970
20971
20972 fi
20973 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20974 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20975 if test "$ac_cv_cxx_const_cast" = yes; then
20976
20977 cat >>confdefs.h <<\_ACEOF
20978 #define HAVE_CONST_CAST
20979 _ACEOF
20980
20981 fi
20982
20983 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20984 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20985 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20986   echo $ECHO_N "(cached) $ECHO_C" >&6
20987 else
20988
20989
20990  ac_ext=cc
20991 ac_cpp='$CXXCPP $CPPFLAGS'
20992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20995
20996  cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002 #include <typeinfo>
21003 class Base { public : Base () {} virtual void f () = 0;};
21004 class Derived : public Base { public : Derived () {} virtual void f () {} };
21005 class Unrelated { public : Unrelated () {} };
21006 int g (Unrelated&) { return 0; }
21007 int
21008 main ()
21009 {
21010
21011 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21012   ;
21013   return 0;
21014 }
21015 _ACEOF
21016 rm -f conftest.$ac_objext
21017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21018   (eval $ac_compile) 2>conftest.er1
21019   ac_status=$?
21020   grep -v '^ *+' conftest.er1 >conftest.err
21021   rm -f conftest.er1
21022   cat conftest.err >&5
21023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024   (exit $ac_status); } &&
21025          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027   (eval $ac_try) 2>&5
21028   ac_status=$?
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); }; } &&
21031          { ac_try='test -s conftest.$ac_objext'
21032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033   (eval $ac_try) 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; }; then
21037   ac_cv_cxx_reinterpret_cast=yes
21038 else
21039   echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21041
21042 ac_cv_cxx_reinterpret_cast=no
21043 fi
21044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21045  ac_ext=c
21046 ac_cpp='$CPP $CPPFLAGS'
21047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21050
21051
21052 fi
21053 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21054 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21055 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21056
21057 cat >>confdefs.h <<\_ACEOF
21058 #define HAVE_REINTERPRET_CAST
21059 _ACEOF
21060
21061 fi
21062
21063 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21064 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21065 if test "${ac_cv_cxx_static_cast+set}" = set; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068
21069
21070  ac_ext=cc
21071 ac_cpp='$CXXCPP $CPPFLAGS'
21072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21075
21076  cat >conftest.$ac_ext <<_ACEOF
21077 /* confdefs.h.  */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h.  */
21082 #include <typeinfo>
21083 class Base { public : Base () {} virtual void f () = 0; };
21084 class Derived : public Base { public : Derived () {} virtual void f () {} };
21085 int g (Derived&) { return 0; }
21086 int
21087 main ()
21088 {
21089
21090 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21091   ;
21092   return 0;
21093 }
21094 _ACEOF
21095 rm -f conftest.$ac_objext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21097   (eval $ac_compile) 2>conftest.er1
21098   ac_status=$?
21099   grep -v '^ *+' conftest.er1 >conftest.err
21100   rm -f conftest.er1
21101   cat conftest.err >&5
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); } &&
21104          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106   (eval $ac_try) 2>&5
21107   ac_status=$?
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); }; } &&
21110          { ac_try='test -s conftest.$ac_objext'
21111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112   (eval $ac_try) 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); }; }; then
21116   ac_cv_cxx_static_cast=yes
21117 else
21118   echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21120
21121 ac_cv_cxx_static_cast=no
21122 fi
21123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21124  ac_ext=c
21125 ac_cpp='$CPP $CPPFLAGS'
21126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21129
21130
21131 fi
21132 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21133 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21134 if test "$ac_cv_cxx_static_cast" = yes; then
21135
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_STATIC_CAST
21138 _ACEOF
21139
21140 fi
21141
21142
21143 if test "$wxUSE_STL" = "yes"; then
21144     ac_ext=cc
21145 ac_cpp='$CXXCPP $CPPFLAGS'
21146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21149
21150
21151         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21152 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21153     cat >conftest.$ac_ext <<_ACEOF
21154 /* confdefs.h.  */
21155 _ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h.  */
21159 #include <string>
21160                     #include <functional>
21161                     #include <algorithm>
21162                     #include <vector>
21163                     #include <list>
21164 int
21165 main ()
21166 {
21167 std::vector<int> moo;
21168                      std::list<int> foo;
21169                      std::vector<int>::iterator it =
21170                          std::find_if(moo.begin(), moo.end(),
21171                                       std::bind2nd(std::less<int>(), 3));
21172   ;
21173   return 0;
21174 }
21175 _ACEOF
21176 rm -f conftest.$ac_objext
21177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21178   (eval $ac_compile) 2>conftest.er1
21179   ac_status=$?
21180   grep -v '^ *+' conftest.er1 >conftest.err
21181   rm -f conftest.er1
21182   cat conftest.err >&5
21183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184   (exit $ac_status); } &&
21185          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187   (eval $ac_try) 2>&5
21188   ac_status=$?
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); }; } &&
21191          { ac_try='test -s conftest.$ac_objext'
21192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193   (eval $ac_try) 2>&5
21194   ac_status=$?
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); }; }; then
21197   echo "$as_me:$LINENO: result: yes" >&5
21198 echo "${ECHO_T}yes" >&6
21199 else
21200   echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21202
21203 echo "$as_me:$LINENO: result: no" >&5
21204 echo "${ECHO_T}no" >&6
21205                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21206 echo "$as_me: error: Basic STL functionality missing" >&2;}
21207    { (exit 1); exit 1; }; }
21208 fi
21209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21210
21211         echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21212 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
21213     cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h.  */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h.  */
21219 #include <string>
21220 int
21221 main ()
21222 {
21223 std::wstring foo;
21224   ;
21225   return 0;
21226 }
21227 _ACEOF
21228 rm -f conftest.$ac_objext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21230   (eval $ac_compile) 2>conftest.er1
21231   ac_status=$?
21232   grep -v '^ *+' conftest.er1 >conftest.err
21233   rm -f conftest.er1
21234   cat conftest.err >&5
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } &&
21237          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239   (eval $ac_try) 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); }; } &&
21243          { ac_try='test -s conftest.$ac_objext'
21244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245   (eval $ac_try) 2>&5
21246   ac_status=$?
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); }; }; then
21249   echo "$as_me:$LINENO: result: yes" >&5
21250 echo "${ECHO_T}yes" >&6
21251                     cat >>confdefs.h <<\_ACEOF
21252 #define HAVE_STD_WSTRING 1
21253 _ACEOF
21254
21255 else
21256   echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21258
21259 echo "$as_me:$LINENO: result: no" >&5
21260 echo "${ECHO_T}no" >&6
21261 fi
21262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21263
21264         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21265 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21266     cat >conftest.$ac_ext <<_ACEOF
21267 /* confdefs.h.  */
21268 _ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h.  */
21272 #include <string>
21273 int
21274 main ()
21275 {
21276 std::string foo, bar;
21277                     foo.compare(bar);
21278                     foo.compare(1, 1, bar);
21279                     foo.compare(1, 1, bar, 1, 1);
21280                     foo.compare("");
21281                     foo.compare(1, 1, "");
21282                     foo.compare(1, 1, "", 2);
21283   ;
21284   return 0;
21285 }
21286 _ACEOF
21287 rm -f conftest.$ac_objext
21288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21289   (eval $ac_compile) 2>conftest.er1
21290   ac_status=$?
21291   grep -v '^ *+' conftest.er1 >conftest.err
21292   rm -f conftest.er1
21293   cat conftest.err >&5
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); } &&
21296          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298   (eval $ac_try) 2>&5
21299   ac_status=$?
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); }; } &&
21302          { ac_try='test -s conftest.$ac_objext'
21303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304   (eval $ac_try) 2>&5
21305   ac_status=$?
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); }; }; then
21308   echo "$as_me:$LINENO: result: yes" >&5
21309 echo "${ECHO_T}yes" >&6
21310                     cat >>confdefs.h <<\_ACEOF
21311 #define HAVE_STD_STRING_COMPARE 1
21312 _ACEOF
21313
21314 else
21315   echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21317
21318 echo "$as_me:$LINENO: result: no" >&5
21319 echo "${ECHO_T}no" >&6
21320 fi
21321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21322
21323         if test "${ac_cv_header_hash_map+set}" = set; then
21324   echo "$as_me:$LINENO: checking for hash_map" >&5
21325 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21326 if test "${ac_cv_header_hash_map+set}" = set; then
21327   echo $ECHO_N "(cached) $ECHO_C" >&6
21328 fi
21329 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21330 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21331 else
21332   # Is the header compilable?
21333 echo "$as_me:$LINENO: checking hash_map usability" >&5
21334 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21335 cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341 $ac_includes_default
21342 #include <hash_map>
21343 _ACEOF
21344 rm -f conftest.$ac_objext
21345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21346   (eval $ac_compile) 2>conftest.er1
21347   ac_status=$?
21348   grep -v '^ *+' conftest.er1 >conftest.err
21349   rm -f conftest.er1
21350   cat conftest.err >&5
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); } &&
21353          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355   (eval $ac_try) 2>&5
21356   ac_status=$?
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); }; } &&
21359          { ac_try='test -s conftest.$ac_objext'
21360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361   (eval $ac_try) 2>&5
21362   ac_status=$?
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); }; }; then
21365   ac_header_compiler=yes
21366 else
21367   echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21369
21370 ac_header_compiler=no
21371 fi
21372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21374 echo "${ECHO_T}$ac_header_compiler" >&6
21375
21376 # Is the header present?
21377 echo "$as_me:$LINENO: checking hash_map presence" >&5
21378 echo $ECHO_N "checking hash_map presence... $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 #include <hash_map>
21386 _ACEOF
21387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21389   ac_status=$?
21390   grep -v '^ *+' conftest.er1 >conftest.err
21391   rm -f conftest.er1
21392   cat conftest.err >&5
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); } >/dev/null; then
21395   if test -s conftest.err; then
21396     ac_cpp_err=$ac_cxx_preproc_warn_flag
21397     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21398   else
21399     ac_cpp_err=
21400   fi
21401 else
21402   ac_cpp_err=yes
21403 fi
21404 if test -z "$ac_cpp_err"; then
21405   ac_header_preproc=yes
21406 else
21407   echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21409
21410   ac_header_preproc=no
21411 fi
21412 rm -f conftest.err conftest.$ac_ext
21413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21414 echo "${ECHO_T}$ac_header_preproc" >&6
21415
21416 # So?  What about this header?
21417 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21418   yes:no: )
21419     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21420 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
21421     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21422 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21423     ac_header_preproc=yes
21424     ;;
21425   no:yes:* )
21426     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21427 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
21428     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
21429 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
21430     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21431 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21432     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
21433 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
21434     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21435 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
21436     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21437 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
21438     (
21439       cat <<\_ASBOX
21440 ## ----------------------------------------- ##
21441 ## Report this to wx-dev@lists.wxwidgets.org ##
21442 ## ----------------------------------------- ##
21443 _ASBOX
21444     ) |
21445       sed "s/^/$as_me: WARNING:     /" >&2
21446     ;;
21447 esac
21448 echo "$as_me:$LINENO: checking for hash_map" >&5
21449 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21450 if test "${ac_cv_header_hash_map+set}" = set; then
21451   echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453   ac_cv_header_hash_map=$ac_header_preproc
21454 fi
21455 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21456 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21457
21458 fi
21459 if test $ac_cv_header_hash_map = yes; then
21460   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21461 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21462                      cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468 #include <hash_map>
21469                                      #include <hash_set>
21470 int
21471 main ()
21472 {
21473 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21474                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21475   ;
21476   return 0;
21477 }
21478 _ACEOF
21479 rm -f conftest.$ac_objext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21481   (eval $ac_compile) 2>conftest.er1
21482   ac_status=$?
21483   grep -v '^ *+' conftest.er1 >conftest.err
21484   rm -f conftest.er1
21485   cat conftest.err >&5
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); } &&
21488          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490   (eval $ac_try) 2>&5
21491   ac_status=$?
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); }; } &&
21494          { ac_try='test -s conftest.$ac_objext'
21495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496   (eval $ac_try) 2>&5
21497   ac_status=$?
21498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499   (exit $ac_status); }; }; then
21500   echo "$as_me:$LINENO: result: yes" >&5
21501 echo "${ECHO_T}yes" >&6
21502                                      cat >>confdefs.h <<\_ACEOF
21503 #define HAVE_HASH_MAP 1
21504 _ACEOF
21505
21506                                      cat >>confdefs.h <<\_ACEOF
21507 #define HAVE_STD_HASH_MAP 1
21508 _ACEOF
21509
21510 else
21511   echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21513
21514 echo "$as_me:$LINENO: result: no" >&5
21515 echo "${ECHO_T}no" >&6
21516 fi
21517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21518
21519 fi
21520
21521
21522
21523     if test "${ac_cv_header_ext_hash_map+set}" = set; then
21524   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21525 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21526 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21527   echo $ECHO_N "(cached) $ECHO_C" >&6
21528 fi
21529 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21530 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21531 else
21532   # Is the header compilable?
21533 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21534 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21535 cat >conftest.$ac_ext <<_ACEOF
21536 /* confdefs.h.  */
21537 _ACEOF
21538 cat confdefs.h >>conftest.$ac_ext
21539 cat >>conftest.$ac_ext <<_ACEOF
21540 /* end confdefs.h.  */
21541 $ac_includes_default
21542 #include <ext/hash_map>
21543 _ACEOF
21544 rm -f conftest.$ac_objext
21545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21546   (eval $ac_compile) 2>conftest.er1
21547   ac_status=$?
21548   grep -v '^ *+' conftest.er1 >conftest.err
21549   rm -f conftest.er1
21550   cat conftest.err >&5
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); } &&
21553          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555   (eval $ac_try) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); }; } &&
21559          { ac_try='test -s conftest.$ac_objext'
21560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561   (eval $ac_try) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; }; then
21565   ac_header_compiler=yes
21566 else
21567   echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 ac_header_compiler=no
21571 fi
21572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21574 echo "${ECHO_T}$ac_header_compiler" >&6
21575
21576 # Is the header present?
21577 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21578 echo $ECHO_N "checking ext/hash_map presence... $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 #include <ext/hash_map>
21586 _ACEOF
21587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21589   ac_status=$?
21590   grep -v '^ *+' conftest.er1 >conftest.err
21591   rm -f conftest.er1
21592   cat conftest.err >&5
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); } >/dev/null; then
21595   if test -s conftest.err; then
21596     ac_cpp_err=$ac_cxx_preproc_warn_flag
21597     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21598   else
21599     ac_cpp_err=
21600   fi
21601 else
21602   ac_cpp_err=yes
21603 fi
21604 if test -z "$ac_cpp_err"; then
21605   ac_header_preproc=yes
21606 else
21607   echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610   ac_header_preproc=no
21611 fi
21612 rm -f conftest.err conftest.$ac_ext
21613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21614 echo "${ECHO_T}$ac_header_preproc" >&6
21615
21616 # So?  What about this header?
21617 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21618   yes:no: )
21619     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21620 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
21621     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21622 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21623     ac_header_preproc=yes
21624     ;;
21625   no:yes:* )
21626     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21627 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
21628     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
21629 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
21630     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21631 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21632     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
21633 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
21634     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21635 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
21636     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21637 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
21638     (
21639       cat <<\_ASBOX
21640 ## ----------------------------------------- ##
21641 ## Report this to wx-dev@lists.wxwidgets.org ##
21642 ## ----------------------------------------- ##
21643 _ASBOX
21644     ) |
21645       sed "s/^/$as_me: WARNING:     /" >&2
21646     ;;
21647 esac
21648 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21649 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21650 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21651   echo $ECHO_N "(cached) $ECHO_C" >&6
21652 else
21653   ac_cv_header_ext_hash_map=$ac_header_preproc
21654 fi
21655 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21656 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21657
21658 fi
21659 if test $ac_cv_header_ext_hash_map = yes; then
21660   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21661 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21662                      cat >conftest.$ac_ext <<_ACEOF
21663 /* confdefs.h.  */
21664 _ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h.  */
21668 #include <ext/hash_map>
21669                                      #include <ext/hash_set>
21670 int
21671 main ()
21672 {
21673 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21674                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21675   ;
21676   return 0;
21677 }
21678 _ACEOF
21679 rm -f conftest.$ac_objext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21681   (eval $ac_compile) 2>conftest.er1
21682   ac_status=$?
21683   grep -v '^ *+' conftest.er1 >conftest.err
21684   rm -f conftest.er1
21685   cat conftest.err >&5
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } &&
21688          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690   (eval $ac_try) 2>&5
21691   ac_status=$?
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); }; } &&
21694          { ac_try='test -s conftest.$ac_objext'
21695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696   (eval $ac_try) 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); }; }; then
21700   echo "$as_me:$LINENO: result: yes" >&5
21701 echo "${ECHO_T}yes" >&6
21702                                      cat >>confdefs.h <<\_ACEOF
21703 #define HAVE_EXT_HASH_MAP 1
21704 _ACEOF
21705
21706                                      cat >>confdefs.h <<\_ACEOF
21707 #define HAVE_GNU_CXX_HASH_MAP 1
21708 _ACEOF
21709
21710 else
21711   echo "$as_me: failed program was:" >&5
21712 sed 's/^/| /' conftest.$ac_ext >&5
21713
21714 echo "$as_me:$LINENO: result: no" >&5
21715 echo "${ECHO_T}no" >&6
21716 fi
21717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21718
21719 fi
21720
21721
21722
21723     ac_ext=c
21724 ac_cpp='$CPP $CPPFLAGS'
21725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21728
21729 fi
21730
21731
21732 SEARCH_INCLUDE="\
21733     /usr/local/include        \
21734                               \
21735     /usr/Motif-2.1/include    \
21736     /usr/Motif-1.2/include    \
21737     /usr/include/Motif1.2     \
21738     /opt/xpm/include/X11      \
21739     /opt/GBxpm/include/       \
21740     /opt/GBxpm/X11/include/   \
21741                               \
21742     /usr/dt/include           \
21743     /usr/openwin/include      \
21744                               \
21745     /usr/include/Xm           \
21746                               \
21747     /usr/X11R6/include        \
21748     /usr/X11R6.4/include      \
21749     /usr/X11R5/include        \
21750     /usr/X11R4/include        \
21751                               \
21752     /usr/include/X11R6        \
21753     /usr/include/X11R5        \
21754     /usr/include/X11R4        \
21755                               \
21756     /usr/local/X11R6/include  \
21757     /usr/local/X11R5/include  \
21758     /usr/local/X11R4/include  \
21759                               \
21760     /usr/local/include/X11R6  \
21761     /usr/local/include/X11R5  \
21762     /usr/local/include/X11R4  \
21763                               \
21764     /usr/X11/include          \
21765     /usr/include/X11          \
21766     /usr/local/X11/include    \
21767     /usr/local/include/X11    \
21768                               \
21769     /usr/X386/include         \
21770     /usr/x386/include         \
21771     /usr/XFree86/include/X11  \
21772                               \
21773     X:/XFree86/include        \
21774     X:/XFree86/include/X11    \
21775                               \
21776     /usr/include/gtk          \
21777     /usr/local/include/gtk    \
21778     /usr/include/glib         \
21779     /usr/local/include/glib   \
21780                               \
21781     /usr/include/qt           \
21782     /usr/local/include/qt     \
21783                               \
21784     /usr/local/arm/3.3.2/include     \
21785                               \
21786     /usr/include/windows      \
21787     /usr/include/wine         \
21788     /usr/local/include/wine   \
21789                               \
21790     /usr/unsupported/include  \
21791     /usr/athena/include       \
21792     /usr/local/x11r5/include  \
21793     /usr/lpp/Xamples/include  \
21794                               \
21795     /usr/openwin/share/include"
21796
21797 SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
21798
21799
21800 cat >confcache <<\_ACEOF
21801 # This file is a shell script that caches the results of configure
21802 # tests run on this system so they can be shared between configure
21803 # scripts and configure runs, see configure's option --config-cache.
21804 # It is not useful on other systems.  If it contains results you don't
21805 # want to keep, you may remove or edit it.
21806 #
21807 # config.status only pays attention to the cache file if you give it
21808 # the --recheck option to rerun configure.
21809 #
21810 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21811 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21812 # following values.
21813
21814 _ACEOF
21815
21816 # The following way of writing the cache mishandles newlines in values,
21817 # but we know of no workaround that is simple, portable, and efficient.
21818 # So, don't put newlines in cache variables' values.
21819 # Ultrix sh set writes to stderr and can't be redirected directly,
21820 # and sets the high bit in the cache file unless we assign to the vars.
21821 {
21822   (set) 2>&1 |
21823     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21824     *ac_space=\ *)
21825       # `set' does not quote correctly, so add quotes (double-quote
21826       # substitution turns \\\\ into \\, and sed turns \\ into \).
21827       sed -n \
21828         "s/'/'\\\\''/g;
21829           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21830       ;;
21831     *)
21832       # `set' quotes correctly as required by POSIX, so do not add quotes.
21833       sed -n \
21834         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21835       ;;
21836     esac;
21837 } |
21838   sed '
21839      t clear
21840      : clear
21841      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21842      t end
21843      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21844      : end' >>confcache
21845 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21846   if test -w $cache_file; then
21847     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21848     cat confcache >$cache_file
21849   else
21850     echo "not updating unwritable cache $cache_file"
21851   fi
21852 fi
21853 rm -f confcache
21854
21855 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21856     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21857 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21858 if test "${wx_cv_lib_glibc21+set}" = set; then
21859   echo $ECHO_N "(cached) $ECHO_C" >&6
21860 else
21861
21862         cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h.  */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h.  */
21868 #include <features.h>
21869 int
21870 main ()
21871 {
21872
21873                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21874                     #error not glibc2.1
21875                 #endif
21876
21877   ;
21878   return 0;
21879 }
21880 _ACEOF
21881 rm -f conftest.$ac_objext
21882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21883   (eval $ac_compile) 2>conftest.er1
21884   ac_status=$?
21885   grep -v '^ *+' conftest.er1 >conftest.err
21886   rm -f conftest.er1
21887   cat conftest.err >&5
21888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889   (exit $ac_status); } &&
21890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892   (eval $ac_try) 2>&5
21893   ac_status=$?
21894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); }; } &&
21896          { ac_try='test -s conftest.$ac_objext'
21897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898   (eval $ac_try) 2>&5
21899   ac_status=$?
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); }; }; then
21902
21903                 wx_cv_lib_glibc21=yes
21904
21905 else
21906   echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21908
21909
21910                 wx_cv_lib_glibc21=no
21911
21912
21913 fi
21914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21915
21916 fi
21917 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21918 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21919     if test "$wx_cv_lib_glibc21" = "yes"; then
21920         cat >>confdefs.h <<\_ACEOF
21921 #define wxHAVE_GLIBC2 1
21922 _ACEOF
21923
21924     fi
21925 fi
21926
21927 if test "x$wx_cv_lib_glibc21" = "xyes"; then
21928     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21929         cat >>confdefs.h <<\_ACEOF
21930 #define _GNU_SOURCE 1
21931 _ACEOF
21932
21933     fi
21934 fi
21935
21936
21937
21938 if test "$wxUSE_REGEX" != "no"; then
21939     cat >>confdefs.h <<\_ACEOF
21940 #define wxUSE_REGEX 1
21941 _ACEOF
21942
21943
21944     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21945         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21946 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21947         wxUSE_REGEX=builtin
21948     fi
21949
21950     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21951                         if test "${ac_cv_header_regex_h+set}" = set; then
21952   echo "$as_me:$LINENO: checking for regex.h" >&5
21953 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21954 if test "${ac_cv_header_regex_h+set}" = set; then
21955   echo $ECHO_N "(cached) $ECHO_C" >&6
21956 fi
21957 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21958 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21959 else
21960   # Is the header compilable?
21961 echo "$as_me:$LINENO: checking regex.h usability" >&5
21962 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21963 cat >conftest.$ac_ext <<_ACEOF
21964 /* confdefs.h.  */
21965 _ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h.  */
21969 $ac_includes_default
21970 #include <regex.h>
21971 _ACEOF
21972 rm -f conftest.$ac_objext
21973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21974   (eval $ac_compile) 2>conftest.er1
21975   ac_status=$?
21976   grep -v '^ *+' conftest.er1 >conftest.err
21977   rm -f conftest.er1
21978   cat conftest.err >&5
21979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980   (exit $ac_status); } &&
21981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983   (eval $ac_try) 2>&5
21984   ac_status=$?
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); }; } &&
21987          { ac_try='test -s conftest.$ac_objext'
21988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989   (eval $ac_try) 2>&5
21990   ac_status=$?
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); }; }; then
21993   ac_header_compiler=yes
21994 else
21995   echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21997
21998 ac_header_compiler=no
21999 fi
22000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22002 echo "${ECHO_T}$ac_header_compiler" >&6
22003
22004 # Is the header present?
22005 echo "$as_me:$LINENO: checking regex.h presence" >&5
22006 echo $ECHO_N "checking regex.h presence... $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 #include <regex.h>
22014 _ACEOF
22015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22017   ac_status=$?
22018   grep -v '^ *+' conftest.er1 >conftest.err
22019   rm -f conftest.er1
22020   cat conftest.err >&5
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); } >/dev/null; then
22023   if test -s conftest.err; then
22024     ac_cpp_err=$ac_c_preproc_warn_flag
22025     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22026   else
22027     ac_cpp_err=
22028   fi
22029 else
22030   ac_cpp_err=yes
22031 fi
22032 if test -z "$ac_cpp_err"; then
22033   ac_header_preproc=yes
22034 else
22035   echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038   ac_header_preproc=no
22039 fi
22040 rm -f conftest.err conftest.$ac_ext
22041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22042 echo "${ECHO_T}$ac_header_preproc" >&6
22043
22044 # So?  What about this header?
22045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22046   yes:no: )
22047     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22048 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22049     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22050 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22051     ac_header_preproc=yes
22052     ;;
22053   no:yes:* )
22054     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22055 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22056     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22057 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22058     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22059 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22060     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22061 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22062     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22063 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22064     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22065 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22066     (
22067       cat <<\_ASBOX
22068 ## ----------------------------------------- ##
22069 ## Report this to wx-dev@lists.wxwidgets.org ##
22070 ## ----------------------------------------- ##
22071 _ASBOX
22072     ) |
22073       sed "s/^/$as_me: WARNING:     /" >&2
22074     ;;
22075 esac
22076 echo "$as_me:$LINENO: checking for regex.h" >&5
22077 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22078 if test "${ac_cv_header_regex_h+set}" = set; then
22079   echo $ECHO_N "(cached) $ECHO_C" >&6
22080 else
22081   ac_cv_header_regex_h=$ac_header_preproc
22082 fi
22083 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22084 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22085
22086 fi
22087 if test $ac_cv_header_regex_h = yes; then
22088
22089 for ac_func in regcomp
22090 do
22091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22092 echo "$as_me:$LINENO: checking for $ac_func" >&5
22093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22094 if eval "test \"\${$as_ac_var+set}\" = set"; then
22095   echo $ECHO_N "(cached) $ECHO_C" >&6
22096 else
22097   cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h.  */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h.  */
22103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22105 #define $ac_func innocuous_$ac_func
22106
22107 /* System header to define __stub macros and hopefully few prototypes,
22108     which can conflict with char $ac_func (); below.
22109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22110     <limits.h> exists even on freestanding compilers.  */
22111
22112 #ifdef __STDC__
22113 # include <limits.h>
22114 #else
22115 # include <assert.h>
22116 #endif
22117
22118 #undef $ac_func
22119
22120 /* Override any gcc2 internal prototype to avoid an error.  */
22121 #ifdef __cplusplus
22122 extern "C"
22123 {
22124 #endif
22125 /* We use char because int might match the return type of a gcc2
22126    builtin and then its argument prototype would still apply.  */
22127 char $ac_func ();
22128 /* The GNU C library defines this for functions which it implements
22129     to always fail with ENOSYS.  Some functions are actually named
22130     something starting with __ and the normal name is an alias.  */
22131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22132 choke me
22133 #else
22134 char (*f) () = $ac_func;
22135 #endif
22136 #ifdef __cplusplus
22137 }
22138 #endif
22139
22140 int
22141 main ()
22142 {
22143 return f != $ac_func;
22144   ;
22145   return 0;
22146 }
22147 _ACEOF
22148 rm -f conftest.$ac_objext conftest$ac_exeext
22149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22150   (eval $ac_link) 2>conftest.er1
22151   ac_status=$?
22152   grep -v '^ *+' conftest.er1 >conftest.err
22153   rm -f conftest.er1
22154   cat conftest.err >&5
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); } &&
22157          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159   (eval $ac_try) 2>&5
22160   ac_status=$?
22161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); }; } &&
22163          { ac_try='test -s conftest$ac_exeext'
22164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165   (eval $ac_try) 2>&5
22166   ac_status=$?
22167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168   (exit $ac_status); }; }; then
22169   eval "$as_ac_var=yes"
22170 else
22171   echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22173
22174 eval "$as_ac_var=no"
22175 fi
22176 rm -f conftest.err conftest.$ac_objext \
22177       conftest$ac_exeext conftest.$ac_ext
22178 fi
22179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22181 if test `eval echo '${'$as_ac_var'}'` = yes; then
22182   cat >>confdefs.h <<_ACEOF
22183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22184 _ACEOF
22185
22186 fi
22187 done
22188
22189 fi
22190
22191
22192
22193         if test "x$ac_cv_func_regcomp" != "xyes"; then
22194             if test "$wxUSE_REGEX" = "sys" ; then
22195                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22196 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22197    { (exit 1); exit 1; }; }
22198             else
22199                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22200 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22201                 wxUSE_REGEX=builtin
22202             fi
22203         else
22204                         wxUSE_REGEX=sys
22205                         cat >>confdefs.h <<\_ACEOF
22206 #define WX_NO_REGEX_ADVANCED 1
22207 _ACEOF
22208
22209         fi
22210     fi
22211 fi
22212
22213
22214 ZLIB_LINK=
22215 if test "$wxUSE_ZLIB" != "no" ; then
22216     cat >>confdefs.h <<\_ACEOF
22217 #define wxUSE_ZLIB 1
22218 _ACEOF
22219
22220
22221     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22222                                                 if test "$USE_DARWIN" = 1; then
22223             system_zlib_h_ok="yes"
22224         else
22225                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22226 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22227 if test "${ac_cv_header_zlib_h+set}" = set; then
22228   echo $ECHO_N "(cached) $ECHO_C" >&6
22229 else
22230   if test "$cross_compiling" = yes; then
22231                       unset ac_cv_header_zlib_h
22232
22233 else
22234   cat >conftest.$ac_ext <<_ACEOF
22235 /* confdefs.h.  */
22236 _ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h.  */
22240
22241                         #include <zlib.h>
22242                         #include <stdio.h>
22243
22244                         int main()
22245                         {
22246                             FILE *f=fopen("conftestval", "w");
22247                             if (!f) exit(1);
22248                             fprintf(f, "%s",
22249                                     ZLIB_VERSION[0] == '1' &&
22250                                     (ZLIB_VERSION[2] > '1' ||
22251                                     (ZLIB_VERSION[2] == '1' &&
22252                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22253                             exit(0);
22254                         }
22255
22256 _ACEOF
22257 rm -f conftest$ac_exeext
22258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22259   (eval $ac_link) 2>&5
22260   ac_status=$?
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264   (eval $ac_try) 2>&5
22265   ac_status=$?
22266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267   (exit $ac_status); }; }; then
22268   ac_cv_header_zlib_h=`cat conftestval`
22269 else
22270   echo "$as_me: program exited with status $ac_status" >&5
22271 echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22273
22274 ( exit $ac_status )
22275 ac_cv_header_zlib_h=no
22276 fi
22277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22278 fi
22279
22280 fi
22281 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22282 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22283                                     if test "${ac_cv_header_zlib_h+set}" = set; then
22284   echo "$as_me:$LINENO: checking for zlib.h" >&5
22285 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22286 if test "${ac_cv_header_zlib_h+set}" = set; then
22287   echo $ECHO_N "(cached) $ECHO_C" >&6
22288 fi
22289 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22290 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22291 else
22292   # Is the header compilable?
22293 echo "$as_me:$LINENO: checking zlib.h usability" >&5
22294 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22295 cat >conftest.$ac_ext <<_ACEOF
22296 /* confdefs.h.  */
22297 _ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h.  */
22301 $ac_includes_default
22302 #include <zlib.h>
22303 _ACEOF
22304 rm -f conftest.$ac_objext
22305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22306   (eval $ac_compile) 2>conftest.er1
22307   ac_status=$?
22308   grep -v '^ *+' conftest.er1 >conftest.err
22309   rm -f conftest.er1
22310   cat conftest.err >&5
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); } &&
22313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22315   (eval $ac_try) 2>&5
22316   ac_status=$?
22317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318   (exit $ac_status); }; } &&
22319          { ac_try='test -s conftest.$ac_objext'
22320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22321   (eval $ac_try) 2>&5
22322   ac_status=$?
22323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324   (exit $ac_status); }; }; then
22325   ac_header_compiler=yes
22326 else
22327   echo "$as_me: failed program was:" >&5
22328 sed 's/^/| /' conftest.$ac_ext >&5
22329
22330 ac_header_compiler=no
22331 fi
22332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22334 echo "${ECHO_T}$ac_header_compiler" >&6
22335
22336 # Is the header present?
22337 echo "$as_me:$LINENO: checking zlib.h presence" >&5
22338 echo $ECHO_N "checking zlib.h presence... $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 #include <zlib.h>
22346 _ACEOF
22347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22348   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22349   ac_status=$?
22350   grep -v '^ *+' conftest.er1 >conftest.err
22351   rm -f conftest.er1
22352   cat conftest.err >&5
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); } >/dev/null; then
22355   if test -s conftest.err; then
22356     ac_cpp_err=$ac_c_preproc_warn_flag
22357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22358   else
22359     ac_cpp_err=
22360   fi
22361 else
22362   ac_cpp_err=yes
22363 fi
22364 if test -z "$ac_cpp_err"; then
22365   ac_header_preproc=yes
22366 else
22367   echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22369
22370   ac_header_preproc=no
22371 fi
22372 rm -f conftest.err conftest.$ac_ext
22373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22374 echo "${ECHO_T}$ac_header_preproc" >&6
22375
22376 # So?  What about this header?
22377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22378   yes:no: )
22379     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22380 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22381     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22382 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22383     ac_header_preproc=yes
22384     ;;
22385   no:yes:* )
22386     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22387 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22388     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
22389 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
22390     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22391 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22392     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
22393 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22394     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22395 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22396     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22397 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22398     (
22399       cat <<\_ASBOX
22400 ## ----------------------------------------- ##
22401 ## Report this to wx-dev@lists.wxwidgets.org ##
22402 ## ----------------------------------------- ##
22403 _ASBOX
22404     ) |
22405       sed "s/^/$as_me: WARNING:     /" >&2
22406     ;;
22407 esac
22408 echo "$as_me:$LINENO: checking for zlib.h" >&5
22409 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22410 if test "${ac_cv_header_zlib_h+set}" = set; then
22411   echo $ECHO_N "(cached) $ECHO_C" >&6
22412 else
22413   ac_cv_header_zlib_h=$ac_header_preproc
22414 fi
22415 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22416 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22417
22418 fi
22419
22420
22421
22422             system_zlib_h_ok=$ac_cv_header_zlib_h
22423         fi
22424
22425         if test "$system_zlib_h_ok" = "yes"; then
22426             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22427 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22428 if test "${ac_cv_lib_z_deflate+set}" = set; then
22429   echo $ECHO_N "(cached) $ECHO_C" >&6
22430 else
22431   ac_check_lib_save_LIBS=$LIBS
22432 LIBS="-lz  $LIBS"
22433 cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h.  */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h.  */
22439
22440 /* Override any gcc2 internal prototype to avoid an error.  */
22441 #ifdef __cplusplus
22442 extern "C"
22443 #endif
22444 /* We use char because int might match the return type of a gcc2
22445    builtin and then its argument prototype would still apply.  */
22446 char deflate ();
22447 int
22448 main ()
22449 {
22450 deflate ();
22451   ;
22452   return 0;
22453 }
22454 _ACEOF
22455 rm -f conftest.$ac_objext conftest$ac_exeext
22456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22457   (eval $ac_link) 2>conftest.er1
22458   ac_status=$?
22459   grep -v '^ *+' conftest.er1 >conftest.err
22460   rm -f conftest.er1
22461   cat conftest.err >&5
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); } &&
22464          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466   (eval $ac_try) 2>&5
22467   ac_status=$?
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); }; } &&
22470          { ac_try='test -s conftest$ac_exeext'
22471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472   (eval $ac_try) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); }; }; then
22476   ac_cv_lib_z_deflate=yes
22477 else
22478   echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22480
22481 ac_cv_lib_z_deflate=no
22482 fi
22483 rm -f conftest.err conftest.$ac_objext \
22484       conftest$ac_exeext conftest.$ac_ext
22485 LIBS=$ac_check_lib_save_LIBS
22486 fi
22487 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22488 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22489 if test $ac_cv_lib_z_deflate = yes; then
22490   ZLIB_LINK=" -lz"
22491 fi
22492
22493         fi
22494
22495         if test "x$ZLIB_LINK" = "x" ; then
22496             if test "$wxUSE_ZLIB" = "sys" ; then
22497                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22498 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22499    { (exit 1); exit 1; }; }
22500             else
22501                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22502 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22503                 wxUSE_ZLIB=builtin
22504             fi
22505         else
22506                         wxUSE_ZLIB=sys
22507         fi
22508     fi
22509 fi
22510
22511
22512 PNG_LINK=
22513 if test "$wxUSE_LIBPNG" != "no" ; then
22514     cat >>confdefs.h <<\_ACEOF
22515 #define wxUSE_LIBPNG 1
22516 _ACEOF
22517
22518
22519     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22520         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22521 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22522         wxUSE_LIBPNG=sys
22523     fi
22524
22525                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22526         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22527 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22528         wxUSE_LIBPNG=builtin
22529     fi
22530
22531     if test "$wxUSE_MGL" != 1 ; then
22532                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22533                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22534 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22535 if test "${ac_cv_header_png_h+set}" = set; then
22536   echo $ECHO_N "(cached) $ECHO_C" >&6
22537 else
22538   if test "$cross_compiling" = yes; then
22539                       unset ac_cv_header_png_h
22540
22541 else
22542   cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548
22549                         #include <png.h>
22550                         #include <stdio.h>
22551
22552                         int main()
22553                         {
22554                             FILE *f=fopen("conftestval", "w");
22555                             if (!f) exit(1);
22556                             fprintf(f, "%s",
22557                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
22558                             exit(0);
22559                         }
22560
22561 _ACEOF
22562 rm -f conftest$ac_exeext
22563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22564   (eval $ac_link) 2>&5
22565   ac_status=$?
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569   (eval $ac_try) 2>&5
22570   ac_status=$?
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); }; }; then
22573   ac_cv_header_png_h=`cat conftestval`
22574 else
22575   echo "$as_me: program exited with status $ac_status" >&5
22576 echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22578
22579 ( exit $ac_status )
22580 ac_cv_header_png_h=no
22581 fi
22582 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22583 fi
22584
22585 fi
22586 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22587 echo "${ECHO_T}$ac_cv_header_png_h" >&6
22588             if test "${ac_cv_header_png_h+set}" = set; then
22589   echo "$as_me:$LINENO: checking for png.h" >&5
22590 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22591 if test "${ac_cv_header_png_h+set}" = set; then
22592   echo $ECHO_N "(cached) $ECHO_C" >&6
22593 fi
22594 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22595 echo "${ECHO_T}$ac_cv_header_png_h" >&6
22596 else
22597   # Is the header compilable?
22598 echo "$as_me:$LINENO: checking png.h usability" >&5
22599 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22600 cat >conftest.$ac_ext <<_ACEOF
22601 /* confdefs.h.  */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h.  */
22606 $ac_includes_default
22607 #include <png.h>
22608 _ACEOF
22609 rm -f conftest.$ac_objext
22610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22611   (eval $ac_compile) 2>conftest.er1
22612   ac_status=$?
22613   grep -v '^ *+' conftest.er1 >conftest.err
22614   rm -f conftest.er1
22615   cat conftest.err >&5
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); } &&
22618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620   (eval $ac_try) 2>&5
22621   ac_status=$?
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); }; } &&
22624          { ac_try='test -s conftest.$ac_objext'
22625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626   (eval $ac_try) 2>&5
22627   ac_status=$?
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); }; }; then
22630   ac_header_compiler=yes
22631 else
22632   echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22634
22635 ac_header_compiler=no
22636 fi
22637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22639 echo "${ECHO_T}$ac_header_compiler" >&6
22640
22641 # Is the header present?
22642 echo "$as_me:$LINENO: checking png.h presence" >&5
22643 echo $ECHO_N "checking png.h presence... $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 #include <png.h>
22651 _ACEOF
22652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22654   ac_status=$?
22655   grep -v '^ *+' conftest.er1 >conftest.err
22656   rm -f conftest.er1
22657   cat conftest.err >&5
22658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659   (exit $ac_status); } >/dev/null; then
22660   if test -s conftest.err; then
22661     ac_cpp_err=$ac_c_preproc_warn_flag
22662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22663   else
22664     ac_cpp_err=
22665   fi
22666 else
22667   ac_cpp_err=yes
22668 fi
22669 if test -z "$ac_cpp_err"; then
22670   ac_header_preproc=yes
22671 else
22672   echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674
22675   ac_header_preproc=no
22676 fi
22677 rm -f conftest.err conftest.$ac_ext
22678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22679 echo "${ECHO_T}$ac_header_preproc" >&6
22680
22681 # So?  What about this header?
22682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22683   yes:no: )
22684     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22685 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22686     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22687 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22688     ac_header_preproc=yes
22689     ;;
22690   no:yes:* )
22691     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22692 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
22693     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
22694 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
22695     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22696 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22697     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
22698 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22699     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22700 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
22701     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22702 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
22703     (
22704       cat <<\_ASBOX
22705 ## ----------------------------------------- ##
22706 ## Report this to wx-dev@lists.wxwidgets.org ##
22707 ## ----------------------------------------- ##
22708 _ASBOX
22709     ) |
22710       sed "s/^/$as_me: WARNING:     /" >&2
22711     ;;
22712 esac
22713 echo "$as_me:$LINENO: checking for png.h" >&5
22714 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22715 if test "${ac_cv_header_png_h+set}" = set; then
22716   echo $ECHO_N "(cached) $ECHO_C" >&6
22717 else
22718   ac_cv_header_png_h=$ac_header_preproc
22719 fi
22720 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22721 echo "${ECHO_T}$ac_cv_header_png_h" >&6
22722
22723 fi
22724
22725
22726
22727             if test "$ac_cv_header_png_h" = "yes"; then
22728                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22729 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22730 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22731   echo $ECHO_N "(cached) $ECHO_C" >&6
22732 else
22733   ac_check_lib_save_LIBS=$LIBS
22734 LIBS="-lpng -lz -lm $LIBS"
22735 cat >conftest.$ac_ext <<_ACEOF
22736 /* confdefs.h.  */
22737 _ACEOF
22738 cat confdefs.h >>conftest.$ac_ext
22739 cat >>conftest.$ac_ext <<_ACEOF
22740 /* end confdefs.h.  */
22741
22742 /* Override any gcc2 internal prototype to avoid an error.  */
22743 #ifdef __cplusplus
22744 extern "C"
22745 #endif
22746 /* We use char because int might match the return type of a gcc2
22747    builtin and then its argument prototype would still apply.  */
22748 char png_check_sig ();
22749 int
22750 main ()
22751 {
22752 png_check_sig ();
22753   ;
22754   return 0;
22755 }
22756 _ACEOF
22757 rm -f conftest.$ac_objext conftest$ac_exeext
22758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22759   (eval $ac_link) 2>conftest.er1
22760   ac_status=$?
22761   grep -v '^ *+' conftest.er1 >conftest.err
22762   rm -f conftest.er1
22763   cat conftest.err >&5
22764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765   (exit $ac_status); } &&
22766          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768   (eval $ac_try) 2>&5
22769   ac_status=$?
22770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771   (exit $ac_status); }; } &&
22772          { ac_try='test -s conftest$ac_exeext'
22773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774   (eval $ac_try) 2>&5
22775   ac_status=$?
22776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777   (exit $ac_status); }; }; then
22778   ac_cv_lib_png_png_check_sig=yes
22779 else
22780   echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22782
22783 ac_cv_lib_png_png_check_sig=no
22784 fi
22785 rm -f conftest.err conftest.$ac_objext \
22786       conftest$ac_exeext conftest.$ac_ext
22787 LIBS=$ac_check_lib_save_LIBS
22788 fi
22789 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22790 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22791 if test $ac_cv_lib_png_png_check_sig = yes; then
22792   PNG_LINK=" -lpng -lz"
22793 fi
22794
22795             fi
22796
22797             if test "x$PNG_LINK" = "x" ; then
22798                 if test "$wxUSE_LIBPNG" = "sys" ; then
22799                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22800 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22801    { (exit 1); exit 1; }; }
22802                 else
22803                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22804 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22805                     wxUSE_LIBPNG=builtin
22806                 fi
22807             else
22808                                 wxUSE_LIBPNG=sys
22809             fi
22810         fi
22811     fi
22812
22813     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22814 fi
22815
22816
22817 JPEG_LINK=
22818 if test "$wxUSE_LIBJPEG" != "no" ; then
22819     cat >>confdefs.h <<\_ACEOF
22820 #define wxUSE_LIBJPEG 1
22821 _ACEOF
22822
22823
22824     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22825         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22826 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22827         wxUSE_LIBJPEG=sys
22828     fi
22829
22830     if test "$wxUSE_MGL" != 1 ; then
22831                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22832                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22833 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22834             if test "${ac_cv_header_jpeglib_h+set}" = set; then
22835   echo $ECHO_N "(cached) $ECHO_C" >&6
22836 else
22837   cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h.  */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h.  */
22843
22844                         #undef HAVE_STDLIB_H
22845                         #include <stdio.h>
22846                         #include <jpeglib.h>
22847
22848 int
22849 main ()
22850 {
22851
22852
22853   ;
22854   return 0;
22855 }
22856 _ACEOF
22857 rm -f conftest.$ac_objext
22858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22859   (eval $ac_compile) 2>conftest.er1
22860   ac_status=$?
22861   grep -v '^ *+' conftest.er1 >conftest.err
22862   rm -f conftest.er1
22863   cat conftest.err >&5
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); } &&
22866          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868   (eval $ac_try) 2>&5
22869   ac_status=$?
22870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871   (exit $ac_status); }; } &&
22872          { ac_try='test -s conftest.$ac_objext'
22873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22874   (eval $ac_try) 2>&5
22875   ac_status=$?
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); }; }; then
22878   ac_cv_header_jpeglib_h=yes
22879 else
22880   echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22882
22883 ac_cv_header_jpeglib_h=no
22884
22885 fi
22886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22887
22888 fi
22889
22890             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22891 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22892
22893             if test "$ac_cv_header_jpeglib_h" = "yes"; then
22894                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22895 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22896 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22897   echo $ECHO_N "(cached) $ECHO_C" >&6
22898 else
22899   ac_check_lib_save_LIBS=$LIBS
22900 LIBS="-ljpeg  $LIBS"
22901 cat >conftest.$ac_ext <<_ACEOF
22902 /* confdefs.h.  */
22903 _ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h.  */
22907
22908 /* Override any gcc2 internal prototype to avoid an error.  */
22909 #ifdef __cplusplus
22910 extern "C"
22911 #endif
22912 /* We use char because int might match the return type of a gcc2
22913    builtin and then its argument prototype would still apply.  */
22914 char jpeg_read_header ();
22915 int
22916 main ()
22917 {
22918 jpeg_read_header ();
22919   ;
22920   return 0;
22921 }
22922 _ACEOF
22923 rm -f conftest.$ac_objext conftest$ac_exeext
22924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22925   (eval $ac_link) 2>conftest.er1
22926   ac_status=$?
22927   grep -v '^ *+' conftest.er1 >conftest.err
22928   rm -f conftest.er1
22929   cat conftest.err >&5
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); } &&
22932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934   (eval $ac_try) 2>&5
22935   ac_status=$?
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); }; } &&
22938          { ac_try='test -s conftest$ac_exeext'
22939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940   (eval $ac_try) 2>&5
22941   ac_status=$?
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); }; }; then
22944   ac_cv_lib_jpeg_jpeg_read_header=yes
22945 else
22946   echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22948
22949 ac_cv_lib_jpeg_jpeg_read_header=no
22950 fi
22951 rm -f conftest.err conftest.$ac_objext \
22952       conftest$ac_exeext conftest.$ac_ext
22953 LIBS=$ac_check_lib_save_LIBS
22954 fi
22955 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22956 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22957 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22958   JPEG_LINK=" -ljpeg"
22959 fi
22960
22961             fi
22962
22963             if test "x$JPEG_LINK" = "x" ; then
22964                 if test "$wxUSE_LIBJPEG" = "sys" ; then
22965                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22966 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22967    { (exit 1); exit 1; }; }
22968                 else
22969                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22970 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22971                     wxUSE_LIBJPEG=builtin
22972                 fi
22973             else
22974                                 wxUSE_LIBJPEG=sys
22975             fi
22976         fi
22977     fi
22978 fi
22979
22980
22981 TIFF_LINK=
22982 TIFF_PREREQ_LINKS=-lm
22983 if test "$wxUSE_LIBTIFF" != "no" ; then
22984     cat >>confdefs.h <<\_ACEOF
22985 #define wxUSE_LIBTIFF 1
22986 _ACEOF
22987
22988
22989     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22990                         if test "$wxUSE_LIBJPEG" = "sys"; then
22991             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22992         fi
22993         if test "$wxUSE_ZLIB" = "sys"; then
22994             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22995         fi
22996         if test "${ac_cv_header_tiffio_h+set}" = set; then
22997   echo "$as_me:$LINENO: checking for tiffio.h" >&5
22998 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22999 if test "${ac_cv_header_tiffio_h+set}" = set; then
23000   echo $ECHO_N "(cached) $ECHO_C" >&6
23001 fi
23002 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23003 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23004 else
23005   # Is the header compilable?
23006 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23007 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23008 cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014 $ac_includes_default
23015 #include <tiffio.h>
23016 _ACEOF
23017 rm -f conftest.$ac_objext
23018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23019   (eval $ac_compile) 2>conftest.er1
23020   ac_status=$?
23021   grep -v '^ *+' conftest.er1 >conftest.err
23022   rm -f conftest.er1
23023   cat conftest.err >&5
23024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025   (exit $ac_status); } &&
23026          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028   (eval $ac_try) 2>&5
23029   ac_status=$?
23030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031   (exit $ac_status); }; } &&
23032          { ac_try='test -s conftest.$ac_objext'
23033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034   (eval $ac_try) 2>&5
23035   ac_status=$?
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); }; }; then
23038   ac_header_compiler=yes
23039 else
23040   echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23042
23043 ac_header_compiler=no
23044 fi
23045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23047 echo "${ECHO_T}$ac_header_compiler" >&6
23048
23049 # Is the header present?
23050 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23051 echo $ECHO_N "checking tiffio.h presence... $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 #include <tiffio.h>
23059 _ACEOF
23060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23062   ac_status=$?
23063   grep -v '^ *+' conftest.er1 >conftest.err
23064   rm -f conftest.er1
23065   cat conftest.err >&5
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } >/dev/null; then
23068   if test -s conftest.err; then
23069     ac_cpp_err=$ac_c_preproc_warn_flag
23070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23071   else
23072     ac_cpp_err=
23073   fi
23074 else
23075   ac_cpp_err=yes
23076 fi
23077 if test -z "$ac_cpp_err"; then
23078   ac_header_preproc=yes
23079 else
23080   echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23082
23083   ac_header_preproc=no
23084 fi
23085 rm -f conftest.err conftest.$ac_ext
23086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23087 echo "${ECHO_T}$ac_header_preproc" >&6
23088
23089 # So?  What about this header?
23090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23091   yes:no: )
23092     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23093 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23094     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23095 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23096     ac_header_preproc=yes
23097     ;;
23098   no:yes:* )
23099     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23100 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
23101     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
23102 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
23103     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23104 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23105     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
23106 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23107     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23108 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
23109     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23110 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
23111     (
23112       cat <<\_ASBOX
23113 ## ----------------------------------------- ##
23114 ## Report this to wx-dev@lists.wxwidgets.org ##
23115 ## ----------------------------------------- ##
23116 _ASBOX
23117     ) |
23118       sed "s/^/$as_me: WARNING:     /" >&2
23119     ;;
23120 esac
23121 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23122 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23123 if test "${ac_cv_header_tiffio_h+set}" = set; then
23124   echo $ECHO_N "(cached) $ECHO_C" >&6
23125 else
23126   ac_cv_header_tiffio_h=$ac_header_preproc
23127 fi
23128 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23129 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23130
23131 fi
23132 if test $ac_cv_header_tiffio_h = yes; then
23133
23134                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23135 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23136 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23137   echo $ECHO_N "(cached) $ECHO_C" >&6
23138 else
23139   ac_check_lib_save_LIBS=$LIBS
23140 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23141 cat >conftest.$ac_ext <<_ACEOF
23142 /* confdefs.h.  */
23143 _ACEOF
23144 cat confdefs.h >>conftest.$ac_ext
23145 cat >>conftest.$ac_ext <<_ACEOF
23146 /* end confdefs.h.  */
23147
23148 /* Override any gcc2 internal prototype to avoid an error.  */
23149 #ifdef __cplusplus
23150 extern "C"
23151 #endif
23152 /* We use char because int might match the return type of a gcc2
23153    builtin and then its argument prototype would still apply.  */
23154 char TIFFError ();
23155 int
23156 main ()
23157 {
23158 TIFFError ();
23159   ;
23160   return 0;
23161 }
23162 _ACEOF
23163 rm -f conftest.$ac_objext conftest$ac_exeext
23164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23165   (eval $ac_link) 2>conftest.er1
23166   ac_status=$?
23167   grep -v '^ *+' conftest.er1 >conftest.err
23168   rm -f conftest.er1
23169   cat conftest.err >&5
23170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171   (exit $ac_status); } &&
23172          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174   (eval $ac_try) 2>&5
23175   ac_status=$?
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); }; } &&
23178          { ac_try='test -s conftest$ac_exeext'
23179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180   (eval $ac_try) 2>&5
23181   ac_status=$?
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); }; }; then
23184   ac_cv_lib_tiff_TIFFError=yes
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 ac_cv_lib_tiff_TIFFError=no
23190 fi
23191 rm -f conftest.err conftest.$ac_objext \
23192       conftest$ac_exeext conftest.$ac_ext
23193 LIBS=$ac_check_lib_save_LIBS
23194 fi
23195 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23196 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23197 if test $ac_cv_lib_tiff_TIFFError = yes; then
23198   TIFF_LINK=" -ltiff"
23199 fi
23200
23201
23202
23203 fi
23204
23205
23206
23207         if test "x$TIFF_LINK" = "x" ; then
23208             if test "$wxUSE_LIBTIFF" = "sys" ; then
23209                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23210 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23211    { (exit 1); exit 1; }; }
23212             else
23213                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23214 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23215                 wxUSE_LIBTIFF=builtin
23216             fi
23217         else
23218                         wxUSE_LIBTIFF=sys
23219         fi
23220     fi
23221 fi
23222
23223
23224 if test "$wxUSE_EXPAT" != "no"; then
23225     wxUSE_XML=yes
23226     cat >>confdefs.h <<\_ACEOF
23227 #define wxUSE_EXPAT 1
23228 _ACEOF
23229
23230     cat >>confdefs.h <<\_ACEOF
23231 #define wxUSE_XML 1
23232 _ACEOF
23233
23234
23235     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23236         if test "${ac_cv_header_expat_h+set}" = set; then
23237   echo "$as_me:$LINENO: checking for expat.h" >&5
23238 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23239 if test "${ac_cv_header_expat_h+set}" = set; then
23240   echo $ECHO_N "(cached) $ECHO_C" >&6
23241 fi
23242 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23243 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23244 else
23245   # Is the header compilable?
23246 echo "$as_me:$LINENO: checking expat.h usability" >&5
23247 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23248 cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254 $ac_includes_default
23255 #include <expat.h>
23256 _ACEOF
23257 rm -f conftest.$ac_objext
23258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23259   (eval $ac_compile) 2>conftest.er1
23260   ac_status=$?
23261   grep -v '^ *+' conftest.er1 >conftest.err
23262   rm -f conftest.er1
23263   cat conftest.err >&5
23264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265   (exit $ac_status); } &&
23266          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268   (eval $ac_try) 2>&5
23269   ac_status=$?
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); }; } &&
23272          { ac_try='test -s conftest.$ac_objext'
23273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274   (eval $ac_try) 2>&5
23275   ac_status=$?
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); }; }; then
23278   ac_header_compiler=yes
23279 else
23280   echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23282
23283 ac_header_compiler=no
23284 fi
23285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23287 echo "${ECHO_T}$ac_header_compiler" >&6
23288
23289 # Is the header present?
23290 echo "$as_me:$LINENO: checking expat.h presence" >&5
23291 echo $ECHO_N "checking expat.h presence... $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 #include <expat.h>
23299 _ACEOF
23300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23302   ac_status=$?
23303   grep -v '^ *+' conftest.er1 >conftest.err
23304   rm -f conftest.er1
23305   cat conftest.err >&5
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); } >/dev/null; then
23308   if test -s conftest.err; then
23309     ac_cpp_err=$ac_c_preproc_warn_flag
23310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23311   else
23312     ac_cpp_err=
23313   fi
23314 else
23315   ac_cpp_err=yes
23316 fi
23317 if test -z "$ac_cpp_err"; then
23318   ac_header_preproc=yes
23319 else
23320   echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23322
23323   ac_header_preproc=no
23324 fi
23325 rm -f conftest.err conftest.$ac_ext
23326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23327 echo "${ECHO_T}$ac_header_preproc" >&6
23328
23329 # So?  What about this header?
23330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23331   yes:no: )
23332     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23333 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23334     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23335 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23336     ac_header_preproc=yes
23337     ;;
23338   no:yes:* )
23339     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23340 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
23341     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
23342 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
23343     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23344 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23345     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
23346 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23347     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23348 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
23349     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23350 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
23351     (
23352       cat <<\_ASBOX
23353 ## ----------------------------------------- ##
23354 ## Report this to wx-dev@lists.wxwidgets.org ##
23355 ## ----------------------------------------- ##
23356 _ASBOX
23357     ) |
23358       sed "s/^/$as_me: WARNING:     /" >&2
23359     ;;
23360 esac
23361 echo "$as_me:$LINENO: checking for expat.h" >&5
23362 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23363 if test "${ac_cv_header_expat_h+set}" = set; then
23364   echo $ECHO_N "(cached) $ECHO_C" >&6
23365 else
23366   ac_cv_header_expat_h=$ac_header_preproc
23367 fi
23368 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23369 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23370
23371 fi
23372 if test $ac_cv_header_expat_h = yes; then
23373   found_expat_h=1
23374 fi
23375
23376
23377         if test "x$found_expat_h" = "x1"; then
23378                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23379 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23380 if test "${wx_cv_expat_is_not_broken+set}" = set; then
23381   echo $ECHO_N "(cached) $ECHO_C" >&6
23382 else
23383
23384
23385
23386                 ac_ext=cc
23387 ac_cpp='$CXXCPP $CPPFLAGS'
23388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23391
23392                 cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h.  */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h.  */
23398 #include <expat.h>
23399 int
23400 main ()
23401 {
23402
23403   ;
23404   return 0;
23405 }
23406 _ACEOF
23407 rm -f conftest.$ac_objext
23408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23409   (eval $ac_compile) 2>conftest.er1
23410   ac_status=$?
23411   grep -v '^ *+' conftest.er1 >conftest.err
23412   rm -f conftest.er1
23413   cat conftest.err >&5
23414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); } &&
23416          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418   (eval $ac_try) 2>&5
23419   ac_status=$?
23420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421   (exit $ac_status); }; } &&
23422          { ac_try='test -s conftest.$ac_objext'
23423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424   (eval $ac_try) 2>&5
23425   ac_status=$?
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); }; }; then
23428   wx_cv_expat_is_not_broken=yes
23429 else
23430   echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23432
23433 wx_cv_expat_is_not_broken=no
23434
23435 fi
23436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23437                 ac_ext=c
23438 ac_cpp='$CPP $CPPFLAGS'
23439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23442
23443
23444
23445 fi
23446 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23447 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23448             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23449                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23450 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23451 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23452   echo $ECHO_N "(cached) $ECHO_C" >&6
23453 else
23454   ac_check_lib_save_LIBS=$LIBS
23455 LIBS="-lexpat  $LIBS"
23456 cat >conftest.$ac_ext <<_ACEOF
23457 /* confdefs.h.  */
23458 _ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h.  */
23462
23463 /* Override any gcc2 internal prototype to avoid an error.  */
23464 #ifdef __cplusplus
23465 extern "C"
23466 #endif
23467 /* We use char because int might match the return type of a gcc2
23468    builtin and then its argument prototype would still apply.  */
23469 char XML_ParserCreate ();
23470 int
23471 main ()
23472 {
23473 XML_ParserCreate ();
23474   ;
23475   return 0;
23476 }
23477 _ACEOF
23478 rm -f conftest.$ac_objext conftest$ac_exeext
23479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23480   (eval $ac_link) 2>conftest.er1
23481   ac_status=$?
23482   grep -v '^ *+' conftest.er1 >conftest.err
23483   rm -f conftest.er1
23484   cat conftest.err >&5
23485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486   (exit $ac_status); } &&
23487          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489   (eval $ac_try) 2>&5
23490   ac_status=$?
23491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492   (exit $ac_status); }; } &&
23493          { ac_try='test -s conftest$ac_exeext'
23494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495   (eval $ac_try) 2>&5
23496   ac_status=$?
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); }; }; then
23499   ac_cv_lib_expat_XML_ParserCreate=yes
23500 else
23501   echo "$as_me: failed program was:" >&5
23502 sed 's/^/| /' conftest.$ac_ext >&5
23503
23504 ac_cv_lib_expat_XML_ParserCreate=no
23505 fi
23506 rm -f conftest.err conftest.$ac_objext \
23507       conftest$ac_exeext conftest.$ac_ext
23508 LIBS=$ac_check_lib_save_LIBS
23509 fi
23510 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23511 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23512 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23513   EXPAT_LINK=" -lexpat"
23514 fi
23515
23516             fi
23517         fi
23518         if test "x$EXPAT_LINK" = "x" ; then
23519             if test "$wxUSE_EXPAT" = "sys" ; then
23520                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23521 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23522    { (exit 1); exit 1; }; }
23523             else
23524                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23525 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23526                 wxUSE_EXPAT=builtin
23527             fi
23528         else
23529                         wxUSE_EXPAT=sys
23530         fi
23531     fi
23532     if test "$wxUSE_EXPAT" = "builtin" ; then
23533
23534
23535 subdirs="$subdirs src/expat"
23536
23537     fi
23538 fi
23539
23540
23541
23542 if test "$wxUSE_LIBMSPACK" != "no"; then
23543     if test "${ac_cv_header_mspack_h+set}" = set; then
23544   echo "$as_me:$LINENO: checking for mspack.h" >&5
23545 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23546 if test "${ac_cv_header_mspack_h+set}" = set; then
23547   echo $ECHO_N "(cached) $ECHO_C" >&6
23548 fi
23549 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23550 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23551 else
23552   # Is the header compilable?
23553 echo "$as_me:$LINENO: checking mspack.h usability" >&5
23554 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23555 cat >conftest.$ac_ext <<_ACEOF
23556 /* confdefs.h.  */
23557 _ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h.  */
23561 $ac_includes_default
23562 #include <mspack.h>
23563 _ACEOF
23564 rm -f conftest.$ac_objext
23565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23566   (eval $ac_compile) 2>conftest.er1
23567   ac_status=$?
23568   grep -v '^ *+' conftest.er1 >conftest.err
23569   rm -f conftest.er1
23570   cat conftest.err >&5
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); } &&
23573          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575   (eval $ac_try) 2>&5
23576   ac_status=$?
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); }; } &&
23579          { ac_try='test -s conftest.$ac_objext'
23580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581   (eval $ac_try) 2>&5
23582   ac_status=$?
23583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584   (exit $ac_status); }; }; then
23585   ac_header_compiler=yes
23586 else
23587   echo "$as_me: failed program was:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23589
23590 ac_header_compiler=no
23591 fi
23592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23594 echo "${ECHO_T}$ac_header_compiler" >&6
23595
23596 # Is the header present?
23597 echo "$as_me:$LINENO: checking mspack.h presence" >&5
23598 echo $ECHO_N "checking mspack.h presence... $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 #include <mspack.h>
23606 _ACEOF
23607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23609   ac_status=$?
23610   grep -v '^ *+' conftest.er1 >conftest.err
23611   rm -f conftest.er1
23612   cat conftest.err >&5
23613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614   (exit $ac_status); } >/dev/null; then
23615   if test -s conftest.err; then
23616     ac_cpp_err=$ac_c_preproc_warn_flag
23617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23618   else
23619     ac_cpp_err=
23620   fi
23621 else
23622   ac_cpp_err=yes
23623 fi
23624 if test -z "$ac_cpp_err"; then
23625   ac_header_preproc=yes
23626 else
23627   echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23629
23630   ac_header_preproc=no
23631 fi
23632 rm -f conftest.err conftest.$ac_ext
23633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23634 echo "${ECHO_T}$ac_header_preproc" >&6
23635
23636 # So?  What about this header?
23637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23638   yes:no: )
23639     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23640 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23641     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23642 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23643     ac_header_preproc=yes
23644     ;;
23645   no:yes:* )
23646     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23647 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
23648     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
23649 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
23650     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23651 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23652     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
23653 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23654     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23655 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
23656     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23657 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
23658     (
23659       cat <<\_ASBOX
23660 ## ----------------------------------------- ##
23661 ## Report this to wx-dev@lists.wxwidgets.org ##
23662 ## ----------------------------------------- ##
23663 _ASBOX
23664     ) |
23665       sed "s/^/$as_me: WARNING:     /" >&2
23666     ;;
23667 esac
23668 echo "$as_me:$LINENO: checking for mspack.h" >&5
23669 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23670 if test "${ac_cv_header_mspack_h+set}" = set; then
23671   echo $ECHO_N "(cached) $ECHO_C" >&6
23672 else
23673   ac_cv_header_mspack_h=$ac_header_preproc
23674 fi
23675 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23676 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23677
23678 fi
23679 if test $ac_cv_header_mspack_h = yes; then
23680   found_mspack_h=1
23681 fi
23682
23683
23684     if test "x$found_mspack_h" = "x1"; then
23685         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23686 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23687 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23688   echo $ECHO_N "(cached) $ECHO_C" >&6
23689 else
23690   ac_check_lib_save_LIBS=$LIBS
23691 LIBS="-lmspack  $LIBS"
23692 cat >conftest.$ac_ext <<_ACEOF
23693 /* confdefs.h.  */
23694 _ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h.  */
23698
23699 /* Override any gcc2 internal prototype to avoid an error.  */
23700 #ifdef __cplusplus
23701 extern "C"
23702 #endif
23703 /* We use char because int might match the return type of a gcc2
23704    builtin and then its argument prototype would still apply.  */
23705 char mspack_create_chm_decompressor ();
23706 int
23707 main ()
23708 {
23709 mspack_create_chm_decompressor ();
23710   ;
23711   return 0;
23712 }
23713 _ACEOF
23714 rm -f conftest.$ac_objext conftest$ac_exeext
23715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23716   (eval $ac_link) 2>conftest.er1
23717   ac_status=$?
23718   grep -v '^ *+' conftest.er1 >conftest.err
23719   rm -f conftest.er1
23720   cat conftest.err >&5
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); } &&
23723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23725   (eval $ac_try) 2>&5
23726   ac_status=$?
23727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728   (exit $ac_status); }; } &&
23729          { ac_try='test -s conftest$ac_exeext'
23730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731   (eval $ac_try) 2>&5
23732   ac_status=$?
23733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734   (exit $ac_status); }; }; then
23735   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23736 else
23737   echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23741 fi
23742 rm -f conftest.err conftest.$ac_objext \
23743       conftest$ac_exeext conftest.$ac_ext
23744 LIBS=$ac_check_lib_save_LIBS
23745 fi
23746 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23747 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23748 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23749   MSPACK_LINK=" -lmspack"
23750 fi
23751
23752     fi
23753     if test "x$MSPACK_LINK" = "x" ; then
23754         wxUSE_LIBMSPACK=no
23755     fi
23756 fi
23757
23758 if test "$wxUSE_LIBMSPACK" != "no"; then
23759     cat >>confdefs.h <<\_ACEOF
23760 #define wxUSE_LIBMSPACK 1
23761 _ACEOF
23762
23763 fi
23764
23765
23766
23767 AFMINSTALL=
23768 WIN32INSTALL=
23769
23770 TOOLKIT=
23771 TOOLKIT_INCLUDE=
23772 WIDGET_SET=
23773
23774 if test "$USE_WIN32" = 1 ; then
23775
23776 for ac_header in w32api.h
23777 do
23778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23780   echo "$as_me:$LINENO: checking for $ac_header" >&5
23781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23783   echo $ECHO_N "(cached) $ECHO_C" >&6
23784 fi
23785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23787 else
23788   # Is the header compilable?
23789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23791 cat >conftest.$ac_ext <<_ACEOF
23792 /* confdefs.h.  */
23793 _ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h.  */
23797 $ac_includes_default
23798 #include <$ac_header>
23799 _ACEOF
23800 rm -f conftest.$ac_objext
23801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23802   (eval $ac_compile) 2>conftest.er1
23803   ac_status=$?
23804   grep -v '^ *+' conftest.er1 >conftest.err
23805   rm -f conftest.er1
23806   cat conftest.err >&5
23807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808   (exit $ac_status); } &&
23809          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811   (eval $ac_try) 2>&5
23812   ac_status=$?
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); }; } &&
23815          { ac_try='test -s conftest.$ac_objext'
23816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817   (eval $ac_try) 2>&5
23818   ac_status=$?
23819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820   (exit $ac_status); }; }; then
23821   ac_header_compiler=yes
23822 else
23823   echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23825
23826 ac_header_compiler=no
23827 fi
23828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23830 echo "${ECHO_T}$ac_header_compiler" >&6
23831
23832 # Is the header present?
23833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23834 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
23842 _ACEOF
23843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23845   ac_status=$?
23846   grep -v '^ *+' conftest.er1 >conftest.err
23847   rm -f conftest.er1
23848   cat conftest.err >&5
23849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850   (exit $ac_status); } >/dev/null; then
23851   if test -s conftest.err; then
23852     ac_cpp_err=$ac_c_preproc_warn_flag
23853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23854   else
23855     ac_cpp_err=
23856   fi
23857 else
23858   ac_cpp_err=yes
23859 fi
23860 if test -z "$ac_cpp_err"; then
23861   ac_header_preproc=yes
23862 else
23863   echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23865
23866   ac_header_preproc=no
23867 fi
23868 rm -f conftest.err conftest.$ac_ext
23869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23870 echo "${ECHO_T}$ac_header_preproc" >&6
23871
23872 # So?  What about this header?
23873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23874   yes:no: )
23875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23879     ac_header_preproc=yes
23880     ;;
23881   no:yes:* )
23882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23894     (
23895       cat <<\_ASBOX
23896 ## ----------------------------------------- ##
23897 ## Report this to wx-dev@lists.wxwidgets.org ##
23898 ## ----------------------------------------- ##
23899 _ASBOX
23900     ) |
23901       sed "s/^/$as_me: WARNING:     /" >&2
23902     ;;
23903 esac
23904 echo "$as_me:$LINENO: checking for $ac_header" >&5
23905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23907   echo $ECHO_N "(cached) $ECHO_C" >&6
23908 else
23909   eval "$as_ac_Header=\$ac_header_preproc"
23910 fi
23911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23913
23914 fi
23915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23916   cat >>confdefs.h <<_ACEOF
23917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23918 _ACEOF
23919
23920 fi
23921
23922 done
23923
23924     if test "${ac_cv_header_windows_h+set}" = set; then
23925   echo "$as_me:$LINENO: checking for windows.h" >&5
23926 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23927 if test "${ac_cv_header_windows_h+set}" = set; then
23928   echo $ECHO_N "(cached) $ECHO_C" >&6
23929 fi
23930 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23931 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23932 else
23933   # Is the header compilable?
23934 echo "$as_me:$LINENO: checking windows.h usability" >&5
23935 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23936 cat >conftest.$ac_ext <<_ACEOF
23937 /* confdefs.h.  */
23938 _ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h.  */
23942 $ac_includes_default
23943 #include <windows.h>
23944 _ACEOF
23945 rm -f conftest.$ac_objext
23946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23947   (eval $ac_compile) 2>conftest.er1
23948   ac_status=$?
23949   grep -v '^ *+' conftest.er1 >conftest.err
23950   rm -f conftest.er1
23951   cat conftest.err >&5
23952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953   (exit $ac_status); } &&
23954          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956   (eval $ac_try) 2>&5
23957   ac_status=$?
23958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959   (exit $ac_status); }; } &&
23960          { ac_try='test -s conftest.$ac_objext'
23961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23962   (eval $ac_try) 2>&5
23963   ac_status=$?
23964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965   (exit $ac_status); }; }; then
23966   ac_header_compiler=yes
23967 else
23968   echo "$as_me: failed program was:" >&5
23969 sed 's/^/| /' conftest.$ac_ext >&5
23970
23971 ac_header_compiler=no
23972 fi
23973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23975 echo "${ECHO_T}$ac_header_compiler" >&6
23976
23977 # Is the header present?
23978 echo "$as_me:$LINENO: checking windows.h presence" >&5
23979 echo $ECHO_N "checking windows.h presence... $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 #include <windows.h>
23987 _ACEOF
23988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23990   ac_status=$?
23991   grep -v '^ *+' conftest.er1 >conftest.err
23992   rm -f conftest.er1
23993   cat conftest.err >&5
23994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); } >/dev/null; then
23996   if test -s conftest.err; then
23997     ac_cpp_err=$ac_c_preproc_warn_flag
23998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23999   else
24000     ac_cpp_err=
24001   fi
24002 else
24003   ac_cpp_err=yes
24004 fi
24005 if test -z "$ac_cpp_err"; then
24006   ac_header_preproc=yes
24007 else
24008   echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24010
24011   ac_header_preproc=no
24012 fi
24013 rm -f conftest.err conftest.$ac_ext
24014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24015 echo "${ECHO_T}$ac_header_preproc" >&6
24016
24017 # So?  What about this header?
24018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24019   yes:no: )
24020     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24021 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24022     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24023 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24024     ac_header_preproc=yes
24025     ;;
24026   no:yes:* )
24027     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24028 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
24029     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
24030 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
24031     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24032 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24033     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
24034 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24035     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24036 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
24037     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24038 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
24039     (
24040       cat <<\_ASBOX
24041 ## ----------------------------------------- ##
24042 ## Report this to wx-dev@lists.wxwidgets.org ##
24043 ## ----------------------------------------- ##
24044 _ASBOX
24045     ) |
24046       sed "s/^/$as_me: WARNING:     /" >&2
24047     ;;
24048 esac
24049 echo "$as_me:$LINENO: checking for windows.h" >&5
24050 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24051 if test "${ac_cv_header_windows_h+set}" = set; then
24052   echo $ECHO_N "(cached) $ECHO_C" >&6
24053 else
24054   ac_cv_header_windows_h=$ac_header_preproc
24055 fi
24056 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24057 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24058
24059 fi
24060 if test $ac_cv_header_windows_h = yes; then
24061   :
24062 else
24063
24064         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24065 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24066    { (exit 1); exit 1; }; }
24067
24068 fi
24069
24070
24071
24072             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24073
24074     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24075         LIBS="$LIBS -loleacc"
24076     fi
24077
24078     case "${host}" in
24079         *-*-cygwin* )
24080                         LIBS="$LIBS -lkernel32 -luser32"
24081             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24082     esac
24083
24084         if test "$wxUSE_ODBC" = "sys" ; then
24085         wxUSE_ODBC = "yes"
24086     fi
24087     if test "$wxUSE_ODBC" = "yes" ; then
24088         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24089         cat >>confdefs.h <<\_ACEOF
24090 #define wxUSE_ODBC 1
24091 _ACEOF
24092
24093     fi
24094
24095     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24096     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24097
24098         WIN32INSTALL=win32install
24099 fi
24100
24101 if test "$wxUSE_GUI" = "yes"; then
24102     USE_GUI=1
24103
24104     GUI_TK_LIBRARY=
24105
24106     WXGTK12=
24107     WXGTK127=
24108     WXGTK20=
24109     WXGPE=
24110
24111     if test "$wxUSE_COCOA" = 1 ; then
24112         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24113             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24114 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24115             wxUSE_PRINTING_ARCHITECTURE=no
24116         fi
24117         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24118             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24119 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24120             wxUSE_DRAG_AND_DROP=no
24121         fi
24122         if test "$wxUSE_DRAGIMAGE" = "yes"; then
24123             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24124 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24125             wxUSE_DRAGIMAGE=no
24126         fi
24127     fi
24128
24129     if test "$wxUSE_MSW" = 1 ; then
24130         TOOLKIT=MSW
24131         GUIDIST=MSW_DIST
24132
24133                 case "${host}" in
24134             *-*-mingw32* )
24135                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24136         esac
24137     fi
24138
24139     if test "$wxUSE_GTK" = 1; then
24140         echo "$as_me:$LINENO: checking for GTK+ version" >&5
24141 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24142
24143         gtk_version_cached=1
24144         if test "${wx_cv_lib_gtk+set}" = set; then
24145   echo $ECHO_N "(cached) $ECHO_C" >&6
24146 else
24147
24148                                                 gtk_version_cached=0
24149                 echo "$as_me:$LINENO: result: " >&5
24150 echo "${ECHO_T}" >&6
24151
24152                                                 GTK_MODULES=
24153                 if test "$wxUSE_THREADS" = "yes"; then
24154                     GTK_MODULES=gthread
24155                 fi
24156
24157                                                 wx_cv_lib_gtk=
24158                 if test "x$wxUSE_GTK2" = "xyes"; then
24159                     # Check whether --enable-gtktest or --disable-gtktest was given.
24160 if test "${enable_gtktest+set}" = set; then
24161   enableval="$enable_gtktest"
24162
24163 else
24164   enable_gtktest=yes
24165 fi;
24166
24167   pkg_config_args=gtk+-2.0
24168   for module in . $GTK_MODULES
24169   do
24170       case "$module" in
24171          gthread)
24172              pkg_config_args="$pkg_config_args gthread-2.0"
24173          ;;
24174       esac
24175   done
24176
24177   no_gtk=""
24178
24179   # Extract the first word of "pkg-config", so it can be a program name with args.
24180 set dummy pkg-config; ac_word=$2
24181 echo "$as_me:$LINENO: checking for $ac_word" >&5
24182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24183 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24184   echo $ECHO_N "(cached) $ECHO_C" >&6
24185 else
24186   case $PKG_CONFIG in
24187   [\\/]* | ?:[\\/]*)
24188   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24189   ;;
24190   *)
24191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24192 for as_dir in $PATH
24193 do
24194   IFS=$as_save_IFS
24195   test -z "$as_dir" && as_dir=.
24196   for ac_exec_ext in '' $ac_executable_extensions; do
24197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24198     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24200     break 2
24201   fi
24202 done
24203 done
24204
24205   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24206   ;;
24207 esac
24208 fi
24209 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24210
24211 if test -n "$PKG_CONFIG"; then
24212   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24213 echo "${ECHO_T}$PKG_CONFIG" >&6
24214 else
24215   echo "$as_me:$LINENO: result: no" >&5
24216 echo "${ECHO_T}no" >&6
24217 fi
24218
24219
24220   if test x$PKG_CONFIG != xno ; then
24221     if pkg-config --atleast-pkgconfig-version 0.7 ; then
24222       :
24223     else
24224       echo "*** pkg-config too old; version 0.7 or better required."
24225       no_gtk=yes
24226       PKG_CONFIG=no
24227     fi
24228   else
24229     no_gtk=yes
24230   fi
24231
24232   min_gtk_version=2.0.0
24233   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24234 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24235
24236   if test x$PKG_CONFIG != xno ; then
24237     ## don't try to run the test against uninstalled libtool libs
24238     if $PKG_CONFIG --uninstalled $pkg_config_args; then
24239           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24240           enable_gtktest=no
24241     fi
24242
24243     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24244           :
24245     else
24246           no_gtk=yes
24247     fi
24248   fi
24249
24250   if test x"$no_gtk" = x ; then
24251     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24252     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24253     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24254            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24255     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24256            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24257     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24258            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24259     if test "x$enable_gtktest" = "xyes" ; then
24260       ac_save_CFLAGS="$CFLAGS"
24261       ac_save_LIBS="$LIBS"
24262       CFLAGS="$CFLAGS $GTK_CFLAGS"
24263       LIBS="$GTK_LIBS $LIBS"
24264       rm -f conf.gtktest
24265       if test "$cross_compiling" = yes; then
24266   echo $ac_n "cross compiling; assumed OK... $ac_c"
24267 else
24268   cat >conftest.$ac_ext <<_ACEOF
24269 /* confdefs.h.  */
24270 _ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h.  */
24274
24275 #include <gtk/gtk.h>
24276 #include <stdio.h>
24277 #include <stdlib.h>
24278
24279 int
24280 main ()
24281 {
24282   int major, minor, micro;
24283   char *tmp_version;
24284
24285   system ("touch conf.gtktest");
24286
24287   /* HP/UX 9 (%@#!) writes to sscanf strings */
24288   tmp_version = g_strdup("$min_gtk_version");
24289   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24290      printf("%s, bad version string\n", "$min_gtk_version");
24291      exit(1);
24292    }
24293
24294   if ((gtk_major_version != $gtk_config_major_version) ||
24295       (gtk_minor_version != $gtk_config_minor_version) ||
24296       (gtk_micro_version != $gtk_config_micro_version))
24297     {
24298       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24299              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24300              gtk_major_version, gtk_minor_version, gtk_micro_version);
24301       printf ("*** was found! If pkg-config was correct, then it is best\n");
24302       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24303       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24304       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24305       printf("*** required on your system.\n");
24306       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24307       printf("*** to point to the correct configuration files\n");
24308     }
24309   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24310            (gtk_minor_version != GTK_MINOR_VERSION) ||
24311            (gtk_micro_version != GTK_MICRO_VERSION))
24312     {
24313       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24314              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24315       printf("*** library (version %d.%d.%d)\n",
24316              gtk_major_version, gtk_minor_version, gtk_micro_version);
24317     }
24318   else
24319     {
24320       if ((gtk_major_version > major) ||
24321         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24322         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24323       {
24324         return 0;
24325        }
24326      else
24327       {
24328         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24329                gtk_major_version, gtk_minor_version, gtk_micro_version);
24330         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24331                major, minor, micro);
24332         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24333         printf("***\n");
24334         printf("*** If you have already installed a sufficiently new version, this error\n");
24335         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24336         printf("*** being found. The easiest way to fix this is to remove the old version\n");
24337         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24338         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24339         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24340         printf("*** so that the correct libraries are found at run-time))\n");
24341       }
24342     }
24343   return 1;
24344 }
24345
24346 _ACEOF
24347 rm -f conftest$ac_exeext
24348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24349   (eval $ac_link) 2>&5
24350   ac_status=$?
24351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354   (eval $ac_try) 2>&5
24355   ac_status=$?
24356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357   (exit $ac_status); }; }; then
24358   :
24359 else
24360   echo "$as_me: program exited with status $ac_status" >&5
24361 echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24363
24364 ( exit $ac_status )
24365 no_gtk=yes
24366 fi
24367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24368 fi
24369        CFLAGS="$ac_save_CFLAGS"
24370        LIBS="$ac_save_LIBS"
24371      fi
24372   fi
24373   if test "x$no_gtk" = x ; then
24374      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24375 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24376      wx_cv_lib_gtk=2.0
24377   else
24378      echo "$as_me:$LINENO: result: no" >&5
24379 echo "${ECHO_T}no" >&6
24380      if test "$PKG_CONFIG" = "no" ; then
24381        echo "*** A new enough version of pkg-config was not found."
24382        echo "*** See http://pkgconfig.sourceforge.net"
24383      else
24384        if test -f conf.gtktest ; then
24385         :
24386        else
24387           echo "*** Could not run GTK+ test program, checking why..."
24388           ac_save_CFLAGS="$CFLAGS"
24389           ac_save_LIBS="$LIBS"
24390           CFLAGS="$CFLAGS $GTK_CFLAGS"
24391           LIBS="$LIBS $GTK_LIBS"
24392           cat >conftest.$ac_ext <<_ACEOF
24393 /* confdefs.h.  */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h.  */
24398
24399 #include <gtk/gtk.h>
24400 #include <stdio.h>
24401
24402 int
24403 main ()
24404 {
24405  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24406   ;
24407   return 0;
24408 }
24409 _ACEOF
24410 rm -f conftest.$ac_objext conftest$ac_exeext
24411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24412   (eval $ac_link) 2>conftest.er1
24413   ac_status=$?
24414   grep -v '^ *+' conftest.er1 >conftest.err
24415   rm -f conftest.er1
24416   cat conftest.err >&5
24417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418   (exit $ac_status); } &&
24419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421   (eval $ac_try) 2>&5
24422   ac_status=$?
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); }; } &&
24425          { ac_try='test -s conftest$ac_exeext'
24426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427   (eval $ac_try) 2>&5
24428   ac_status=$?
24429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430   (exit $ac_status); }; }; then
24431    echo "*** The test program compiled, but did not run. This usually means"
24432           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24433           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24434           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24435           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
24436           echo "*** is required on your system"
24437           echo "***"
24438           echo "*** If you have an old version installed, it is best to remove it, although"
24439           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24440 else
24441   echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24443
24444  echo "*** The test program failed to compile or link. See the file config.log for the"
24445           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24446 fi
24447 rm -f conftest.err conftest.$ac_objext \
24448       conftest$ac_exeext conftest.$ac_ext
24449           CFLAGS="$ac_save_CFLAGS"
24450           LIBS="$ac_save_LIBS"
24451        fi
24452      fi
24453      GTK_CFLAGS=""
24454      GTK_LIBS=""
24455      :
24456   fi
24457
24458
24459   rm -f conf.gtktest
24460
24461                 else
24462
24463 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24464 if test "${with_gtk_prefix+set}" = set; then
24465   withval="$with_gtk_prefix"
24466   gtk_config_prefix="$withval"
24467 else
24468   gtk_config_prefix=""
24469 fi;
24470
24471 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24472 if test "${with_gtk_exec_prefix+set}" = set; then
24473   withval="$with_gtk_exec_prefix"
24474   gtk_config_exec_prefix="$withval"
24475 else
24476   gtk_config_exec_prefix=""
24477 fi;
24478 # Check whether --enable-gtktest or --disable-gtktest was given.
24479 if test "${enable_gtktest+set}" = set; then
24480   enableval="$enable_gtktest"
24481
24482 else
24483   enable_gtktest=yes
24484 fi;
24485
24486   for module in . $GTK_MODULES
24487   do
24488       case "$module" in
24489          gthread)
24490              gtk_config_args="$gtk_config_args gthread"
24491          ;;
24492       esac
24493   done
24494
24495   if test x$gtk_config_exec_prefix != x ; then
24496      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24497      if test x${GTK_CONFIG+set} != xset ; then
24498         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24499      fi
24500   fi
24501   if test x$gtk_config_prefix != x ; then
24502      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24503      if test x${GTK_CONFIG+set} != xset ; then
24504         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24505      fi
24506   fi
24507
24508   # Extract the first word of "gtk-config", so it can be a program name with args.
24509 set dummy gtk-config; ac_word=$2
24510 echo "$as_me:$LINENO: checking for $ac_word" >&5
24511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24512 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24513   echo $ECHO_N "(cached) $ECHO_C" >&6
24514 else
24515   case $GTK_CONFIG in
24516   [\\/]* | ?:[\\/]*)
24517   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24518   ;;
24519   *)
24520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24521 for as_dir in $PATH
24522 do
24523   IFS=$as_save_IFS
24524   test -z "$as_dir" && as_dir=.
24525   for ac_exec_ext in '' $ac_executable_extensions; do
24526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24527     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24529     break 2
24530   fi
24531 done
24532 done
24533
24534   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24535   ;;
24536 esac
24537 fi
24538 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24539
24540 if test -n "$GTK_CONFIG"; then
24541   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24542 echo "${ECHO_T}$GTK_CONFIG" >&6
24543 else
24544   echo "$as_me:$LINENO: result: no" >&5
24545 echo "${ECHO_T}no" >&6
24546 fi
24547
24548   min_gtk_version=1.2.7
24549   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24550 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24551   no_gtk=""
24552   if test "$GTK_CONFIG" = "no" ; then
24553     no_gtk=yes
24554   else
24555     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24556     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24557     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24558            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24559     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24560            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24561     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24562            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24563     if test "x$enable_gtktest" = "xyes" ; then
24564       ac_save_CFLAGS="$CFLAGS"
24565       ac_save_LIBS="$LIBS"
24566       CFLAGS="$CFLAGS $GTK_CFLAGS"
24567       LIBS="$GTK_LIBS $LIBS"
24568       rm -f conf.gtktest
24569       if test "$cross_compiling" = yes; then
24570   echo $ac_n "cross compiling; assumed OK... $ac_c"
24571 else
24572   cat >conftest.$ac_ext <<_ACEOF
24573 /* confdefs.h.  */
24574 _ACEOF
24575 cat confdefs.h >>conftest.$ac_ext
24576 cat >>conftest.$ac_ext <<_ACEOF
24577 /* end confdefs.h.  */
24578
24579 #include <gtk/gtk.h>
24580 #include <stdio.h>
24581 #include <stdlib.h>
24582
24583 int
24584 main ()
24585 {
24586   int major, minor, micro;
24587   char *tmp_version;
24588
24589   system ("touch conf.gtktest");
24590
24591   /* HP/UX 9 (%@#!) writes to sscanf strings */
24592   tmp_version = g_strdup("$min_gtk_version");
24593   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24594      printf("%s, bad version string\n", "$min_gtk_version");
24595      exit(1);
24596    }
24597
24598   if ((gtk_major_version != $gtk_config_major_version) ||
24599       (gtk_minor_version != $gtk_config_minor_version) ||
24600       (gtk_micro_version != $gtk_config_micro_version))
24601     {
24602       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24603              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24604              gtk_major_version, gtk_minor_version, gtk_micro_version);
24605       printf ("*** was found! If gtk-config was correct, then it is best\n");
24606       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24607       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24608       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24609       printf("*** required on your system.\n");
24610       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24611       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24612       printf("*** before re-running configure\n");
24613     }
24614 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24615   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24616            (gtk_minor_version != GTK_MINOR_VERSION) ||
24617            (gtk_micro_version != GTK_MICRO_VERSION))
24618     {
24619       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24620              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24621       printf("*** library (version %d.%d.%d)\n",
24622              gtk_major_version, gtk_minor_version, gtk_micro_version);
24623     }
24624 #endif /* defined (GTK_MAJOR_VERSION) ... */
24625   else
24626     {
24627       if ((gtk_major_version > major) ||
24628         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24629         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24630       {
24631         return 0;
24632        }
24633      else
24634       {
24635         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24636                gtk_major_version, gtk_minor_version, gtk_micro_version);
24637         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24638                major, minor, micro);
24639         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24640         printf("***\n");
24641         printf("*** If you have already installed a sufficiently new version, this error\n");
24642         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24643         printf("*** being found. The easiest way to fix this is to remove the old version\n");
24644         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24645         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24646         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24647         printf("*** so that the correct libraries are found at run-time))\n");
24648       }
24649     }
24650   return 1;
24651 }
24652
24653 _ACEOF
24654 rm -f conftest$ac_exeext
24655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24656   (eval $ac_link) 2>&5
24657   ac_status=$?
24658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24661   (eval $ac_try) 2>&5
24662   ac_status=$?
24663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664   (exit $ac_status); }; }; then
24665   :
24666 else
24667   echo "$as_me: program exited with status $ac_status" >&5
24668 echo "$as_me: failed program was:" >&5
24669 sed 's/^/| /' conftest.$ac_ext >&5
24670
24671 ( exit $ac_status )
24672 no_gtk=yes
24673 fi
24674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24675 fi
24676        CFLAGS="$ac_save_CFLAGS"
24677        LIBS="$ac_save_LIBS"
24678      fi
24679   fi
24680   if test "x$no_gtk" = x ; then
24681      echo "$as_me:$LINENO: result: yes" >&5
24682 echo "${ECHO_T}yes" >&6
24683      wx_cv_lib_gtk=1.2.7
24684   else
24685      echo "$as_me:$LINENO: result: no" >&5
24686 echo "${ECHO_T}no" >&6
24687      if test "$GTK_CONFIG" = "no" ; then
24688        echo "*** The gtk-config script installed by GTK could not be found"
24689        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24690        echo "*** your path, or set the GTK_CONFIG environment variable to the"
24691        echo "*** full path to gtk-config."
24692      else
24693        if test -f conf.gtktest ; then
24694         :
24695        else
24696           echo "*** Could not run GTK test program, checking why..."
24697           CFLAGS="$CFLAGS $GTK_CFLAGS"
24698           LIBS="$LIBS $GTK_LIBS"
24699           cat >conftest.$ac_ext <<_ACEOF
24700 /* confdefs.h.  */
24701 _ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h.  */
24705
24706 #include <gtk/gtk.h>
24707 #include <stdio.h>
24708
24709 int
24710 main ()
24711 {
24712  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24713   ;
24714   return 0;
24715 }
24716 _ACEOF
24717 rm -f conftest.$ac_objext conftest$ac_exeext
24718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24719   (eval $ac_link) 2>conftest.er1
24720   ac_status=$?
24721   grep -v '^ *+' conftest.er1 >conftest.err
24722   rm -f conftest.er1
24723   cat conftest.err >&5
24724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725   (exit $ac_status); } &&
24726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728   (eval $ac_try) 2>&5
24729   ac_status=$?
24730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731   (exit $ac_status); }; } &&
24732          { ac_try='test -s conftest$ac_exeext'
24733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24734   (eval $ac_try) 2>&5
24735   ac_status=$?
24736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737   (exit $ac_status); }; }; then
24738    echo "*** The test program compiled, but did not run. This usually means"
24739           echo "*** that the run-time linker is not finding GTK or finding the wrong"
24740           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24741           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24742           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
24743           echo "*** is required on your system"
24744           echo "***"
24745           echo "*** If you have an old version installed, it is best to remove it, although"
24746           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24747           echo "***"
24748           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24749           echo "*** came with the system with the command"
24750           echo "***"
24751           echo "***    rpm --erase --nodeps gtk gtk-devel"
24752 else
24753   echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24755
24756  echo "*** The test program failed to compile or link. See the file config.log for the"
24757           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24758           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24759           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24760 fi
24761 rm -f conftest.err conftest.$ac_objext \
24762       conftest$ac_exeext conftest.$ac_ext
24763           CFLAGS="$ac_save_CFLAGS"
24764           LIBS="$ac_save_LIBS"
24765        fi
24766      fi
24767      GTK_CFLAGS=""
24768      GTK_LIBS=""
24769      :
24770   fi
24771
24772
24773   rm -f conf.gtktest
24774
24775
24776                     if test -z "$wx_cv_lib_gtk"; then
24777
24778 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24779 if test "${with_gtk_prefix+set}" = set; then
24780   withval="$with_gtk_prefix"
24781   gtk_config_prefix="$withval"
24782 else
24783   gtk_config_prefix=""
24784 fi;
24785
24786 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24787 if test "${with_gtk_exec_prefix+set}" = set; then
24788   withval="$with_gtk_exec_prefix"
24789   gtk_config_exec_prefix="$withval"
24790 else
24791   gtk_config_exec_prefix=""
24792 fi;
24793 # Check whether --enable-gtktest or --disable-gtktest was given.
24794 if test "${enable_gtktest+set}" = set; then
24795   enableval="$enable_gtktest"
24796
24797 else
24798   enable_gtktest=yes
24799 fi;
24800
24801   for module in . $GTK_MODULES
24802   do
24803       case "$module" in
24804          gthread)
24805              gtk_config_args="$gtk_config_args gthread"
24806          ;;
24807       esac
24808   done
24809
24810   if test x$gtk_config_exec_prefix != x ; then
24811      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24812      if test x${GTK_CONFIG+set} != xset ; then
24813         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24814      fi
24815   fi
24816   if test x$gtk_config_prefix != x ; then
24817      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24818      if test x${GTK_CONFIG+set} != xset ; then
24819         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24820      fi
24821   fi
24822
24823   # Extract the first word of "gtk-config", so it can be a program name with args.
24824 set dummy gtk-config; ac_word=$2
24825 echo "$as_me:$LINENO: checking for $ac_word" >&5
24826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24827 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24828   echo $ECHO_N "(cached) $ECHO_C" >&6
24829 else
24830   case $GTK_CONFIG in
24831   [\\/]* | ?:[\\/]*)
24832   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24833   ;;
24834   *)
24835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24836 for as_dir in $PATH
24837 do
24838   IFS=$as_save_IFS
24839   test -z "$as_dir" && as_dir=.
24840   for ac_exec_ext in '' $ac_executable_extensions; do
24841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24842     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24844     break 2
24845   fi
24846 done
24847 done
24848
24849   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24850   ;;
24851 esac
24852 fi
24853 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24854
24855 if test -n "$GTK_CONFIG"; then
24856   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24857 echo "${ECHO_T}$GTK_CONFIG" >&6
24858 else
24859   echo "$as_me:$LINENO: result: no" >&5
24860 echo "${ECHO_T}no" >&6
24861 fi
24862
24863   min_gtk_version=1.2.3
24864   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24865 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24866   no_gtk=""
24867   if test "$GTK_CONFIG" = "no" ; then
24868     no_gtk=yes
24869   else
24870     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24871     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24872     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24873            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24874     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24875            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24876     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24877            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24878     if test "x$enable_gtktest" = "xyes" ; then
24879       ac_save_CFLAGS="$CFLAGS"
24880       ac_save_LIBS="$LIBS"
24881       CFLAGS="$CFLAGS $GTK_CFLAGS"
24882       LIBS="$GTK_LIBS $LIBS"
24883       rm -f conf.gtktest
24884       if test "$cross_compiling" = yes; then
24885   echo $ac_n "cross compiling; assumed OK... $ac_c"
24886 else
24887   cat >conftest.$ac_ext <<_ACEOF
24888 /* confdefs.h.  */
24889 _ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h.  */
24893
24894 #include <gtk/gtk.h>
24895 #include <stdio.h>
24896 #include <stdlib.h>
24897
24898 int
24899 main ()
24900 {
24901   int major, minor, micro;
24902   char *tmp_version;
24903
24904   system ("touch conf.gtktest");
24905
24906   /* HP/UX 9 (%@#!) writes to sscanf strings */
24907   tmp_version = g_strdup("$min_gtk_version");
24908   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24909      printf("%s, bad version string\n", "$min_gtk_version");
24910      exit(1);
24911    }
24912
24913   if ((gtk_major_version != $gtk_config_major_version) ||
24914       (gtk_minor_version != $gtk_config_minor_version) ||
24915       (gtk_micro_version != $gtk_config_micro_version))
24916     {
24917       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24918              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24919              gtk_major_version, gtk_minor_version, gtk_micro_version);
24920       printf ("*** was found! If gtk-config was correct, then it is best\n");
24921       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24922       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24923       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24924       printf("*** required on your system.\n");
24925       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24926       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24927       printf("*** before re-running configure\n");
24928     }
24929 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24930   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24931            (gtk_minor_version != GTK_MINOR_VERSION) ||
24932            (gtk_micro_version != GTK_MICRO_VERSION))
24933     {
24934       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24935              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24936       printf("*** library (version %d.%d.%d)\n",
24937              gtk_major_version, gtk_minor_version, gtk_micro_version);
24938     }
24939 #endif /* defined (GTK_MAJOR_VERSION) ... */
24940   else
24941     {
24942       if ((gtk_major_version > major) ||
24943         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24944         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24945       {
24946         return 0;
24947        }
24948      else
24949       {
24950         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24951                gtk_major_version, gtk_minor_version, gtk_micro_version);
24952         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24953                major, minor, micro);
24954         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24955         printf("***\n");
24956         printf("*** If you have already installed a sufficiently new version, this error\n");
24957         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24958         printf("*** being found. The easiest way to fix this is to remove the old version\n");
24959         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24960         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24961         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24962         printf("*** so that the correct libraries are found at run-time))\n");
24963       }
24964     }
24965   return 1;
24966 }
24967
24968 _ACEOF
24969 rm -f conftest$ac_exeext
24970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24971   (eval $ac_link) 2>&5
24972   ac_status=$?
24973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976   (eval $ac_try) 2>&5
24977   ac_status=$?
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); }; }; then
24980   :
24981 else
24982   echo "$as_me: program exited with status $ac_status" >&5
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24985
24986 ( exit $ac_status )
24987 no_gtk=yes
24988 fi
24989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24990 fi
24991        CFLAGS="$ac_save_CFLAGS"
24992        LIBS="$ac_save_LIBS"
24993      fi
24994   fi
24995   if test "x$no_gtk" = x ; then
24996      echo "$as_me:$LINENO: result: yes" >&5
24997 echo "${ECHO_T}yes" >&6
24998      wx_cv_lib_gtk=1.2.3
24999   else
25000      echo "$as_me:$LINENO: result: no" >&5
25001 echo "${ECHO_T}no" >&6
25002      if test "$GTK_CONFIG" = "no" ; then
25003        echo "*** The gtk-config script installed by GTK could not be found"
25004        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25005        echo "*** your path, or set the GTK_CONFIG environment variable to the"
25006        echo "*** full path to gtk-config."
25007      else
25008        if test -f conf.gtktest ; then
25009         :
25010        else
25011           echo "*** Could not run GTK test program, checking why..."
25012           CFLAGS="$CFLAGS $GTK_CFLAGS"
25013           LIBS="$LIBS $GTK_LIBS"
25014           cat >conftest.$ac_ext <<_ACEOF
25015 /* confdefs.h.  */
25016 _ACEOF
25017 cat confdefs.h >>conftest.$ac_ext
25018 cat >>conftest.$ac_ext <<_ACEOF
25019 /* end confdefs.h.  */
25020
25021 #include <gtk/gtk.h>
25022 #include <stdio.h>
25023
25024 int
25025 main ()
25026 {
25027  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25028   ;
25029   return 0;
25030 }
25031 _ACEOF
25032 rm -f conftest.$ac_objext conftest$ac_exeext
25033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25034   (eval $ac_link) 2>conftest.er1
25035   ac_status=$?
25036   grep -v '^ *+' conftest.er1 >conftest.err
25037   rm -f conftest.er1
25038   cat conftest.err >&5
25039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); } &&
25041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25043   (eval $ac_try) 2>&5
25044   ac_status=$?
25045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046   (exit $ac_status); }; } &&
25047          { ac_try='test -s conftest$ac_exeext'
25048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049   (eval $ac_try) 2>&5
25050   ac_status=$?
25051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052   (exit $ac_status); }; }; then
25053    echo "*** The test program compiled, but did not run. This usually means"
25054           echo "*** that the run-time linker is not finding GTK or finding the wrong"
25055           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25056           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25057           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
25058           echo "*** is required on your system"
25059           echo "***"
25060           echo "*** If you have an old version installed, it is best to remove it, although"
25061           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25062           echo "***"
25063           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25064           echo "*** came with the system with the command"
25065           echo "***"
25066           echo "***    rpm --erase --nodeps gtk gtk-devel"
25067 else
25068   echo "$as_me: failed program was:" >&5
25069 sed 's/^/| /' conftest.$ac_ext >&5
25070
25071  echo "*** The test program failed to compile or link. See the file config.log for the"
25072           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25073           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25074           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25075 fi
25076 rm -f conftest.err conftest.$ac_objext \
25077       conftest$ac_exeext conftest.$ac_ext
25078           CFLAGS="$ac_save_CFLAGS"
25079           LIBS="$ac_save_LIBS"
25080        fi
25081      fi
25082      GTK_CFLAGS=""
25083      GTK_LIBS=""
25084      :
25085   fi
25086
25087
25088   rm -f conf.gtktest
25089
25090                     fi
25091                 fi
25092
25093                 if test -z "$wx_cv_lib_gtk"; then
25094                                         wx_cv_lib_gtk=none
25095                 else
25096                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
25097                     wx_cv_libs_gtk=$GTK_LIBS
25098                 fi
25099
25100
25101 fi
25102
25103
25104                         if test "$gtk_version_cached" = 1; then
25105             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25106 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25107         fi
25108
25109         case "$wx_cv_lib_gtk" in
25110             2.0)    WXGTK20=1
25111                     TOOLKIT_VERSION=2
25112                     ;;
25113             1.2.7)  WXGTK127=1
25114                     WXGTK12=1
25115                     ;;
25116             1.2.3)  WXGTK12=1
25117                     ;;
25118             *)      { { echo "$as_me:$LINENO: error:
25119 Please check that gtk-config is in path, the directory
25120 where GTK+ libraries are installed (returned by
25121 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25122 equivalent variable and GTK+ is version 1.2.3 or above.
25123                             " >&5
25124 echo "$as_me: error:
25125 Please check that gtk-config is in path, the directory
25126 where GTK+ libraries are installed (returned by
25127 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25128 equivalent variable and GTK+ is version 1.2.3 or above.
25129                             " >&2;}
25130    { (exit 1); exit 1; }; }
25131                     ;;
25132         esac
25133
25134         if test "$WXGTK20" = 1; then
25135             save_CFLAGS="$CFLAGS"
25136             save_LIBS="$LIBS"
25137             CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25138             LIBS="$LIBS $wx_cv_lib_gtk"
25139
25140
25141 for ac_func in pango_font_family_is_monospace
25142 do
25143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25144 echo "$as_me:$LINENO: checking for $ac_func" >&5
25145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25146 if eval "test \"\${$as_ac_var+set}\" = set"; then
25147   echo $ECHO_N "(cached) $ECHO_C" >&6
25148 else
25149   cat >conftest.$ac_ext <<_ACEOF
25150 /* confdefs.h.  */
25151 _ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h.  */
25155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25157 #define $ac_func innocuous_$ac_func
25158
25159 /* System header to define __stub macros and hopefully few prototypes,
25160     which can conflict with char $ac_func (); below.
25161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25162     <limits.h> exists even on freestanding compilers.  */
25163
25164 #ifdef __STDC__
25165 # include <limits.h>
25166 #else
25167 # include <assert.h>
25168 #endif
25169
25170 #undef $ac_func
25171
25172 /* Override any gcc2 internal prototype to avoid an error.  */
25173 #ifdef __cplusplus
25174 extern "C"
25175 {
25176 #endif
25177 /* We use char because int might match the return type of a gcc2
25178    builtin and then its argument prototype would still apply.  */
25179 char $ac_func ();
25180 /* The GNU C library defines this for functions which it implements
25181     to always fail with ENOSYS.  Some functions are actually named
25182     something starting with __ and the normal name is an alias.  */
25183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25184 choke me
25185 #else
25186 char (*f) () = $ac_func;
25187 #endif
25188 #ifdef __cplusplus
25189 }
25190 #endif
25191
25192 int
25193 main ()
25194 {
25195 return f != $ac_func;
25196   ;
25197   return 0;
25198 }
25199 _ACEOF
25200 rm -f conftest.$ac_objext conftest$ac_exeext
25201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25202   (eval $ac_link) 2>conftest.er1
25203   ac_status=$?
25204   grep -v '^ *+' conftest.er1 >conftest.err
25205   rm -f conftest.er1
25206   cat conftest.err >&5
25207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208   (exit $ac_status); } &&
25209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211   (eval $ac_try) 2>&5
25212   ac_status=$?
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); }; } &&
25215          { ac_try='test -s conftest$ac_exeext'
25216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217   (eval $ac_try) 2>&5
25218   ac_status=$?
25219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220   (exit $ac_status); }; }; then
25221   eval "$as_ac_var=yes"
25222 else
25223   echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25225
25226 eval "$as_ac_var=no"
25227 fi
25228 rm -f conftest.err conftest.$ac_objext \
25229       conftest$ac_exeext conftest.$ac_ext
25230 fi
25231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25233 if test `eval echo '${'$as_ac_var'}'` = yes; then
25234   cat >>confdefs.h <<_ACEOF
25235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25236 _ACEOF
25237
25238 fi
25239 done
25240
25241
25242                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25243 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25244             cat >conftest.$ac_ext <<_ACEOF
25245 /* confdefs.h.  */
25246 _ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h.  */
25250
25251                             #include <gtk/gtk.h>
25252
25253 int
25254 main ()
25255 {
25256
25257                             #if !GTK_CHECK_VERSION(2,4,0)
25258                             #error "Not GTK+ 2.4"
25259                             #endif
25260
25261   ;
25262   return 0;
25263 }
25264 _ACEOF
25265 rm -f conftest.$ac_objext
25266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25267   (eval $ac_compile) 2>conftest.er1
25268   ac_status=$?
25269   grep -v '^ *+' conftest.er1 >conftest.err
25270   rm -f conftest.er1
25271   cat conftest.err >&5
25272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273   (exit $ac_status); } &&
25274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276   (eval $ac_try) 2>&5
25277   ac_status=$?
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); }; } &&
25280          { ac_try='test -s conftest.$ac_objext'
25281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282   (eval $ac_try) 2>&5
25283   ac_status=$?
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); }; }; then
25286
25287                             cat >>confdefs.h <<\_ACEOF
25288 #define __WXGTK24__ 1
25289 _ACEOF
25290
25291                             echo "$as_me:$LINENO: result: yes" >&5
25292 echo "${ECHO_T}yes" >&6
25293
25294 else
25295   echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25297
25298
25299                             echo "$as_me:$LINENO: result: no" >&5
25300 echo "${ECHO_T}no" >&6
25301
25302 fi
25303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25304
25305             CFLAGS="$save_CFLAGS"
25306             LIBS="$save_LIBS"
25307         else
25308             if test "$wxUSE_UNICODE" = "yes"; then
25309                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25310 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25311                 wxUSE_UNICODE=no
25312             fi
25313         fi
25314
25315                         if test "$USE_DARWIN" != 1; then
25316
25317 for ac_func in poll
25318 do
25319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25320 echo "$as_me:$LINENO: checking for $ac_func" >&5
25321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25322 if eval "test \"\${$as_ac_var+set}\" = set"; then
25323   echo $ECHO_N "(cached) $ECHO_C" >&6
25324 else
25325   cat >conftest.$ac_ext <<_ACEOF
25326 /* confdefs.h.  */
25327 _ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h.  */
25331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25333 #define $ac_func innocuous_$ac_func
25334
25335 /* System header to define __stub macros and hopefully few prototypes,
25336     which can conflict with char $ac_func (); below.
25337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25338     <limits.h> exists even on freestanding compilers.  */
25339
25340 #ifdef __STDC__
25341 # include <limits.h>
25342 #else
25343 # include <assert.h>
25344 #endif
25345
25346 #undef $ac_func
25347
25348 /* Override any gcc2 internal prototype to avoid an error.  */
25349 #ifdef __cplusplus
25350 extern "C"
25351 {
25352 #endif
25353 /* We use char because int might match the return type of a gcc2
25354    builtin and then its argument prototype would still apply.  */
25355 char $ac_func ();
25356 /* The GNU C library defines this for functions which it implements
25357     to always fail with ENOSYS.  Some functions are actually named
25358     something starting with __ and the normal name is an alias.  */
25359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25360 choke me
25361 #else
25362 char (*f) () = $ac_func;
25363 #endif
25364 #ifdef __cplusplus
25365 }
25366 #endif
25367
25368 int
25369 main ()
25370 {
25371 return f != $ac_func;
25372   ;
25373   return 0;
25374 }
25375 _ACEOF
25376 rm -f conftest.$ac_objext conftest$ac_exeext
25377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25378   (eval $ac_link) 2>conftest.er1
25379   ac_status=$?
25380   grep -v '^ *+' conftest.er1 >conftest.err
25381   rm -f conftest.er1
25382   cat conftest.err >&5
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); } &&
25385          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387   (eval $ac_try) 2>&5
25388   ac_status=$?
25389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); }; } &&
25391          { ac_try='test -s conftest$ac_exeext'
25392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393   (eval $ac_try) 2>&5
25394   ac_status=$?
25395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396   (exit $ac_status); }; }; then
25397   eval "$as_ac_var=yes"
25398 else
25399   echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25401
25402 eval "$as_ac_var=no"
25403 fi
25404 rm -f conftest.err conftest.$ac_objext \
25405       conftest$ac_exeext conftest.$ac_ext
25406 fi
25407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25409 if test `eval echo '${'$as_ac_var'}'` = yes; then
25410   cat >>confdefs.h <<_ACEOF
25411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25412 _ACEOF
25413
25414 fi
25415 done
25416
25417         fi
25418
25419         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25420         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25421
25422         AFMINSTALL=afminstall
25423         TOOLKIT=GTK
25424         GUIDIST=GTK_DIST
25425
25426                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25427 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25428 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25429   echo $ECHO_N "(cached) $ECHO_C" >&6
25430 else
25431   ac_check_lib_save_LIBS=$LIBS
25432 LIBS="-lgdk  $LIBS"
25433 cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h.  */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h.  */
25439
25440 /* Override any gcc2 internal prototype to avoid an error.  */
25441 #ifdef __cplusplus
25442 extern "C"
25443 #endif
25444 /* We use char because int might match the return type of a gcc2
25445    builtin and then its argument prototype would still apply.  */
25446 char gdk_im_open ();
25447 int
25448 main ()
25449 {
25450 gdk_im_open ();
25451   ;
25452   return 0;
25453 }
25454 _ACEOF
25455 rm -f conftest.$ac_objext conftest$ac_exeext
25456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25457   (eval $ac_link) 2>conftest.er1
25458   ac_status=$?
25459   grep -v '^ *+' conftest.er1 >conftest.err
25460   rm -f conftest.er1
25461   cat conftest.err >&5
25462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463   (exit $ac_status); } &&
25464          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466   (eval $ac_try) 2>&5
25467   ac_status=$?
25468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469   (exit $ac_status); }; } &&
25470          { ac_try='test -s conftest$ac_exeext'
25471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472   (eval $ac_try) 2>&5
25473   ac_status=$?
25474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475   (exit $ac_status); }; }; then
25476   ac_cv_lib_gdk_gdk_im_open=yes
25477 else
25478   echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25480
25481 ac_cv_lib_gdk_gdk_im_open=no
25482 fi
25483 rm -f conftest.err conftest.$ac_objext \
25484       conftest$ac_exeext conftest.$ac_ext
25485 LIBS=$ac_check_lib_save_LIBS
25486 fi
25487 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25488 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25489 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25490   cat >>confdefs.h <<\_ACEOF
25491 #define HAVE_XIM 1
25492 _ACEOF
25493
25494 fi
25495
25496
25497
25498                 if test "$wxUSE_GPE" = "yes"; then
25499             echo "$as_me:$LINENO: checking for gpewidget library" >&5
25500 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25501
25502 ac_find_libraries=
25503 for ac_dir in $SEARCH_LIB /usr/lib;
25504   do
25505     for ac_extension in a so sl dylib; do
25506       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25507         ac_find_libraries=$ac_dir
25508         break 2
25509       fi
25510     done
25511   done
25512
25513             if test "$ac_find_libraries" != "" ; then
25514
25515   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25516   result=$?
25517   if test $result = 0; then
25518     ac_path_to_link=""
25519   else
25520     ac_path_to_link=" -L$ac_find_libraries"
25521   fi
25522
25523                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25524                 WXGPE=1
25525                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25526 echo "${ECHO_T}found at $ac_find_libraries" >&6
25527             else
25528                 echo "$as_me:$LINENO: result: not found" >&5
25529 echo "${ECHO_T}not found" >&6
25530             fi
25531
25532                                                                                                                     fi
25533     fi
25534
25535     if test "$wxUSE_MGL" = 1; then
25536        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25537 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25538         if test "x$MGL_ROOT" = x ; then
25539             echo "$as_me:$LINENO: result: not found" >&5
25540 echo "${ECHO_T}not found" >&6
25541             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25542 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25543    { (exit 1); exit 1; }; }
25544         else
25545             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25546 echo "${ECHO_T}$MGL_ROOT" >&6
25547         fi
25548
25549         echo "$as_me:$LINENO: checking for libmgl location" >&5
25550 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25551                                 case "${host}" in
25552             *-*-linux* )
25553                                           if test "x$wxUSE_SHARED" = xyes ; then
25554                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25555               else
25556                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25557               fi
25558               ;;
25559             *-pc-msdosdjgpp )
25560               mgl_os_candidates="dos32/dj2"
25561               ;;
25562             *)
25563               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25564 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25565    { (exit 1); exit 1; }; }
25566         esac
25567
25568         mgl_lib_type=""
25569         mgl_os=""
25570
25571         for mgl_os_i in $mgl_os_candidates ; do
25572             if test "x$mgl_os" = x ; then
25573                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25574                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25575                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25576                         mgl_lib_type=debug
25577                         mgl_os=$mgl_os_i
25578                     fi
25579                 fi
25580                 if test "x$mgl_lib_type" = x ; then
25581                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25582                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25583                         mgl_lib_type=release
25584                         mgl_os=$mgl_os_i
25585                     fi
25586                 fi
25587             fi
25588         done
25589
25590         if test "x$mgl_os" = x ; then
25591             echo "$as_me:$LINENO: result: not found" >&5
25592 echo "${ECHO_T}not found" >&6
25593             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25594 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25595    { (exit 1); exit 1; }; }
25596         fi
25597         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25598 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25599
25600         wxUSE_UNIVERSAL="yes"
25601
25602         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25603         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25604
25605         AFMINSTALL=afminstall
25606         TOOLKIT=MGL
25607         GUIDIST=MGL_DIST
25608     fi
25609
25610     if test "$wxUSE_MICROWIN" = 1; then
25611         echo "$as_me:$LINENO: checking for MicroWindows" >&5
25612 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25613         if test "x$MICROWINDOWS" = x ; then
25614             echo "$as_me:$LINENO: result: not found" >&5
25615 echo "${ECHO_T}not found" >&6
25616             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25617 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25618    { (exit 1); exit 1; }; }
25619         else
25620             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25621 echo "${ECHO_T}$MICROWINDOWS" >&6
25622         fi
25623
25624         if test -f $MICROWINDOWS/lib/libmwin.a; then
25625             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25626 echo "${ECHO_T}MicroWindows' libraries found." >&6
25627         else
25628             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25629 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25630    { (exit 1); exit 1; }; }
25631         fi
25632
25633         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25634         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25635
25636         wxUSE_UNIVERSAL="yes"
25637
25638         AFMINSTALL=afminstall
25639         TOOLKIT=MICROWIN
25640         GUIDIST=MICROWIN_DIST
25641
25642         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25643     fi
25644
25645         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25646
25647 if test "x$ac_path_x_has_been_run" != xyes; then
25648   echo "$as_me:$LINENO: checking for X" >&5
25649 echo $ECHO_N "checking for X... $ECHO_C" >&6
25650
25651 ac_path_x_has_been_run=yes
25652
25653 # Check whether --with-x or --without-x was given.
25654 if test "${with_x+set}" = set; then
25655   withval="$with_x"
25656
25657 fi;
25658 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25659 if test "x$with_x" = xno; then
25660   # The user explicitly disabled X.
25661   have_x=disabled
25662 else
25663   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25664     # Both variables are already set.
25665     have_x=yes
25666   else
25667     if test "${ac_cv_have_x+set}" = set; then
25668   echo $ECHO_N "(cached) $ECHO_C" >&6
25669 else
25670   # One or both of the vars are not set, and there is no cached value.
25671 ac_x_includes=no ac_x_libraries=no
25672 rm -fr conftest.dir
25673 if mkdir conftest.dir; then
25674   cd conftest.dir
25675   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25676   cat >Imakefile <<'_ACEOF'
25677 acfindx:
25678         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25679 _ACEOF
25680   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25681     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25682     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25683     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25684     for ac_extension in a so sl; do
25685       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
25686          test -f $ac_im_libdir/libX11.$ac_extension; then
25687         ac_im_usrlibdir=$ac_im_libdir; break
25688       fi
25689     done
25690     # Screen out bogus values from the imake configuration.  They are
25691     # bogus both because they are the default anyway, and because
25692     # using them would break gcc on systems where it needs fixed includes.
25693     case $ac_im_incroot in
25694         /usr/include) ;;
25695         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25696     esac
25697     case $ac_im_usrlibdir in
25698         /usr/lib | /lib) ;;
25699         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25700     esac
25701   fi
25702   cd ..
25703   rm -fr conftest.dir
25704 fi
25705
25706 # Standard set of common directories for X headers.
25707 # Check X11 before X11Rn because it is often a symlink to the current release.
25708 ac_x_header_dirs='
25709 /usr/X11/include
25710 /usr/X11R6/include
25711 /usr/X11R5/include
25712 /usr/X11R4/include
25713
25714 /usr/include/X11
25715 /usr/include/X11R6
25716 /usr/include/X11R5
25717 /usr/include/X11R4
25718
25719 /usr/local/X11/include
25720 /usr/local/X11R6/include
25721 /usr/local/X11R5/include
25722 /usr/local/X11R4/include
25723
25724 /usr/local/include/X11
25725 /usr/local/include/X11R6
25726 /usr/local/include/X11R5
25727 /usr/local/include/X11R4
25728
25729 /usr/X386/include
25730 /usr/x386/include
25731 /usr/XFree86/include/X11
25732
25733 /usr/include
25734 /usr/local/include
25735 /usr/unsupported/include
25736 /usr/athena/include
25737 /usr/local/x11r5/include
25738 /usr/lpp/Xamples/include
25739
25740 /usr/openwin/include
25741 /usr/openwin/share/include'
25742
25743 if test "$ac_x_includes" = no; then
25744   # Guess where to find include files, by looking for a specified header file.
25745   # First, try using that file with no special directory specified.
25746   cat >conftest.$ac_ext <<_ACEOF
25747 /* confdefs.h.  */
25748 _ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h.  */
25752 #include <X11/Intrinsic.h>
25753 _ACEOF
25754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25756   ac_status=$?
25757   grep -v '^ *+' conftest.er1 >conftest.err
25758   rm -f conftest.er1
25759   cat conftest.err >&5
25760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761   (exit $ac_status); } >/dev/null; then
25762   if test -s conftest.err; then
25763     ac_cpp_err=$ac_c_preproc_warn_flag
25764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25765   else
25766     ac_cpp_err=
25767   fi
25768 else
25769   ac_cpp_err=yes
25770 fi
25771 if test -z "$ac_cpp_err"; then
25772   # We can compile using X headers with no special include directory.
25773 ac_x_includes=
25774 else
25775   echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25777
25778   for ac_dir in $ac_x_header_dirs; do
25779   if test -r "$ac_dir/X11/Intrinsic.h"; then
25780     ac_x_includes=$ac_dir
25781     break
25782   fi
25783 done
25784 fi
25785 rm -f conftest.err conftest.$ac_ext
25786 fi # $ac_x_includes = no
25787
25788 if test "$ac_x_libraries" = no; then
25789   # Check for the libraries.
25790   # See if we find them without any special options.
25791   # Don't add to $LIBS permanently.
25792   ac_save_LIBS=$LIBS
25793   LIBS="-lXt $LIBS"
25794   cat >conftest.$ac_ext <<_ACEOF
25795 /* confdefs.h.  */
25796 _ACEOF
25797 cat confdefs.h >>conftest.$ac_ext
25798 cat >>conftest.$ac_ext <<_ACEOF
25799 /* end confdefs.h.  */
25800 #include <X11/Intrinsic.h>
25801 int
25802 main ()
25803 {
25804 XtMalloc (0)
25805   ;
25806   return 0;
25807 }
25808 _ACEOF
25809 rm -f conftest.$ac_objext conftest$ac_exeext
25810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25811   (eval $ac_link) 2>conftest.er1
25812   ac_status=$?
25813   grep -v '^ *+' conftest.er1 >conftest.err
25814   rm -f conftest.er1
25815   cat conftest.err >&5
25816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817   (exit $ac_status); } &&
25818          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820   (eval $ac_try) 2>&5
25821   ac_status=$?
25822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); }; } &&
25824          { ac_try='test -s conftest$ac_exeext'
25825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826   (eval $ac_try) 2>&5
25827   ac_status=$?
25828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829   (exit $ac_status); }; }; then
25830   LIBS=$ac_save_LIBS
25831 # We can link X programs with no special library path.
25832 ac_x_libraries=
25833 else
25834   echo "$as_me: failed program was:" >&5
25835 sed 's/^/| /' conftest.$ac_ext >&5
25836
25837 LIBS=$ac_save_LIBS
25838 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25839 do
25840   # Don't even attempt the hair of trying to link an X program!
25841   for ac_extension in a so sl; do
25842     if test -r $ac_dir/libXt.$ac_extension; then
25843       ac_x_libraries=$ac_dir
25844       break 2
25845     fi
25846   done
25847 done
25848 fi
25849 rm -f conftest.err conftest.$ac_objext \
25850       conftest$ac_exeext conftest.$ac_ext
25851 fi # $ac_x_libraries = no
25852
25853 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25854   # Didn't find X anywhere.  Cache the known absence of X.
25855   ac_cv_have_x="have_x=no"
25856 else
25857   # Record where we found X for the cache.
25858   ac_cv_have_x="have_x=yes \
25859                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
25860 fi
25861 fi
25862
25863   fi
25864   eval "$ac_cv_have_x"
25865 fi # $with_x != no
25866
25867 if test "$have_x" != yes; then
25868   echo "$as_me:$LINENO: result: $have_x" >&5
25869 echo "${ECHO_T}$have_x" >&6
25870   no_x=yes
25871 else
25872   # If each of the values was on the command line, it overrides each guess.
25873   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25874   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25875   # Update the cache value to reflect the command line values.
25876   ac_cv_have_x="have_x=yes \
25877                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
25878   # It might be that x_includes is empty (headers are found in the
25879   # standard search path. Then output the corresponding message
25880   ac_out_x_includes=$x_includes
25881   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
25882   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
25883 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
25884 fi
25885
25886 fi
25887 if test "$no_x" = yes; then
25888   # Not all programs may use this symbol, but it does not hurt to define it.
25889
25890 cat >>confdefs.h <<\_ACEOF
25891 #define X_DISPLAY_MISSING 1
25892 _ACEOF
25893
25894   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25895 else
25896   if test -n "$x_includes"; then
25897     X_CFLAGS="$X_CFLAGS -I$x_includes"
25898   fi
25899
25900   # It would also be nice to do this for all -L options, not just this one.
25901   if test -n "$x_libraries"; then
25902     X_LIBS="$X_LIBS -L$x_libraries"
25903     # For Solaris; some versions of Sun CC require a space after -R and
25904     # others require no space.  Words are not sufficient . . . .
25905     case `(uname -sr) 2>/dev/null` in
25906     "SunOS 5"*)
25907       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25908 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25909       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25910       cat >conftest.$ac_ext <<_ACEOF
25911 /* confdefs.h.  */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h.  */
25916
25917 int
25918 main ()
25919 {
25920
25921   ;
25922   return 0;
25923 }
25924 _ACEOF
25925 rm -f conftest.$ac_objext conftest$ac_exeext
25926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25927   (eval $ac_link) 2>conftest.er1
25928   ac_status=$?
25929   grep -v '^ *+' conftest.er1 >conftest.err
25930   rm -f conftest.er1
25931   cat conftest.err >&5
25932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933   (exit $ac_status); } &&
25934          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25936   (eval $ac_try) 2>&5
25937   ac_status=$?
25938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939   (exit $ac_status); }; } &&
25940          { ac_try='test -s conftest$ac_exeext'
25941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942   (eval $ac_try) 2>&5
25943   ac_status=$?
25944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945   (exit $ac_status); }; }; then
25946   ac_R_nospace=yes
25947 else
25948   echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25950
25951 ac_R_nospace=no
25952 fi
25953 rm -f conftest.err conftest.$ac_objext \
25954       conftest$ac_exeext conftest.$ac_ext
25955       if test $ac_R_nospace = yes; then
25956         echo "$as_me:$LINENO: result: no" >&5
25957 echo "${ECHO_T}no" >&6
25958         X_LIBS="$X_LIBS -R$x_libraries"
25959       else
25960         LIBS="$ac_xsave_LIBS -R $x_libraries"
25961         cat >conftest.$ac_ext <<_ACEOF
25962 /* confdefs.h.  */
25963 _ACEOF
25964 cat confdefs.h >>conftest.$ac_ext
25965 cat >>conftest.$ac_ext <<_ACEOF
25966 /* end confdefs.h.  */
25967
25968 int
25969 main ()
25970 {
25971
25972   ;
25973   return 0;
25974 }
25975 _ACEOF
25976 rm -f conftest.$ac_objext conftest$ac_exeext
25977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25978   (eval $ac_link) 2>conftest.er1
25979   ac_status=$?
25980   grep -v '^ *+' conftest.er1 >conftest.err
25981   rm -f conftest.er1
25982   cat conftest.err >&5
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); } &&
25985          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987   (eval $ac_try) 2>&5
25988   ac_status=$?
25989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990   (exit $ac_status); }; } &&
25991          { ac_try='test -s conftest$ac_exeext'
25992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25993   (eval $ac_try) 2>&5
25994   ac_status=$?
25995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996   (exit $ac_status); }; }; then
25997   ac_R_space=yes
25998 else
25999   echo "$as_me: failed program was:" >&5
26000 sed 's/^/| /' conftest.$ac_ext >&5
26001
26002 ac_R_space=no
26003 fi
26004 rm -f conftest.err conftest.$ac_objext \
26005       conftest$ac_exeext conftest.$ac_ext
26006         if test $ac_R_space = yes; then
26007           echo "$as_me:$LINENO: result: yes" >&5
26008 echo "${ECHO_T}yes" >&6
26009           X_LIBS="$X_LIBS -R $x_libraries"
26010         else
26011           echo "$as_me:$LINENO: result: neither works" >&5
26012 echo "${ECHO_T}neither works" >&6
26013         fi
26014       fi
26015       LIBS=$ac_xsave_LIBS
26016     esac
26017   fi
26018
26019   # Check for system-dependent libraries X programs must link with.
26020   # Do this before checking for the system-independent R6 libraries
26021   # (-lICE), since we may need -lsocket or whatever for X linking.
26022
26023   if test "$ISC" = yes; then
26024     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26025   else
26026     # Martyn Johnson says this is needed for Ultrix, if the X
26027     # libraries were built with DECnet support.  And Karl Berry says
26028     # the Alpha needs dnet_stub (dnet does not exist).
26029     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26030     cat >conftest.$ac_ext <<_ACEOF
26031 /* confdefs.h.  */
26032 _ACEOF
26033 cat confdefs.h >>conftest.$ac_ext
26034 cat >>conftest.$ac_ext <<_ACEOF
26035 /* end confdefs.h.  */
26036
26037 /* Override any gcc2 internal prototype to avoid an error.  */
26038 #ifdef __cplusplus
26039 extern "C"
26040 #endif
26041 /* We use char because int might match the return type of a gcc2
26042    builtin and then its argument prototype would still apply.  */
26043 char XOpenDisplay ();
26044 int
26045 main ()
26046 {
26047 XOpenDisplay ();
26048   ;
26049   return 0;
26050 }
26051 _ACEOF
26052 rm -f conftest.$ac_objext conftest$ac_exeext
26053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26054   (eval $ac_link) 2>conftest.er1
26055   ac_status=$?
26056   grep -v '^ *+' conftest.er1 >conftest.err
26057   rm -f conftest.er1
26058   cat conftest.err >&5
26059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); } &&
26061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063   (eval $ac_try) 2>&5
26064   ac_status=$?
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); }; } &&
26067          { ac_try='test -s conftest$ac_exeext'
26068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069   (eval $ac_try) 2>&5
26070   ac_status=$?
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); }; }; then
26073   :
26074 else
26075   echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26077
26078 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26079 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26080 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26081   echo $ECHO_N "(cached) $ECHO_C" >&6
26082 else
26083   ac_check_lib_save_LIBS=$LIBS
26084 LIBS="-ldnet  $LIBS"
26085 cat >conftest.$ac_ext <<_ACEOF
26086 /* confdefs.h.  */
26087 _ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h.  */
26091
26092 /* Override any gcc2 internal prototype to avoid an error.  */
26093 #ifdef __cplusplus
26094 extern "C"
26095 #endif
26096 /* We use char because int might match the return type of a gcc2
26097    builtin and then its argument prototype would still apply.  */
26098 char dnet_ntoa ();
26099 int
26100 main ()
26101 {
26102 dnet_ntoa ();
26103   ;
26104   return 0;
26105 }
26106 _ACEOF
26107 rm -f conftest.$ac_objext conftest$ac_exeext
26108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26109   (eval $ac_link) 2>conftest.er1
26110   ac_status=$?
26111   grep -v '^ *+' conftest.er1 >conftest.err
26112   rm -f conftest.er1
26113   cat conftest.err >&5
26114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115   (exit $ac_status); } &&
26116          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26118   (eval $ac_try) 2>&5
26119   ac_status=$?
26120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121   (exit $ac_status); }; } &&
26122          { ac_try='test -s conftest$ac_exeext'
26123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124   (eval $ac_try) 2>&5
26125   ac_status=$?
26126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127   (exit $ac_status); }; }; then
26128   ac_cv_lib_dnet_dnet_ntoa=yes
26129 else
26130   echo "$as_me: failed program was:" >&5
26131 sed 's/^/| /' conftest.$ac_ext >&5
26132
26133 ac_cv_lib_dnet_dnet_ntoa=no
26134 fi
26135 rm -f conftest.err conftest.$ac_objext \
26136       conftest$ac_exeext conftest.$ac_ext
26137 LIBS=$ac_check_lib_save_LIBS
26138 fi
26139 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26140 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26141 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26142   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26143 fi
26144
26145     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26146       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26147 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26148 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26149   echo $ECHO_N "(cached) $ECHO_C" >&6
26150 else
26151   ac_check_lib_save_LIBS=$LIBS
26152 LIBS="-ldnet_stub  $LIBS"
26153 cat >conftest.$ac_ext <<_ACEOF
26154 /* confdefs.h.  */
26155 _ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h.  */
26159
26160 /* Override any gcc2 internal prototype to avoid an error.  */
26161 #ifdef __cplusplus
26162 extern "C"
26163 #endif
26164 /* We use char because int might match the return type of a gcc2
26165    builtin and then its argument prototype would still apply.  */
26166 char dnet_ntoa ();
26167 int
26168 main ()
26169 {
26170 dnet_ntoa ();
26171   ;
26172   return 0;
26173 }
26174 _ACEOF
26175 rm -f conftest.$ac_objext conftest$ac_exeext
26176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26177   (eval $ac_link) 2>conftest.er1
26178   ac_status=$?
26179   grep -v '^ *+' conftest.er1 >conftest.err
26180   rm -f conftest.er1
26181   cat conftest.err >&5
26182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183   (exit $ac_status); } &&
26184          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186   (eval $ac_try) 2>&5
26187   ac_status=$?
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); }; } &&
26190          { ac_try='test -s conftest$ac_exeext'
26191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192   (eval $ac_try) 2>&5
26193   ac_status=$?
26194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195   (exit $ac_status); }; }; then
26196   ac_cv_lib_dnet_stub_dnet_ntoa=yes
26197 else
26198   echo "$as_me: failed program was:" >&5
26199 sed 's/^/| /' conftest.$ac_ext >&5
26200
26201 ac_cv_lib_dnet_stub_dnet_ntoa=no
26202 fi
26203 rm -f conftest.err conftest.$ac_objext \
26204       conftest$ac_exeext conftest.$ac_ext
26205 LIBS=$ac_check_lib_save_LIBS
26206 fi
26207 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26208 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26209 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26210   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26211 fi
26212
26213     fi
26214 fi
26215 rm -f conftest.err conftest.$ac_objext \
26216       conftest$ac_exeext conftest.$ac_ext
26217     LIBS="$ac_xsave_LIBS"
26218
26219     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26220     # to get the SysV transport functions.
26221     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26222     # needs -lnsl.
26223     # The nsl library prevents programs from opening the X display
26224     # on Irix 5.2, according to T.E. Dickey.
26225     # The functions gethostbyname, getservbyname, and inet_addr are
26226     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26227     echo "$as_me:$LINENO: checking for gethostbyname" >&5
26228 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26229 if test "${ac_cv_func_gethostbyname+set}" = set; then
26230   echo $ECHO_N "(cached) $ECHO_C" >&6
26231 else
26232   cat >conftest.$ac_ext <<_ACEOF
26233 /* confdefs.h.  */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h.  */
26238 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26240 #define gethostbyname innocuous_gethostbyname
26241
26242 /* System header to define __stub macros and hopefully few prototypes,
26243     which can conflict with char gethostbyname (); below.
26244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26245     <limits.h> exists even on freestanding compilers.  */
26246
26247 #ifdef __STDC__
26248 # include <limits.h>
26249 #else
26250 # include <assert.h>
26251 #endif
26252
26253 #undef gethostbyname
26254
26255 /* Override any gcc2 internal prototype to avoid an error.  */
26256 #ifdef __cplusplus
26257 extern "C"
26258 {
26259 #endif
26260 /* We use char because int might match the return type of a gcc2
26261    builtin and then its argument prototype would still apply.  */
26262 char gethostbyname ();
26263 /* The GNU C library defines this for functions which it implements
26264     to always fail with ENOSYS.  Some functions are actually named
26265     something starting with __ and the normal name is an alias.  */
26266 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26267 choke me
26268 #else
26269 char (*f) () = gethostbyname;
26270 #endif
26271 #ifdef __cplusplus
26272 }
26273 #endif
26274
26275 int
26276 main ()
26277 {
26278 return f != gethostbyname;
26279   ;
26280   return 0;
26281 }
26282 _ACEOF
26283 rm -f conftest.$ac_objext conftest$ac_exeext
26284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26285   (eval $ac_link) 2>conftest.er1
26286   ac_status=$?
26287   grep -v '^ *+' conftest.er1 >conftest.err
26288   rm -f conftest.er1
26289   cat conftest.err >&5
26290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291   (exit $ac_status); } &&
26292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26294   (eval $ac_try) 2>&5
26295   ac_status=$?
26296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297   (exit $ac_status); }; } &&
26298          { ac_try='test -s conftest$ac_exeext'
26299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300   (eval $ac_try) 2>&5
26301   ac_status=$?
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); }; }; then
26304   ac_cv_func_gethostbyname=yes
26305 else
26306   echo "$as_me: failed program was:" >&5
26307 sed 's/^/| /' conftest.$ac_ext >&5
26308
26309 ac_cv_func_gethostbyname=no
26310 fi
26311 rm -f conftest.err conftest.$ac_objext \
26312       conftest$ac_exeext conftest.$ac_ext
26313 fi
26314 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26315 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26316
26317     if test $ac_cv_func_gethostbyname = no; then
26318       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26319 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26320 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26321   echo $ECHO_N "(cached) $ECHO_C" >&6
26322 else
26323   ac_check_lib_save_LIBS=$LIBS
26324 LIBS="-lnsl  $LIBS"
26325 cat >conftest.$ac_ext <<_ACEOF
26326 /* confdefs.h.  */
26327 _ACEOF
26328 cat confdefs.h >>conftest.$ac_ext
26329 cat >>conftest.$ac_ext <<_ACEOF
26330 /* end confdefs.h.  */
26331
26332 /* Override any gcc2 internal prototype to avoid an error.  */
26333 #ifdef __cplusplus
26334 extern "C"
26335 #endif
26336 /* We use char because int might match the return type of a gcc2
26337    builtin and then its argument prototype would still apply.  */
26338 char gethostbyname ();
26339 int
26340 main ()
26341 {
26342 gethostbyname ();
26343   ;
26344   return 0;
26345 }
26346 _ACEOF
26347 rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26349   (eval $ac_link) 2>conftest.er1
26350   ac_status=$?
26351   grep -v '^ *+' conftest.er1 >conftest.err
26352   rm -f conftest.er1
26353   cat conftest.err >&5
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); } &&
26356          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358   (eval $ac_try) 2>&5
26359   ac_status=$?
26360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361   (exit $ac_status); }; } &&
26362          { ac_try='test -s conftest$ac_exeext'
26363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364   (eval $ac_try) 2>&5
26365   ac_status=$?
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); }; }; then
26368   ac_cv_lib_nsl_gethostbyname=yes
26369 else
26370   echo "$as_me: failed program was:" >&5
26371 sed 's/^/| /' conftest.$ac_ext >&5
26372
26373 ac_cv_lib_nsl_gethostbyname=no
26374 fi
26375 rm -f conftest.err conftest.$ac_objext \
26376       conftest$ac_exeext conftest.$ac_ext
26377 LIBS=$ac_check_lib_save_LIBS
26378 fi
26379 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26380 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26381 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26382   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26383 fi
26384
26385       if test $ac_cv_lib_nsl_gethostbyname = no; then
26386         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26387 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26388 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26389   echo $ECHO_N "(cached) $ECHO_C" >&6
26390 else
26391   ac_check_lib_save_LIBS=$LIBS
26392 LIBS="-lbsd  $LIBS"
26393 cat >conftest.$ac_ext <<_ACEOF
26394 /* confdefs.h.  */
26395 _ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h.  */
26399
26400 /* Override any gcc2 internal prototype to avoid an error.  */
26401 #ifdef __cplusplus
26402 extern "C"
26403 #endif
26404 /* We use char because int might match the return type of a gcc2
26405    builtin and then its argument prototype would still apply.  */
26406 char gethostbyname ();
26407 int
26408 main ()
26409 {
26410 gethostbyname ();
26411   ;
26412   return 0;
26413 }
26414 _ACEOF
26415 rm -f conftest.$ac_objext conftest$ac_exeext
26416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26417   (eval $ac_link) 2>conftest.er1
26418   ac_status=$?
26419   grep -v '^ *+' conftest.er1 >conftest.err
26420   rm -f conftest.er1
26421   cat conftest.err >&5
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); } &&
26424          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26426   (eval $ac_try) 2>&5
26427   ac_status=$?
26428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429   (exit $ac_status); }; } &&
26430          { ac_try='test -s conftest$ac_exeext'
26431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26432   (eval $ac_try) 2>&5
26433   ac_status=$?
26434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435   (exit $ac_status); }; }; then
26436   ac_cv_lib_bsd_gethostbyname=yes
26437 else
26438   echo "$as_me: failed program was:" >&5
26439 sed 's/^/| /' conftest.$ac_ext >&5
26440
26441 ac_cv_lib_bsd_gethostbyname=no
26442 fi
26443 rm -f conftest.err conftest.$ac_objext \
26444       conftest$ac_exeext conftest.$ac_ext
26445 LIBS=$ac_check_lib_save_LIBS
26446 fi
26447 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26448 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26449 if test $ac_cv_lib_bsd_gethostbyname = yes; then
26450   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26451 fi
26452
26453       fi
26454     fi
26455
26456     # lieder@skyler.mavd.honeywell.com says without -lsocket,
26457     # socket/setsockopt and other routines are undefined under SCO ODT
26458     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
26459     # on later versions), says Simon Leinen: it contains gethostby*
26460     # variants that don't use the name server (or something).  -lsocket
26461     # must be given before -lnsl if both are needed.  We assume that
26462     # if connect needs -lnsl, so does gethostbyname.
26463     echo "$as_me:$LINENO: checking for connect" >&5
26464 echo $ECHO_N "checking for connect... $ECHO_C" >&6
26465 if test "${ac_cv_func_connect+set}" = set; then
26466   echo $ECHO_N "(cached) $ECHO_C" >&6
26467 else
26468   cat >conftest.$ac_ext <<_ACEOF
26469 /* confdefs.h.  */
26470 _ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h.  */
26474 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
26475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26476 #define connect innocuous_connect
26477
26478 /* System header to define __stub macros and hopefully few prototypes,
26479     which can conflict with char connect (); below.
26480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26481     <limits.h> exists even on freestanding compilers.  */
26482
26483 #ifdef __STDC__
26484 # include <limits.h>
26485 #else
26486 # include <assert.h>
26487 #endif
26488
26489 #undef connect
26490
26491 /* Override any gcc2 internal prototype to avoid an error.  */
26492 #ifdef __cplusplus
26493 extern "C"
26494 {
26495 #endif
26496 /* We use char because int might match the return type of a gcc2
26497    builtin and then its argument prototype would still apply.  */
26498 char connect ();
26499 /* The GNU C library defines this for functions which it implements
26500     to always fail with ENOSYS.  Some functions are actually named
26501     something starting with __ and the normal name is an alias.  */
26502 #if defined (__stub_connect) || defined (__stub___connect)
26503 choke me
26504 #else
26505 char (*f) () = connect;
26506 #endif
26507 #ifdef __cplusplus
26508 }
26509 #endif
26510
26511 int
26512 main ()
26513 {
26514 return f != connect;
26515   ;
26516   return 0;
26517 }
26518 _ACEOF
26519 rm -f conftest.$ac_objext conftest$ac_exeext
26520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26521   (eval $ac_link) 2>conftest.er1
26522   ac_status=$?
26523   grep -v '^ *+' conftest.er1 >conftest.err
26524   rm -f conftest.er1
26525   cat conftest.err >&5
26526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); } &&
26528          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26530   (eval $ac_try) 2>&5
26531   ac_status=$?
26532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533   (exit $ac_status); }; } &&
26534          { ac_try='test -s conftest$ac_exeext'
26535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26536   (eval $ac_try) 2>&5
26537   ac_status=$?
26538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539   (exit $ac_status); }; }; then
26540   ac_cv_func_connect=yes
26541 else
26542   echo "$as_me: failed program was:" >&5
26543 sed 's/^/| /' conftest.$ac_ext >&5
26544
26545 ac_cv_func_connect=no
26546 fi
26547 rm -f conftest.err conftest.$ac_objext \
26548       conftest$ac_exeext conftest.$ac_ext
26549 fi
26550 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26551 echo "${ECHO_T}$ac_cv_func_connect" >&6
26552
26553     if test $ac_cv_func_connect = no; then
26554       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26555 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26556 if test "${ac_cv_lib_socket_connect+set}" = set; then
26557   echo $ECHO_N "(cached) $ECHO_C" >&6
26558 else
26559   ac_check_lib_save_LIBS=$LIBS
26560 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26561 cat >conftest.$ac_ext <<_ACEOF
26562 /* confdefs.h.  */
26563 _ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h.  */
26567
26568 /* Override any gcc2 internal prototype to avoid an error.  */
26569 #ifdef __cplusplus
26570 extern "C"
26571 #endif
26572 /* We use char because int might match the return type of a gcc2
26573    builtin and then its argument prototype would still apply.  */
26574 char connect ();
26575 int
26576 main ()
26577 {
26578 connect ();
26579   ;
26580   return 0;
26581 }
26582 _ACEOF
26583 rm -f conftest.$ac_objext conftest$ac_exeext
26584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26585   (eval $ac_link) 2>conftest.er1
26586   ac_status=$?
26587   grep -v '^ *+' conftest.er1 >conftest.err
26588   rm -f conftest.er1
26589   cat conftest.err >&5
26590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591   (exit $ac_status); } &&
26592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26594   (eval $ac_try) 2>&5
26595   ac_status=$?
26596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597   (exit $ac_status); }; } &&
26598          { ac_try='test -s conftest$ac_exeext'
26599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26600   (eval $ac_try) 2>&5
26601   ac_status=$?
26602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603   (exit $ac_status); }; }; then
26604   ac_cv_lib_socket_connect=yes
26605 else
26606   echo "$as_me: failed program was:" >&5
26607 sed 's/^/| /' conftest.$ac_ext >&5
26608
26609 ac_cv_lib_socket_connect=no
26610 fi
26611 rm -f conftest.err conftest.$ac_objext \
26612       conftest$ac_exeext conftest.$ac_ext
26613 LIBS=$ac_check_lib_save_LIBS
26614 fi
26615 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26616 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26617 if test $ac_cv_lib_socket_connect = yes; then
26618   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26619 fi
26620
26621     fi
26622
26623     # Guillermo Gomez says -lposix is necessary on A/UX.
26624     echo "$as_me:$LINENO: checking for remove" >&5
26625 echo $ECHO_N "checking for remove... $ECHO_C" >&6
26626 if test "${ac_cv_func_remove+set}" = set; then
26627   echo $ECHO_N "(cached) $ECHO_C" >&6
26628 else
26629   cat >conftest.$ac_ext <<_ACEOF
26630 /* confdefs.h.  */
26631 _ACEOF
26632 cat confdefs.h >>conftest.$ac_ext
26633 cat >>conftest.$ac_ext <<_ACEOF
26634 /* end confdefs.h.  */
26635 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
26636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26637 #define remove innocuous_remove
26638
26639 /* System header to define __stub macros and hopefully few prototypes,
26640     which can conflict with char remove (); below.
26641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26642     <limits.h> exists even on freestanding compilers.  */
26643
26644 #ifdef __STDC__
26645 # include <limits.h>
26646 #else
26647 # include <assert.h>
26648 #endif
26649
26650 #undef remove
26651
26652 /* Override any gcc2 internal prototype to avoid an error.  */
26653 #ifdef __cplusplus
26654 extern "C"
26655 {
26656 #endif
26657 /* We use char because int might match the return type of a gcc2
26658    builtin and then its argument prototype would still apply.  */
26659 char remove ();
26660 /* The GNU C library defines this for functions which it implements
26661     to always fail with ENOSYS.  Some functions are actually named
26662     something starting with __ and the normal name is an alias.  */
26663 #if defined (__stub_remove) || defined (__stub___remove)
26664 choke me
26665 #else
26666 char (*f) () = remove;
26667 #endif
26668 #ifdef __cplusplus
26669 }
26670 #endif
26671
26672 int
26673 main ()
26674 {
26675 return f != remove;
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 rm -f conftest.$ac_objext conftest$ac_exeext
26681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26682   (eval $ac_link) 2>conftest.er1
26683   ac_status=$?
26684   grep -v '^ *+' conftest.er1 >conftest.err
26685   rm -f conftest.er1
26686   cat conftest.err >&5
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); } &&
26689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691   (eval $ac_try) 2>&5
26692   ac_status=$?
26693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694   (exit $ac_status); }; } &&
26695          { ac_try='test -s conftest$ac_exeext'
26696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697   (eval $ac_try) 2>&5
26698   ac_status=$?
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); }; }; then
26701   ac_cv_func_remove=yes
26702 else
26703   echo "$as_me: failed program was:" >&5
26704 sed 's/^/| /' conftest.$ac_ext >&5
26705
26706 ac_cv_func_remove=no
26707 fi
26708 rm -f conftest.err conftest.$ac_objext \
26709       conftest$ac_exeext conftest.$ac_ext
26710 fi
26711 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26712 echo "${ECHO_T}$ac_cv_func_remove" >&6
26713
26714     if test $ac_cv_func_remove = no; then
26715       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26716 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26717 if test "${ac_cv_lib_posix_remove+set}" = set; then
26718   echo $ECHO_N "(cached) $ECHO_C" >&6
26719 else
26720   ac_check_lib_save_LIBS=$LIBS
26721 LIBS="-lposix  $LIBS"
26722 cat >conftest.$ac_ext <<_ACEOF
26723 /* confdefs.h.  */
26724 _ACEOF
26725 cat confdefs.h >>conftest.$ac_ext
26726 cat >>conftest.$ac_ext <<_ACEOF
26727 /* end confdefs.h.  */
26728
26729 /* Override any gcc2 internal prototype to avoid an error.  */
26730 #ifdef __cplusplus
26731 extern "C"
26732 #endif
26733 /* We use char because int might match the return type of a gcc2
26734    builtin and then its argument prototype would still apply.  */
26735 char remove ();
26736 int
26737 main ()
26738 {
26739 remove ();
26740   ;
26741   return 0;
26742 }
26743 _ACEOF
26744 rm -f conftest.$ac_objext conftest$ac_exeext
26745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26746   (eval $ac_link) 2>conftest.er1
26747   ac_status=$?
26748   grep -v '^ *+' conftest.er1 >conftest.err
26749   rm -f conftest.er1
26750   cat conftest.err >&5
26751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); } &&
26753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26755   (eval $ac_try) 2>&5
26756   ac_status=$?
26757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758   (exit $ac_status); }; } &&
26759          { ac_try='test -s conftest$ac_exeext'
26760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26761   (eval $ac_try) 2>&5
26762   ac_status=$?
26763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764   (exit $ac_status); }; }; then
26765   ac_cv_lib_posix_remove=yes
26766 else
26767   echo "$as_me: failed program was:" >&5
26768 sed 's/^/| /' conftest.$ac_ext >&5
26769
26770 ac_cv_lib_posix_remove=no
26771 fi
26772 rm -f conftest.err conftest.$ac_objext \
26773       conftest$ac_exeext conftest.$ac_ext
26774 LIBS=$ac_check_lib_save_LIBS
26775 fi
26776 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26777 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26778 if test $ac_cv_lib_posix_remove = yes; then
26779   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26780 fi
26781
26782     fi
26783
26784     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26785     echo "$as_me:$LINENO: checking for shmat" >&5
26786 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26787 if test "${ac_cv_func_shmat+set}" = set; then
26788   echo $ECHO_N "(cached) $ECHO_C" >&6
26789 else
26790   cat >conftest.$ac_ext <<_ACEOF
26791 /* confdefs.h.  */
26792 _ACEOF
26793 cat confdefs.h >>conftest.$ac_ext
26794 cat >>conftest.$ac_ext <<_ACEOF
26795 /* end confdefs.h.  */
26796 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26798 #define shmat innocuous_shmat
26799
26800 /* System header to define __stub macros and hopefully few prototypes,
26801     which can conflict with char shmat (); below.
26802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26803     <limits.h> exists even on freestanding compilers.  */
26804
26805 #ifdef __STDC__
26806 # include <limits.h>
26807 #else
26808 # include <assert.h>
26809 #endif
26810
26811 #undef shmat
26812
26813 /* Override any gcc2 internal prototype to avoid an error.  */
26814 #ifdef __cplusplus
26815 extern "C"
26816 {
26817 #endif
26818 /* We use char because int might match the return type of a gcc2
26819    builtin and then its argument prototype would still apply.  */
26820 char shmat ();
26821 /* The GNU C library defines this for functions which it implements
26822     to always fail with ENOSYS.  Some functions are actually named
26823     something starting with __ and the normal name is an alias.  */
26824 #if defined (__stub_shmat) || defined (__stub___shmat)
26825 choke me
26826 #else
26827 char (*f) () = shmat;
26828 #endif
26829 #ifdef __cplusplus
26830 }
26831 #endif
26832
26833 int
26834 main ()
26835 {
26836 return f != shmat;
26837   ;
26838   return 0;
26839 }
26840 _ACEOF
26841 rm -f conftest.$ac_objext conftest$ac_exeext
26842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26843   (eval $ac_link) 2>conftest.er1
26844   ac_status=$?
26845   grep -v '^ *+' conftest.er1 >conftest.err
26846   rm -f conftest.er1
26847   cat conftest.err >&5
26848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849   (exit $ac_status); } &&
26850          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852   (eval $ac_try) 2>&5
26853   ac_status=$?
26854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); }; } &&
26856          { ac_try='test -s conftest$ac_exeext'
26857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26858   (eval $ac_try) 2>&5
26859   ac_status=$?
26860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861   (exit $ac_status); }; }; then
26862   ac_cv_func_shmat=yes
26863 else
26864   echo "$as_me: failed program was:" >&5
26865 sed 's/^/| /' conftest.$ac_ext >&5
26866
26867 ac_cv_func_shmat=no
26868 fi
26869 rm -f conftest.err conftest.$ac_objext \
26870       conftest$ac_exeext conftest.$ac_ext
26871 fi
26872 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26873 echo "${ECHO_T}$ac_cv_func_shmat" >&6
26874
26875     if test $ac_cv_func_shmat = no; then
26876       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26877 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26878 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26879   echo $ECHO_N "(cached) $ECHO_C" >&6
26880 else
26881   ac_check_lib_save_LIBS=$LIBS
26882 LIBS="-lipc  $LIBS"
26883 cat >conftest.$ac_ext <<_ACEOF
26884 /* confdefs.h.  */
26885 _ACEOF
26886 cat confdefs.h >>conftest.$ac_ext
26887 cat >>conftest.$ac_ext <<_ACEOF
26888 /* end confdefs.h.  */
26889
26890 /* Override any gcc2 internal prototype to avoid an error.  */
26891 #ifdef __cplusplus
26892 extern "C"
26893 #endif
26894 /* We use char because int might match the return type of a gcc2
26895    builtin and then its argument prototype would still apply.  */
26896 char shmat ();
26897 int
26898 main ()
26899 {
26900 shmat ();
26901   ;
26902   return 0;
26903 }
26904 _ACEOF
26905 rm -f conftest.$ac_objext conftest$ac_exeext
26906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26907   (eval $ac_link) 2>conftest.er1
26908   ac_status=$?
26909   grep -v '^ *+' conftest.er1 >conftest.err
26910   rm -f conftest.er1
26911   cat conftest.err >&5
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); } &&
26914          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916   (eval $ac_try) 2>&5
26917   ac_status=$?
26918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); }; } &&
26920          { ac_try='test -s conftest$ac_exeext'
26921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922   (eval $ac_try) 2>&5
26923   ac_status=$?
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); }; }; then
26926   ac_cv_lib_ipc_shmat=yes
26927 else
26928   echo "$as_me: failed program was:" >&5
26929 sed 's/^/| /' conftest.$ac_ext >&5
26930
26931 ac_cv_lib_ipc_shmat=no
26932 fi
26933 rm -f conftest.err conftest.$ac_objext \
26934       conftest$ac_exeext conftest.$ac_ext
26935 LIBS=$ac_check_lib_save_LIBS
26936 fi
26937 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26938 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26939 if test $ac_cv_lib_ipc_shmat = yes; then
26940   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26941 fi
26942
26943     fi
26944   fi
26945
26946   # Check for libraries that X11R6 Xt/Xaw programs need.
26947   ac_save_LDFLAGS=$LDFLAGS
26948   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26949   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26950   # check for ICE first), but we must link in the order -lSM -lICE or
26951   # we get undefined symbols.  So assume we have SM if we have ICE.
26952   # These have to be linked with before -lX11, unlike the other
26953   # libraries we check for below, so use a different variable.
26954   # John Interrante, Karl Berry
26955   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26956 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26957 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26958   echo $ECHO_N "(cached) $ECHO_C" >&6
26959 else
26960   ac_check_lib_save_LIBS=$LIBS
26961 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26962 cat >conftest.$ac_ext <<_ACEOF
26963 /* confdefs.h.  */
26964 _ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h.  */
26968
26969 /* Override any gcc2 internal prototype to avoid an error.  */
26970 #ifdef __cplusplus
26971 extern "C"
26972 #endif
26973 /* We use char because int might match the return type of a gcc2
26974    builtin and then its argument prototype would still apply.  */
26975 char IceConnectionNumber ();
26976 int
26977 main ()
26978 {
26979 IceConnectionNumber ();
26980   ;
26981   return 0;
26982 }
26983 _ACEOF
26984 rm -f conftest.$ac_objext conftest$ac_exeext
26985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26986   (eval $ac_link) 2>conftest.er1
26987   ac_status=$?
26988   grep -v '^ *+' conftest.er1 >conftest.err
26989   rm -f conftest.er1
26990   cat conftest.err >&5
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); } &&
26993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995   (eval $ac_try) 2>&5
26996   ac_status=$?
26997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998   (exit $ac_status); }; } &&
26999          { ac_try='test -s conftest$ac_exeext'
27000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001   (eval $ac_try) 2>&5
27002   ac_status=$?
27003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004   (exit $ac_status); }; }; then
27005   ac_cv_lib_ICE_IceConnectionNumber=yes
27006 else
27007   echo "$as_me: failed program was:" >&5
27008 sed 's/^/| /' conftest.$ac_ext >&5
27009
27010 ac_cv_lib_ICE_IceConnectionNumber=no
27011 fi
27012 rm -f conftest.err conftest.$ac_objext \
27013       conftest$ac_exeext conftest.$ac_ext
27014 LIBS=$ac_check_lib_save_LIBS
27015 fi
27016 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27017 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27018 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27019   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27020 fi
27021
27022   LDFLAGS=$ac_save_LDFLAGS
27023
27024 fi
27025
27026
27027         if test "$no_x" = "yes"; then
27028           { { echo "$as_me:$LINENO: error: X11 not found" >&5
27029 echo "$as_me: error: X11 not found" >&2;}
27030    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27031         fi
27032
27033                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27034         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
27035         AFMINSTALL=afminstall
27036         COMPILED_X_PROGRAM=0
27037
27038     fi
27039
27040     if test "$wxUSE_X11" = 1; then
27041         if test "$wxUSE_NANOX" = "yes"; then
27042             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27043 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27044             if test "x$MICROWIN" = x ; then
27045                 echo "$as_me:$LINENO: result: not found" >&5
27046 echo "${ECHO_T}not found" >&6
27047                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27048 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27049    { (exit 1); exit 1; }; }
27050             else
27051                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27052 echo "${ECHO_T}$MICROWIN" >&6
27053                 cat >>confdefs.h <<\_ACEOF
27054 #define wxUSE_NANOX 1
27055 _ACEOF
27056
27057             fi
27058         fi
27059
27060         if test "$wxUSE_UNICODE" = "yes"; then
27061
27062   succeeded=no
27063
27064   if test -z "$PKG_CONFIG"; then
27065     # Extract the first word of "pkg-config", so it can be a program name with args.
27066 set dummy pkg-config; ac_word=$2
27067 echo "$as_me:$LINENO: checking for $ac_word" >&5
27068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27069 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27070   echo $ECHO_N "(cached) $ECHO_C" >&6
27071 else
27072   case $PKG_CONFIG in
27073   [\\/]* | ?:[\\/]*)
27074   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27075   ;;
27076   *)
27077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27078 for as_dir in $PATH
27079 do
27080   IFS=$as_save_IFS
27081   test -z "$as_dir" && as_dir=.
27082   for ac_exec_ext in '' $ac_executable_extensions; do
27083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27084     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27086     break 2
27087   fi
27088 done
27089 done
27090
27091   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27092   ;;
27093 esac
27094 fi
27095 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27096
27097 if test -n "$PKG_CONFIG"; then
27098   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27099 echo "${ECHO_T}$PKG_CONFIG" >&6
27100 else
27101   echo "$as_me:$LINENO: result: no" >&5
27102 echo "${ECHO_T}no" >&6
27103 fi
27104
27105   fi
27106
27107   if test "$PKG_CONFIG" = "no" ; then
27108      echo "*** The pkg-config script could not be found. Make sure it is"
27109      echo "*** in your path, or set the PKG_CONFIG environment variable"
27110      echo "*** to the full path to pkg-config."
27111      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27112   else
27113      PKG_CONFIG_MIN_VERSION=0.9.0
27114      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27115         echo "$as_me:$LINENO: checking for pangox" >&5
27116 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27117
27118         if $PKG_CONFIG --exists "pangox" ; then
27119             echo "$as_me:$LINENO: result: yes" >&5
27120 echo "${ECHO_T}yes" >&6
27121             succeeded=yes
27122
27123             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27124 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27125             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27126             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27127 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27128
27129             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27130 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27131             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27132             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27133 echo "${ECHO_T}$PANGOX_LIBS" >&6
27134         else
27135             PANGOX_CFLAGS=""
27136             PANGOX_LIBS=""
27137             ## If we have a custom action on failure, don't print errors, but
27138             ## do set a variable so people can do so.
27139             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27140
27141         fi
27142
27143
27144
27145      else
27146         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27147         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27148      fi
27149   fi
27150
27151   if test $succeeded = yes; then
27152
27153                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27154                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27155
27156   else
27157
27158                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27159 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27160    { (exit 1); exit 1; }; }
27161
27162
27163   fi
27164
27165
27166   succeeded=no
27167
27168   if test -z "$PKG_CONFIG"; then
27169     # Extract the first word of "pkg-config", so it can be a program name with args.
27170 set dummy pkg-config; ac_word=$2
27171 echo "$as_me:$LINENO: checking for $ac_word" >&5
27172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27173 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27174   echo $ECHO_N "(cached) $ECHO_C" >&6
27175 else
27176   case $PKG_CONFIG in
27177   [\\/]* | ?:[\\/]*)
27178   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27179   ;;
27180   *)
27181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27182 for as_dir in $PATH
27183 do
27184   IFS=$as_save_IFS
27185   test -z "$as_dir" && as_dir=.
27186   for ac_exec_ext in '' $ac_executable_extensions; do
27187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27188     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27190     break 2
27191   fi
27192 done
27193 done
27194
27195   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27196   ;;
27197 esac
27198 fi
27199 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27200
27201 if test -n "$PKG_CONFIG"; then
27202   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27203 echo "${ECHO_T}$PKG_CONFIG" >&6
27204 else
27205   echo "$as_me:$LINENO: result: no" >&5
27206 echo "${ECHO_T}no" >&6
27207 fi
27208
27209   fi
27210
27211   if test "$PKG_CONFIG" = "no" ; then
27212      echo "*** The pkg-config script could not be found. Make sure it is"
27213      echo "*** in your path, or set the PKG_CONFIG environment variable"
27214      echo "*** to the full path to pkg-config."
27215      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27216   else
27217      PKG_CONFIG_MIN_VERSION=0.9.0
27218      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27219         echo "$as_me:$LINENO: checking for pangoft2" >&5
27220 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27221
27222         if $PKG_CONFIG --exists "pangoft2" ; then
27223             echo "$as_me:$LINENO: result: yes" >&5
27224 echo "${ECHO_T}yes" >&6
27225             succeeded=yes
27226
27227             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27228 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27229             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27230             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27231 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27232
27233             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27234 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27235             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27236             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27237 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27238         else
27239             PANGOFT2_CFLAGS=""
27240             PANGOFT2_LIBS=""
27241             ## If we have a custom action on failure, don't print errors, but
27242             ## do set a variable so people can do so.
27243             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27244
27245         fi
27246
27247
27248
27249      else
27250         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27251         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27252      fi
27253   fi
27254
27255   if test $succeeded = yes; then
27256
27257                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27258                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27259
27260   else
27261
27262                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27263 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27264                         wxUSE_PRINTING_ARCHITECTURE="no"
27265
27266
27267   fi
27268
27269
27270   succeeded=no
27271
27272   if test -z "$PKG_CONFIG"; then
27273     # Extract the first word of "pkg-config", so it can be a program name with args.
27274 set dummy pkg-config; ac_word=$2
27275 echo "$as_me:$LINENO: checking for $ac_word" >&5
27276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27277 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27278   echo $ECHO_N "(cached) $ECHO_C" >&6
27279 else
27280   case $PKG_CONFIG in
27281   [\\/]* | ?:[\\/]*)
27282   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27283   ;;
27284   *)
27285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27286 for as_dir in $PATH
27287 do
27288   IFS=$as_save_IFS
27289   test -z "$as_dir" && as_dir=.
27290   for ac_exec_ext in '' $ac_executable_extensions; do
27291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27292     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27294     break 2
27295   fi
27296 done
27297 done
27298
27299   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27300   ;;
27301 esac
27302 fi
27303 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27304
27305 if test -n "$PKG_CONFIG"; then
27306   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27307 echo "${ECHO_T}$PKG_CONFIG" >&6
27308 else
27309   echo "$as_me:$LINENO: result: no" >&5
27310 echo "${ECHO_T}no" >&6
27311 fi
27312
27313   fi
27314
27315   if test "$PKG_CONFIG" = "no" ; then
27316      echo "*** The pkg-config script could not be found. Make sure it is"
27317      echo "*** in your path, or set the PKG_CONFIG environment variable"
27318      echo "*** to the full path to pkg-config."
27319      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27320   else
27321      PKG_CONFIG_MIN_VERSION=0.9.0
27322      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27323         echo "$as_me:$LINENO: checking for pangoxft" >&5
27324 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27325
27326         if $PKG_CONFIG --exists "pangoxft" ; then
27327             echo "$as_me:$LINENO: result: yes" >&5
27328 echo "${ECHO_T}yes" >&6
27329             succeeded=yes
27330
27331             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27332 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27333             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27334             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27335 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27336
27337             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27338 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27339             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27340             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27341 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27342         else
27343             PANGOXFT_CFLAGS=""
27344             PANGOXFT_LIBS=""
27345             ## If we have a custom action on failure, don't print errors, but
27346             ## do set a variable so people can do so.
27347             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27348
27349         fi
27350
27351
27352
27353      else
27354         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27355         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27356      fi
27357   fi
27358
27359   if test $succeeded = yes; then
27360
27361                         cat >>confdefs.h <<\_ACEOF
27362 #define HAVE_PANGO_XFT 1
27363 _ACEOF
27364
27365                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27366                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27367
27368   else
27369
27370                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27371 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27372
27373
27374   fi
27375
27376                 save_CFLAGS="$CFLAGS"
27377                 save_LIBS="$LIBS"
27378                 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27379                 LIBS="$LIBS $PANGOX_LIBS"
27380
27381 for ac_func in pango_font_family_is_monospace
27382 do
27383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27384 echo "$as_me:$LINENO: checking for $ac_func" >&5
27385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27386 if eval "test \"\${$as_ac_var+set}\" = set"; then
27387   echo $ECHO_N "(cached) $ECHO_C" >&6
27388 else
27389   cat >conftest.$ac_ext <<_ACEOF
27390 /* confdefs.h.  */
27391 _ACEOF
27392 cat confdefs.h >>conftest.$ac_ext
27393 cat >>conftest.$ac_ext <<_ACEOF
27394 /* end confdefs.h.  */
27395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27397 #define $ac_func innocuous_$ac_func
27398
27399 /* System header to define __stub macros and hopefully few prototypes,
27400     which can conflict with char $ac_func (); below.
27401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27402     <limits.h> exists even on freestanding compilers.  */
27403
27404 #ifdef __STDC__
27405 # include <limits.h>
27406 #else
27407 # include <assert.h>
27408 #endif
27409
27410 #undef $ac_func
27411
27412 /* Override any gcc2 internal prototype to avoid an error.  */
27413 #ifdef __cplusplus
27414 extern "C"
27415 {
27416 #endif
27417 /* We use char because int might match the return type of a gcc2
27418    builtin and then its argument prototype would still apply.  */
27419 char $ac_func ();
27420 /* The GNU C library defines this for functions which it implements
27421     to always fail with ENOSYS.  Some functions are actually named
27422     something starting with __ and the normal name is an alias.  */
27423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27424 choke me
27425 #else
27426 char (*f) () = $ac_func;
27427 #endif
27428 #ifdef __cplusplus
27429 }
27430 #endif
27431
27432 int
27433 main ()
27434 {
27435 return f != $ac_func;
27436   ;
27437   return 0;
27438 }
27439 _ACEOF
27440 rm -f conftest.$ac_objext conftest$ac_exeext
27441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27442   (eval $ac_link) 2>conftest.er1
27443   ac_status=$?
27444   grep -v '^ *+' conftest.er1 >conftest.err
27445   rm -f conftest.er1
27446   cat conftest.err >&5
27447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448   (exit $ac_status); } &&
27449          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451   (eval $ac_try) 2>&5
27452   ac_status=$?
27453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454   (exit $ac_status); }; } &&
27455          { ac_try='test -s conftest$ac_exeext'
27456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457   (eval $ac_try) 2>&5
27458   ac_status=$?
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); }; }; then
27461   eval "$as_ac_var=yes"
27462 else
27463   echo "$as_me: failed program was:" >&5
27464 sed 's/^/| /' conftest.$ac_ext >&5
27465
27466 eval "$as_ac_var=no"
27467 fi
27468 rm -f conftest.err conftest.$ac_objext \
27469       conftest$ac_exeext conftest.$ac_ext
27470 fi
27471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27473 if test `eval echo '${'$as_ac_var'}'` = yes; then
27474   cat >>confdefs.h <<_ACEOF
27475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27476 _ACEOF
27477
27478 fi
27479 done
27480
27481                 CFLAGS="$save_CFLAGS"
27482                 LIBS="$save_LIBS"
27483         fi
27484
27485         wxUSE_UNIVERSAL="yes"
27486
27487         if test "$wxUSE_NANOX" = "yes"; then
27488             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27489             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"
27490             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27491         else
27492             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27493         fi
27494
27495         TOOLKIT=X11
27496         GUIDIST=X11_DIST
27497     fi
27498
27499     if test "$wxUSE_MOTIF" = 1; then
27500         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27501 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
27502
27503 ac_find_includes=
27504 for ac_dir in $SEARCH_INCLUDE /usr/include;
27505   do
27506     if test -f "$ac_dir/Xm/Xm.h"; then
27507       ac_find_includes=$ac_dir
27508       break
27509     fi
27510   done
27511
27512         if test "$ac_find_includes" != "" ; then
27513             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27514 echo "${ECHO_T}found in $ac_find_includes" >&6
27515
27516     if test "x$ac_find_includes" = "x/usr/include"; then
27517     ac_path_to_include=""
27518   else
27519     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27520     result=$?
27521     if test $result = 0; then
27522       ac_path_to_include=""
27523     else
27524       ac_path_to_include=" -I$ac_find_includes"
27525     fi
27526   fi
27527
27528             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27529         else
27530             cat >conftest.$ac_ext <<_ACEOF
27531 /* confdefs.h.  */
27532 _ACEOF
27533 cat confdefs.h >>conftest.$ac_ext
27534 cat >>conftest.$ac_ext <<_ACEOF
27535 /* end confdefs.h.  */
27536
27537                     #include <Xm/Xm.h>
27538
27539 int
27540 main ()
27541 {
27542
27543                     int version;
27544                     version = xmUseVersion;
27545
27546   ;
27547   return 0;
27548 }
27549 _ACEOF
27550 rm -f conftest.$ac_objext
27551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27552   (eval $ac_compile) 2>conftest.er1
27553   ac_status=$?
27554   grep -v '^ *+' conftest.er1 >conftest.err
27555   rm -f conftest.er1
27556   cat conftest.err >&5
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); } &&
27559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27561   (eval $ac_try) 2>&5
27562   ac_status=$?
27563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564   (exit $ac_status); }; } &&
27565          { ac_try='test -s conftest.$ac_objext'
27566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567   (eval $ac_try) 2>&5
27568   ac_status=$?
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); }; }; then
27571
27572                     echo "$as_me:$LINENO: result: found in default search path" >&5
27573 echo "${ECHO_T}found in default search path" >&6
27574                     COMPILED_X_PROGRAM=1
27575
27576 else
27577   echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27579
27580
27581                     echo "$as_me:$LINENO: result: no" >&5
27582 echo "${ECHO_T}no" >&6
27583                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27584 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27585    { (exit 1); exit 1; }; }
27586
27587
27588 fi
27589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27590         fi
27591
27592         if test "$COMPILED_X_PROGRAM" = 0; then
27593             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27594 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27595
27596 ac_find_libraries=
27597 for ac_dir in $SEARCH_LIB /usr/lib;
27598   do
27599     for ac_extension in a so sl dylib; do
27600       if test -f "$ac_dir/libXm.$ac_extension"; then
27601         ac_find_libraries=$ac_dir
27602         break 2
27603       fi
27604     done
27605   done
27606
27607             if test "$ac_find_libraries" != "" ; then
27608                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27609 echo "${ECHO_T}found at $ac_find_libraries" >&6
27610
27611
27612   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27613   result=$?
27614   if test $result = 0; then
27615     ac_path_to_link=""
27616   else
27617     ac_path_to_link=" -L$ac_find_libraries"
27618   fi
27619
27620                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27621             else
27622                                                                 save_CFLAGS=$CFLAGS
27623                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27624
27625                 cat >conftest.$ac_ext <<_ACEOF
27626 /* confdefs.h.  */
27627 _ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h.  */
27631
27632                         #include <Xm/Xm.h>
27633
27634 int
27635 main ()
27636 {
27637
27638                         int version;
27639                         version = xmUseVersion;
27640
27641   ;
27642   return 0;
27643 }
27644 _ACEOF
27645 rm -f conftest.$ac_objext
27646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27647   (eval $ac_compile) 2>conftest.er1
27648   ac_status=$?
27649   grep -v '^ *+' conftest.er1 >conftest.err
27650   rm -f conftest.er1
27651   cat conftest.err >&5
27652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653   (exit $ac_status); } &&
27654          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27656   (eval $ac_try) 2>&5
27657   ac_status=$?
27658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659   (exit $ac_status); }; } &&
27660          { ac_try='test -s conftest.$ac_objext'
27661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27662   (eval $ac_try) 2>&5
27663   ac_status=$?
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); }; }; then
27666
27667                         echo "$as_me:$LINENO: result: found in default search path" >&5
27668 echo "${ECHO_T}found in default search path" >&6
27669                         COMPILED_X_PROGRAM=1
27670
27671 else
27672   echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27674
27675
27676                         echo "$as_me:$LINENO: result: no" >&5
27677 echo "${ECHO_T}no" >&6
27678                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27679 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27680    { (exit 1); exit 1; }; }
27681
27682
27683 fi
27684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27685
27686                 CFLAGS=$save_CFLAGS
27687             fi
27688         fi
27689
27690         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27691 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27692         libp_link=""
27693         libsm_ice_link=""
27694         libs_found=0
27695         for libp in "" " -lXp"; do
27696             if test "$libs_found" = "0"; then
27697                 for libsm_ice in "" " -lSM -lICE"; do
27698                     if test "$libs_found" = "0"; then
27699                         save_LIBS="$LIBS"
27700                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27701                         save_CFLAGS=$CFLAGS
27702                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27703
27704                         cat >conftest.$ac_ext <<_ACEOF
27705 /* confdefs.h.  */
27706 _ACEOF
27707 cat confdefs.h >>conftest.$ac_ext
27708 cat >>conftest.$ac_ext <<_ACEOF
27709 /* end confdefs.h.  */
27710
27711                                 #include <Xm/Xm.h>
27712                                 #include <Xm/List.h>
27713
27714 int
27715 main ()
27716 {
27717
27718                                 XmString string = NULL;
27719                                 Widget w = NULL;
27720                                 int position = 0;
27721                                 XmListAddItem(w, string, position);
27722
27723   ;
27724   return 0;
27725 }
27726 _ACEOF
27727 rm -f conftest.$ac_objext conftest$ac_exeext
27728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27729   (eval $ac_link) 2>conftest.er1
27730   ac_status=$?
27731   grep -v '^ *+' conftest.er1 >conftest.err
27732   rm -f conftest.er1
27733   cat conftest.err >&5
27734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735   (exit $ac_status); } &&
27736          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27738   (eval $ac_try) 2>&5
27739   ac_status=$?
27740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741   (exit $ac_status); }; } &&
27742          { ac_try='test -s conftest$ac_exeext'
27743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744   (eval $ac_try) 2>&5
27745   ac_status=$?
27746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747   (exit $ac_status); }; }; then
27748
27749                                 libp_link="$libp"
27750                                 libsm_ice_link="$libsm_ice"
27751                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27752 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27753                                 libs_found=1
27754
27755 else
27756   echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27758
27759
27760
27761 fi
27762 rm -f conftest.err conftest.$ac_objext \
27763       conftest$ac_exeext conftest.$ac_ext
27764
27765                         LIBS="$save_LIBS"
27766                         CFLAGS=$save_CFLAGS
27767                     fi
27768                 done
27769             fi
27770         done
27771
27772         if test "$libs_found" = "0"; then
27773             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27774 echo "${ECHO_T}can't find the right libraries" >&6
27775             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27776 echo "$as_me: error: can't link a simple motif program" >&2;}
27777    { (exit 1); exit 1; }; }
27778         fi
27779
27780         save_CFLAGS=$CFLAGS
27781         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27782         echo "$as_me:$LINENO: checking for Motif 2" >&5
27783 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27784         cat >conftest.$ac_ext <<_ACEOF
27785 /* confdefs.h.  */
27786 _ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h.  */
27790
27791                         #include <Xm/Xm.h>
27792
27793 int
27794 main ()
27795 {
27796
27797                         #if XmVersion < 2000
27798                         #error "Not Motif 2"
27799                         #endif
27800
27801   ;
27802   return 0;
27803 }
27804 _ACEOF
27805 rm -f conftest.$ac_objext
27806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27807   (eval $ac_compile) 2>conftest.er1
27808   ac_status=$?
27809   grep -v '^ *+' conftest.er1 >conftest.err
27810   rm -f conftest.er1
27811   cat conftest.err >&5
27812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813   (exit $ac_status); } &&
27814          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816   (eval $ac_try) 2>&5
27817   ac_status=$?
27818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819   (exit $ac_status); }; } &&
27820          { ac_try='test -s conftest.$ac_objext'
27821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822   (eval $ac_try) 2>&5
27823   ac_status=$?
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); }; }; then
27826
27827                         cat >>confdefs.h <<\_ACEOF
27828 #define __WXMOTIF20__ 1
27829 _ACEOF
27830
27831                         echo "$as_me:$LINENO: result: found" >&5
27832 echo "${ECHO_T}found" >&6
27833
27834 else
27835   echo "$as_me: failed program was:" >&5
27836 sed 's/^/| /' conftest.$ac_ext >&5
27837
27838
27839                         cat >>confdefs.h <<\_ACEOF
27840 #define __WXMOTIF20__ 0
27841 _ACEOF
27842
27843                         echo "$as_me:$LINENO: result: not found" >&5
27844 echo "${ECHO_T}not found" >&6
27845
27846 fi
27847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27848         CFLAGS=$save_CFLAGS
27849
27850         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
27851         TOOLKIT=MOTIF
27852         GUIDIST=MOTIF_DIST
27853     fi
27854
27855         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
27856                 if test "$wxUSE_LIBXPM" = "sys"; then
27857             echo "$as_me:$LINENO: checking for Xpm library" >&5
27858 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27859
27860 ac_find_libraries=
27861 for ac_dir in $SEARCH_LIB /usr/lib;
27862   do
27863     for ac_extension in a so sl dylib; do
27864       if test -f "$ac_dir/libXpm.$ac_extension"; then
27865         ac_find_libraries=$ac_dir
27866         break 2
27867       fi
27868     done
27869   done
27870
27871             if test "$ac_find_libraries" != "" ; then
27872
27873   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27874   result=$?
27875   if test $result = 0; then
27876     ac_path_to_link=""
27877   else
27878     ac_path_to_link=" -L$ac_find_libraries"
27879   fi
27880
27881                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27882                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27883 echo "${ECHO_T}found at $ac_find_libraries" >&6
27884
27885                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27886 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27887 if test "${wx_cv_x11_xpm_h+set}" = set; then
27888   echo $ECHO_N "(cached) $ECHO_C" >&6
27889 else
27890
27891                         save_CFLAGS=$CFLAGS
27892                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27893
27894                         cat >conftest.$ac_ext <<_ACEOF
27895 /* confdefs.h.  */
27896 _ACEOF
27897 cat confdefs.h >>conftest.$ac_ext
27898 cat >>conftest.$ac_ext <<_ACEOF
27899 /* end confdefs.h.  */
27900
27901                                 #include <X11/xpm.h>
27902
27903 int
27904 main ()
27905 {
27906
27907                                 int version;
27908                                 version = XpmLibraryVersion();
27909
27910   ;
27911   return 0;
27912 }
27913 _ACEOF
27914 rm -f conftest.$ac_objext
27915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27916   (eval $ac_compile) 2>conftest.er1
27917   ac_status=$?
27918   grep -v '^ *+' conftest.er1 >conftest.err
27919   rm -f conftest.er1
27920   cat conftest.err >&5
27921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922   (exit $ac_status); } &&
27923          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27925   (eval $ac_try) 2>&5
27926   ac_status=$?
27927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928   (exit $ac_status); }; } &&
27929          { ac_try='test -s conftest.$ac_objext'
27930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27931   (eval $ac_try) 2>&5
27932   ac_status=$?
27933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934   (exit $ac_status); }; }; then
27935   wx_cv_x11_xpm_h=yes
27936 else
27937   echo "$as_me: failed program was:" >&5
27938 sed 's/^/| /' conftest.$ac_ext >&5
27939
27940 wx_cv_x11_xpm_h=no
27941
27942 fi
27943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27944
27945                         CFLAGS=$save_CFLAGS
27946
27947
27948 fi
27949 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27950 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27951
27952                 if test $wx_cv_x11_xpm_h = "yes"; then
27953                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27954                     cat >>confdefs.h <<\_ACEOF
27955 #define wxHAVE_LIB_XPM 1
27956 _ACEOF
27957
27958                 else
27959                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27960 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27961                 fi
27962             fi
27963
27964         fi
27965
27966                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27967 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27968 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27969   echo $ECHO_N "(cached) $ECHO_C" >&6
27970 else
27971   ac_check_lib_save_LIBS=$LIBS
27972 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27973 cat >conftest.$ac_ext <<_ACEOF
27974 /* confdefs.h.  */
27975 _ACEOF
27976 cat confdefs.h >>conftest.$ac_ext
27977 cat >>conftest.$ac_ext <<_ACEOF
27978 /* end confdefs.h.  */
27979
27980 /* Override any gcc2 internal prototype to avoid an error.  */
27981 #ifdef __cplusplus
27982 extern "C"
27983 #endif
27984 /* We use char because int might match the return type of a gcc2
27985    builtin and then its argument prototype would still apply.  */
27986 char XShapeQueryExtension ();
27987 int
27988 main ()
27989 {
27990 XShapeQueryExtension ();
27991   ;
27992   return 0;
27993 }
27994 _ACEOF
27995 rm -f conftest.$ac_objext conftest$ac_exeext
27996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27997   (eval $ac_link) 2>conftest.er1
27998   ac_status=$?
27999   grep -v '^ *+' conftest.er1 >conftest.err
28000   rm -f conftest.er1
28001   cat conftest.err >&5
28002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003   (exit $ac_status); } &&
28004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28006   (eval $ac_try) 2>&5
28007   ac_status=$?
28008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009   (exit $ac_status); }; } &&
28010          { ac_try='test -s conftest$ac_exeext'
28011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012   (eval $ac_try) 2>&5
28013   ac_status=$?
28014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015   (exit $ac_status); }; }; then
28016   ac_cv_lib_Xext_XShapeQueryExtension=yes
28017 else
28018   echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021 ac_cv_lib_Xext_XShapeQueryExtension=no
28022 fi
28023 rm -f conftest.err conftest.$ac_objext \
28024       conftest$ac_exeext conftest.$ac_ext
28025 LIBS=$ac_check_lib_save_LIBS
28026 fi
28027 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28028 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28029 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28030
28031                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28032                       wxHAVE_XEXT_LIB=1
28033
28034 fi
28035
28036
28037         if test "$wxHAVE_XEXT_LIB" = 1; then
28038             save_CFLAGS="$CFLAGS"
28039             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28040
28041             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28042 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28043             cat >conftest.$ac_ext <<_ACEOF
28044 /* confdefs.h.  */
28045 _ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h.  */
28049
28050                             #include <X11/Xlib.h>
28051                             #include <X11/extensions/shape.h>
28052
28053 int
28054 main ()
28055 {
28056
28057                             int dummy1, dummy2;
28058                             XShapeQueryExtension((Display*)NULL,
28059                                                  (int*)NULL, (int*)NULL);
28060
28061   ;
28062   return 0;
28063 }
28064 _ACEOF
28065 rm -f conftest.$ac_objext
28066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28067   (eval $ac_compile) 2>conftest.er1
28068   ac_status=$?
28069   grep -v '^ *+' conftest.er1 >conftest.err
28070   rm -f conftest.er1
28071   cat conftest.err >&5
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); } &&
28074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076   (eval $ac_try) 2>&5
28077   ac_status=$?
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); }; } &&
28080          { ac_try='test -s conftest.$ac_objext'
28081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082   (eval $ac_try) 2>&5
28083   ac_status=$?
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); }; }; then
28086
28087                             cat >>confdefs.h <<\_ACEOF
28088 #define HAVE_XSHAPE 1
28089 _ACEOF
28090
28091                             echo "$as_me:$LINENO: result: found" >&5
28092 echo "${ECHO_T}found" >&6
28093
28094 else
28095   echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28097
28098
28099                             echo "$as_me:$LINENO: result: not found" >&5
28100 echo "${ECHO_T}not found" >&6
28101
28102 fi
28103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28104             CFLAGS="$save_CFLAGS"
28105
28106         fi
28107     fi
28108
28109     if test "$wxUSE_MAC" = 1; then
28110         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28111 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28112         if test "$GCC" = yes; then
28113             echo "$as_me:$LINENO: result: gcc" >&5
28114 echo "${ECHO_T}gcc" >&6
28115             CPPFLAGS_PASCAL="-fpascal-strings"
28116         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28117             echo "$as_me:$LINENO: result: xlc" >&5
28118 echo "${ECHO_T}xlc" >&6
28119             CPPFLAGS_PASCAL="-qmacpstr"
28120         else
28121             echo "$as_me:$LINENO: result: none" >&5
28122 echo "${ECHO_T}none" >&6
28123         fi
28124
28125         if test "x$wxUSE_UNIX" = "xyes"; then
28126             CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28127         else
28128                         CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28129         fi
28130
28131         TOOLKIT=MAC
28132                 GUIDIST=MACX_DIST
28133                         WXBASEPORT="_carbon"
28134     fi
28135
28136     if test "$wxUSE_COCOA" = 1; then
28137         TOOLKIT=COCOA
28138         GUIDIST=COCOA_DIST
28139     fi
28140
28141     if test "$wxUSE_PM" = 1; then
28142         TOOLKIT=PM
28143         GUIDIST=PM_DIST
28144         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28145 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28146 if test "${wx_cv_spbcdata+set}" = set; then
28147   echo $ECHO_N "(cached) $ECHO_C" >&6
28148 else
28149
28150                 cat >conftest.$ac_ext <<_ACEOF
28151 /* confdefs.h.  */
28152 _ACEOF
28153 cat confdefs.h >>conftest.$ac_ext
28154 cat >>conftest.$ac_ext <<_ACEOF
28155 /* end confdefs.h.  */
28156
28157                         #define INCL_PM
28158                         #include <os2.h>
28159
28160 int
28161 main ()
28162 {
28163
28164                         SPBCDATA test;
28165
28166   ;
28167   return 0;
28168 }
28169 _ACEOF
28170 rm -f conftest.$ac_objext
28171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28172   (eval $ac_compile) 2>conftest.er1
28173   ac_status=$?
28174   grep -v '^ *+' conftest.er1 >conftest.err
28175   rm -f conftest.er1
28176   cat conftest.err >&5
28177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178   (exit $ac_status); } &&
28179          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28181   (eval $ac_try) 2>&5
28182   ac_status=$?
28183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184   (exit $ac_status); }; } &&
28185          { ac_try='test -s conftest.$ac_objext'
28186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187   (eval $ac_try) 2>&5
28188   ac_status=$?
28189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190   (exit $ac_status); }; }; then
28191   wx_cv_spbcdata=yes
28192 else
28193   echo "$as_me: failed program was:" >&5
28194 sed 's/^/| /' conftest.$ac_ext >&5
28195
28196 wx_cv_spbcdata=no
28197
28198 fi
28199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28200
28201
28202 fi
28203 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28204 echo "${ECHO_T}$wx_cv_spbcdata" >&6
28205
28206         if test $wx_cv_spbcdata = "yes"; then
28207             cat >>confdefs.h <<\_ACEOF
28208 #define HAVE_SPBCDATA 1
28209 _ACEOF
28210
28211         fi
28212     fi
28213
28214         if test "$TOOLKIT" = "PM" ; then
28215         TOOLKIT_DIR="os2"
28216     else
28217         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28218     fi
28219
28220     if test "$wxUSE_UNIVERSAL" = "yes"; then
28221         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28222         WIDGET_SET=univ
28223     fi
28224
28225         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28226     DISTDIR="wx\$(TOOLKIT)"
28227 else
28228     USE_GUI=0
28229
28230             TOOLKIT_DIR="base"
28231
28232         if test "$USE_WIN32" = 1 ; then
28233                         TOOLKIT="MSW"
28234     fi
28235
28236         GUIDIST="BASE_DIST"
28237     DISTDIR="wxBase"
28238 fi
28239
28240
28241
28242
28243 IODBC_C_SRC=""
28244
28245
28246 if test "$TOOLKIT" != "MSW" ; then
28247
28248     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28249
28250         if test "${ac_cv_header_sql_h+set}" = set; then
28251   echo "$as_me:$LINENO: checking for sql.h" >&5
28252 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28253 if test "${ac_cv_header_sql_h+set}" = set; then
28254   echo $ECHO_N "(cached) $ECHO_C" >&6
28255 fi
28256 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28257 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28258 else
28259   # Is the header compilable?
28260 echo "$as_me:$LINENO: checking sql.h usability" >&5
28261 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28262 cat >conftest.$ac_ext <<_ACEOF
28263 /* confdefs.h.  */
28264 _ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h.  */
28268 $ac_includes_default
28269 #include <sql.h>
28270 _ACEOF
28271 rm -f conftest.$ac_objext
28272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28273   (eval $ac_compile) 2>conftest.er1
28274   ac_status=$?
28275   grep -v '^ *+' conftest.er1 >conftest.err
28276   rm -f conftest.er1
28277   cat conftest.err >&5
28278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279   (exit $ac_status); } &&
28280          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282   (eval $ac_try) 2>&5
28283   ac_status=$?
28284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285   (exit $ac_status); }; } &&
28286          { ac_try='test -s conftest.$ac_objext'
28287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28288   (eval $ac_try) 2>&5
28289   ac_status=$?
28290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291   (exit $ac_status); }; }; then
28292   ac_header_compiler=yes
28293 else
28294   echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28296
28297 ac_header_compiler=no
28298 fi
28299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28301 echo "${ECHO_T}$ac_header_compiler" >&6
28302
28303 # Is the header present?
28304 echo "$as_me:$LINENO: checking sql.h presence" >&5
28305 echo $ECHO_N "checking sql.h presence... $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 #include <sql.h>
28313 _ACEOF
28314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28315   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28316   ac_status=$?
28317   grep -v '^ *+' conftest.er1 >conftest.err
28318   rm -f conftest.er1
28319   cat conftest.err >&5
28320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321   (exit $ac_status); } >/dev/null; then
28322   if test -s conftest.err; then
28323     ac_cpp_err=$ac_c_preproc_warn_flag
28324     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28325   else
28326     ac_cpp_err=
28327   fi
28328 else
28329   ac_cpp_err=yes
28330 fi
28331 if test -z "$ac_cpp_err"; then
28332   ac_header_preproc=yes
28333 else
28334   echo "$as_me: failed program was:" >&5
28335 sed 's/^/| /' conftest.$ac_ext >&5
28336
28337   ac_header_preproc=no
28338 fi
28339 rm -f conftest.err conftest.$ac_ext
28340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28341 echo "${ECHO_T}$ac_header_preproc" >&6
28342
28343 # So?  What about this header?
28344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28345   yes:no: )
28346     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28347 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28348     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28349 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28350     ac_header_preproc=yes
28351     ;;
28352   no:yes:* )
28353     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28354 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
28355     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
28356 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
28357     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28358 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28359     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
28360 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28361     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28362 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
28363     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28364 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
28365     (
28366       cat <<\_ASBOX
28367 ## ----------------------------------------- ##
28368 ## Report this to wx-dev@lists.wxwidgets.org ##
28369 ## ----------------------------------------- ##
28370 _ASBOX
28371     ) |
28372       sed "s/^/$as_me: WARNING:     /" >&2
28373     ;;
28374 esac
28375 echo "$as_me:$LINENO: checking for sql.h" >&5
28376 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28377 if test "${ac_cv_header_sql_h+set}" = set; then
28378   echo $ECHO_N "(cached) $ECHO_C" >&6
28379 else
28380   ac_cv_header_sql_h=$ac_header_preproc
28381 fi
28382 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28383 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28384
28385 fi
28386 if test $ac_cv_header_sql_h = yes; then
28387   found_sql_h=1
28388 fi
28389
28390
28391         if test "x$found_sql_h" = "x1" ; then
28392             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28393 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28394 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28395   echo $ECHO_N "(cached) $ECHO_C" >&6
28396 else
28397   ac_check_lib_save_LIBS=$LIBS
28398 LIBS="-liodbc  $LIBS"
28399 cat >conftest.$ac_ext <<_ACEOF
28400 /* confdefs.h.  */
28401 _ACEOF
28402 cat confdefs.h >>conftest.$ac_ext
28403 cat >>conftest.$ac_ext <<_ACEOF
28404 /* end confdefs.h.  */
28405
28406 /* Override any gcc2 internal prototype to avoid an error.  */
28407 #ifdef __cplusplus
28408 extern "C"
28409 #endif
28410 /* We use char because int might match the return type of a gcc2
28411    builtin and then its argument prototype would still apply.  */
28412 char SQLAllocEnv ();
28413 int
28414 main ()
28415 {
28416 SQLAllocEnv ();
28417   ;
28418   return 0;
28419 }
28420 _ACEOF
28421 rm -f conftest.$ac_objext conftest$ac_exeext
28422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28423   (eval $ac_link) 2>conftest.er1
28424   ac_status=$?
28425   grep -v '^ *+' conftest.er1 >conftest.err
28426   rm -f conftest.er1
28427   cat conftest.err >&5
28428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429   (exit $ac_status); } &&
28430          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432   (eval $ac_try) 2>&5
28433   ac_status=$?
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); }; } &&
28436          { ac_try='test -s conftest$ac_exeext'
28437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438   (eval $ac_try) 2>&5
28439   ac_status=$?
28440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441   (exit $ac_status); }; }; then
28442   ac_cv_lib_iodbc_SQLAllocEnv=yes
28443 else
28444   echo "$as_me: failed program was:" >&5
28445 sed 's/^/| /' conftest.$ac_ext >&5
28446
28447 ac_cv_lib_iodbc_SQLAllocEnv=no
28448 fi
28449 rm -f conftest.err conftest.$ac_objext \
28450       conftest$ac_exeext conftest.$ac_ext
28451 LIBS=$ac_check_lib_save_LIBS
28452 fi
28453 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28454 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28455 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28456   ODBC_LINK=" -liodbc"
28457 else
28458
28459                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28460 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28461 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28462   echo $ECHO_N "(cached) $ECHO_C" >&6
28463 else
28464   ac_check_lib_save_LIBS=$LIBS
28465 LIBS="-lunixodbc  $LIBS"
28466 cat >conftest.$ac_ext <<_ACEOF
28467 /* confdefs.h.  */
28468 _ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h.  */
28472
28473 /* Override any gcc2 internal prototype to avoid an error.  */
28474 #ifdef __cplusplus
28475 extern "C"
28476 #endif
28477 /* We use char because int might match the return type of a gcc2
28478    builtin and then its argument prototype would still apply.  */
28479 char SQLAllocEnv ();
28480 int
28481 main ()
28482 {
28483 SQLAllocEnv ();
28484   ;
28485   return 0;
28486 }
28487 _ACEOF
28488 rm -f conftest.$ac_objext conftest$ac_exeext
28489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28490   (eval $ac_link) 2>conftest.er1
28491   ac_status=$?
28492   grep -v '^ *+' conftest.er1 >conftest.err
28493   rm -f conftest.er1
28494   cat conftest.err >&5
28495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496   (exit $ac_status); } &&
28497          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28499   (eval $ac_try) 2>&5
28500   ac_status=$?
28501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502   (exit $ac_status); }; } &&
28503          { ac_try='test -s conftest$ac_exeext'
28504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505   (eval $ac_try) 2>&5
28506   ac_status=$?
28507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508   (exit $ac_status); }; }; then
28509   ac_cv_lib_unixodbc_SQLAllocEnv=yes
28510 else
28511   echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28513
28514 ac_cv_lib_unixodbc_SQLAllocEnv=no
28515 fi
28516 rm -f conftest.err conftest.$ac_objext \
28517       conftest$ac_exeext conftest.$ac_ext
28518 LIBS=$ac_check_lib_save_LIBS
28519 fi
28520 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28521 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28522 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28523   ODBC_LINK=" -lunixodbc"
28524 else
28525
28526                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28527 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28528 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28529   echo $ECHO_N "(cached) $ECHO_C" >&6
28530 else
28531   ac_check_lib_save_LIBS=$LIBS
28532 LIBS="-lodbc  $LIBS"
28533 cat >conftest.$ac_ext <<_ACEOF
28534 /* confdefs.h.  */
28535 _ACEOF
28536 cat confdefs.h >>conftest.$ac_ext
28537 cat >>conftest.$ac_ext <<_ACEOF
28538 /* end confdefs.h.  */
28539
28540 /* Override any gcc2 internal prototype to avoid an error.  */
28541 #ifdef __cplusplus
28542 extern "C"
28543 #endif
28544 /* We use char because int might match the return type of a gcc2
28545    builtin and then its argument prototype would still apply.  */
28546 char SQLAllocEnv ();
28547 int
28548 main ()
28549 {
28550 SQLAllocEnv ();
28551   ;
28552   return 0;
28553 }
28554 _ACEOF
28555 rm -f conftest.$ac_objext conftest$ac_exeext
28556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28557   (eval $ac_link) 2>conftest.er1
28558   ac_status=$?
28559   grep -v '^ *+' conftest.er1 >conftest.err
28560   rm -f conftest.er1
28561   cat conftest.err >&5
28562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563   (exit $ac_status); } &&
28564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566   (eval $ac_try) 2>&5
28567   ac_status=$?
28568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569   (exit $ac_status); }; } &&
28570          { ac_try='test -s conftest$ac_exeext'
28571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572   (eval $ac_try) 2>&5
28573   ac_status=$?
28574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575   (exit $ac_status); }; }; then
28576   ac_cv_lib_odbc_SQLAllocEnv=yes
28577 else
28578   echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28580
28581 ac_cv_lib_odbc_SQLAllocEnv=no
28582 fi
28583 rm -f conftest.err conftest.$ac_objext \
28584       conftest$ac_exeext conftest.$ac_ext
28585 LIBS=$ac_check_lib_save_LIBS
28586 fi
28587 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28588 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28589 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28590   ODBC_LINK=" -lodbc"
28591 fi
28592
28593
28594 fi
28595
28596
28597 fi
28598
28599         fi
28600         if test "x$ODBC_LINK" = "x" ; then
28601             if test "$wxUSE_ODBC" = "sys" ; then
28602                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28603 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28604    { (exit 1); exit 1; }; }
28605             else
28606                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28607 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28608                 wxUSE_ODBC=builtin
28609             fi
28610         else
28611                         wxUSE_ODBC=sys
28612         fi
28613     fi
28614
28615     if test "$wxUSE_ODBC" = "builtin" ; then
28616         cat >>confdefs.h <<\_ACEOF
28617 #define wxUSE_BUILTIN_IODBC 1
28618 _ACEOF
28619
28620     fi
28621 fi
28622
28623 if test "$wxUSE_ODBC" != "no" ; then
28624     cat >>confdefs.h <<\_ACEOF
28625 #define wxUSE_ODBC 1
28626 _ACEOF
28627
28628     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28629
28630         WXODBCFLAG="-D_IODBC_"
28631 fi
28632
28633
28634 if test "$wxUSE_DISPLAY" = "yes"; then
28635     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
28636         echo "$as_me:$LINENO: checking for Xinerama" >&5
28637 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28638
28639 ac_find_libraries=
28640 for ac_dir in $SEARCH_LIB /usr/lib;
28641   do
28642     for ac_extension in a so sl dylib; do
28643       if test -f "$ac_dir/libXinerama.$ac_extension"; then
28644         ac_find_libraries=$ac_dir
28645         break 2
28646       fi
28647     done
28648   done
28649
28650         if test "$ac_find_libraries" != "" ; then
28651
28652   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28653   result=$?
28654   if test $result = 0; then
28655     ac_path_to_link=""
28656   else
28657     ac_path_to_link=" -L$ac_find_libraries"
28658   fi
28659
28660             if test "$ac_path_to_link" != " -L/usr/lib" ; then
28661                 LDFLAGS="$LDFLAGS $ac_path_to_link"
28662             fi
28663             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28664             echo "$as_me:$LINENO: result: yes" >&5
28665 echo "${ECHO_T}yes" >&6
28666
28667             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28668 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28669
28670 ac_find_libraries=
28671 for ac_dir in $SEARCH_LIB /usr/lib;
28672   do
28673     for ac_extension in a so sl dylib; do
28674       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28675         ac_find_libraries=$ac_dir
28676         break 2
28677       fi
28678     done
28679   done
28680
28681             if test "$ac_find_libraries" != "" ; then
28682                 echo "$as_me:$LINENO: result: yes" >&5
28683 echo "${ECHO_T}yes" >&6
28684
28685 for ac_header in X11/extensions/xf86vmode.h
28686 do
28687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28688 echo "$as_me:$LINENO: checking for $ac_header" >&5
28689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28691   echo $ECHO_N "(cached) $ECHO_C" >&6
28692 else
28693   cat >conftest.$ac_ext <<_ACEOF
28694 /* confdefs.h.  */
28695 _ACEOF
28696 cat confdefs.h >>conftest.$ac_ext
28697 cat >>conftest.$ac_ext <<_ACEOF
28698 /* end confdefs.h.  */
28699
28700                                       #if HAVE_X11_XLIB_H
28701                                         #include <X11/Xlib.h>
28702                                       #endif
28703
28704
28705 #include <$ac_header>
28706 _ACEOF
28707 rm -f conftest.$ac_objext
28708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28709   (eval $ac_compile) 2>conftest.er1
28710   ac_status=$?
28711   grep -v '^ *+' conftest.er1 >conftest.err
28712   rm -f conftest.er1
28713   cat conftest.err >&5
28714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715   (exit $ac_status); } &&
28716          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718   (eval $ac_try) 2>&5
28719   ac_status=$?
28720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721   (exit $ac_status); }; } &&
28722          { ac_try='test -s conftest.$ac_objext'
28723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28724   (eval $ac_try) 2>&5
28725   ac_status=$?
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); }; }; then
28728   eval "$as_ac_Header=yes"
28729 else
28730   echo "$as_me: failed program was:" >&5
28731 sed 's/^/| /' conftest.$ac_ext >&5
28732
28733 eval "$as_ac_Header=no"
28734 fi
28735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28736 fi
28737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28740   cat >>confdefs.h <<_ACEOF
28741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28742 _ACEOF
28743
28744                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28745
28746 fi
28747
28748 done
28749
28750             else
28751                 echo "$as_me:$LINENO: result: no" >&5
28752 echo "${ECHO_T}no" >&6
28753             fi
28754
28755         else
28756             echo "$as_me:$LINENO: result: no" >&5
28757 echo "${ECHO_T}no" >&6
28758             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28759 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
28760             wxUSE_DISPLAY="no"
28761         fi
28762     elif test "$wxUSE_MSW" = 1; then
28763
28764
28765 for ac_header in multimon.h ddraw.h
28766 do
28767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28768 echo "$as_me:$LINENO: checking for $ac_header" >&5
28769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28771   echo $ECHO_N "(cached) $ECHO_C" >&6
28772 else
28773   cat >conftest.$ac_ext <<_ACEOF
28774 /* confdefs.h.  */
28775 _ACEOF
28776 cat confdefs.h >>conftest.$ac_ext
28777 cat >>conftest.$ac_ext <<_ACEOF
28778 /* end confdefs.h.  */
28779 #include <windows.h>
28780
28781 #include <$ac_header>
28782 _ACEOF
28783 rm -f conftest.$ac_objext
28784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28785   (eval $ac_compile) 2>conftest.er1
28786   ac_status=$?
28787   grep -v '^ *+' conftest.er1 >conftest.err
28788   rm -f conftest.er1
28789   cat conftest.err >&5
28790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791   (exit $ac_status); } &&
28792          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794   (eval $ac_try) 2>&5
28795   ac_status=$?
28796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797   (exit $ac_status); }; } &&
28798          { ac_try='test -s conftest.$ac_objext'
28799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800   (eval $ac_try) 2>&5
28801   ac_status=$?
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); }; }; then
28804   eval "$as_ac_Header=yes"
28805 else
28806   echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.$ac_ext >&5
28808
28809 eval "$as_ac_Header=no"
28810 fi
28811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28812 fi
28813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28816   cat >>confdefs.h <<_ACEOF
28817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28818 _ACEOF
28819
28820 else
28821
28822                 wxUSE_DISPLAY="no"
28823                 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
28824 echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
28825
28826 fi
28827
28828 done
28829
28830     fi
28831 fi
28832
28833
28834 USE_OPENGL=0
28835 if test "$wxUSE_OPENGL" = "yes"; then
28836     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28837         OPENGL_LIBS="-framework OpenGL -framework AGL"
28838     elif test "$wxUSE_MSW" = 1; then
28839         OPENGL_LIBS="-lopengl32 -lglu32"
28840     else
28841
28842
28843 ac_find_includes=
28844 for ac_dir in $SEARCH_INCLUDE /usr/include;
28845   do
28846     if test -f "$ac_dir/GL/gl.h"; then
28847       ac_find_includes=$ac_dir
28848       break
28849     fi
28850   done
28851
28852         if test "$ac_find_includes" != "" ; then
28853             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28854 echo "${ECHO_T}found in $ac_find_includes" >&6
28855
28856     if test "x$ac_find_includes" = "x/usr/include"; then
28857     ac_path_to_include=""
28858   else
28859     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28860     result=$?
28861     if test $result = 0; then
28862       ac_path_to_include=""
28863     else
28864       ac_path_to_include=" -I$ac_find_includes"
28865     fi
28866   fi
28867
28868             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28869         fi
28870
28871         if test "${ac_cv_header_GL_gl_h+set}" = set; then
28872   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28873 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28874 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28875   echo $ECHO_N "(cached) $ECHO_C" >&6
28876 fi
28877 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28878 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28879 else
28880   # Is the header compilable?
28881 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28882 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28883 cat >conftest.$ac_ext <<_ACEOF
28884 /* confdefs.h.  */
28885 _ACEOF
28886 cat confdefs.h >>conftest.$ac_ext
28887 cat >>conftest.$ac_ext <<_ACEOF
28888 /* end confdefs.h.  */
28889 $ac_includes_default
28890 #include <GL/gl.h>
28891 _ACEOF
28892 rm -f conftest.$ac_objext
28893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28894   (eval $ac_compile) 2>conftest.er1
28895   ac_status=$?
28896   grep -v '^ *+' conftest.er1 >conftest.err
28897   rm -f conftest.er1
28898   cat conftest.err >&5
28899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900   (exit $ac_status); } &&
28901          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28903   (eval $ac_try) 2>&5
28904   ac_status=$?
28905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906   (exit $ac_status); }; } &&
28907          { ac_try='test -s conftest.$ac_objext'
28908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909   (eval $ac_try) 2>&5
28910   ac_status=$?
28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); }; }; then
28913   ac_header_compiler=yes
28914 else
28915   echo "$as_me: failed program was:" >&5
28916 sed 's/^/| /' conftest.$ac_ext >&5
28917
28918 ac_header_compiler=no
28919 fi
28920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28922 echo "${ECHO_T}$ac_header_compiler" >&6
28923
28924 # Is the header present?
28925 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28926 echo $ECHO_N "checking GL/gl.h presence... $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 #include <GL/gl.h>
28934 _ACEOF
28935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28937   ac_status=$?
28938   grep -v '^ *+' conftest.er1 >conftest.err
28939   rm -f conftest.er1
28940   cat conftest.err >&5
28941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942   (exit $ac_status); } >/dev/null; then
28943   if test -s conftest.err; then
28944     ac_cpp_err=$ac_c_preproc_warn_flag
28945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28946   else
28947     ac_cpp_err=
28948   fi
28949 else
28950   ac_cpp_err=yes
28951 fi
28952 if test -z "$ac_cpp_err"; then
28953   ac_header_preproc=yes
28954 else
28955   echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28957
28958   ac_header_preproc=no
28959 fi
28960 rm -f conftest.err conftest.$ac_ext
28961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28962 echo "${ECHO_T}$ac_header_preproc" >&6
28963
28964 # So?  What about this header?
28965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28966   yes:no: )
28967     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28968 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28969     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28970 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28971     ac_header_preproc=yes
28972     ;;
28973   no:yes:* )
28974     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28975 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
28976     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
28977 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
28978     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28979 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28980     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
28981 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28982     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28983 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
28984     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28985 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
28986     (
28987       cat <<\_ASBOX
28988 ## ----------------------------------------- ##
28989 ## Report this to wx-dev@lists.wxwidgets.org ##
28990 ## ----------------------------------------- ##
28991 _ASBOX
28992     ) |
28993       sed "s/^/$as_me: WARNING:     /" >&2
28994     ;;
28995 esac
28996 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28997 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28998 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28999   echo $ECHO_N "(cached) $ECHO_C" >&6
29000 else
29001   ac_cv_header_GL_gl_h=$ac_header_preproc
29002 fi
29003 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29004 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29005
29006 fi
29007 if test $ac_cv_header_GL_gl_h = yes; then
29008
29009                 found_gl=0
29010
29011                 echo "$as_me:$LINENO: checking for -lGL" >&5
29012 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29013
29014 ac_find_libraries=
29015 for ac_dir in $SEARCH_LIB /usr/lib;
29016   do
29017     for ac_extension in a so sl dylib; do
29018       if test -f "$ac_dir/libGL.$ac_extension"; then
29019         ac_find_libraries=$ac_dir
29020         break 2
29021       fi
29022     done
29023   done
29024
29025                 if test "$ac_find_libraries" != "" ; then
29026                     echo "$as_me:$LINENO: result: yes" >&5
29027 echo "${ECHO_T}yes" >&6
29028
29029
29030   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29031   result=$?
29032   if test $result = 0; then
29033     ac_path_to_link=""
29034   else
29035     ac_path_to_link=" -L$ac_find_libraries"
29036   fi
29037
29038                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
29039                         LDFLAGS_GL="$ac_path_to_link"
29040                     fi
29041
29042                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
29043 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
29044
29045 ac_find_libraries=
29046 for ac_dir in $SEARCH_LIB /usr/lib;
29047   do
29048     for ac_extension in a so sl dylib; do
29049       if test -f "$ac_dir/libGLU.$ac_extension"; then
29050         ac_find_libraries=$ac_dir
29051         break 2
29052       fi
29053     done
29054   done
29055
29056                     if test "$ac_find_libraries" != "" ; then
29057
29058   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29059   result=$?
29060   if test $result = 0; then
29061     ac_path_to_link=""
29062   else
29063     ac_path_to_link=" -L$ac_find_libraries"
29064   fi
29065
29066                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
29067                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
29068                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29069                         fi
29070
29071                         found_gl=1
29072                         OPENGL_LIBS="-lGL -lGLU"
29073                         echo "$as_me:$LINENO: result: yes" >&5
29074 echo "${ECHO_T}yes" >&6
29075                     else
29076                         echo "$as_me:$LINENO: result: no" >&5
29077 echo "${ECHO_T}no" >&6
29078                     fi
29079                 else
29080                     echo "$as_me:$LINENO: result: no" >&5
29081 echo "${ECHO_T}no" >&6
29082                 fi
29083
29084                 if test "$found_gl" != 1; then
29085                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29086 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29087
29088 ac_find_libraries=
29089 for ac_dir in $SEARCH_LIB /usr/lib;
29090   do
29091     for ac_extension in a so sl dylib; do
29092       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29093         ac_find_libraries=$ac_dir
29094         break 2
29095       fi
29096     done
29097   done
29098
29099                     if test "$ac_find_libraries" != "" ; then
29100
29101   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29102   result=$?
29103   if test $result = 0; then
29104     ac_path_to_link=""
29105   else
29106     ac_path_to_link=" -L$ac_find_libraries"
29107   fi
29108
29109                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29110                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
29111                         echo "$as_me:$LINENO: result: yes" >&5
29112 echo "${ECHO_T}yes" >&6
29113                     else
29114                         echo "$as_me:$LINENO: result: no" >&5
29115 echo "${ECHO_T}no" >&6
29116                     fi
29117                 fi
29118
29119 fi
29120
29121
29122
29123         if test "x$OPENGL_LIBS" = "x"; then
29124                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29125 echo "$as_me: error: OpenGL libraries not available" >&2;}
29126    { (exit 1); exit 1; }; }
29127         fi
29128     fi
29129
29130     if test "$wxUSE_OPENGL" = "yes"; then
29131         USE_OPENGL=1
29132         cat >>confdefs.h <<\_ACEOF
29133 #define wxUSE_OPENGL 1
29134 _ACEOF
29135
29136         cat >>confdefs.h <<\_ACEOF
29137 #define wxUSE_GLCANVAS 1
29138 _ACEOF
29139
29140         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29141     fi
29142 fi
29143
29144
29145 if test -n "$TOOLKIT" ; then
29146     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29147 fi
29148
29149
29150
29151 if test "$wxUSE_SHARED" = "yes"; then
29152     case "${host}" in
29153       *-pc-msdosdjgpp )
29154                 wxUSE_SHARED=no
29155         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29156 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29157       ;;
29158     esac
29159 fi
29160
29161 if test "$wxUSE_SHARED" = "yes"; then
29162
29163
29164   found_versioning=no
29165
29166
29167     if test $found_versioning = no ; then
29168       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29169 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29170 if test "${wx_cv_version_script+set}" = set; then
29171   echo $ECHO_N "(cached) $ECHO_C" >&6
29172 else
29173
29174         echo "VER_1 { *; };" >conftest.sym
29175         echo "int main() { return 0; }" >conftest.cpp
29176
29177         if { ac_try='
29178                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29179                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181   (eval $ac_try) 2>&5
29182   ac_status=$?
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); }; } ; then
29185           if test -s conftest.stderr ; then
29186               wx_cv_version_script=no
29187           else
29188               wx_cv_version_script=yes
29189           fi
29190         else
29191           wx_cv_version_script=no
29192         fi
29193         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29194
29195 fi
29196 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29197 echo "${ECHO_T}$wx_cv_version_script" >&6
29198       if test $wx_cv_version_script = yes ; then
29199         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29200       fi
29201   fi
29202
29203
29204     case "${host}" in
29205       *-*-linux* | *-*-gnu* )
29206         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
29207         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
29208         ;;
29209
29210       *-*-solaris2* )
29211         if test "$GCC" = yes ; then
29212                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29213
29214                                     saveLdflags="$LDFLAGS"
29215             LDFLAGS="$saveLdflags -Wl,-rpath,/"
29216             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29217 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29218             cat >conftest.$ac_ext <<_ACEOF
29219 /* confdefs.h.  */
29220 _ACEOF
29221 cat confdefs.h >>conftest.$ac_ext
29222 cat >>conftest.$ac_ext <<_ACEOF
29223 /* end confdefs.h.  */
29224
29225 int
29226 main ()
29227 {
29228
29229   ;
29230   return 0;
29231 }
29232 _ACEOF
29233 rm -f conftest.$ac_objext conftest$ac_exeext
29234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29235   (eval $ac_link) 2>conftest.er1
29236   ac_status=$?
29237   grep -v '^ *+' conftest.er1 >conftest.err
29238   rm -f conftest.er1
29239   cat conftest.err >&5
29240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241   (exit $ac_status); } &&
29242          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29244   (eval $ac_try) 2>&5
29245   ac_status=$?
29246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247   (exit $ac_status); }; } &&
29248          { ac_try='test -s conftest$ac_exeext'
29249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250   (eval $ac_try) 2>&5
29251   ac_status=$?
29252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253   (exit $ac_status); }; }; then
29254
29255                     echo "$as_me:$LINENO: result: yes" >&5
29256 echo "${ECHO_T}yes" >&6
29257                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
29258                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
29259
29260 else
29261   echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.$ac_ext >&5
29263
29264
29265                     echo "$as_me:$LINENO: result: no" >&5
29266 echo "${ECHO_T}no" >&6
29267                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29268 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29269                     LDFLAGS="$saveLdflags -Wl,-R,/"
29270                     cat >conftest.$ac_ext <<_ACEOF
29271 /* confdefs.h.  */
29272 _ACEOF
29273 cat confdefs.h >>conftest.$ac_ext
29274 cat >>conftest.$ac_ext <<_ACEOF
29275 /* end confdefs.h.  */
29276
29277 int
29278 main ()
29279 {
29280
29281   ;
29282   return 0;
29283 }
29284 _ACEOF
29285 rm -f conftest.$ac_objext conftest$ac_exeext
29286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29287   (eval $ac_link) 2>conftest.er1
29288   ac_status=$?
29289   grep -v '^ *+' conftest.er1 >conftest.err
29290   rm -f conftest.er1
29291   cat conftest.err >&5
29292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293   (exit $ac_status); } &&
29294          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29296   (eval $ac_try) 2>&5
29297   ac_status=$?
29298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299   (exit $ac_status); }; } &&
29300          { ac_try='test -s conftest$ac_exeext'
29301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29302   (eval $ac_try) 2>&5
29303   ac_status=$?
29304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305   (exit $ac_status); }; }; then
29306
29307                             echo "$as_me:$LINENO: result: yes" >&5
29308 echo "${ECHO_T}yes" >&6
29309                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29310                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
29311
29312 else
29313   echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29315
29316
29317                             echo "$as_me:$LINENO: result: no" >&5
29318 echo "${ECHO_T}no" >&6
29319
29320 fi
29321 rm -f conftest.err conftest.$ac_objext \
29322       conftest$ac_exeext conftest.$ac_ext
29323
29324 fi
29325 rm -f conftest.err conftest.$ac_objext \
29326       conftest$ac_exeext conftest.$ac_ext
29327             LDFLAGS="$saveLdflags"
29328         else
29329             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
29330             WXCONFIG_RPATH="-R\$libdir"
29331         fi
29332       ;;
29333
29334       powerpc-*-darwin* )
29335         SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29336         cat <<EOF >change-install-names
29337 #!/bin/sh
29338 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29339 inst_cmd="install_name_tool "
29340 for i in \${libnames} ; do
29341     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29342 done
29343 \${inst_cmd} \${3}
29344 EOF
29345         chmod +x change-install-names
29346       ;;
29347
29348       *-*-cygwin* | *-*-mingw32* )
29349         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29350         ;;
29351
29352       *-*-hpux* )
29353         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29354         WXCONFIG_RPATH="-Wl,+b,\$libdir"
29355         ;;
29356
29357     esac
29358
29359     if test $wxUSE_RPATH = "no"; then
29360         SAMPLES_RPATH_FLAG=''
29361         SAMPLES_RPATH_POSTLINK=''
29362         WXCONFIG_RPATH=''
29363     fi
29364
29365     SHARED=1
29366
29367 else
29368
29369     config_linkage_component="-static"
29370     SHARED=0
29371
29372 fi
29373
29374
29375 UNICODE=0
29376 lib_unicode_suffix=
29377 WX_CHARTYPE="ansi"
29378 if test "$wxUSE_UNICODE" = "yes"; then
29379     lib_unicode_suffix=u
29380     WX_CHARTYPE="unicode"
29381     UNICODE=1
29382 fi
29383
29384 lib_debug_suffix=
29385 WX_DEBUGTYPE="release"
29386 DEBUG_FLAG=0
29387 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29388     lib_debug_suffix=d
29389     WX_DEBUGTYPE="debug"
29390     DEBUG_FLAG=1
29391 fi
29392
29393 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29394 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
29395
29396 DEBUG_INFO=0
29397 if test "$wxUSE_DEBUG_INFO" = "yes"; then
29398     DEBUG_INFO=1
29399 fi
29400
29401 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
29402
29403 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
29404
29405 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
29406
29407 if test "$cross_compiling" = "yes"; then
29408     HOST_SUFFIX="-$host_alias"
29409     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29410     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
29411 fi
29412
29413 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29414 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29415
29416
29417
29418 if test "$wxUSE_COCOA" = 1; then
29419
29420
29421     ac_ext=c
29422 ac_cpp='$CPP $CPPFLAGS'
29423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29426
29427 ac_ext=m
29428
29429     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29430 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29431     cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h.  */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h.  */
29437 #include <AppKit/NSEvent.h>
29438 #include <CoreFoundation/CoreFoundation.h>
29439
29440 int
29441 main ()
29442 {
29443
29444   ;
29445   return 0;
29446 }
29447 _ACEOF
29448 rm -f conftest.$ac_objext
29449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29450   (eval $ac_compile) 2>conftest.er1
29451   ac_status=$?
29452   grep -v '^ *+' conftest.er1 >conftest.err
29453   rm -f conftest.er1
29454   cat conftest.err >&5
29455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456   (exit $ac_status); } &&
29457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29459   (eval $ac_try) 2>&5
29460   ac_status=$?
29461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462   (exit $ac_status); }; } &&
29463          { ac_try='test -s conftest.$ac_objext'
29464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465   (eval $ac_try) 2>&5
29466   ac_status=$?
29467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468   (exit $ac_status); }; }; then
29469   echo "$as_me:$LINENO: result: no" >&5
29470 echo "${ECHO_T}no" >&6
29471 else
29472   echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29474
29475 echo "$as_me:$LINENO: result: yes" >&5
29476 echo "${ECHO_T}yes" >&6
29477         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29478 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29479         cat >conftest.$ac_ext <<_ACEOF
29480 /* confdefs.h.  */
29481 _ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h.  */
29485 #define __Point__ 1
29486 #include <AppKit/NSEvent.h>
29487 #include <CoreFoundation/CoreFoundation.h>
29488
29489 int
29490 main ()
29491 {
29492
29493   ;
29494   return 0;
29495 }
29496 _ACEOF
29497 rm -f conftest.$ac_objext
29498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29499   (eval $ac_compile) 2>conftest.er1
29500   ac_status=$?
29501   grep -v '^ *+' conftest.er1 >conftest.err
29502   rm -f conftest.er1
29503   cat conftest.err >&5
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); } &&
29506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29508   (eval $ac_try) 2>&5
29509   ac_status=$?
29510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511   (exit $ac_status); }; } &&
29512          { ac_try='test -s conftest.$ac_objext'
29513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514   (eval $ac_try) 2>&5
29515   ac_status=$?
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); }; }; then
29518   echo "$as_me:$LINENO: result: yes" >&5
29519 echo "${ECHO_T}yes" >&6
29520             cat >>confdefs.h <<\_ACEOF
29521 #define __Point__ 1
29522 _ACEOF
29523
29524
29525 else
29526   echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29528
29529 { { echo "$as_me:$LINENO: error: no
29530 See \`config.log' for more details." >&5
29531 echo "$as_me: error: no
29532 See \`config.log' for more details." >&2;}
29533    { (exit 1); exit 1; }; }
29534
29535 fi
29536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29537
29538 fi
29539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29540     ac_ext=c
29541 ac_cpp='$CPP $CPPFLAGS'
29542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29545
29546 fi
29547
29548 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
29549             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29550     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
29551
29552         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
29553
29554     # Extract the first word of "Rez", so it can be a program name with args.
29555 set dummy Rez; ac_word=$2
29556 echo "$as_me:$LINENO: checking for $ac_word" >&5
29557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29558 if test "${ac_cv_prog_RESCOMP+set}" = set; then
29559   echo $ECHO_N "(cached) $ECHO_C" >&6
29560 else
29561   if test -n "$RESCOMP"; then
29562   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29563 else
29564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29565 for as_dir in $PATH
29566 do
29567   IFS=$as_save_IFS
29568   test -z "$as_dir" && as_dir=.
29569   for ac_exec_ext in '' $ac_executable_extensions; do
29570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29571     ac_cv_prog_RESCOMP="Rez"
29572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29573     break 2
29574   fi
29575 done
29576 done
29577
29578   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29579 fi
29580 fi
29581 RESCOMP=$ac_cv_prog_RESCOMP
29582 if test -n "$RESCOMP"; then
29583   echo "$as_me:$LINENO: result: $RESCOMP" >&5
29584 echo "${ECHO_T}$RESCOMP" >&6
29585 else
29586   echo "$as_me:$LINENO: result: no" >&5
29587 echo "${ECHO_T}no" >&6
29588 fi
29589
29590     # Extract the first word of "DeRez", so it can be a program name with args.
29591 set dummy DeRez; ac_word=$2
29592 echo "$as_me:$LINENO: checking for $ac_word" >&5
29593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29594 if test "${ac_cv_prog_DEREZ+set}" = set; then
29595   echo $ECHO_N "(cached) $ECHO_C" >&6
29596 else
29597   if test -n "$DEREZ"; then
29598   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29599 else
29600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29601 for as_dir in $PATH
29602 do
29603   IFS=$as_save_IFS
29604   test -z "$as_dir" && as_dir=.
29605   for ac_exec_ext in '' $ac_executable_extensions; do
29606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29607     ac_cv_prog_DEREZ="DeRez"
29608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29609     break 2
29610   fi
29611 done
29612 done
29613
29614   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29615 fi
29616 fi
29617 DEREZ=$ac_cv_prog_DEREZ
29618 if test -n "$DEREZ"; then
29619   echo "$as_me:$LINENO: result: $DEREZ" >&5
29620 echo "${ECHO_T}$DEREZ" >&6
29621 else
29622   echo "$as_me:$LINENO: result: no" >&5
29623 echo "${ECHO_T}no" >&6
29624 fi
29625
29626     # Extract the first word of "SetFile", so it can be a program name with args.
29627 set dummy SetFile; ac_word=$2
29628 echo "$as_me:$LINENO: checking for $ac_word" >&5
29629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29630 if test "${ac_cv_prog_SETFILE+set}" = set; then
29631   echo $ECHO_N "(cached) $ECHO_C" >&6
29632 else
29633   if test -n "$SETFILE"; then
29634   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29635 else
29636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29637 for as_dir in $PATH
29638 do
29639   IFS=$as_save_IFS
29640   test -z "$as_dir" && as_dir=.
29641   for ac_exec_ext in '' $ac_executable_extensions; do
29642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29643     ac_cv_prog_SETFILE="SetFile"
29644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29645     break 2
29646   fi
29647 done
29648 done
29649
29650   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29651 fi
29652 fi
29653 SETFILE=$ac_cv_prog_SETFILE
29654 if test -n "$SETFILE"; then
29655   echo "$as_me:$LINENO: result: $SETFILE" >&5
29656 echo "${ECHO_T}$SETFILE" >&6
29657 else
29658   echo "$as_me:$LINENO: result: no" >&5
29659 echo "${ECHO_T}no" >&6
29660 fi
29661
29662
29663     MACSETFILE="\$(SETFILE)"
29664
29665             if test "$wxUSE_MAC" = 1; then
29666         MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29667
29668                         MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29669     else
29670         MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29671         MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29672     fi
29673 else
29674         MACSETFILE="@true"
29675     MACRESWXCONFIG="@true"
29676
29677         if test "$wxUSE_PM" = 1; then
29678         MACRESCOMP="emxbind -ep"
29679     else
29680         MACRESCOMP="@true"
29681     fi
29682 fi
29683
29684
29685
29686 echo "$as_me:$LINENO: checking for mode_t" >&5
29687 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29688 if test "${ac_cv_type_mode_t+set}" = set; then
29689   echo $ECHO_N "(cached) $ECHO_C" >&6
29690 else
29691   cat >conftest.$ac_ext <<_ACEOF
29692 /* confdefs.h.  */
29693 _ACEOF
29694 cat confdefs.h >>conftest.$ac_ext
29695 cat >>conftest.$ac_ext <<_ACEOF
29696 /* end confdefs.h.  */
29697 $ac_includes_default
29698 int
29699 main ()
29700 {
29701 if ((mode_t *) 0)
29702   return 0;
29703 if (sizeof (mode_t))
29704   return 0;
29705   ;
29706   return 0;
29707 }
29708 _ACEOF
29709 rm -f conftest.$ac_objext
29710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29711   (eval $ac_compile) 2>conftest.er1
29712   ac_status=$?
29713   grep -v '^ *+' conftest.er1 >conftest.err
29714   rm -f conftest.er1
29715   cat conftest.err >&5
29716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717   (exit $ac_status); } &&
29718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29720   (eval $ac_try) 2>&5
29721   ac_status=$?
29722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723   (exit $ac_status); }; } &&
29724          { ac_try='test -s conftest.$ac_objext'
29725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29726   (eval $ac_try) 2>&5
29727   ac_status=$?
29728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729   (exit $ac_status); }; }; then
29730   ac_cv_type_mode_t=yes
29731 else
29732   echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29734
29735 ac_cv_type_mode_t=no
29736 fi
29737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29738 fi
29739 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29740 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29741 if test $ac_cv_type_mode_t = yes; then
29742   :
29743 else
29744
29745 cat >>confdefs.h <<_ACEOF
29746 #define mode_t int
29747 _ACEOF
29748
29749 fi
29750
29751 echo "$as_me:$LINENO: checking for off_t" >&5
29752 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29753 if test "${ac_cv_type_off_t+set}" = set; then
29754   echo $ECHO_N "(cached) $ECHO_C" >&6
29755 else
29756   cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h.  */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h.  */
29762 $ac_includes_default
29763 int
29764 main ()
29765 {
29766 if ((off_t *) 0)
29767   return 0;
29768 if (sizeof (off_t))
29769   return 0;
29770   ;
29771   return 0;
29772 }
29773 _ACEOF
29774 rm -f conftest.$ac_objext
29775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29776   (eval $ac_compile) 2>conftest.er1
29777   ac_status=$?
29778   grep -v '^ *+' conftest.er1 >conftest.err
29779   rm -f conftest.er1
29780   cat conftest.err >&5
29781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782   (exit $ac_status); } &&
29783          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29785   (eval $ac_try) 2>&5
29786   ac_status=$?
29787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788   (exit $ac_status); }; } &&
29789          { ac_try='test -s conftest.$ac_objext'
29790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29791   (eval $ac_try) 2>&5
29792   ac_status=$?
29793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794   (exit $ac_status); }; }; then
29795   ac_cv_type_off_t=yes
29796 else
29797   echo "$as_me: failed program was:" >&5
29798 sed 's/^/| /' conftest.$ac_ext >&5
29799
29800 ac_cv_type_off_t=no
29801 fi
29802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29803 fi
29804 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29805 echo "${ECHO_T}$ac_cv_type_off_t" >&6
29806 if test $ac_cv_type_off_t = yes; then
29807   :
29808 else
29809
29810 cat >>confdefs.h <<_ACEOF
29811 #define off_t long
29812 _ACEOF
29813
29814 fi
29815
29816 echo "$as_me:$LINENO: checking for pid_t" >&5
29817 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29818 if test "${ac_cv_type_pid_t+set}" = set; then
29819   echo $ECHO_N "(cached) $ECHO_C" >&6
29820 else
29821   cat >conftest.$ac_ext <<_ACEOF
29822 /* confdefs.h.  */
29823 _ACEOF
29824 cat confdefs.h >>conftest.$ac_ext
29825 cat >>conftest.$ac_ext <<_ACEOF
29826 /* end confdefs.h.  */
29827 $ac_includes_default
29828 int
29829 main ()
29830 {
29831 if ((pid_t *) 0)
29832   return 0;
29833 if (sizeof (pid_t))
29834   return 0;
29835   ;
29836   return 0;
29837 }
29838 _ACEOF
29839 rm -f conftest.$ac_objext
29840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29841   (eval $ac_compile) 2>conftest.er1
29842   ac_status=$?
29843   grep -v '^ *+' conftest.er1 >conftest.err
29844   rm -f conftest.er1
29845   cat conftest.err >&5
29846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847   (exit $ac_status); } &&
29848          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850   (eval $ac_try) 2>&5
29851   ac_status=$?
29852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853   (exit $ac_status); }; } &&
29854          { ac_try='test -s conftest.$ac_objext'
29855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856   (eval $ac_try) 2>&5
29857   ac_status=$?
29858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859   (exit $ac_status); }; }; then
29860   ac_cv_type_pid_t=yes
29861 else
29862   echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29864
29865 ac_cv_type_pid_t=no
29866 fi
29867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29868 fi
29869 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29870 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29871 if test $ac_cv_type_pid_t = yes; then
29872   :
29873 else
29874
29875 cat >>confdefs.h <<_ACEOF
29876 #define pid_t int
29877 _ACEOF
29878
29879 fi
29880
29881 echo "$as_me:$LINENO: checking for size_t" >&5
29882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29883 if test "${ac_cv_type_size_t+set}" = set; then
29884   echo $ECHO_N "(cached) $ECHO_C" >&6
29885 else
29886   cat >conftest.$ac_ext <<_ACEOF
29887 /* confdefs.h.  */
29888 _ACEOF
29889 cat confdefs.h >>conftest.$ac_ext
29890 cat >>conftest.$ac_ext <<_ACEOF
29891 /* end confdefs.h.  */
29892 $ac_includes_default
29893 int
29894 main ()
29895 {
29896 if ((size_t *) 0)
29897   return 0;
29898 if (sizeof (size_t))
29899   return 0;
29900   ;
29901   return 0;
29902 }
29903 _ACEOF
29904 rm -f conftest.$ac_objext
29905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29906   (eval $ac_compile) 2>conftest.er1
29907   ac_status=$?
29908   grep -v '^ *+' conftest.er1 >conftest.err
29909   rm -f conftest.er1
29910   cat conftest.err >&5
29911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912   (exit $ac_status); } &&
29913          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29915   (eval $ac_try) 2>&5
29916   ac_status=$?
29917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918   (exit $ac_status); }; } &&
29919          { ac_try='test -s conftest.$ac_objext'
29920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29921   (eval $ac_try) 2>&5
29922   ac_status=$?
29923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924   (exit $ac_status); }; }; then
29925   ac_cv_type_size_t=yes
29926 else
29927   echo "$as_me: failed program was:" >&5
29928 sed 's/^/| /' conftest.$ac_ext >&5
29929
29930 ac_cv_type_size_t=no
29931 fi
29932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29933 fi
29934 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29935 echo "${ECHO_T}$ac_cv_type_size_t" >&6
29936 if test $ac_cv_type_size_t = yes; then
29937   :
29938 else
29939
29940 cat >>confdefs.h <<_ACEOF
29941 #define size_t unsigned
29942 _ACEOF
29943
29944 fi
29945
29946 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29947 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29948 if test "${ac_cv_type_uid_t+set}" = set; then
29949   echo $ECHO_N "(cached) $ECHO_C" >&6
29950 else
29951   cat >conftest.$ac_ext <<_ACEOF
29952 /* confdefs.h.  */
29953 _ACEOF
29954 cat confdefs.h >>conftest.$ac_ext
29955 cat >>conftest.$ac_ext <<_ACEOF
29956 /* end confdefs.h.  */
29957 #include <sys/types.h>
29958
29959 _ACEOF
29960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29961   $EGREP "uid_t" >/dev/null 2>&1; then
29962   ac_cv_type_uid_t=yes
29963 else
29964   ac_cv_type_uid_t=no
29965 fi
29966 rm -f conftest*
29967
29968 fi
29969 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29970 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29971 if test $ac_cv_type_uid_t = no; then
29972
29973 cat >>confdefs.h <<\_ACEOF
29974 #define uid_t int
29975 _ACEOF
29976
29977
29978 cat >>confdefs.h <<\_ACEOF
29979 #define gid_t int
29980 _ACEOF
29981
29982 fi
29983
29984
29985 echo "$as_me:$LINENO: checking for ssize_t" >&5
29986 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29987 if test "${ac_cv_type_ssize_t+set}" = set; then
29988   echo $ECHO_N "(cached) $ECHO_C" >&6
29989 else
29990   cat >conftest.$ac_ext <<_ACEOF
29991 /* confdefs.h.  */
29992 _ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h.  */
29996 $ac_includes_default
29997 int
29998 main ()
29999 {
30000 if ((ssize_t *) 0)
30001   return 0;
30002 if (sizeof (ssize_t))
30003   return 0;
30004   ;
30005   return 0;
30006 }
30007 _ACEOF
30008 rm -f conftest.$ac_objext
30009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30010   (eval $ac_compile) 2>conftest.er1
30011   ac_status=$?
30012   grep -v '^ *+' conftest.er1 >conftest.err
30013   rm -f conftest.er1
30014   cat conftest.err >&5
30015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016   (exit $ac_status); } &&
30017          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019   (eval $ac_try) 2>&5
30020   ac_status=$?
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); }; } &&
30023          { ac_try='test -s conftest.$ac_objext'
30024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30025   (eval $ac_try) 2>&5
30026   ac_status=$?
30027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028   (exit $ac_status); }; }; then
30029   ac_cv_type_ssize_t=yes
30030 else
30031   echo "$as_me: failed program was:" >&5
30032 sed 's/^/| /' conftest.$ac_ext >&5
30033
30034 ac_cv_type_ssize_t=no
30035 fi
30036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30037 fi
30038 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30039 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30040 if test $ac_cv_type_ssize_t = yes; then
30041
30042 cat >>confdefs.h <<_ACEOF
30043 #define HAVE_SSIZE_T 1
30044 _ACEOF
30045
30046
30047 fi
30048
30049
30050
30051
30052 ac_ext=cc
30053 ac_cpp='$CXXCPP $CPPFLAGS'
30054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30057
30058 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30059 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30060 if test "${wx_cv_size_t_is_uint+set}" = set; then
30061   echo $ECHO_N "(cached) $ECHO_C" >&6
30062 else
30063
30064                             cat >conftest.$ac_ext <<_ACEOF
30065 /* confdefs.h.  */
30066 _ACEOF
30067 cat confdefs.h >>conftest.$ac_ext
30068 cat >>conftest.$ac_ext <<_ACEOF
30069 /* end confdefs.h.  */
30070 #include <stddef.h>
30071 int
30072 main ()
30073 {
30074
30075             return 0; }
30076
30077             struct Foo { void foo(size_t); void foo(unsigned int); };
30078
30079             int bar() {
30080
30081   ;
30082   return 0;
30083 }
30084 _ACEOF
30085 rm -f conftest.$ac_objext
30086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30087   (eval $ac_compile) 2>conftest.er1
30088   ac_status=$?
30089   grep -v '^ *+' conftest.er1 >conftest.err
30090   rm -f conftest.er1
30091   cat conftest.err >&5
30092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093   (exit $ac_status); } &&
30094          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096   (eval $ac_try) 2>&5
30097   ac_status=$?
30098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099   (exit $ac_status); }; } &&
30100          { ac_try='test -s conftest.$ac_objext'
30101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30102   (eval $ac_try) 2>&5
30103   ac_status=$?
30104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105   (exit $ac_status); }; }; then
30106   wx_cv_size_t_is_uint=no
30107 else
30108   echo "$as_me: failed program was:" >&5
30109 sed 's/^/| /' conftest.$ac_ext >&5
30110
30111 wx_cv_size_t_is_uint=yes
30112
30113 fi
30114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30115
30116
30117 fi
30118 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30119 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30120
30121 if test "$wx_cv_size_t_is_uint" = "yes"; then
30122     cat >>confdefs.h <<\_ACEOF
30123 #define wxSIZE_T_IS_UINT 1
30124 _ACEOF
30125
30126 else
30127     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30128 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30129 if test "${wx_cv_size_t_is_ulong+set}" = set; then
30130   echo $ECHO_N "(cached) $ECHO_C" >&6
30131 else
30132   cat >conftest.$ac_ext <<_ACEOF
30133 /* confdefs.h.  */
30134 _ACEOF
30135 cat confdefs.h >>conftest.$ac_ext
30136 cat >>conftest.$ac_ext <<_ACEOF
30137 /* end confdefs.h.  */
30138 #include <stddef.h>
30139 int
30140 main ()
30141 {
30142
30143                 return 0; }
30144
30145                 struct Foo { void foo(size_t); void foo(unsigned long); };
30146
30147                 int bar() {
30148
30149   ;
30150   return 0;
30151 }
30152 _ACEOF
30153 rm -f conftest.$ac_objext
30154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30155   (eval $ac_compile) 2>conftest.er1
30156   ac_status=$?
30157   grep -v '^ *+' conftest.er1 >conftest.err
30158   rm -f conftest.er1
30159   cat conftest.err >&5
30160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161   (exit $ac_status); } &&
30162          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30164   (eval $ac_try) 2>&5
30165   ac_status=$?
30166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167   (exit $ac_status); }; } &&
30168          { ac_try='test -s conftest.$ac_objext'
30169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30170   (eval $ac_try) 2>&5
30171   ac_status=$?
30172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173   (exit $ac_status); }; }; then
30174   wx_cv_size_t_is_ulong=no
30175 else
30176   echo "$as_me: failed program was:" >&5
30177 sed 's/^/| /' conftest.$ac_ext >&5
30178
30179 wx_cv_size_t_is_ulong=yes
30180
30181 fi
30182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30183
30184 fi
30185 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30186 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30187
30188     if test "$wx_cv_size_t_is_ulong" = "yes"; then
30189         cat >>confdefs.h <<\_ACEOF
30190 #define wxSIZE_T_IS_ULONG 1
30191 _ACEOF
30192
30193     fi
30194 fi
30195
30196 ac_ext=c
30197 ac_cpp='$CPP $CPPFLAGS'
30198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30201
30202
30203
30204 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30205 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30206 if test "${wx_cv_struct_pw_gecos+set}" = set; then
30207   echo $ECHO_N "(cached) $ECHO_C" >&6
30208 else
30209
30210         cat >conftest.$ac_ext <<_ACEOF
30211 /* confdefs.h.  */
30212 _ACEOF
30213 cat confdefs.h >>conftest.$ac_ext
30214 cat >>conftest.$ac_ext <<_ACEOF
30215 /* end confdefs.h.  */
30216 #include <pwd.h>
30217 int
30218 main ()
30219 {
30220
30221                 char *p;
30222                 struct passwd *pw;
30223                 p = pw->pw_gecos;
30224
30225   ;
30226   return 0;
30227 }
30228 _ACEOF
30229 rm -f conftest.$ac_objext
30230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30231   (eval $ac_compile) 2>conftest.er1
30232   ac_status=$?
30233   grep -v '^ *+' conftest.er1 >conftest.err
30234   rm -f conftest.er1
30235   cat conftest.err >&5
30236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237   (exit $ac_status); } &&
30238          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30240   (eval $ac_try) 2>&5
30241   ac_status=$?
30242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243   (exit $ac_status); }; } &&
30244          { ac_try='test -s conftest.$ac_objext'
30245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30246   (eval $ac_try) 2>&5
30247   ac_status=$?
30248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249   (exit $ac_status); }; }; then
30250
30251                 wx_cv_struct_pw_gecos=yes
30252
30253 else
30254   echo "$as_me: failed program was:" >&5
30255 sed 's/^/| /' conftest.$ac_ext >&5
30256
30257
30258                 wx_cv_struct_pw_gecos=no
30259
30260
30261 fi
30262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30263
30264
30265 fi
30266 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30267 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30268
30269 if test "$wx_cv_struct_pw_gecos" = "yes"; then
30270     cat >>confdefs.h <<\_ACEOF
30271 #define HAVE_PW_GECOS 1
30272 _ACEOF
30273
30274 fi
30275
30276
30277 if test "$ac_cv_sizeof_wchar_t" != "0"; then
30278     cat >>confdefs.h <<\_ACEOF
30279 #define wxUSE_WCHAR_T 1
30280 _ACEOF
30281
30282
30283         WCSLEN_FOUND=0
30284     WCHAR_LINK=
30285
30286 for ac_func in wcslen
30287 do
30288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30289 echo "$as_me:$LINENO: checking for $ac_func" >&5
30290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30291 if eval "test \"\${$as_ac_var+set}\" = set"; then
30292   echo $ECHO_N "(cached) $ECHO_C" >&6
30293 else
30294   cat >conftest.$ac_ext <<_ACEOF
30295 /* confdefs.h.  */
30296 _ACEOF
30297 cat confdefs.h >>conftest.$ac_ext
30298 cat >>conftest.$ac_ext <<_ACEOF
30299 /* end confdefs.h.  */
30300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30302 #define $ac_func innocuous_$ac_func
30303
30304 /* System header to define __stub macros and hopefully few prototypes,
30305     which can conflict with char $ac_func (); below.
30306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30307     <limits.h> exists even on freestanding compilers.  */
30308
30309 #ifdef __STDC__
30310 # include <limits.h>
30311 #else
30312 # include <assert.h>
30313 #endif
30314
30315 #undef $ac_func
30316
30317 /* Override any gcc2 internal prototype to avoid an error.  */
30318 #ifdef __cplusplus
30319 extern "C"
30320 {
30321 #endif
30322 /* We use char because int might match the return type of a gcc2
30323    builtin and then its argument prototype would still apply.  */
30324 char $ac_func ();
30325 /* The GNU C library defines this for functions which it implements
30326     to always fail with ENOSYS.  Some functions are actually named
30327     something starting with __ and the normal name is an alias.  */
30328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30329 choke me
30330 #else
30331 char (*f) () = $ac_func;
30332 #endif
30333 #ifdef __cplusplus
30334 }
30335 #endif
30336
30337 int
30338 main ()
30339 {
30340 return f != $ac_func;
30341   ;
30342   return 0;
30343 }
30344 _ACEOF
30345 rm -f conftest.$ac_objext conftest$ac_exeext
30346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30347   (eval $ac_link) 2>conftest.er1
30348   ac_status=$?
30349   grep -v '^ *+' conftest.er1 >conftest.err
30350   rm -f conftest.er1
30351   cat conftest.err >&5
30352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353   (exit $ac_status); } &&
30354          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30356   (eval $ac_try) 2>&5
30357   ac_status=$?
30358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359   (exit $ac_status); }; } &&
30360          { ac_try='test -s conftest$ac_exeext'
30361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30362   (eval $ac_try) 2>&5
30363   ac_status=$?
30364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365   (exit $ac_status); }; }; then
30366   eval "$as_ac_var=yes"
30367 else
30368   echo "$as_me: failed program was:" >&5
30369 sed 's/^/| /' conftest.$ac_ext >&5
30370
30371 eval "$as_ac_var=no"
30372 fi
30373 rm -f conftest.err conftest.$ac_objext \
30374       conftest$ac_exeext conftest.$ac_ext
30375 fi
30376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30378 if test `eval echo '${'$as_ac_var'}'` = yes; then
30379   cat >>confdefs.h <<_ACEOF
30380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30381 _ACEOF
30382  WCSLEN_FOUND=1
30383 fi
30384 done
30385
30386
30387     if test "$WCSLEN_FOUND" = 0; then
30388         if test "$TOOLKIT" = "MSW"; then
30389             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30390 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30391 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30392   echo $ECHO_N "(cached) $ECHO_C" >&6
30393 else
30394   ac_check_lib_save_LIBS=$LIBS
30395 LIBS="-lmsvcrt  $LIBS"
30396 cat >conftest.$ac_ext <<_ACEOF
30397 /* confdefs.h.  */
30398 _ACEOF
30399 cat confdefs.h >>conftest.$ac_ext
30400 cat >>conftest.$ac_ext <<_ACEOF
30401 /* end confdefs.h.  */
30402
30403 /* Override any gcc2 internal prototype to avoid an error.  */
30404 #ifdef __cplusplus
30405 extern "C"
30406 #endif
30407 /* We use char because int might match the return type of a gcc2
30408    builtin and then its argument prototype would still apply.  */
30409 char wcslen ();
30410 int
30411 main ()
30412 {
30413 wcslen ();
30414   ;
30415   return 0;
30416 }
30417 _ACEOF
30418 rm -f conftest.$ac_objext conftest$ac_exeext
30419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30420   (eval $ac_link) 2>conftest.er1
30421   ac_status=$?
30422   grep -v '^ *+' conftest.er1 >conftest.err
30423   rm -f conftest.er1
30424   cat conftest.err >&5
30425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426   (exit $ac_status); } &&
30427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30429   (eval $ac_try) 2>&5
30430   ac_status=$?
30431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432   (exit $ac_status); }; } &&
30433          { ac_try='test -s conftest$ac_exeext'
30434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30435   (eval $ac_try) 2>&5
30436   ac_status=$?
30437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438   (exit $ac_status); }; }; then
30439   ac_cv_lib_msvcrt_wcslen=yes
30440 else
30441   echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30443
30444 ac_cv_lib_msvcrt_wcslen=no
30445 fi
30446 rm -f conftest.err conftest.$ac_objext \
30447       conftest$ac_exeext conftest.$ac_ext
30448 LIBS=$ac_check_lib_save_LIBS
30449 fi
30450 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30451 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30452 if test $ac_cv_lib_msvcrt_wcslen = yes; then
30453   WCHAR_OK=1
30454 fi
30455
30456         else
30457             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30458 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30459 if test "${ac_cv_lib_w_wcslen+set}" = set; then
30460   echo $ECHO_N "(cached) $ECHO_C" >&6
30461 else
30462   ac_check_lib_save_LIBS=$LIBS
30463 LIBS="-lw  $LIBS"
30464 cat >conftest.$ac_ext <<_ACEOF
30465 /* confdefs.h.  */
30466 _ACEOF
30467 cat confdefs.h >>conftest.$ac_ext
30468 cat >>conftest.$ac_ext <<_ACEOF
30469 /* end confdefs.h.  */
30470
30471 /* Override any gcc2 internal prototype to avoid an error.  */
30472 #ifdef __cplusplus
30473 extern "C"
30474 #endif
30475 /* We use char because int might match the return type of a gcc2
30476    builtin and then its argument prototype would still apply.  */
30477 char wcslen ();
30478 int
30479 main ()
30480 {
30481 wcslen ();
30482   ;
30483   return 0;
30484 }
30485 _ACEOF
30486 rm -f conftest.$ac_objext conftest$ac_exeext
30487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30488   (eval $ac_link) 2>conftest.er1
30489   ac_status=$?
30490   grep -v '^ *+' conftest.er1 >conftest.err
30491   rm -f conftest.er1
30492   cat conftest.err >&5
30493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494   (exit $ac_status); } &&
30495          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30497   (eval $ac_try) 2>&5
30498   ac_status=$?
30499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500   (exit $ac_status); }; } &&
30501          { ac_try='test -s conftest$ac_exeext'
30502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30503   (eval $ac_try) 2>&5
30504   ac_status=$?
30505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506   (exit $ac_status); }; }; then
30507   ac_cv_lib_w_wcslen=yes
30508 else
30509   echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30511
30512 ac_cv_lib_w_wcslen=no
30513 fi
30514 rm -f conftest.err conftest.$ac_objext \
30515       conftest$ac_exeext conftest.$ac_ext
30516 LIBS=$ac_check_lib_save_LIBS
30517 fi
30518 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30519 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30520 if test $ac_cv_lib_w_wcslen = yes; then
30521
30522                             WCHAR_LINK=" -lw"
30523                             WCSLEN_FOUND=1
30524
30525 fi
30526
30527         fi
30528     fi
30529
30530     if test "$WCSLEN_FOUND" = 1; then
30531         cat >>confdefs.h <<\_ACEOF
30532 #define HAVE_WCSLEN 1
30533 _ACEOF
30534
30535     fi
30536
30537         if test "$USE_HPUX" = 1; then
30538         CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30539     fi
30540
30541
30542 for ac_func in wcsrtombs
30543 do
30544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30545 echo "$as_me:$LINENO: checking for $ac_func" >&5
30546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30547 if eval "test \"\${$as_ac_var+set}\" = set"; then
30548   echo $ECHO_N "(cached) $ECHO_C" >&6
30549 else
30550   cat >conftest.$ac_ext <<_ACEOF
30551 /* confdefs.h.  */
30552 _ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h.  */
30556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30558 #define $ac_func innocuous_$ac_func
30559
30560 /* System header to define __stub macros and hopefully few prototypes,
30561     which can conflict with char $ac_func (); below.
30562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30563     <limits.h> exists even on freestanding compilers.  */
30564
30565 #ifdef __STDC__
30566 # include <limits.h>
30567 #else
30568 # include <assert.h>
30569 #endif
30570
30571 #undef $ac_func
30572
30573 /* Override any gcc2 internal prototype to avoid an error.  */
30574 #ifdef __cplusplus
30575 extern "C"
30576 {
30577 #endif
30578 /* We use char because int might match the return type of a gcc2
30579    builtin and then its argument prototype would still apply.  */
30580 char $ac_func ();
30581 /* The GNU C library defines this for functions which it implements
30582     to always fail with ENOSYS.  Some functions are actually named
30583     something starting with __ and the normal name is an alias.  */
30584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30585 choke me
30586 #else
30587 char (*f) () = $ac_func;
30588 #endif
30589 #ifdef __cplusplus
30590 }
30591 #endif
30592
30593 int
30594 main ()
30595 {
30596 return f != $ac_func;
30597   ;
30598   return 0;
30599 }
30600 _ACEOF
30601 rm -f conftest.$ac_objext conftest$ac_exeext
30602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30603   (eval $ac_link) 2>conftest.er1
30604   ac_status=$?
30605   grep -v '^ *+' conftest.er1 >conftest.err
30606   rm -f conftest.er1
30607   cat conftest.err >&5
30608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609   (exit $ac_status); } &&
30610          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30612   (eval $ac_try) 2>&5
30613   ac_status=$?
30614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615   (exit $ac_status); }; } &&
30616          { ac_try='test -s conftest$ac_exeext'
30617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30618   (eval $ac_try) 2>&5
30619   ac_status=$?
30620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621   (exit $ac_status); }; }; then
30622   eval "$as_ac_var=yes"
30623 else
30624   echo "$as_me: failed program was:" >&5
30625 sed 's/^/| /' conftest.$ac_ext >&5
30626
30627 eval "$as_ac_var=no"
30628 fi
30629 rm -f conftest.err conftest.$ac_objext \
30630       conftest$ac_exeext conftest.$ac_ext
30631 fi
30632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30634 if test `eval echo '${'$as_ac_var'}'` = yes; then
30635   cat >>confdefs.h <<_ACEOF
30636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30637 _ACEOF
30638
30639 fi
30640 done
30641
30642 else
30643     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30644 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30645 fi
30646
30647
30648
30649 ac_ext=cc
30650 ac_cpp='$CXXCPP $CPPFLAGS'
30651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30654
30655
30656
30657 for ac_func in vsnprintf
30658 do
30659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30660 echo "$as_me:$LINENO: checking for $ac_func" >&5
30661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30662 if eval "test \"\${$as_ac_var+set}\" = set"; then
30663   echo $ECHO_N "(cached) $ECHO_C" >&6
30664 else
30665   cat >conftest.$ac_ext <<_ACEOF
30666 /* confdefs.h.  */
30667 _ACEOF
30668 cat confdefs.h >>conftest.$ac_ext
30669 cat >>conftest.$ac_ext <<_ACEOF
30670 /* end confdefs.h.  */
30671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30672    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30673 #define $ac_func innocuous_$ac_func
30674
30675 /* System header to define __stub macros and hopefully few prototypes,
30676     which can conflict with char $ac_func (); below.
30677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30678     <limits.h> exists even on freestanding compilers.  */
30679
30680 #ifdef __STDC__
30681 # include <limits.h>
30682 #else
30683 # include <assert.h>
30684 #endif
30685
30686 #undef $ac_func
30687
30688 /* Override any gcc2 internal prototype to avoid an error.  */
30689 #ifdef __cplusplus
30690 extern "C"
30691 {
30692 #endif
30693 /* We use char because int might match the return type of a gcc2
30694    builtin and then its argument prototype would still apply.  */
30695 char $ac_func ();
30696 /* The GNU C library defines this for functions which it implements
30697     to always fail with ENOSYS.  Some functions are actually named
30698     something starting with __ and the normal name is an alias.  */
30699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30700 choke me
30701 #else
30702 char (*f) () = $ac_func;
30703 #endif
30704 #ifdef __cplusplus
30705 }
30706 #endif
30707
30708 int
30709 main ()
30710 {
30711 return f != $ac_func;
30712   ;
30713   return 0;
30714 }
30715 _ACEOF
30716 rm -f conftest.$ac_objext conftest$ac_exeext
30717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30718   (eval $ac_link) 2>conftest.er1
30719   ac_status=$?
30720   grep -v '^ *+' conftest.er1 >conftest.err
30721   rm -f conftest.er1
30722   cat conftest.err >&5
30723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724   (exit $ac_status); } &&
30725          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727   (eval $ac_try) 2>&5
30728   ac_status=$?
30729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730   (exit $ac_status); }; } &&
30731          { ac_try='test -s conftest$ac_exeext'
30732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30733   (eval $ac_try) 2>&5
30734   ac_status=$?
30735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736   (exit $ac_status); }; }; then
30737   eval "$as_ac_var=yes"
30738 else
30739   echo "$as_me: failed program was:" >&5
30740 sed 's/^/| /' conftest.$ac_ext >&5
30741
30742 eval "$as_ac_var=no"
30743 fi
30744 rm -f conftest.err conftest.$ac_objext \
30745       conftest$ac_exeext conftest.$ac_ext
30746 fi
30747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30749 if test `eval echo '${'$as_ac_var'}'` = yes; then
30750   cat >>confdefs.h <<_ACEOF
30751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30752 _ACEOF
30753
30754 fi
30755 done
30756
30757
30758 if test "$ac_cv_func_vsnprintf" = "yes"; then
30759         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30760 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30761 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30762   echo $ECHO_N "(cached) $ECHO_C" >&6
30763 else
30764
30765             cat >conftest.$ac_ext <<_ACEOF
30766 /* confdefs.h.  */
30767 _ACEOF
30768 cat confdefs.h >>conftest.$ac_ext
30769 cat >>conftest.$ac_ext <<_ACEOF
30770 /* end confdefs.h.  */
30771
30772                     #include <stdio.h>
30773                     #include <stdarg.h>
30774
30775 int
30776 main ()
30777 {
30778
30779                     char *buf;
30780                     va_list ap;
30781                     vsnprintf(buf, 10u, "%s", ap);
30782
30783   ;
30784   return 0;
30785 }
30786 _ACEOF
30787 rm -f conftest.$ac_objext
30788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30789   (eval $ac_compile) 2>conftest.er1
30790   ac_status=$?
30791   grep -v '^ *+' conftest.er1 >conftest.err
30792   rm -f conftest.er1
30793   cat conftest.err >&5
30794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795   (exit $ac_status); } &&
30796          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30798   (eval $ac_try) 2>&5
30799   ac_status=$?
30800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801   (exit $ac_status); }; } &&
30802          { ac_try='test -s conftest.$ac_objext'
30803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804   (eval $ac_try) 2>&5
30805   ac_status=$?
30806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807   (exit $ac_status); }; }; then
30808   wx_cv_func_vsnprintf_decl=yes
30809 else
30810   echo "$as_me: failed program was:" >&5
30811 sed 's/^/| /' conftest.$ac_ext >&5
30812
30813
30814                                                                                                                         cat >conftest.$ac_ext <<_ACEOF
30815 /* confdefs.h.  */
30816 _ACEOF
30817 cat confdefs.h >>conftest.$ac_ext
30818 cat >>conftest.$ac_ext <<_ACEOF
30819 /* end confdefs.h.  */
30820
30821                             #include <stdio.h>
30822                             #include <stdarg.h>
30823                             using namespace std;
30824
30825 int
30826 main ()
30827 {
30828
30829                             char *buf;
30830                             va_list ap;
30831                             vsnprintf(buf, 10u, "%s", ap);
30832
30833   ;
30834   return 0;
30835 }
30836 _ACEOF
30837 rm -f conftest.$ac_objext
30838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30839   (eval $ac_compile) 2>conftest.er1
30840   ac_status=$?
30841   grep -v '^ *+' conftest.er1 >conftest.err
30842   rm -f conftest.er1
30843   cat conftest.err >&5
30844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845   (exit $ac_status); } &&
30846          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
30852          { ac_try='test -s conftest.$ac_objext'
30853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30854   (eval $ac_try) 2>&5
30855   ac_status=$?
30856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857   (exit $ac_status); }; }; then
30858   wx_cv_func_vsnprintf_decl=yes
30859 else
30860   echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30862
30863 wx_cv_func_vsnprintf_decl=no
30864
30865 fi
30866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30867
30868
30869 fi
30870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30871
30872
30873 fi
30874 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30875 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30876
30877     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30878         cat >>confdefs.h <<\_ACEOF
30879 #define HAVE_VSNPRINTF_DECL 1
30880 _ACEOF
30881
30882     fi
30883 fi
30884
30885 if test "$wxUSE_UNICODE" = yes; then
30886
30887
30888
30889
30890
30891
30892 for ac_func in wputc wputchar putws fputws wprintf vswprintf
30893 do
30894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30895 echo "$as_me:$LINENO: checking for $ac_func" >&5
30896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30897 if eval "test \"\${$as_ac_var+set}\" = set"; then
30898   echo $ECHO_N "(cached) $ECHO_C" >&6
30899 else
30900   cat >conftest.$ac_ext <<_ACEOF
30901 /* confdefs.h.  */
30902 _ACEOF
30903 cat confdefs.h >>conftest.$ac_ext
30904 cat >>conftest.$ac_ext <<_ACEOF
30905 /* end confdefs.h.  */
30906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30908 #define $ac_func innocuous_$ac_func
30909
30910 /* System header to define __stub macros and hopefully few prototypes,
30911     which can conflict with char $ac_func (); below.
30912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30913     <limits.h> exists even on freestanding compilers.  */
30914
30915 #ifdef __STDC__
30916 # include <limits.h>
30917 #else
30918 # include <assert.h>
30919 #endif
30920
30921 #undef $ac_func
30922
30923 /* Override any gcc2 internal prototype to avoid an error.  */
30924 #ifdef __cplusplus
30925 extern "C"
30926 {
30927 #endif
30928 /* We use char because int might match the return type of a gcc2
30929    builtin and then its argument prototype would still apply.  */
30930 char $ac_func ();
30931 /* The GNU C library defines this for functions which it implements
30932     to always fail with ENOSYS.  Some functions are actually named
30933     something starting with __ and the normal name is an alias.  */
30934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30935 choke me
30936 #else
30937 char (*f) () = $ac_func;
30938 #endif
30939 #ifdef __cplusplus
30940 }
30941 #endif
30942
30943 int
30944 main ()
30945 {
30946 return f != $ac_func;
30947   ;
30948   return 0;
30949 }
30950 _ACEOF
30951 rm -f conftest.$ac_objext conftest$ac_exeext
30952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30953   (eval $ac_link) 2>conftest.er1
30954   ac_status=$?
30955   grep -v '^ *+' conftest.er1 >conftest.err
30956   rm -f conftest.er1
30957   cat conftest.err >&5
30958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959   (exit $ac_status); } &&
30960          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30962   (eval $ac_try) 2>&5
30963   ac_status=$?
30964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965   (exit $ac_status); }; } &&
30966          { ac_try='test -s conftest$ac_exeext'
30967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30968   (eval $ac_try) 2>&5
30969   ac_status=$?
30970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971   (exit $ac_status); }; }; then
30972   eval "$as_ac_var=yes"
30973 else
30974   echo "$as_me: failed program was:" >&5
30975 sed 's/^/| /' conftest.$ac_ext >&5
30976
30977 eval "$as_ac_var=no"
30978 fi
30979 rm -f conftest.err conftest.$ac_objext \
30980       conftest$ac_exeext conftest.$ac_ext
30981 fi
30982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30984 if test `eval echo '${'$as_ac_var'}'` = yes; then
30985   cat >>confdefs.h <<_ACEOF
30986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30987 _ACEOF
30988
30989 fi
30990 done
30991
30992
30993                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30994 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30995     cat >conftest.$ac_ext <<_ACEOF
30996 /* confdefs.h.  */
30997 _ACEOF
30998 cat confdefs.h >>conftest.$ac_ext
30999 cat >>conftest.$ac_ext <<_ACEOF
31000 /* end confdefs.h.  */
31001 #include <wchar.h>
31002 int
31003 main ()
31004 {
31005 &_vsnwprintf;
31006   ;
31007   return 0;
31008 }
31009 _ACEOF
31010 rm -f conftest.$ac_objext
31011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31012   (eval $ac_compile) 2>conftest.er1
31013   ac_status=$?
31014   grep -v '^ *+' conftest.er1 >conftest.err
31015   rm -f conftest.er1
31016   cat conftest.err >&5
31017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018   (exit $ac_status); } &&
31019          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31021   (eval $ac_try) 2>&5
31022   ac_status=$?
31023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024   (exit $ac_status); }; } &&
31025          { ac_try='test -s conftest.$ac_objext'
31026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31027   (eval $ac_try) 2>&5
31028   ac_status=$?
31029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030   (exit $ac_status); }; }; then
31031   echo "$as_me:$LINENO: result: yes" >&5
31032 echo "${ECHO_T}yes" >&6
31033                     cat >>confdefs.h <<\_ACEOF
31034 #define HAVE__VSNWPRINTF 1
31035 _ACEOF
31036
31037 else
31038   echo "$as_me: failed program was:" >&5
31039 sed 's/^/| /' conftest.$ac_ext >&5
31040
31041 echo "$as_me:$LINENO: result: no" >&5
31042 echo "${ECHO_T}no" >&6
31043 fi
31044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
31045 fi
31046
31047 ac_ext=c
31048 ac_cpp='$CPP $CPPFLAGS'
31049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31052
31053
31054
31055
31056 if test "$TOOLKIT" != "MSW"; then
31057
31058
31059
31060
31061 ac_ext=cc
31062 ac_cpp='$CXXCPP $CPPFLAGS'
31063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31066
31067
31068
31069
31070 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31071 if test "${with_libiconv_prefix+set}" = set; then
31072   withval="$with_libiconv_prefix"
31073
31074     for dir in `echo "$withval" | tr : ' '`; do
31075       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31076       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31077     done
31078
31079 fi;
31080
31081   echo "$as_me:$LINENO: checking for iconv" >&5
31082 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31083 if test "${am_cv_func_iconv+set}" = set; then
31084   echo $ECHO_N "(cached) $ECHO_C" >&6
31085 else
31086
31087     am_cv_func_iconv="no, consider installing GNU libiconv"
31088     am_cv_lib_iconv=no
31089     cat >conftest.$ac_ext <<_ACEOF
31090 /* confdefs.h.  */
31091 _ACEOF
31092 cat confdefs.h >>conftest.$ac_ext
31093 cat >>conftest.$ac_ext <<_ACEOF
31094 /* end confdefs.h.  */
31095 #include <stdlib.h>
31096 #include <iconv.h>
31097 int
31098 main ()
31099 {
31100 iconv_t cd = iconv_open("","");
31101        iconv(cd,NULL,NULL,NULL,NULL);
31102        iconv_close(cd);
31103   ;
31104   return 0;
31105 }
31106 _ACEOF
31107 rm -f conftest.$ac_objext conftest$ac_exeext
31108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31109   (eval $ac_link) 2>conftest.er1
31110   ac_status=$?
31111   grep -v '^ *+' conftest.er1 >conftest.err
31112   rm -f conftest.er1
31113   cat conftest.err >&5
31114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115   (exit $ac_status); } &&
31116          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31118   (eval $ac_try) 2>&5
31119   ac_status=$?
31120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121   (exit $ac_status); }; } &&
31122          { ac_try='test -s conftest$ac_exeext'
31123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31124   (eval $ac_try) 2>&5
31125   ac_status=$?
31126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127   (exit $ac_status); }; }; then
31128   am_cv_func_iconv=yes
31129 else
31130   echo "$as_me: failed program was:" >&5
31131 sed 's/^/| /' conftest.$ac_ext >&5
31132
31133 fi
31134 rm -f conftest.err conftest.$ac_objext \
31135       conftest$ac_exeext conftest.$ac_ext
31136     if test "$am_cv_func_iconv" != yes; then
31137       am_save_LIBS="$LIBS"
31138       LIBS="$LIBS -liconv"
31139       cat >conftest.$ac_ext <<_ACEOF
31140 /* confdefs.h.  */
31141 _ACEOF
31142 cat confdefs.h >>conftest.$ac_ext
31143 cat >>conftest.$ac_ext <<_ACEOF
31144 /* end confdefs.h.  */
31145 #include <stdlib.h>
31146 #include <iconv.h>
31147 int
31148 main ()
31149 {
31150 iconv_t cd = iconv_open("","");
31151          iconv(cd,NULL,NULL,NULL,NULL);
31152          iconv_close(cd);
31153   ;
31154   return 0;
31155 }
31156 _ACEOF
31157 rm -f conftest.$ac_objext conftest$ac_exeext
31158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31159   (eval $ac_link) 2>conftest.er1
31160   ac_status=$?
31161   grep -v '^ *+' conftest.er1 >conftest.err
31162   rm -f conftest.er1
31163   cat conftest.err >&5
31164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165   (exit $ac_status); } &&
31166          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
31172          { ac_try='test -s conftest$ac_exeext'
31173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174   (eval $ac_try) 2>&5
31175   ac_status=$?
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); }; }; then
31178   am_cv_lib_iconv=yes
31179         am_cv_func_iconv=yes
31180 else
31181   echo "$as_me: failed program was:" >&5
31182 sed 's/^/| /' conftest.$ac_ext >&5
31183
31184 fi
31185 rm -f conftest.err conftest.$ac_objext \
31186       conftest$ac_exeext conftest.$ac_ext
31187       LIBS="$am_save_LIBS"
31188     fi
31189
31190 fi
31191 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31192 echo "${ECHO_T}$am_cv_func_iconv" >&6
31193   if test "$am_cv_func_iconv" = yes; then
31194
31195 cat >>confdefs.h <<\_ACEOF
31196 #define HAVE_ICONV 1
31197 _ACEOF
31198
31199     echo "$as_me:$LINENO: checking if iconv needs const" >&5
31200 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31201 if test "${wx_cv_func_iconv_const+set}" = set; then
31202   echo $ECHO_N "(cached) $ECHO_C" >&6
31203 else
31204   cat >conftest.$ac_ext <<_ACEOF
31205 /* confdefs.h.  */
31206 _ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h.  */
31210
31211 #include <stdlib.h>
31212 #include <iconv.h>
31213 extern
31214 #ifdef __cplusplus
31215 "C"
31216 #endif
31217 #if defined(__STDC__) || defined(__cplusplus)
31218 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31219 #else
31220 size_t iconv();
31221 #endif
31222
31223 int
31224 main ()
31225 {
31226
31227   ;
31228   return 0;
31229 }
31230 _ACEOF
31231 rm -f conftest.$ac_objext
31232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31233   (eval $ac_compile) 2>conftest.er1
31234   ac_status=$?
31235   grep -v '^ *+' conftest.er1 >conftest.err
31236   rm -f conftest.er1
31237   cat conftest.err >&5
31238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239   (exit $ac_status); } &&
31240          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31242   (eval $ac_try) 2>&5
31243   ac_status=$?
31244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245   (exit $ac_status); }; } &&
31246          { ac_try='test -s conftest.$ac_objext'
31247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31248   (eval $ac_try) 2>&5
31249   ac_status=$?
31250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31251   (exit $ac_status); }; }; then
31252   wx_cv_func_iconv_const="no"
31253 else
31254   echo "$as_me: failed program was:" >&5
31255 sed 's/^/| /' conftest.$ac_ext >&5
31256
31257 wx_cv_func_iconv_const="yes"
31258
31259 fi
31260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31261
31262 fi
31263 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31264 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31265
31266     iconv_const=
31267     if test "x$wx_cv_func_iconv_const" = "xyes"; then
31268         iconv_const="const"
31269     fi
31270
31271
31272 cat >>confdefs.h <<_ACEOF
31273 #define ICONV_CONST $iconv_const
31274 _ACEOF
31275
31276   fi
31277   LIBICONV=
31278   if test "$am_cv_lib_iconv" = yes; then
31279     LIBICONV="-liconv"
31280   fi
31281
31282
31283 LIBS="$LIBICONV $LIBS"
31284 ac_ext=c
31285 ac_cpp='$CPP $CPPFLAGS'
31286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31289
31290
31291 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31292
31293 for ac_func in sigaction
31294 do
31295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31296 echo "$as_me:$LINENO: checking for $ac_func" >&5
31297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31298 if eval "test \"\${$as_ac_var+set}\" = set"; then
31299   echo $ECHO_N "(cached) $ECHO_C" >&6
31300 else
31301   cat >conftest.$ac_ext <<_ACEOF
31302 /* confdefs.h.  */
31303 _ACEOF
31304 cat confdefs.h >>conftest.$ac_ext
31305 cat >>conftest.$ac_ext <<_ACEOF
31306 /* end confdefs.h.  */
31307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31309 #define $ac_func innocuous_$ac_func
31310
31311 /* System header to define __stub macros and hopefully few prototypes,
31312     which can conflict with char $ac_func (); below.
31313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31314     <limits.h> exists even on freestanding compilers.  */
31315
31316 #ifdef __STDC__
31317 # include <limits.h>
31318 #else
31319 # include <assert.h>
31320 #endif
31321
31322 #undef $ac_func
31323
31324 /* Override any gcc2 internal prototype to avoid an error.  */
31325 #ifdef __cplusplus
31326 extern "C"
31327 {
31328 #endif
31329 /* We use char because int might match the return type of a gcc2
31330    builtin and then its argument prototype would still apply.  */
31331 char $ac_func ();
31332 /* The GNU C library defines this for functions which it implements
31333     to always fail with ENOSYS.  Some functions are actually named
31334     something starting with __ and the normal name is an alias.  */
31335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31336 choke me
31337 #else
31338 char (*f) () = $ac_func;
31339 #endif
31340 #ifdef __cplusplus
31341 }
31342 #endif
31343
31344 int
31345 main ()
31346 {
31347 return f != $ac_func;
31348   ;
31349   return 0;
31350 }
31351 _ACEOF
31352 rm -f conftest.$ac_objext conftest$ac_exeext
31353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31354   (eval $ac_link) 2>conftest.er1
31355   ac_status=$?
31356   grep -v '^ *+' conftest.er1 >conftest.err
31357   rm -f conftest.er1
31358   cat conftest.err >&5
31359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360   (exit $ac_status); } &&
31361          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363   (eval $ac_try) 2>&5
31364   ac_status=$?
31365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366   (exit $ac_status); }; } &&
31367          { ac_try='test -s conftest$ac_exeext'
31368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369   (eval $ac_try) 2>&5
31370   ac_status=$?
31371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372   (exit $ac_status); }; }; then
31373   eval "$as_ac_var=yes"
31374 else
31375   echo "$as_me: failed program was:" >&5
31376 sed 's/^/| /' conftest.$ac_ext >&5
31377
31378 eval "$as_ac_var=no"
31379 fi
31380 rm -f conftest.err conftest.$ac_objext \
31381       conftest$ac_exeext conftest.$ac_ext
31382 fi
31383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31385 if test `eval echo '${'$as_ac_var'}'` = yes; then
31386   cat >>confdefs.h <<_ACEOF
31387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31388 _ACEOF
31389
31390 fi
31391 done
31392
31393
31394     if test "$ac_cv_func_sigaction" = "no"; then
31395         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31396 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31397         wxUSE_ON_FATAL_EXCEPTION=no
31398     fi
31399
31400     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31401
31402
31403       ac_ext=cc
31404 ac_cpp='$CXXCPP $CPPFLAGS'
31405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31408
31409
31410       echo "$as_me:$LINENO: checking for sa_handler type" >&5
31411 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31412 if test "${wx_cv_type_sa_handler+set}" = set; then
31413   echo $ECHO_N "(cached) $ECHO_C" >&6
31414 else
31415
31416         cat >conftest.$ac_ext <<_ACEOF
31417 /* confdefs.h.  */
31418 _ACEOF
31419 cat confdefs.h >>conftest.$ac_ext
31420 cat >>conftest.$ac_ext <<_ACEOF
31421 /* end confdefs.h.  */
31422 #include <signal.h>
31423 int
31424 main ()
31425 {
31426
31427                         extern void testSigHandler(int);
31428
31429                         struct sigaction sa;
31430                         sa.sa_handler = testSigHandler;
31431
31432   ;
31433   return 0;
31434 }
31435 _ACEOF
31436 rm -f conftest.$ac_objext
31437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31438   (eval $ac_compile) 2>conftest.er1
31439   ac_status=$?
31440   grep -v '^ *+' conftest.er1 >conftest.err
31441   rm -f conftest.er1
31442   cat conftest.err >&5
31443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444   (exit $ac_status); } &&
31445          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31447   (eval $ac_try) 2>&5
31448   ac_status=$?
31449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450   (exit $ac_status); }; } &&
31451          { ac_try='test -s conftest.$ac_objext'
31452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31453   (eval $ac_try) 2>&5
31454   ac_status=$?
31455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456   (exit $ac_status); }; }; then
31457
31458                         wx_cv_type_sa_handler=int
31459
31460 else
31461   echo "$as_me: failed program was:" >&5
31462 sed 's/^/| /' conftest.$ac_ext >&5
31463
31464
31465                         wx_cv_type_sa_handler=void
31466
31467 fi
31468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31469
31470 fi
31471 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31472 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31473
31474       ac_ext=c
31475 ac_cpp='$CPP $CPPFLAGS'
31476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31479
31480
31481       cat >>confdefs.h <<_ACEOF
31482 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31483 _ACEOF
31484
31485     fi
31486 fi
31487
31488 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31489
31490
31491     ac_ext=cc
31492 ac_cpp='$CXXCPP $CPPFLAGS'
31493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31496
31497
31498     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31499 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31500 if test "${wx_cv_func_backtrace+set}" = set; then
31501   echo $ECHO_N "(cached) $ECHO_C" >&6
31502 else
31503
31504             cat >conftest.$ac_ext <<_ACEOF
31505 /* confdefs.h.  */
31506 _ACEOF
31507 cat confdefs.h >>conftest.$ac_ext
31508 cat >>conftest.$ac_ext <<_ACEOF
31509 /* end confdefs.h.  */
31510 #include <execinfo.h>
31511 int
31512 main ()
31513 {
31514
31515                     void *trace[1];
31516                     char **messages;
31517
31518                     backtrace(trace, 1);
31519                     messages = backtrace_symbols(trace, 1);
31520
31521   ;
31522   return 0;
31523 }
31524 _ACEOF
31525 rm -f conftest.$ac_objext
31526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31527   (eval $ac_compile) 2>conftest.er1
31528   ac_status=$?
31529   grep -v '^ *+' conftest.er1 >conftest.err
31530   rm -f conftest.er1
31531   cat conftest.err >&5
31532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533   (exit $ac_status); } &&
31534          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31536   (eval $ac_try) 2>&5
31537   ac_status=$?
31538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539   (exit $ac_status); }; } &&
31540          { ac_try='test -s conftest.$ac_objext'
31541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542   (eval $ac_try) 2>&5
31543   ac_status=$?
31544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545   (exit $ac_status); }; }; then
31546   wx_cv_func_backtrace=yes
31547 else
31548   echo "$as_me: failed program was:" >&5
31549 sed 's/^/| /' conftest.$ac_ext >&5
31550
31551 wx_cv_func_backtrace=no
31552
31553 fi
31554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31555
31556
31557 fi
31558 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31559 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31560
31561
31562     if test "$wx_cv_func_backtrace" = "no"; then
31563         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31564 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31565         wxUSE_STACKWALKER=no
31566     else
31567         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31568 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31569 if test "${wx_cv_func_cxa_demangle+set}" = set; then
31570   echo $ECHO_N "(cached) $ECHO_C" >&6
31571 else
31572
31573                 cat >conftest.$ac_ext <<_ACEOF
31574 /* confdefs.h.  */
31575 _ACEOF
31576 cat confdefs.h >>conftest.$ac_ext
31577 cat >>conftest.$ac_ext <<_ACEOF
31578 /* end confdefs.h.  */
31579 #include <cxxabi.h>
31580 int
31581 main ()
31582 {
31583
31584                         int rc;
31585                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31586
31587   ;
31588   return 0;
31589 }
31590 _ACEOF
31591 rm -f conftest.$ac_objext conftest$ac_exeext
31592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31593   (eval $ac_link) 2>conftest.er1
31594   ac_status=$?
31595   grep -v '^ *+' conftest.er1 >conftest.err
31596   rm -f conftest.er1
31597   cat conftest.err >&5
31598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599   (exit $ac_status); } &&
31600          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31602   (eval $ac_try) 2>&5
31603   ac_status=$?
31604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605   (exit $ac_status); }; } &&
31606          { ac_try='test -s conftest$ac_exeext'
31607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31608   (eval $ac_try) 2>&5
31609   ac_status=$?
31610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611   (exit $ac_status); }; }; then
31612   wx_cv_func_cxa_demangle=yes
31613 else
31614   echo "$as_me: failed program was:" >&5
31615 sed 's/^/| /' conftest.$ac_ext >&5
31616
31617 wx_cv_func_cxa_demangle=no
31618
31619 fi
31620 rm -f conftest.err conftest.$ac_objext \
31621       conftest$ac_exeext conftest.$ac_ext
31622
31623
31624 fi
31625 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31626 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31627
31628         if test "$wx_cv_func_cxa_demangle" = "yes"; then
31629             cat >>confdefs.h <<\_ACEOF
31630 #define HAVE_CXA_DEMANGLE 1
31631 _ACEOF
31632
31633         fi
31634     fi
31635
31636     ac_ext=c
31637 ac_cpp='$CPP $CPPFLAGS'
31638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31641
31642 fi
31643
31644 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
31645     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
31646 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
31647     wxUSE_STACKWALKER=no
31648 fi
31649
31650
31651
31652
31653 for ac_func in mkstemp mktemp
31654 do
31655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31656 echo "$as_me:$LINENO: checking for $ac_func" >&5
31657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31658 if eval "test \"\${$as_ac_var+set}\" = set"; then
31659   echo $ECHO_N "(cached) $ECHO_C" >&6
31660 else
31661   cat >conftest.$ac_ext <<_ACEOF
31662 /* confdefs.h.  */
31663 _ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h.  */
31667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31669 #define $ac_func innocuous_$ac_func
31670
31671 /* System header to define __stub macros and hopefully few prototypes,
31672     which can conflict with char $ac_func (); below.
31673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31674     <limits.h> exists even on freestanding compilers.  */
31675
31676 #ifdef __STDC__
31677 # include <limits.h>
31678 #else
31679 # include <assert.h>
31680 #endif
31681
31682 #undef $ac_func
31683
31684 /* Override any gcc2 internal prototype to avoid an error.  */
31685 #ifdef __cplusplus
31686 extern "C"
31687 {
31688 #endif
31689 /* We use char because int might match the return type of a gcc2
31690    builtin and then its argument prototype would still apply.  */
31691 char $ac_func ();
31692 /* The GNU C library defines this for functions which it implements
31693     to always fail with ENOSYS.  Some functions are actually named
31694     something starting with __ and the normal name is an alias.  */
31695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31696 choke me
31697 #else
31698 char (*f) () = $ac_func;
31699 #endif
31700 #ifdef __cplusplus
31701 }
31702 #endif
31703
31704 int
31705 main ()
31706 {
31707 return f != $ac_func;
31708   ;
31709   return 0;
31710 }
31711 _ACEOF
31712 rm -f conftest.$ac_objext conftest$ac_exeext
31713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31714   (eval $ac_link) 2>conftest.er1
31715   ac_status=$?
31716   grep -v '^ *+' conftest.er1 >conftest.err
31717   rm -f conftest.er1
31718   cat conftest.err >&5
31719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720   (exit $ac_status); } &&
31721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723   (eval $ac_try) 2>&5
31724   ac_status=$?
31725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726   (exit $ac_status); }; } &&
31727          { ac_try='test -s conftest$ac_exeext'
31728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31729   (eval $ac_try) 2>&5
31730   ac_status=$?
31731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732   (exit $ac_status); }; }; then
31733   eval "$as_ac_var=yes"
31734 else
31735   echo "$as_me: failed program was:" >&5
31736 sed 's/^/| /' conftest.$ac_ext >&5
31737
31738 eval "$as_ac_var=no"
31739 fi
31740 rm -f conftest.err conftest.$ac_objext \
31741       conftest$ac_exeext conftest.$ac_ext
31742 fi
31743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31745 if test `eval echo '${'$as_ac_var'}'` = yes; then
31746   cat >>confdefs.h <<_ACEOF
31747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31748 _ACEOF
31749  break
31750 fi
31751 done
31752
31753
31754 echo "$as_me:$LINENO: checking for statfs" >&5
31755 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31756 if test "${wx_cv_func_statfs+set}" = set; then
31757   echo $ECHO_N "(cached) $ECHO_C" >&6
31758 else
31759   cat >conftest.$ac_ext <<_ACEOF
31760 /* confdefs.h.  */
31761 _ACEOF
31762 cat confdefs.h >>conftest.$ac_ext
31763 cat >>conftest.$ac_ext <<_ACEOF
31764 /* end confdefs.h.  */
31765
31766              #if defined(__BSD__)
31767                #include <sys/param.h>
31768                #include <sys/mount.h>
31769              #else
31770                #include <sys/vfs.h>
31771              #endif
31772
31773 int
31774 main ()
31775 {
31776
31777              long l;
31778              struct statfs fs;
31779              statfs("/", &fs);
31780              l = fs.f_bsize;
31781              l += fs.f_blocks;
31782              l += fs.f_bavail;
31783
31784   ;
31785   return 0;
31786 }
31787 _ACEOF
31788 rm -f conftest.$ac_objext
31789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31790   (eval $ac_compile) 2>conftest.er1
31791   ac_status=$?
31792   grep -v '^ *+' conftest.er1 >conftest.err
31793   rm -f conftest.er1
31794   cat conftest.err >&5
31795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796   (exit $ac_status); } &&
31797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31799   (eval $ac_try) 2>&5
31800   ac_status=$?
31801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802   (exit $ac_status); }; } &&
31803          { ac_try='test -s conftest.$ac_objext'
31804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31805   (eval $ac_try) 2>&5
31806   ac_status=$?
31807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808   (exit $ac_status); }; }; then
31809
31810              wx_cv_func_statfs=yes
31811
31812 else
31813   echo "$as_me: failed program was:" >&5
31814 sed 's/^/| /' conftest.$ac_ext >&5
31815
31816
31817              wx_cv_func_statfs=no
31818
31819
31820 fi
31821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31822
31823 fi
31824 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31825 echo "${ECHO_T}$wx_cv_func_statfs" >&6
31826
31827 if test "$wx_cv_func_statfs" = "yes"; then
31828     wx_cv_type_statvfs_t="struct statfs"
31829     cat >>confdefs.h <<\_ACEOF
31830 #define HAVE_STATFS 1
31831 _ACEOF
31832
31833 else
31834     echo "$as_me:$LINENO: checking for statvfs" >&5
31835 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31836 if test "${wx_cv_func_statvfs+set}" = set; then
31837   echo $ECHO_N "(cached) $ECHO_C" >&6
31838 else
31839   cat >conftest.$ac_ext <<_ACEOF
31840 /* confdefs.h.  */
31841 _ACEOF
31842 cat confdefs.h >>conftest.$ac_ext
31843 cat >>conftest.$ac_ext <<_ACEOF
31844 /* end confdefs.h.  */
31845
31846                 #include <stddef.h>
31847                 #include <sys/statvfs.h>
31848
31849 int
31850 main ()
31851 {
31852
31853                 statvfs("/", NULL);
31854
31855   ;
31856   return 0;
31857 }
31858 _ACEOF
31859 rm -f conftest.$ac_objext
31860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31861   (eval $ac_compile) 2>conftest.er1
31862   ac_status=$?
31863   grep -v '^ *+' conftest.er1 >conftest.err
31864   rm -f conftest.er1
31865   cat conftest.err >&5
31866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867   (exit $ac_status); } &&
31868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870   (eval $ac_try) 2>&5
31871   ac_status=$?
31872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873   (exit $ac_status); }; } &&
31874          { ac_try='test -s conftest.$ac_objext'
31875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31876   (eval $ac_try) 2>&5
31877   ac_status=$?
31878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879   (exit $ac_status); }; }; then
31880   wx_cv_func_statvfs=yes
31881 else
31882   echo "$as_me: failed program was:" >&5
31883 sed 's/^/| /' conftest.$ac_ext >&5
31884
31885 wx_cv_func_statvfs=no
31886
31887 fi
31888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31889
31890 fi
31891 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31892 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31893
31894     if test "$wx_cv_func_statvfs" = "yes"; then
31895
31896
31897         ac_ext=cc
31898 ac_cpp='$CXXCPP $CPPFLAGS'
31899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31902
31903
31904         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31905 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31906 if test "${wx_cv_type_statvfs_t+set}" = set; then
31907   echo $ECHO_N "(cached) $ECHO_C" >&6
31908 else
31909   cat >conftest.$ac_ext <<_ACEOF
31910 /* confdefs.h.  */
31911 _ACEOF
31912 cat confdefs.h >>conftest.$ac_ext
31913 cat >>conftest.$ac_ext <<_ACEOF
31914 /* end confdefs.h.  */
31915
31916                     #include <sys/statvfs.h>
31917
31918 int
31919 main ()
31920 {
31921
31922                     long l;
31923                     statvfs_t fs;
31924                     statvfs("/", &fs);
31925                     l = fs.f_bsize;
31926                     l += fs.f_blocks;
31927                     l += fs.f_bavail;
31928
31929   ;
31930   return 0;
31931 }
31932 _ACEOF
31933 rm -f conftest.$ac_objext
31934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31935   (eval $ac_compile) 2>conftest.er1
31936   ac_status=$?
31937   grep -v '^ *+' conftest.er1 >conftest.err
31938   rm -f conftest.er1
31939   cat conftest.err >&5
31940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941   (exit $ac_status); } &&
31942          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944   (eval $ac_try) 2>&5
31945   ac_status=$?
31946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947   (exit $ac_status); }; } &&
31948          { ac_try='test -s conftest.$ac_objext'
31949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31950   (eval $ac_try) 2>&5
31951   ac_status=$?
31952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953   (exit $ac_status); }; }; then
31954   wx_cv_type_statvfs_t=statvfs_t
31955 else
31956   echo "$as_me: failed program was:" >&5
31957 sed 's/^/| /' conftest.$ac_ext >&5
31958
31959
31960                     cat >conftest.$ac_ext <<_ACEOF
31961 /* confdefs.h.  */
31962 _ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h.  */
31966
31967                             #include <sys/statvfs.h>
31968
31969 int
31970 main ()
31971 {
31972
31973                             long l;
31974                             struct statvfs fs;
31975                             statvfs("/", &fs);
31976                             l = fs.f_bsize;
31977                             l += fs.f_blocks;
31978                             l += fs.f_bavail;
31979
31980   ;
31981   return 0;
31982 }
31983 _ACEOF
31984 rm -f conftest.$ac_objext
31985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31986   (eval $ac_compile) 2>conftest.er1
31987   ac_status=$?
31988   grep -v '^ *+' conftest.er1 >conftest.err
31989   rm -f conftest.er1
31990   cat conftest.err >&5
31991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992   (exit $ac_status); } &&
31993          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31995   (eval $ac_try) 2>&5
31996   ac_status=$?
31997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998   (exit $ac_status); }; } &&
31999          { ac_try='test -s conftest.$ac_objext'
32000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32001   (eval $ac_try) 2>&5
32002   ac_status=$?
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); }; }; then
32005   wx_cv_type_statvfs_t="struct statvfs"
32006 else
32007   echo "$as_me: failed program was:" >&5
32008 sed 's/^/| /' conftest.$ac_ext >&5
32009
32010 wx_cv_type_statvfs_t="unknown"
32011
32012 fi
32013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32014
32015
32016 fi
32017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32018
32019 fi
32020 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32021 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32022
32023         ac_ext=c
32024 ac_cpp='$CPP $CPPFLAGS'
32025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32028
32029
32030         if test "$wx_cv_type_statvfs_t" != "unknown"; then
32031             cat >>confdefs.h <<\_ACEOF
32032 #define HAVE_STATVFS 1
32033 _ACEOF
32034
32035         fi
32036     else
32037                 wx_cv_type_statvfs_t="unknown"
32038     fi
32039 fi
32040
32041 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32042     cat >>confdefs.h <<_ACEOF
32043 #define WX_STATFS_T $wx_cv_type_statvfs_t
32044 _ACEOF
32045
32046 else
32047     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32048 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32049 fi
32050
32051 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32052
32053
32054 for ac_func in fcntl flock
32055 do
32056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32057 echo "$as_me:$LINENO: checking for $ac_func" >&5
32058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32059 if eval "test \"\${$as_ac_var+set}\" = set"; then
32060   echo $ECHO_N "(cached) $ECHO_C" >&6
32061 else
32062   cat >conftest.$ac_ext <<_ACEOF
32063 /* confdefs.h.  */
32064 _ACEOF
32065 cat confdefs.h >>conftest.$ac_ext
32066 cat >>conftest.$ac_ext <<_ACEOF
32067 /* end confdefs.h.  */
32068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32070 #define $ac_func innocuous_$ac_func
32071
32072 /* System header to define __stub macros and hopefully few prototypes,
32073     which can conflict with char $ac_func (); below.
32074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32075     <limits.h> exists even on freestanding compilers.  */
32076
32077 #ifdef __STDC__
32078 # include <limits.h>
32079 #else
32080 # include <assert.h>
32081 #endif
32082
32083 #undef $ac_func
32084
32085 /* Override any gcc2 internal prototype to avoid an error.  */
32086 #ifdef __cplusplus
32087 extern "C"
32088 {
32089 #endif
32090 /* We use char because int might match the return type of a gcc2
32091    builtin and then its argument prototype would still apply.  */
32092 char $ac_func ();
32093 /* The GNU C library defines this for functions which it implements
32094     to always fail with ENOSYS.  Some functions are actually named
32095     something starting with __ and the normal name is an alias.  */
32096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32097 choke me
32098 #else
32099 char (*f) () = $ac_func;
32100 #endif
32101 #ifdef __cplusplus
32102 }
32103 #endif
32104
32105 int
32106 main ()
32107 {
32108 return f != $ac_func;
32109   ;
32110   return 0;
32111 }
32112 _ACEOF
32113 rm -f conftest.$ac_objext conftest$ac_exeext
32114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32115   (eval $ac_link) 2>conftest.er1
32116   ac_status=$?
32117   grep -v '^ *+' conftest.er1 >conftest.err
32118   rm -f conftest.er1
32119   cat conftest.err >&5
32120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121   (exit $ac_status); } &&
32122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32124   (eval $ac_try) 2>&5
32125   ac_status=$?
32126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127   (exit $ac_status); }; } &&
32128          { ac_try='test -s conftest$ac_exeext'
32129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32130   (eval $ac_try) 2>&5
32131   ac_status=$?
32132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133   (exit $ac_status); }; }; then
32134   eval "$as_ac_var=yes"
32135 else
32136   echo "$as_me: failed program was:" >&5
32137 sed 's/^/| /' conftest.$ac_ext >&5
32138
32139 eval "$as_ac_var=no"
32140 fi
32141 rm -f conftest.err conftest.$ac_objext \
32142       conftest$ac_exeext conftest.$ac_ext
32143 fi
32144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32146 if test `eval echo '${'$as_ac_var'}'` = yes; then
32147   cat >>confdefs.h <<_ACEOF
32148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32149 _ACEOF
32150  break
32151 fi
32152 done
32153
32154
32155     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32156         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32157 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32158         wxUSE_SNGLINST_CHECKER=no
32159     fi
32160 fi
32161
32162
32163 for ac_func in timegm
32164 do
32165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32166 echo "$as_me:$LINENO: checking for $ac_func" >&5
32167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32168 if eval "test \"\${$as_ac_var+set}\" = set"; then
32169   echo $ECHO_N "(cached) $ECHO_C" >&6
32170 else
32171   cat >conftest.$ac_ext <<_ACEOF
32172 /* confdefs.h.  */
32173 _ACEOF
32174 cat confdefs.h >>conftest.$ac_ext
32175 cat >>conftest.$ac_ext <<_ACEOF
32176 /* end confdefs.h.  */
32177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32179 #define $ac_func innocuous_$ac_func
32180
32181 /* System header to define __stub macros and hopefully few prototypes,
32182     which can conflict with char $ac_func (); below.
32183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32184     <limits.h> exists even on freestanding compilers.  */
32185
32186 #ifdef __STDC__
32187 # include <limits.h>
32188 #else
32189 # include <assert.h>
32190 #endif
32191
32192 #undef $ac_func
32193
32194 /* Override any gcc2 internal prototype to avoid an error.  */
32195 #ifdef __cplusplus
32196 extern "C"
32197 {
32198 #endif
32199 /* We use char because int might match the return type of a gcc2
32200    builtin and then its argument prototype would still apply.  */
32201 char $ac_func ();
32202 /* The GNU C library defines this for functions which it implements
32203     to always fail with ENOSYS.  Some functions are actually named
32204     something starting with __ and the normal name is an alias.  */
32205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32206 choke me
32207 #else
32208 char (*f) () = $ac_func;
32209 #endif
32210 #ifdef __cplusplus
32211 }
32212 #endif
32213
32214 int
32215 main ()
32216 {
32217 return f != $ac_func;
32218   ;
32219   return 0;
32220 }
32221 _ACEOF
32222 rm -f conftest.$ac_objext conftest$ac_exeext
32223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32224   (eval $ac_link) 2>conftest.er1
32225   ac_status=$?
32226   grep -v '^ *+' conftest.er1 >conftest.err
32227   rm -f conftest.er1
32228   cat conftest.err >&5
32229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230   (exit $ac_status); } &&
32231          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32233   (eval $ac_try) 2>&5
32234   ac_status=$?
32235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236   (exit $ac_status); }; } &&
32237          { ac_try='test -s conftest$ac_exeext'
32238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32239   (eval $ac_try) 2>&5
32240   ac_status=$?
32241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242   (exit $ac_status); }; }; then
32243   eval "$as_ac_var=yes"
32244 else
32245   echo "$as_me: failed program was:" >&5
32246 sed 's/^/| /' conftest.$ac_ext >&5
32247
32248 eval "$as_ac_var=no"
32249 fi
32250 rm -f conftest.err conftest.$ac_objext \
32251       conftest$ac_exeext conftest.$ac_ext
32252 fi
32253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32255 if test `eval echo '${'$as_ac_var'}'` = yes; then
32256   cat >>confdefs.h <<_ACEOF
32257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32258 _ACEOF
32259
32260 fi
32261 done
32262
32263
32264
32265
32266 for ac_func in putenv setenv
32267 do
32268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32269 echo "$as_me:$LINENO: checking for $ac_func" >&5
32270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32271 if eval "test \"\${$as_ac_var+set}\" = set"; then
32272   echo $ECHO_N "(cached) $ECHO_C" >&6
32273 else
32274   cat >conftest.$ac_ext <<_ACEOF
32275 /* confdefs.h.  */
32276 _ACEOF
32277 cat confdefs.h >>conftest.$ac_ext
32278 cat >>conftest.$ac_ext <<_ACEOF
32279 /* end confdefs.h.  */
32280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32282 #define $ac_func innocuous_$ac_func
32283
32284 /* System header to define __stub macros and hopefully few prototypes,
32285     which can conflict with char $ac_func (); below.
32286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32287     <limits.h> exists even on freestanding compilers.  */
32288
32289 #ifdef __STDC__
32290 # include <limits.h>
32291 #else
32292 # include <assert.h>
32293 #endif
32294
32295 #undef $ac_func
32296
32297 /* Override any gcc2 internal prototype to avoid an error.  */
32298 #ifdef __cplusplus
32299 extern "C"
32300 {
32301 #endif
32302 /* We use char because int might match the return type of a gcc2
32303    builtin and then its argument prototype would still apply.  */
32304 char $ac_func ();
32305 /* The GNU C library defines this for functions which it implements
32306     to always fail with ENOSYS.  Some functions are actually named
32307     something starting with __ and the normal name is an alias.  */
32308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32309 choke me
32310 #else
32311 char (*f) () = $ac_func;
32312 #endif
32313 #ifdef __cplusplus
32314 }
32315 #endif
32316
32317 int
32318 main ()
32319 {
32320 return f != $ac_func;
32321   ;
32322   return 0;
32323 }
32324 _ACEOF
32325 rm -f conftest.$ac_objext conftest$ac_exeext
32326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32327   (eval $ac_link) 2>conftest.er1
32328   ac_status=$?
32329   grep -v '^ *+' conftest.er1 >conftest.err
32330   rm -f conftest.er1
32331   cat conftest.err >&5
32332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333   (exit $ac_status); } &&
32334          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32336   (eval $ac_try) 2>&5
32337   ac_status=$?
32338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339   (exit $ac_status); }; } &&
32340          { ac_try='test -s conftest$ac_exeext'
32341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32342   (eval $ac_try) 2>&5
32343   ac_status=$?
32344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345   (exit $ac_status); }; }; then
32346   eval "$as_ac_var=yes"
32347 else
32348   echo "$as_me: failed program was:" >&5
32349 sed 's/^/| /' conftest.$ac_ext >&5
32350
32351 eval "$as_ac_var=no"
32352 fi
32353 rm -f conftest.err conftest.$ac_objext \
32354       conftest$ac_exeext conftest.$ac_ext
32355 fi
32356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32358 if test `eval echo '${'$as_ac_var'}'` = yes; then
32359   cat >>confdefs.h <<_ACEOF
32360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32361 _ACEOF
32362  break
32363 fi
32364 done
32365
32366
32367 HAVE_SOME_SLEEP_FUNC=0
32368 if test "$USE_BEOS" = 1; then
32369             cat >>confdefs.h <<\_ACEOF
32370 #define HAVE_SLEEP 1
32371 _ACEOF
32372
32373     HAVE_SOME_SLEEP_FUNC=1
32374 fi
32375
32376 if test "$USE_DARWIN" = 1; then
32377             cat >>confdefs.h <<\_ACEOF
32378 #define HAVE_USLEEP 1
32379 _ACEOF
32380
32381     HAVE_SOME_SLEEP_FUNC=1
32382 fi
32383
32384 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32385         POSIX4_LINK=
32386
32387 for ac_func in nanosleep
32388 do
32389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32390 echo "$as_me:$LINENO: checking for $ac_func" >&5
32391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32392 if eval "test \"\${$as_ac_var+set}\" = set"; then
32393   echo $ECHO_N "(cached) $ECHO_C" >&6
32394 else
32395   cat >conftest.$ac_ext <<_ACEOF
32396 /* confdefs.h.  */
32397 _ACEOF
32398 cat confdefs.h >>conftest.$ac_ext
32399 cat >>conftest.$ac_ext <<_ACEOF
32400 /* end confdefs.h.  */
32401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32403 #define $ac_func innocuous_$ac_func
32404
32405 /* System header to define __stub macros and hopefully few prototypes,
32406     which can conflict with char $ac_func (); below.
32407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32408     <limits.h> exists even on freestanding compilers.  */
32409
32410 #ifdef __STDC__
32411 # include <limits.h>
32412 #else
32413 # include <assert.h>
32414 #endif
32415
32416 #undef $ac_func
32417
32418 /* Override any gcc2 internal prototype to avoid an error.  */
32419 #ifdef __cplusplus
32420 extern "C"
32421 {
32422 #endif
32423 /* We use char because int might match the return type of a gcc2
32424    builtin and then its argument prototype would still apply.  */
32425 char $ac_func ();
32426 /* The GNU C library defines this for functions which it implements
32427     to always fail with ENOSYS.  Some functions are actually named
32428     something starting with __ and the normal name is an alias.  */
32429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32430 choke me
32431 #else
32432 char (*f) () = $ac_func;
32433 #endif
32434 #ifdef __cplusplus
32435 }
32436 #endif
32437
32438 int
32439 main ()
32440 {
32441 return f != $ac_func;
32442   ;
32443   return 0;
32444 }
32445 _ACEOF
32446 rm -f conftest.$ac_objext conftest$ac_exeext
32447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32448   (eval $ac_link) 2>conftest.er1
32449   ac_status=$?
32450   grep -v '^ *+' conftest.er1 >conftest.err
32451   rm -f conftest.er1
32452   cat conftest.err >&5
32453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454   (exit $ac_status); } &&
32455          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32457   (eval $ac_try) 2>&5
32458   ac_status=$?
32459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460   (exit $ac_status); }; } &&
32461          { ac_try='test -s conftest$ac_exeext'
32462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32463   (eval $ac_try) 2>&5
32464   ac_status=$?
32465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466   (exit $ac_status); }; }; then
32467   eval "$as_ac_var=yes"
32468 else
32469   echo "$as_me: failed program was:" >&5
32470 sed 's/^/| /' conftest.$ac_ext >&5
32471
32472 eval "$as_ac_var=no"
32473 fi
32474 rm -f conftest.err conftest.$ac_objext \
32475       conftest$ac_exeext conftest.$ac_ext
32476 fi
32477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32479 if test `eval echo '${'$as_ac_var'}'` = yes; then
32480   cat >>confdefs.h <<_ACEOF
32481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32482 _ACEOF
32483  cat >>confdefs.h <<\_ACEOF
32484 #define HAVE_NANOSLEEP 1
32485 _ACEOF
32486
32487 else
32488
32489             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32490 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32491 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32492   echo $ECHO_N "(cached) $ECHO_C" >&6
32493 else
32494   ac_check_lib_save_LIBS=$LIBS
32495 LIBS="-lposix4  $LIBS"
32496 cat >conftest.$ac_ext <<_ACEOF
32497 /* confdefs.h.  */
32498 _ACEOF
32499 cat confdefs.h >>conftest.$ac_ext
32500 cat >>conftest.$ac_ext <<_ACEOF
32501 /* end confdefs.h.  */
32502
32503 /* Override any gcc2 internal prototype to avoid an error.  */
32504 #ifdef __cplusplus
32505 extern "C"
32506 #endif
32507 /* We use char because int might match the return type of a gcc2
32508    builtin and then its argument prototype would still apply.  */
32509 char nanosleep ();
32510 int
32511 main ()
32512 {
32513 nanosleep ();
32514   ;
32515   return 0;
32516 }
32517 _ACEOF
32518 rm -f conftest.$ac_objext conftest$ac_exeext
32519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32520   (eval $ac_link) 2>conftest.er1
32521   ac_status=$?
32522   grep -v '^ *+' conftest.er1 >conftest.err
32523   rm -f conftest.er1
32524   cat conftest.err >&5
32525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526   (exit $ac_status); } &&
32527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32529   (eval $ac_try) 2>&5
32530   ac_status=$?
32531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532   (exit $ac_status); }; } &&
32533          { ac_try='test -s conftest$ac_exeext'
32534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32535   (eval $ac_try) 2>&5
32536   ac_status=$?
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); }; }; then
32539   ac_cv_lib_posix4_nanosleep=yes
32540 else
32541   echo "$as_me: failed program was:" >&5
32542 sed 's/^/| /' conftest.$ac_ext >&5
32543
32544 ac_cv_lib_posix4_nanosleep=no
32545 fi
32546 rm -f conftest.err conftest.$ac_objext \
32547       conftest$ac_exeext conftest.$ac_ext
32548 LIBS=$ac_check_lib_save_LIBS
32549 fi
32550 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32551 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32552 if test $ac_cv_lib_posix4_nanosleep = yes; then
32553
32554                     cat >>confdefs.h <<\_ACEOF
32555 #define HAVE_NANOSLEEP 1
32556 _ACEOF
32557
32558                     POSIX4_LINK=" -lposix4"
32559
32560 else
32561
32562
32563 for ac_func in usleep
32564 do
32565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32566 echo "$as_me:$LINENO: checking for $ac_func" >&5
32567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32568 if eval "test \"\${$as_ac_var+set}\" = set"; then
32569   echo $ECHO_N "(cached) $ECHO_C" >&6
32570 else
32571   cat >conftest.$ac_ext <<_ACEOF
32572 /* confdefs.h.  */
32573 _ACEOF
32574 cat confdefs.h >>conftest.$ac_ext
32575 cat >>conftest.$ac_ext <<_ACEOF
32576 /* end confdefs.h.  */
32577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32579 #define $ac_func innocuous_$ac_func
32580
32581 /* System header to define __stub macros and hopefully few prototypes,
32582     which can conflict with char $ac_func (); below.
32583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32584     <limits.h> exists even on freestanding compilers.  */
32585
32586 #ifdef __STDC__
32587 # include <limits.h>
32588 #else
32589 # include <assert.h>
32590 #endif
32591
32592 #undef $ac_func
32593
32594 /* Override any gcc2 internal prototype to avoid an error.  */
32595 #ifdef __cplusplus
32596 extern "C"
32597 {
32598 #endif
32599 /* We use char because int might match the return type of a gcc2
32600    builtin and then its argument prototype would still apply.  */
32601 char $ac_func ();
32602 /* The GNU C library defines this for functions which it implements
32603     to always fail with ENOSYS.  Some functions are actually named
32604     something starting with __ and the normal name is an alias.  */
32605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32606 choke me
32607 #else
32608 char (*f) () = $ac_func;
32609 #endif
32610 #ifdef __cplusplus
32611 }
32612 #endif
32613
32614 int
32615 main ()
32616 {
32617 return f != $ac_func;
32618   ;
32619   return 0;
32620 }
32621 _ACEOF
32622 rm -f conftest.$ac_objext conftest$ac_exeext
32623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32624   (eval $ac_link) 2>conftest.er1
32625   ac_status=$?
32626   grep -v '^ *+' conftest.er1 >conftest.err
32627   rm -f conftest.er1
32628   cat conftest.err >&5
32629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630   (exit $ac_status); } &&
32631          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32633   (eval $ac_try) 2>&5
32634   ac_status=$?
32635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636   (exit $ac_status); }; } &&
32637          { ac_try='test -s conftest$ac_exeext'
32638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32639   (eval $ac_try) 2>&5
32640   ac_status=$?
32641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642   (exit $ac_status); }; }; then
32643   eval "$as_ac_var=yes"
32644 else
32645   echo "$as_me: failed program was:" >&5
32646 sed 's/^/| /' conftest.$ac_ext >&5
32647
32648 eval "$as_ac_var=no"
32649 fi
32650 rm -f conftest.err conftest.$ac_objext \
32651       conftest$ac_exeext conftest.$ac_ext
32652 fi
32653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32655 if test `eval echo '${'$as_ac_var'}'` = yes; then
32656   cat >>confdefs.h <<_ACEOF
32657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32658 _ACEOF
32659  cat >>confdefs.h <<\_ACEOF
32660 #define HAVE_USLEEP 1
32661 _ACEOF
32662
32663 else
32664   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32665 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32666
32667 fi
32668 done
32669
32670
32671
32672 fi
32673
32674
32675
32676 fi
32677 done
32678
32679 fi
32680
32681
32682
32683 for ac_func in uname gethostname
32684 do
32685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32686 echo "$as_me:$LINENO: checking for $ac_func" >&5
32687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32688 if eval "test \"\${$as_ac_var+set}\" = set"; then
32689   echo $ECHO_N "(cached) $ECHO_C" >&6
32690 else
32691   cat >conftest.$ac_ext <<_ACEOF
32692 /* confdefs.h.  */
32693 _ACEOF
32694 cat confdefs.h >>conftest.$ac_ext
32695 cat >>conftest.$ac_ext <<_ACEOF
32696 /* end confdefs.h.  */
32697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32699 #define $ac_func innocuous_$ac_func
32700
32701 /* System header to define __stub macros and hopefully few prototypes,
32702     which can conflict with char $ac_func (); below.
32703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32704     <limits.h> exists even on freestanding compilers.  */
32705
32706 #ifdef __STDC__
32707 # include <limits.h>
32708 #else
32709 # include <assert.h>
32710 #endif
32711
32712 #undef $ac_func
32713
32714 /* Override any gcc2 internal prototype to avoid an error.  */
32715 #ifdef __cplusplus
32716 extern "C"
32717 {
32718 #endif
32719 /* We use char because int might match the return type of a gcc2
32720    builtin and then its argument prototype would still apply.  */
32721 char $ac_func ();
32722 /* The GNU C library defines this for functions which it implements
32723     to always fail with ENOSYS.  Some functions are actually named
32724     something starting with __ and the normal name is an alias.  */
32725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32726 choke me
32727 #else
32728 char (*f) () = $ac_func;
32729 #endif
32730 #ifdef __cplusplus
32731 }
32732 #endif
32733
32734 int
32735 main ()
32736 {
32737 return f != $ac_func;
32738   ;
32739   return 0;
32740 }
32741 _ACEOF
32742 rm -f conftest.$ac_objext conftest$ac_exeext
32743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32744   (eval $ac_link) 2>conftest.er1
32745   ac_status=$?
32746   grep -v '^ *+' conftest.er1 >conftest.err
32747   rm -f conftest.er1
32748   cat conftest.err >&5
32749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750   (exit $ac_status); } &&
32751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32753   (eval $ac_try) 2>&5
32754   ac_status=$?
32755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756   (exit $ac_status); }; } &&
32757          { ac_try='test -s conftest$ac_exeext'
32758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32759   (eval $ac_try) 2>&5
32760   ac_status=$?
32761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762   (exit $ac_status); }; }; then
32763   eval "$as_ac_var=yes"
32764 else
32765   echo "$as_me: failed program was:" >&5
32766 sed 's/^/| /' conftest.$ac_ext >&5
32767
32768 eval "$as_ac_var=no"
32769 fi
32770 rm -f conftest.err conftest.$ac_objext \
32771       conftest$ac_exeext conftest.$ac_ext
32772 fi
32773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32775 if test `eval echo '${'$as_ac_var'}'` = yes; then
32776   cat >>confdefs.h <<_ACEOF
32777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32778 _ACEOF
32779  break
32780 fi
32781 done
32782
32783
32784
32785
32786 ac_ext=cc
32787 ac_cpp='$CXXCPP $CPPFLAGS'
32788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32791
32792
32793
32794 for ac_func in strtok_r
32795 do
32796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32797 echo "$as_me:$LINENO: checking for $ac_func" >&5
32798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32799 if eval "test \"\${$as_ac_var+set}\" = set"; then
32800   echo $ECHO_N "(cached) $ECHO_C" >&6
32801 else
32802   cat >conftest.$ac_ext <<_ACEOF
32803 /* confdefs.h.  */
32804 _ACEOF
32805 cat confdefs.h >>conftest.$ac_ext
32806 cat >>conftest.$ac_ext <<_ACEOF
32807 /* end confdefs.h.  */
32808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32810 #define $ac_func innocuous_$ac_func
32811
32812 /* System header to define __stub macros and hopefully few prototypes,
32813     which can conflict with char $ac_func (); below.
32814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32815     <limits.h> exists even on freestanding compilers.  */
32816
32817 #ifdef __STDC__
32818 # include <limits.h>
32819 #else
32820 # include <assert.h>
32821 #endif
32822
32823 #undef $ac_func
32824
32825 /* Override any gcc2 internal prototype to avoid an error.  */
32826 #ifdef __cplusplus
32827 extern "C"
32828 {
32829 #endif
32830 /* We use char because int might match the return type of a gcc2
32831    builtin and then its argument prototype would still apply.  */
32832 char $ac_func ();
32833 /* The GNU C library defines this for functions which it implements
32834     to always fail with ENOSYS.  Some functions are actually named
32835     something starting with __ and the normal name is an alias.  */
32836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32837 choke me
32838 #else
32839 char (*f) () = $ac_func;
32840 #endif
32841 #ifdef __cplusplus
32842 }
32843 #endif
32844
32845 int
32846 main ()
32847 {
32848 return f != $ac_func;
32849   ;
32850   return 0;
32851 }
32852 _ACEOF
32853 rm -f conftest.$ac_objext conftest$ac_exeext
32854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32855   (eval $ac_link) 2>conftest.er1
32856   ac_status=$?
32857   grep -v '^ *+' conftest.er1 >conftest.err
32858   rm -f conftest.er1
32859   cat conftest.err >&5
32860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861   (exit $ac_status); } &&
32862          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864   (eval $ac_try) 2>&5
32865   ac_status=$?
32866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867   (exit $ac_status); }; } &&
32868          { ac_try='test -s conftest$ac_exeext'
32869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32870   (eval $ac_try) 2>&5
32871   ac_status=$?
32872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873   (exit $ac_status); }; }; then
32874   eval "$as_ac_var=yes"
32875 else
32876   echo "$as_me: failed program was:" >&5
32877 sed 's/^/| /' conftest.$ac_ext >&5
32878
32879 eval "$as_ac_var=no"
32880 fi
32881 rm -f conftest.err conftest.$ac_objext \
32882       conftest$ac_exeext conftest.$ac_ext
32883 fi
32884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32886 if test `eval echo '${'$as_ac_var'}'` = yes; then
32887   cat >>confdefs.h <<_ACEOF
32888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32889 _ACEOF
32890
32891 fi
32892 done
32893
32894
32895 ac_ext=c
32896 ac_cpp='$CPP $CPPFLAGS'
32897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32900
32901
32902 INET_LINK=
32903
32904 for ac_func in inet_addr
32905 do
32906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32907 echo "$as_me:$LINENO: checking for $ac_func" >&5
32908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32909 if eval "test \"\${$as_ac_var+set}\" = set"; then
32910   echo $ECHO_N "(cached) $ECHO_C" >&6
32911 else
32912   cat >conftest.$ac_ext <<_ACEOF
32913 /* confdefs.h.  */
32914 _ACEOF
32915 cat confdefs.h >>conftest.$ac_ext
32916 cat >>conftest.$ac_ext <<_ACEOF
32917 /* end confdefs.h.  */
32918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32920 #define $ac_func innocuous_$ac_func
32921
32922 /* System header to define __stub macros and hopefully few prototypes,
32923     which can conflict with char $ac_func (); below.
32924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32925     <limits.h> exists even on freestanding compilers.  */
32926
32927 #ifdef __STDC__
32928 # include <limits.h>
32929 #else
32930 # include <assert.h>
32931 #endif
32932
32933 #undef $ac_func
32934
32935 /* Override any gcc2 internal prototype to avoid an error.  */
32936 #ifdef __cplusplus
32937 extern "C"
32938 {
32939 #endif
32940 /* We use char because int might match the return type of a gcc2
32941    builtin and then its argument prototype would still apply.  */
32942 char $ac_func ();
32943 /* The GNU C library defines this for functions which it implements
32944     to always fail with ENOSYS.  Some functions are actually named
32945     something starting with __ and the normal name is an alias.  */
32946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32947 choke me
32948 #else
32949 char (*f) () = $ac_func;
32950 #endif
32951 #ifdef __cplusplus
32952 }
32953 #endif
32954
32955 int
32956 main ()
32957 {
32958 return f != $ac_func;
32959   ;
32960   return 0;
32961 }
32962 _ACEOF
32963 rm -f conftest.$ac_objext conftest$ac_exeext
32964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32965   (eval $ac_link) 2>conftest.er1
32966   ac_status=$?
32967   grep -v '^ *+' conftest.er1 >conftest.err
32968   rm -f conftest.er1
32969   cat conftest.err >&5
32970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32971   (exit $ac_status); } &&
32972          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32974   (eval $ac_try) 2>&5
32975   ac_status=$?
32976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977   (exit $ac_status); }; } &&
32978          { ac_try='test -s conftest$ac_exeext'
32979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32980   (eval $ac_try) 2>&5
32981   ac_status=$?
32982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983   (exit $ac_status); }; }; then
32984   eval "$as_ac_var=yes"
32985 else
32986   echo "$as_me: failed program was:" >&5
32987 sed 's/^/| /' conftest.$ac_ext >&5
32988
32989 eval "$as_ac_var=no"
32990 fi
32991 rm -f conftest.err conftest.$ac_objext \
32992       conftest$ac_exeext conftest.$ac_ext
32993 fi
32994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32996 if test `eval echo '${'$as_ac_var'}'` = yes; then
32997   cat >>confdefs.h <<_ACEOF
32998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32999 _ACEOF
33000  cat >>confdefs.h <<\_ACEOF
33001 #define HAVE_INET_ADDR 1
33002 _ACEOF
33003
33004 else
33005
33006         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33007 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33008 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33009   echo $ECHO_N "(cached) $ECHO_C" >&6
33010 else
33011   ac_check_lib_save_LIBS=$LIBS
33012 LIBS="-lnsl  $LIBS"
33013 cat >conftest.$ac_ext <<_ACEOF
33014 /* confdefs.h.  */
33015 _ACEOF
33016 cat confdefs.h >>conftest.$ac_ext
33017 cat >>conftest.$ac_ext <<_ACEOF
33018 /* end confdefs.h.  */
33019
33020 /* Override any gcc2 internal prototype to avoid an error.  */
33021 #ifdef __cplusplus
33022 extern "C"
33023 #endif
33024 /* We use char because int might match the return type of a gcc2
33025    builtin and then its argument prototype would still apply.  */
33026 char inet_addr ();
33027 int
33028 main ()
33029 {
33030 inet_addr ();
33031   ;
33032   return 0;
33033 }
33034 _ACEOF
33035 rm -f conftest.$ac_objext conftest$ac_exeext
33036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33037   (eval $ac_link) 2>conftest.er1
33038   ac_status=$?
33039   grep -v '^ *+' conftest.er1 >conftest.err
33040   rm -f conftest.er1
33041   cat conftest.err >&5
33042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043   (exit $ac_status); } &&
33044          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33046   (eval $ac_try) 2>&5
33047   ac_status=$?
33048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049   (exit $ac_status); }; } &&
33050          { ac_try='test -s conftest$ac_exeext'
33051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33052   (eval $ac_try) 2>&5
33053   ac_status=$?
33054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055   (exit $ac_status); }; }; then
33056   ac_cv_lib_nsl_inet_addr=yes
33057 else
33058   echo "$as_me: failed program was:" >&5
33059 sed 's/^/| /' conftest.$ac_ext >&5
33060
33061 ac_cv_lib_nsl_inet_addr=no
33062 fi
33063 rm -f conftest.err conftest.$ac_objext \
33064       conftest$ac_exeext conftest.$ac_ext
33065 LIBS=$ac_check_lib_save_LIBS
33066 fi
33067 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33068 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33069 if test $ac_cv_lib_nsl_inet_addr = yes; then
33070   INET_LINK="nsl"
33071 else
33072
33073                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33074 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33075 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33076   echo $ECHO_N "(cached) $ECHO_C" >&6
33077 else
33078   ac_check_lib_save_LIBS=$LIBS
33079 LIBS="-lresolv  $LIBS"
33080 cat >conftest.$ac_ext <<_ACEOF
33081 /* confdefs.h.  */
33082 _ACEOF
33083 cat confdefs.h >>conftest.$ac_ext
33084 cat >>conftest.$ac_ext <<_ACEOF
33085 /* end confdefs.h.  */
33086
33087 /* Override any gcc2 internal prototype to avoid an error.  */
33088 #ifdef __cplusplus
33089 extern "C"
33090 #endif
33091 /* We use char because int might match the return type of a gcc2
33092    builtin and then its argument prototype would still apply.  */
33093 char inet_addr ();
33094 int
33095 main ()
33096 {
33097 inet_addr ();
33098   ;
33099   return 0;
33100 }
33101 _ACEOF
33102 rm -f conftest.$ac_objext conftest$ac_exeext
33103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33104   (eval $ac_link) 2>conftest.er1
33105   ac_status=$?
33106   grep -v '^ *+' conftest.er1 >conftest.err
33107   rm -f conftest.er1
33108   cat conftest.err >&5
33109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110   (exit $ac_status); } &&
33111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33113   (eval $ac_try) 2>&5
33114   ac_status=$?
33115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116   (exit $ac_status); }; } &&
33117          { ac_try='test -s conftest$ac_exeext'
33118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33119   (eval $ac_try) 2>&5
33120   ac_status=$?
33121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122   (exit $ac_status); }; }; then
33123   ac_cv_lib_resolv_inet_addr=yes
33124 else
33125   echo "$as_me: failed program was:" >&5
33126 sed 's/^/| /' conftest.$ac_ext >&5
33127
33128 ac_cv_lib_resolv_inet_addr=no
33129 fi
33130 rm -f conftest.err conftest.$ac_objext \
33131       conftest$ac_exeext conftest.$ac_ext
33132 LIBS=$ac_check_lib_save_LIBS
33133 fi
33134 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33135 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33136 if test $ac_cv_lib_resolv_inet_addr = yes; then
33137   INET_LINK="resolv"
33138 else
33139
33140                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33141 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33142 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33143   echo $ECHO_N "(cached) $ECHO_C" >&6
33144 else
33145   ac_check_lib_save_LIBS=$LIBS
33146 LIBS="-lsocket  $LIBS"
33147 cat >conftest.$ac_ext <<_ACEOF
33148 /* confdefs.h.  */
33149 _ACEOF
33150 cat confdefs.h >>conftest.$ac_ext
33151 cat >>conftest.$ac_ext <<_ACEOF
33152 /* end confdefs.h.  */
33153
33154 /* Override any gcc2 internal prototype to avoid an error.  */
33155 #ifdef __cplusplus
33156 extern "C"
33157 #endif
33158 /* We use char because int might match the return type of a gcc2
33159    builtin and then its argument prototype would still apply.  */
33160 char inet_addr ();
33161 int
33162 main ()
33163 {
33164 inet_addr ();
33165   ;
33166   return 0;
33167 }
33168 _ACEOF
33169 rm -f conftest.$ac_objext conftest$ac_exeext
33170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33171   (eval $ac_link) 2>conftest.er1
33172   ac_status=$?
33173   grep -v '^ *+' conftest.er1 >conftest.err
33174   rm -f conftest.er1
33175   cat conftest.err >&5
33176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177   (exit $ac_status); } &&
33178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33180   (eval $ac_try) 2>&5
33181   ac_status=$?
33182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183   (exit $ac_status); }; } &&
33184          { ac_try='test -s conftest$ac_exeext'
33185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33186   (eval $ac_try) 2>&5
33187   ac_status=$?
33188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189   (exit $ac_status); }; }; then
33190   ac_cv_lib_socket_inet_addr=yes
33191 else
33192   echo "$as_me: failed program was:" >&5
33193 sed 's/^/| /' conftest.$ac_ext >&5
33194
33195 ac_cv_lib_socket_inet_addr=no
33196 fi
33197 rm -f conftest.err conftest.$ac_objext \
33198       conftest$ac_exeext conftest.$ac_ext
33199 LIBS=$ac_check_lib_save_LIBS
33200 fi
33201 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33202 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33203 if test $ac_cv_lib_socket_inet_addr = yes; then
33204   INET_LINK="socket"
33205
33206 fi
33207
33208
33209
33210 fi
33211
33212
33213
33214 fi
33215
33216
33217
33218 fi
33219 done
33220
33221
33222
33223 for ac_func in inet_aton
33224 do
33225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33226 echo "$as_me:$LINENO: checking for $ac_func" >&5
33227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33228 if eval "test \"\${$as_ac_var+set}\" = set"; then
33229   echo $ECHO_N "(cached) $ECHO_C" >&6
33230 else
33231   cat >conftest.$ac_ext <<_ACEOF
33232 /* confdefs.h.  */
33233 _ACEOF
33234 cat confdefs.h >>conftest.$ac_ext
33235 cat >>conftest.$ac_ext <<_ACEOF
33236 /* end confdefs.h.  */
33237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33239 #define $ac_func innocuous_$ac_func
33240
33241 /* System header to define __stub macros and hopefully few prototypes,
33242     which can conflict with char $ac_func (); below.
33243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33244     <limits.h> exists even on freestanding compilers.  */
33245
33246 #ifdef __STDC__
33247 # include <limits.h>
33248 #else
33249 # include <assert.h>
33250 #endif
33251
33252 #undef $ac_func
33253
33254 /* Override any gcc2 internal prototype to avoid an error.  */
33255 #ifdef __cplusplus
33256 extern "C"
33257 {
33258 #endif
33259 /* We use char because int might match the return type of a gcc2
33260    builtin and then its argument prototype would still apply.  */
33261 char $ac_func ();
33262 /* The GNU C library defines this for functions which it implements
33263     to always fail with ENOSYS.  Some functions are actually named
33264     something starting with __ and the normal name is an alias.  */
33265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33266 choke me
33267 #else
33268 char (*f) () = $ac_func;
33269 #endif
33270 #ifdef __cplusplus
33271 }
33272 #endif
33273
33274 int
33275 main ()
33276 {
33277 return f != $ac_func;
33278   ;
33279   return 0;
33280 }
33281 _ACEOF
33282 rm -f conftest.$ac_objext conftest$ac_exeext
33283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33284   (eval $ac_link) 2>conftest.er1
33285   ac_status=$?
33286   grep -v '^ *+' conftest.er1 >conftest.err
33287   rm -f conftest.er1
33288   cat conftest.err >&5
33289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290   (exit $ac_status); } &&
33291          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33293   (eval $ac_try) 2>&5
33294   ac_status=$?
33295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296   (exit $ac_status); }; } &&
33297          { ac_try='test -s conftest$ac_exeext'
33298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33299   (eval $ac_try) 2>&5
33300   ac_status=$?
33301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302   (exit $ac_status); }; }; then
33303   eval "$as_ac_var=yes"
33304 else
33305   echo "$as_me: failed program was:" >&5
33306 sed 's/^/| /' conftest.$ac_ext >&5
33307
33308 eval "$as_ac_var=no"
33309 fi
33310 rm -f conftest.err conftest.$ac_objext \
33311       conftest$ac_exeext conftest.$ac_ext
33312 fi
33313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33315 if test `eval echo '${'$as_ac_var'}'` = yes; then
33316   cat >>confdefs.h <<_ACEOF
33317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33318 _ACEOF
33319  cat >>confdefs.h <<\_ACEOF
33320 #define HAVE_INET_ATON 1
33321 _ACEOF
33322
33323 else
33324
33325                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33326 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33327 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33328 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33329   echo $ECHO_N "(cached) $ECHO_C" >&6
33330 else
33331   ac_check_lib_save_LIBS=$LIBS
33332 LIBS="-l$INET_LINK  $LIBS"
33333 cat >conftest.$ac_ext <<_ACEOF
33334 /* confdefs.h.  */
33335 _ACEOF
33336 cat confdefs.h >>conftest.$ac_ext
33337 cat >>conftest.$ac_ext <<_ACEOF
33338 /* end confdefs.h.  */
33339
33340 /* Override any gcc2 internal prototype to avoid an error.  */
33341 #ifdef __cplusplus
33342 extern "C"
33343 #endif
33344 /* We use char because int might match the return type of a gcc2
33345    builtin and then its argument prototype would still apply.  */
33346 char inet_aton ();
33347 int
33348 main ()
33349 {
33350 inet_aton ();
33351   ;
33352   return 0;
33353 }
33354 _ACEOF
33355 rm -f conftest.$ac_objext conftest$ac_exeext
33356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33357   (eval $ac_link) 2>conftest.er1
33358   ac_status=$?
33359   grep -v '^ *+' conftest.er1 >conftest.err
33360   rm -f conftest.er1
33361   cat conftest.err >&5
33362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363   (exit $ac_status); } &&
33364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366   (eval $ac_try) 2>&5
33367   ac_status=$?
33368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369   (exit $ac_status); }; } &&
33370          { ac_try='test -s conftest$ac_exeext'
33371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33372   (eval $ac_try) 2>&5
33373   ac_status=$?
33374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375   (exit $ac_status); }; }; then
33376   eval "$as_ac_Lib=yes"
33377 else
33378   echo "$as_me: failed program was:" >&5
33379 sed 's/^/| /' conftest.$ac_ext >&5
33380
33381 eval "$as_ac_Lib=no"
33382 fi
33383 rm -f conftest.err conftest.$ac_objext \
33384       conftest$ac_exeext conftest.$ac_ext
33385 LIBS=$ac_check_lib_save_LIBS
33386 fi
33387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33388 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33389 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33390   cat >>confdefs.h <<\_ACEOF
33391 #define HAVE_INET_ATON 1
33392 _ACEOF
33393
33394 fi
33395
33396
33397 fi
33398 done
33399
33400
33401 if test "x$INET_LINK" != "x"; then
33402     cat >>confdefs.h <<\_ACEOF
33403 #define HAVE_INET_ADDR 1
33404 _ACEOF
33405
33406     INET_LINK=" -l$INET_LINK"
33407 fi
33408
33409 fi
33410
33411
33412
33413 EXTRALIBS_ESD=
33414 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33415 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33416 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33417   echo $ECHO_N "(cached) $ECHO_C" >&6
33418 else
33419   ac_check_lib_save_LIBS=$LIBS
33420 LIBS="-lesd  $LIBS"
33421 cat >conftest.$ac_ext <<_ACEOF
33422 /* confdefs.h.  */
33423 _ACEOF
33424 cat confdefs.h >>conftest.$ac_ext
33425 cat >>conftest.$ac_ext <<_ACEOF
33426 /* end confdefs.h.  */
33427
33428 /* Override any gcc2 internal prototype to avoid an error.  */
33429 #ifdef __cplusplus
33430 extern "C"
33431 #endif
33432 /* We use char because int might match the return type of a gcc2
33433    builtin and then its argument prototype would still apply.  */
33434 char esd_close ();
33435 int
33436 main ()
33437 {
33438 esd_close ();
33439   ;
33440   return 0;
33441 }
33442 _ACEOF
33443 rm -f conftest.$ac_objext conftest$ac_exeext
33444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33445   (eval $ac_link) 2>conftest.er1
33446   ac_status=$?
33447   grep -v '^ *+' conftest.er1 >conftest.err
33448   rm -f conftest.er1
33449   cat conftest.err >&5
33450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451   (exit $ac_status); } &&
33452          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33454   (eval $ac_try) 2>&5
33455   ac_status=$?
33456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457   (exit $ac_status); }; } &&
33458          { ac_try='test -s conftest$ac_exeext'
33459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33460   (eval $ac_try) 2>&5
33461   ac_status=$?
33462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463   (exit $ac_status); }; }; then
33464   ac_cv_lib_esd_esd_close=yes
33465 else
33466   echo "$as_me: failed program was:" >&5
33467 sed 's/^/| /' conftest.$ac_ext >&5
33468
33469 ac_cv_lib_esd_esd_close=no
33470 fi
33471 rm -f conftest.err conftest.$ac_objext \
33472       conftest$ac_exeext conftest.$ac_ext
33473 LIBS=$ac_check_lib_save_LIBS
33474 fi
33475 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33476 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33477 if test $ac_cv_lib_esd_esd_close = yes; then
33478
33479
33480 for ac_header in esd.h
33481 do
33482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33484   echo "$as_me:$LINENO: checking for $ac_header" >&5
33485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33487   echo $ECHO_N "(cached) $ECHO_C" >&6
33488 fi
33489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33491 else
33492   # Is the header compilable?
33493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33495 cat >conftest.$ac_ext <<_ACEOF
33496 /* confdefs.h.  */
33497 _ACEOF
33498 cat confdefs.h >>conftest.$ac_ext
33499 cat >>conftest.$ac_ext <<_ACEOF
33500 /* end confdefs.h.  */
33501 $ac_includes_default
33502 #include <$ac_header>
33503 _ACEOF
33504 rm -f conftest.$ac_objext
33505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33506   (eval $ac_compile) 2>conftest.er1
33507   ac_status=$?
33508   grep -v '^ *+' conftest.er1 >conftest.err
33509   rm -f conftest.er1
33510   cat conftest.err >&5
33511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512   (exit $ac_status); } &&
33513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33515   (eval $ac_try) 2>&5
33516   ac_status=$?
33517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518   (exit $ac_status); }; } &&
33519          { ac_try='test -s conftest.$ac_objext'
33520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33521   (eval $ac_try) 2>&5
33522   ac_status=$?
33523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524   (exit $ac_status); }; }; then
33525   ac_header_compiler=yes
33526 else
33527   echo "$as_me: failed program was:" >&5
33528 sed 's/^/| /' conftest.$ac_ext >&5
33529
33530 ac_header_compiler=no
33531 fi
33532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33534 echo "${ECHO_T}$ac_header_compiler" >&6
33535
33536 # Is the header present?
33537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33538 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
33546 _ACEOF
33547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33548   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33549   ac_status=$?
33550   grep -v '^ *+' conftest.er1 >conftest.err
33551   rm -f conftest.er1
33552   cat conftest.err >&5
33553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554   (exit $ac_status); } >/dev/null; then
33555   if test -s conftest.err; then
33556     ac_cpp_err=$ac_c_preproc_warn_flag
33557     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33558   else
33559     ac_cpp_err=
33560   fi
33561 else
33562   ac_cpp_err=yes
33563 fi
33564 if test -z "$ac_cpp_err"; then
33565   ac_header_preproc=yes
33566 else
33567   echo "$as_me: failed program was:" >&5
33568 sed 's/^/| /' conftest.$ac_ext >&5
33569
33570   ac_header_preproc=no
33571 fi
33572 rm -f conftest.err conftest.$ac_ext
33573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33574 echo "${ECHO_T}$ac_header_preproc" >&6
33575
33576 # So?  What about this header?
33577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33578   yes:no: )
33579     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33583     ac_header_preproc=yes
33584     ;;
33585   no:yes:* )
33586     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33588     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33589 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33590     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33592     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33593 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33596     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33598     (
33599       cat <<\_ASBOX
33600 ## ----------------------------------------- ##
33601 ## Report this to wx-dev@lists.wxwidgets.org ##
33602 ## ----------------------------------------- ##
33603 _ASBOX
33604     ) |
33605       sed "s/^/$as_me: WARNING:     /" >&2
33606     ;;
33607 esac
33608 echo "$as_me:$LINENO: checking for $ac_header" >&5
33609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33611   echo $ECHO_N "(cached) $ECHO_C" >&6
33612 else
33613   eval "$as_ac_Header=\$ac_header_preproc"
33614 fi
33615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33617
33618 fi
33619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33620   cat >>confdefs.h <<_ACEOF
33621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33622 _ACEOF
33623
33624     EXTRALIBS_ESD="-lesd"
33625
33626 fi
33627
33628 done
33629
33630
33631 fi
33632
33633
33634
33635 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33636 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33637 cat >conftest.$ac_ext <<_ACEOF
33638 /* confdefs.h.  */
33639 _ACEOF
33640 cat confdefs.h >>conftest.$ac_ext
33641 cat >>conftest.$ac_ext <<_ACEOF
33642 /* end confdefs.h.  */
33643 #ifdef __linux__
33644                 #include <linux/cdrom.h>
33645                 #else
33646                 /* For Solaris */
33647                 #include <sys/cdio.h>
33648                 #endif
33649
33650 int
33651 main ()
33652 {
33653 struct cdrom_tocentry entry, old_entry;
33654   ;
33655   return 0;
33656 }
33657 _ACEOF
33658 rm -f conftest.$ac_objext
33659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33660   (eval $ac_compile) 2>conftest.er1
33661   ac_status=$?
33662   grep -v '^ *+' conftest.er1 >conftest.err
33663   rm -f conftest.er1
33664   cat conftest.err >&5
33665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666   (exit $ac_status); } &&
33667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33669   (eval $ac_try) 2>&5
33670   ac_status=$?
33671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672   (exit $ac_status); }; } &&
33673          { ac_try='test -s conftest.$ac_objext'
33674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33675   (eval $ac_try) 2>&5
33676   ac_status=$?
33677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33678   (exit $ac_status); }; }; then
33679   echo "$as_me:$LINENO: result: yes" >&5
33680 echo "${ECHO_T}yes" >&6
33681                 cat >>confdefs.h <<\_ACEOF
33682 #define HAVE_KNOWN_CDROM_INTERFACE 1
33683 _ACEOF
33684
33685 else
33686   echo "$as_me: failed program was:" >&5
33687 sed 's/^/| /' conftest.$ac_ext >&5
33688
33689 echo "$as_me:$LINENO: result: no" >&5
33690 echo "${ECHO_T}no" >&6
33691 fi
33692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33693
33694
33695 cat >confcache <<\_ACEOF
33696 # This file is a shell script that caches the results of configure
33697 # tests run on this system so they can be shared between configure
33698 # scripts and configure runs, see configure's option --config-cache.
33699 # It is not useful on other systems.  If it contains results you don't
33700 # want to keep, you may remove or edit it.
33701 #
33702 # config.status only pays attention to the cache file if you give it
33703 # the --recheck option to rerun configure.
33704 #
33705 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33706 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33707 # following values.
33708
33709 _ACEOF
33710
33711 # The following way of writing the cache mishandles newlines in values,
33712 # but we know of no workaround that is simple, portable, and efficient.
33713 # So, don't put newlines in cache variables' values.
33714 # Ultrix sh set writes to stderr and can't be redirected directly,
33715 # and sets the high bit in the cache file unless we assign to the vars.
33716 {
33717   (set) 2>&1 |
33718     case `(ac_space=' '; set | grep ac_space) 2>&1` in
33719     *ac_space=\ *)
33720       # `set' does not quote correctly, so add quotes (double-quote
33721       # substitution turns \\\\ into \\, and sed turns \\ into \).
33722       sed -n \
33723         "s/'/'\\\\''/g;
33724           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33725       ;;
33726     *)
33727       # `set' quotes correctly as required by POSIX, so do not add quotes.
33728       sed -n \
33729         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
33730       ;;
33731     esac;
33732 } |
33733   sed '
33734      t clear
33735      : clear
33736      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33737      t end
33738      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33739      : end' >>confcache
33740 if diff $cache_file confcache >/dev/null 2>&1; then :; else
33741   if test -w $cache_file; then
33742     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33743     cat confcache >$cache_file
33744   else
33745     echo "not updating unwritable cache $cache_file"
33746   fi
33747 fi
33748 rm -f confcache
33749
33750
33751 CPP_MT_FLAG=
33752 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33753
33754
33755     THREADS_LINK=
33756     THREADS_CFLAGS=
33757
33758     if test "$wxUSE_THREADS" = "yes" ; then
33759         if test "$USE_BEOS" = 1; then
33760             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33761 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33762             wxUSE_THREADS="no"
33763         fi
33764     fi
33765
33766     if test "$wxUSE_THREADS" = "yes" ; then
33767
33768
33769                                 THREAD_OPTS="-pthread"
33770         case "${host}" in
33771           *-*-solaris2* | *-*-sunos4* )
33772                 if test "x$GCC" = "xyes"; then
33773                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
33774                 else
33775                     THREAD_OPTS="-mt $THREAD_OPTS"
33776                 fi
33777                 ;;
33778           *-*-freebsd*)
33779                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33780                 ;;
33781           *-*-darwin* | *-*-cygwin* )
33782                                                 THREAD_OPTS=""
33783                 ;;
33784           *-*-aix*)
33785                                 THREAD_OPTS="pthreads"
33786                 ;;
33787           *-hp-hpux* )
33788                                                                 if test "x$GCC" != "xyes"; then
33789                     THREAD_OPTS=""
33790                 fi
33791                 ;;
33792
33793           *-*-irix* )
33794                                                                 if test "x$GCC" = "xyes"; then
33795                     THREAD_OPTS=""
33796                 fi
33797                 ;;
33798
33799           *-*-*UnixWare*)
33800                                 if test "x$GCC" != "xyes"; then
33801                     THREAD_OPTS="-Ethread"
33802                 fi
33803                 ;;
33804         esac
33805
33806                                 THREAD_OPTS="$THREAD_OPTS pthread none"
33807
33808                 THREADS_OK=no
33809         for flag in $THREAD_OPTS; do
33810             case $flag in
33811                 none)
33812                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33813 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33814                     ;;
33815
33816                 -*)
33817                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33818 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33819                     THREADS_CFLAGS="$flag"
33820                     ;;
33821
33822                 *)
33823                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33824 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33825                     THREADS_LINK="-l$flag"
33826                     ;;
33827               esac
33828
33829               save_LIBS="$LIBS"
33830               save_CFLAGS="$CFLAGS"
33831               LIBS="$THREADS_LINK $LIBS"
33832               CFLAGS="$THREADS_CFLAGS $CFLAGS"
33833
33834               cat >conftest.$ac_ext <<_ACEOF
33835 /* confdefs.h.  */
33836 _ACEOF
33837 cat confdefs.h >>conftest.$ac_ext
33838 cat >>conftest.$ac_ext <<_ACEOF
33839 /* end confdefs.h.  */
33840 #include <pthread.h>
33841 int
33842 main ()
33843 {
33844 pthread_create(0,0,0,0);
33845   ;
33846   return 0;
33847 }
33848 _ACEOF
33849 rm -f conftest.$ac_objext conftest$ac_exeext
33850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33851   (eval $ac_link) 2>conftest.er1
33852   ac_status=$?
33853   grep -v '^ *+' conftest.er1 >conftest.err
33854   rm -f conftest.er1
33855   cat conftest.err >&5
33856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857   (exit $ac_status); } &&
33858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33860   (eval $ac_try) 2>&5
33861   ac_status=$?
33862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863   (exit $ac_status); }; } &&
33864          { ac_try='test -s conftest$ac_exeext'
33865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33866   (eval $ac_try) 2>&5
33867   ac_status=$?
33868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869   (exit $ac_status); }; }; then
33870   THREADS_OK=yes
33871 else
33872   echo "$as_me: failed program was:" >&5
33873 sed 's/^/| /' conftest.$ac_ext >&5
33874
33875 fi
33876 rm -f conftest.err conftest.$ac_objext \
33877       conftest$ac_exeext conftest.$ac_ext
33878
33879               LIBS="$save_LIBS"
33880               CFLAGS="$save_CFLAGS"
33881
33882               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33883 echo "${ECHO_T}$THREADS_OK" >&6
33884               if test "x$THREADS_OK" = "xyes"; then
33885                       break;
33886               fi
33887
33888               THREADS_LINK=""
33889               THREADS_CFLAGS=""
33890       done
33891
33892       if test "x$THREADS_OK" != "xyes"; then
33893           wxUSE_THREADS=no
33894           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33895 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33896       else
33897                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33898           LIBS="$THREADS_LINK $LIBS"
33899
33900           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33901 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33902           flag=no
33903           case "${host}" in
33904             *-aix*)
33905                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33906                 flag="-D_THREAD_SAFE"
33907                 ;;
33908             *-freebsd*)
33909                 flag="-D_THREAD_SAFE"
33910                 ;;
33911             *-hp-hpux* )
33912                 flag="-D_REENTRANT"
33913                 if test "x$GCC" != "xyes"; then
33914                                         flag="$flag -D_RWSTD_MULTI_THREAD"
33915                 fi
33916                 ;;
33917             *solaris* | alpha*-osf*)
33918                 flag="-D_REENTRANT"
33919                 ;;
33920           esac
33921           echo "$as_me:$LINENO: result: ${flag}" >&5
33922 echo "${ECHO_T}${flag}" >&6
33923           if test "x$flag" != xno; then
33924               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33925           fi
33926
33927           if test "x$THREADS_CFLAGS" != "x"; then
33928                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
33929             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33930           fi
33931       fi
33932     fi
33933
33934         if test "$wxUSE_THREADS" = "yes" ; then
33935
33936 for ac_func in thr_setconcurrency
33937 do
33938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33939 echo "$as_me:$LINENO: checking for $ac_func" >&5
33940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33941 if eval "test \"\${$as_ac_var+set}\" = set"; then
33942   echo $ECHO_N "(cached) $ECHO_C" >&6
33943 else
33944   cat >conftest.$ac_ext <<_ACEOF
33945 /* confdefs.h.  */
33946 _ACEOF
33947 cat confdefs.h >>conftest.$ac_ext
33948 cat >>conftest.$ac_ext <<_ACEOF
33949 /* end confdefs.h.  */
33950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33952 #define $ac_func innocuous_$ac_func
33953
33954 /* System header to define __stub macros and hopefully few prototypes,
33955     which can conflict with char $ac_func (); below.
33956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33957     <limits.h> exists even on freestanding compilers.  */
33958
33959 #ifdef __STDC__
33960 # include <limits.h>
33961 #else
33962 # include <assert.h>
33963 #endif
33964
33965 #undef $ac_func
33966
33967 /* Override any gcc2 internal prototype to avoid an error.  */
33968 #ifdef __cplusplus
33969 extern "C"
33970 {
33971 #endif
33972 /* We use char because int might match the return type of a gcc2
33973    builtin and then its argument prototype would still apply.  */
33974 char $ac_func ();
33975 /* The GNU C library defines this for functions which it implements
33976     to always fail with ENOSYS.  Some functions are actually named
33977     something starting with __ and the normal name is an alias.  */
33978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33979 choke me
33980 #else
33981 char (*f) () = $ac_func;
33982 #endif
33983 #ifdef __cplusplus
33984 }
33985 #endif
33986
33987 int
33988 main ()
33989 {
33990 return f != $ac_func;
33991   ;
33992   return 0;
33993 }
33994 _ACEOF
33995 rm -f conftest.$ac_objext conftest$ac_exeext
33996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33997   (eval $ac_link) 2>conftest.er1
33998   ac_status=$?
33999   grep -v '^ *+' conftest.er1 >conftest.err
34000   rm -f conftest.er1
34001   cat conftest.err >&5
34002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003   (exit $ac_status); } &&
34004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006   (eval $ac_try) 2>&5
34007   ac_status=$?
34008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009   (exit $ac_status); }; } &&
34010          { ac_try='test -s conftest$ac_exeext'
34011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34012   (eval $ac_try) 2>&5
34013   ac_status=$?
34014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015   (exit $ac_status); }; }; then
34016   eval "$as_ac_var=yes"
34017 else
34018   echo "$as_me: failed program was:" >&5
34019 sed 's/^/| /' conftest.$ac_ext >&5
34020
34021 eval "$as_ac_var=no"
34022 fi
34023 rm -f conftest.err conftest.$ac_objext \
34024       conftest$ac_exeext conftest.$ac_ext
34025 fi
34026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34028 if test `eval echo '${'$as_ac_var'}'` = yes; then
34029   cat >>confdefs.h <<_ACEOF
34030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34031 _ACEOF
34032
34033 fi
34034 done
34035
34036
34037
34038 for ac_header in sched.h
34039 do
34040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34042   echo "$as_me:$LINENO: checking for $ac_header" >&5
34043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34045   echo $ECHO_N "(cached) $ECHO_C" >&6
34046 fi
34047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34049 else
34050   # Is the header compilable?
34051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34053 cat >conftest.$ac_ext <<_ACEOF
34054 /* confdefs.h.  */
34055 _ACEOF
34056 cat confdefs.h >>conftest.$ac_ext
34057 cat >>conftest.$ac_ext <<_ACEOF
34058 /* end confdefs.h.  */
34059 $ac_includes_default
34060 #include <$ac_header>
34061 _ACEOF
34062 rm -f conftest.$ac_objext
34063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34064   (eval $ac_compile) 2>conftest.er1
34065   ac_status=$?
34066   grep -v '^ *+' conftest.er1 >conftest.err
34067   rm -f conftest.er1
34068   cat conftest.err >&5
34069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070   (exit $ac_status); } &&
34071          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34073   (eval $ac_try) 2>&5
34074   ac_status=$?
34075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076   (exit $ac_status); }; } &&
34077          { ac_try='test -s conftest.$ac_objext'
34078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34079   (eval $ac_try) 2>&5
34080   ac_status=$?
34081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082   (exit $ac_status); }; }; then
34083   ac_header_compiler=yes
34084 else
34085   echo "$as_me: failed program was:" >&5
34086 sed 's/^/| /' conftest.$ac_ext >&5
34087
34088 ac_header_compiler=no
34089 fi
34090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34092 echo "${ECHO_T}$ac_header_compiler" >&6
34093
34094 # Is the header present?
34095 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34096 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
34104 _ACEOF
34105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34107   ac_status=$?
34108   grep -v '^ *+' conftest.er1 >conftest.err
34109   rm -f conftest.er1
34110   cat conftest.err >&5
34111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112   (exit $ac_status); } >/dev/null; then
34113   if test -s conftest.err; then
34114     ac_cpp_err=$ac_c_preproc_warn_flag
34115     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34116   else
34117     ac_cpp_err=
34118   fi
34119 else
34120   ac_cpp_err=yes
34121 fi
34122 if test -z "$ac_cpp_err"; then
34123   ac_header_preproc=yes
34124 else
34125   echo "$as_me: failed program was:" >&5
34126 sed 's/^/| /' conftest.$ac_ext >&5
34127
34128   ac_header_preproc=no
34129 fi
34130 rm -f conftest.err conftest.$ac_ext
34131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34132 echo "${ECHO_T}$ac_header_preproc" >&6
34133
34134 # So?  What about this header?
34135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34136   yes:no: )
34137     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34141     ac_header_preproc=yes
34142     ;;
34143   no:yes:* )
34144     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34146     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34147 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34148     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34150     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34151 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34154     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34156     (
34157       cat <<\_ASBOX
34158 ## ----------------------------------------- ##
34159 ## Report this to wx-dev@lists.wxwidgets.org ##
34160 ## ----------------------------------------- ##
34161 _ASBOX
34162     ) |
34163       sed "s/^/$as_me: WARNING:     /" >&2
34164     ;;
34165 esac
34166 echo "$as_me:$LINENO: checking for $ac_header" >&5
34167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34169   echo $ECHO_N "(cached) $ECHO_C" >&6
34170 else
34171   eval "$as_ac_Header=\$ac_header_preproc"
34172 fi
34173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34175
34176 fi
34177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34178   cat >>confdefs.h <<_ACEOF
34179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34180 _ACEOF
34181
34182 fi
34183
34184 done
34185
34186       if test "$ac_cv_header_sched_h" = "yes"; then
34187           echo "$as_me:$LINENO: checking for sched_yield" >&5
34188 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34189 if test "${ac_cv_func_sched_yield+set}" = set; then
34190   echo $ECHO_N "(cached) $ECHO_C" >&6
34191 else
34192   cat >conftest.$ac_ext <<_ACEOF
34193 /* confdefs.h.  */
34194 _ACEOF
34195 cat confdefs.h >>conftest.$ac_ext
34196 cat >>conftest.$ac_ext <<_ACEOF
34197 /* end confdefs.h.  */
34198 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34200 #define sched_yield innocuous_sched_yield
34201
34202 /* System header to define __stub macros and hopefully few prototypes,
34203     which can conflict with char sched_yield (); below.
34204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34205     <limits.h> exists even on freestanding compilers.  */
34206
34207 #ifdef __STDC__
34208 # include <limits.h>
34209 #else
34210 # include <assert.h>
34211 #endif
34212
34213 #undef sched_yield
34214
34215 /* Override any gcc2 internal prototype to avoid an error.  */
34216 #ifdef __cplusplus
34217 extern "C"
34218 {
34219 #endif
34220 /* We use char because int might match the return type of a gcc2
34221    builtin and then its argument prototype would still apply.  */
34222 char sched_yield ();
34223 /* The GNU C library defines this for functions which it implements
34224     to always fail with ENOSYS.  Some functions are actually named
34225     something starting with __ and the normal name is an alias.  */
34226 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34227 choke me
34228 #else
34229 char (*f) () = sched_yield;
34230 #endif
34231 #ifdef __cplusplus
34232 }
34233 #endif
34234
34235 int
34236 main ()
34237 {
34238 return f != sched_yield;
34239   ;
34240   return 0;
34241 }
34242 _ACEOF
34243 rm -f conftest.$ac_objext conftest$ac_exeext
34244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34245   (eval $ac_link) 2>conftest.er1
34246   ac_status=$?
34247   grep -v '^ *+' conftest.er1 >conftest.err
34248   rm -f conftest.er1
34249   cat conftest.err >&5
34250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251   (exit $ac_status); } &&
34252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34254   (eval $ac_try) 2>&5
34255   ac_status=$?
34256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257   (exit $ac_status); }; } &&
34258          { ac_try='test -s conftest$ac_exeext'
34259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34260   (eval $ac_try) 2>&5
34261   ac_status=$?
34262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263   (exit $ac_status); }; }; then
34264   ac_cv_func_sched_yield=yes
34265 else
34266   echo "$as_me: failed program was:" >&5
34267 sed 's/^/| /' conftest.$ac_ext >&5
34268
34269 ac_cv_func_sched_yield=no
34270 fi
34271 rm -f conftest.err conftest.$ac_objext \
34272       conftest$ac_exeext conftest.$ac_ext
34273 fi
34274 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34275 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34276 if test $ac_cv_func_sched_yield = yes; then
34277   cat >>confdefs.h <<\_ACEOF
34278 #define HAVE_SCHED_YIELD 1
34279 _ACEOF
34280
34281 else
34282
34283                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34284 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34285 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34286   echo $ECHO_N "(cached) $ECHO_C" >&6
34287 else
34288   ac_check_lib_save_LIBS=$LIBS
34289 LIBS="-lposix4  $LIBS"
34290 cat >conftest.$ac_ext <<_ACEOF
34291 /* confdefs.h.  */
34292 _ACEOF
34293 cat confdefs.h >>conftest.$ac_ext
34294 cat >>conftest.$ac_ext <<_ACEOF
34295 /* end confdefs.h.  */
34296
34297 /* Override any gcc2 internal prototype to avoid an error.  */
34298 #ifdef __cplusplus
34299 extern "C"
34300 #endif
34301 /* We use char because int might match the return type of a gcc2
34302    builtin and then its argument prototype would still apply.  */
34303 char sched_yield ();
34304 int
34305 main ()
34306 {
34307 sched_yield ();
34308   ;
34309   return 0;
34310 }
34311 _ACEOF
34312 rm -f conftest.$ac_objext conftest$ac_exeext
34313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34314   (eval $ac_link) 2>conftest.er1
34315   ac_status=$?
34316   grep -v '^ *+' conftest.er1 >conftest.err
34317   rm -f conftest.er1
34318   cat conftest.err >&5
34319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320   (exit $ac_status); } &&
34321          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34323   (eval $ac_try) 2>&5
34324   ac_status=$?
34325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326   (exit $ac_status); }; } &&
34327          { ac_try='test -s conftest$ac_exeext'
34328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34329   (eval $ac_try) 2>&5
34330   ac_status=$?
34331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34332   (exit $ac_status); }; }; then
34333   ac_cv_lib_posix4_sched_yield=yes
34334 else
34335   echo "$as_me: failed program was:" >&5
34336 sed 's/^/| /' conftest.$ac_ext >&5
34337
34338 ac_cv_lib_posix4_sched_yield=no
34339 fi
34340 rm -f conftest.err conftest.$ac_objext \
34341       conftest$ac_exeext conftest.$ac_ext
34342 LIBS=$ac_check_lib_save_LIBS
34343 fi
34344 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34345 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34346 if test $ac_cv_lib_posix4_sched_yield = yes; then
34347   cat >>confdefs.h <<\_ACEOF
34348 #define HAVE_SCHED_YIELD 1
34349 _ACEOF
34350  POSIX4_LINK=" -lposix4"
34351 else
34352   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34353 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34354
34355 fi
34356
34357
34358
34359 fi
34360
34361       fi
34362
34363                                           HAVE_PRIOR_FUNCS=0
34364       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34365 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34366 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34367   echo $ECHO_N "(cached) $ECHO_C" >&6
34368 else
34369   cat >conftest.$ac_ext <<_ACEOF
34370 /* confdefs.h.  */
34371 _ACEOF
34372 cat confdefs.h >>conftest.$ac_ext
34373 cat >>conftest.$ac_ext <<_ACEOF
34374 /* end confdefs.h.  */
34375 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34377 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34378
34379 /* System header to define __stub macros and hopefully few prototypes,
34380     which can conflict with char pthread_attr_getschedpolicy (); below.
34381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34382     <limits.h> exists even on freestanding compilers.  */
34383
34384 #ifdef __STDC__
34385 # include <limits.h>
34386 #else
34387 # include <assert.h>
34388 #endif
34389
34390 #undef pthread_attr_getschedpolicy
34391
34392 /* Override any gcc2 internal prototype to avoid an error.  */
34393 #ifdef __cplusplus
34394 extern "C"
34395 {
34396 #endif
34397 /* We use char because int might match the return type of a gcc2
34398    builtin and then its argument prototype would still apply.  */
34399 char pthread_attr_getschedpolicy ();
34400 /* The GNU C library defines this for functions which it implements
34401     to always fail with ENOSYS.  Some functions are actually named
34402     something starting with __ and the normal name is an alias.  */
34403 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34404 choke me
34405 #else
34406 char (*f) () = pthread_attr_getschedpolicy;
34407 #endif
34408 #ifdef __cplusplus
34409 }
34410 #endif
34411
34412 int
34413 main ()
34414 {
34415 return f != pthread_attr_getschedpolicy;
34416   ;
34417   return 0;
34418 }
34419 _ACEOF
34420 rm -f conftest.$ac_objext conftest$ac_exeext
34421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34422   (eval $ac_link) 2>conftest.er1
34423   ac_status=$?
34424   grep -v '^ *+' conftest.er1 >conftest.err
34425   rm -f conftest.er1
34426   cat conftest.err >&5
34427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428   (exit $ac_status); } &&
34429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34431   (eval $ac_try) 2>&5
34432   ac_status=$?
34433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34434   (exit $ac_status); }; } &&
34435          { ac_try='test -s conftest$ac_exeext'
34436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34437   (eval $ac_try) 2>&5
34438   ac_status=$?
34439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440   (exit $ac_status); }; }; then
34441   ac_cv_func_pthread_attr_getschedpolicy=yes
34442 else
34443   echo "$as_me: failed program was:" >&5
34444 sed 's/^/| /' conftest.$ac_ext >&5
34445
34446 ac_cv_func_pthread_attr_getschedpolicy=no
34447 fi
34448 rm -f conftest.err conftest.$ac_objext \
34449       conftest$ac_exeext conftest.$ac_ext
34450 fi
34451 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34452 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34453 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34454   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34455 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34456 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34457   echo $ECHO_N "(cached) $ECHO_C" >&6
34458 else
34459   cat >conftest.$ac_ext <<_ACEOF
34460 /* confdefs.h.  */
34461 _ACEOF
34462 cat confdefs.h >>conftest.$ac_ext
34463 cat >>conftest.$ac_ext <<_ACEOF
34464 /* end confdefs.h.  */
34465 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34467 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34468
34469 /* System header to define __stub macros and hopefully few prototypes,
34470     which can conflict with char pthread_attr_setschedparam (); below.
34471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34472     <limits.h> exists even on freestanding compilers.  */
34473
34474 #ifdef __STDC__
34475 # include <limits.h>
34476 #else
34477 # include <assert.h>
34478 #endif
34479
34480 #undef pthread_attr_setschedparam
34481
34482 /* Override any gcc2 internal prototype to avoid an error.  */
34483 #ifdef __cplusplus
34484 extern "C"
34485 {
34486 #endif
34487 /* We use char because int might match the return type of a gcc2
34488    builtin and then its argument prototype would still apply.  */
34489 char pthread_attr_setschedparam ();
34490 /* The GNU C library defines this for functions which it implements
34491     to always fail with ENOSYS.  Some functions are actually named
34492     something starting with __ and the normal name is an alias.  */
34493 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34494 choke me
34495 #else
34496 char (*f) () = pthread_attr_setschedparam;
34497 #endif
34498 #ifdef __cplusplus
34499 }
34500 #endif
34501
34502 int
34503 main ()
34504 {
34505 return f != pthread_attr_setschedparam;
34506   ;
34507   return 0;
34508 }
34509 _ACEOF
34510 rm -f conftest.$ac_objext conftest$ac_exeext
34511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34512   (eval $ac_link) 2>conftest.er1
34513   ac_status=$?
34514   grep -v '^ *+' conftest.er1 >conftest.err
34515   rm -f conftest.er1
34516   cat conftest.err >&5
34517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518   (exit $ac_status); } &&
34519          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34521   (eval $ac_try) 2>&5
34522   ac_status=$?
34523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524   (exit $ac_status); }; } &&
34525          { ac_try='test -s conftest$ac_exeext'
34526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34527   (eval $ac_try) 2>&5
34528   ac_status=$?
34529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530   (exit $ac_status); }; }; then
34531   ac_cv_func_pthread_attr_setschedparam=yes
34532 else
34533   echo "$as_me: failed program was:" >&5
34534 sed 's/^/| /' conftest.$ac_ext >&5
34535
34536 ac_cv_func_pthread_attr_setschedparam=no
34537 fi
34538 rm -f conftest.err conftest.$ac_objext \
34539       conftest$ac_exeext conftest.$ac_ext
34540 fi
34541 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34542 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34543 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34544   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34545 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34546 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34547   echo $ECHO_N "(cached) $ECHO_C" >&6
34548 else
34549   cat >conftest.$ac_ext <<_ACEOF
34550 /* confdefs.h.  */
34551 _ACEOF
34552 cat confdefs.h >>conftest.$ac_ext
34553 cat >>conftest.$ac_ext <<_ACEOF
34554 /* end confdefs.h.  */
34555 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34557 #define sched_get_priority_max innocuous_sched_get_priority_max
34558
34559 /* System header to define __stub macros and hopefully few prototypes,
34560     which can conflict with char sched_get_priority_max (); below.
34561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34562     <limits.h> exists even on freestanding compilers.  */
34563
34564 #ifdef __STDC__
34565 # include <limits.h>
34566 #else
34567 # include <assert.h>
34568 #endif
34569
34570 #undef sched_get_priority_max
34571
34572 /* Override any gcc2 internal prototype to avoid an error.  */
34573 #ifdef __cplusplus
34574 extern "C"
34575 {
34576 #endif
34577 /* We use char because int might match the return type of a gcc2
34578    builtin and then its argument prototype would still apply.  */
34579 char sched_get_priority_max ();
34580 /* The GNU C library defines this for functions which it implements
34581     to always fail with ENOSYS.  Some functions are actually named
34582     something starting with __ and the normal name is an alias.  */
34583 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34584 choke me
34585 #else
34586 char (*f) () = sched_get_priority_max;
34587 #endif
34588 #ifdef __cplusplus
34589 }
34590 #endif
34591
34592 int
34593 main ()
34594 {
34595 return f != sched_get_priority_max;
34596   ;
34597   return 0;
34598 }
34599 _ACEOF
34600 rm -f conftest.$ac_objext conftest$ac_exeext
34601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34602   (eval $ac_link) 2>conftest.er1
34603   ac_status=$?
34604   grep -v '^ *+' conftest.er1 >conftest.err
34605   rm -f conftest.er1
34606   cat conftest.err >&5
34607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608   (exit $ac_status); } &&
34609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34611   (eval $ac_try) 2>&5
34612   ac_status=$?
34613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614   (exit $ac_status); }; } &&
34615          { ac_try='test -s conftest$ac_exeext'
34616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34617   (eval $ac_try) 2>&5
34618   ac_status=$?
34619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620   (exit $ac_status); }; }; then
34621   ac_cv_func_sched_get_priority_max=yes
34622 else
34623   echo "$as_me: failed program was:" >&5
34624 sed 's/^/| /' conftest.$ac_ext >&5
34625
34626 ac_cv_func_sched_get_priority_max=no
34627 fi
34628 rm -f conftest.err conftest.$ac_objext \
34629       conftest$ac_exeext conftest.$ac_ext
34630 fi
34631 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34632 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34633 if test $ac_cv_func_sched_get_priority_max = yes; then
34634   HAVE_PRIOR_FUNCS=1
34635 else
34636   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34637 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34638 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34639   echo $ECHO_N "(cached) $ECHO_C" >&6
34640 else
34641   ac_check_lib_save_LIBS=$LIBS
34642 LIBS="-lposix4  $LIBS"
34643 cat >conftest.$ac_ext <<_ACEOF
34644 /* confdefs.h.  */
34645 _ACEOF
34646 cat confdefs.h >>conftest.$ac_ext
34647 cat >>conftest.$ac_ext <<_ACEOF
34648 /* end confdefs.h.  */
34649
34650 /* Override any gcc2 internal prototype to avoid an error.  */
34651 #ifdef __cplusplus
34652 extern "C"
34653 #endif
34654 /* We use char because int might match the return type of a gcc2
34655    builtin and then its argument prototype would still apply.  */
34656 char sched_get_priority_max ();
34657 int
34658 main ()
34659 {
34660 sched_get_priority_max ();
34661   ;
34662   return 0;
34663 }
34664 _ACEOF
34665 rm -f conftest.$ac_objext conftest$ac_exeext
34666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34667   (eval $ac_link) 2>conftest.er1
34668   ac_status=$?
34669   grep -v '^ *+' conftest.er1 >conftest.err
34670   rm -f conftest.er1
34671   cat conftest.err >&5
34672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34673   (exit $ac_status); } &&
34674          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34676   (eval $ac_try) 2>&5
34677   ac_status=$?
34678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679   (exit $ac_status); }; } &&
34680          { ac_try='test -s conftest$ac_exeext'
34681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34682   (eval $ac_try) 2>&5
34683   ac_status=$?
34684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34685   (exit $ac_status); }; }; then
34686   ac_cv_lib_posix4_sched_get_priority_max=yes
34687 else
34688   echo "$as_me: failed program was:" >&5
34689 sed 's/^/| /' conftest.$ac_ext >&5
34690
34691 ac_cv_lib_posix4_sched_get_priority_max=no
34692 fi
34693 rm -f conftest.err conftest.$ac_objext \
34694       conftest$ac_exeext conftest.$ac_ext
34695 LIBS=$ac_check_lib_save_LIBS
34696 fi
34697 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34698 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34699 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34700
34701                                 HAVE_PRIOR_FUNCS=1
34702                                 POSIX4_LINK=" -lposix4"
34703
34704 fi
34705
34706
34707 fi
34708
34709
34710 fi
34711
34712
34713 fi
34714
34715
34716       if test "$HAVE_PRIOR_FUNCS" = 1; then
34717         cat >>confdefs.h <<\_ACEOF
34718 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34719 _ACEOF
34720
34721       else
34722         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34723 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34724       fi
34725
34726       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34727 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34728 if test "${ac_cv_func_pthread_cancel+set}" = set; then
34729   echo $ECHO_N "(cached) $ECHO_C" >&6
34730 else
34731   cat >conftest.$ac_ext <<_ACEOF
34732 /* confdefs.h.  */
34733 _ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h.  */
34737 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34739 #define pthread_cancel innocuous_pthread_cancel
34740
34741 /* System header to define __stub macros and hopefully few prototypes,
34742     which can conflict with char pthread_cancel (); below.
34743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34744     <limits.h> exists even on freestanding compilers.  */
34745
34746 #ifdef __STDC__
34747 # include <limits.h>
34748 #else
34749 # include <assert.h>
34750 #endif
34751
34752 #undef pthread_cancel
34753
34754 /* Override any gcc2 internal prototype to avoid an error.  */
34755 #ifdef __cplusplus
34756 extern "C"
34757 {
34758 #endif
34759 /* We use char because int might match the return type of a gcc2
34760    builtin and then its argument prototype would still apply.  */
34761 char pthread_cancel ();
34762 /* The GNU C library defines this for functions which it implements
34763     to always fail with ENOSYS.  Some functions are actually named
34764     something starting with __ and the normal name is an alias.  */
34765 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34766 choke me
34767 #else
34768 char (*f) () = pthread_cancel;
34769 #endif
34770 #ifdef __cplusplus
34771 }
34772 #endif
34773
34774 int
34775 main ()
34776 {
34777 return f != pthread_cancel;
34778   ;
34779   return 0;
34780 }
34781 _ACEOF
34782 rm -f conftest.$ac_objext conftest$ac_exeext
34783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34784   (eval $ac_link) 2>conftest.er1
34785   ac_status=$?
34786   grep -v '^ *+' conftest.er1 >conftest.err
34787   rm -f conftest.er1
34788   cat conftest.err >&5
34789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790   (exit $ac_status); } &&
34791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34793   (eval $ac_try) 2>&5
34794   ac_status=$?
34795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796   (exit $ac_status); }; } &&
34797          { ac_try='test -s conftest$ac_exeext'
34798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34799   (eval $ac_try) 2>&5
34800   ac_status=$?
34801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802   (exit $ac_status); }; }; then
34803   ac_cv_func_pthread_cancel=yes
34804 else
34805   echo "$as_me: failed program was:" >&5
34806 sed 's/^/| /' conftest.$ac_ext >&5
34807
34808 ac_cv_func_pthread_cancel=no
34809 fi
34810 rm -f conftest.err conftest.$ac_objext \
34811       conftest$ac_exeext conftest.$ac_ext
34812 fi
34813 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34814 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34815 if test $ac_cv_func_pthread_cancel = yes; then
34816   cat >>confdefs.h <<\_ACEOF
34817 #define HAVE_PTHREAD_CANCEL 1
34818 _ACEOF
34819
34820 else
34821   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34822 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34823 fi
34824
34825
34826
34827
34828       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34829 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34830 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34831   echo $ECHO_N "(cached) $ECHO_C" >&6
34832 else
34833
34834         cat >conftest.$ac_ext <<_ACEOF
34835 /* confdefs.h.  */
34836 _ACEOF
34837 cat confdefs.h >>conftest.$ac_ext
34838 cat >>conftest.$ac_ext <<_ACEOF
34839 /* end confdefs.h.  */
34840 #include <pthread.h>
34841 int
34842 main ()
34843 {
34844
34845                pthread_mutexattr_t attr;
34846                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34847
34848   ;
34849   return 0;
34850 }
34851 _ACEOF
34852 rm -f conftest.$ac_objext
34853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34854   (eval $ac_compile) 2>conftest.er1
34855   ac_status=$?
34856   grep -v '^ *+' conftest.er1 >conftest.err
34857   rm -f conftest.er1
34858   cat conftest.err >&5
34859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860   (exit $ac_status); } &&
34861          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34863   (eval $ac_try) 2>&5
34864   ac_status=$?
34865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34866   (exit $ac_status); }; } &&
34867          { ac_try='test -s conftest.$ac_objext'
34868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34869   (eval $ac_try) 2>&5
34870   ac_status=$?
34871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34872   (exit $ac_status); }; }; then
34873
34874                wx_cv_type_pthread_mutexattr_t=yes
34875
34876 else
34877   echo "$as_me: failed program was:" >&5
34878 sed 's/^/| /' conftest.$ac_ext >&5
34879
34880
34881                wx_cv_type_pthread_mutexattr_t=no
34882
34883
34884 fi
34885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34886
34887 fi
34888 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34889 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34890
34891       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34892         cat >>confdefs.h <<\_ACEOF
34893 #define HAVE_PTHREAD_MUTEXATTR_T 1
34894 _ACEOF
34895
34896       else
34897                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34898 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34899 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34900   echo $ECHO_N "(cached) $ECHO_C" >&6
34901 else
34902
34903             cat >conftest.$ac_ext <<_ACEOF
34904 /* confdefs.h.  */
34905 _ACEOF
34906 cat confdefs.h >>conftest.$ac_ext
34907 cat >>conftest.$ac_ext <<_ACEOF
34908 /* end confdefs.h.  */
34909 #include <pthread.h>
34910 int
34911 main ()
34912 {
34913
34914                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34915
34916   ;
34917   return 0;
34918 }
34919 _ACEOF
34920 rm -f conftest.$ac_objext
34921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34922   (eval $ac_compile) 2>conftest.er1
34923   ac_status=$?
34924   grep -v '^ *+' conftest.er1 >conftest.err
34925   rm -f conftest.er1
34926   cat conftest.err >&5
34927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928   (exit $ac_status); } &&
34929          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34931   (eval $ac_try) 2>&5
34932   ac_status=$?
34933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934   (exit $ac_status); }; } &&
34935          { ac_try='test -s conftest.$ac_objext'
34936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34937   (eval $ac_try) 2>&5
34938   ac_status=$?
34939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940   (exit $ac_status); }; }; then
34941
34942                     wx_cv_type_pthread_rec_mutex_init=yes
34943
34944 else
34945   echo "$as_me: failed program was:" >&5
34946 sed 's/^/| /' conftest.$ac_ext >&5
34947
34948
34949                     wx_cv_type_pthread_rec_mutex_init=no
34950
34951
34952 fi
34953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34954
34955 fi
34956 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34957 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34958         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34959           cat >>confdefs.h <<\_ACEOF
34960 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34961 _ACEOF
34962
34963         else
34964                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34965 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34966         fi
34967       fi
34968     fi
34969
34970 else
34971     if test "$wxUSE_THREADS" = "yes" ; then
34972       case "${host}" in
34973         *-*-mingw32* )
34974                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34975 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34976 if test "${wx_cv_cflags_mthread+set}" = set; then
34977   echo $ECHO_N "(cached) $ECHO_C" >&6
34978 else
34979
34980                     CFLAGS_OLD="$CFLAGS"
34981                     CFLAGS="$CFLAGS -mthreads"
34982                     cat >conftest.$ac_ext <<_ACEOF
34983 /* confdefs.h.  */
34984 _ACEOF
34985 cat confdefs.h >>conftest.$ac_ext
34986 cat >>conftest.$ac_ext <<_ACEOF
34987 /* end confdefs.h.  */
34988
34989 int
34990 main ()
34991 {
34992
34993   ;
34994   return 0;
34995 }
34996 _ACEOF
34997 rm -f conftest.$ac_objext
34998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34999   (eval $ac_compile) 2>conftest.er1
35000   ac_status=$?
35001   grep -v '^ *+' conftest.er1 >conftest.err
35002   rm -f conftest.er1
35003   cat conftest.err >&5
35004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35005   (exit $ac_status); } &&
35006          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35008   (eval $ac_try) 2>&5
35009   ac_status=$?
35010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011   (exit $ac_status); }; } &&
35012          { ac_try='test -s conftest.$ac_objext'
35013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35014   (eval $ac_try) 2>&5
35015   ac_status=$?
35016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017   (exit $ac_status); }; }; then
35018   wx_cv_cflags_mthread=yes
35019 else
35020   echo "$as_me: failed program was:" >&5
35021 sed 's/^/| /' conftest.$ac_ext >&5
35022
35023 wx_cv_cflags_mthread=no
35024
35025 fi
35026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35027
35028
35029 fi
35030 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35031 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35032
35033             if test "$wx_cv_cflags_mthread" = "yes"; then
35034                                 CXXFLAGS="$CXXFLAGS -mthreads"
35035                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35036                 LDFLAGS="$LDFLAGS -mthreads"
35037             else
35038                                 CFLAGS="$CFLAGS_OLD"
35039             fi
35040         ;;
35041         *-pc-os2*emx )
35042             CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35043             CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35044             LDFLAGS="$LDFLAGS -Zmt"
35045         ;;
35046       esac
35047     fi
35048 fi
35049
35050 if test "$wxUSE_THREADS" = "yes"; then
35051   cat >>confdefs.h <<\_ACEOF
35052 #define wxUSE_THREADS 1
35053 _ACEOF
35054
35055
35056   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35057 else
35058       if test "$ac_cv_func_strtok_r" = "yes"; then
35059     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35060 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35061     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35062         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35063         echo "$as_me:$LINENO: result: yes" >&5
35064 echo "${ECHO_T}yes" >&6
35065     else
35066         echo "$as_me:$LINENO: result: no" >&5
35067 echo "${ECHO_T}no" >&6
35068     fi
35069   fi
35070 fi
35071
35072 if test "$WXGTK20" = 1 ; then
35073   cat >>confdefs.h <<_ACEOF
35074 #define __WXGTK20__ $WXGTK20
35075 _ACEOF
35076
35077   WXGTK12=1
35078 fi
35079
35080 if test "$WXGTK12" = 1 ; then
35081   cat >>confdefs.h <<_ACEOF
35082 #define __WXGTK12__ $WXGTK12
35083 _ACEOF
35084
35085 fi
35086
35087 if test "$WXGTK127" = 1 ; then
35088   cat >>confdefs.h <<_ACEOF
35089 #define __WXGTK127__ $WXGTK127
35090 _ACEOF
35091
35092 fi
35093
35094 if test "$WXGPE" = 1 ; then
35095   cat >>confdefs.h <<_ACEOF
35096 #define __WXGPE__ $WXGPE
35097 _ACEOF
35098
35099 fi
35100
35101 WXDEBUG=
35102
35103 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35104     WXDEBUG="-g"
35105     wxUSE_OPTIMISE=no
35106 fi
35107
35108 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35109     wxUSE_DEBUG_INFO=yes
35110     WXDEBUG="-ggdb"
35111 fi
35112
35113 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35114     cat >>confdefs.h <<\_ACEOF
35115 #define WXDEBUG 1
35116 _ACEOF
35117
35118     WXDEBUG_DEFINE="-D__WXDEBUG__"
35119 else
35120     if test "$wxUSE_GTK" = 1 ; then
35121         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35122     fi
35123 fi
35124
35125 if test "$wxUSE_MEM_TRACING" = "yes" ; then
35126     cat >>confdefs.h <<\_ACEOF
35127 #define wxUSE_MEMORY_TRACING 1
35128 _ACEOF
35129
35130     cat >>confdefs.h <<\_ACEOF
35131 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35132 _ACEOF
35133
35134     cat >>confdefs.h <<\_ACEOF
35135 #define wxUSE_DEBUG_NEW_ALWAYS 1
35136 _ACEOF
35137
35138     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35139 fi
35140
35141 if test "$wxUSE_DMALLOC" = "yes" ; then
35142     DMALLOC_LIBS="-ldmalloc"
35143 fi
35144
35145 PROFILE=
35146 if test "$wxUSE_PROFILE" = "yes" ; then
35147     PROFILE=" -pg"
35148 fi
35149
35150 CODE_GEN_FLAGS=
35151 CODE_GEN_FLAGS_CXX=
35152 if test "$GCC" = "yes" ; then
35153     if test "$wxUSE_NO_RTTI" = "yes" ; then
35154         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35155     fi
35156     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35157         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35158     fi
35159     if test "$wxUSE_PERMISSIVE" = "yes" ; then
35160         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35161     fi
35162
35163                                                 case "${host}" in
35164       powerpc*-*-aix* )
35165         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35166         ;;
35167       *-hppa* )
35168         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35169         ;;
35170     esac
35171 fi
35172
35173 OPTIMISE=
35174 if test "$wxUSE_OPTIMISE" = "no" ; then
35175     if test "$GCC" = yes ; then
35176                         OPTIMISE="-O0"
35177     fi
35178 else
35179     if test "$GCC" = yes ; then
35180         OPTIMISE="-O2"
35181
35182                 case "${host}" in
35183             i586-*-*|i686-*-* )
35184             OPTIMISE="${OPTIMISE} "
35185         ;;
35186         esac
35187     else
35188         OPTIMISE="-O"
35189     fi
35190 fi
35191
35192
35193 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35194     cat >>confdefs.h <<\_ACEOF
35195 #define WXWIN_COMPATIBILITY_2_2 1
35196 _ACEOF
35197
35198
35199     WXWIN_COMPATIBILITY_2_4="yes"
35200 fi
35201
35202 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35203     cat >>confdefs.h <<\_ACEOF
35204 #define WXWIN_COMPATIBILITY_2_4 1
35205 _ACEOF
35206
35207 fi
35208
35209
35210 if test "$wxUSE_GUI" = "yes"; then
35211     cat >>confdefs.h <<\_ACEOF
35212 #define wxUSE_GUI 1
35213 _ACEOF
35214
35215
35216                                             fi
35217
35218
35219 if test "$wxUSE_UNIX" = "yes"; then
35220   cat >>confdefs.h <<\_ACEOF
35221 #define wxUSE_UNIX 1
35222 _ACEOF
35223
35224 fi
35225
35226
35227 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35228
35229     HAVE_DL_FUNCS=0
35230     HAVE_SHL_FUNCS=0
35231     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35232         if test "$USE_DARWIN" = 1; then
35233                         HAVE_DL_FUNCS=1
35234         else
35235
35236 for ac_func in dlopen
35237 do
35238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35239 echo "$as_me:$LINENO: checking for $ac_func" >&5
35240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35241 if eval "test \"\${$as_ac_var+set}\" = set"; then
35242   echo $ECHO_N "(cached) $ECHO_C" >&6
35243 else
35244   cat >conftest.$ac_ext <<_ACEOF
35245 /* confdefs.h.  */
35246 _ACEOF
35247 cat confdefs.h >>conftest.$ac_ext
35248 cat >>conftest.$ac_ext <<_ACEOF
35249 /* end confdefs.h.  */
35250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35252 #define $ac_func innocuous_$ac_func
35253
35254 /* System header to define __stub macros and hopefully few prototypes,
35255     which can conflict with char $ac_func (); below.
35256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35257     <limits.h> exists even on freestanding compilers.  */
35258
35259 #ifdef __STDC__
35260 # include <limits.h>
35261 #else
35262 # include <assert.h>
35263 #endif
35264
35265 #undef $ac_func
35266
35267 /* Override any gcc2 internal prototype to avoid an error.  */
35268 #ifdef __cplusplus
35269 extern "C"
35270 {
35271 #endif
35272 /* We use char because int might match the return type of a gcc2
35273    builtin and then its argument prototype would still apply.  */
35274 char $ac_func ();
35275 /* The GNU C library defines this for functions which it implements
35276     to always fail with ENOSYS.  Some functions are actually named
35277     something starting with __ and the normal name is an alias.  */
35278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35279 choke me
35280 #else
35281 char (*f) () = $ac_func;
35282 #endif
35283 #ifdef __cplusplus
35284 }
35285 #endif
35286
35287 int
35288 main ()
35289 {
35290 return f != $ac_func;
35291   ;
35292   return 0;
35293 }
35294 _ACEOF
35295 rm -f conftest.$ac_objext conftest$ac_exeext
35296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35297   (eval $ac_link) 2>conftest.er1
35298   ac_status=$?
35299   grep -v '^ *+' conftest.er1 >conftest.err
35300   rm -f conftest.er1
35301   cat conftest.err >&5
35302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303   (exit $ac_status); } &&
35304          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35306   (eval $ac_try) 2>&5
35307   ac_status=$?
35308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309   (exit $ac_status); }; } &&
35310          { ac_try='test -s conftest$ac_exeext'
35311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312   (eval $ac_try) 2>&5
35313   ac_status=$?
35314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315   (exit $ac_status); }; }; then
35316   eval "$as_ac_var=yes"
35317 else
35318   echo "$as_me: failed program was:" >&5
35319 sed 's/^/| /' conftest.$ac_ext >&5
35320
35321 eval "$as_ac_var=no"
35322 fi
35323 rm -f conftest.err conftest.$ac_objext \
35324       conftest$ac_exeext conftest.$ac_ext
35325 fi
35326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35328 if test `eval echo '${'$as_ac_var'}'` = yes; then
35329   cat >>confdefs.h <<_ACEOF
35330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35331 _ACEOF
35332
35333                 cat >>confdefs.h <<\_ACEOF
35334 #define HAVE_DLOPEN 1
35335 _ACEOF
35336
35337                 HAVE_DL_FUNCS=1
35338
35339 else
35340
35341                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35342 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35343 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35344   echo $ECHO_N "(cached) $ECHO_C" >&6
35345 else
35346   ac_check_lib_save_LIBS=$LIBS
35347 LIBS="-ldl  $LIBS"
35348 cat >conftest.$ac_ext <<_ACEOF
35349 /* confdefs.h.  */
35350 _ACEOF
35351 cat confdefs.h >>conftest.$ac_ext
35352 cat >>conftest.$ac_ext <<_ACEOF
35353 /* end confdefs.h.  */
35354
35355 /* Override any gcc2 internal prototype to avoid an error.  */
35356 #ifdef __cplusplus
35357 extern "C"
35358 #endif
35359 /* We use char because int might match the return type of a gcc2
35360    builtin and then its argument prototype would still apply.  */
35361 char dlopen ();
35362 int
35363 main ()
35364 {
35365 dlopen ();
35366   ;
35367   return 0;
35368 }
35369 _ACEOF
35370 rm -f conftest.$ac_objext conftest$ac_exeext
35371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35372   (eval $ac_link) 2>conftest.er1
35373   ac_status=$?
35374   grep -v '^ *+' conftest.er1 >conftest.err
35375   rm -f conftest.er1
35376   cat conftest.err >&5
35377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378   (exit $ac_status); } &&
35379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35381   (eval $ac_try) 2>&5
35382   ac_status=$?
35383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35384   (exit $ac_status); }; } &&
35385          { ac_try='test -s conftest$ac_exeext'
35386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387   (eval $ac_try) 2>&5
35388   ac_status=$?
35389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390   (exit $ac_status); }; }; then
35391   ac_cv_lib_dl_dlopen=yes
35392 else
35393   echo "$as_me: failed program was:" >&5
35394 sed 's/^/| /' conftest.$ac_ext >&5
35395
35396 ac_cv_lib_dl_dlopen=no
35397 fi
35398 rm -f conftest.err conftest.$ac_objext \
35399       conftest$ac_exeext conftest.$ac_ext
35400 LIBS=$ac_check_lib_save_LIBS
35401 fi
35402 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35403 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35404 if test $ac_cv_lib_dl_dlopen = yes; then
35405
35406                                 cat >>confdefs.h <<\_ACEOF
35407 #define HAVE_DLOPEN 1
35408 _ACEOF
35409
35410                                 HAVE_DL_FUNCS=1
35411                                 DL_LINK=" -ldl$DL_LINK"
35412
35413 else
35414
35415
35416 for ac_func in shl_load
35417 do
35418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35419 echo "$as_me:$LINENO: checking for $ac_func" >&5
35420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35421 if eval "test \"\${$as_ac_var+set}\" = set"; then
35422   echo $ECHO_N "(cached) $ECHO_C" >&6
35423 else
35424   cat >conftest.$ac_ext <<_ACEOF
35425 /* confdefs.h.  */
35426 _ACEOF
35427 cat confdefs.h >>conftest.$ac_ext
35428 cat >>conftest.$ac_ext <<_ACEOF
35429 /* end confdefs.h.  */
35430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35432 #define $ac_func innocuous_$ac_func
35433
35434 /* System header to define __stub macros and hopefully few prototypes,
35435     which can conflict with char $ac_func (); below.
35436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35437     <limits.h> exists even on freestanding compilers.  */
35438
35439 #ifdef __STDC__
35440 # include <limits.h>
35441 #else
35442 # include <assert.h>
35443 #endif
35444
35445 #undef $ac_func
35446
35447 /* Override any gcc2 internal prototype to avoid an error.  */
35448 #ifdef __cplusplus
35449 extern "C"
35450 {
35451 #endif
35452 /* We use char because int might match the return type of a gcc2
35453    builtin and then its argument prototype would still apply.  */
35454 char $ac_func ();
35455 /* The GNU C library defines this for functions which it implements
35456     to always fail with ENOSYS.  Some functions are actually named
35457     something starting with __ and the normal name is an alias.  */
35458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35459 choke me
35460 #else
35461 char (*f) () = $ac_func;
35462 #endif
35463 #ifdef __cplusplus
35464 }
35465 #endif
35466
35467 int
35468 main ()
35469 {
35470 return f != $ac_func;
35471   ;
35472   return 0;
35473 }
35474 _ACEOF
35475 rm -f conftest.$ac_objext conftest$ac_exeext
35476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35477   (eval $ac_link) 2>conftest.er1
35478   ac_status=$?
35479   grep -v '^ *+' conftest.er1 >conftest.err
35480   rm -f conftest.er1
35481   cat conftest.err >&5
35482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35483   (exit $ac_status); } &&
35484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35486   (eval $ac_try) 2>&5
35487   ac_status=$?
35488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489   (exit $ac_status); }; } &&
35490          { ac_try='test -s conftest$ac_exeext'
35491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35492   (eval $ac_try) 2>&5
35493   ac_status=$?
35494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495   (exit $ac_status); }; }; then
35496   eval "$as_ac_var=yes"
35497 else
35498   echo "$as_me: failed program was:" >&5
35499 sed 's/^/| /' conftest.$ac_ext >&5
35500
35501 eval "$as_ac_var=no"
35502 fi
35503 rm -f conftest.err conftest.$ac_objext \
35504       conftest$ac_exeext conftest.$ac_ext
35505 fi
35506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35508 if test `eval echo '${'$as_ac_var'}'` = yes; then
35509   cat >>confdefs.h <<_ACEOF
35510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35511 _ACEOF
35512
35513                                                 cat >>confdefs.h <<\_ACEOF
35514 #define HAVE_SHL_LOAD 1
35515 _ACEOF
35516
35517                                                 HAVE_SHL_FUNCS=1
35518
35519 else
35520
35521                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35522 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35523 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35524   echo $ECHO_N "(cached) $ECHO_C" >&6
35525 else
35526   ac_check_lib_save_LIBS=$LIBS
35527 LIBS="-lshl_load  $LIBS"
35528 cat >conftest.$ac_ext <<_ACEOF
35529 /* confdefs.h.  */
35530 _ACEOF
35531 cat confdefs.h >>conftest.$ac_ext
35532 cat >>conftest.$ac_ext <<_ACEOF
35533 /* end confdefs.h.  */
35534
35535 /* Override any gcc2 internal prototype to avoid an error.  */
35536 #ifdef __cplusplus
35537 extern "C"
35538 #endif
35539 /* We use char because int might match the return type of a gcc2
35540    builtin and then its argument prototype would still apply.  */
35541 char dld ();
35542 int
35543 main ()
35544 {
35545 dld ();
35546   ;
35547   return 0;
35548 }
35549 _ACEOF
35550 rm -f conftest.$ac_objext conftest$ac_exeext
35551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35552   (eval $ac_link) 2>conftest.er1
35553   ac_status=$?
35554   grep -v '^ *+' conftest.er1 >conftest.err
35555   rm -f conftest.er1
35556   cat conftest.err >&5
35557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558   (exit $ac_status); } &&
35559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35561   (eval $ac_try) 2>&5
35562   ac_status=$?
35563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564   (exit $ac_status); }; } &&
35565          { ac_try='test -s conftest$ac_exeext'
35566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35567   (eval $ac_try) 2>&5
35568   ac_status=$?
35569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570   (exit $ac_status); }; }; then
35571   ac_cv_lib_shl_load_dld=yes
35572 else
35573   echo "$as_me: failed program was:" >&5
35574 sed 's/^/| /' conftest.$ac_ext >&5
35575
35576 ac_cv_lib_shl_load_dld=no
35577 fi
35578 rm -f conftest.err conftest.$ac_objext \
35579       conftest$ac_exeext conftest.$ac_ext
35580 LIBS=$ac_check_lib_save_LIBS
35581 fi
35582 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35583 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35584 if test $ac_cv_lib_shl_load_dld = yes; then
35585
35586                                                                 HAVE_SHL_FUNCS=1
35587                                                                 DL_LINK=" -ldld$DL_LINK"
35588
35589 fi
35590
35591
35592 fi
35593 done
35594
35595
35596 fi
35597
35598
35599 fi
35600 done
35601
35602
35603                 if test "$HAVE_DL_FUNCS" = 1; then
35604
35605 for ac_func in dlerror
35606 do
35607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35608 echo "$as_me:$LINENO: checking for $ac_func" >&5
35609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35610 if eval "test \"\${$as_ac_var+set}\" = set"; then
35611   echo $ECHO_N "(cached) $ECHO_C" >&6
35612 else
35613   cat >conftest.$ac_ext <<_ACEOF
35614 /* confdefs.h.  */
35615 _ACEOF
35616 cat confdefs.h >>conftest.$ac_ext
35617 cat >>conftest.$ac_ext <<_ACEOF
35618 /* end confdefs.h.  */
35619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35621 #define $ac_func innocuous_$ac_func
35622
35623 /* System header to define __stub macros and hopefully few prototypes,
35624     which can conflict with char $ac_func (); below.
35625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35626     <limits.h> exists even on freestanding compilers.  */
35627
35628 #ifdef __STDC__
35629 # include <limits.h>
35630 #else
35631 # include <assert.h>
35632 #endif
35633
35634 #undef $ac_func
35635
35636 /* Override any gcc2 internal prototype to avoid an error.  */
35637 #ifdef __cplusplus
35638 extern "C"
35639 {
35640 #endif
35641 /* We use char because int might match the return type of a gcc2
35642    builtin and then its argument prototype would still apply.  */
35643 char $ac_func ();
35644 /* The GNU C library defines this for functions which it implements
35645     to always fail with ENOSYS.  Some functions are actually named
35646     something starting with __ and the normal name is an alias.  */
35647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35648 choke me
35649 #else
35650 char (*f) () = $ac_func;
35651 #endif
35652 #ifdef __cplusplus
35653 }
35654 #endif
35655
35656 int
35657 main ()
35658 {
35659 return f != $ac_func;
35660   ;
35661   return 0;
35662 }
35663 _ACEOF
35664 rm -f conftest.$ac_objext conftest$ac_exeext
35665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35666   (eval $ac_link) 2>conftest.er1
35667   ac_status=$?
35668   grep -v '^ *+' conftest.er1 >conftest.err
35669   rm -f conftest.er1
35670   cat conftest.err >&5
35671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672   (exit $ac_status); } &&
35673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35675   (eval $ac_try) 2>&5
35676   ac_status=$?
35677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678   (exit $ac_status); }; } &&
35679          { ac_try='test -s conftest$ac_exeext'
35680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35681   (eval $ac_try) 2>&5
35682   ac_status=$?
35683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684   (exit $ac_status); }; }; then
35685   eval "$as_ac_var=yes"
35686 else
35687   echo "$as_me: failed program was:" >&5
35688 sed 's/^/| /' conftest.$ac_ext >&5
35689
35690 eval "$as_ac_var=no"
35691 fi
35692 rm -f conftest.err conftest.$ac_objext \
35693       conftest$ac_exeext conftest.$ac_ext
35694 fi
35695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35697 if test `eval echo '${'$as_ac_var'}'` = yes; then
35698   cat >>confdefs.h <<_ACEOF
35699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35700 _ACEOF
35701  cat >>confdefs.h <<\_ACEOF
35702 #define HAVE_DLERROR 1
35703 _ACEOF
35704
35705 else
35706
35707                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35708 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35709 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35710   echo $ECHO_N "(cached) $ECHO_C" >&6
35711 else
35712   ac_check_lib_save_LIBS=$LIBS
35713 LIBS="-ldl  $LIBS"
35714 cat >conftest.$ac_ext <<_ACEOF
35715 /* confdefs.h.  */
35716 _ACEOF
35717 cat confdefs.h >>conftest.$ac_ext
35718 cat >>conftest.$ac_ext <<_ACEOF
35719 /* end confdefs.h.  */
35720
35721 /* Override any gcc2 internal prototype to avoid an error.  */
35722 #ifdef __cplusplus
35723 extern "C"
35724 #endif
35725 /* We use char because int might match the return type of a gcc2
35726    builtin and then its argument prototype would still apply.  */
35727 char dlerror ();
35728 int
35729 main ()
35730 {
35731 dlerror ();
35732   ;
35733   return 0;
35734 }
35735 _ACEOF
35736 rm -f conftest.$ac_objext conftest$ac_exeext
35737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35738   (eval $ac_link) 2>conftest.er1
35739   ac_status=$?
35740   grep -v '^ *+' conftest.er1 >conftest.err
35741   rm -f conftest.er1
35742   cat conftest.err >&5
35743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744   (exit $ac_status); } &&
35745          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35747   (eval $ac_try) 2>&5
35748   ac_status=$?
35749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35750   (exit $ac_status); }; } &&
35751          { ac_try='test -s conftest$ac_exeext'
35752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35753   (eval $ac_try) 2>&5
35754   ac_status=$?
35755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756   (exit $ac_status); }; }; then
35757   ac_cv_lib_dl_dlerror=yes
35758 else
35759   echo "$as_me: failed program was:" >&5
35760 sed 's/^/| /' conftest.$ac_ext >&5
35761
35762 ac_cv_lib_dl_dlerror=no
35763 fi
35764 rm -f conftest.err conftest.$ac_objext \
35765       conftest$ac_exeext conftest.$ac_ext
35766 LIBS=$ac_check_lib_save_LIBS
35767 fi
35768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35769 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35770 if test $ac_cv_lib_dl_dlerror = yes; then
35771   cat >>confdefs.h <<\_ACEOF
35772 #define HAVE_DLERROR 1
35773 _ACEOF
35774
35775 fi
35776
35777
35778
35779 fi
35780 done
35781
35782         fi
35783         fi
35784
35785         if test "$HAVE_DL_FUNCS" = 0; then
35786             if test "$HAVE_SHL_FUNCS" = 0; then
35787               if test "$USE_UNIX" = 1; then
35788                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35789 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35790                   wxUSE_DYNAMIC_LOADER=no
35791                   wxUSE_DYNLIB_CLASS=no
35792               else
35793                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35794 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35795               fi
35796             fi
35797         fi
35798     fi
35799 fi
35800
35801 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35802     cat >>confdefs.h <<\_ACEOF
35803 #define wxUSE_DYNAMIC_LOADER 1
35804 _ACEOF
35805
35806 fi
35807 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35808     cat >>confdefs.h <<\_ACEOF
35809 #define wxUSE_DYNLIB_CLASS 1
35810 _ACEOF
35811
35812 fi
35813
35814
35815
35816 if test "$wxUSE_PLUGINS" = "yes" ; then
35817     if test "$wxUSE_SHARED" = "no" ; then
35818         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35819 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35820         wxUSE_PLUGINS=no
35821     fi
35822     if test "$wxUSE_MONOLITHIC" = "yes" ; then
35823         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35824 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35825         wxUSE_PLUGINS=no
35826     fi
35827     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35828         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35829 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35830         wxUSE_PLUGINS=no
35831     fi
35832     if test "$wxUSE_PLUGINS" = "yes" ; then
35833         cat >>confdefs.h <<\_ACEOF
35834 #define wxUSE_PLUGINS 1
35835 _ACEOF
35836
35837     fi
35838 fi
35839
35840
35841 if test "$wxUSE_STL" = "yes"; then
35842   cat >>confdefs.h <<\_ACEOF
35843 #define wxUSE_STL 1
35844 _ACEOF
35845
35846 fi
35847
35848 if test "$wxUSE_APPLE_IEEE" = "yes"; then
35849   cat >>confdefs.h <<\_ACEOF
35850 #define wxUSE_APPLE_IEEE 1
35851 _ACEOF
35852
35853 fi
35854
35855 if test "$wxUSE_TIMER" = "yes"; then
35856   cat >>confdefs.h <<\_ACEOF
35857 #define wxUSE_TIMER 1
35858 _ACEOF
35859
35860 fi
35861
35862 WITH_PLUGIN_SDL=0
35863 if test "$wxUSE_SOUND" = "yes"; then
35864       if test "$USE_UNIX" = "1" ; then
35865
35866 for ac_header in sys/soundcard.h
35867 do
35868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35870   echo "$as_me:$LINENO: checking for $ac_header" >&5
35871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35873   echo $ECHO_N "(cached) $ECHO_C" >&6
35874 fi
35875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35877 else
35878   # Is the header compilable?
35879 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35881 cat >conftest.$ac_ext <<_ACEOF
35882 /* confdefs.h.  */
35883 _ACEOF
35884 cat confdefs.h >>conftest.$ac_ext
35885 cat >>conftest.$ac_ext <<_ACEOF
35886 /* end confdefs.h.  */
35887 $ac_includes_default
35888 #include <$ac_header>
35889 _ACEOF
35890 rm -f conftest.$ac_objext
35891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35892   (eval $ac_compile) 2>conftest.er1
35893   ac_status=$?
35894   grep -v '^ *+' conftest.er1 >conftest.err
35895   rm -f conftest.er1
35896   cat conftest.err >&5
35897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898   (exit $ac_status); } &&
35899          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35901   (eval $ac_try) 2>&5
35902   ac_status=$?
35903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904   (exit $ac_status); }; } &&
35905          { ac_try='test -s conftest.$ac_objext'
35906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35907   (eval $ac_try) 2>&5
35908   ac_status=$?
35909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910   (exit $ac_status); }; }; then
35911   ac_header_compiler=yes
35912 else
35913   echo "$as_me: failed program was:" >&5
35914 sed 's/^/| /' conftest.$ac_ext >&5
35915
35916 ac_header_compiler=no
35917 fi
35918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35920 echo "${ECHO_T}$ac_header_compiler" >&6
35921
35922 # Is the header present?
35923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35924 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
35932 _ACEOF
35933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35935   ac_status=$?
35936   grep -v '^ *+' conftest.er1 >conftest.err
35937   rm -f conftest.er1
35938   cat conftest.err >&5
35939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940   (exit $ac_status); } >/dev/null; then
35941   if test -s conftest.err; then
35942     ac_cpp_err=$ac_c_preproc_warn_flag
35943     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35944   else
35945     ac_cpp_err=
35946   fi
35947 else
35948   ac_cpp_err=yes
35949 fi
35950 if test -z "$ac_cpp_err"; then
35951   ac_header_preproc=yes
35952 else
35953   echo "$as_me: failed program was:" >&5
35954 sed 's/^/| /' conftest.$ac_ext >&5
35955
35956   ac_header_preproc=no
35957 fi
35958 rm -f conftest.err conftest.$ac_ext
35959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35960 echo "${ECHO_T}$ac_header_preproc" >&6
35961
35962 # So?  What about this header?
35963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35964   yes:no: )
35965     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35969     ac_header_preproc=yes
35970     ;;
35971   no:yes:* )
35972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35974     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35975 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35976     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35978     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35979 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35982     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35984     (
35985       cat <<\_ASBOX
35986 ## ----------------------------------------- ##
35987 ## Report this to wx-dev@lists.wxwidgets.org ##
35988 ## ----------------------------------------- ##
35989 _ASBOX
35990     ) |
35991       sed "s/^/$as_me: WARNING:     /" >&2
35992     ;;
35993 esac
35994 echo "$as_me:$LINENO: checking for $ac_header" >&5
35995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997   echo $ECHO_N "(cached) $ECHO_C" >&6
35998 else
35999   eval "$as_ac_Header=\$ac_header_preproc"
36000 fi
36001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36003
36004 fi
36005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36006   cat >>confdefs.h <<_ACEOF
36007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36008 _ACEOF
36009
36010 fi
36011
36012 done
36013
36014
36015     if test "$wxUSE_LIBSDL" != "no"; then
36016
36017 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36018 if test "${with_sdl_prefix+set}" = set; then
36019   withval="$with_sdl_prefix"
36020   sdl_prefix="$withval"
36021 else
36022   sdl_prefix=""
36023 fi;
36024
36025 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36026 if test "${with_sdl_exec_prefix+set}" = set; then
36027   withval="$with_sdl_exec_prefix"
36028   sdl_exec_prefix="$withval"
36029 else
36030   sdl_exec_prefix=""
36031 fi;
36032 # Check whether --enable-sdltest or --disable-sdltest was given.
36033 if test "${enable_sdltest+set}" = set; then
36034   enableval="$enable_sdltest"
36035
36036 else
36037   enable_sdltest=yes
36038 fi;
36039
36040   if test x$sdl_exec_prefix != x ; then
36041      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36042      if test x${SDL_CONFIG+set} != xset ; then
36043         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36044      fi
36045   fi
36046   if test x$sdl_prefix != x ; then
36047      sdl_args="$sdl_args --prefix=$sdl_prefix"
36048      if test x${SDL_CONFIG+set} != xset ; then
36049         SDL_CONFIG=$sdl_prefix/bin/sdl-config
36050      fi
36051   fi
36052
36053
36054   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36055   # Extract the first word of "sdl-config", so it can be a program name with args.
36056 set dummy sdl-config; ac_word=$2
36057 echo "$as_me:$LINENO: checking for $ac_word" >&5
36058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36059 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36060   echo $ECHO_N "(cached) $ECHO_C" >&6
36061 else
36062   case $SDL_CONFIG in
36063   [\\/]* | ?:[\\/]*)
36064   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36065   ;;
36066   *)
36067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36068 for as_dir in $PATH
36069 do
36070   IFS=$as_save_IFS
36071   test -z "$as_dir" && as_dir=.
36072   for ac_exec_ext in '' $ac_executable_extensions; do
36073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36074     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36076     break 2
36077   fi
36078 done
36079 done
36080
36081   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36082   ;;
36083 esac
36084 fi
36085 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36086
36087 if test -n "$SDL_CONFIG"; then
36088   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36089 echo "${ECHO_T}$SDL_CONFIG" >&6
36090 else
36091   echo "$as_me:$LINENO: result: no" >&5
36092 echo "${ECHO_T}no" >&6
36093 fi
36094
36095   min_sdl_version=1.2.0
36096   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36097 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36098   no_sdl=""
36099   if test "$SDL_CONFIG" = "no" ; then
36100     no_sdl=yes
36101   else
36102     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36103     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36104
36105     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36106            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36107     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36108            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36109     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36110            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36111     if test "x$enable_sdltest" = "xyes" ; then
36112       ac_save_CFLAGS="$CFLAGS"
36113       ac_save_CXXFLAGS="$CXXFLAGS"
36114       ac_save_LIBS="$LIBS"
36115       CFLAGS="$CFLAGS $SDL_CFLAGS"
36116       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36117       LIBS="$LIBS $SDL_LIBS"
36118       rm -f conf.sdltest
36119       if test "$cross_compiling" = yes; then
36120   echo $ac_n "cross compiling; assumed OK... $ac_c"
36121 else
36122   cat >conftest.$ac_ext <<_ACEOF
36123 /* confdefs.h.  */
36124 _ACEOF
36125 cat confdefs.h >>conftest.$ac_ext
36126 cat >>conftest.$ac_ext <<_ACEOF
36127 /* end confdefs.h.  */
36128
36129 #include <stdio.h>
36130 #include <stdlib.h>
36131 #include <string.h>
36132 #include "SDL.h"
36133
36134 char*
36135 my_strdup (char *str)
36136 {
36137   char *new_str;
36138
36139   if (str)
36140     {
36141       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36142       strcpy (new_str, str);
36143     }
36144   else
36145     new_str = NULL;
36146
36147   return new_str;
36148 }
36149
36150 int main (int argc, char *argv[])
36151 {
36152   int major, minor, micro;
36153   char *tmp_version;
36154
36155   /* This hangs on some systems (?)
36156   system ("touch conf.sdltest");
36157   */
36158   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36159
36160   /* HP/UX 9 (%@#!) writes to sscanf strings */
36161   tmp_version = my_strdup("$min_sdl_version");
36162   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36163      printf("%s, bad version string\n", "$min_sdl_version");
36164      exit(1);
36165    }
36166
36167    if (($sdl_major_version > major) ||
36168       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36169       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36170     {
36171       return 0;
36172     }
36173   else
36174     {
36175       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36176       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36177       printf("*** best to upgrade to the required version.\n");
36178       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36179       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36180       printf("*** config.cache before re-running configure\n");
36181       return 1;
36182     }
36183 }
36184
36185
36186 _ACEOF
36187 rm -f conftest$ac_exeext
36188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36189   (eval $ac_link) 2>&5
36190   ac_status=$?
36191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36194   (eval $ac_try) 2>&5
36195   ac_status=$?
36196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197   (exit $ac_status); }; }; then
36198   :
36199 else
36200   echo "$as_me: program exited with status $ac_status" >&5
36201 echo "$as_me: failed program was:" >&5
36202 sed 's/^/| /' conftest.$ac_ext >&5
36203
36204 ( exit $ac_status )
36205 no_sdl=yes
36206 fi
36207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36208 fi
36209        CFLAGS="$ac_save_CFLAGS"
36210        CXXFLAGS="$ac_save_CXXFLAGS"
36211        LIBS="$ac_save_LIBS"
36212      fi
36213   fi
36214   if test "x$no_sdl" = x ; then
36215      echo "$as_me:$LINENO: result: yes" >&5
36216 echo "${ECHO_T}yes" >&6
36217
36218                     EXTRALIBS_SDL="$SDL_LIBS"
36219                     CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36220                     cat >>confdefs.h <<\_ACEOF
36221 #define wxUSE_LIBSDL 1
36222 _ACEOF
36223
36224
36225   else
36226      echo "$as_me:$LINENO: result: no" >&5
36227 echo "${ECHO_T}no" >&6
36228      if test "$SDL_CONFIG" = "no" ; then
36229        echo "*** The sdl-config script installed by SDL could not be found"
36230        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36231        echo "*** your path, or set the SDL_CONFIG environment variable to the"
36232        echo "*** full path to sdl-config."
36233      else
36234        if test -f conf.sdltest ; then
36235         :
36236        else
36237           echo "*** Could not run SDL test program, checking why..."
36238           CFLAGS="$CFLAGS $SDL_CFLAGS"
36239           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36240           LIBS="$LIBS $SDL_LIBS"
36241           cat >conftest.$ac_ext <<_ACEOF
36242 /* confdefs.h.  */
36243 _ACEOF
36244 cat confdefs.h >>conftest.$ac_ext
36245 cat >>conftest.$ac_ext <<_ACEOF
36246 /* end confdefs.h.  */
36247
36248 #include <stdio.h>
36249 #include "SDL.h"
36250
36251 int main(int argc, char *argv[])
36252 { return 0; }
36253 #undef  main
36254 #define main K_and_R_C_main
36255
36256 int
36257 main ()
36258 {
36259  return 0;
36260   ;
36261   return 0;
36262 }
36263 _ACEOF
36264 rm -f conftest.$ac_objext conftest$ac_exeext
36265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36266   (eval $ac_link) 2>conftest.er1
36267   ac_status=$?
36268   grep -v '^ *+' conftest.er1 >conftest.err
36269   rm -f conftest.er1
36270   cat conftest.err >&5
36271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36272   (exit $ac_status); } &&
36273          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36275   (eval $ac_try) 2>&5
36276   ac_status=$?
36277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278   (exit $ac_status); }; } &&
36279          { ac_try='test -s conftest$ac_exeext'
36280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36281   (eval $ac_try) 2>&5
36282   ac_status=$?
36283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36284   (exit $ac_status); }; }; then
36285    echo "*** The test program compiled, but did not run. This usually means"
36286           echo "*** that the run-time linker is not finding SDL or finding the wrong"
36287           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36288           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36289           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
36290           echo "*** is required on your system"
36291           echo "***"
36292           echo "*** If you have an old version installed, it is best to remove it, although"
36293           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36294 else
36295   echo "$as_me: failed program was:" >&5
36296 sed 's/^/| /' conftest.$ac_ext >&5
36297
36298  echo "*** The test program failed to compile or link. See the file config.log for the"
36299           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36300           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36301           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36302 fi
36303 rm -f conftest.err conftest.$ac_objext \
36304       conftest$ac_exeext conftest.$ac_ext
36305           CFLAGS="$ac_save_CFLAGS"
36306           CXXFLAGS="$ac_save_CXXFLAGS"
36307           LIBS="$ac_save_LIBS"
36308        fi
36309      fi
36310      SDL_CFLAGS=""
36311      SDL_LIBS=""
36312      wxUSE_LIBSDL="no"
36313   fi
36314
36315
36316   rm -f conf.sdltest
36317
36318       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36319         WITH_PLUGIN_SDL=1
36320       fi
36321     fi
36322   fi
36323
36324   cat >>confdefs.h <<\_ACEOF
36325 #define wxUSE_SOUND 1
36326 _ACEOF
36327
36328   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36329 fi
36330
36331 if test "$WXGTK20" = 1; then
36332     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36333         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36334
36335
36336   succeeded=no
36337
36338   if test -z "$PKG_CONFIG"; then
36339     # Extract the first word of "pkg-config", so it can be a program name with args.
36340 set dummy pkg-config; ac_word=$2
36341 echo "$as_me:$LINENO: checking for $ac_word" >&5
36342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36343 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36344   echo $ECHO_N "(cached) $ECHO_C" >&6
36345 else
36346   case $PKG_CONFIG in
36347   [\\/]* | ?:[\\/]*)
36348   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36349   ;;
36350   *)
36351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36352 for as_dir in $PATH
36353 do
36354   IFS=$as_save_IFS
36355   test -z "$as_dir" && as_dir=.
36356   for ac_exec_ext in '' $ac_executable_extensions; do
36357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36358     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36360     break 2
36361   fi
36362 done
36363 done
36364
36365   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36366   ;;
36367 esac
36368 fi
36369 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36370
36371 if test -n "$PKG_CONFIG"; then
36372   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36373 echo "${ECHO_T}$PKG_CONFIG" >&6
36374 else
36375   echo "$as_me:$LINENO: result: no" >&5
36376 echo "${ECHO_T}no" >&6
36377 fi
36378
36379   fi
36380
36381   if test "$PKG_CONFIG" = "no" ; then
36382      echo "*** The pkg-config script could not be found. Make sure it is"
36383      echo "*** in your path, or set the PKG_CONFIG environment variable"
36384      echo "*** to the full path to pkg-config."
36385      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36386   else
36387      PKG_CONFIG_MIN_VERSION=0.9.0
36388      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
36389         echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36390 echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
36391
36392         if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
36393             echo "$as_me:$LINENO: result: yes" >&5
36394 echo "${ECHO_T}yes" >&6
36395             succeeded=yes
36396
36397             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36398 echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
36399             LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
36400             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36401 echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36402
36403             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36404 echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
36405             LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
36406             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36407 echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36408         else
36409             LIBGNOMEPRINTUI_CFLAGS=""
36410             LIBGNOMEPRINTUI_LIBS=""
36411             ## If we have a custom action on failure, don't print errors, but
36412             ## do set a variable so people can do so.
36413             LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
36414
36415         fi
36416
36417
36418
36419      else
36420         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36421         echo "*** See http://www.freedesktop.org/software/pkgconfig"
36422      fi
36423   fi
36424
36425   if test $succeeded = yes; then
36426
36427                         CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36428                         cat >>confdefs.h <<\_ACEOF
36429 #define wxUSE_LIBGNOMEPRINT 1
36430 _ACEOF
36431
36432
36433   else
36434
36435                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36436 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36437                         wxUSE_LIBGNOMEPRINT="no"
36438
36439
36440   fi
36441
36442         fi
36443     fi
36444 fi
36445
36446
36447 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36448   cat >>confdefs.h <<\_ACEOF
36449 #define wxUSE_CMDLINE_PARSER 1
36450 _ACEOF
36451
36452 fi
36453
36454 if test "$wxUSE_STOPWATCH" = "yes"; then
36455   cat >>confdefs.h <<\_ACEOF
36456 #define wxUSE_STOPWATCH 1
36457 _ACEOF
36458
36459 fi
36460
36461 if test "$wxUSE_DATETIME" = "yes"; then
36462   cat >>confdefs.h <<\_ACEOF
36463 #define wxUSE_DATETIME 1
36464 _ACEOF
36465
36466 fi
36467
36468 if test "$wxUSE_FILE" = "yes"; then
36469   cat >>confdefs.h <<\_ACEOF
36470 #define wxUSE_FILE 1
36471 _ACEOF
36472
36473 fi
36474
36475 if test "$wxUSE_FFILE" = "yes"; then
36476   cat >>confdefs.h <<\_ACEOF
36477 #define wxUSE_FFILE 1
36478 _ACEOF
36479
36480 fi
36481
36482 if test "$wxUSE_FILESYSTEM" = "yes"; then
36483   cat >>confdefs.h <<\_ACEOF
36484 #define wxUSE_FILESYSTEM 1
36485 _ACEOF
36486
36487 fi
36488
36489 if test "$wxUSE_FS_ZIP" = "yes"; then
36490   cat >>confdefs.h <<\_ACEOF
36491 #define wxUSE_FS_ZIP 1
36492 _ACEOF
36493
36494 fi
36495
36496 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
36497   cat >>confdefs.h <<\_ACEOF
36498 #define wxUSE_ARCHIVE_STREAMS 1
36499 _ACEOF
36500
36501 fi
36502
36503 if test "$wxUSE_ZIPSTREAM" = "yes"; then
36504   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
36505     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36506 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36507   elif test "$wxUSE_ZLIB" = "no"; then
36508     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36509 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36510   else
36511     cat >>confdefs.h <<\_ACEOF
36512 #define wxUSE_ZIPSTREAM 1
36513 _ACEOF
36514
36515   fi
36516 fi
36517
36518 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36519   cat >>confdefs.h <<\_ACEOF
36520 #define wxUSE_ON_FATAL_EXCEPTION 1
36521 _ACEOF
36522
36523 fi
36524
36525 if test "$wxUSE_STACKWALKER" = "yes"; then
36526     cat >>confdefs.h <<\_ACEOF
36527 #define wxUSE_STACKWALKER 1
36528 _ACEOF
36529
36530 fi
36531
36532 if test "$wxUSE_DEBUGREPORT" = "yes"; then
36533     if test "$USE_OS2" = "1"; then
36534         { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36535 echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36536         wxUSE_DEBUGREPORT=no
36537     else
36538         cat >>confdefs.h <<\_ACEOF
36539 #define wxUSE_DEBUGREPORT 1
36540 _ACEOF
36541
36542         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36543     fi
36544 fi
36545
36546 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36547   cat >>confdefs.h <<\_ACEOF
36548 #define wxUSE_SNGLINST_CHECKER 1
36549 _ACEOF
36550
36551 fi
36552
36553 if test "$wxUSE_BUSYINFO" = "yes"; then
36554   cat >>confdefs.h <<\_ACEOF
36555 #define wxUSE_BUSYINFO 1
36556 _ACEOF
36557
36558 fi
36559
36560 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36561   cat >>confdefs.h <<\_ACEOF
36562 #define wxUSE_STD_IOSTREAM 1
36563 _ACEOF
36564
36565 fi
36566
36567 if test "$wxUSE_STD_STRING" = "yes"; then
36568   cat >>confdefs.h <<\_ACEOF
36569 #define wxUSE_STD_STRING 1
36570 _ACEOF
36571
36572 fi
36573
36574 if test "$wxUSE_STDPATHS" = "yes"; then
36575   cat >>confdefs.h <<\_ACEOF
36576 #define wxUSE_STDPATHS 1
36577 _ACEOF
36578
36579 fi
36580
36581 if test "$wxUSE_TEXTBUFFER" = "yes"; then
36582     cat >>confdefs.h <<\_ACEOF
36583 #define wxUSE_TEXTBUFFER 1
36584 _ACEOF
36585
36586 fi
36587
36588 if test "$wxUSE_TEXTFILE" = "yes"; then
36589   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36590     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36591 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36592   else
36593     cat >>confdefs.h <<\_ACEOF
36594 #define wxUSE_TEXTFILE 1
36595 _ACEOF
36596
36597   fi
36598 fi
36599
36600 if test "$wxUSE_CONFIG" = "yes" ; then
36601   if test "$wxUSE_TEXTFILE" != "yes"; then
36602     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36603 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36604   else
36605     cat >>confdefs.h <<\_ACEOF
36606 #define wxUSE_CONFIG 1
36607 _ACEOF
36608
36609     cat >>confdefs.h <<\_ACEOF
36610 #define wxUSE_CONFIG_NATIVE 1
36611 _ACEOF
36612
36613     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36614   fi
36615 fi
36616
36617 if test "$wxUSE_INTL" = "yes" ; then
36618   if test "$wxUSE_FILE" != "yes"; then
36619     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36620 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36621   else
36622     cat >>confdefs.h <<\_ACEOF
36623 #define wxUSE_INTL 1
36624 _ACEOF
36625
36626     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36627     GUIDIST="$GUIDIST INTL_DIST"
36628   fi
36629 fi
36630
36631 if test "$wxUSE_LOG" = "yes"; then
36632   cat >>confdefs.h <<\_ACEOF
36633 #define wxUSE_LOG 1
36634 _ACEOF
36635
36636
36637     if test "$wxUSE_LOGGUI" = "yes"; then
36638       cat >>confdefs.h <<\_ACEOF
36639 #define wxUSE_LOGGUI 1
36640 _ACEOF
36641
36642     fi
36643
36644     if test "$wxUSE_LOGWINDOW" = "yes"; then
36645       cat >>confdefs.h <<\_ACEOF
36646 #define wxUSE_LOGWINDOW 1
36647 _ACEOF
36648
36649     fi
36650
36651     if test "$wxUSE_LOGDIALOG" = "yes"; then
36652       cat >>confdefs.h <<\_ACEOF
36653 #define wxUSE_LOG_DIALOG 1
36654 _ACEOF
36655
36656     fi
36657
36658         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
36659 fi
36660
36661 if test "$wxUSE_LONGLONG" = "yes"; then
36662   cat >>confdefs.h <<\_ACEOF
36663 #define wxUSE_LONGLONG 1
36664 _ACEOF
36665
36666 fi
36667
36668 if test "$wxUSE_GEOMETRY" = "yes"; then
36669   cat >>confdefs.h <<\_ACEOF
36670 #define wxUSE_GEOMETRY 1
36671 _ACEOF
36672
36673 fi
36674
36675 if test "$wxUSE_STREAMS" = "yes" ; then
36676   cat >>confdefs.h <<\_ACEOF
36677 #define wxUSE_STREAMS 1
36678 _ACEOF
36679
36680 fi
36681
36682
36683 if test "$wxUSE_DATETIME" = "yes"; then
36684
36685 for ac_func in strptime
36686 do
36687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36688 echo "$as_me:$LINENO: checking for $ac_func" >&5
36689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36690 if eval "test \"\${$as_ac_var+set}\" = set"; then
36691   echo $ECHO_N "(cached) $ECHO_C" >&6
36692 else
36693   cat >conftest.$ac_ext <<_ACEOF
36694 /* confdefs.h.  */
36695 _ACEOF
36696 cat confdefs.h >>conftest.$ac_ext
36697 cat >>conftest.$ac_ext <<_ACEOF
36698 /* end confdefs.h.  */
36699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36701 #define $ac_func innocuous_$ac_func
36702
36703 /* System header to define __stub macros and hopefully few prototypes,
36704     which can conflict with char $ac_func (); below.
36705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36706     <limits.h> exists even on freestanding compilers.  */
36707
36708 #ifdef __STDC__
36709 # include <limits.h>
36710 #else
36711 # include <assert.h>
36712 #endif
36713
36714 #undef $ac_func
36715
36716 /* Override any gcc2 internal prototype to avoid an error.  */
36717 #ifdef __cplusplus
36718 extern "C"
36719 {
36720 #endif
36721 /* We use char because int might match the return type of a gcc2
36722    builtin and then its argument prototype would still apply.  */
36723 char $ac_func ();
36724 /* The GNU C library defines this for functions which it implements
36725     to always fail with ENOSYS.  Some functions are actually named
36726     something starting with __ and the normal name is an alias.  */
36727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36728 choke me
36729 #else
36730 char (*f) () = $ac_func;
36731 #endif
36732 #ifdef __cplusplus
36733 }
36734 #endif
36735
36736 int
36737 main ()
36738 {
36739 return f != $ac_func;
36740   ;
36741   return 0;
36742 }
36743 _ACEOF
36744 rm -f conftest.$ac_objext conftest$ac_exeext
36745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36746   (eval $ac_link) 2>conftest.er1
36747   ac_status=$?
36748   grep -v '^ *+' conftest.er1 >conftest.err
36749   rm -f conftest.er1
36750   cat conftest.err >&5
36751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752   (exit $ac_status); } &&
36753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36755   (eval $ac_try) 2>&5
36756   ac_status=$?
36757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758   (exit $ac_status); }; } &&
36759          { ac_try='test -s conftest$ac_exeext'
36760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36761   (eval $ac_try) 2>&5
36762   ac_status=$?
36763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36764   (exit $ac_status); }; }; then
36765   eval "$as_ac_var=yes"
36766 else
36767   echo "$as_me: failed program was:" >&5
36768 sed 's/^/| /' conftest.$ac_ext >&5
36769
36770 eval "$as_ac_var=no"
36771 fi
36772 rm -f conftest.err conftest.$ac_objext \
36773       conftest$ac_exeext conftest.$ac_ext
36774 fi
36775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36777 if test `eval echo '${'$as_ac_var'}'` = yes; then
36778   cat >>confdefs.h <<_ACEOF
36779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36780 _ACEOF
36781
36782 fi
36783 done
36784
36785
36786             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36787 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36788 if test "${wx_cv_var_timezone+set}" = set; then
36789   echo $ECHO_N "(cached) $ECHO_C" >&6
36790 else
36791
36792                         cat >conftest.$ac_ext <<_ACEOF
36793 /* confdefs.h.  */
36794 _ACEOF
36795 cat confdefs.h >>conftest.$ac_ext
36796 cat >>conftest.$ac_ext <<_ACEOF
36797 /* end confdefs.h.  */
36798
36799                                 #include <time.h>
36800
36801 int
36802 main ()
36803 {
36804
36805                                 int tz;
36806                                 tz = timezone;
36807
36808   ;
36809   return 0;
36810 }
36811 _ACEOF
36812 rm -f conftest.$ac_objext
36813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36814   (eval $ac_compile) 2>conftest.er1
36815   ac_status=$?
36816   grep -v '^ *+' conftest.er1 >conftest.err
36817   rm -f conftest.er1
36818   cat conftest.err >&5
36819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36820   (exit $ac_status); } &&
36821          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36823   (eval $ac_try) 2>&5
36824   ac_status=$?
36825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826   (exit $ac_status); }; } &&
36827          { ac_try='test -s conftest.$ac_objext'
36828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36829   (eval $ac_try) 2>&5
36830   ac_status=$?
36831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36832   (exit $ac_status); }; }; then
36833
36834                                 wx_cv_var_timezone=timezone
36835
36836 else
36837   echo "$as_me: failed program was:" >&5
36838 sed 's/^/| /' conftest.$ac_ext >&5
36839
36840
36841                                 cat >conftest.$ac_ext <<_ACEOF
36842 /* confdefs.h.  */
36843 _ACEOF
36844 cat confdefs.h >>conftest.$ac_ext
36845 cat >>conftest.$ac_ext <<_ACEOF
36846 /* end confdefs.h.  */
36847
36848                                         #include <time.h>
36849
36850 int
36851 main ()
36852 {
36853
36854                                         int tz;
36855                                         tz = _timezone;
36856
36857   ;
36858   return 0;
36859 }
36860 _ACEOF
36861 rm -f conftest.$ac_objext
36862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36863   (eval $ac_compile) 2>conftest.er1
36864   ac_status=$?
36865   grep -v '^ *+' conftest.er1 >conftest.err
36866   rm -f conftest.er1
36867   cat conftest.err >&5
36868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869   (exit $ac_status); } &&
36870          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36872   (eval $ac_try) 2>&5
36873   ac_status=$?
36874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875   (exit $ac_status); }; } &&
36876          { ac_try='test -s conftest.$ac_objext'
36877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36878   (eval $ac_try) 2>&5
36879   ac_status=$?
36880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36881   (exit $ac_status); }; }; then
36882
36883                                         wx_cv_var_timezone=_timezone
36884
36885 else
36886   echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36888
36889
36890                                         cat >conftest.$ac_ext <<_ACEOF
36891 /* confdefs.h.  */
36892 _ACEOF
36893 cat confdefs.h >>conftest.$ac_ext
36894 cat >>conftest.$ac_ext <<_ACEOF
36895 /* end confdefs.h.  */
36896
36897                                                 #include <time.h>
36898
36899 int
36900 main ()
36901 {
36902
36903                                                 int tz;
36904                                                 tz = __timezone;
36905
36906   ;
36907   return 0;
36908 }
36909 _ACEOF
36910 rm -f conftest.$ac_objext
36911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36912   (eval $ac_compile) 2>conftest.er1
36913   ac_status=$?
36914   grep -v '^ *+' conftest.er1 >conftest.err
36915   rm -f conftest.er1
36916   cat conftest.err >&5
36917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918   (exit $ac_status); } &&
36919          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36921   (eval $ac_try) 2>&5
36922   ac_status=$?
36923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36924   (exit $ac_status); }; } &&
36925          { ac_try='test -s conftest.$ac_objext'
36926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36927   (eval $ac_try) 2>&5
36928   ac_status=$?
36929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930   (exit $ac_status); }; }; then
36931
36932                                                 wx_cv_var_timezone=__timezone
36933
36934 else
36935   echo "$as_me: failed program was:" >&5
36936 sed 's/^/| /' conftest.$ac_ext >&5
36937
36938
36939                                                 if test "$USE_DOS" = 0 ; then
36940                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36941 echo "$as_me: WARNING: no timezone variable" >&2;}
36942                                                 fi
36943
36944
36945 fi
36946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36947
36948
36949 fi
36950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36951
36952
36953 fi
36954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36955
36956
36957 fi
36958 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36959 echo "${ECHO_T}$wx_cv_var_timezone" >&6
36960
36961         if test "x$wx_cv_var_timezone" != x ; then
36962         cat >>confdefs.h <<_ACEOF
36963 #define WX_TIMEZONE $wx_cv_var_timezone
36964 _ACEOF
36965
36966     fi
36967
36968
36969 for ac_func in localtime
36970 do
36971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36972 echo "$as_me:$LINENO: checking for $ac_func" >&5
36973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36974 if eval "test \"\${$as_ac_var+set}\" = set"; then
36975   echo $ECHO_N "(cached) $ECHO_C" >&6
36976 else
36977   cat >conftest.$ac_ext <<_ACEOF
36978 /* confdefs.h.  */
36979 _ACEOF
36980 cat confdefs.h >>conftest.$ac_ext
36981 cat >>conftest.$ac_ext <<_ACEOF
36982 /* end confdefs.h.  */
36983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36985 #define $ac_func innocuous_$ac_func
36986
36987 /* System header to define __stub macros and hopefully few prototypes,
36988     which can conflict with char $ac_func (); below.
36989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36990     <limits.h> exists even on freestanding compilers.  */
36991
36992 #ifdef __STDC__
36993 # include <limits.h>
36994 #else
36995 # include <assert.h>
36996 #endif
36997
36998 #undef $ac_func
36999
37000 /* Override any gcc2 internal prototype to avoid an error.  */
37001 #ifdef __cplusplus
37002 extern "C"
37003 {
37004 #endif
37005 /* We use char because int might match the return type of a gcc2
37006    builtin and then its argument prototype would still apply.  */
37007 char $ac_func ();
37008 /* The GNU C library defines this for functions which it implements
37009     to always fail with ENOSYS.  Some functions are actually named
37010     something starting with __ and the normal name is an alias.  */
37011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37012 choke me
37013 #else
37014 char (*f) () = $ac_func;
37015 #endif
37016 #ifdef __cplusplus
37017 }
37018 #endif
37019
37020 int
37021 main ()
37022 {
37023 return f != $ac_func;
37024   ;
37025   return 0;
37026 }
37027 _ACEOF
37028 rm -f conftest.$ac_objext conftest$ac_exeext
37029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37030   (eval $ac_link) 2>conftest.er1
37031   ac_status=$?
37032   grep -v '^ *+' conftest.er1 >conftest.err
37033   rm -f conftest.er1
37034   cat conftest.err >&5
37035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036   (exit $ac_status); } &&
37037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37039   (eval $ac_try) 2>&5
37040   ac_status=$?
37041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37042   (exit $ac_status); }; } &&
37043          { ac_try='test -s conftest$ac_exeext'
37044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37045   (eval $ac_try) 2>&5
37046   ac_status=$?
37047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048   (exit $ac_status); }; }; then
37049   eval "$as_ac_var=yes"
37050 else
37051   echo "$as_me: failed program was:" >&5
37052 sed 's/^/| /' conftest.$ac_ext >&5
37053
37054 eval "$as_ac_var=no"
37055 fi
37056 rm -f conftest.err conftest.$ac_objext \
37057       conftest$ac_exeext conftest.$ac_ext
37058 fi
37059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37061 if test `eval echo '${'$as_ac_var'}'` = yes; then
37062   cat >>confdefs.h <<_ACEOF
37063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37064 _ACEOF
37065
37066 fi
37067 done
37068
37069
37070     if test "$ac_cv_func_localtime" = "yes"; then
37071         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37072 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37073 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37074   echo $ECHO_N "(cached) $ECHO_C" >&6
37075 else
37076
37077             cat >conftest.$ac_ext <<_ACEOF
37078 /* confdefs.h.  */
37079 _ACEOF
37080 cat confdefs.h >>conftest.$ac_ext
37081 cat >>conftest.$ac_ext <<_ACEOF
37082 /* end confdefs.h.  */
37083
37084                     #include <time.h>
37085
37086 int
37087 main ()
37088 {
37089
37090                     struct tm tm;
37091                     tm.tm_gmtoff++;
37092
37093   ;
37094   return 0;
37095 }
37096 _ACEOF
37097 rm -f conftest.$ac_objext
37098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37099   (eval $ac_compile) 2>conftest.er1
37100   ac_status=$?
37101   grep -v '^ *+' conftest.er1 >conftest.err
37102   rm -f conftest.er1
37103   cat conftest.err >&5
37104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105   (exit $ac_status); } &&
37106          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108   (eval $ac_try) 2>&5
37109   ac_status=$?
37110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111   (exit $ac_status); }; } &&
37112          { ac_try='test -s conftest.$ac_objext'
37113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37114   (eval $ac_try) 2>&5
37115   ac_status=$?
37116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117   (exit $ac_status); }; }; then
37118
37119                     wx_cv_struct_tm_has_gmtoff=yes
37120
37121 else
37122   echo "$as_me: failed program was:" >&5
37123 sed 's/^/| /' conftest.$ac_ext >&5
37124
37125 wx_cv_struct_tm_has_gmtoff=no
37126
37127 fi
37128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37129
37130 fi
37131 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37132 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37133     fi
37134
37135     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37136         cat >>confdefs.h <<\_ACEOF
37137 #define WX_GMTOFF_IN_TM 1
37138 _ACEOF
37139
37140     fi
37141
37142
37143
37144 for ac_func in gettimeofday ftime
37145 do
37146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37147 echo "$as_me:$LINENO: checking for $ac_func" >&5
37148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37149 if eval "test \"\${$as_ac_var+set}\" = set"; then
37150   echo $ECHO_N "(cached) $ECHO_C" >&6
37151 else
37152   cat >conftest.$ac_ext <<_ACEOF
37153 /* confdefs.h.  */
37154 _ACEOF
37155 cat confdefs.h >>conftest.$ac_ext
37156 cat >>conftest.$ac_ext <<_ACEOF
37157 /* end confdefs.h.  */
37158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37160 #define $ac_func innocuous_$ac_func
37161
37162 /* System header to define __stub macros and hopefully few prototypes,
37163     which can conflict with char $ac_func (); below.
37164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37165     <limits.h> exists even on freestanding compilers.  */
37166
37167 #ifdef __STDC__
37168 # include <limits.h>
37169 #else
37170 # include <assert.h>
37171 #endif
37172
37173 #undef $ac_func
37174
37175 /* Override any gcc2 internal prototype to avoid an error.  */
37176 #ifdef __cplusplus
37177 extern "C"
37178 {
37179 #endif
37180 /* We use char because int might match the return type of a gcc2
37181    builtin and then its argument prototype would still apply.  */
37182 char $ac_func ();
37183 /* The GNU C library defines this for functions which it implements
37184     to always fail with ENOSYS.  Some functions are actually named
37185     something starting with __ and the normal name is an alias.  */
37186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37187 choke me
37188 #else
37189 char (*f) () = $ac_func;
37190 #endif
37191 #ifdef __cplusplus
37192 }
37193 #endif
37194
37195 int
37196 main ()
37197 {
37198 return f != $ac_func;
37199   ;
37200   return 0;
37201 }
37202 _ACEOF
37203 rm -f conftest.$ac_objext conftest$ac_exeext
37204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37205   (eval $ac_link) 2>conftest.er1
37206   ac_status=$?
37207   grep -v '^ *+' conftest.er1 >conftest.err
37208   rm -f conftest.er1
37209   cat conftest.err >&5
37210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211   (exit $ac_status); } &&
37212          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37214   (eval $ac_try) 2>&5
37215   ac_status=$?
37216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217   (exit $ac_status); }; } &&
37218          { ac_try='test -s conftest$ac_exeext'
37219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37220   (eval $ac_try) 2>&5
37221   ac_status=$?
37222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223   (exit $ac_status); }; }; then
37224   eval "$as_ac_var=yes"
37225 else
37226   echo "$as_me: failed program was:" >&5
37227 sed 's/^/| /' conftest.$ac_ext >&5
37228
37229 eval "$as_ac_var=no"
37230 fi
37231 rm -f conftest.err conftest.$ac_objext \
37232       conftest$ac_exeext conftest.$ac_ext
37233 fi
37234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37236 if test `eval echo '${'$as_ac_var'}'` = yes; then
37237   cat >>confdefs.h <<_ACEOF
37238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37239 _ACEOF
37240  break
37241 fi
37242 done
37243
37244
37245     if test "$ac_cv_func_gettimeofday" = "yes"; then
37246         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37247 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37248 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37249   echo $ECHO_N "(cached) $ECHO_C" >&6
37250 else
37251
37252
37253
37254             ac_ext=cc
37255 ac_cpp='$CXXCPP $CPPFLAGS'
37256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37259
37260
37261             cat >conftest.$ac_ext <<_ACEOF
37262 /* confdefs.h.  */
37263 _ACEOF
37264 cat confdefs.h >>conftest.$ac_ext
37265 cat >>conftest.$ac_ext <<_ACEOF
37266 /* end confdefs.h.  */
37267
37268                     #include <sys/time.h>
37269                     #include <unistd.h>
37270
37271 int
37272 main ()
37273 {
37274
37275                     struct timeval tv;
37276                     gettimeofday(&tv, NULL);
37277
37278   ;
37279   return 0;
37280 }
37281 _ACEOF
37282 rm -f conftest.$ac_objext
37283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37284   (eval $ac_compile) 2>conftest.er1
37285   ac_status=$?
37286   grep -v '^ *+' conftest.er1 >conftest.err
37287   rm -f conftest.er1
37288   cat conftest.err >&5
37289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37290   (exit $ac_status); } &&
37291          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37293   (eval $ac_try) 2>&5
37294   ac_status=$?
37295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296   (exit $ac_status); }; } &&
37297          { ac_try='test -s conftest.$ac_objext'
37298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37299   (eval $ac_try) 2>&5
37300   ac_status=$?
37301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302   (exit $ac_status); }; }; then
37303   wx_cv_func_gettimeofday_has_2_args=yes
37304 else
37305   echo "$as_me: failed program was:" >&5
37306 sed 's/^/| /' conftest.$ac_ext >&5
37307
37308 cat >conftest.$ac_ext <<_ACEOF
37309 /* confdefs.h.  */
37310 _ACEOF
37311 cat confdefs.h >>conftest.$ac_ext
37312 cat >>conftest.$ac_ext <<_ACEOF
37313 /* end confdefs.h.  */
37314
37315                         #include <sys/time.h>
37316                         #include <unistd.h>
37317
37318 int
37319 main ()
37320 {
37321
37322                         struct timeval tv;
37323                         gettimeofday(&tv);
37324
37325   ;
37326   return 0;
37327 }
37328 _ACEOF
37329 rm -f conftest.$ac_objext
37330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37331   (eval $ac_compile) 2>conftest.er1
37332   ac_status=$?
37333   grep -v '^ *+' conftest.er1 >conftest.err
37334   rm -f conftest.er1
37335   cat conftest.err >&5
37336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37337   (exit $ac_status); } &&
37338          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37340   (eval $ac_try) 2>&5
37341   ac_status=$?
37342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343   (exit $ac_status); }; } &&
37344          { ac_try='test -s conftest.$ac_objext'
37345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37346   (eval $ac_try) 2>&5
37347   ac_status=$?
37348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37349   (exit $ac_status); }; }; then
37350   wx_cv_func_gettimeofday_has_2_args=no
37351 else
37352   echo "$as_me: failed program was:" >&5
37353 sed 's/^/| /' conftest.$ac_ext >&5
37354
37355
37356                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37357 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37358                         wx_cv_func_gettimeofday_has_2_args=unknown
37359
37360
37361 fi
37362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37363
37364 fi
37365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37366             ac_ext=c
37367 ac_cpp='$CPP $CPPFLAGS'
37368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37371
37372
37373 fi
37374 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37375 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37376
37377         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37378             cat >>confdefs.h <<\_ACEOF
37379 #define WX_GETTIMEOFDAY_NO_TZ 1
37380 _ACEOF
37381
37382         fi
37383     fi
37384
37385     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37386 fi
37387
37388
37389 if test "$wxUSE_SOCKETS" = "yes"; then
37390     if test "$wxUSE_MGL" = "1"; then
37391         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37392 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37393         wxUSE_SOCKETS="no"
37394     fi
37395 fi
37396
37397 if test "$wxUSE_SOCKETS" = "yes"; then
37398         if test "$TOOLKIT" != "MSW"; then
37399                 echo "$as_me:$LINENO: checking for socket" >&5
37400 echo $ECHO_N "checking for socket... $ECHO_C" >&6
37401 if test "${ac_cv_func_socket+set}" = set; then
37402   echo $ECHO_N "(cached) $ECHO_C" >&6
37403 else
37404   cat >conftest.$ac_ext <<_ACEOF
37405 /* confdefs.h.  */
37406 _ACEOF
37407 cat confdefs.h >>conftest.$ac_ext
37408 cat >>conftest.$ac_ext <<_ACEOF
37409 /* end confdefs.h.  */
37410 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
37411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37412 #define socket innocuous_socket
37413
37414 /* System header to define __stub macros and hopefully few prototypes,
37415     which can conflict with char socket (); below.
37416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37417     <limits.h> exists even on freestanding compilers.  */
37418
37419 #ifdef __STDC__
37420 # include <limits.h>
37421 #else
37422 # include <assert.h>
37423 #endif
37424
37425 #undef socket
37426
37427 /* Override any gcc2 internal prototype to avoid an error.  */
37428 #ifdef __cplusplus
37429 extern "C"
37430 {
37431 #endif
37432 /* We use char because int might match the return type of a gcc2
37433    builtin and then its argument prototype would still apply.  */
37434 char socket ();
37435 /* The GNU C library defines this for functions which it implements
37436     to always fail with ENOSYS.  Some functions are actually named
37437     something starting with __ and the normal name is an alias.  */
37438 #if defined (__stub_socket) || defined (__stub___socket)
37439 choke me
37440 #else
37441 char (*f) () = socket;
37442 #endif
37443 #ifdef __cplusplus
37444 }
37445 #endif
37446
37447 int
37448 main ()
37449 {
37450 return f != socket;
37451   ;
37452   return 0;
37453 }
37454 _ACEOF
37455 rm -f conftest.$ac_objext conftest$ac_exeext
37456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37457   (eval $ac_link) 2>conftest.er1
37458   ac_status=$?
37459   grep -v '^ *+' conftest.er1 >conftest.err
37460   rm -f conftest.er1
37461   cat conftest.err >&5
37462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37463   (exit $ac_status); } &&
37464          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37466   (eval $ac_try) 2>&5
37467   ac_status=$?
37468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37469   (exit $ac_status); }; } &&
37470          { ac_try='test -s conftest$ac_exeext'
37471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37472   (eval $ac_try) 2>&5
37473   ac_status=$?
37474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475   (exit $ac_status); }; }; then
37476   ac_cv_func_socket=yes
37477 else
37478   echo "$as_me: failed program was:" >&5
37479 sed 's/^/| /' conftest.$ac_ext >&5
37480
37481 ac_cv_func_socket=no
37482 fi
37483 rm -f conftest.err conftest.$ac_objext \
37484       conftest$ac_exeext conftest.$ac_ext
37485 fi
37486 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37487 echo "${ECHO_T}$ac_cv_func_socket" >&6
37488 if test $ac_cv_func_socket = yes; then
37489   :
37490 else
37491
37492                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37493 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37494 if test "${ac_cv_lib_socket_socket+set}" = set; then
37495   echo $ECHO_N "(cached) $ECHO_C" >&6
37496 else
37497   ac_check_lib_save_LIBS=$LIBS
37498 LIBS="-lsocket  $LIBS"
37499 cat >conftest.$ac_ext <<_ACEOF
37500 /* confdefs.h.  */
37501 _ACEOF
37502 cat confdefs.h >>conftest.$ac_ext
37503 cat >>conftest.$ac_ext <<_ACEOF
37504 /* end confdefs.h.  */
37505
37506 /* Override any gcc2 internal prototype to avoid an error.  */
37507 #ifdef __cplusplus
37508 extern "C"
37509 #endif
37510 /* We use char because int might match the return type of a gcc2
37511    builtin and then its argument prototype would still apply.  */
37512 char socket ();
37513 int
37514 main ()
37515 {
37516 socket ();
37517   ;
37518   return 0;
37519 }
37520 _ACEOF
37521 rm -f conftest.$ac_objext conftest$ac_exeext
37522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37523   (eval $ac_link) 2>conftest.er1
37524   ac_status=$?
37525   grep -v '^ *+' conftest.er1 >conftest.err
37526   rm -f conftest.er1
37527   cat conftest.err >&5
37528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37529   (exit $ac_status); } &&
37530          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37532   (eval $ac_try) 2>&5
37533   ac_status=$?
37534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37535   (exit $ac_status); }; } &&
37536          { ac_try='test -s conftest$ac_exeext'
37537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37538   (eval $ac_try) 2>&5
37539   ac_status=$?
37540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541   (exit $ac_status); }; }; then
37542   ac_cv_lib_socket_socket=yes
37543 else
37544   echo "$as_me: failed program was:" >&5
37545 sed 's/^/| /' conftest.$ac_ext >&5
37546
37547 ac_cv_lib_socket_socket=no
37548 fi
37549 rm -f conftest.err conftest.$ac_objext \
37550       conftest$ac_exeext conftest.$ac_ext
37551 LIBS=$ac_check_lib_save_LIBS
37552 fi
37553 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37554 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37555 if test $ac_cv_lib_socket_socket = yes; then
37556   if test "$INET_LINK" != " -lsocket"; then
37557                         INET_LINK="$INET_LINK -lsocket"
37558                     fi
37559 else
37560
37561                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37562 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37563                         wxUSE_SOCKETS=no
37564
37565
37566 fi
37567
37568
37569
37570 fi
37571
37572     fi
37573 fi
37574
37575 if test "$wxUSE_SOCKETS" = "yes" ; then
37576                 if test "$TOOLKIT" != "MSW"; then
37577                                         ac_ext=cc
37578 ac_cpp='$CXXCPP $CPPFLAGS'
37579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37582
37583         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
37584 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37585 if test "${wx_cv_type_getsockname3+set}" = set; then
37586   echo $ECHO_N "(cached) $ECHO_C" >&6
37587 else
37588
37589                 cat >conftest.$ac_ext <<_ACEOF
37590 /* confdefs.h.  */
37591 _ACEOF
37592 cat confdefs.h >>conftest.$ac_ext
37593 cat >>conftest.$ac_ext <<_ACEOF
37594 /* end confdefs.h.  */
37595
37596                         #include <sys/types.h>
37597                         #include <sys/socket.h>
37598
37599 int
37600 main ()
37601 {
37602
37603                         socklen_t len;
37604                         getsockname(0, 0, &len);
37605
37606   ;
37607   return 0;
37608 }
37609 _ACEOF
37610 rm -f conftest.$ac_objext
37611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37612   (eval $ac_compile) 2>conftest.er1
37613   ac_status=$?
37614   grep -v '^ *+' conftest.er1 >conftest.err
37615   rm -f conftest.er1
37616   cat conftest.err >&5
37617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618   (exit $ac_status); } &&
37619          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37621   (eval $ac_try) 2>&5
37622   ac_status=$?
37623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624   (exit $ac_status); }; } &&
37625          { ac_try='test -s conftest.$ac_objext'
37626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37627   (eval $ac_try) 2>&5
37628   ac_status=$?
37629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630   (exit $ac_status); }; }; then
37631   wx_cv_type_getsockname3=socklen_t
37632 else
37633   echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37635
37636
37637                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
37638                         if test "$GCC" = yes ; then
37639                             CFLAGS="$CFLAGS -Werror"
37640                         fi
37641
37642                         cat >conftest.$ac_ext <<_ACEOF
37643 /* confdefs.h.  */
37644 _ACEOF
37645 cat confdefs.h >>conftest.$ac_ext
37646 cat >>conftest.$ac_ext <<_ACEOF
37647 /* end confdefs.h.  */
37648
37649                                 #include <sys/types.h>
37650                                 #include <sys/socket.h>
37651
37652 int
37653 main ()
37654 {
37655
37656                                 size_t len;
37657                                 getsockname(0, 0, &len);
37658
37659   ;
37660   return 0;
37661 }
37662 _ACEOF
37663 rm -f conftest.$ac_objext
37664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37665   (eval $ac_compile) 2>conftest.er1
37666   ac_status=$?
37667   grep -v '^ *+' conftest.er1 >conftest.err
37668   rm -f conftest.er1
37669   cat conftest.err >&5
37670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671   (exit $ac_status); } &&
37672          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674   (eval $ac_try) 2>&5
37675   ac_status=$?
37676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677   (exit $ac_status); }; } &&
37678          { ac_try='test -s conftest.$ac_objext'
37679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37680   (eval $ac_try) 2>&5
37681   ac_status=$?
37682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683   (exit $ac_status); }; }; then
37684   wx_cv_type_getsockname3=size_t
37685 else
37686   echo "$as_me: failed program was:" >&5
37687 sed 's/^/| /' conftest.$ac_ext >&5
37688
37689 cat >conftest.$ac_ext <<_ACEOF
37690 /* confdefs.h.  */
37691 _ACEOF
37692 cat confdefs.h >>conftest.$ac_ext
37693 cat >>conftest.$ac_ext <<_ACEOF
37694 /* end confdefs.h.  */
37695
37696                                     #include <sys/types.h>
37697                                     #include <sys/socket.h>
37698
37699 int
37700 main ()
37701 {
37702
37703                                     int len;
37704                                     getsockname(0, 0, &len);
37705
37706   ;
37707   return 0;
37708 }
37709 _ACEOF
37710 rm -f conftest.$ac_objext
37711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37712   (eval $ac_compile) 2>conftest.er1
37713   ac_status=$?
37714   grep -v '^ *+' conftest.er1 >conftest.err
37715   rm -f conftest.er1
37716   cat conftest.err >&5
37717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718   (exit $ac_status); } &&
37719          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37721   (eval $ac_try) 2>&5
37722   ac_status=$?
37723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724   (exit $ac_status); }; } &&
37725          { ac_try='test -s conftest.$ac_objext'
37726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37727   (eval $ac_try) 2>&5
37728   ac_status=$?
37729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37730   (exit $ac_status); }; }; then
37731   wx_cv_type_getsockname3=int
37732 else
37733   echo "$as_me: failed program was:" >&5
37734 sed 's/^/| /' conftest.$ac_ext >&5
37735
37736 wx_cv_type_getsockname3=unknown
37737
37738 fi
37739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37740
37741 fi
37742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37743
37744                         CFLAGS="$CFLAGS_OLD"
37745
37746
37747 fi
37748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37749
37750 fi
37751 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37752 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37753
37754         if test "$wx_cv_type_getsockname3" = "unknown"; then
37755             wxUSE_SOCKETS=no
37756             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37757 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37758         else
37759             cat >>confdefs.h <<_ACEOF
37760 #define SOCKLEN_T $wx_cv_type_getsockname3
37761 _ACEOF
37762
37763         fi
37764                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37765 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37766 if test "${wx_cv_type_getsockopt5+set}" = set; then
37767   echo $ECHO_N "(cached) $ECHO_C" >&6
37768 else
37769
37770                 cat >conftest.$ac_ext <<_ACEOF
37771 /* confdefs.h.  */
37772 _ACEOF
37773 cat confdefs.h >>conftest.$ac_ext
37774 cat >>conftest.$ac_ext <<_ACEOF
37775 /* end confdefs.h.  */
37776
37777                         #include <sys/types.h>
37778                         #include <sys/socket.h>
37779
37780 int
37781 main ()
37782 {
37783
37784                         socklen_t len;
37785                         getsockopt(0, 0, 0, 0, &len);
37786
37787   ;
37788   return 0;
37789 }
37790 _ACEOF
37791 rm -f conftest.$ac_objext
37792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37793   (eval $ac_compile) 2>conftest.er1
37794   ac_status=$?
37795   grep -v '^ *+' conftest.er1 >conftest.err
37796   rm -f conftest.er1
37797   cat conftest.err >&5
37798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799   (exit $ac_status); } &&
37800          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37802   (eval $ac_try) 2>&5
37803   ac_status=$?
37804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37805   (exit $ac_status); }; } &&
37806          { ac_try='test -s conftest.$ac_objext'
37807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37808   (eval $ac_try) 2>&5
37809   ac_status=$?
37810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811   (exit $ac_status); }; }; then
37812   wx_cv_type_getsockopt5=socklen_t
37813 else
37814   echo "$as_me: failed program was:" >&5
37815 sed 's/^/| /' conftest.$ac_ext >&5
37816
37817
37818                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
37819                         if test "$GCC" = yes ; then
37820                             CFLAGS="$CFLAGS -Werror"
37821                         fi
37822
37823                         cat >conftest.$ac_ext <<_ACEOF
37824 /* confdefs.h.  */
37825 _ACEOF
37826 cat confdefs.h >>conftest.$ac_ext
37827 cat >>conftest.$ac_ext <<_ACEOF
37828 /* end confdefs.h.  */
37829
37830                                 #include <sys/types.h>
37831                                 #include <sys/socket.h>
37832
37833 int
37834 main ()
37835 {
37836
37837                                 size_t len;
37838                                 getsockopt(0, 0, 0, 0, &len);
37839
37840   ;
37841   return 0;
37842 }
37843 _ACEOF
37844 rm -f conftest.$ac_objext
37845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37846   (eval $ac_compile) 2>conftest.er1
37847   ac_status=$?
37848   grep -v '^ *+' conftest.er1 >conftest.err
37849   rm -f conftest.er1
37850   cat conftest.err >&5
37851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852   (exit $ac_status); } &&
37853          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37855   (eval $ac_try) 2>&5
37856   ac_status=$?
37857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858   (exit $ac_status); }; } &&
37859          { ac_try='test -s conftest.$ac_objext'
37860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37861   (eval $ac_try) 2>&5
37862   ac_status=$?
37863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864   (exit $ac_status); }; }; then
37865   wx_cv_type_getsockopt5=size_t
37866 else
37867   echo "$as_me: failed program was:" >&5
37868 sed 's/^/| /' conftest.$ac_ext >&5
37869
37870 cat >conftest.$ac_ext <<_ACEOF
37871 /* confdefs.h.  */
37872 _ACEOF
37873 cat confdefs.h >>conftest.$ac_ext
37874 cat >>conftest.$ac_ext <<_ACEOF
37875 /* end confdefs.h.  */
37876
37877                                     #include <sys/types.h>
37878                                     #include <sys/socket.h>
37879
37880 int
37881 main ()
37882 {
37883
37884                                     int len;
37885                                     getsockopt(0, 0, 0, 0, &len);
37886
37887   ;
37888   return 0;
37889 }
37890 _ACEOF
37891 rm -f conftest.$ac_objext
37892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37893   (eval $ac_compile) 2>conftest.er1
37894   ac_status=$?
37895   grep -v '^ *+' conftest.er1 >conftest.err
37896   rm -f conftest.er1
37897   cat conftest.err >&5
37898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37899   (exit $ac_status); } &&
37900          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37902   (eval $ac_try) 2>&5
37903   ac_status=$?
37904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37905   (exit $ac_status); }; } &&
37906          { ac_try='test -s conftest.$ac_objext'
37907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37908   (eval $ac_try) 2>&5
37909   ac_status=$?
37910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37911   (exit $ac_status); }; }; then
37912   wx_cv_type_getsockopt5=int
37913 else
37914   echo "$as_me: failed program was:" >&5
37915 sed 's/^/| /' conftest.$ac_ext >&5
37916
37917 wx_cv_type_getsockopt5=unknown
37918
37919 fi
37920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37921
37922 fi
37923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37924
37925                         CFLAGS="$CFLAGS_OLD"
37926
37927
37928 fi
37929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37930
37931 fi
37932 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37933 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37934
37935         if test "$wx_cv_type_getsockopt5" = "unknown"; then
37936             wxUSE_SOCKETS=no
37937             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37938 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37939         else
37940             cat >>confdefs.h <<_ACEOF
37941 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
37942 _ACEOF
37943
37944         fi
37945         ac_ext=c
37946 ac_cpp='$CPP $CPPFLAGS'
37947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37950
37951     fi
37952 fi
37953
37954 if test "$wxUSE_SOCKETS" = "yes" ; then
37955     cat >>confdefs.h <<\_ACEOF
37956 #define wxUSE_SOCKETS 1
37957 _ACEOF
37958
37959     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37960 fi
37961
37962 if test "$wxUSE_PROTOCOL" = "yes"; then
37963     if test "$wxUSE_SOCKETS" != "yes"; then
37964         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37965 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37966         wxUSE_PROTOCOL=no
37967     fi
37968 fi
37969
37970 if test "$wxUSE_PROTOCOL" = "yes"; then
37971     cat >>confdefs.h <<\_ACEOF
37972 #define wxUSE_PROTOCOL 1
37973 _ACEOF
37974
37975
37976     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37977         cat >>confdefs.h <<\_ACEOF
37978 #define wxUSE_PROTOCOL_HTTP 1
37979 _ACEOF
37980
37981     fi
37982     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37983         cat >>confdefs.h <<\_ACEOF
37984 #define wxUSE_PROTOCOL_FTP 1
37985 _ACEOF
37986
37987     fi
37988     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37989         cat >>confdefs.h <<\_ACEOF
37990 #define wxUSE_PROTOCOL_FILE 1
37991 _ACEOF
37992
37993     fi
37994 else
37995     if test "$wxUSE_FS_INET" = "yes"; then
37996         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37997 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37998         wxUSE_FS_INET="no"
37999     fi
38000 fi
38001
38002 if test "$wxUSE_URL" = "yes"; then
38003     if test "$wxUSE_PROTOCOL" != "yes"; then
38004         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38005 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38006         wxUSE_URL=no
38007     fi
38008     if test "$wxUSE_URL" = "yes"; then
38009         cat >>confdefs.h <<\_ACEOF
38010 #define wxUSE_URL 1
38011 _ACEOF
38012
38013     fi
38014 fi
38015
38016 if test "$wxUSE_FS_INET" = "yes"; then
38017   cat >>confdefs.h <<\_ACEOF
38018 #define wxUSE_FS_INET 1
38019 _ACEOF
38020
38021 fi
38022
38023
38024 if test "$wxUSE_GUI" = "yes"; then
38025           if test "$wxUSE_JOYSTICK" = "yes"; then
38026
38027                 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
38028
38029 for ac_header in linux/joystick.h
38030 do
38031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38033   echo "$as_me:$LINENO: checking for $ac_header" >&5
38034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38036   echo $ECHO_N "(cached) $ECHO_C" >&6
38037 fi
38038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38040 else
38041   # Is the header compilable?
38042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38044 cat >conftest.$ac_ext <<_ACEOF
38045 /* confdefs.h.  */
38046 _ACEOF
38047 cat confdefs.h >>conftest.$ac_ext
38048 cat >>conftest.$ac_ext <<_ACEOF
38049 /* end confdefs.h.  */
38050 $ac_includes_default
38051 #include <$ac_header>
38052 _ACEOF
38053 rm -f conftest.$ac_objext
38054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38055   (eval $ac_compile) 2>conftest.er1
38056   ac_status=$?
38057   grep -v '^ *+' conftest.er1 >conftest.err
38058   rm -f conftest.er1
38059   cat conftest.err >&5
38060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38061   (exit $ac_status); } &&
38062          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38064   (eval $ac_try) 2>&5
38065   ac_status=$?
38066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38067   (exit $ac_status); }; } &&
38068          { ac_try='test -s conftest.$ac_objext'
38069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38070   (eval $ac_try) 2>&5
38071   ac_status=$?
38072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073   (exit $ac_status); }; }; then
38074   ac_header_compiler=yes
38075 else
38076   echo "$as_me: failed program was:" >&5
38077 sed 's/^/| /' conftest.$ac_ext >&5
38078
38079 ac_header_compiler=no
38080 fi
38081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38083 echo "${ECHO_T}$ac_header_compiler" >&6
38084
38085 # Is the header present?
38086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38087 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
38095 _ACEOF
38096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38098   ac_status=$?
38099   grep -v '^ *+' conftest.er1 >conftest.err
38100   rm -f conftest.er1
38101   cat conftest.err >&5
38102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103   (exit $ac_status); } >/dev/null; then
38104   if test -s conftest.err; then
38105     ac_cpp_err=$ac_c_preproc_warn_flag
38106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38107   else
38108     ac_cpp_err=
38109   fi
38110 else
38111   ac_cpp_err=yes
38112 fi
38113 if test -z "$ac_cpp_err"; then
38114   ac_header_preproc=yes
38115 else
38116   echo "$as_me: failed program was:" >&5
38117 sed 's/^/| /' conftest.$ac_ext >&5
38118
38119   ac_header_preproc=no
38120 fi
38121 rm -f conftest.err conftest.$ac_ext
38122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38123 echo "${ECHO_T}$ac_header_preproc" >&6
38124
38125 # So?  What about this header?
38126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38127   yes:no: )
38128     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38132     ac_header_preproc=yes
38133     ;;
38134   no:yes:* )
38135     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38137     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38138 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38139     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38141     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38142 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38145     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38147     (
38148       cat <<\_ASBOX
38149 ## ----------------------------------------- ##
38150 ## Report this to wx-dev@lists.wxwidgets.org ##
38151 ## ----------------------------------------- ##
38152 _ASBOX
38153     ) |
38154       sed "s/^/$as_me: WARNING:     /" >&2
38155     ;;
38156 esac
38157 echo "$as_me:$LINENO: checking for $ac_header" >&5
38158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38160   echo $ECHO_N "(cached) $ECHO_C" >&6
38161 else
38162   eval "$as_ac_Header=\$ac_header_preproc"
38163 fi
38164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38166
38167 fi
38168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38169   cat >>confdefs.h <<_ACEOF
38170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38171 _ACEOF
38172
38173 fi
38174
38175 done
38176
38177             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38178                 wxUSE_JOYSTICK=no
38179                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38180 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38181             fi
38182         else
38183                       if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38184                 wxUSE_JOYSTICK=no
38185                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38186 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38187            fi
38188         fi
38189
38190
38191         if test "$wxUSE_JOYSTICK" = "yes"; then
38192             cat >>confdefs.h <<\_ACEOF
38193 #define wxUSE_JOYSTICK 1
38194 _ACEOF
38195
38196             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38197         fi
38198     fi
38199 fi
38200
38201
38202
38203 if test "$wxUSE_FONTMAP" = "yes" ; then
38204   cat >>confdefs.h <<\_ACEOF
38205 #define wxUSE_FONTMAP 1
38206 _ACEOF
38207
38208 fi
38209
38210 if test "$wxUSE_UNICODE" = "yes" ; then
38211   cat >>confdefs.h <<\_ACEOF
38212 #define wxUSE_UNICODE 1
38213 _ACEOF
38214
38215
38216   if test "$USE_WIN32" != 1; then
38217       wxUSE_UNICODE_MSLU=no
38218   fi
38219
38220   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38221         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38222 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38223 if test "${ac_cv_lib_unicows_main+set}" = set; then
38224   echo $ECHO_N "(cached) $ECHO_C" >&6
38225 else
38226   ac_check_lib_save_LIBS=$LIBS
38227 LIBS="-lunicows  $LIBS"
38228 cat >conftest.$ac_ext <<_ACEOF
38229 /* confdefs.h.  */
38230 _ACEOF
38231 cat confdefs.h >>conftest.$ac_ext
38232 cat >>conftest.$ac_ext <<_ACEOF
38233 /* end confdefs.h.  */
38234
38235
38236 int
38237 main ()
38238 {
38239 main ();
38240   ;
38241   return 0;
38242 }
38243 _ACEOF
38244 rm -f conftest.$ac_objext conftest$ac_exeext
38245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38246   (eval $ac_link) 2>conftest.er1
38247   ac_status=$?
38248   grep -v '^ *+' conftest.er1 >conftest.err
38249   rm -f conftest.er1
38250   cat conftest.err >&5
38251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252   (exit $ac_status); } &&
38253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38255   (eval $ac_try) 2>&5
38256   ac_status=$?
38257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258   (exit $ac_status); }; } &&
38259          { ac_try='test -s conftest$ac_exeext'
38260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38261   (eval $ac_try) 2>&5
38262   ac_status=$?
38263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264   (exit $ac_status); }; }; then
38265   ac_cv_lib_unicows_main=yes
38266 else
38267   echo "$as_me: failed program was:" >&5
38268 sed 's/^/| /' conftest.$ac_ext >&5
38269
38270 ac_cv_lib_unicows_main=no
38271 fi
38272 rm -f conftest.err conftest.$ac_objext \
38273       conftest$ac_exeext conftest.$ac_ext
38274 LIBS=$ac_check_lib_save_LIBS
38275 fi
38276 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38277 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38278 if test $ac_cv_lib_unicows_main = yes; then
38279
38280                 cat >>confdefs.h <<\_ACEOF
38281 #define wxUSE_UNICODE_MSLU 1
38282 _ACEOF
38283
38284
38285 else
38286
38287                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38288                              Applications will only run on Windows NT/2000/XP!" >&5
38289 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38290                              Applications will only run on Windows NT/2000/XP!" >&2;}
38291                 wxUSE_UNICODE_MSLU=no
38292
38293 fi
38294
38295     fi
38296 fi
38297
38298 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38299   cat >>confdefs.h <<\_ACEOF
38300 #define wxUSE_EXPERIMENTAL_PRINTF 1
38301 _ACEOF
38302
38303 fi
38304
38305
38306 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38307   cat >>confdefs.h <<\_ACEOF
38308 #define wxUSE_POSTSCRIPT 1
38309 _ACEOF
38310
38311 fi
38312
38313 cat >>confdefs.h <<\_ACEOF
38314 #define wxUSE_AFM_FOR_POSTSCRIPT 1
38315 _ACEOF
38316
38317
38318 cat >>confdefs.h <<\_ACEOF
38319 #define wxUSE_NORMALIZED_PS_FONTS 1
38320 _ACEOF
38321
38322
38323
38324 if test "$wxUSE_CONSTRAINTS" = "yes"; then
38325     cat >>confdefs.h <<\_ACEOF
38326 #define wxUSE_CONSTRAINTS 1
38327 _ACEOF
38328
38329     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38330 fi
38331
38332 if test "$wxUSE_MDI" = "yes"; then
38333     cat >>confdefs.h <<\_ACEOF
38334 #define wxUSE_MDI 1
38335 _ACEOF
38336
38337
38338     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38339         cat >>confdefs.h <<\_ACEOF
38340 #define wxUSE_MDI_ARCHITECTURE 1
38341 _ACEOF
38342
38343         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38344     fi
38345 fi
38346
38347 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38348     cat >>confdefs.h <<\_ACEOF
38349 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
38350 _ACEOF
38351
38352     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38353     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38354         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38355     fi
38356 fi
38357
38358 if test "$wxUSE_HELP" = "yes"; then
38359     cat >>confdefs.h <<\_ACEOF
38360 #define wxUSE_HELP 1
38361 _ACEOF
38362
38363     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38364
38365     if test "$wxUSE_MSW" = 1; then
38366       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38367         cat >>confdefs.h <<\_ACEOF
38368 #define wxUSE_MS_HTML_HELP 1
38369 _ACEOF
38370
38371       fi
38372     fi
38373
38374     if test "$wxUSE_WXHTML_HELP" = "yes"; then
38375       if test "$wxUSE_HTML" = "yes"; then
38376         cat >>confdefs.h <<\_ACEOF
38377 #define wxUSE_WXHTML_HELP 1
38378 _ACEOF
38379
38380       else
38381         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38382 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38383         wxUSE_WXHTML_HELP=no
38384       fi
38385     fi
38386 fi
38387
38388 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38389     if test "$wxUSE_CONSTRAINTS" != "yes"; then
38390         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38391 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38392     else
38393         cat >>confdefs.h <<\_ACEOF
38394 #define wxUSE_PRINTING_ARCHITECTURE 1
38395 _ACEOF
38396
38397     fi
38398     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38399 fi
38400
38401 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
38402     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38403 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38404    { (exit 1); exit 1; }; }
38405 fi
38406
38407
38408 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
38409                           -o "$wxUSE_CLIPBOARD"     = "yes" \
38410                           -o "$wxUSE_OLE"     = "yes" \
38411                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38412
38413 for ac_header in ole2.h
38414 do
38415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38417   echo "$as_me:$LINENO: checking for $ac_header" >&5
38418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38420   echo $ECHO_N "(cached) $ECHO_C" >&6
38421 fi
38422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38424 else
38425   # Is the header compilable?
38426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38428 cat >conftest.$ac_ext <<_ACEOF
38429 /* confdefs.h.  */
38430 _ACEOF
38431 cat confdefs.h >>conftest.$ac_ext
38432 cat >>conftest.$ac_ext <<_ACEOF
38433 /* end confdefs.h.  */
38434 $ac_includes_default
38435 #include <$ac_header>
38436 _ACEOF
38437 rm -f conftest.$ac_objext
38438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38439   (eval $ac_compile) 2>conftest.er1
38440   ac_status=$?
38441   grep -v '^ *+' conftest.er1 >conftest.err
38442   rm -f conftest.er1
38443   cat conftest.err >&5
38444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38445   (exit $ac_status); } &&
38446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38448   (eval $ac_try) 2>&5
38449   ac_status=$?
38450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38451   (exit $ac_status); }; } &&
38452          { ac_try='test -s conftest.$ac_objext'
38453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38454   (eval $ac_try) 2>&5
38455   ac_status=$?
38456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38457   (exit $ac_status); }; }; then
38458   ac_header_compiler=yes
38459 else
38460   echo "$as_me: failed program was:" >&5
38461 sed 's/^/| /' conftest.$ac_ext >&5
38462
38463 ac_header_compiler=no
38464 fi
38465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38467 echo "${ECHO_T}$ac_header_compiler" >&6
38468
38469 # Is the header present?
38470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38471 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
38479 _ACEOF
38480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38482   ac_status=$?
38483   grep -v '^ *+' conftest.er1 >conftest.err
38484   rm -f conftest.er1
38485   cat conftest.err >&5
38486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487   (exit $ac_status); } >/dev/null; then
38488   if test -s conftest.err; then
38489     ac_cpp_err=$ac_c_preproc_warn_flag
38490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38491   else
38492     ac_cpp_err=
38493   fi
38494 else
38495   ac_cpp_err=yes
38496 fi
38497 if test -z "$ac_cpp_err"; then
38498   ac_header_preproc=yes
38499 else
38500   echo "$as_me: failed program was:" >&5
38501 sed 's/^/| /' conftest.$ac_ext >&5
38502
38503   ac_header_preproc=no
38504 fi
38505 rm -f conftest.err conftest.$ac_ext
38506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38507 echo "${ECHO_T}$ac_header_preproc" >&6
38508
38509 # So?  What about this header?
38510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38511   yes:no: )
38512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38516     ac_header_preproc=yes
38517     ;;
38518   no:yes:* )
38519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38531     (
38532       cat <<\_ASBOX
38533 ## ----------------------------------------- ##
38534 ## Report this to wx-dev@lists.wxwidgets.org ##
38535 ## ----------------------------------------- ##
38536 _ASBOX
38537     ) |
38538       sed "s/^/$as_me: WARNING:     /" >&2
38539     ;;
38540 esac
38541 echo "$as_me:$LINENO: checking for $ac_header" >&5
38542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38544   echo $ECHO_N "(cached) $ECHO_C" >&6
38545 else
38546   eval "$as_ac_Header=\$ac_header_preproc"
38547 fi
38548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38550
38551 fi
38552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38553   cat >>confdefs.h <<_ACEOF
38554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38555 _ACEOF
38556
38557 fi
38558
38559 done
38560
38561
38562     if test "$ac_cv_header_ole2_h" = "yes" ; then
38563         if test "$GCC" = yes ; then
38564
38565
38566             ac_ext=cc
38567 ac_cpp='$CXXCPP $CPPFLAGS'
38568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38571
38572
38573             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38574 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38575             cat >conftest.$ac_ext <<_ACEOF
38576 /* confdefs.h.  */
38577 _ACEOF
38578 cat confdefs.h >>conftest.$ac_ext
38579 cat >>conftest.$ac_ext <<_ACEOF
38580 /* end confdefs.h.  */
38581 #include <windows.h>
38582                             #include <ole2.h>
38583 int
38584 main ()
38585 {
38586
38587   ;
38588   return 0;
38589 }
38590 _ACEOF
38591 rm -f conftest.$ac_objext
38592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38593   (eval $ac_compile) 2>conftest.er1
38594   ac_status=$?
38595   grep -v '^ *+' conftest.er1 >conftest.err
38596   rm -f conftest.er1
38597   cat conftest.err >&5
38598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38599   (exit $ac_status); } &&
38600          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38602   (eval $ac_try) 2>&5
38603   ac_status=$?
38604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38605   (exit $ac_status); }; } &&
38606          { ac_try='test -s conftest.$ac_objext'
38607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38608   (eval $ac_try) 2>&5
38609   ac_status=$?
38610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611   (exit $ac_status); }; }; then
38612   echo "$as_me:$LINENO: result: no" >&5
38613 echo "${ECHO_T}no" >&6
38614 else
38615   echo "$as_me: failed program was:" >&5
38616 sed 's/^/| /' conftest.$ac_ext >&5
38617
38618 echo "$as_me:$LINENO: result: yes" >&5
38619 echo "${ECHO_T}yes" >&6
38620                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38621 fi
38622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38623             ac_ext=c
38624 ac_cpp='$CPP $CPPFLAGS'
38625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38628
38629             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38630             if test "$wxUSE_OLE" = "yes" ; then
38631                 cat >>confdefs.h <<\_ACEOF
38632 #define wxUSE_OLE 1
38633 _ACEOF
38634
38635                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
38636             fi
38637         fi
38638
38639                 if test "$wxUSE_DATAOBJ" = "yes" ; then
38640             cat >>confdefs.h <<\_ACEOF
38641 #define wxUSE_DATAOBJ 1
38642 _ACEOF
38643
38644         fi
38645     else
38646         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38647 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38648
38649         wxUSE_CLIPBOARD=no
38650         wxUSE_DRAG_AND_DROP=no
38651         wxUSE_DATAOBJ=no
38652         wxUSE_OLE=no
38653     fi
38654
38655     if test "$wxUSE_METAFILE" = "yes"; then
38656         cat >>confdefs.h <<\_ACEOF
38657 #define wxUSE_METAFILE 1
38658 _ACEOF
38659
38660
38661                 cat >>confdefs.h <<\_ACEOF
38662 #define wxUSE_ENH_METAFILE 1
38663 _ACEOF
38664
38665     fi
38666 fi
38667
38668 if test "$wxUSE_IPC" = "yes"; then
38669     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
38670         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38671 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
38672         wxUSE_IPC=no
38673     fi
38674
38675     if test "$wxUSE_IPC" = "yes"; then
38676         cat >>confdefs.h <<\_ACEOF
38677 #define wxUSE_IPC 1
38678 _ACEOF
38679
38680         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38681     fi
38682 fi
38683
38684 if test "$wxUSE_CLIPBOARD" = "yes"; then
38685     if test "$wxUSE_MGL" = 1; then
38686         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38687 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38688         wxUSE_CLIPBOARD=no
38689     fi
38690
38691     if test "$wxUSE_CLIPBOARD" = "yes"; then
38692         cat >>confdefs.h <<\_ACEOF
38693 #define wxUSE_CLIPBOARD 1
38694 _ACEOF
38695
38696
38697                 cat >>confdefs.h <<\_ACEOF
38698 #define wxUSE_DATAOBJ 1
38699 _ACEOF
38700
38701     fi
38702 fi
38703
38704 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38705     if test "$wxUSE_GTK" = 1; then
38706         if test "$WXGTK12" != 1; then
38707             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38708 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38709             wxUSE_DRAG_AND_DROP=no
38710         fi
38711     fi
38712
38713     if test "$wxUSE_MOTIF" = 1; then
38714         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38715 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38716         wxUSE_DRAG_AND_DROP=no
38717     fi
38718
38719     if test "$wxUSE_X11" = 1; then
38720         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38721 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38722         wxUSE_DRAG_AND_DROP=no
38723     fi
38724
38725     if test "$wxUSE_MGL" = 1; then
38726         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38727 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38728         wxUSE_DRAG_AND_DROP=no
38729     fi
38730
38731     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38732         cat >>confdefs.h <<\_ACEOF
38733 #define wxUSE_DRAG_AND_DROP 1
38734 _ACEOF
38735
38736     fi
38737
38738 fi
38739
38740 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38741     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38742 fi
38743
38744 if test "$wxUSE_SPLINES" = "yes" ; then
38745   cat >>confdefs.h <<\_ACEOF
38746 #define wxUSE_SPLINES 1
38747 _ACEOF
38748
38749 fi
38750
38751
38752 USES_CONTROLS=0
38753 if test "$wxUSE_CONTROLS" = "yes"; then
38754   USES_CONTROLS=1
38755 fi
38756
38757 if test "$wxUSE_ACCEL" = "yes"; then
38758   cat >>confdefs.h <<\_ACEOF
38759 #define wxUSE_ACCEL 1
38760 _ACEOF
38761
38762   USES_CONTROLS=1
38763 fi
38764
38765 if test "$wxUSE_BUTTON" = "yes"; then
38766   cat >>confdefs.h <<\_ACEOF
38767 #define wxUSE_BUTTON 1
38768 _ACEOF
38769
38770   USES_CONTROLS=1
38771 fi
38772
38773 if test "$wxUSE_BMPBUTTON" = "yes"; then
38774   cat >>confdefs.h <<\_ACEOF
38775 #define wxUSE_BMPBUTTON 1
38776 _ACEOF
38777
38778   USES_CONTROLS=1
38779 fi
38780
38781 if test "$wxUSE_CALCTRL" = "yes"; then
38782   cat >>confdefs.h <<\_ACEOF
38783 #define wxUSE_CALENDARCTRL 1
38784 _ACEOF
38785
38786   USES_CONTROLS=1
38787   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38788 fi
38789
38790 if test "$wxUSE_CARET" = "yes"; then
38791   cat >>confdefs.h <<\_ACEOF
38792 #define wxUSE_CARET 1
38793 _ACEOF
38794
38795   USES_CONTROLS=1
38796   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38797 fi
38798
38799 if test "$wxUSE_COMBOBOX" = "yes"; then
38800   cat >>confdefs.h <<\_ACEOF
38801 #define wxUSE_COMBOBOX 1
38802 _ACEOF
38803
38804   USES_CONTROLS=1
38805 fi
38806
38807 if test "$wxUSE_CHOICE" = "yes"; then
38808   cat >>confdefs.h <<\_ACEOF
38809 #define wxUSE_CHOICE 1
38810 _ACEOF
38811
38812   USES_CONTROLS=1
38813 fi
38814
38815 if test "$wxUSE_CHOICEBOOK" = "yes"; then
38816     cat >>confdefs.h <<\_ACEOF
38817 #define wxUSE_CHOICEBOOK 1
38818 _ACEOF
38819
38820     USES_CONTROLS=1
38821 fi
38822
38823 if test "$wxUSE_CHECKBOX" = "yes"; then
38824   cat >>confdefs.h <<\_ACEOF
38825 #define wxUSE_CHECKBOX 1
38826 _ACEOF
38827
38828   USES_CONTROLS=1
38829 fi
38830
38831 if test "$wxUSE_CHECKLST" = "yes"; then
38832   cat >>confdefs.h <<\_ACEOF
38833 #define wxUSE_CHECKLISTBOX 1
38834 _ACEOF
38835
38836   USES_CONTROLS=1
38837   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38838 fi
38839
38840 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38841   cat >>confdefs.h <<\_ACEOF
38842 #define wxUSE_DATEPICKCTRL 1
38843 _ACEOF
38844
38845   USES_CONTROLS=1
38846 fi
38847
38848 if test "$wxUSE_DISPLAY" = "yes"; then
38849     cat >>confdefs.h <<\_ACEOF
38850 #define wxUSE_DISPLAY 1
38851 _ACEOF
38852
38853     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
38854 fi
38855
38856 if test "$wxUSE_GAUGE" = "yes"; then
38857   cat >>confdefs.h <<\_ACEOF
38858 #define wxUSE_GAUGE 1
38859 _ACEOF
38860
38861   USES_CONTROLS=1
38862 fi
38863
38864 if test "$wxUSE_GRID" = "yes"; then
38865   cat >>confdefs.h <<\_ACEOF
38866 #define wxUSE_GRID 1
38867 _ACEOF
38868
38869   USES_CONTROLS=1
38870   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38871 fi
38872
38873 if test "$wxUSE_IMAGLIST" = "yes"; then
38874     cat >>confdefs.h <<\_ACEOF
38875 #define wxUSE_IMAGLIST 1
38876 _ACEOF
38877
38878 fi
38879
38880 if test "$wxUSE_LISTBOOK" = "yes"; then
38881     cat >>confdefs.h <<\_ACEOF
38882 #define wxUSE_LISTBOOK 1
38883 _ACEOF
38884
38885     USES_CONTROLS=1
38886 fi
38887
38888 if test "$wxUSE_LISTBOX" = "yes"; then
38889     cat >>confdefs.h <<\_ACEOF
38890 #define wxUSE_LISTBOX 1
38891 _ACEOF
38892
38893     USES_CONTROLS=1
38894     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
38895 fi
38896
38897 if test "$wxUSE_LISTCTRL" = "yes"; then
38898     if test "$wxUSE_IMAGLIST" = "yes"; then
38899         cat >>confdefs.h <<\_ACEOF
38900 #define wxUSE_LISTCTRL 1
38901 _ACEOF
38902
38903         USES_CONTROLS=1
38904         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38905     else
38906         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38907 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38908     fi
38909 fi
38910
38911 if test "$wxUSE_NOTEBOOK" = "yes"; then
38912     cat >>confdefs.h <<\_ACEOF
38913 #define wxUSE_NOTEBOOK 1
38914 _ACEOF
38915
38916     USES_CONTROLS=1
38917     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38918 fi
38919
38920
38921 if test "$wxUSE_RADIOBOX" = "yes"; then
38922     cat >>confdefs.h <<\_ACEOF
38923 #define wxUSE_RADIOBOX 1
38924 _ACEOF
38925
38926     USES_CONTROLS=1
38927 fi
38928
38929 if test "$wxUSE_RADIOBTN" = "yes"; then
38930     cat >>confdefs.h <<\_ACEOF
38931 #define wxUSE_RADIOBTN 1
38932 _ACEOF
38933
38934     USES_CONTROLS=1
38935 fi
38936
38937 if test "$wxUSE_SASH" = "yes"; then
38938     cat >>confdefs.h <<\_ACEOF
38939 #define wxUSE_SASH 1
38940 _ACEOF
38941
38942     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38943 fi
38944
38945 if test "$wxUSE_SCROLLBAR" = "yes"; then
38946     cat >>confdefs.h <<\_ACEOF
38947 #define wxUSE_SCROLLBAR 1
38948 _ACEOF
38949
38950     USES_CONTROLS=1
38951     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38952 fi
38953
38954 if test "$wxUSE_SLIDER" = "yes"; then
38955     cat >>confdefs.h <<\_ACEOF
38956 #define wxUSE_SLIDER 1
38957 _ACEOF
38958
38959     USES_CONTROLS=1
38960 fi
38961
38962 if test "$wxUSE_SPINBTN" = "yes"; then
38963     cat >>confdefs.h <<\_ACEOF
38964 #define wxUSE_SPINBTN 1
38965 _ACEOF
38966
38967     USES_CONTROLS=1
38968 fi
38969
38970 if test "$wxUSE_SPINCTRL" = "yes"; then
38971     cat >>confdefs.h <<\_ACEOF
38972 #define wxUSE_SPINCTRL 1
38973 _ACEOF
38974
38975     USES_CONTROLS=1
38976 fi
38977
38978 if test "$wxUSE_SPLITTER" = "yes"; then
38979     cat >>confdefs.h <<\_ACEOF
38980 #define wxUSE_SPLITTER 1
38981 _ACEOF
38982
38983     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38984 fi
38985
38986 if test "$wxUSE_STATBMP" = "yes"; then
38987     cat >>confdefs.h <<\_ACEOF
38988 #define wxUSE_STATBMP 1
38989 _ACEOF
38990
38991     USES_CONTROLS=1
38992 fi
38993
38994 if test "$wxUSE_STATBOX" = "yes"; then
38995     cat >>confdefs.h <<\_ACEOF
38996 #define wxUSE_STATBOX 1
38997 _ACEOF
38998
38999     USES_CONTROLS=1
39000 fi
39001
39002 if test "$wxUSE_STATTEXT" = "yes"; then
39003     cat >>confdefs.h <<\_ACEOF
39004 #define wxUSE_STATTEXT 1
39005 _ACEOF
39006
39007     USES_CONTROLS=1
39008 fi
39009
39010 if test "$wxUSE_STATLINE" = "yes"; then
39011     cat >>confdefs.h <<\_ACEOF
39012 #define wxUSE_STATLINE 1
39013 _ACEOF
39014
39015     USES_CONTROLS=1
39016 fi
39017
39018 if test "$wxUSE_STATUSBAR" = "yes"; then
39019         cat >>confdefs.h <<\_ACEOF
39020 #define wxUSE_NATIVE_STATUSBAR 1
39021 _ACEOF
39022
39023     cat >>confdefs.h <<\_ACEOF
39024 #define wxUSE_STATUSBAR 1
39025 _ACEOF
39026
39027     USES_CONTROLS=1
39028
39029     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39030 fi
39031
39032 if test "$wxUSE_TABDIALOG" = "yes"; then
39033     cat >>confdefs.h <<\_ACEOF
39034 #define wxUSE_TAB_DIALOG 1
39035 _ACEOF
39036
39037 fi
39038
39039 if test "$wxUSE_TEXTCTRL" = "yes"; then
39040     cat >>confdefs.h <<\_ACEOF
39041 #define wxUSE_TEXTCTRL 1
39042 _ACEOF
39043
39044     USES_CONTROLS=1
39045     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39046 fi
39047
39048 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39049     if test "$wxUSE_COCOA" = 1 ; then
39050         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39051 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39052         wxUSE_TOGGLEBTN=no
39053     else
39054         if test "$wxUSE_PM" = 1; then
39055             { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
39056 echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
39057             wxUSE_TOGGLEBTN=no
39058         fi
39059     fi
39060     if test "$wxUSE_UNIVERSAL" = "yes"; then
39061         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39062 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39063         wxUSE_TOGGLEBTN=no
39064     fi
39065
39066     if test "$wxUSE_TOGGLEBTN" = "yes"; then
39067         cat >>confdefs.h <<\_ACEOF
39068 #define wxUSE_TOGGLEBTN 1
39069 _ACEOF
39070
39071         USES_CONTROLS=1
39072     fi
39073 fi
39074
39075 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39076     cat >>confdefs.h <<\_ACEOF
39077 #define wxUSE_TOOLBAR_SIMPLE 1
39078 _ACEOF
39079
39080     wxUSE_TOOLBAR="yes"
39081     USES_CONTROLS=1
39082 fi
39083
39084 if test "$wxUSE_TOOLBAR" = "yes"; then
39085     cat >>confdefs.h <<\_ACEOF
39086 #define wxUSE_TOOLBAR 1
39087 _ACEOF
39088
39089     USES_CONTROLS=1
39090
39091         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39092         wxUSE_TOOLBAR_NATIVE="yes"
39093     fi
39094
39095     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39096         cat >>confdefs.h <<\_ACEOF
39097 #define wxUSE_TOOLBAR_NATIVE 1
39098 _ACEOF
39099
39100         USES_CONTROLS=1
39101     fi
39102
39103     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39104 fi
39105
39106 if test "$wxUSE_TOOLTIPS" = "yes"; then
39107     if test "$wxUSE_MOTIF" = 1; then
39108         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39109 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39110     else
39111         if test "$wxUSE_UNIVERSAL" = "yes"; then
39112             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39113 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39114         else
39115             cat >>confdefs.h <<\_ACEOF
39116 #define wxUSE_TOOLTIPS 1
39117 _ACEOF
39118
39119         fi
39120     fi
39121 fi
39122
39123 if test "$wxUSE_TREECTRL" = "yes"; then
39124     if test "$wxUSE_IMAGLIST" = "yes"; then
39125         cat >>confdefs.h <<\_ACEOF
39126 #define wxUSE_TREECTRL 1
39127 _ACEOF
39128
39129         USES_CONTROLS=1
39130         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39131     else
39132         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39133 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39134     fi
39135 fi
39136
39137 if test "$wxUSE_POPUPWIN" = "yes"; then
39138     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39139         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39140 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39141     else
39142         if test "$wxUSE_PM" = 1; then
39143             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39144 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39145         else
39146             cat >>confdefs.h <<\_ACEOF
39147 #define wxUSE_POPUPWIN 1
39148 _ACEOF
39149
39150             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
39151
39152             USES_CONTROLS=1
39153         fi
39154     fi
39155 fi
39156
39157 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
39158     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39159         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39160 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39161     else
39162         cat >>confdefs.h <<\_ACEOF
39163 #define wxUSE_DIALUP_MANAGER 1
39164 _ACEOF
39165
39166         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39167     fi
39168 fi
39169
39170 if test "$wxUSE_TIPWINDOW" = "yes"; then
39171     if test "$wxUSE_PM" = 1; then
39172         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39173 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39174     else
39175         cat >>confdefs.h <<\_ACEOF
39176 #define wxUSE_TIPWINDOW 1
39177 _ACEOF
39178
39179     fi
39180 fi
39181
39182 if test "$USES_CONTROLS" = 1; then
39183     cat >>confdefs.h <<\_ACEOF
39184 #define wxUSE_CONTROLS 1
39185 _ACEOF
39186
39187 fi
39188
39189
39190 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39191     cat >>confdefs.h <<\_ACEOF
39192 #define wxUSE_ACCESSIBILITY 1
39193 _ACEOF
39194
39195     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39196 fi
39197
39198 if test "$wxUSE_DRAGIMAGE" = "yes"; then
39199     cat >>confdefs.h <<\_ACEOF
39200 #define wxUSE_DRAGIMAGE 1
39201 _ACEOF
39202
39203     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39204 fi
39205
39206 if test "$wxUSE_EXCEPTIONS" = "yes"; then
39207     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39208         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39209 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39210     else
39211         cat >>confdefs.h <<\_ACEOF
39212 #define wxUSE_EXCEPTIONS 1
39213 _ACEOF
39214
39215         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39216     fi
39217 fi
39218
39219 USE_HTML=0
39220 if test "$wxUSE_HTML" = "yes"; then
39221     cat >>confdefs.h <<\_ACEOF
39222 #define wxUSE_HTML 1
39223 _ACEOF
39224
39225     USE_HTML=1
39226     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
39227     if test "$wxUSE_MAC" = 1; then
39228         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39229     fi
39230 fi
39231 if test "$wxUSE_WEBKIT" = "yes"; then
39232     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
39233         old_CPPFLAGS="$CPPFLAGS"
39234         CPPFLAGS="$CPPFLAGS -x objective-c++"
39235         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39236 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39237 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39238   echo $ECHO_N "(cached) $ECHO_C" >&6
39239 else
39240   cat >conftest.$ac_ext <<_ACEOF
39241 /* confdefs.h.  */
39242 _ACEOF
39243 cat confdefs.h >>conftest.$ac_ext
39244 cat >>conftest.$ac_ext <<_ACEOF
39245 /* end confdefs.h.  */
39246 #include <Carbon/Carbon.h>
39247
39248 #include <WebKit/HIWebView.h>
39249 _ACEOF
39250 rm -f conftest.$ac_objext
39251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39252   (eval $ac_compile) 2>conftest.er1
39253   ac_status=$?
39254   grep -v '^ *+' conftest.er1 >conftest.err
39255   rm -f conftest.er1
39256   cat conftest.err >&5
39257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39258   (exit $ac_status); } &&
39259          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39261   (eval $ac_try) 2>&5
39262   ac_status=$?
39263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39264   (exit $ac_status); }; } &&
39265          { ac_try='test -s conftest.$ac_objext'
39266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39267   (eval $ac_try) 2>&5
39268   ac_status=$?
39269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39270   (exit $ac_status); }; }; then
39271   ac_cv_header_WebKit_HIWebView_h=yes
39272 else
39273   echo "$as_me: failed program was:" >&5
39274 sed 's/^/| /' conftest.$ac_ext >&5
39275
39276 ac_cv_header_WebKit_HIWebView_h=no
39277 fi
39278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39279 fi
39280 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39281 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39282 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39283
39284                            cat >>confdefs.h <<\_ACEOF
39285 #define wxUSE_WEBKIT 1
39286 _ACEOF
39287
39288                            WEBKIT_LINK="-framework WebKit"
39289
39290 else
39291
39292                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39293 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39294                            wxUSE_WEBKIT=no
39295
39296 fi
39297
39298
39299         CPPFLAGS="$old_CPPFLAGS"
39300     elif test "$wxUSE_COCOA" = 1; then
39301         cat >>confdefs.h <<\_ACEOF
39302 #define wxUSE_WEBKIT 1
39303 _ACEOF
39304
39305     else
39306         wxUSE_WEBKIT=no
39307     fi
39308 fi
39309
39310 USE_XRC=0
39311 if test "$wxUSE_XRC" = "yes"; then
39312     if test "$wxUSE_XML" != "yes"; then
39313         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39314 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39315         wxUSE_XRC=no
39316     else
39317         cat >>confdefs.h <<\_ACEOF
39318 #define wxUSE_XRC 1
39319 _ACEOF
39320
39321         USE_XRC=1
39322         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39323     fi
39324 fi
39325
39326 if test "$wxUSE_MENUS" = "yes"; then
39327     cat >>confdefs.h <<\_ACEOF
39328 #define wxUSE_MENUS 1
39329 _ACEOF
39330
39331     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39332 fi
39333
39334 if test "$wxUSE_METAFILE" = "yes"; then
39335     cat >>confdefs.h <<\_ACEOF
39336 #define wxUSE_METAFILE 1
39337 _ACEOF
39338
39339 fi
39340
39341 if test "$wxUSE_MIMETYPE" = "yes"; then
39342     cat >>confdefs.h <<\_ACEOF
39343 #define wxUSE_MIMETYPE 1
39344 _ACEOF
39345
39346 fi
39347
39348 if test "$wxUSE_MINIFRAME" = "yes"; then
39349     cat >>confdefs.h <<\_ACEOF
39350 #define wxUSE_MINIFRAME 1
39351 _ACEOF
39352
39353     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39354 fi
39355
39356 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39357     cat >>confdefs.h <<\_ACEOF
39358 #define wxUSE_SYSTEM_OPTIONS 1
39359 _ACEOF
39360
39361     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
39362         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
39363         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39364     fi
39365 fi
39366
39367
39368 if test "$wxUSE_VALIDATORS" = "yes"; then
39369     cat >>confdefs.h <<\_ACEOF
39370 #define wxUSE_VALIDATORS 1
39371 _ACEOF
39372
39373     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39374 fi
39375
39376 if test "$wxUSE_PALETTE" = "yes" ; then
39377   cat >>confdefs.h <<\_ACEOF
39378 #define wxUSE_PALETTE 1
39379 _ACEOF
39380
39381 fi
39382
39383 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39384     LIBS=" -lunicows $LIBS"
39385 fi
39386
39387
39388 if test "$wxUSE_IMAGE" = "yes" ; then
39389     cat >>confdefs.h <<\_ACEOF
39390 #define wxUSE_IMAGE 1
39391 _ACEOF
39392
39393
39394     if test "$wxUSE_GIF" = "yes" ; then
39395       cat >>confdefs.h <<\_ACEOF
39396 #define wxUSE_GIF 1
39397 _ACEOF
39398
39399     fi
39400
39401     if test "$wxUSE_PCX" = "yes" ; then
39402       cat >>confdefs.h <<\_ACEOF
39403 #define wxUSE_PCX 1
39404 _ACEOF
39405
39406     fi
39407
39408     if test "$wxUSE_IFF" = "yes" ; then
39409       cat >>confdefs.h <<\_ACEOF
39410 #define wxUSE_IFF 1
39411 _ACEOF
39412
39413     fi
39414
39415     if test "$wxUSE_PNM" = "yes" ; then
39416       cat >>confdefs.h <<\_ACEOF
39417 #define wxUSE_PNM 1
39418 _ACEOF
39419
39420     fi
39421
39422     if test "$wxUSE_XPM" = "yes" ; then
39423       cat >>confdefs.h <<\_ACEOF
39424 #define wxUSE_XPM 1
39425 _ACEOF
39426
39427     fi
39428
39429     if test "$wxUSE_ICO_CUR" = "yes" ; then
39430       cat >>confdefs.h <<\_ACEOF
39431 #define wxUSE_ICO_CUR 1
39432 _ACEOF
39433
39434     fi
39435 fi
39436
39437
39438 if test "$wxUSE_CHOICEDLG" = "yes"; then
39439     cat >>confdefs.h <<\_ACEOF
39440 #define wxUSE_CHOICEDLG 1
39441 _ACEOF
39442
39443 fi
39444
39445 if test "$wxUSE_COLOURDLG" = "yes"; then
39446     cat >>confdefs.h <<\_ACEOF
39447 #define wxUSE_COLOURDLG 1
39448 _ACEOF
39449
39450 fi
39451
39452 if test "$wxUSE_FILEDLG" = "yes"; then
39453     cat >>confdefs.h <<\_ACEOF
39454 #define wxUSE_FILEDLG 1
39455 _ACEOF
39456
39457 fi
39458
39459 if test "$wxUSE_FINDREPLDLG" = "yes"; then
39460     cat >>confdefs.h <<\_ACEOF
39461 #define wxUSE_FINDREPLDLG 1
39462 _ACEOF
39463
39464 fi
39465
39466 if test "$wxUSE_FONTDLG" = "yes"; then
39467     cat >>confdefs.h <<\_ACEOF
39468 #define wxUSE_FONTDLG 1
39469 _ACEOF
39470
39471 fi
39472
39473 if test "$wxUSE_DIRDLG" = "yes"; then
39474     if test "$wxUSE_TREECTRL" != "yes"; then
39475         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39476 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39477     else
39478         cat >>confdefs.h <<\_ACEOF
39479 #define wxUSE_DIRDLG 1
39480 _ACEOF
39481
39482     fi
39483 fi
39484
39485 if test "$wxUSE_MSGDLG" = "yes"; then
39486     cat >>confdefs.h <<\_ACEOF
39487 #define wxUSE_MSGDLG 1
39488 _ACEOF
39489
39490 fi
39491
39492 if test "$wxUSE_NUMBERDLG" = "yes"; then
39493     cat >>confdefs.h <<\_ACEOF
39494 #define wxUSE_NUMBERDLG 1
39495 _ACEOF
39496
39497 fi
39498
39499 if test "$wxUSE_PROGRESSDLG" = "yes"; then
39500     if test "$wxUSE_CONSTRAINTS" != "yes"; then
39501        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39502 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39503     else
39504         cat >>confdefs.h <<\_ACEOF
39505 #define wxUSE_PROGRESSDLG 1
39506 _ACEOF
39507
39508     fi
39509 fi
39510
39511 if test "$wxUSE_SPLASH" = "yes"; then
39512     cat >>confdefs.h <<\_ACEOF
39513 #define wxUSE_SPLASH 1
39514 _ACEOF
39515
39516     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
39517 fi
39518
39519 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39520     if test "$wxUSE_CONSTRAINTS" != "yes"; then
39521        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39522 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39523     else
39524         cat >>confdefs.h <<\_ACEOF
39525 #define wxUSE_STARTUP_TIPS 1
39526 _ACEOF
39527
39528     fi
39529 fi
39530
39531 if test "$wxUSE_TEXTDLG" = "yes"; then
39532     cat >>confdefs.h <<\_ACEOF
39533 #define wxUSE_TEXTDLG 1
39534 _ACEOF
39535
39536 fi
39537
39538 if test "$wxUSE_WIZARDDLG" = "yes"; then
39539     cat >>confdefs.h <<\_ACEOF
39540 #define wxUSE_WIZARDDLG 1
39541 _ACEOF
39542
39543     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39544 fi
39545
39546
39547 if test "$wxUSE_MEDIACTRL" = "yes"; then
39548     if test "$wxUSE_MSW" = 1; then
39549                     wxUSE_DIRECTSHOW="yes"
39550
39551 for ac_header in dshow.h
39552 do
39553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39554 echo "$as_me:$LINENO: checking for $ac_header" >&5
39555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39557   echo $ECHO_N "(cached) $ECHO_C" >&6
39558 else
39559   cat >conftest.$ac_ext <<_ACEOF
39560 /* confdefs.h.  */
39561 _ACEOF
39562 cat confdefs.h >>conftest.$ac_ext
39563 cat >>conftest.$ac_ext <<_ACEOF
39564 /* end confdefs.h.  */
39565 #include <windows.h>
39566
39567 #include <$ac_header>
39568 _ACEOF
39569 rm -f conftest.$ac_objext
39570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39571   (eval $ac_compile) 2>conftest.er1
39572   ac_status=$?
39573   grep -v '^ *+' conftest.er1 >conftest.err
39574   rm -f conftest.er1
39575   cat conftest.err >&5
39576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39577   (exit $ac_status); } &&
39578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39580   (eval $ac_try) 2>&5
39581   ac_status=$?
39582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39583   (exit $ac_status); }; } &&
39584          { ac_try='test -s conftest.$ac_objext'
39585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39586   (eval $ac_try) 2>&5
39587   ac_status=$?
39588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39589   (exit $ac_status); }; }; then
39590   eval "$as_ac_Header=yes"
39591 else
39592   echo "$as_me: failed program was:" >&5
39593 sed 's/^/| /' conftest.$ac_ext >&5
39594
39595 eval "$as_ac_Header=no"
39596 fi
39597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39598 fi
39599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39602   cat >>confdefs.h <<_ACEOF
39603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39604 _ACEOF
39605
39606 else
39607
39608                 wxUSE_DIRECTSHOW="no"
39609                 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39610 echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39611
39612 fi
39613
39614 done
39615
39616
39617        if test "$wxUSE_DIRECTSHOW" = "yes"; then
39618             cat >>confdefs.h <<\_ACEOF
39619 #define wxUSE_DIRECTSHOW 1
39620 _ACEOF
39621
39622             LIBS="$LIBS -lstrmiids"
39623        fi
39624     fi
39625
39626                 if test "$wxUSE_GTK" = 1; then
39627         wxUSE_GSTREAMER="yes"
39628
39629
39630   succeeded=no
39631
39632   if test -z "$PKG_CONFIG"; then
39633     # Extract the first word of "pkg-config", so it can be a program name with args.
39634 set dummy pkg-config; ac_word=$2
39635 echo "$as_me:$LINENO: checking for $ac_word" >&5
39636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39637 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39638   echo $ECHO_N "(cached) $ECHO_C" >&6
39639 else
39640   case $PKG_CONFIG in
39641   [\\/]* | ?:[\\/]*)
39642   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39643   ;;
39644   *)
39645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39646 for as_dir in $PATH
39647 do
39648   IFS=$as_save_IFS
39649   test -z "$as_dir" && as_dir=.
39650   for ac_exec_ext in '' $ac_executable_extensions; do
39651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39652     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39654     break 2
39655   fi
39656 done
39657 done
39658
39659   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39660   ;;
39661 esac
39662 fi
39663 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39664
39665 if test -n "$PKG_CONFIG"; then
39666   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39667 echo "${ECHO_T}$PKG_CONFIG" >&6
39668 else
39669   echo "$as_me:$LINENO: result: no" >&5
39670 echo "${ECHO_T}no" >&6
39671 fi
39672
39673   fi
39674
39675   if test "$PKG_CONFIG" = "no" ; then
39676      echo "*** The pkg-config script could not be found. Make sure it is"
39677      echo "*** in your path, or set the PKG_CONFIG environment variable"
39678      echo "*** to the full path to pkg-config."
39679      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39680   else
39681      PKG_CONFIG_MIN_VERSION=0.9.0
39682      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39683         echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39684 echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39685
39686         if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39687             echo "$as_me:$LINENO: result: yes" >&5
39688 echo "${ECHO_T}yes" >&6
39689             succeeded=yes
39690
39691             echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39692 echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39693             GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39694             echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39695 echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39696
39697             echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39698 echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39699             GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39700             echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39701 echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39702         else
39703             GSTREAMER_CFLAGS=""
39704             GSTREAMER_LIBS=""
39705             ## If we have a custom action on failure, don't print errors, but
39706             ## do set a variable so people can do so.
39707             GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
39708
39709         fi
39710
39711
39712
39713      else
39714         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39715         echo "*** See http://www.freedesktop.org/software/pkgconfig"
39716      fi
39717   fi
39718
39719   if test $succeeded = yes; then
39720
39721             CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39722             LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
39723
39724   else
39725
39726             { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39727 echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39728             wxUSE_GSTREAMER="no"
39729
39730   fi
39731
39732
39733
39734
39735
39736         if test "x$GST_INSPECT" == "x"; then
39737             # Extract the first word of "gst-inspect", so it can be a program name with args.
39738 set dummy gst-inspect; ac_word=$2
39739 echo "$as_me:$LINENO: checking for $ac_word" >&5
39740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39741 if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39742   echo $ECHO_N "(cached) $ECHO_C" >&6
39743 else
39744   if test -n "$GST_INSPECT"; then
39745   ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39746 else
39747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39748 for as_dir in $PATH
39749 do
39750   IFS=$as_save_IFS
39751   test -z "$as_dir" && as_dir=.
39752   for ac_exec_ext in '' $ac_executable_extensions; do
39753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39754     ac_cv_prog_GST_INSPECT="gst-inspect"
39755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39756     break 2
39757   fi
39758 done
39759 done
39760
39761 fi
39762 fi
39763 GST_INSPECT=$ac_cv_prog_GST_INSPECT
39764 if test -n "$GST_INSPECT"; then
39765   echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39766 echo "${ECHO_T}$GST_INSPECT" >&6
39767 else
39768   echo "$as_me:$LINENO: result: no" >&5
39769 echo "${ECHO_T}no" >&6
39770 fi
39771
39772         fi
39773
39774         if test "x$GST_INSPECT" != "x"; then
39775             echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39776 echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39777             if  $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39778             echo "$as_me:$LINENO: result: found." >&5
39779 echo "${ECHO_T}found." >&6
39780
39781             else
39782             echo "$as_me:$LINENO: result: not found." >&5
39783 echo "${ECHO_T}not found." >&6
39784
39785                             wxUSE_GSTREAMER="no"
39786                             { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39787 echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39788
39789             fi
39790         fi
39791
39792
39793                                 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39794 echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39795 if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39796   echo $ECHO_N "(cached) $ECHO_C" >&6
39797 else
39798   cat >conftest.$ac_ext <<_ACEOF
39799 /* confdefs.h.  */
39800 _ACEOF
39801 cat confdefs.h >>conftest.$ac_ext
39802 cat >>conftest.$ac_ext <<_ACEOF
39803 /* end confdefs.h.  */
39804 #include <gst/gst.h>
39805
39806 #include <gst/xoverlay/xoverlay.h>
39807 _ACEOF
39808 rm -f conftest.$ac_objext
39809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39810   (eval $ac_compile) 2>conftest.er1
39811   ac_status=$?
39812   grep -v '^ *+' conftest.er1 >conftest.err
39813   rm -f conftest.er1
39814   cat conftest.err >&5
39815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39816   (exit $ac_status); } &&
39817          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39819   (eval $ac_try) 2>&5
39820   ac_status=$?
39821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39822   (exit $ac_status); }; } &&
39823          { ac_try='test -s conftest.$ac_objext'
39824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39825   (eval $ac_try) 2>&5
39826   ac_status=$?
39827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828   (exit $ac_status); }; }; then
39829   ac_cv_header_gst_xoverlay_xoverlay_h=yes
39830 else
39831   echo "$as_me: failed program was:" >&5
39832 sed 's/^/| /' conftest.$ac_ext >&5
39833
39834 ac_cv_header_gst_xoverlay_xoverlay_h=no
39835 fi
39836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39837 fi
39838 echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39839 echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39840 if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39841   :
39842 else
39843
39844                             wxUSE_GSTREAMER="no"
39845                             { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39846 echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
39847
39848 fi
39849
39850
39851
39852         echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
39853 echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39854
39855 ac_find_libraries=
39856 for ac_dir in $SEARCH_LIB /usr/lib;
39857   do
39858     for ac_extension in a so sl dylib; do
39859       if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39860         ac_find_libraries=$ac_dir
39861         break 2
39862       fi
39863     done
39864   done
39865
39866
39867         if test "$ac_find_libraries" = "" ; then
39868             echo "$as_me:$LINENO: result: no" >&5
39869 echo "${ECHO_T}no" >&6
39870             wxUSE_GSTREAMER="no"
39871         else
39872             echo "$as_me:$LINENO: result: yes" >&5
39873 echo "${ECHO_T}yes" >&6
39874         fi
39875
39876         if test "$wxUSE_GSTREAMER" = "yes"; then
39877             cat >>confdefs.h <<\_ACEOF
39878 #define wxUSE_GSTREAMER 1
39879 _ACEOF
39880
39881             echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39882 echo "${ECHO_T}GStreamer detection successful" >&6
39883         fi
39884     fi
39885     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39886     cat >>confdefs.h <<\_ACEOF
39887 #define wxUSE_MEDIACTRL 1
39888 _ACEOF
39889
39890 fi
39891
39892
39893 if test "$cross_compiling" = "yes"; then
39894         OSINFO="\"$host\""
39895 else
39896         OSINFO=`uname -s -r -m`
39897     OSINFO="\"$OSINFO\""
39898 fi
39899
39900 cat >>confdefs.h <<_ACEOF
39901 #define WXWIN_OS_DESCRIPTION $OSINFO
39902 _ACEOF
39903
39904
39905
39906 if test "x$prefix" != "xNONE"; then
39907     wxPREFIX=$prefix
39908 else
39909     wxPREFIX=$ac_default_prefix
39910 fi
39911
39912 cat >>confdefs.h <<_ACEOF
39913 #define wxINSTALL_PREFIX "$wxPREFIX"
39914 _ACEOF
39915
39916
39917
39918
39919 CORE_BASE_LIBS="net base"
39920 CORE_GUI_LIBS="adv core"
39921
39922 if test "$wxUSE_XML" = "yes" ; then
39923     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39924 fi
39925 if test "$wxUSE_ODBC" != "no" ; then
39926     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39927     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39928 fi
39929 if test "$wxUSE_HTML" = "yes" ; then
39930     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39931 fi
39932 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
39933     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
39934 fi
39935 if test "$wxUSE_XRC" = "yes" ; then
39936     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39937 fi
39938
39939 if test "$wxUSE_GUI" != "yes"; then
39940     CORE_GUI_LIBS=""
39941 fi
39942
39943
39944
39945
39946
39947
39948
39949
39950 if test "$wxUSE_MAC" = 1 ; then
39951     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
39952         if test "$USE_DARWIN" = 1; then
39953             LDFLAGS="$LDFLAGS -framework QuickTime"
39954         else
39955             LDFLAGS="$LDFLAGS -lQuickTimeLib"
39956         fi
39957     fi
39958     if test "$USE_DARWIN" = 1; then
39959         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39960     else
39961         LDFLAGS="$LDFLAGS -lCarbonLib"
39962     fi
39963 elif test "$USE_DARWIN" = 1; then
39964     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System"
39965 fi
39966 if test "$wxUSE_COCOA" = 1 ; then
39967     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
39968     if test "$wxUSE_MEDIACTRL" = "yes"; then
39969         LDFLAGS="$LDFLAGS -framework QuickTime"
39970     fi
39971 fi
39972
39973
39974 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39975
39976 have_cos=0
39977 have_floor=0
39978
39979 for ac_func in cos
39980 do
39981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39982 echo "$as_me:$LINENO: checking for $ac_func" >&5
39983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39984 if eval "test \"\${$as_ac_var+set}\" = set"; then
39985   echo $ECHO_N "(cached) $ECHO_C" >&6
39986 else
39987   cat >conftest.$ac_ext <<_ACEOF
39988 /* confdefs.h.  */
39989 _ACEOF
39990 cat confdefs.h >>conftest.$ac_ext
39991 cat >>conftest.$ac_ext <<_ACEOF
39992 /* end confdefs.h.  */
39993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39995 #define $ac_func innocuous_$ac_func
39996
39997 /* System header to define __stub macros and hopefully few prototypes,
39998     which can conflict with char $ac_func (); below.
39999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40000     <limits.h> exists even on freestanding compilers.  */
40001
40002 #ifdef __STDC__
40003 # include <limits.h>
40004 #else
40005 # include <assert.h>
40006 #endif
40007
40008 #undef $ac_func
40009
40010 /* Override any gcc2 internal prototype to avoid an error.  */
40011 #ifdef __cplusplus
40012 extern "C"
40013 {
40014 #endif
40015 /* We use char because int might match the return type of a gcc2
40016    builtin and then its argument prototype would still apply.  */
40017 char $ac_func ();
40018 /* The GNU C library defines this for functions which it implements
40019     to always fail with ENOSYS.  Some functions are actually named
40020     something starting with __ and the normal name is an alias.  */
40021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40022 choke me
40023 #else
40024 char (*f) () = $ac_func;
40025 #endif
40026 #ifdef __cplusplus
40027 }
40028 #endif
40029
40030 int
40031 main ()
40032 {
40033 return f != $ac_func;
40034   ;
40035   return 0;
40036 }
40037 _ACEOF
40038 rm -f conftest.$ac_objext conftest$ac_exeext
40039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40040   (eval $ac_link) 2>conftest.er1
40041   ac_status=$?
40042   grep -v '^ *+' conftest.er1 >conftest.err
40043   rm -f conftest.er1
40044   cat conftest.err >&5
40045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046   (exit $ac_status); } &&
40047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40049   (eval $ac_try) 2>&5
40050   ac_status=$?
40051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40052   (exit $ac_status); }; } &&
40053          { ac_try='test -s conftest$ac_exeext'
40054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40055   (eval $ac_try) 2>&5
40056   ac_status=$?
40057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058   (exit $ac_status); }; }; then
40059   eval "$as_ac_var=yes"
40060 else
40061   echo "$as_me: failed program was:" >&5
40062 sed 's/^/| /' conftest.$ac_ext >&5
40063
40064 eval "$as_ac_var=no"
40065 fi
40066 rm -f conftest.err conftest.$ac_objext \
40067       conftest$ac_exeext conftest.$ac_ext
40068 fi
40069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40071 if test `eval echo '${'$as_ac_var'}'` = yes; then
40072   cat >>confdefs.h <<_ACEOF
40073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40074 _ACEOF
40075  have_cos=1
40076 fi
40077 done
40078
40079
40080 for ac_func in floor
40081 do
40082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40083 echo "$as_me:$LINENO: checking for $ac_func" >&5
40084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40085 if eval "test \"\${$as_ac_var+set}\" = set"; then
40086   echo $ECHO_N "(cached) $ECHO_C" >&6
40087 else
40088   cat >conftest.$ac_ext <<_ACEOF
40089 /* confdefs.h.  */
40090 _ACEOF
40091 cat confdefs.h >>conftest.$ac_ext
40092 cat >>conftest.$ac_ext <<_ACEOF
40093 /* end confdefs.h.  */
40094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40096 #define $ac_func innocuous_$ac_func
40097
40098 /* System header to define __stub macros and hopefully few prototypes,
40099     which can conflict with char $ac_func (); below.
40100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40101     <limits.h> exists even on freestanding compilers.  */
40102
40103 #ifdef __STDC__
40104 # include <limits.h>
40105 #else
40106 # include <assert.h>
40107 #endif
40108
40109 #undef $ac_func
40110
40111 /* Override any gcc2 internal prototype to avoid an error.  */
40112 #ifdef __cplusplus
40113 extern "C"
40114 {
40115 #endif
40116 /* We use char because int might match the return type of a gcc2
40117    builtin and then its argument prototype would still apply.  */
40118 char $ac_func ();
40119 /* The GNU C library defines this for functions which it implements
40120     to always fail with ENOSYS.  Some functions are actually named
40121     something starting with __ and the normal name is an alias.  */
40122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40123 choke me
40124 #else
40125 char (*f) () = $ac_func;
40126 #endif
40127 #ifdef __cplusplus
40128 }
40129 #endif
40130
40131 int
40132 main ()
40133 {
40134 return f != $ac_func;
40135   ;
40136   return 0;
40137 }
40138 _ACEOF
40139 rm -f conftest.$ac_objext conftest$ac_exeext
40140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40141   (eval $ac_link) 2>conftest.er1
40142   ac_status=$?
40143   grep -v '^ *+' conftest.er1 >conftest.err
40144   rm -f conftest.er1
40145   cat conftest.err >&5
40146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147   (exit $ac_status); } &&
40148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40150   (eval $ac_try) 2>&5
40151   ac_status=$?
40152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153   (exit $ac_status); }; } &&
40154          { ac_try='test -s conftest$ac_exeext'
40155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40156   (eval $ac_try) 2>&5
40157   ac_status=$?
40158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159   (exit $ac_status); }; }; then
40160   eval "$as_ac_var=yes"
40161 else
40162   echo "$as_me: failed program was:" >&5
40163 sed 's/^/| /' conftest.$ac_ext >&5
40164
40165 eval "$as_ac_var=no"
40166 fi
40167 rm -f conftest.err conftest.$ac_objext \
40168       conftest$ac_exeext conftest.$ac_ext
40169 fi
40170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40172 if test `eval echo '${'$as_ac_var'}'` = yes; then
40173   cat >>confdefs.h <<_ACEOF
40174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40175 _ACEOF
40176  have_floor=1
40177 fi
40178 done
40179
40180 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40181 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40182 if test "$have_cos" = 1 -a "$have_floor" = 1; then
40183     echo "$as_me:$LINENO: result: yes" >&5
40184 echo "${ECHO_T}yes" >&6
40185 else
40186     echo "$as_me:$LINENO: result: no" >&5
40187 echo "${ECHO_T}no" >&6
40188     LIBS="$LIBS -lm"
40189     # use different functions to avoid configure caching
40190     have_sin=0
40191     have_ceil=0
40192
40193 for ac_func in sin
40194 do
40195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40196 echo "$as_me:$LINENO: checking for $ac_func" >&5
40197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40198 if eval "test \"\${$as_ac_var+set}\" = set"; then
40199   echo $ECHO_N "(cached) $ECHO_C" >&6
40200 else
40201   cat >conftest.$ac_ext <<_ACEOF
40202 /* confdefs.h.  */
40203 _ACEOF
40204 cat confdefs.h >>conftest.$ac_ext
40205 cat >>conftest.$ac_ext <<_ACEOF
40206 /* end confdefs.h.  */
40207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40209 #define $ac_func innocuous_$ac_func
40210
40211 /* System header to define __stub macros and hopefully few prototypes,
40212     which can conflict with char $ac_func (); below.
40213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40214     <limits.h> exists even on freestanding compilers.  */
40215
40216 #ifdef __STDC__
40217 # include <limits.h>
40218 #else
40219 # include <assert.h>
40220 #endif
40221
40222 #undef $ac_func
40223
40224 /* Override any gcc2 internal prototype to avoid an error.  */
40225 #ifdef __cplusplus
40226 extern "C"
40227 {
40228 #endif
40229 /* We use char because int might match the return type of a gcc2
40230    builtin and then its argument prototype would still apply.  */
40231 char $ac_func ();
40232 /* The GNU C library defines this for functions which it implements
40233     to always fail with ENOSYS.  Some functions are actually named
40234     something starting with __ and the normal name is an alias.  */
40235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40236 choke me
40237 #else
40238 char (*f) () = $ac_func;
40239 #endif
40240 #ifdef __cplusplus
40241 }
40242 #endif
40243
40244 int
40245 main ()
40246 {
40247 return f != $ac_func;
40248   ;
40249   return 0;
40250 }
40251 _ACEOF
40252 rm -f conftest.$ac_objext conftest$ac_exeext
40253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40254   (eval $ac_link) 2>conftest.er1
40255   ac_status=$?
40256   grep -v '^ *+' conftest.er1 >conftest.err
40257   rm -f conftest.er1
40258   cat conftest.err >&5
40259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260   (exit $ac_status); } &&
40261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40263   (eval $ac_try) 2>&5
40264   ac_status=$?
40265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40266   (exit $ac_status); }; } &&
40267          { ac_try='test -s conftest$ac_exeext'
40268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40269   (eval $ac_try) 2>&5
40270   ac_status=$?
40271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40272   (exit $ac_status); }; }; then
40273   eval "$as_ac_var=yes"
40274 else
40275   echo "$as_me: failed program was:" >&5
40276 sed 's/^/| /' conftest.$ac_ext >&5
40277
40278 eval "$as_ac_var=no"
40279 fi
40280 rm -f conftest.err conftest.$ac_objext \
40281       conftest$ac_exeext conftest.$ac_ext
40282 fi
40283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40285 if test `eval echo '${'$as_ac_var'}'` = yes; then
40286   cat >>confdefs.h <<_ACEOF
40287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40288 _ACEOF
40289  have_sin=1
40290 fi
40291 done
40292
40293
40294 for ac_func in ceil
40295 do
40296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40297 echo "$as_me:$LINENO: checking for $ac_func" >&5
40298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40299 if eval "test \"\${$as_ac_var+set}\" = set"; then
40300   echo $ECHO_N "(cached) $ECHO_C" >&6
40301 else
40302   cat >conftest.$ac_ext <<_ACEOF
40303 /* confdefs.h.  */
40304 _ACEOF
40305 cat confdefs.h >>conftest.$ac_ext
40306 cat >>conftest.$ac_ext <<_ACEOF
40307 /* end confdefs.h.  */
40308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40310 #define $ac_func innocuous_$ac_func
40311
40312 /* System header to define __stub macros and hopefully few prototypes,
40313     which can conflict with char $ac_func (); below.
40314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40315     <limits.h> exists even on freestanding compilers.  */
40316
40317 #ifdef __STDC__
40318 # include <limits.h>
40319 #else
40320 # include <assert.h>
40321 #endif
40322
40323 #undef $ac_func
40324
40325 /* Override any gcc2 internal prototype to avoid an error.  */
40326 #ifdef __cplusplus
40327 extern "C"
40328 {
40329 #endif
40330 /* We use char because int might match the return type of a gcc2
40331    builtin and then its argument prototype would still apply.  */
40332 char $ac_func ();
40333 /* The GNU C library defines this for functions which it implements
40334     to always fail with ENOSYS.  Some functions are actually named
40335     something starting with __ and the normal name is an alias.  */
40336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40337 choke me
40338 #else
40339 char (*f) () = $ac_func;
40340 #endif
40341 #ifdef __cplusplus
40342 }
40343 #endif
40344
40345 int
40346 main ()
40347 {
40348 return f != $ac_func;
40349   ;
40350   return 0;
40351 }
40352 _ACEOF
40353 rm -f conftest.$ac_objext conftest$ac_exeext
40354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40355   (eval $ac_link) 2>conftest.er1
40356   ac_status=$?
40357   grep -v '^ *+' conftest.er1 >conftest.err
40358   rm -f conftest.er1
40359   cat conftest.err >&5
40360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40361   (exit $ac_status); } &&
40362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40364   (eval $ac_try) 2>&5
40365   ac_status=$?
40366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40367   (exit $ac_status); }; } &&
40368          { ac_try='test -s conftest$ac_exeext'
40369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40370   (eval $ac_try) 2>&5
40371   ac_status=$?
40372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40373   (exit $ac_status); }; }; then
40374   eval "$as_ac_var=yes"
40375 else
40376   echo "$as_me: failed program was:" >&5
40377 sed 's/^/| /' conftest.$ac_ext >&5
40378
40379 eval "$as_ac_var=no"
40380 fi
40381 rm -f conftest.err conftest.$ac_objext \
40382       conftest$ac_exeext conftest.$ac_ext
40383 fi
40384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40386 if test `eval echo '${'$as_ac_var'}'` = yes; then
40387   cat >>confdefs.h <<_ACEOF
40388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40389 _ACEOF
40390  have_ceil=1
40391 fi
40392 done
40393
40394     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40395 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40396     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40397         echo "$as_me:$LINENO: result: yes" >&5
40398 echo "${ECHO_T}yes" >&6
40399     else
40400         echo "$as_me:$LINENO: result: no" >&5
40401 echo "${ECHO_T}no" >&6
40402         # not sure we should warn the user, crash, etc.
40403     fi
40404 fi
40405
40406 if test "$wxUSE_GUI" = "yes"; then
40407
40408
40409         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40410                      dynamic erase event exec font image minimal mobile \
40411                      mobile/wxedit mobile/styles propsize render \
40412                      richedit rotate shaped vscroll widgets"
40413
40414     if test "$wxUSE_MONOLITHIC" != "yes"; then
40415         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40416     fi
40417     if test "$TOOLKIT" = "MSW"; then
40418         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40419         if test "$wxUSE_UNIVERSAL" != "yes"; then
40420             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40421         fi
40422     fi
40423     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40424         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
40425     fi
40426 else
40427     SAMPLES_SUBDIRS="console"
40428 fi
40429
40430
40431 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
40432 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40433
40434 if test "$GXX" = yes ; then
40435         CWARNINGS="-Wall"
40436     CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
40437         fi
40438
40439 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40440
40441 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
40442 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
40443 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
40444
40445 if test "x$MWCC" = "xyes"; then
40446
40447             CC="$CC -cwd source -I-"
40448     CXX="$CXX -cwd source -I-"
40449 fi
40450
40451
40452 LIBS=`echo $LIBS`
40453 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40454 EXTRALIBS_XML="$EXPAT_LINK"
40455 EXTRALIBS_HTML="$MSPACK_LINK"
40456 EXTRALIBS_ODBC="$ODBC_LINK"
40457 if test "$wxUSE_GUI" = "yes"; then
40458     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
40459 fi
40460 if test "$wxUSE_OPENGL" = "yes"; then
40461     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40462 fi
40463
40464 LDFLAGS="$LDFLAGS $PROFILE"
40465
40466 if test "$wxUSE_GTK" = 1; then
40467     WXCONFIG_INCLUDE=
40468 else
40469     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40470 fi
40471
40472 WXCONFIG_EXTRALIBS="$LIBS"
40473
40474 if test "$wxUSE_REGEX" = "builtin" ; then
40475     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
40476 fi
40477 if test "$wxUSE_EXPAT" = "builtin" ; then
40478     wxconfig_3rdparty="expat $wxconfig_3rdparty"
40479 fi
40480 if test "$wxUSE_ODBC" = "builtin" ; then
40481     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
40482 fi
40483 if test "$wxUSE_LIBTIFF" = "builtin" ; then
40484     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
40485 fi
40486 if test "$wxUSE_LIBJPEG" = "builtin" ; then
40487     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
40488 fi
40489 if test "$wxUSE_LIBPNG" = "builtin" ; then
40490     wxconfig_3rdparty="png $wxconfig_3rdparty"
40491 fi
40492 if test "$wxUSE_ZLIB" = "builtin" ; then
40493     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
40494 fi
40495
40496 for i in $wxconfig_3rdparty ; do
40497     WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
40498 done
40499
40500
40501 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40502     WXUNIV=1
40503 else
40504     WXUNIV=0
40505 fi
40506
40507
40508
40509
40510
40511
40512
40513
40514
40515 if test $wxUSE_MONOLITHIC = "yes" ; then
40516     MONOLITHIC=1
40517 else
40518     MONOLITHIC=0
40519 fi
40520
40521 if test $wxUSE_PLUGINS = "yes" ; then
40522     USE_PLUGINS=1
40523 else
40524     USE_PLUGINS=0
40525 fi
40526
40527 if test $wxUSE_ODBC != "no" ; then
40528     USE_ODBC=1
40529 else
40530     USE_ODBC=0
40531 fi
40532
40533 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40534     USE_QA=1
40535 else
40536     USE_QA=0
40537 fi
40538
40539 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40540     OFFICIAL_BUILD=1
40541 else
40542     OFFICIAL_BUILD=0
40543 fi
40544
40545
40546
40547
40548
40549
40550
40551
40552
40553
40554
40555
40556
40557
40558
40559
40560
40561
40562
40563
40564
40565
40566
40567 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40568
40569
40570
40571
40572
40573
40574
40575
40576 case "$TOOLKIT" in
40577     GTK)
40578         TOOLKIT_USER="GTK+"
40579         if test "$WXGTK20" = 1; then
40580             TOOLKIT_USER="$TOOLKIT_USER 2"
40581         fi
40582         ;;
40583
40584     *)
40585         TOOLKIT_USER=$TOOLKIT_LOWERCASE
40586         ;;
40587 esac
40588
40589
40590
40591
40592     if test "x$BAKEFILE_HOST" = "x"; then
40593         BAKEFILE_HOST="${host}"
40594     fi
40595
40596     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40597
40598     if test -n "$ac_tool_prefix"; then
40599   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40601 echo "$as_me:$LINENO: checking for $ac_word" >&5
40602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40603 if test "${ac_cv_prog_RANLIB+set}" = set; then
40604   echo $ECHO_N "(cached) $ECHO_C" >&6
40605 else
40606   if test -n "$RANLIB"; then
40607   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40608 else
40609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40610 for as_dir in $PATH
40611 do
40612   IFS=$as_save_IFS
40613   test -z "$as_dir" && as_dir=.
40614   for ac_exec_ext in '' $ac_executable_extensions; do
40615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40616     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40618     break 2
40619   fi
40620 done
40621 done
40622
40623 fi
40624 fi
40625 RANLIB=$ac_cv_prog_RANLIB
40626 if test -n "$RANLIB"; then
40627   echo "$as_me:$LINENO: result: $RANLIB" >&5
40628 echo "${ECHO_T}$RANLIB" >&6
40629 else
40630   echo "$as_me:$LINENO: result: no" >&5
40631 echo "${ECHO_T}no" >&6
40632 fi
40633
40634 fi
40635 if test -z "$ac_cv_prog_RANLIB"; then
40636   ac_ct_RANLIB=$RANLIB
40637   # Extract the first word of "ranlib", so it can be a program name with args.
40638 set dummy ranlib; ac_word=$2
40639 echo "$as_me:$LINENO: checking for $ac_word" >&5
40640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40641 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40642   echo $ECHO_N "(cached) $ECHO_C" >&6
40643 else
40644   if test -n "$ac_ct_RANLIB"; then
40645   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40646 else
40647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40648 for as_dir in $PATH
40649 do
40650   IFS=$as_save_IFS
40651   test -z "$as_dir" && as_dir=.
40652   for ac_exec_ext in '' $ac_executable_extensions; do
40653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40654     ac_cv_prog_ac_ct_RANLIB="ranlib"
40655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40656     break 2
40657   fi
40658 done
40659 done
40660
40661   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40662 fi
40663 fi
40664 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40665 if test -n "$ac_ct_RANLIB"; then
40666   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40667 echo "${ECHO_T}$ac_ct_RANLIB" >&6
40668 else
40669   echo "$as_me:$LINENO: result: no" >&5
40670 echo "${ECHO_T}no" >&6
40671 fi
40672
40673   RANLIB=$ac_ct_RANLIB
40674 else
40675   RANLIB="$ac_cv_prog_RANLIB"
40676 fi
40677
40678     # Find a good install program.  We prefer a C program (faster),
40679 # so one script is as good as another.  But avoid the broken or
40680 # incompatible versions:
40681 # SysV /etc/install, /usr/sbin/install
40682 # SunOS /usr/etc/install
40683 # IRIX /sbin/install
40684 # AIX /bin/install
40685 # AmigaOS /C/install, which installs bootblocks on floppy discs
40686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
40688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
40689 # OS/2's system install, which has a completely different semantic
40690 # ./install, which can be erroneously created by make from ./install.sh.
40691 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40692 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40693 if test -z "$INSTALL"; then
40694 if test "${ac_cv_path_install+set}" = set; then
40695   echo $ECHO_N "(cached) $ECHO_C" >&6
40696 else
40697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40698 for as_dir in $PATH
40699 do
40700   IFS=$as_save_IFS
40701   test -z "$as_dir" && as_dir=.
40702   # Account for people who put trailing slashes in PATH elements.
40703 case $as_dir/ in
40704   ./ | .// | /cC/* | \
40705   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
40706   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
40707   /usr/ucb/* ) ;;
40708   *)
40709     # OSF1 and SCO ODT 3.0 have their own names for install.
40710     # Don't use installbsd from OSF since it installs stuff as root
40711     # by default.
40712     for ac_prog in ginstall scoinst install; do
40713       for ac_exec_ext in '' $ac_executable_extensions; do
40714         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40715           if test $ac_prog = install &&
40716             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40717             # AIX install.  It has an incompatible calling convention.
40718             :
40719           elif test $ac_prog = install &&
40720             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40721             # program-specific install script used by HP pwplus--don't use.
40722             :
40723           else
40724             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40725             break 3
40726           fi
40727         fi
40728       done
40729     done
40730     ;;
40731 esac
40732 done
40733
40734
40735 fi
40736   if test "${ac_cv_path_install+set}" = set; then
40737     INSTALL=$ac_cv_path_install
40738   else
40739     # As a last resort, use the slow shell script.  We don't cache a
40740     # path for INSTALL within a source directory, because that will
40741     # break other packages using the cache if that directory is
40742     # removed, or if the path is relative.
40743     INSTALL=$ac_install_sh
40744   fi
40745 fi
40746 echo "$as_me:$LINENO: result: $INSTALL" >&5
40747 echo "${ECHO_T}$INSTALL" >&6
40748
40749 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40750 # It thinks the first close brace ends the variable substitution.
40751 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40752
40753 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40754
40755 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40756
40757     echo "$as_me:$LINENO: checking whether ln -s works" >&5
40758 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40759 LN_S=$as_ln_s
40760 if test "$LN_S" = "ln -s"; then
40761   echo "$as_me:$LINENO: result: yes" >&5
40762 echo "${ECHO_T}yes" >&6
40763 else
40764   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40765 echo "${ECHO_T}no, using $LN_S" >&6
40766 fi
40767
40768
40769     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40770 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
40771 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
40772 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40773   echo $ECHO_N "(cached) $ECHO_C" >&6
40774 else
40775   cat >conftest.make <<\_ACEOF
40776 all:
40777         @echo 'ac_maketemp="$(MAKE)"'
40778 _ACEOF
40779 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40780 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40781 if test -n "$ac_maketemp"; then
40782   eval ac_cv_prog_make_${ac_make}_set=yes
40783 else
40784   eval ac_cv_prog_make_${ac_make}_set=no
40785 fi
40786 rm -f conftest.make
40787 fi
40788 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40789   echo "$as_me:$LINENO: result: yes" >&5
40790 echo "${ECHO_T}yes" >&6
40791   SET_MAKE=
40792 else
40793   echo "$as_me:$LINENO: result: no" >&5
40794 echo "${ECHO_T}no" >&6
40795   SET_MAKE="MAKE=${MAKE-make}"
40796 fi
40797
40798
40799
40800     if test -n "$ac_tool_prefix"; then
40801   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40802 set dummy ${ac_tool_prefix}ar; ac_word=$2
40803 echo "$as_me:$LINENO: checking for $ac_word" >&5
40804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40805 if test "${ac_cv_prog_AR+set}" = set; then
40806   echo $ECHO_N "(cached) $ECHO_C" >&6
40807 else
40808   if test -n "$AR"; then
40809   ac_cv_prog_AR="$AR" # Let the user override the test.
40810 else
40811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40812 for as_dir in $PATH
40813 do
40814   IFS=$as_save_IFS
40815   test -z "$as_dir" && as_dir=.
40816   for ac_exec_ext in '' $ac_executable_extensions; do
40817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40818     ac_cv_prog_AR="${ac_tool_prefix}ar"
40819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40820     break 2
40821   fi
40822 done
40823 done
40824
40825 fi
40826 fi
40827 AR=$ac_cv_prog_AR
40828 if test -n "$AR"; then
40829   echo "$as_me:$LINENO: result: $AR" >&5
40830 echo "${ECHO_T}$AR" >&6
40831 else
40832   echo "$as_me:$LINENO: result: no" >&5
40833 echo "${ECHO_T}no" >&6
40834 fi
40835
40836 fi
40837 if test -z "$ac_cv_prog_AR"; then
40838   ac_ct_AR=$AR
40839   # Extract the first word of "ar", so it can be a program name with args.
40840 set dummy ar; ac_word=$2
40841 echo "$as_me:$LINENO: checking for $ac_word" >&5
40842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40843 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40844   echo $ECHO_N "(cached) $ECHO_C" >&6
40845 else
40846   if test -n "$ac_ct_AR"; then
40847   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40848 else
40849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40850 for as_dir in $PATH
40851 do
40852   IFS=$as_save_IFS
40853   test -z "$as_dir" && as_dir=.
40854   for ac_exec_ext in '' $ac_executable_extensions; do
40855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40856     ac_cv_prog_ac_ct_AR="ar"
40857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40858     break 2
40859   fi
40860 done
40861 done
40862
40863   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40864 fi
40865 fi
40866 ac_ct_AR=$ac_cv_prog_ac_ct_AR
40867 if test -n "$ac_ct_AR"; then
40868   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40869 echo "${ECHO_T}$ac_ct_AR" >&6
40870 else
40871   echo "$as_me:$LINENO: result: no" >&5
40872 echo "${ECHO_T}no" >&6
40873 fi
40874
40875   AR=$ac_ct_AR
40876 else
40877   AR="$ac_cv_prog_AR"
40878 fi
40879
40880     if test -n "$ac_tool_prefix"; then
40881   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40882 set dummy ${ac_tool_prefix}strip; ac_word=$2
40883 echo "$as_me:$LINENO: checking for $ac_word" >&5
40884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40885 if test "${ac_cv_prog_STRIP+set}" = set; then
40886   echo $ECHO_N "(cached) $ECHO_C" >&6
40887 else
40888   if test -n "$STRIP"; then
40889   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40890 else
40891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40892 for as_dir in $PATH
40893 do
40894   IFS=$as_save_IFS
40895   test -z "$as_dir" && as_dir=.
40896   for ac_exec_ext in '' $ac_executable_extensions; do
40897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40898     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40900     break 2
40901   fi
40902 done
40903 done
40904
40905 fi
40906 fi
40907 STRIP=$ac_cv_prog_STRIP
40908 if test -n "$STRIP"; then
40909   echo "$as_me:$LINENO: result: $STRIP" >&5
40910 echo "${ECHO_T}$STRIP" >&6
40911 else
40912   echo "$as_me:$LINENO: result: no" >&5
40913 echo "${ECHO_T}no" >&6
40914 fi
40915
40916 fi
40917 if test -z "$ac_cv_prog_STRIP"; then
40918   ac_ct_STRIP=$STRIP
40919   # Extract the first word of "strip", so it can be a program name with args.
40920 set dummy strip; ac_word=$2
40921 echo "$as_me:$LINENO: checking for $ac_word" >&5
40922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40923 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40924   echo $ECHO_N "(cached) $ECHO_C" >&6
40925 else
40926   if test -n "$ac_ct_STRIP"; then
40927   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40928 else
40929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40930 for as_dir in $PATH
40931 do
40932   IFS=$as_save_IFS
40933   test -z "$as_dir" && as_dir=.
40934   for ac_exec_ext in '' $ac_executable_extensions; do
40935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40936     ac_cv_prog_ac_ct_STRIP="strip"
40937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40938     break 2
40939   fi
40940 done
40941 done
40942
40943   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40944 fi
40945 fi
40946 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40947 if test -n "$ac_ct_STRIP"; then
40948   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40949 echo "${ECHO_T}$ac_ct_STRIP" >&6
40950 else
40951   echo "$as_me:$LINENO: result: no" >&5
40952 echo "${ECHO_T}no" >&6
40953 fi
40954
40955   STRIP=$ac_ct_STRIP
40956 else
40957   STRIP="$ac_cv_prog_STRIP"
40958 fi
40959
40960     if test -n "$ac_tool_prefix"; then
40961   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40962 set dummy ${ac_tool_prefix}nm; ac_word=$2
40963 echo "$as_me:$LINENO: checking for $ac_word" >&5
40964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40965 if test "${ac_cv_prog_NM+set}" = set; then
40966   echo $ECHO_N "(cached) $ECHO_C" >&6
40967 else
40968   if test -n "$NM"; then
40969   ac_cv_prog_NM="$NM" # Let the user override the test.
40970 else
40971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40972 for as_dir in $PATH
40973 do
40974   IFS=$as_save_IFS
40975   test -z "$as_dir" && as_dir=.
40976   for ac_exec_ext in '' $ac_executable_extensions; do
40977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40978     ac_cv_prog_NM="${ac_tool_prefix}nm"
40979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40980     break 2
40981   fi
40982 done
40983 done
40984
40985 fi
40986 fi
40987 NM=$ac_cv_prog_NM
40988 if test -n "$NM"; then
40989   echo "$as_me:$LINENO: result: $NM" >&5
40990 echo "${ECHO_T}$NM" >&6
40991 else
40992   echo "$as_me:$LINENO: result: no" >&5
40993 echo "${ECHO_T}no" >&6
40994 fi
40995
40996 fi
40997 if test -z "$ac_cv_prog_NM"; then
40998   ac_ct_NM=$NM
40999   # Extract the first word of "nm", so it can be a program name with args.
41000 set dummy nm; ac_word=$2
41001 echo "$as_me:$LINENO: checking for $ac_word" >&5
41002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41003 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41004   echo $ECHO_N "(cached) $ECHO_C" >&6
41005 else
41006   if test -n "$ac_ct_NM"; then
41007   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41008 else
41009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41010 for as_dir in $PATH
41011 do
41012   IFS=$as_save_IFS
41013   test -z "$as_dir" && as_dir=.
41014   for ac_exec_ext in '' $ac_executable_extensions; do
41015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41016     ac_cv_prog_ac_ct_NM="nm"
41017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41018     break 2
41019   fi
41020 done
41021 done
41022
41023   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41024 fi
41025 fi
41026 ac_ct_NM=$ac_cv_prog_ac_ct_NM
41027 if test -n "$ac_ct_NM"; then
41028   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41029 echo "${ECHO_T}$ac_ct_NM" >&6
41030 else
41031   echo "$as_me:$LINENO: result: no" >&5
41032 echo "${ECHO_T}no" >&6
41033 fi
41034
41035   NM=$ac_ct_NM
41036 else
41037   NM="$ac_cv_prog_NM"
41038 fi
41039
41040
41041     case ${BAKEFILE_HOST} in
41042         *-hp-hpux* )
41043                                     INSTALL_DIR="mkdir -p"
41044             ;;
41045         *)  INSTALL_DIR="$INSTALL -d"
41046             ;;
41047     esac
41048
41049
41050     LDFLAGS_GUI=
41051     case ${BAKEFILE_HOST} in
41052         *-*-cygwin* | *-*-mingw32* )
41053         LDFLAGS_GUI="-mwindows"
41054     esac
41055
41056
41057     fi
41058
41059         echo "$as_me:$LINENO: checking if make is GNU make" >&5
41060 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41061 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41062   echo $ECHO_N "(cached) $ECHO_C" >&6
41063 else
41064
41065         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41066                 egrep -s GNU > /dev/null); then
41067             bakefile_cv_prog_makeisgnu="yes"
41068         else
41069             bakefile_cv_prog_makeisgnu="no"
41070         fi
41071
41072 fi
41073 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41074 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41075
41076     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41077         IF_GNU_MAKE=""
41078     else
41079         IF_GNU_MAKE="#"
41080     fi
41081
41082
41083
41084     PLATFORM_UNIX=0
41085     PLATFORM_WIN32=0
41086     PLATFORM_MSDOS=0
41087     PLATFORM_MAC=0
41088     PLATFORM_MACOS=0
41089     PLATFORM_MACOSX=0
41090     PLATFORM_OS2=0
41091     PLATFORM_BEOS=0
41092
41093     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41094         case "${BAKEFILE_HOST}" in
41095             *-*-cygwin* | *-*-mingw32* )
41096                 PLATFORM_WIN32=1
41097             ;;
41098             *-pc-msdosdjgpp )
41099                 PLATFORM_MSDOS=1
41100             ;;
41101             *-pc-os2_emx | *-pc-os2-emx )
41102                 PLATFORM_OS2=1
41103             ;;
41104             powerpc-*-darwin* )
41105                 PLATFORM_MAC=1
41106                 PLATFORM_MACOSX=1
41107             ;;
41108             *-*-beos* )
41109                 PLATFORM_BEOS=1
41110             ;;
41111             powerpc-apple-macos* )
41112                 PLATFORM_MAC=1
41113                 PLATFORM_MACOS=1
41114             ;;
41115             * )
41116                 PLATFORM_UNIX=1
41117             ;;
41118         esac
41119     else
41120         case "$BAKEFILE_FORCE_PLATFORM" in
41121             win32 )
41122                 PLATFORM_WIN32=1
41123             ;;
41124             msdos )
41125                 PLATFORM_MSDOS=1
41126             ;;
41127             os2 )
41128                 PLATFORM_OS2=1
41129             ;;
41130             darwin )
41131                 PLATFORM_MAC=1
41132                 PLATFORM_MACOSX=1
41133             ;;
41134             unix )
41135                 PLATFORM_UNIX=1
41136             ;;
41137             beos )
41138                 PLATFORM_BEOS=1
41139             ;;
41140             * )
41141                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41142 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41143    { (exit 1); exit 1; }; }
41144             ;;
41145         esac
41146     fi
41147
41148
41149
41150
41151
41152
41153
41154
41155
41156
41157
41158     # Check whether --enable-omf or --disable-omf was given.
41159 if test "${enable_omf+set}" = set; then
41160   enableval="$enable_omf"
41161   bk_os2_use_omf="$enableval"
41162 fi;
41163
41164     case "${BAKEFILE_HOST}" in
41165       *-*-darwin* )
41166                         CFLAGS="$CFLAGS -fno-common"
41167         CXXFLAGS="$CXXFLAGS -fno-common"
41168         ;;
41169
41170       *-pc-os2_emx | *-pc-os2-emx )
41171         if test "x$bk_os2_use_omf" = "xyes" ; then
41172             AR=emxomfar
41173             RANLIB=:
41174             LDFLAGS="-Zomf $LDFLAGS"
41175             CFLAGS="-Zomf $CFLAGS"
41176             CXXFLAGS="-Zomf $CXXFLAGS"
41177             OS2_LIBEXT="lib"
41178         else
41179             OS2_LIBEXT="a"
41180         fi
41181         ;;
41182
41183       i*86-*-beos* )
41184         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41185         ;;
41186     esac
41187
41188
41189     SO_SUFFIX="so"
41190     SO_SUFFIX_MODULE="so"
41191     EXEEXT=""
41192     LIBPREFIX="lib"
41193     LIBEXT=".a"
41194     DLLPREFIX="lib"
41195     DLLPREFIX_MODULE=""
41196     DLLIMP_SUFFIX=""
41197
41198     case "${BAKEFILE_HOST}" in
41199         *-hp-hpux* )
41200             SO_SUFFIX="sl"
41201             SO_SUFFIX_MODULE="sl"
41202         ;;
41203         *-*-aix* )
41204                                                                         SO_SUFFIX="a"
41205             SO_SUFFIX_MODULE="a"
41206         ;;
41207         *-*-cygwin* | *-*-mingw32* )
41208             SO_SUFFIX="dll"
41209             SO_SUFFIX_MODULE="dll"
41210             DLLIMP_SUFFIX="dll.a"
41211             EXEEXT=".exe"
41212             DLLPREFIX=""
41213         ;;
41214         *-pc-msdosdjgpp )
41215             EXEEXT=".exe"
41216             DLLPREFIX=""
41217         ;;
41218         *-pc-os2_emx | *-pc-os2-emx )
41219             SO_SUFFIX="dll"
41220             SO_SUFFIX_MODULE="dll"
41221             DLLIMP_SUFFIX=$OS2_LIBEXT
41222             EXEEXT=".exe"
41223             DLLPREFIX=""
41224             LIBPREFIX=""
41225             LIBEXT=".$OS2_LIBEXT"
41226         ;;
41227         powerpc-*-darwin* )
41228             SO_SUFFIX="dylib"
41229             SO_SUFFIX_MODULE="bundle"
41230         ;;
41231     esac
41232
41233     if test "x$DLLIMP_SUFFIX" = "x" ; then
41234         DLLIMP_SUFFIX="$SO_SUFFIX"
41235     fi
41236
41237
41238
41239
41240
41241
41242
41243
41244
41245
41246
41247         PIC_FLAG=""
41248     if test "x$GCC" = "xyes"; then
41249                 PIC_FLAG="-fPIC"
41250     fi
41251
41252         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41253     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41254
41255     case "${BAKEFILE_HOST}" in
41256       *-hp-hpux* )
41257                 if test "x$GCC" != "xyes"; then
41258                         LDFLAGS="$LDFLAGS -L/usr/lib"
41259
41260             SHARED_LD_CC="${CC} -b -o"
41261             SHARED_LD_CXX="${CXX} -b -o"
41262             PIC_FLAG="+Z"
41263         fi
41264       ;;
41265
41266       *-*-linux* )
41267         if test "x$GCC" != "xyes"; then
41268             echo "$as_me:$LINENO: checking for Intel compiler" >&5
41269 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41270 if test "${bakefile_cv_prog_icc+set}" = set; then
41271   echo $ECHO_N "(cached) $ECHO_C" >&6
41272 else
41273
41274                 cat >conftest.$ac_ext <<_ACEOF
41275 /* confdefs.h.  */
41276 _ACEOF
41277 cat confdefs.h >>conftest.$ac_ext
41278 cat >>conftest.$ac_ext <<_ACEOF
41279 /* end confdefs.h.  */
41280
41281 int
41282 main ()
41283 {
41284
41285                         #ifndef __INTEL_COMPILER
41286                         #error Not icc
41287                         #endif
41288
41289   ;
41290   return 0;
41291 }
41292 _ACEOF
41293 rm -f conftest.$ac_objext
41294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41295   (eval $ac_compile) 2>conftest.er1
41296   ac_status=$?
41297   grep -v '^ *+' conftest.er1 >conftest.err
41298   rm -f conftest.er1
41299   cat conftest.err >&5
41300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41301   (exit $ac_status); } &&
41302          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41304   (eval $ac_try) 2>&5
41305   ac_status=$?
41306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41307   (exit $ac_status); }; } &&
41308          { ac_try='test -s conftest.$ac_objext'
41309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41310   (eval $ac_try) 2>&5
41311   ac_status=$?
41312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41313   (exit $ac_status); }; }; then
41314   bakefile_cv_prog_icc=yes
41315 else
41316   echo "$as_me: failed program was:" >&5
41317 sed 's/^/| /' conftest.$ac_ext >&5
41318
41319 bakefile_cv_prog_icc=no
41320
41321 fi
41322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41323
41324 fi
41325 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41326 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41327             if test "$bakefile_cv_prog_icc" = "yes"; then
41328                 PIC_FLAG="-KPIC"
41329             fi
41330         fi
41331       ;;
41332
41333       *-*-solaris2* )
41334         if test "x$GCC" != xyes ; then
41335             SHARED_LD_CC="${CC} -G -o"
41336             SHARED_LD_CXX="${CXX} -G -o"
41337             PIC_FLAG="-KPIC"
41338         fi
41339       ;;
41340
41341       *-*-darwin* )
41342
41343                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41344 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41345 if test "${wx_cv_gcc31+set}" = set; then
41346   echo $ECHO_N "(cached) $ECHO_C" >&6
41347 else
41348
41349            cat >conftest.$ac_ext <<_ACEOF
41350 /* confdefs.h.  */
41351 _ACEOF
41352 cat confdefs.h >>conftest.$ac_ext
41353 cat >>conftest.$ac_ext <<_ACEOF
41354 /* end confdefs.h.  */
41355
41356 int
41357 main ()
41358 {
41359
41360                    #if (__GNUC__ < 3) || \
41361                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41362                        #error old gcc
41363                    #endif
41364
41365   ;
41366   return 0;
41367 }
41368 _ACEOF
41369 rm -f conftest.$ac_objext
41370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41371   (eval $ac_compile) 2>conftest.er1
41372   ac_status=$?
41373   grep -v '^ *+' conftest.er1 >conftest.err
41374   rm -f conftest.er1
41375   cat conftest.err >&5
41376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377   (exit $ac_status); } &&
41378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41380   (eval $ac_try) 2>&5
41381   ac_status=$?
41382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41383   (exit $ac_status); }; } &&
41384          { ac_try='test -s conftest.$ac_objext'
41385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41386   (eval $ac_try) 2>&5
41387   ac_status=$?
41388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41389   (exit $ac_status); }; }; then
41390
41391                    wx_cv_gcc31=yes
41392
41393 else
41394   echo "$as_me: failed program was:" >&5
41395 sed 's/^/| /' conftest.$ac_ext >&5
41396
41397
41398                    wx_cv_gcc31=no
41399
41400
41401 fi
41402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41403
41404 fi
41405 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41406 echo "${ECHO_T}$wx_cv_gcc31" >&6
41407         if test "$wx_cv_gcc31" = "no"; then
41408
41409 D='$'
41410 cat <<EOF >shared-ld-sh
41411 #!/bin/sh
41412 #-----------------------------------------------------------------------------
41413 #-- Name:        distrib/mac/shared-ld-sh
41414 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
41415 #-- Author:      Gilles Depeyrot
41416 #-- Copyright:   (c) 2002 Gilles Depeyrot
41417 #-- Licence:     any use permitted
41418 #-----------------------------------------------------------------------------
41419
41420 verbose=0
41421 args=""
41422 objects=""
41423 linking_flag="-dynamiclib"
41424
41425 while test ${D}# -gt 0; do
41426     case ${D}1 in
41427
41428        -v)
41429         verbose=1
41430         ;;
41431
41432        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41433         # collect these options and values
41434         args="${D}{args} ${D}1 ${D}2"
41435         shift
41436         ;;
41437
41438        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41439         # collect these options
41440         args="${D}{args} ${D}1"
41441         ;;
41442
41443        -dynamiclib|-bundle)
41444         linking_flag="${D}1"
41445         ;;
41446
41447        -*)
41448         echo "shared-ld: unhandled option '${D}1'"
41449         exit 1
41450         ;;
41451
41452         *.o | *.a | *.dylib)
41453         # collect object files
41454         objects="${D}{objects} ${D}1"
41455         ;;
41456
41457         *)
41458         echo "shared-ld: unhandled argument '${D}1'"
41459         exit 1
41460         ;;
41461
41462     esac
41463     shift
41464 done
41465
41466 #
41467 # Link one module containing all the others
41468 #
41469 if test ${D}{verbose} = 1; then
41470     echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
41471 fi
41472 c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41473 status=${D}?
41474 if test ${D}{status} != 0; then
41475     exit ${D}{status}
41476 fi
41477
41478 #
41479 # Link the shared library from the single module created
41480 #
41481 if test ${D}{verbose} = 1; then
41482     echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
41483 fi
41484 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41485 status=${D}?
41486 if test ${D}{status} != 0; then
41487     exit ${D}{status}
41488 fi
41489
41490 #
41491 # Remove intermediate module
41492 #
41493 rm -f master.${D}${D}.o
41494
41495 exit 0
41496 EOF
41497
41498             chmod +x shared-ld-sh
41499
41500                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41501             SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41502             SHARED_LD_CXX="$SHARED_LD_CC"
41503             SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41504         else
41505                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41506             SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41507             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41508             SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41509         fi
41510
41511         PIC_FLAG="-dynamic -fPIC"
41512       ;;
41513
41514       *-*-aix* )
41515                 if test "x$GCC" != "xyes"; then
41516                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41517 set dummy makeC++SharedLib; ac_word=$2
41518 echo "$as_me:$LINENO: checking for $ac_word" >&5
41519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41520 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41521   echo $ECHO_N "(cached) $ECHO_C" >&6
41522 else
41523   if test -n "$AIX_CXX_LD"; then
41524   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41525 else
41526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41527 for as_dir in $PATH
41528 do
41529   IFS=$as_save_IFS
41530   test -z "$as_dir" && as_dir=.
41531   for ac_exec_ext in '' $ac_executable_extensions; do
41532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41533     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41535     break 2
41536   fi
41537 done
41538 done
41539
41540   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41541 fi
41542 fi
41543 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41544 if test -n "$AIX_CXX_LD"; then
41545   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41546 echo "${ECHO_T}$AIX_CXX_LD" >&6
41547 else
41548   echo "$as_me:$LINENO: result: no" >&5
41549 echo "${ECHO_T}no" >&6
41550 fi
41551
41552                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41553             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41554         fi
41555       ;;
41556
41557       *-*-beos* )
41558                         SHARED_LD_CC="${LD} -nostart -o"
41559         SHARED_LD_CXX="${LD} -nostart -o"
41560       ;;
41561
41562       *-*-irix* )
41563                 if test "x$GCC" != "xyes"; then
41564             PIC_FLAG="-KPIC"
41565         fi
41566       ;;
41567
41568       *-*-cygwin* | *-*-mingw32* )
41569         PIC_FLAG=""
41570         SHARED_LD_CC="\$(CC) -shared -o"
41571         SHARED_LD_CXX="\$(CXX) -shared -o"
41572       ;;
41573
41574       *-pc-os2_emx | *-pc-os2-emx )
41575         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41576         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41577         PIC_FLAG=""
41578
41579 D='$'
41580 cat <<EOF >dllar.sh
41581 #!/bin/sh
41582 #
41583 # dllar - a tool to build both a .dll and an .a file
41584 # from a set of object (.o) files for EMX/OS2.
41585 #
41586 #  Written by Andrew Zabolotny, bit@freya.etu.ru
41587 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41588 #
41589 #  This script will accept a set of files on the command line.
41590 #  All the public symbols from the .o files will be exported into
41591 #  a .DEF file, then linker will be run (through gcc) against them to
41592 #  build a shared library consisting of all given .o files. All libraries
41593 #  (.a) will be first decompressed into component .o files then act as
41594 #  described above. You can optionally give a description (-d "description")
41595 #  which will be put into .DLL. To see the list of accepted options (as well
41596 #  as command-line format) simply run this program without options. The .DLL
41597 #  is built to be imported by name (there is no guarantee that new versions
41598 #  of the library you build will have same ordinals for same symbols).
41599 #
41600 #  dllar is free software; you can redistribute it and/or modify
41601 #  it under the terms of the GNU General Public License as published by
41602 #  the Free Software Foundation; either version 2, or (at your option)
41603 #  any later version.
41604 #
41605 #  dllar is distributed in the hope that it will be useful,
41606 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
41607 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41608 #  GNU General Public License for more details.
41609 #
41610 #  You should have received a copy of the GNU General Public License
41611 #  along with dllar; see the file COPYING.  If not, write to the Free
41612 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41613 #  02111-1307, USA.
41614
41615 # To successfuly run this program you will need:
41616 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
41617 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41618 #  - gcc
41619 #    (used to build the .dll)
41620 #  - emxexp
41621 #    (used to create .def file from .o files)
41622 #  - emximp
41623 #    (used to create .a file from .def file)
41624 #  - GNU text utilites (cat, sort, uniq)
41625 #    used to process emxexp output
41626 #  - GNU file utilities (mv, rm)
41627 #  - GNU sed
41628 #  - lxlite (optional, see flag below)
41629 #    (used for general .dll cleanup)
41630 #
41631
41632 flag_USE_LXLITE=1;
41633
41634 #
41635 # helper functions
41636 # basnam, variant of basename, which does _not_ remove the path, _iff_
41637 #                              second argument (suffix to remove) is given
41638 basnam(){
41639     case ${D}# in
41640     1)
41641         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
41642         ;;
41643     2)
41644         echo ${D}1 | sed 's/'${D}2'${D}//'
41645         ;;
41646     *)
41647         echo "error in basnam ${D}*"
41648         exit 8
41649         ;;
41650     esac
41651 }
41652
41653 # Cleanup temporary files and output
41654 CleanUp() {
41655     cd ${D}curDir
41656     for i in ${D}inputFiles ; do
41657         case ${D}i in
41658         *!)
41659             rm -rf \`basnam ${D}i !\`
41660             ;;
41661         *)
41662             ;;
41663         esac
41664     done
41665
41666     # Kill result in case of failure as there is just to many stupid make/nmake
41667     # things out there which doesn't do this.
41668     if [ ${D}# -eq 0 ]; then
41669         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41670     fi
41671 }
41672
41673 # Print usage and exit script with rc=1.
41674 PrintHelp() {
41675  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41676  echo '       [-name-mangler-script script.sh]'
41677  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41678  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
41679  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
41680  echo '       [*.o] [*.a]'
41681  echo '*> "output_file" should have no extension.'
41682  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
41683  echo '   The import library name is derived from this and is set to "name".a,'
41684  echo '   unless overridden by -import'
41685  echo '*> "importlib_name" should have no extension.'
41686  echo '   If it has the .o, or .a extension, it is automatically removed.'
41687  echo '   This name is used as the import library name and may be longer and'
41688  echo '   more descriptive than the DLL name which has to follow the old '
41689  echo '   8.3 convention of FAT.'
41690  echo '*> "script.sh may be given to override the output_file name by a'
41691  echo '   different name. It is mainly useful if the regular make process'
41692  echo '   of some package does not take into account OS/2 restriction of'
41693  echo '   DLL name lengths. It takes the importlib name as input and is'
41694  echo '   supposed to procude a shorter name as output. The script should'
41695  echo '   expect to get importlib_name without extension and should produce'
41696  echo '   a (max.) 8 letter name without extension.'
41697  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
41698  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41699  echo '   These flags will be put at the start of GCC command line.'
41700  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41701  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
41702  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41703  echo '   If the last character of a symbol is "*", all symbols beginning'
41704  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
41705  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
41706  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
41707  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
41708  echo '   C runtime DLLs.'
41709  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
41710  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41711  echo '   unchanged to GCC at the end of command line.'
41712  echo '*> If you create a DLL from a library and you do not specify -o,'
41713  echo '   the basename for DLL and import library will be set to library name,'
41714  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
41715  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41716  echo '   library will be renamed into gcc_s.a.'
41717  echo '--------'
41718  echo 'Example:'
41719  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41720  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41721  CleanUp
41722  exit 1
41723 }
41724
41725 # Execute a command.
41726 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41727 # @Uses    Whatever CleanUp() uses.
41728 doCommand() {
41729     echo "${D}*"
41730     eval ${D}*
41731     rcCmd=${D}?
41732
41733     if [ ${D}rcCmd -ne 0 ]; then
41734         echo "command failed, exit code="${D}rcCmd
41735         CleanUp
41736         exit ${D}rcCmd
41737     fi
41738 }
41739
41740 # main routine
41741 # setup globals
41742 cmdLine=${D}*
41743 outFile=""
41744 outimpFile=""
41745 inputFiles=""
41746 renameScript=""
41747 description=""
41748 CC=gcc.exe
41749 CFLAGS="-s -Zcrtdll"
41750 EXTRA_CFLAGS=""
41751 EXPORT_BY_ORDINALS=0
41752 exclude_symbols=""
41753 library_flags=""
41754 curDir=\`pwd\`
41755 curDirS=curDir
41756 case ${D}curDirS in
41757 */)
41758   ;;
41759 *)
41760   curDirS=${D}{curDirS}"/"
41761   ;;
41762 esac
41763 # Parse commandline
41764 libsToLink=0
41765 omfLinking=0
41766 while [ ${D}1 ]; do
41767     case ${D}1 in
41768     -ord*)
41769         EXPORT_BY_ORDINALS=1;
41770         ;;
41771     -o*)
41772         shift
41773         outFile=${D}1
41774         ;;
41775     -i*)
41776         shift
41777         outimpFile=${D}1
41778         ;;
41779     -name-mangler-script)
41780         shift
41781         renameScript=${D}1
41782         ;;
41783     -d*)
41784         shift
41785         description=${D}1
41786         ;;
41787     -f*)
41788         shift
41789         CFLAGS=${D}1
41790         ;;
41791     -c*)
41792         shift
41793         CC=${D}1
41794         ;;
41795     -h*)
41796         PrintHelp
41797         ;;
41798     -ex*)
41799         shift
41800         exclude_symbols=${D}{exclude_symbols}${D}1" "
41801         ;;
41802     -libf*)
41803         shift
41804         library_flags=${D}{library_flags}${D}1" "
41805         ;;
41806     -nocrt*)
41807         CFLAGS="-s"
41808         ;;
41809     -nolxl*)
41810         flag_USE_LXLITE=0
41811         ;;
41812     -* | /*)
41813         case ${D}1 in
41814         -L* | -l*)
41815             libsToLink=1
41816             ;;
41817         -Zomf)
41818             omfLinking=1
41819             ;;
41820         *)
41821             ;;
41822         esac
41823         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41824         ;;
41825     *.dll)
41826         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41827         if [ ${D}omfLinking -eq 1 ]; then
41828             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41829         else
41830             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41831         fi
41832         ;;
41833     *)
41834         found=0;
41835         if [ ${D}libsToLink -ne 0 ]; then
41836             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41837         else
41838             for file in ${D}1 ; do
41839                 if [ -f ${D}file ]; then
41840                     inputFiles="${D}{inputFiles} ${D}file"
41841                     found=1
41842                 fi
41843             done
41844             if [ ${D}found -eq 0 ]; then
41845                 echo "ERROR: No file(s) found: "${D}1
41846                 exit 8
41847             fi
41848         fi
41849       ;;
41850     esac
41851     shift
41852 done # iterate cmdline words
41853
41854 #
41855 if [ -z "${D}inputFiles" ]; then
41856     echo "dllar: no input files"
41857     PrintHelp
41858 fi
41859
41860 # Now extract all .o files from .a files
41861 newInputFiles=""
41862 for file in ${D}inputFiles ; do
41863     case ${D}file in
41864     *.a | *.lib)
41865         case ${D}file in
41866         *.a)
41867             suffix=".a"
41868             AR="ar"
41869             ;;
41870         *.lib)
41871             suffix=".lib"
41872             AR="emxomfar"
41873             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41874             ;;
41875         *)
41876             ;;
41877         esac
41878         dirname=\`basnam ${D}file ${D}suffix\`"_%"
41879         mkdir ${D}dirname
41880         if [ ${D}? -ne 0 ]; then
41881             echo "Failed to create subdirectory ./${D}dirname"
41882             CleanUp
41883             exit 8;
41884         fi
41885         # Append '!' to indicate archive
41886         newInputFiles="${D}newInputFiles ${D}{dirname}!"
41887         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41888         cd ${D}curDir
41889         found=0;
41890         for subfile in ${D}dirname/*.o* ; do
41891             if [ -f ${D}subfile ]; then
41892                 found=1
41893                 if [ -s ${D}subfile ]; then
41894                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41895                     newInputFiles="${D}newInputFiles ${D}subfile"
41896                 fi
41897             fi
41898         done
41899         if [ ${D}found -eq 0 ]; then
41900             echo "WARNING: there are no files in archive \\'${D}file\\'"
41901         fi
41902         ;;
41903     *)
41904         newInputFiles="${D}{newInputFiles} ${D}file"
41905         ;;
41906     esac
41907 done
41908 inputFiles="${D}newInputFiles"
41909
41910 # Output filename(s).
41911 do_backup=0;
41912 if [ -z ${D}outFile ]; then
41913     do_backup=1;
41914     set outFile ${D}inputFiles; outFile=${D}2
41915 fi
41916
41917 # If it is an archive, remove the '!' and the '_%' suffixes
41918 case ${D}outFile in
41919 *_%!)
41920     outFile=\`basnam ${D}outFile _%!\`
41921     ;;
41922 *)
41923     ;;
41924 esac
41925 case ${D}outFile in
41926 *.dll)
41927     outFile=\`basnam ${D}outFile .dll\`
41928     ;;
41929 *.DLL)
41930     outFile=\`basnam ${D}outFile .DLL\`
41931     ;;
41932 *.o)
41933     outFile=\`basnam ${D}outFile .o\`
41934     ;;
41935 *.obj)
41936     outFile=\`basnam ${D}outFile .obj\`
41937     ;;
41938 *.a)
41939     outFile=\`basnam ${D}outFile .a\`
41940     ;;
41941 *.lib)
41942     outFile=\`basnam ${D}outFile .lib\`
41943     ;;
41944 *)
41945     ;;
41946 esac
41947 case ${D}outimpFile in
41948 *.a)
41949     outimpFile=\`basnam ${D}outimpFile .a\`
41950     ;;
41951 *.lib)
41952     outimpFile=\`basnam ${D}outimpFile .lib\`
41953     ;;
41954 *)
41955     ;;
41956 esac
41957 if [ -z ${D}outimpFile ]; then
41958     outimpFile=${D}outFile
41959 fi
41960 defFile="${D}{outFile}.def"
41961 arcFile="${D}{outimpFile}.a"
41962 arcFile2="${D}{outimpFile}.lib"
41963
41964 #create ${D}dllFile as something matching 8.3 restrictions,
41965 if [ -z ${D}renameScript ] ; then
41966     dllFile="${D}outFile"
41967 else
41968     dllFile=\`${D}renameScript ${D}outimpFile\`
41969 fi
41970
41971 if [ ${D}do_backup -ne 0 ] ; then
41972     if [ -f ${D}arcFile ] ; then
41973         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41974     fi
41975     if [ -f ${D}arcFile2 ] ; then
41976         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41977     fi
41978 fi
41979
41980 # Extract public symbols from all the object files.
41981 tmpdefFile=${D}{defFile}_%
41982 rm -f ${D}tmpdefFile
41983 for file in ${D}inputFiles ; do
41984     case ${D}file in
41985     *!)
41986         ;;
41987     *)
41988         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41989         ;;
41990     esac
41991 done
41992
41993 # Create the def file.
41994 rm -f ${D}defFile
41995 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
41996 dllFile="${D}{dllFile}.dll"
41997 if [ ! -z ${D}description ]; then
41998     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
41999 fi
42000 echo "EXPORTS" >> ${D}defFile
42001
42002 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42003 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42004
42005 # Checks if the export is ok or not.
42006 for word in ${D}exclude_symbols; do
42007     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42008     mv ${D}{tmpdefFile}% ${D}tmpdefFile
42009 done
42010
42011
42012 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42013     sed "=" < ${D}tmpdefFile | \\
42014     sed '
42015       N
42016       : loop
42017       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
42018       t loop
42019     ' > ${D}{tmpdefFile}%
42020     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42021 else
42022     rm -f ${D}{tmpdefFile}%
42023 fi
42024 cat ${D}tmpdefFile >> ${D}defFile
42025 rm -f ${D}tmpdefFile
42026
42027 # Do linking, create implib, and apply lxlite.
42028 gccCmdl="";
42029 for file in ${D}inputFiles ; do
42030     case ${D}file in
42031     *!)
42032         ;;
42033     *)
42034         gccCmdl="${D}gccCmdl ${D}file"
42035         ;;
42036     esac
42037 done
42038 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42039 touch "${D}{outFile}.dll"
42040
42041 doCommand "emximp -o ${D}arcFile ${D}defFile"
42042 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
42043     add_flags="";
42044     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42045         add_flags="-ynd"
42046     fi
42047     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42048 fi
42049 doCommand "emxomf -s -l ${D}arcFile"
42050
42051 # Successful exit.
42052 CleanUp 1
42053 exit 0
42054 EOF
42055
42056         chmod +x dllar.sh
42057       ;;
42058
42059       powerpc-apple-macos* | \
42060       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42061       *-*-sunos4* | \
42062       *-*-osf* | \
42063       *-*-dgux5* | \
42064       *-*-sysv5* )
42065               ;;
42066
42067       *)
42068         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42069 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42070    { (exit 1); exit 1; }; }
42071     esac
42072
42073     if test "x$PIC_FLAG" != "x" ; then
42074         PIC_FLAG="$PIC_FLAG -DPIC"
42075     fi
42076
42077     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42078         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42079     fi
42080     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42081         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42082     fi
42083
42084
42085
42086
42087
42088
42089
42090
42091     USE_SOVERSION=0
42092     USE_SOVERLINUX=0
42093     USE_SOVERSOLARIS=0
42094     USE_SOSYMLINKS=0
42095     USE_MACVERSION=0
42096     SONAME_FLAG=
42097
42098     case "${BAKEFILE_HOST}" in
42099       *-*-linux* | *-*-freebsd* )
42100         SONAME_FLAG="-Wl,-soname,"
42101         USE_SOVERSION=1
42102         USE_SOVERLINUX=1
42103         USE_SOSYMLINKS=1
42104       ;;
42105
42106       *-*-solaris2* )
42107         SONAME_FLAG="-h "
42108         USE_SOVERSION=1
42109         USE_SOVERSOLARIS=1
42110         USE_SOSYMLINKS=1
42111       ;;
42112
42113       *-*-darwin* )
42114         USE_MACVERSION=1
42115         USE_SOVERSION=1
42116         USE_SOSYMLINKS=1
42117       ;;
42118     esac
42119
42120
42121
42122
42123
42124
42125
42126
42127
42128     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42129 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42130     DEPS_TRACKING=0
42131
42132     if test "x$GCC" = "xyes"; then
42133         DEPSMODE=gcc
42134         DEPS_TRACKING=1
42135         case "${BAKEFILE_HOST}" in
42136             powerpc-*-darwin* )
42137                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42138             ;;
42139             * )
42140                 DEPSFLAG_GCC="-MMD"
42141             ;;
42142         esac
42143         echo "$as_me:$LINENO: result: gcc" >&5
42144 echo "${ECHO_T}gcc" >&6
42145     elif test "x$MWCC" = "xyes"; then
42146         DEPSMODE=mwcc
42147         DEPS_TRACKING=1
42148         DEPSFLAG_MWCC="-MM"
42149         echo "$as_me:$LINENO: result: mwcc" >&5
42150 echo "${ECHO_T}mwcc" >&6
42151     else
42152         echo "$as_me:$LINENO: result: none" >&5
42153 echo "${ECHO_T}none" >&6
42154     fi
42155
42156     if test $DEPS_TRACKING = 1 ; then
42157
42158 D='$'
42159 cat <<EOF >bk-deps
42160 #!/bin/sh
42161
42162 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42163 # script. It is used to track C/C++ files dependencies in portable way.
42164 #
42165 # Permission is given to use this file in any way.
42166
42167 DEPSMODE=${DEPSMODE}
42168 DEPSDIR=.deps
42169 DEPSFLAG_GCC="${DEPSFLAG_GCC}"
42170 DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
42171
42172 mkdir -p ${D}DEPSDIR
42173
42174 if test ${D}DEPSMODE = gcc ; then
42175     ${D}* ${D}{DEPSFLAG_GCC}
42176     status=${D}?
42177     if test ${D}{status} != 0 ; then
42178         exit ${D}{status}
42179     fi
42180     # move created file to the location we want it in:
42181     while test ${D}# -gt 0; do
42182         case "${D}1" in
42183             -o )
42184                 shift
42185                 objfile=${D}1
42186             ;;
42187             -* )
42188             ;;
42189             * )
42190                 srcfile=${D}1
42191             ;;
42192         esac
42193         shift
42194     done
42195     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42196     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
42197     if test -f ${D}depfile ; then
42198         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42199         rm -f ${D}depfile
42200     else
42201         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
42202         if test -f ${D}depfile ; then
42203             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42204             rm -f ${D}depfile
42205         fi
42206     fi
42207     exit 0
42208 elif test ${D}DEPSMODE = mwcc ; then
42209     ${D}*
42210     status=${D}?
42211     if test ${D}{status} != 0 ; then
42212         exit ${D}{status}
42213     fi
42214     # Run mwcc again with -MM and redirect into the dep file we want
42215     # NOTE: We can't use shift here because we need ${D}* to be valid
42216     prevarg=
42217     for arg in ${D}* ; do
42218         if test "${D}prevarg" = "-o"; then
42219             objfile=${D}arg
42220         else
42221             case "${D}arg" in
42222                 -* )
42223                 ;;
42224                 * )
42225                     srcfile=${D}arg
42226                 ;;
42227             esac
42228         fi
42229         prevarg="${D}arg"
42230     done
42231     ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42232     exit 0
42233 else
42234     ${D}*
42235     exit ${D}?
42236 fi
42237 EOF
42238
42239         chmod +x bk-deps
42240     fi
42241
42242
42243
42244
42245     RESCOMP=
42246     SETFILE=
42247
42248     case ${BAKEFILE_HOST} in
42249         *-*-cygwin* | *-*-mingw32* )
42250                         if test "$build" != "$host" ; then
42251                 RESCOMP=$host_alias-windres
42252             else
42253                 # Extract the first word of "windres", so it can be a program name with args.
42254 set dummy windres; ac_word=$2
42255 echo "$as_me:$LINENO: checking for $ac_word" >&5
42256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42257 if test "${ac_cv_prog_RESCOMP+set}" = set; then
42258   echo $ECHO_N "(cached) $ECHO_C" >&6
42259 else
42260   if test -n "$RESCOMP"; then
42261   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42262 else
42263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42264 for as_dir in $PATH
42265 do
42266   IFS=$as_save_IFS
42267   test -z "$as_dir" && as_dir=.
42268   for ac_exec_ext in '' $ac_executable_extensions; do
42269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42270     ac_cv_prog_RESCOMP="windres"
42271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42272     break 2
42273   fi
42274 done
42275 done
42276
42277   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42278 fi
42279 fi
42280 RESCOMP=$ac_cv_prog_RESCOMP
42281 if test -n "$RESCOMP"; then
42282   echo "$as_me:$LINENO: result: $RESCOMP" >&5
42283 echo "${ECHO_T}$RESCOMP" >&6
42284 else
42285   echo "$as_me:$LINENO: result: no" >&5
42286 echo "${ECHO_T}no" >&6
42287 fi
42288
42289             fi
42290          ;;
42291
42292       *-*-darwin* | powerpc-apple-macos* )
42293             # Extract the first word of "Rez", so it can be a program name with args.
42294 set dummy Rez; ac_word=$2
42295 echo "$as_me:$LINENO: checking for $ac_word" >&5
42296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42297 if test "${ac_cv_prog_RESCOMP+set}" = set; then
42298   echo $ECHO_N "(cached) $ECHO_C" >&6
42299 else
42300   if test -n "$RESCOMP"; then
42301   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42302 else
42303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42304 for as_dir in $PATH
42305 do
42306   IFS=$as_save_IFS
42307   test -z "$as_dir" && as_dir=.
42308   for ac_exec_ext in '' $ac_executable_extensions; do
42309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42310     ac_cv_prog_RESCOMP="Rez"
42311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42312     break 2
42313   fi
42314 done
42315 done
42316
42317   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42318 fi
42319 fi
42320 RESCOMP=$ac_cv_prog_RESCOMP
42321 if test -n "$RESCOMP"; then
42322   echo "$as_me:$LINENO: result: $RESCOMP" >&5
42323 echo "${ECHO_T}$RESCOMP" >&6
42324 else
42325   echo "$as_me:$LINENO: result: no" >&5
42326 echo "${ECHO_T}no" >&6
42327 fi
42328
42329             # Extract the first word of "SetFile", so it can be a program name with args.
42330 set dummy SetFile; ac_word=$2
42331 echo "$as_me:$LINENO: checking for $ac_word" >&5
42332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42333 if test "${ac_cv_prog_SETFILE+set}" = set; then
42334   echo $ECHO_N "(cached) $ECHO_C" >&6
42335 else
42336   if test -n "$SETFILE"; then
42337   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42338 else
42339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42340 for as_dir in $PATH
42341 do
42342   IFS=$as_save_IFS
42343   test -z "$as_dir" && as_dir=.
42344   for ac_exec_ext in '' $ac_executable_extensions; do
42345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42346     ac_cv_prog_SETFILE="SetFile"
42347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42348     break 2
42349   fi
42350 done
42351 done
42352
42353   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42354 fi
42355 fi
42356 SETFILE=$ac_cv_prog_SETFILE
42357 if test -n "$SETFILE"; then
42358   echo "$as_me:$LINENO: result: $SETFILE" >&5
42359 echo "${ECHO_T}$SETFILE" >&6
42360 else
42361   echo "$as_me:$LINENO: result: no" >&5
42362 echo "${ECHO_T}no" >&6
42363 fi
42364
42365         ;;
42366     esac
42367
42368
42369
42370
42371
42372     BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
42373
42374
42375 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
42376
42377
42378
42379     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42380 if test "${enable_precomp_headers+set}" = set; then
42381   enableval="$enable_precomp_headers"
42382   bk_use_pch="$enableval"
42383 fi;
42384
42385     GCC_PCH=0
42386
42387     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42388         if test "x$GCC" = "xyes"; then
42389                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42390 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42391             cat >conftest.$ac_ext <<_ACEOF
42392 /* confdefs.h.  */
42393 _ACEOF
42394 cat confdefs.h >>conftest.$ac_ext
42395 cat >>conftest.$ac_ext <<_ACEOF
42396 /* end confdefs.h.  */
42397
42398 int
42399 main ()
42400 {
42401
42402                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42403                         #error "no pch support"
42404                     #endif
42405                     #if (__GNUC__ < 3)
42406                         #error "no pch support"
42407                     #endif
42408                     #if (__GNUC__ == 3) && \
42409                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42410                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42411                         #error "no pch support"
42412                     #endif
42413
42414   ;
42415   return 0;
42416 }
42417 _ACEOF
42418 rm -f conftest.$ac_objext
42419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42420   (eval $ac_compile) 2>conftest.er1
42421   ac_status=$?
42422   grep -v '^ *+' conftest.er1 >conftest.err
42423   rm -f conftest.er1
42424   cat conftest.err >&5
42425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42426   (exit $ac_status); } &&
42427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42429   (eval $ac_try) 2>&5
42430   ac_status=$?
42431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42432   (exit $ac_status); }; } &&
42433          { ac_try='test -s conftest.$ac_objext'
42434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42435   (eval $ac_try) 2>&5
42436   ac_status=$?
42437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42438   (exit $ac_status); }; }; then
42439
42440                     echo "$as_me:$LINENO: result: yes" >&5
42441 echo "${ECHO_T}yes" >&6
42442                     GCC_PCH=1
42443
42444 else
42445   echo "$as_me: failed program was:" >&5
42446 sed 's/^/| /' conftest.$ac_ext >&5
42447
42448
42449                     echo "$as_me:$LINENO: result: no" >&5
42450 echo "${ECHO_T}no" >&6
42451
42452 fi
42453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42454             if test $GCC_PCH = 1 ; then
42455
42456 D='$'
42457 cat <<EOF >bk-make-pch
42458 #!/bin/sh
42459
42460 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42461 # script. It is used to generated precompiled headers.
42462 #
42463 # Permission is given to use this file in any way.
42464
42465 outfile="${D}{1}"
42466 header="${D}{2}"
42467 shift
42468 shift
42469
42470 compiler=
42471 headerfile=
42472 while test ${D}{#} -gt 0; do
42473     case "${D}{1}" in
42474         -I* )
42475             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42476             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42477                 headerfile="${D}{incdir}/${D}{header}"
42478             fi
42479         ;;
42480     esac
42481     compiler="${D}{compiler} ${D}{1}"
42482     shift
42483 done
42484
42485 if test "x${D}{headerfile}" = "x" ; then
42486     echo "error: can't find header ${D}{header} in include paths" >2
42487 else
42488     if test -f ${D}{outfile} ; then
42489         rm -f ${D}{outfile}
42490     else
42491         mkdir -p \`dirname ${D}{outfile}\`
42492     fi
42493     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
42494     mkdir -p .deps
42495     # can do this because gcc is >= 3.4:
42496     ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42497     exit ${D}{?}
42498 fi
42499 EOF
42500
42501                 chmod +x bk-make-pch
42502             fi
42503         fi
42504     fi
42505
42506
42507
42508     COND_BUILD_DEBUG="#"
42509     if test "x$BUILD" = "xdebug" ; then
42510         COND_BUILD_DEBUG=""
42511     fi
42512
42513     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42514     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42515         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42516     fi
42517
42518     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42519     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42520         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42521     fi
42522
42523     COND_BUILD_DEBUG_UNICODE_0="#"
42524     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42525         COND_BUILD_DEBUG_UNICODE_0=""
42526     fi
42527
42528     COND_BUILD_DEBUG_UNICODE_1="#"
42529     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42530         COND_BUILD_DEBUG_UNICODE_1=""
42531     fi
42532
42533     COND_BUILD_RELEASE="#"
42534     if test "x$BUILD" = "xrelease" ; then
42535         COND_BUILD_RELEASE=""
42536     fi
42537
42538     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42539     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42540         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42541     fi
42542
42543     COND_BUILD_RELEASE_UNICODE_0="#"
42544     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42545         COND_BUILD_RELEASE_UNICODE_0=""
42546     fi
42547
42548     COND_BUILD_RELEASE_UNICODE_1="#"
42549     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42550         COND_BUILD_RELEASE_UNICODE_1=""
42551     fi
42552
42553     COND_DEBUG_FLAG_1="#"
42554     if test "x$DEBUG_FLAG" = "x1" ; then
42555         COND_DEBUG_FLAG_1=""
42556     fi
42557
42558     COND_DEBUG_INFO_0="#"
42559     if test "x$DEBUG_INFO" = "x0" ; then
42560         COND_DEBUG_INFO_0=""
42561     fi
42562
42563     COND_DEBUG_INFO_1="#"
42564     if test "x$DEBUG_INFO" = "x1" ; then
42565         COND_DEBUG_INFO_1=""
42566     fi
42567
42568     COND_DEPS_TRACKING_0="#"
42569     if test "x$DEPS_TRACKING" = "x0" ; then
42570         COND_DEPS_TRACKING_0=""
42571     fi
42572
42573     COND_DEPS_TRACKING_1="#"
42574     if test "x$DEPS_TRACKING" = "x1" ; then
42575         COND_DEPS_TRACKING_1=""
42576     fi
42577
42578     COND_GCC_PCH_1="#"
42579     if test "x$GCC_PCH" = "x1" ; then
42580         COND_GCC_PCH_1=""
42581     fi
42582
42583     COND_MONOLITHIC_0="#"
42584     if test "x$MONOLITHIC" = "x0" ; then
42585         COND_MONOLITHIC_0=""
42586     fi
42587
42588     COND_MONOLITHIC_0_SHARED_0="#"
42589     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42590         COND_MONOLITHIC_0_SHARED_0=""
42591     fi
42592
42593     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42594     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42595         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42596     fi
42597
42598     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42599     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42600         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42601     fi
42602
42603     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42604     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42605         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42606     fi
42607
42608     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42609     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42610         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42611     fi
42612
42613     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42614     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42615         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42616     fi
42617
42618     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42619     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42620         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42621     fi
42622
42623     COND_MONOLITHIC_0_SHARED_1="#"
42624     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42625         COND_MONOLITHIC_0_SHARED_1=""
42626     fi
42627
42628     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42629     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42630         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42631     fi
42632
42633     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42634     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42635         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42636     fi
42637
42638     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42639     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42640         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42641     fi
42642
42643     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42644     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42645         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42646     fi
42647
42648     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42649     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42650         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42651     fi
42652
42653     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42654     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42655         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42656     fi
42657
42658     COND_MONOLITHIC_0_USE_ODBC_1="#"
42659     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42660         COND_MONOLITHIC_0_USE_ODBC_1=""
42661     fi
42662
42663     COND_MONOLITHIC_1="#"
42664     if test "x$MONOLITHIC" = "x1" ; then
42665         COND_MONOLITHIC_1=""
42666     fi
42667
42668     COND_MONOLITHIC_1_SHARED_0="#"
42669     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42670         COND_MONOLITHIC_1_SHARED_0=""
42671     fi
42672
42673     COND_MONOLITHIC_1_SHARED_1="#"
42674     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42675         COND_MONOLITHIC_1_SHARED_1=""
42676     fi
42677
42678     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42679     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42680         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42681     fi
42682
42683     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42684     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42685         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42686     fi
42687
42688     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42689     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42690         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42691     fi
42692
42693     COND_PLATFORM_MACOSX_1="#"
42694     if test "x$PLATFORM_MACOSX" = "x1" ; then
42695         COND_PLATFORM_MACOSX_1=""
42696     fi
42697
42698     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42699     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42700         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42701     fi
42702
42703     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42704     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42705         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42706     fi
42707
42708     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42709     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42710         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42711     fi
42712
42713     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42714     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42715         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42716     fi
42717
42718     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42719     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42720         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42721     fi
42722
42723     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42724     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42725         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42726     fi
42727
42728     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42729     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42730         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42731     fi
42732
42733     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42734     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42735         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42736     fi
42737
42738     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42739     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42740         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42741     fi
42742
42743     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42744     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42745         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42746     fi
42747
42748     COND_PLATFORM_MACOS_1="#"
42749     if test "x$PLATFORM_MACOS" = "x1" ; then
42750         COND_PLATFORM_MACOS_1=""
42751     fi
42752
42753     COND_PLATFORM_MAC_1="#"
42754     if test "x$PLATFORM_MAC" = "x1" ; then
42755         COND_PLATFORM_MAC_1=""
42756     fi
42757
42758     COND_PLATFORM_OS2_1="#"
42759     if test "x$PLATFORM_OS2" = "x1" ; then
42760         COND_PLATFORM_OS2_1=""
42761     fi
42762
42763     COND_PLATFORM_UNIX_0="#"
42764     if test "x$PLATFORM_UNIX" = "x0" ; then
42765         COND_PLATFORM_UNIX_0=""
42766     fi
42767
42768     COND_PLATFORM_UNIX_1="#"
42769     if test "x$PLATFORM_UNIX" = "x1" ; then
42770         COND_PLATFORM_UNIX_1=""
42771     fi
42772
42773     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42774     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42775         COND_PLATFORM_UNIX_1_USE_GUI_1=""
42776     fi
42777
42778     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42779     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42780         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42781     fi
42782
42783     COND_PLATFORM_WIN32_0="#"
42784     if test "x$PLATFORM_WIN32" = "x0" ; then
42785         COND_PLATFORM_WIN32_0=""
42786     fi
42787
42788     COND_PLATFORM_WIN32_1="#"
42789     if test "x$PLATFORM_WIN32" = "x1" ; then
42790         COND_PLATFORM_WIN32_1=""
42791     fi
42792
42793     COND_SHARED_0="#"
42794     if test "x$SHARED" = "x0" ; then
42795         COND_SHARED_0=""
42796     fi
42797
42798     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42799     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42800         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42801     fi
42802
42803     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42804     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42805         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42806     fi
42807
42808     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42809     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42810         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42811     fi
42812
42813     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42814     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42815         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42816     fi
42817
42818     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42819     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42820         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42821     fi
42822
42823     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42824     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42825         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42826     fi
42827
42828     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42829     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42830         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42831     fi
42832
42833     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42834     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42835         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42836     fi
42837
42838     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42839     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42840         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42841     fi
42842
42843     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42844     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42845         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42846     fi
42847
42848     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42849     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42850         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42851     fi
42852
42853     COND_SHARED_1="#"
42854     if test "x$SHARED" = "x1" ; then
42855         COND_SHARED_1=""
42856     fi
42857
42858     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42859     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42860         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42861     fi
42862
42863     COND_TOOLKIT_="#"
42864     if test "x$TOOLKIT" = "x" ; then
42865         COND_TOOLKIT_=""
42866     fi
42867
42868     COND_TOOLKIT_COCOA="#"
42869     if test "x$TOOLKIT" = "xCOCOA" ; then
42870         COND_TOOLKIT_COCOA=""
42871     fi
42872
42873     COND_TOOLKIT_COCOA_USE_GUI_1="#"
42874     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42875         COND_TOOLKIT_COCOA_USE_GUI_1=""
42876     fi
42877
42878     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42879     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42880         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42881     fi
42882
42883     COND_TOOLKIT_GTK="#"
42884     if test "x$TOOLKIT" = "xGTK" ; then
42885         COND_TOOLKIT_GTK=""
42886     fi
42887
42888     COND_TOOLKIT_GTK_USE_GUI_1="#"
42889     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42890         COND_TOOLKIT_GTK_USE_GUI_1=""
42891     fi
42892
42893     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42894     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42895         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42896     fi
42897
42898     COND_TOOLKIT_MAC="#"
42899     if test "x$TOOLKIT" = "xMAC" ; then
42900         COND_TOOLKIT_MAC=""
42901     fi
42902
42903     COND_TOOLKIT_MAC_USE_GUI_1="#"
42904     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42905         COND_TOOLKIT_MAC_USE_GUI_1=""
42906     fi
42907
42908     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42909     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42910         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42911     fi
42912
42913     COND_TOOLKIT_MGL="#"
42914     if test "x$TOOLKIT" = "xMGL" ; then
42915         COND_TOOLKIT_MGL=""
42916     fi
42917
42918     COND_TOOLKIT_MGL_USE_GUI_1="#"
42919     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42920         COND_TOOLKIT_MGL_USE_GUI_1=""
42921     fi
42922
42923     COND_TOOLKIT_MOTIF="#"
42924     if test "x$TOOLKIT" = "xMOTIF" ; then
42925         COND_TOOLKIT_MOTIF=""
42926     fi
42927
42928     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42929     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42930         COND_TOOLKIT_MOTIF_USE_GUI_1=""
42931     fi
42932
42933     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42934     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42935         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42936     fi
42937
42938     COND_TOOLKIT_MSW="#"
42939     if test "x$TOOLKIT" = "xMSW" ; then
42940         COND_TOOLKIT_MSW=""
42941     fi
42942
42943     COND_TOOLKIT_MSW_USE_GUI_1="#"
42944     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42945         COND_TOOLKIT_MSW_USE_GUI_1=""
42946     fi
42947
42948     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42949     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42950         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42951     fi
42952
42953     COND_TOOLKIT_PM="#"
42954     if test "x$TOOLKIT" = "xPM" ; then
42955         COND_TOOLKIT_PM=""
42956     fi
42957
42958     COND_TOOLKIT_PM_USE_GUI_1="#"
42959     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42960         COND_TOOLKIT_PM_USE_GUI_1=""
42961     fi
42962
42963     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42964     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42965         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42966     fi
42967
42968     COND_TOOLKIT_WINCE="#"
42969     if test "x$TOOLKIT" = "xWINCE" ; then
42970         COND_TOOLKIT_WINCE=""
42971     fi
42972
42973     COND_TOOLKIT_WINCE_USE_GUI_1="#"
42974     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42975         COND_TOOLKIT_WINCE_USE_GUI_1=""
42976     fi
42977
42978     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42979     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42980         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42981     fi
42982
42983     COND_TOOLKIT_X11="#"
42984     if test "x$TOOLKIT" = "xX11" ; then
42985         COND_TOOLKIT_X11=""
42986     fi
42987
42988     COND_TOOLKIT_X11_USE_GUI_1="#"
42989     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42990         COND_TOOLKIT_X11_USE_GUI_1=""
42991     fi
42992
42993     COND_UNICODE_1="#"
42994     if test "x$UNICODE" = "x1" ; then
42995         COND_UNICODE_1=""
42996     fi
42997
42998     COND_USE_EXCEPTIONS_0="#"
42999     if test "x$USE_EXCEPTIONS" = "x0" ; then
43000         COND_USE_EXCEPTIONS_0=""
43001     fi
43002
43003     COND_USE_EXCEPTIONS_1="#"
43004     if test "x$USE_EXCEPTIONS" = "x1" ; then
43005         COND_USE_EXCEPTIONS_1=""
43006     fi
43007
43008     COND_USE_GUI_0="#"
43009     if test "x$USE_GUI" = "x0" ; then
43010         COND_USE_GUI_0=""
43011     fi
43012
43013     COND_USE_GUI_1="#"
43014     if test "x$USE_GUI" = "x1" ; then
43015         COND_USE_GUI_1=""
43016     fi
43017
43018     COND_USE_GUI_1_WXUNIV_0="#"
43019     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43020         COND_USE_GUI_1_WXUNIV_0=""
43021     fi
43022
43023     COND_USE_GUI_1_WXUNIV_1="#"
43024     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43025         COND_USE_GUI_1_WXUNIV_1=""
43026     fi
43027
43028     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43029     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43030         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43031     fi
43032
43033     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43034     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43035         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43036     fi
43037
43038     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43039     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43040         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43041     fi
43042
43043     COND_USE_ODBC_1="#"
43044     if test "x$USE_ODBC" = "x1" ; then
43045         COND_USE_ODBC_1=""
43046     fi
43047
43048     COND_USE_OPENGL_1="#"
43049     if test "x$USE_OPENGL" = "x1" ; then
43050         COND_USE_OPENGL_1=""
43051     fi
43052
43053     COND_USE_PLUGINS_0="#"
43054     if test "x$USE_PLUGINS" = "x0" ; then
43055         COND_USE_PLUGINS_0=""
43056     fi
43057
43058     COND_USE_RTTI_0="#"
43059     if test "x$USE_RTTI" = "x0" ; then
43060         COND_USE_RTTI_0=""
43061     fi
43062
43063     COND_USE_RTTI_1="#"
43064     if test "x$USE_RTTI" = "x1" ; then
43065         COND_USE_RTTI_1=""
43066     fi
43067
43068     COND_USE_SOSYMLINKS_1="#"
43069     if test "x$USE_SOSYMLINKS" = "x1" ; then
43070         COND_USE_SOSYMLINKS_1=""
43071     fi
43072
43073     COND_USE_SOVERLINUX_1="#"
43074     if test "x$USE_SOVERLINUX" = "x1" ; then
43075         COND_USE_SOVERLINUX_1=""
43076     fi
43077
43078     COND_USE_SOVERSION_0="#"
43079     if test "x$USE_SOVERSION" = "x0" ; then
43080         COND_USE_SOVERSION_0=""
43081     fi
43082
43083     COND_USE_SOVERSOLARIS_1="#"
43084     if test "x$USE_SOVERSOLARIS" = "x1" ; then
43085         COND_USE_SOVERSOLARIS_1=""
43086     fi
43087
43088     COND_USE_THREADS_0="#"
43089     if test "x$USE_THREADS" = "x0" ; then
43090         COND_USE_THREADS_0=""
43091     fi
43092
43093     COND_USE_THREADS_1="#"
43094     if test "x$USE_THREADS" = "x1" ; then
43095         COND_USE_THREADS_1=""
43096     fi
43097
43098     COND_USE_XRC_1="#"
43099     if test "x$USE_XRC" = "x1" ; then
43100         COND_USE_XRC_1=""
43101     fi
43102
43103     COND_WITH_PLUGIN_SDL_1="#"
43104     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43105         COND_WITH_PLUGIN_SDL_1=""
43106     fi
43107
43108     COND_WXUNIV_0="#"
43109     if test "x$WXUNIV" = "x0" ; then
43110         COND_WXUNIV_0=""
43111     fi
43112
43113     COND_WXUNIV_1="#"
43114     if test "x$WXUNIV" = "x1" ; then
43115         COND_WXUNIV_1=""
43116     fi
43117
43118     COND_WXUSE_EXPAT_BUILTIN="#"
43119     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43120         COND_WXUSE_EXPAT_BUILTIN=""
43121     fi
43122
43123     COND_WXUSE_LIBJPEG_BUILTIN="#"
43124     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43125         COND_WXUSE_LIBJPEG_BUILTIN=""
43126     fi
43127
43128     COND_WXUSE_LIBPNG_BUILTIN="#"
43129     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43130         COND_WXUSE_LIBPNG_BUILTIN=""
43131     fi
43132
43133     COND_WXUSE_LIBTIFF_BUILTIN="#"
43134     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43135         COND_WXUSE_LIBTIFF_BUILTIN=""
43136     fi
43137
43138     COND_WXUSE_ODBC_BUILTIN="#"
43139     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43140         COND_WXUSE_ODBC_BUILTIN=""
43141     fi
43142
43143     COND_WXUSE_REGEX_BUILTIN="#"
43144     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43145         COND_WXUSE_REGEX_BUILTIN=""
43146     fi
43147
43148     COND_WXUSE_ZLIB_BUILTIN="#"
43149     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43150         COND_WXUSE_ZLIB_BUILTIN=""
43151     fi
43152
43153
43154
43155     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43156         { { 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
43157 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;}
43158    { (exit 1); exit 1; }; }
43159     fi
43160
43161
43162 if test "$wxUSE_SHARED" = "yes"; then
43163
43164                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43165     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43166
43167                 case "${host}" in
43168       *-pc-os2_emx | *-pc-os2-emx )
43169         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43170         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43171         cp -p ${srcdir}/src/os2/dllnames.sh .
43172         cp -p ${srcdir}/src/os2/dllar.sh .
43173       ;;
43174     esac
43175 else
43176
43177         EXE_LINKER="$CXX -o"
43178
43179 fi
43180 if test "$wxUSE_OMF" = "yes"; then
43181     case "${host}" in
43182       *-pc-os2_emx | *-pc-os2-emx )
43183         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43184         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43185         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43186       ;;
43187     esac
43188 fi
43189
43190 GCC_PRAGMA_FLAGS=""
43191 PCH_FLAGS=""
43192 if test $GCC_PCH = 1 ; then
43193     GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43194     PCH_FLAGS="-DWX_PRECOMP"
43195 else
43196     case "${host}" in
43197         powerpc-*-darwin* )
43198                                     GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43199             ;;
43200         *-*-mingw32* )
43201                                                                                     if test "$wxUSE_STL" = "yes" -o \
43202                     "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43203                     "$wxUSE_NO_RTTI" != "yes"; then
43204                echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43205 echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43206                cat >conftest.$ac_ext <<_ACEOF
43207 /* confdefs.h.  */
43208 _ACEOF
43209 cat confdefs.h >>conftest.$ac_ext
43210 cat >>conftest.$ac_ext <<_ACEOF
43211 /* end confdefs.h.  */
43212
43213 int
43214 main ()
43215 {
43216 #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43217                                #error "Not GCC 3.2 or greater"
43218                                #endif
43219
43220   ;
43221   return 0;
43222 }
43223 _ACEOF
43224 rm -f conftest.$ac_objext
43225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43226   (eval $ac_compile) 2>conftest.er1
43227   ac_status=$?
43228   grep -v '^ *+' conftest.er1 >conftest.err
43229   rm -f conftest.er1
43230   cat conftest.err >&5
43231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43232   (exit $ac_status); } &&
43233          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43235   (eval $ac_try) 2>&5
43236   ac_status=$?
43237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238   (exit $ac_status); }; } &&
43239          { ac_try='test -s conftest.$ac_objext'
43240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43241   (eval $ac_try) 2>&5
43242   ac_status=$?
43243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43244   (exit $ac_status); }; }; then
43245   GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43246                                echo "$as_me:$LINENO: result: yes" >&5
43247 echo "${ECHO_T}yes" >&6
43248 else
43249   echo "$as_me: failed program was:" >&5
43250 sed 's/^/| /' conftest.$ac_ext >&5
43251
43252 echo "$as_me:$LINENO: result: no" >&5
43253 echo "${ECHO_T}no" >&6
43254 fi
43255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43256             fi
43257             ;;
43258         *-pc-os2_emx | *-pc-os2-emx )
43259                                                 if test "$wxUSE_STL" = "yes"; then
43260                echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43261 echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43262                cat >conftest.$ac_ext <<_ACEOF
43263 /* confdefs.h.  */
43264 _ACEOF
43265 cat confdefs.h >>conftest.$ac_ext
43266 cat >>conftest.$ac_ext <<_ACEOF
43267 /* end confdefs.h.  */
43268
43269 int
43270 main ()
43271 {
43272 #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43273                                #error "Not GCC 3.2 or greater"
43274                                #endif
43275
43276   ;
43277   return 0;
43278 }
43279 _ACEOF
43280 rm -f conftest.$ac_objext
43281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43282   (eval $ac_compile) 2>conftest.er1
43283   ac_status=$?
43284   grep -v '^ *+' conftest.er1 >conftest.err
43285   rm -f conftest.er1
43286   cat conftest.err >&5
43287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43288   (exit $ac_status); } &&
43289          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43291   (eval $ac_try) 2>&5
43292   ac_status=$?
43293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43294   (exit $ac_status); }; } &&
43295          { ac_try='test -s conftest.$ac_objext'
43296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43297   (eval $ac_try) 2>&5
43298   ac_status=$?
43299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43300   (exit $ac_status); }; }; then
43301   GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43302                                echo "$as_me:$LINENO: result: yes" >&5
43303 echo "${ECHO_T}yes" >&6
43304 else
43305   echo "$as_me: failed program was:" >&5
43306 sed 's/^/| /' conftest.$ac_ext >&5
43307
43308 echo "$as_me:$LINENO: result: no" >&5
43309 echo "${ECHO_T}no" >&6
43310 fi
43311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43312             fi
43313             ;;
43314     esac
43315 fi
43316 CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
43317
43318
43319 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43320
43321
43322
43323
43324
43325
43326
43327
43328
43329
43330
43331
43332
43333
43334
43335
43336
43337
43338
43339
43340
43341
43342
43343
43344
43345
43346
43347
43348
43349
43350
43351
43352
43353
43354
43355
43356
43357
43358
43359
43360
43361
43362
43363
43364
43365
43366
43367
43368
43369
43370
43371
43372
43373
43374
43375
43376
43377
43378
43379
43380
43381
43382
43383 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43384 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
43385 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
43386 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43387   echo $ECHO_N "(cached) $ECHO_C" >&6
43388 else
43389   cat >conftest.make <<\_ACEOF
43390 all:
43391         @echo 'ac_maketemp="$(MAKE)"'
43392 _ACEOF
43393 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43394 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43395 if test -n "$ac_maketemp"; then
43396   eval ac_cv_prog_make_${ac_make}_set=yes
43397 else
43398   eval ac_cv_prog_make_${ac_make}_set=no
43399 fi
43400 rm -f conftest.make
43401 fi
43402 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43403   echo "$as_me:$LINENO: result: yes" >&5
43404 echo "${ECHO_T}yes" >&6
43405   SET_MAKE=
43406 else
43407   echo "$as_me:$LINENO: result: no" >&5
43408 echo "${ECHO_T}no" >&6
43409   SET_MAKE="MAKE=${MAKE-make}"
43410 fi
43411
43412
43413
43414           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43415
43416
43417           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
43418
43419
43420           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
43421
43422
43423                     ac_config_files="$ac_config_files version-script Makefile"
43424
43425
43426           ac_config_commands="$ac_config_commands  wx-config
43427                    "
43428
43429
43430
43431
43432 if test "$wxUSE_GUI" = "yes"; then
43433     SUBDIRS="samples demos utils contrib"
43434 else         SUBDIRS="samples utils"
43435 fi
43436
43437
43438
43439 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43440 if test "${with_cppunit_prefix+set}" = set; then
43441   withval="$with_cppunit_prefix"
43442   cppunit_config_prefix="$withval"
43443 else
43444   cppunit_config_prefix=""
43445 fi;
43446
43447 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43448 if test "${with_cppunit_exec_prefix+set}" = set; then
43449   withval="$with_cppunit_exec_prefix"
43450   cppunit_config_exec_prefix="$withval"
43451 else
43452   cppunit_config_exec_prefix=""
43453 fi;
43454
43455   if test x$cppunit_config_exec_prefix != x ; then
43456      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43457      if test x${CPPUNIT_CONFIG+set} != xset ; then
43458         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43459      fi
43460   fi
43461   if test x$cppunit_config_prefix != x ; then
43462      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43463      if test x${CPPUNIT_CONFIG+set} != xset ; then
43464         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43465      fi
43466   fi
43467
43468   # Extract the first word of "cppunit-config", so it can be a program name with args.
43469 set dummy cppunit-config; ac_word=$2
43470 echo "$as_me:$LINENO: checking for $ac_word" >&5
43471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43472 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43473   echo $ECHO_N "(cached) $ECHO_C" >&6
43474 else
43475   case $CPPUNIT_CONFIG in
43476   [\\/]* | ?:[\\/]*)
43477   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43478   ;;
43479   *)
43480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43481 for as_dir in $PATH
43482 do
43483   IFS=$as_save_IFS
43484   test -z "$as_dir" && as_dir=.
43485   for ac_exec_ext in '' $ac_executable_extensions; do
43486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43487     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43489     break 2
43490   fi
43491 done
43492 done
43493
43494   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43495   ;;
43496 esac
43497 fi
43498 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43499
43500 if test -n "$CPPUNIT_CONFIG"; then
43501   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43502 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43503 else
43504   echo "$as_me:$LINENO: result: no" >&5
43505 echo "${ECHO_T}no" >&6
43506 fi
43507
43508   cppunit_version_min=1.8.0
43509
43510   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43511 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43512   no_cppunit=""
43513   if test "$CPPUNIT_CONFIG" = "no" ; then
43514     no_cppunit=yes
43515   else
43516     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43517     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43518     cppunit_version=`$CPPUNIT_CONFIG --version`
43519
43520     cppunit_major_version=`echo $cppunit_version | \
43521            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43522     cppunit_minor_version=`echo $cppunit_version | \
43523            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43524     cppunit_micro_version=`echo $cppunit_version | \
43525            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43526
43527     cppunit_major_min=`echo $cppunit_version_min | \
43528            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43529     cppunit_minor_min=`echo $cppunit_version_min | \
43530            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43531     cppunit_micro_min=`echo $cppunit_version_min | \
43532            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43533
43534     cppunit_version_proper=`expr \
43535         $cppunit_major_version \> $cppunit_major_min \| \
43536         $cppunit_major_version \= $cppunit_major_min \& \
43537         $cppunit_minor_version \> $cppunit_minor_min \| \
43538         $cppunit_major_version \= $cppunit_major_min \& \
43539         $cppunit_minor_version \= $cppunit_minor_min \& \
43540         $cppunit_micro_version \>= $cppunit_micro_min `
43541
43542     if test "$cppunit_version_proper" = "1" ; then
43543       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43544 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43545     else
43546       echo "$as_me:$LINENO: result: no" >&5
43547 echo "${ECHO_T}no" >&6
43548       no_cppunit=yes
43549     fi
43550   fi
43551
43552   if test "x$no_cppunit" = x ; then
43553      SUBDIRS="$SUBDIRS tests"
43554   else
43555      CPPUNIT_CFLAGS=""
43556      CPPUNIT_LIBS=""
43557      :
43558   fi
43559
43560
43561
43562
43563
43564 for subdir in `echo $SUBDIRS`; do
43565     if test -d ${srcdir}/${subdir} ; then
43566         if test "$wxUSE_GUI" = "yes"; then
43567             if test ${subdir} = "samples"; then
43568                                                 makefiles="samples/Makefile.in $makefiles"
43569                 for sample in `echo $SAMPLES_SUBDIRS`; do
43570                     if test -d $srcdir/samples/$sample; then
43571                         makefiles="samples/$sample/Makefile.in $makefiles"
43572                     fi
43573                 done
43574             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43575             fi
43576         else                                     if test ${subdir} = "samples"; then
43577                 makefiles="samples/Makefile.in samples/console/Makefile.in"
43578             elif test ${subdir} = "utils"; then
43579                 makefiles=""
43580                 for util in HelpGen tex2rtf ; do
43581                     if test -d $srcdir/utils/$util ; then
43582                         makefiles="utils/$util/Makefile.in \
43583                                    utils/$util/src/Makefile.in \
43584                                    $makefiles"
43585                     fi
43586                 done
43587             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43588             fi
43589         fi
43590
43591         for mkin in $makefiles ; do
43592             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43593                       ac_config_files="$ac_config_files $mk"
43594
43595         done
43596     fi
43597 done
43598
43599
43600 cat >confcache <<\_ACEOF
43601 # This file is a shell script that caches the results of configure
43602 # tests run on this system so they can be shared between configure
43603 # scripts and configure runs, see configure's option --config-cache.
43604 # It is not useful on other systems.  If it contains results you don't
43605 # want to keep, you may remove or edit it.
43606 #
43607 # config.status only pays attention to the cache file if you give it
43608 # the --recheck option to rerun configure.
43609 #
43610 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43611 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43612 # following values.
43613
43614 _ACEOF
43615
43616 # The following way of writing the cache mishandles newlines in values,
43617 # but we know of no workaround that is simple, portable, and efficient.
43618 # So, don't put newlines in cache variables' values.
43619 # Ultrix sh set writes to stderr and can't be redirected directly,
43620 # and sets the high bit in the cache file unless we assign to the vars.
43621 {
43622   (set) 2>&1 |
43623     case `(ac_space=' '; set | grep ac_space) 2>&1` in
43624     *ac_space=\ *)
43625       # `set' does not quote correctly, so add quotes (double-quote
43626       # substitution turns \\\\ into \\, and sed turns \\ into \).
43627       sed -n \
43628         "s/'/'\\\\''/g;
43629           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43630       ;;
43631     *)
43632       # `set' quotes correctly as required by POSIX, so do not add quotes.
43633       sed -n \
43634         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
43635       ;;
43636     esac;
43637 } |
43638   sed '
43639      t clear
43640      : clear
43641      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43642      t end
43643      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43644      : end' >>confcache
43645 if diff $cache_file confcache >/dev/null 2>&1; then :; else
43646   if test -w $cache_file; then
43647     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43648     cat confcache >$cache_file
43649   else
43650     echo "not updating unwritable cache $cache_file"
43651   fi
43652 fi
43653 rm -f confcache
43654
43655 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43656 # Let make expand exec_prefix.
43657 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43658
43659 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43660 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43661 # trailing colons and then remove the whole line if VPATH becomes empty
43662 # (actually we leave an empty line to preserve line numbers).
43663 if test "x$srcdir" = x.; then
43664   ac_vpsub='/^[  ]*VPATH[        ]*=/{
43665 s/:*\$(srcdir):*/:/;
43666 s/:*\${srcdir}:*/:/;
43667 s/:*@srcdir@:*/:/;
43668 s/^\([^=]*=[     ]*\):*/\1/;
43669 s/:*$//;
43670 s/^[^=]*=[       ]*$//;
43671 }'
43672 fi
43673
43674 DEFS=-DHAVE_CONFIG_H
43675
43676 ac_libobjs=
43677 ac_ltlibobjs=
43678 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43679   # 1. Remove the extension, and $U if already installed.
43680   ac_i=`echo "$ac_i" |
43681          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
43682   # 2. Add them.
43683   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43684   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43685 done
43686 LIBOBJS=$ac_libobjs
43687
43688 LTLIBOBJS=$ac_ltlibobjs
43689
43690
43691
43692 : ${CONFIG_STATUS=./config.status}
43693 ac_clean_files_save=$ac_clean_files
43694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43695 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43696 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43697 cat >$CONFIG_STATUS <<_ACEOF
43698 #! $SHELL
43699 # Generated by $as_me.
43700 # Run this file to recreate the current configuration.
43701 # Compiler output produced by configure, useful for debugging
43702 # configure, is in config.log if it exists.
43703
43704 debug=false
43705 ac_cs_recheck=false
43706 ac_cs_silent=false
43707 SHELL=\${CONFIG_SHELL-$SHELL}
43708 _ACEOF
43709
43710 cat >>$CONFIG_STATUS <<\_ACEOF
43711 ## --------------------- ##
43712 ## M4sh Initialization.  ##
43713 ## --------------------- ##
43714
43715 # Be Bourne compatible
43716 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43717   emulate sh
43718   NULLCMD=:
43719   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43720   # is contrary to our usage.  Disable this feature.
43721   alias -g '${1+"$@"}'='"$@"'
43722 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43723   set -o posix
43724 fi
43725 DUALCASE=1; export DUALCASE # for MKS sh
43726
43727 # Support unset when possible.
43728 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43729   as_unset=unset
43730 else
43731   as_unset=false
43732 fi
43733
43734
43735 # Work around bugs in pre-3.0 UWIN ksh.
43736 $as_unset ENV MAIL MAILPATH
43737 PS1='$ '
43738 PS2='> '
43739 PS4='+ '
43740
43741 # NLS nuisances.
43742 for as_var in \
43743   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43744   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43745   LC_TELEPHONE LC_TIME
43746 do
43747   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43748     eval $as_var=C; export $as_var
43749   else
43750     $as_unset $as_var
43751   fi
43752 done
43753
43754 # Required to use basename.
43755 if expr a : '\(a\)' >/dev/null 2>&1; then
43756   as_expr=expr
43757 else
43758   as_expr=false
43759 fi
43760
43761 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43762   as_basename=basename
43763 else
43764   as_basename=false
43765 fi
43766
43767
43768 # Name of the executable.
43769 as_me=`$as_basename "$0" ||
43770 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43771          X"$0" : 'X\(//\)$' \| \
43772          X"$0" : 'X\(/\)$' \| \
43773          .     : '\(.\)' 2>/dev/null ||
43774 echo X/"$0" |
43775     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43776           /^X\/\(\/\/\)$/{ s//\1/; q; }
43777           /^X\/\(\/\).*/{ s//\1/; q; }
43778           s/.*/./; q'`
43779
43780
43781 # PATH needs CR, and LINENO needs CR and PATH.
43782 # Avoid depending upon Character Ranges.
43783 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43784 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43785 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43786 as_cr_digits='0123456789'
43787 as_cr_alnum=$as_cr_Letters$as_cr_digits
43788
43789 # The user is always right.
43790 if test "${PATH_SEPARATOR+set}" != set; then
43791   echo "#! /bin/sh" >conf$$.sh
43792   echo  "exit 0"   >>conf$$.sh
43793   chmod +x conf$$.sh
43794   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43795     PATH_SEPARATOR=';'
43796   else
43797     PATH_SEPARATOR=:
43798   fi
43799   rm -f conf$$.sh
43800 fi
43801
43802
43803   as_lineno_1=$LINENO
43804   as_lineno_2=$LINENO
43805   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43806   test "x$as_lineno_1" != "x$as_lineno_2" &&
43807   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
43808   # Find who we are.  Look in the path if we contain no path at all
43809   # relative or not.
43810   case $0 in
43811     *[\\/]* ) as_myself=$0 ;;
43812     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43813 for as_dir in $PATH
43814 do
43815   IFS=$as_save_IFS
43816   test -z "$as_dir" && as_dir=.
43817   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43818 done
43819
43820        ;;
43821   esac
43822   # We did not find ourselves, most probably we were run as `sh COMMAND'
43823   # in which case we are not to be found in the path.
43824   if test "x$as_myself" = x; then
43825     as_myself=$0
43826   fi
43827   if test ! -f "$as_myself"; then
43828     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43829 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43830    { (exit 1); exit 1; }; }
43831   fi
43832   case $CONFIG_SHELL in
43833   '')
43834     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43835 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43836 do
43837   IFS=$as_save_IFS
43838   test -z "$as_dir" && as_dir=.
43839   for as_base in sh bash ksh sh5; do
43840          case $as_dir in
43841          /*)
43842            if ("$as_dir/$as_base" -c '
43843   as_lineno_1=$LINENO
43844   as_lineno_2=$LINENO
43845   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43846   test "x$as_lineno_1" != "x$as_lineno_2" &&
43847   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
43848              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43849              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43850              CONFIG_SHELL=$as_dir/$as_base
43851              export CONFIG_SHELL
43852              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43853            fi;;
43854          esac
43855        done
43856 done
43857 ;;
43858   esac
43859
43860   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43861   # uniformly replaced by the line number.  The first 'sed' inserts a
43862   # line-number line before each line; the second 'sed' does the real
43863   # work.  The second script uses 'N' to pair each line-number line
43864   # with the numbered line, and appends trailing '-' during
43865   # substitution so that $LINENO is not a special case at line end.
43866   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43867   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
43868   sed '=' <$as_myself |
43869     sed '
43870       N
43871       s,$,-,
43872       : loop
43873       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43874       t loop
43875       s,-$,,
43876       s,^['$as_cr_digits']*\n,,
43877     ' >$as_me.lineno &&
43878   chmod +x $as_me.lineno ||
43879     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43880 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43881    { (exit 1); exit 1; }; }
43882
43883   # Don't try to exec as it changes $[0], causing all sort of problems
43884   # (the dirname of $[0] is not the place where we might find the
43885   # original and so on.  Autoconf is especially sensible to this).
43886   . ./$as_me.lineno
43887   # Exit status is that of the last command.
43888   exit
43889 }
43890
43891
43892 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43893   *c*,-n*) ECHO_N= ECHO_C='
43894 ' ECHO_T='      ' ;;
43895   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43896   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
43897 esac
43898
43899 if expr a : '\(a\)' >/dev/null 2>&1; then
43900   as_expr=expr
43901 else
43902   as_expr=false
43903 fi
43904
43905 rm -f conf$$ conf$$.exe conf$$.file
43906 echo >conf$$.file
43907 if ln -s conf$$.file conf$$ 2>/dev/null; then
43908   # We could just check for DJGPP; but this test a) works b) is more generic
43909   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43910   if test -f conf$$.exe; then
43911     # Don't use ln at all; we don't have any links
43912     as_ln_s='cp -p'
43913   else
43914     as_ln_s='ln -s'
43915   fi
43916 elif ln conf$$.file conf$$ 2>/dev/null; then
43917   as_ln_s=ln
43918 else
43919   as_ln_s='cp -p'
43920 fi
43921 rm -f conf$$ conf$$.exe conf$$.file
43922
43923 if mkdir -p . 2>/dev/null; then
43924   as_mkdir_p=:
43925 else
43926   test -d ./-p && rmdir ./-p
43927   as_mkdir_p=false
43928 fi
43929
43930 as_executable_p="test -f"
43931
43932 # Sed expression to map a string onto a valid CPP name.
43933 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43934
43935 # Sed expression to map a string onto a valid variable name.
43936 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43937
43938
43939 # IFS
43940 # We need space, tab and new line, in precisely that order.
43941 as_nl='
43942 '
43943 IFS="   $as_nl"
43944
43945 # CDPATH.
43946 $as_unset CDPATH
43947
43948 exec 6>&1
43949
43950 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43951 # report actual input values of CONFIG_FILES etc. instead of their
43952 # values after options handling.  Logging --version etc. is OK.
43953 exec 5>>config.log
43954 {
43955   echo
43956   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43957 ## Running $as_me. ##
43958 _ASBOX
43959 } >&5
43960 cat >&5 <<_CSEOF
43961
43962 This file was extended by wxWidgets $as_me 2.5.5, which was
43963 generated by GNU Autoconf 2.59.  Invocation command line was
43964
43965   CONFIG_FILES    = $CONFIG_FILES
43966   CONFIG_HEADERS  = $CONFIG_HEADERS
43967   CONFIG_LINKS    = $CONFIG_LINKS
43968   CONFIG_COMMANDS = $CONFIG_COMMANDS
43969   $ $0 $@
43970
43971 _CSEOF
43972 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43973 echo >&5
43974 _ACEOF
43975
43976 # Files that config.status was made for.
43977 if test -n "$ac_config_files"; then
43978   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43979 fi
43980
43981 if test -n "$ac_config_headers"; then
43982   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43983 fi
43984
43985 if test -n "$ac_config_links"; then
43986   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43987 fi
43988
43989 if test -n "$ac_config_commands"; then
43990   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43991 fi
43992
43993 cat >>$CONFIG_STATUS <<\_ACEOF
43994
43995 ac_cs_usage="\
43996 \`$as_me' instantiates files from templates according to the
43997 current configuration.
43998
43999 Usage: $0 [OPTIONS] [FILE]...
44000
44001   -h, --help       print this help, then exit
44002   -V, --version    print version number, then exit
44003   -q, --quiet      do not print progress messages
44004   -d, --debug      don't remove temporary files
44005       --recheck    update $as_me by reconfiguring in the same conditions
44006   --file=FILE[:TEMPLATE]
44007                    instantiate the configuration file FILE
44008   --header=FILE[:TEMPLATE]
44009                    instantiate the configuration header FILE
44010
44011 Configuration files:
44012 $config_files
44013
44014 Configuration headers:
44015 $config_headers
44016
44017 Configuration commands:
44018 $config_commands
44019
44020 Report bugs to <bug-autoconf@gnu.org>."
44021 _ACEOF
44022
44023 cat >>$CONFIG_STATUS <<_ACEOF
44024 ac_cs_version="\\
44025 wxWidgets config.status 2.5.5
44026 configured by $0, generated by GNU Autoconf 2.59,
44027   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44028
44029 Copyright (C) 2003 Free Software Foundation, Inc.
44030 This config.status script is free software; the Free Software Foundation
44031 gives unlimited permission to copy, distribute and modify it."
44032 srcdir=$srcdir
44033 INSTALL="$INSTALL"
44034 _ACEOF
44035
44036 cat >>$CONFIG_STATUS <<\_ACEOF
44037 # If no file are specified by the user, then we need to provide default
44038 # value.  By we need to know if files were specified by the user.
44039 ac_need_defaults=:
44040 while test $# != 0
44041 do
44042   case $1 in
44043   --*=*)
44044     ac_option=`expr "x$1" : 'x\([^=]*\)='`
44045     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44046     ac_shift=:
44047     ;;
44048   -*)
44049     ac_option=$1
44050     ac_optarg=$2
44051     ac_shift=shift
44052     ;;
44053   *) # This is not an option, so the user has probably given explicit
44054      # arguments.
44055      ac_option=$1
44056      ac_need_defaults=false;;
44057   esac
44058
44059   case $ac_option in
44060   # Handling of the options.
44061 _ACEOF
44062 cat >>$CONFIG_STATUS <<\_ACEOF
44063   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44064     ac_cs_recheck=: ;;
44065   --version | --vers* | -V )
44066     echo "$ac_cs_version"; exit 0 ;;
44067   --he | --h)
44068     # Conflict between --help and --header
44069     { { echo "$as_me:$LINENO: error: ambiguous option: $1
44070 Try \`$0 --help' for more information." >&5
44071 echo "$as_me: error: ambiguous option: $1
44072 Try \`$0 --help' for more information." >&2;}
44073    { (exit 1); exit 1; }; };;
44074   --help | --hel | -h )
44075     echo "$ac_cs_usage"; exit 0 ;;
44076   --debug | --d* | -d )
44077     debug=: ;;
44078   --file | --fil | --fi | --f )
44079     $ac_shift
44080     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44081     ac_need_defaults=false;;
44082   --header | --heade | --head | --hea )
44083     $ac_shift
44084     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44085     ac_need_defaults=false;;
44086   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44087   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44088     ac_cs_silent=: ;;
44089
44090   # This is an error.
44091   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44092 Try \`$0 --help' for more information." >&5
44093 echo "$as_me: error: unrecognized option: $1
44094 Try \`$0 --help' for more information." >&2;}
44095    { (exit 1); exit 1; }; } ;;
44096
44097   *) ac_config_targets="$ac_config_targets $1" ;;
44098
44099   esac
44100   shift
44101 done
44102
44103 ac_configure_extra_args=
44104
44105 if $ac_cs_silent; then
44106   exec 6>/dev/null
44107   ac_configure_extra_args="$ac_configure_extra_args --silent"
44108 fi
44109
44110 _ACEOF
44111 cat >>$CONFIG_STATUS <<_ACEOF
44112 if \$ac_cs_recheck; then
44113   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44114   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44115 fi
44116
44117 _ACEOF
44118
44119 cat >>$CONFIG_STATUS <<_ACEOF
44120 #
44121 # INIT-COMMANDS section.
44122 #
44123
44124  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44125  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44126  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44127                      LN_S="${LN_S}"
44128
44129
44130 _ACEOF
44131
44132
44133
44134 cat >>$CONFIG_STATUS <<\_ACEOF
44135 for ac_config_target in $ac_config_targets
44136 do
44137   case "$ac_config_target" in
44138   # Handling of arguments.
44139   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44140   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
44141   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44142   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44143   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
44144   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44145   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
44146   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44147 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44148    { (exit 1); exit 1; }; };;
44149   esac
44150 done
44151
44152 # If the user did not use the arguments to specify the items to instantiate,
44153 # then the envvar interface is used.  Set only those that are not.
44154 # We use the long form for the default assignment because of an extremely
44155 # bizarre bug on SunOS 4.1.3.
44156 if $ac_need_defaults; then
44157   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44158   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44159   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44160 fi
44161
44162 # Have a temporary directory for convenience.  Make it in the build tree
44163 # simply because there is no reason to put it here, and in addition,
44164 # creating and moving files from /tmp can sometimes cause problems.
44165 # Create a temporary directory, and hook for its removal unless debugging.
44166 $debug ||
44167 {
44168   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44169   trap '{ (exit 1); exit 1; }' 1 2 13 15
44170 }
44171
44172 # Create a (secure) tmp directory for tmp files.
44173
44174 {
44175   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44176   test -n "$tmp" && test -d "$tmp"
44177 }  ||
44178 {
44179   tmp=./confstat$$-$RANDOM
44180   (umask 077 && mkdir $tmp)
44181 } ||
44182 {
44183    echo "$me: cannot create a temporary directory in ." >&2
44184    { (exit 1); exit 1; }
44185 }
44186
44187 _ACEOF
44188
44189 cat >>$CONFIG_STATUS <<_ACEOF
44190
44191 #
44192 # CONFIG_FILES section.
44193 #
44194
44195 # No need to generate the scripts if there are no CONFIG_FILES.
44196 # This happens for instance when ./config.status config.h
44197 if test -n "\$CONFIG_FILES"; then
44198   # Protect against being on the right side of a sed subst in config.status.
44199   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44200    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44201 s,@SHELL@,$SHELL,;t t
44202 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44203 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44204 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44205 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44206 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44207 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44208 s,@exec_prefix@,$exec_prefix,;t t
44209 s,@prefix@,$prefix,;t t
44210 s,@program_transform_name@,$program_transform_name,;t t
44211 s,@bindir@,$bindir,;t t
44212 s,@sbindir@,$sbindir,;t t
44213 s,@libexecdir@,$libexecdir,;t t
44214 s,@datadir@,$datadir,;t t
44215 s,@sysconfdir@,$sysconfdir,;t t
44216 s,@sharedstatedir@,$sharedstatedir,;t t
44217 s,@localstatedir@,$localstatedir,;t t
44218 s,@libdir@,$libdir,;t t
44219 s,@includedir@,$includedir,;t t
44220 s,@oldincludedir@,$oldincludedir,;t t
44221 s,@infodir@,$infodir,;t t
44222 s,@mandir@,$mandir,;t t
44223 s,@build_alias@,$build_alias,;t t
44224 s,@host_alias@,$host_alias,;t t
44225 s,@target_alias@,$target_alias,;t t
44226 s,@DEFS@,$DEFS,;t t
44227 s,@ECHO_C@,$ECHO_C,;t t
44228 s,@ECHO_N@,$ECHO_N,;t t
44229 s,@ECHO_T@,$ECHO_T,;t t
44230 s,@LIBS@,$LIBS,;t t
44231 s,@build@,$build,;t t
44232 s,@build_cpu@,$build_cpu,;t t
44233 s,@build_vendor@,$build_vendor,;t t
44234 s,@build_os@,$build_os,;t t
44235 s,@host@,$host,;t t
44236 s,@host_cpu@,$host_cpu,;t t
44237 s,@host_vendor@,$host_vendor,;t t
44238 s,@host_os@,$host_os,;t t
44239 s,@target@,$target,;t t
44240 s,@target_cpu@,$target_cpu,;t t
44241 s,@target_vendor@,$target_vendor,;t t
44242 s,@target_os@,$target_os,;t t
44243 s,@CC@,$CC,;t t
44244 s,@CFLAGS@,$CFLAGS,;t t
44245 s,@LDFLAGS@,$LDFLAGS,;t t
44246 s,@CPPFLAGS@,$CPPFLAGS,;t t
44247 s,@ac_ct_CC@,$ac_ct_CC,;t t
44248 s,@EXEEXT@,$EXEEXT,;t t
44249 s,@OBJEXT@,$OBJEXT,;t t
44250 s,@CPP@,$CPP,;t t
44251 s,@EGREP@,$EGREP,;t t
44252 s,@CXX@,$CXX,;t t
44253 s,@CXXFLAGS@,$CXXFLAGS,;t t
44254 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44255 s,@RANLIB@,$RANLIB,;t t
44256 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44257 s,@AR@,$AR,;t t
44258 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44259 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44260 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44261 s,@STRIP@,$STRIP,;t t
44262 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44263 s,@LN_S@,$LN_S,;t t
44264 s,@CXXCPP@,$CXXCPP,;t t
44265 s,@subdirs@,$subdirs,;t t
44266 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44267 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44268 s,@GTK_LIBS@,$GTK_LIBS,;t t
44269 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
44270 s,@X_CFLAGS@,$X_CFLAGS,;t t
44271 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44272 s,@X_LIBS@,$X_LIBS,;t t
44273 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44274 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44275 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
44276 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44277 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
44278 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44279 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44280 s,@RESCOMP@,$RESCOMP,;t t
44281 s,@DEREZ@,$DEREZ,;t t
44282 s,@SETFILE@,$SETFILE,;t t
44283 s,@LIBICONV@,$LIBICONV,;t t
44284 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44285 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44286 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44287 s,@SDL_LIBS@,$SDL_LIBS,;t t
44288 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44289 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
44290 s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44291 s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44292 s,@GST_INSPECT@,$GST_INSPECT,;t t
44293 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44294 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44295 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44296 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44297 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44298 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44299 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44300 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44301 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44302 s,@VENDOR@,$VENDOR,;t t
44303 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
44304 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44305 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
44306 s,@WXUNIV@,$WXUNIV,;t t
44307 s,@MONOLITHIC@,$MONOLITHIC,;t t
44308 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44309 s,@EXTRALIBS@,$EXTRALIBS,;t t
44310 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44311 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44312 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44313 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44314 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44315 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44316 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
44317 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
44318 s,@UNICODE@,$UNICODE,;t t
44319 s,@BUILD@,$BUILD,;t t
44320 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44321 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
44322 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44323 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44324 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44325 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44326 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44327 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44328 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44329 s,@SET_MAKE@,$SET_MAKE,;t t
44330 s,@MAKE_SET@,$MAKE_SET,;t t
44331 s,@ac_ct_AR@,$ac_ct_AR,;t t
44332 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44333 s,@NM@,$NM,;t t
44334 s,@ac_ct_NM@,$ac_ct_NM,;t t
44335 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44336 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44337 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44338 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44339 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44340 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
44341 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
44342 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44343 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
44344 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
44345 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44346 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44347 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44348 s,@LIBPREFIX@,$LIBPREFIX,;t t
44349 s,@LIBEXT@,$LIBEXT,;t t
44350 s,@DLLPREFIX@,$DLLPREFIX,;t t
44351 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44352 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44353 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44354 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44355 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44356 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44357 s,@PIC_FLAG@,$PIC_FLAG,;t t
44358 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44359 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44360 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44361 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44362 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44363 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44364 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44365 s,@GCC_PCH@,$GCC_PCH,;t t
44366 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44367 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44368 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44369 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44370 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44371 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44372 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44373 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44374 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44375 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44376 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44377 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44378 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44379 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44380 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44381 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44382 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44383 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
44384 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
44385 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
44386 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
44387 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
44388 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
44389 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44390 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
44391 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
44392 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
44393 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
44394 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
44395 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
44396 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44397 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44398 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44399 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44400 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44401 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44402 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44403 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
44404 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
44405 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44406 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44407 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
44408 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
44409 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
44410 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44411 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
44412 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44413 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
44414 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
44415 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44416 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44417 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44418 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44419 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44420 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44421 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44422 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44423 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
44424 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44425 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44426 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
44427 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44428 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44429 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44430 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44431 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44432 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44433 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44434 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44435 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44436 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
44437 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
44438 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
44439 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
44440 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44441 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44442 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44443 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44444 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44445 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44446 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44447 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44448 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44449 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44450 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44451 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44452 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44453 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44454 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44455 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44456 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44457 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
44458 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44459 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44460 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
44461 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44462 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44463 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44464 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44465 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44466 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44467 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44468 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44469 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44470 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44471 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44472 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44473 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
44474 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
44475 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
44476 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44477 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
44478 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44479 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44480 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44481 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
44482 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44483 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
44484 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
44485 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
44486 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
44487 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44488 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44489 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44490 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44491 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44492 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44493 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44494 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
44495 s,@SHARED@,$SHARED,;t t
44496 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44497 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
44498 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44499 s,@USE_GUI@,$USE_GUI,;t t
44500 s,@AFMINSTALL@,$AFMINSTALL,;t t
44501 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44502 s,@TOOLKIT@,$TOOLKIT,;t t
44503 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
44504 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
44505 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
44506 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44507 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
44508 s,@cross_compiling@,$cross_compiling,;t t
44509 s,@WIDGET_SET@,$WIDGET_SET,;t t
44510 s,@WX_RELEASE@,$WX_RELEASE,;t t
44511 s,@WX_VERSION@,$WX_VERSION,;t t
44512 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44513 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44514 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
44515 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
44516 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44517 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44518 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44519 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
44520 s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
44521 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44522 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
44523 s,@EXE_LINKER@,$EXE_LINKER,;t t
44524 s,@GUIDIST@,$GUIDIST,;t t
44525 s,@DISTDIR@,$DISTDIR,;t t
44526 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44527 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
44528 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44529 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44530 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44531 s,@RESFLAGS@,$RESFLAGS,;t t
44532 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44533 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44534 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44535 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44536 s,@MACRESCOMP@,$MACRESCOMP,;t t
44537 s,@MACSETFILE@,$MACSETFILE,;t t
44538 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44539 s,@GCC@,$GCC,;t t
44540 s,@DLLTOOL@,$DLLTOOL,;t t
44541 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44542 s,@LIBOBJS@,$LIBOBJS,;t t
44543 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44544 CEOF
44545
44546 _ACEOF
44547
44548   cat >>$CONFIG_STATUS <<\_ACEOF
44549   # Split the substitutions into bite-sized pieces for seds with
44550   # small command number limits, like on Digital OSF/1 and HP-UX.
44551   ac_max_sed_lines=48
44552   ac_sed_frag=1 # Number of current file.
44553   ac_beg=1 # First line for current file.
44554   ac_end=$ac_max_sed_lines # Line after last line for current file.
44555   ac_more_lines=:
44556   ac_sed_cmds=
44557   while $ac_more_lines; do
44558     if test $ac_beg -gt 1; then
44559       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44560     else
44561       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44562     fi
44563     if test ! -s $tmp/subs.frag; then
44564       ac_more_lines=false
44565     else
44566       # The purpose of the label and of the branching condition is to
44567       # speed up the sed processing (if there are no `@' at all, there
44568       # is no need to browse any of the substitutions).
44569       # These are the two extra sed commands mentioned above.
44570       (echo ':t
44571   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44572       if test -z "$ac_sed_cmds"; then
44573         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
44574       else
44575         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
44576       fi
44577       ac_sed_frag=`expr $ac_sed_frag + 1`
44578       ac_beg=$ac_end
44579       ac_end=`expr $ac_end + $ac_max_sed_lines`
44580     fi
44581   done
44582   if test -z "$ac_sed_cmds"; then
44583     ac_sed_cmds=cat
44584   fi
44585 fi # test -n "$CONFIG_FILES"
44586
44587 _ACEOF
44588 cat >>$CONFIG_STATUS <<\_ACEOF
44589 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44590   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44591   case $ac_file in
44592   - | *:- | *:-:* ) # input from stdin
44593         cat >$tmp/stdin
44594         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44595         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44596   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44597         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44598   * )   ac_file_in=$ac_file.in ;;
44599   esac
44600
44601   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44602   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44603 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44604          X"$ac_file" : 'X\(//\)[^/]' \| \
44605          X"$ac_file" : 'X\(//\)$' \| \
44606          X"$ac_file" : 'X\(/\)' \| \
44607          .     : '\(.\)' 2>/dev/null ||
44608 echo X"$ac_file" |
44609     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44610           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44611           /^X\(\/\/\)$/{ s//\1/; q; }
44612           /^X\(\/\).*/{ s//\1/; q; }
44613           s/.*/./; q'`
44614   { if $as_mkdir_p; then
44615     mkdir -p "$ac_dir"
44616   else
44617     as_dir="$ac_dir"
44618     as_dirs=
44619     while test ! -d "$as_dir"; do
44620       as_dirs="$as_dir $as_dirs"
44621       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44622 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44623          X"$as_dir" : 'X\(//\)[^/]' \| \
44624          X"$as_dir" : 'X\(//\)$' \| \
44625          X"$as_dir" : 'X\(/\)' \| \
44626          .     : '\(.\)' 2>/dev/null ||
44627 echo X"$as_dir" |
44628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44629           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44630           /^X\(\/\/\)$/{ s//\1/; q; }
44631           /^X\(\/\).*/{ s//\1/; q; }
44632           s/.*/./; q'`
44633     done
44634     test ! -n "$as_dirs" || mkdir $as_dirs
44635   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44636 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44637    { (exit 1); exit 1; }; }; }
44638
44639   ac_builddir=.
44640
44641 if test "$ac_dir" != .; then
44642   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44643   # A "../" for each directory in $ac_dir_suffix.
44644   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44645 else
44646   ac_dir_suffix= ac_top_builddir=
44647 fi
44648
44649 case $srcdir in
44650   .)  # No --srcdir option.  We are building in place.
44651     ac_srcdir=.
44652     if test -z "$ac_top_builddir"; then
44653        ac_top_srcdir=.
44654     else
44655        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44656     fi ;;
44657   [\\/]* | ?:[\\/]* )  # Absolute path.
44658     ac_srcdir=$srcdir$ac_dir_suffix;
44659     ac_top_srcdir=$srcdir ;;
44660   *) # Relative path.
44661     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44662     ac_top_srcdir=$ac_top_builddir$srcdir ;;
44663 esac
44664
44665 # Do not use `cd foo && pwd` to compute absolute paths, because
44666 # the directories may not exist.
44667 case `pwd` in
44668 .) ac_abs_builddir="$ac_dir";;
44669 *)
44670   case "$ac_dir" in
44671   .) ac_abs_builddir=`pwd`;;
44672   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44673   *) ac_abs_builddir=`pwd`/"$ac_dir";;
44674   esac;;
44675 esac
44676 case $ac_abs_builddir in
44677 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44678 *)
44679   case ${ac_top_builddir}. in
44680   .) ac_abs_top_builddir=$ac_abs_builddir;;
44681   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44682   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44683   esac;;
44684 esac
44685 case $ac_abs_builddir in
44686 .) ac_abs_srcdir=$ac_srcdir;;
44687 *)
44688   case $ac_srcdir in
44689   .) ac_abs_srcdir=$ac_abs_builddir;;
44690   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44691   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44692   esac;;
44693 esac
44694 case $ac_abs_builddir in
44695 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44696 *)
44697   case $ac_top_srcdir in
44698   .) ac_abs_top_srcdir=$ac_abs_builddir;;
44699   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44700   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44701   esac;;
44702 esac
44703
44704
44705   case $INSTALL in
44706   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44707   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44708   esac
44709
44710   # Let's still pretend it is `configure' which instantiates (i.e., don't
44711   # use $as_me), people would be surprised to read:
44712   #    /* config.h.  Generated by config.status.  */
44713   if test x"$ac_file" = x-; then
44714     configure_input=
44715   else
44716     configure_input="$ac_file.  "
44717   fi
44718   configure_input=$configure_input"Generated from `echo $ac_file_in |
44719                                      sed 's,.*/,,'` by configure."
44720
44721   # First look for the input files in the build tree, otherwise in the
44722   # src tree.
44723   ac_file_inputs=`IFS=:
44724     for f in $ac_file_in; do
44725       case $f in
44726       -) echo $tmp/stdin ;;
44727       [\\/$]*)
44728          # Absolute (can't be DOS-style, as IFS=:)
44729          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44730 echo "$as_me: error: cannot find input file: $f" >&2;}
44731    { (exit 1); exit 1; }; }
44732          echo "$f";;
44733       *) # Relative
44734          if test -f "$f"; then
44735            # Build tree
44736            echo "$f"
44737          elif test -f "$srcdir/$f"; then
44738            # Source tree
44739            echo "$srcdir/$f"
44740          else
44741            # /dev/null tree
44742            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44743 echo "$as_me: error: cannot find input file: $f" >&2;}
44744    { (exit 1); exit 1; }; }
44745          fi;;
44746       esac
44747     done` || { (exit 1); exit 1; }
44748
44749   if test x"$ac_file" != x-; then
44750     { echo "$as_me:$LINENO: creating $ac_file" >&5
44751 echo "$as_me: creating $ac_file" >&6;}
44752     rm -f "$ac_file"
44753   fi
44754 _ACEOF
44755 cat >>$CONFIG_STATUS <<_ACEOF
44756   sed "$ac_vpsub
44757 $extrasub
44758 _ACEOF
44759 cat >>$CONFIG_STATUS <<\_ACEOF
44760 :t
44761 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44762 s,@configure_input@,$configure_input,;t t
44763 s,@srcdir@,$ac_srcdir,;t t
44764 s,@abs_srcdir@,$ac_abs_srcdir,;t t
44765 s,@top_srcdir@,$ac_top_srcdir,;t t
44766 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44767 s,@builddir@,$ac_builddir,;t t
44768 s,@abs_builddir@,$ac_abs_builddir,;t t
44769 s,@top_builddir@,$ac_top_builddir,;t t
44770 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44771 s,@INSTALL@,$ac_INSTALL,;t t
44772 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44773   rm -f $tmp/stdin
44774   if test x"$ac_file" != x-; then
44775     mv $tmp/out $ac_file
44776   else
44777     cat $tmp/out
44778     rm -f $tmp/out
44779   fi
44780
44781   # Run the commands associated with the file.
44782   case $ac_file in
44783     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
44784     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
44785   esac
44786 done
44787 _ACEOF
44788 cat >>$CONFIG_STATUS <<\_ACEOF
44789
44790 #
44791 # CONFIG_HEADER section.
44792 #
44793
44794 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44795 # NAME is the cpp macro being defined and VALUE is the value it is being given.
44796 #
44797 # ac_d sets the value in "#define NAME VALUE" lines.
44798 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
44799 ac_dB='[         ].*$,\1#\2'
44800 ac_dC=' '
44801 ac_dD=',;t'
44802 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
44803 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
44804 ac_uB='$,\1#\2define\3'
44805 ac_uC=' '
44806 ac_uD=',;t'
44807
44808 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44809   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44810   case $ac_file in
44811   - | *:- | *:-:* ) # input from stdin
44812         cat >$tmp/stdin
44813         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44814         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44815   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44816         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44817   * )   ac_file_in=$ac_file.in ;;
44818   esac
44819
44820   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44821 echo "$as_me: creating $ac_file" >&6;}
44822
44823   # First look for the input files in the build tree, otherwise in the
44824   # src tree.
44825   ac_file_inputs=`IFS=:
44826     for f in $ac_file_in; do
44827       case $f in
44828       -) echo $tmp/stdin ;;
44829       [\\/$]*)
44830          # Absolute (can't be DOS-style, as IFS=:)
44831          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44832 echo "$as_me: error: cannot find input file: $f" >&2;}
44833    { (exit 1); exit 1; }; }
44834          # Do quote $f, to prevent DOS paths from being IFS'd.
44835          echo "$f";;
44836       *) # Relative
44837          if test -f "$f"; then
44838            # Build tree
44839            echo "$f"
44840          elif test -f "$srcdir/$f"; then
44841            # Source tree
44842            echo "$srcdir/$f"
44843          else
44844            # /dev/null tree
44845            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44846 echo "$as_me: error: cannot find input file: $f" >&2;}
44847    { (exit 1); exit 1; }; }
44848          fi;;
44849       esac
44850     done` || { (exit 1); exit 1; }
44851   # Remove the trailing spaces.
44852   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
44853
44854 _ACEOF
44855
44856 # Transform confdefs.h into two sed scripts, `conftest.defines' and
44857 # `conftest.undefs', that substitutes the proper values into
44858 # config.h.in to produce config.h.  The first handles `#define'
44859 # templates, and the second `#undef' templates.
44860 # And first: Protect against being on the right side of a sed subst in
44861 # config.status.  Protect against being in an unquoted here document
44862 # in config.status.
44863 rm -f conftest.defines conftest.undefs
44864 # Using a here document instead of a string reduces the quoting nightmare.
44865 # Putting comments in sed scripts is not portable.
44866 #
44867 # `end' is used to avoid that the second main sed command (meant for
44868 # 0-ary CPP macros) applies to n-ary macro definitions.
44869 # See the Autoconf documentation for `clear'.
44870 cat >confdef2sed.sed <<\_ACEOF
44871 s/[\\&,]/\\&/g
44872 s,[\\$`],\\&,g
44873 t clear
44874 : clear
44875 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
44876 t end
44877 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
44878 : end
44879 _ACEOF
44880 # If some macros were called several times there might be several times
44881 # the same #defines, which is useless.  Nevertheless, we may not want to
44882 # sort them, since we want the *last* AC-DEFINE to be honored.
44883 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44884 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44885 rm -f confdef2sed.sed
44886
44887 # This sed command replaces #undef with comments.  This is necessary, for
44888 # example, in the case of _POSIX_SOURCE, which is predefined and required
44889 # on some systems where configure will not decide to define it.
44890 cat >>conftest.undefs <<\_ACEOF
44891 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
44892 _ACEOF
44893
44894 # Break up conftest.defines because some shells have a limit on the size
44895 # of here documents, and old seds have small limits too (100 cmds).
44896 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
44897 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
44898 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44899 echo '  :' >>$CONFIG_STATUS
44900 rm -f conftest.tail
44901 while grep . conftest.defines >/dev/null
44902 do
44903   # Write a limited-size here document to $tmp/defines.sed.
44904   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44905   # Speed up: don't consider the non `#define' lines.
44906   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
44907   # Work around the forget-to-reset-the-flag bug.
44908   echo 't clr' >>$CONFIG_STATUS
44909   echo ': clr' >>$CONFIG_STATUS
44910   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44911   echo 'CEOF
44912   sed -f $tmp/defines.sed $tmp/in >$tmp/out
44913   rm -f $tmp/in
44914   mv $tmp/out $tmp/in
44915 ' >>$CONFIG_STATUS
44916   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44917   rm -f conftest.defines
44918   mv conftest.tail conftest.defines
44919 done
44920 rm -f conftest.defines
44921 echo '  fi # grep' >>$CONFIG_STATUS
44922 echo >>$CONFIG_STATUS
44923
44924 # Break up conftest.undefs because some shells have a limit on the size
44925 # of here documents, and old seds have small limits too (100 cmds).
44926 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
44927 rm -f conftest.tail
44928 while grep . conftest.undefs >/dev/null
44929 do
44930   # Write a limited-size here document to $tmp/undefs.sed.
44931   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44932   # Speed up: don't consider the non `#undef'
44933   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
44934   # Work around the forget-to-reset-the-flag bug.
44935   echo 't clr' >>$CONFIG_STATUS
44936   echo ': clr' >>$CONFIG_STATUS
44937   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44938   echo 'CEOF
44939   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44940   rm -f $tmp/in
44941   mv $tmp/out $tmp/in
44942 ' >>$CONFIG_STATUS
44943   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44944   rm -f conftest.undefs
44945   mv conftest.tail conftest.undefs
44946 done
44947 rm -f conftest.undefs
44948
44949 cat >>$CONFIG_STATUS <<\_ACEOF
44950   # Let's still pretend it is `configure' which instantiates (i.e., don't
44951   # use $as_me), people would be surprised to read:
44952   #    /* config.h.  Generated by config.status.  */
44953   if test x"$ac_file" = x-; then
44954     echo "/* Generated by configure.  */" >$tmp/config.h
44955   else
44956     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
44957   fi
44958   cat $tmp/in >>$tmp/config.h
44959   rm -f $tmp/in
44960   if test x"$ac_file" != x-; then
44961     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44962       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44963 echo "$as_me: $ac_file is unchanged" >&6;}
44964     else
44965       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44967          X"$ac_file" : 'X\(//\)[^/]' \| \
44968          X"$ac_file" : 'X\(//\)$' \| \
44969          X"$ac_file" : 'X\(/\)' \| \
44970          .     : '\(.\)' 2>/dev/null ||
44971 echo X"$ac_file" |
44972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44973           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44974           /^X\(\/\/\)$/{ s//\1/; q; }
44975           /^X\(\/\).*/{ s//\1/; q; }
44976           s/.*/./; q'`
44977       { if $as_mkdir_p; then
44978     mkdir -p "$ac_dir"
44979   else
44980     as_dir="$ac_dir"
44981     as_dirs=
44982     while test ! -d "$as_dir"; do
44983       as_dirs="$as_dir $as_dirs"
44984       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44986          X"$as_dir" : 'X\(//\)[^/]' \| \
44987          X"$as_dir" : 'X\(//\)$' \| \
44988          X"$as_dir" : 'X\(/\)' \| \
44989          .     : '\(.\)' 2>/dev/null ||
44990 echo X"$as_dir" |
44991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44992           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44993           /^X\(\/\/\)$/{ s//\1/; q; }
44994           /^X\(\/\).*/{ s//\1/; q; }
44995           s/.*/./; q'`
44996     done
44997     test ! -n "$as_dirs" || mkdir $as_dirs
44998   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45000    { (exit 1); exit 1; }; }; }
45001
45002       rm -f $ac_file
45003       mv $tmp/config.h $ac_file
45004     fi
45005   else
45006     cat $tmp/config.h
45007     rm -f $tmp/config.h
45008   fi
45009 done
45010 _ACEOF
45011 cat >>$CONFIG_STATUS <<\_ACEOF
45012
45013 #
45014 # CONFIG_COMMANDS section.
45015 #
45016 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45017   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45018   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45019   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45020 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45021          X"$ac_dest" : 'X\(//\)[^/]' \| \
45022          X"$ac_dest" : 'X\(//\)$' \| \
45023          X"$ac_dest" : 'X\(/\)' \| \
45024          .     : '\(.\)' 2>/dev/null ||
45025 echo X"$ac_dest" |
45026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45027           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45028           /^X\(\/\/\)$/{ s//\1/; q; }
45029           /^X\(\/\).*/{ s//\1/; q; }
45030           s/.*/./; q'`
45031   { if $as_mkdir_p; then
45032     mkdir -p "$ac_dir"
45033   else
45034     as_dir="$ac_dir"
45035     as_dirs=
45036     while test ! -d "$as_dir"; do
45037       as_dirs="$as_dir $as_dirs"
45038       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45039 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45040          X"$as_dir" : 'X\(//\)[^/]' \| \
45041          X"$as_dir" : 'X\(//\)$' \| \
45042          X"$as_dir" : 'X\(/\)' \| \
45043          .     : '\(.\)' 2>/dev/null ||
45044 echo X"$as_dir" |
45045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45046           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45047           /^X\(\/\/\)$/{ s//\1/; q; }
45048           /^X\(\/\).*/{ s//\1/; q; }
45049           s/.*/./; q'`
45050     done
45051     test ! -n "$as_dirs" || mkdir $as_dirs
45052   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45053 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45054    { (exit 1); exit 1; }; }; }
45055
45056   ac_builddir=.
45057
45058 if test "$ac_dir" != .; then
45059   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45060   # A "../" for each directory in $ac_dir_suffix.
45061   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45062 else
45063   ac_dir_suffix= ac_top_builddir=
45064 fi
45065
45066 case $srcdir in
45067   .)  # No --srcdir option.  We are building in place.
45068     ac_srcdir=.
45069     if test -z "$ac_top_builddir"; then
45070        ac_top_srcdir=.
45071     else
45072        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45073     fi ;;
45074   [\\/]* | ?:[\\/]* )  # Absolute path.
45075     ac_srcdir=$srcdir$ac_dir_suffix;
45076     ac_top_srcdir=$srcdir ;;
45077   *) # Relative path.
45078     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45079     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45080 esac
45081
45082 # Do not use `cd foo && pwd` to compute absolute paths, because
45083 # the directories may not exist.
45084 case `pwd` in
45085 .) ac_abs_builddir="$ac_dir";;
45086 *)
45087   case "$ac_dir" in
45088   .) ac_abs_builddir=`pwd`;;
45089   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45090   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45091   esac;;
45092 esac
45093 case $ac_abs_builddir in
45094 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45095 *)
45096   case ${ac_top_builddir}. in
45097   .) ac_abs_top_builddir=$ac_abs_builddir;;
45098   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45099   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45100   esac;;
45101 esac
45102 case $ac_abs_builddir in
45103 .) ac_abs_srcdir=$ac_srcdir;;
45104 *)
45105   case $ac_srcdir in
45106   .) ac_abs_srcdir=$ac_abs_builddir;;
45107   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45108   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45109   esac;;
45110 esac
45111 case $ac_abs_builddir in
45112 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45113 *)
45114   case $ac_top_srcdir in
45115   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45116   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45117   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45118   esac;;
45119 esac
45120
45121
45122   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45123 echo "$as_me: executing $ac_dest commands" >&6;}
45124   case $ac_dest in
45125     wx-config )  rm -f wx-config
45126                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45127                     ;;
45128   esac
45129 done
45130 _ACEOF
45131
45132 cat >>$CONFIG_STATUS <<\_ACEOF
45133
45134 { (exit 0); exit 0; }
45135 _ACEOF
45136 chmod +x $CONFIG_STATUS
45137 ac_clean_files=$ac_clean_files_save
45138
45139
45140 # configure is writing to config.log, and then calls config.status.
45141 # config.status does its own redirection, appending to config.log.
45142 # Unfortunately, on DOS this fails, as config.log is still kept open
45143 # by configure, so config.status won't be able to write to it; its
45144 # output is simply discarded.  So we exec the FD to /dev/null,
45145 # effectively closing config.log, so it can be properly (re)opened and
45146 # appended to by config.status.  When coming back to configure, we
45147 # need to make the FD available again.
45148 if test "$no_create" != yes; then
45149   ac_cs_success=:
45150   ac_config_status_args=
45151   test "$silent" = yes &&
45152     ac_config_status_args="$ac_config_status_args --quiet"
45153   exec 5>/dev/null
45154   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45155   exec 5>>config.log
45156   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45157   # would make configure fail if this is the last instruction.
45158   $ac_cs_success || { (exit 1); exit 1; }
45159 fi
45160
45161 #
45162 # CONFIG_SUBDIRS section.
45163 #
45164 if test "$no_recursion" != yes; then
45165
45166   # Remove --cache-file and --srcdir arguments so they do not pile up.
45167   ac_sub_configure_args=
45168   ac_prev=
45169   for ac_arg in $ac_configure_args; do
45170     if test -n "$ac_prev"; then
45171       ac_prev=
45172       continue
45173     fi
45174     case $ac_arg in
45175     -cache-file | --cache-file | --cache-fil | --cache-fi \
45176     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45177       ac_prev=cache_file ;;
45178     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45179     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45180     | --c=*)
45181       ;;
45182     --config-cache | -C)
45183       ;;
45184     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45185       ac_prev=srcdir ;;
45186     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45187       ;;
45188     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45189       ac_prev=prefix ;;
45190     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45191       ;;
45192     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45193     esac
45194   done
45195
45196   # Always prepend --prefix to ensure using the same prefix
45197   # in subdir configurations.
45198   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45199
45200   ac_popdir=`pwd`
45201   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45202
45203     # Do not complain, so a configure script can configure whichever
45204     # parts of a large source tree are present.
45205     test -d $srcdir/$ac_dir || continue
45206
45207     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45208 echo "$as_me: configuring in $ac_dir" >&6;}
45209     { if $as_mkdir_p; then
45210     mkdir -p "$ac_dir"
45211   else
45212     as_dir="$ac_dir"
45213     as_dirs=
45214     while test ! -d "$as_dir"; do
45215       as_dirs="$as_dir $as_dirs"
45216       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45218          X"$as_dir" : 'X\(//\)[^/]' \| \
45219          X"$as_dir" : 'X\(//\)$' \| \
45220          X"$as_dir" : 'X\(/\)' \| \
45221          .     : '\(.\)' 2>/dev/null ||
45222 echo X"$as_dir" |
45223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45224           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45225           /^X\(\/\/\)$/{ s//\1/; q; }
45226           /^X\(\/\).*/{ s//\1/; q; }
45227           s/.*/./; q'`
45228     done
45229     test ! -n "$as_dirs" || mkdir $as_dirs
45230   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45231 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45232    { (exit 1); exit 1; }; }; }
45233
45234     ac_builddir=.
45235
45236 if test "$ac_dir" != .; then
45237   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45238   # A "../" for each directory in $ac_dir_suffix.
45239   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45240 else
45241   ac_dir_suffix= ac_top_builddir=
45242 fi
45243
45244 case $srcdir in
45245   .)  # No --srcdir option.  We are building in place.
45246     ac_srcdir=.
45247     if test -z "$ac_top_builddir"; then
45248        ac_top_srcdir=.
45249     else
45250        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45251     fi ;;
45252   [\\/]* | ?:[\\/]* )  # Absolute path.
45253     ac_srcdir=$srcdir$ac_dir_suffix;
45254     ac_top_srcdir=$srcdir ;;
45255   *) # Relative path.
45256     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45257     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45258 esac
45259
45260 # Do not use `cd foo && pwd` to compute absolute paths, because
45261 # the directories may not exist.
45262 case `pwd` in
45263 .) ac_abs_builddir="$ac_dir";;
45264 *)
45265   case "$ac_dir" in
45266   .) ac_abs_builddir=`pwd`;;
45267   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45268   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45269   esac;;
45270 esac
45271 case $ac_abs_builddir in
45272 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45273 *)
45274   case ${ac_top_builddir}. in
45275   .) ac_abs_top_builddir=$ac_abs_builddir;;
45276   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45277   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45278   esac;;
45279 esac
45280 case $ac_abs_builddir in
45281 .) ac_abs_srcdir=$ac_srcdir;;
45282 *)
45283   case $ac_srcdir in
45284   .) ac_abs_srcdir=$ac_abs_builddir;;
45285   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45286   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45287   esac;;
45288 esac
45289 case $ac_abs_builddir in
45290 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45291 *)
45292   case $ac_top_srcdir in
45293   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45294   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45295   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45296   esac;;
45297 esac
45298
45299
45300     cd $ac_dir
45301
45302     # Check for guested configure; otherwise get Cygnus style configure.
45303     if test -f $ac_srcdir/configure.gnu; then
45304       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45305     elif test -f $ac_srcdir/configure; then
45306       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45307     elif test -f $ac_srcdir/configure.in; then
45308       ac_sub_configure=$ac_configure
45309     else
45310       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45311 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45312       ac_sub_configure=
45313     fi
45314
45315     # The recursion is here.
45316     if test -n "$ac_sub_configure"; then
45317       # Make the cache file name correct relative to the subdirectory.
45318       case $cache_file in
45319       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45320       *) # Relative path.
45321         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
45322       esac
45323
45324       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45325 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45326       # The eval makes quoting arguments work.
45327       eval $ac_sub_configure $ac_sub_configure_args \
45328            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45329         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
45330 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45331    { (exit 1); exit 1; }; }
45332     fi
45333
45334     cd "$ac_popdir"
45335   done
45336 fi
45337
45338
45339 echo
45340 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
45341 echo ""
45342 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_USER:-base only}"
45343 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
45344
45345 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
45346 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
45347 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
45348
45349 echo "  What level of wxWidgets compatibility should be enabled?"
45350 echo "                                       wxWidgets 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
45351 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
45352
45353 echo "  Which libraries should wxWidgets use?"
45354 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
45355 echo "                                       png                ${wxUSE_LIBPNG-none}"
45356 echo "                                       regex              ${wxUSE_REGEX}"
45357 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
45358 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45359 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
45360 fi
45361 echo "                                       zlib               ${wxUSE_ZLIB}"
45362 echo "                                       odbc               ${wxUSE_ODBC}"
45363 echo "                                       expat              ${wxUSE_EXPAT}"
45364 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
45365 echo "                                       sdl                ${wxUSE_LIBSDL}"
45366 echo "                                       gnomeprint         ${wxUSE_LIBGNOMEPRINT-none}"
45367
45368 echo ""
45369