Added wxRichTextCtrl
[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.7.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWidgets'
272 PACKAGE_TARNAME='wxwidgets'
273 PACKAGE_VERSION='2.7.0'
274 PACKAGE_STRING='wxWidgets 2.7.0'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S LNDIR CP_PR 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 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 NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING 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_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI 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 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.7.0 to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857   --target=TARGET   configure for building compilers for TARGET [HOST]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862   case $ac_init_help in
863      short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
864    esac
865   cat <<\_ACEOF
866
867 Optional Features:
868   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
869   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
870   --enable-gui            use GUI classes
871   --enable-monolithic     build wxWidgets as single library
872   --enable-plugins        build parts of wxWidgets as loadable components
873   --enable-universal      use wxWidgets GUI controls instead of native ones
874   --enable-nanox          use NanoX
875   --disable-gtk2          use GTK+ 1.2 instead of 2.0
876   --enable-gpe            use GNOME PDA Environment features if possible
877   --enable-shared         create shared library code
878   --enable-optimise       create optimised code
879   --enable-debug          same as debug_flag and debug_info
880   --enable-stl            use STL for containers
881   --enable-omf            use OMF object format
882   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
883   --enable-debug_info     create code with debugging information
884   --enable-debug_gdb      create code with extra GDB debugging information
885   --enable-debug_cntxt    use wxDebugContext
886   --enable-mem_tracing    create code with memory tracing
887   --enable-profile        create code with profiling information
888   --enable-no_rtti        create code without RTTI information
889   --enable-no_exceptions  create code without C++ exceptions handling
890   --enable-permissive     compile code disregarding strict ANSI
891   --enable-no_deps        create code without dependency information
892   --enable-compat24       enable wxWidgets 2.4 compatibility
893   --disable-compat26      disable wxWidgets 2.6 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-treebook       use wxTreebook class
1008   --enable-treectrl       use wxTreeCtrl class
1009   --enable-tipwindow      use wxTipWindow class
1010   --enable-popupwin       use wxPopUpWindow class
1011   --enable-commondlg      use all common dialogs
1012   --enable-choicedlg      use wxChoiceDialog
1013   --enable-coldlg         use wxColourDialog
1014   --enable-filedlg        use wxFileDialog
1015   --enable-finddlg        use wxFindReplaceDialog
1016   --enable-fontdlg        use wxFontDialog
1017   --enable-dirdlg         use wxDirDialog
1018   --enable-msgdlg         use wxMessageDialog
1019   --enable-numberdlg      use wxNumberEntryDialog
1020   --enable-splash         use wxSplashScreen
1021   --enable-textdlg        use wxTextDialog
1022   --enable-tipdlg         use startup tips
1023   --enable-progressdlg    use wxProgressDialog
1024   --enable-wizarddlg      use wxWizard
1025   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1026   --enable-miniframe      use wxMiniFrame class
1027   --enable-tooltips       use wxToolTip class
1028   --enable-splines        use spline drawing code
1029   --enable-mousewheel     use mousewheel
1030   --enable-validators     use wxValidator and derived classes
1031   --enable-busyinfo       use wxBusyInfo
1032   --enable-joystick       use wxJoystick
1033   --enable-metafiles      use wxMetaFile (Win32 only)
1034   --enable-dragimage      use wxDragImage
1035   --enable-accessibility  enable accessibility support
1036   --enable-dccache        cache temporary wxDC objects (Win32 only)
1037   --enable-palette        use wxPalette class
1038   --enable-image          use wxImage class
1039   --enable-gif            use gif images (GIF file format)
1040   --enable-pcx            use pcx images (PCX file format)
1041   --enable-iff            use iff images (IFF file format)
1042   --enable-pnm            use pnm images (PNM file format)
1043   --enable-xpm            use xpm images (XPM file format)
1044   --enable-icocur         use Windows ICO and CUR formats
1045   --enable-official_build official build of wxWidgets (win32 DLL only)
1046   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1047   --disable-largefile     omit support for large files
1048   --disable-gtktest       do not try to compile and run a test GTK+ program
1049   --disable-gtktest       Do not try to compile and run a test GTK program
1050   --disable-sdltest       Do not try to compile and run a test SDL program
1051   --enable-omf            use OMF object format (OS/2)
1052   --disable-precomp-headers
1053                           don't use precompiled headers even if compiler can
1054
1055 Optional Packages:
1056   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058   --without-subdirs       don't generate makefiles for samples/demos/...
1059   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1060   --with-motif            use Motif/Lesstif
1061   --with-mac              use Mac OS X
1062   --with-cocoa            use Cocoa
1063   --with-wine             use Wine
1064   --with-msw              use MS-Windows
1065   --with-pm               use OS/2 Presentation Manager
1066   --with-mgl              use SciTech MGL
1067   --with-microwin         use MicroWindows
1068   --with-x11              use X11
1069   --with-libpng           use libpng (PNG image format)
1070   --with-libjpeg          use libjpeg (JPEG file format)
1071   --with-libtiff          use libtiff (TIFF file format)
1072   --with-libxpm           use libxpm (XPM file format)
1073   --with-libmspack        use libmspack (CHM help files loading)
1074   --with-sdl              use SDL for audio on Unix
1075   --with-gnomeprint       use GNOME print for printing under Unix
1076   --with-opengl           use OpenGL (or Mesa)
1077   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1078   --with-regex            enable support for wxRegEx class
1079   --with-zlib             use zlib for LZW compression
1080   --with-odbc             use the IODBC and wxODBC classes
1081   --with-expat            enable XML support using expat parser
1082   --with-flavour=NAME     specify a name to identify this build
1083   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1084   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1085   --with-x                use the X Window System
1086   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1087   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1088   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1089   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1090   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1091
1092 Some influential environment variables:
1093   CC          C compiler command
1094   CFLAGS      C compiler flags
1095   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1096               nonstandard directory <lib dir>
1097   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1098               headers in a nonstandard directory <include dir>
1099   CPP         C preprocessor
1100   CXX         C++ compiler command
1101   CXXFLAGS    C++ compiler flags
1102   CXXCPP      C++ preprocessor
1103
1104 Use these variables to override the choices made by `configure' or to help
1105 it to find libraries and programs with nonstandard names/locations.
1106
1107 Report bugs to <wx-dev@lists.wxwidgets.org>.
1108 _ACEOF
1109 fi
1110
1111 if test "$ac_init_help" = "recursive"; then
1112   # If there are subdirs, report their specific --help.
1113   ac_popdir=`pwd`
1114   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1115     test -d $ac_dir || continue
1116     ac_builddir=.
1117
1118 if test "$ac_dir" != .; then
1119   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1120   # A "../" for each directory in $ac_dir_suffix.
1121   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1122 else
1123   ac_dir_suffix= ac_top_builddir=
1124 fi
1125
1126 case $srcdir in
1127   .)  # No --srcdir option.  We are building in place.
1128     ac_srcdir=.
1129     if test -z "$ac_top_builddir"; then
1130        ac_top_srcdir=.
1131     else
1132        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1133     fi ;;
1134   [\\/]* | ?:[\\/]* )  # Absolute path.
1135     ac_srcdir=$srcdir$ac_dir_suffix;
1136     ac_top_srcdir=$srcdir ;;
1137   *) # Relative path.
1138     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1139     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1140 esac
1141
1142 # Do not use `cd foo && pwd` to compute absolute paths, because
1143 # the directories may not exist.
1144 case `pwd` in
1145 .) ac_abs_builddir="$ac_dir";;
1146 *)
1147   case "$ac_dir" in
1148   .) ac_abs_builddir=`pwd`;;
1149   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1150   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1151   esac;;
1152 esac
1153 case $ac_abs_builddir in
1154 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1155 *)
1156   case ${ac_top_builddir}. in
1157   .) ac_abs_top_builddir=$ac_abs_builddir;;
1158   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1159   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1160   esac;;
1161 esac
1162 case $ac_abs_builddir in
1163 .) ac_abs_srcdir=$ac_srcdir;;
1164 *)
1165   case $ac_srcdir in
1166   .) ac_abs_srcdir=$ac_abs_builddir;;
1167   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1168   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1169   esac;;
1170 esac
1171 case $ac_abs_builddir in
1172 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1173 *)
1174   case $ac_top_srcdir in
1175   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1176   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1177   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1178   esac;;
1179 esac
1180
1181     cd $ac_dir
1182     # Check for guested configure; otherwise get Cygnus style configure.
1183     if test -f $ac_srcdir/configure.gnu; then
1184       echo
1185       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1186     elif test -f $ac_srcdir/configure; then
1187       echo
1188       $SHELL $ac_srcdir/configure  --help=recursive
1189     elif test -f $ac_srcdir/configure.ac ||
1190            test -f $ac_srcdir/configure.in; then
1191       echo
1192       $ac_configure --help
1193     else
1194       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1195     fi
1196     cd "$ac_popdir"
1197   done
1198 fi
1199
1200 test -n "$ac_init_help" && exit 0
1201 if $ac_init_version; then
1202   cat <<\_ACEOF
1203 wxWidgets configure 2.7.0
1204 generated by GNU Autoconf 2.59
1205
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1209 _ACEOF
1210   exit 0
1211 fi
1212 exec 5>config.log
1213 cat >&5 <<_ACEOF
1214 This file contains any messages produced by compilers while
1215 running configure, to aid debugging if configure makes a mistake.
1216
1217 It was created by wxWidgets $as_me 2.7.0, which was
1218 generated by GNU Autoconf 2.59.  Invocation command line was
1219
1220   $ $0 $@
1221
1222 _ACEOF
1223 {
1224 cat <<_ASUNAME
1225 ## --------- ##
1226 ## Platform. ##
1227 ## --------- ##
1228
1229 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1230 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1231 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1232 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1233 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1234
1235 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1236 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1237
1238 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1239 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1240 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1241 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1242 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1243 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1244 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1245
1246 _ASUNAME
1247
1248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249 for as_dir in $PATH
1250 do
1251   IFS=$as_save_IFS
1252   test -z "$as_dir" && as_dir=.
1253   echo "PATH: $as_dir"
1254 done
1255
1256 } >&5
1257
1258 cat >&5 <<_ACEOF
1259
1260
1261 ## ----------- ##
1262 ## Core tests. ##
1263 ## ----------- ##
1264
1265 _ACEOF
1266
1267
1268 # Keep a trace of the command line.
1269 # Strip out --no-create and --no-recursion so they do not pile up.
1270 # Strip out --silent because we don't want to record it for future runs.
1271 # Also quote any args containing shell meta-characters.
1272 # Make two passes to allow for proper duplicate-argument suppression.
1273 ac_configure_args=
1274 ac_configure_args0=
1275 ac_configure_args1=
1276 ac_sep=
1277 ac_must_keep_next=false
1278 for ac_pass in 1 2
1279 do
1280   for ac_arg
1281   do
1282     case $ac_arg in
1283     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1284     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285     | -silent | --silent | --silen | --sile | --sil)
1286       continue ;;
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     esac
1290     case $ac_pass in
1291     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1292     2)
1293       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1294       if test $ac_must_keep_next = true; then
1295         ac_must_keep_next=false # Got value, back to normal.
1296       else
1297         case $ac_arg in
1298           *=* | --config-cache | -C | -disable-* | --disable-* \
1299           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1300           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1301           | -with-* | --with-* | -without-* | --without-* | --x)
1302             case "$ac_configure_args0 " in
1303               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1304             esac
1305             ;;
1306           -* ) ac_must_keep_next=true ;;
1307         esac
1308       fi
1309       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1310       # Get rid of the leading space.
1311       ac_sep=" "
1312       ;;
1313     esac
1314   done
1315 done
1316 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1317 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1318
1319 # When interrupted or exit'd, cleanup temporary files, and complete
1320 # config.log.  We remove comments because anyway the quotes in there
1321 # would cause problems or look ugly.
1322 # WARNING: Be sure not to use single quotes in there, as some shells,
1323 # such as our DU 5.0 friend, will then `close' the trap.
1324 trap 'exit_status=$?
1325   # Save into config.log some information that might help in debugging.
1326   {
1327     echo
1328
1329     cat <<\_ASBOX
1330 ## ---------------- ##
1331 ## Cache variables. ##
1332 ## ---------------- ##
1333 _ASBOX
1334     echo
1335     # The following way of writing the cache mishandles newlines in values,
1336 {
1337   (set) 2>&1 |
1338     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1339     *ac_space=\ *)
1340       sed -n \
1341         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1343       ;;
1344     *)
1345       sed -n \
1346         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1347       ;;
1348     esac;
1349 }
1350     echo
1351
1352     cat <<\_ASBOX
1353 ## ----------------- ##
1354 ## Output variables. ##
1355 ## ----------------- ##
1356 _ASBOX
1357     echo
1358     for ac_var in $ac_subst_vars
1359     do
1360       eval ac_val=$`echo $ac_var`
1361       echo "$ac_var='"'"'$ac_val'"'"'"
1362     done | sort
1363     echo
1364
1365     if test -n "$ac_subst_files"; then
1366       cat <<\_ASBOX
1367 ## ------------- ##
1368 ## Output files. ##
1369 ## ------------- ##
1370 _ASBOX
1371       echo
1372       for ac_var in $ac_subst_files
1373       do
1374         eval ac_val=$`echo $ac_var`
1375         echo "$ac_var='"'"'$ac_val'"'"'"
1376       done | sort
1377       echo
1378     fi
1379
1380     if test -s confdefs.h; then
1381       cat <<\_ASBOX
1382 ## ----------- ##
1383 ## confdefs.h. ##
1384 ## ----------- ##
1385 _ASBOX
1386       echo
1387       sed "/^$/d" confdefs.h | sort
1388       echo
1389     fi
1390     test "$ac_signal" != 0 &&
1391       echo "$as_me: caught signal $ac_signal"
1392     echo "$as_me: exit $exit_status"
1393   } >&5
1394   rm -f core *.core &&
1395   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1396     exit $exit_status
1397      ' 0
1398 for ac_signal in 1 2 13 15; do
1399   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1400 done
1401 ac_signal=0
1402
1403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1404 rm -rf conftest* confdefs.h
1405 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1406 echo >confdefs.h
1407
1408 # Predefined preprocessor variables.
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_NAME "$PACKAGE_NAME"
1412 _ACEOF
1413
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_STRING "$PACKAGE_STRING"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1432 _ACEOF
1433
1434
1435 # Let the site file select an alternate cache file if it wants to.
1436 # Prefer explicitly selected file to automatically selected ones.
1437 if test -z "$CONFIG_SITE"; then
1438   if test "x$prefix" != xNONE; then
1439     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1440   else
1441     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1442   fi
1443 fi
1444 for ac_site_file in $CONFIG_SITE; do
1445   if test -r "$ac_site_file"; then
1446     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1447 echo "$as_me: loading site script $ac_site_file" >&6;}
1448     sed 's/^/| /' "$ac_site_file" >&5
1449     . "$ac_site_file"
1450   fi
1451 done
1452
1453 if test -r "$cache_file"; then
1454   # Some versions of bash will fail to source /dev/null (special
1455   # files actually), so we avoid doing that.
1456   if test -f "$cache_file"; then
1457     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1458 echo "$as_me: loading cache $cache_file" >&6;}
1459     case $cache_file in
1460       [\\/]* | ?:[\\/]* ) . $cache_file;;
1461       *)                      . ./$cache_file;;
1462     esac
1463   fi
1464 else
1465   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1466 echo "$as_me: creating cache $cache_file" >&6;}
1467   >$cache_file
1468 fi
1469
1470 # Check that the precious variables saved in the cache have kept the same
1471 # value.
1472 ac_cache_corrupted=false
1473 for ac_var in `(set) 2>&1 |
1474                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1475   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1476   eval ac_new_set=\$ac_env_${ac_var}_set
1477   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1478   eval ac_new_val="\$ac_env_${ac_var}_value"
1479   case $ac_old_set,$ac_new_set in
1480     set,)
1481       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1482 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1483       ac_cache_corrupted=: ;;
1484     ,set)
1485       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1486 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1487       ac_cache_corrupted=: ;;
1488     ,);;
1489     *)
1490       if test "x$ac_old_val" != "x$ac_new_val"; then
1491         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1492 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1493         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1494 echo "$as_me:   former value:  $ac_old_val" >&2;}
1495         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1496 echo "$as_me:   current value: $ac_new_val" >&2;}
1497         ac_cache_corrupted=:
1498       fi;;
1499   esac
1500   # Pass precious variables to config.status.
1501   if test "$ac_new_set" = set; then
1502     case $ac_new_val in
1503     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1504       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1505     *) ac_arg=$ac_var=$ac_new_val ;;
1506     esac
1507     case " $ac_configure_args " in
1508       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1509       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1510     esac
1511   fi
1512 done
1513 if $ac_cache_corrupted; then
1514   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1515 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1516   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1517 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1518    { (exit 1); exit 1; }; }
1519 fi
1520
1521 ac_ext=c
1522 ac_cpp='$CPP $CPPFLAGS'
1523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556 ac_aux_dir=
1557 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1558   if 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/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 # Make sure we can run config.sub.
1582 $ac_config_sub sun4 >/dev/null 2>&1 ||
1583   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1584 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1585    { (exit 1); exit 1; }; }
1586
1587 echo "$as_me:$LINENO: checking build system type" >&5
1588 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1589 if test "${ac_cv_build+set}" = set; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   ac_cv_build_alias=$build_alias
1593 test -z "$ac_cv_build_alias" &&
1594   ac_cv_build_alias=`$ac_config_guess`
1595 test -z "$ac_cv_build_alias" &&
1596   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1597 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1598    { (exit 1); exit 1; }; }
1599 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1600   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1601 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1602    { (exit 1); exit 1; }; }
1603
1604 fi
1605 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1606 echo "${ECHO_T}$ac_cv_build" >&6
1607 build=$ac_cv_build
1608 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611
1612
1613 echo "$as_me:$LINENO: checking host system type" >&5
1614 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1615 if test "${ac_cv_host+set}" = set; then
1616   echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618   ac_cv_host_alias=$host_alias
1619 test -z "$ac_cv_host_alias" &&
1620   ac_cv_host_alias=$ac_cv_build_alias
1621 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1622   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1623 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1624    { (exit 1); exit 1; }; }
1625
1626 fi
1627 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1628 echo "${ECHO_T}$ac_cv_host" >&6
1629 host=$ac_cv_host
1630 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633
1634
1635 echo "$as_me:$LINENO: checking target system type" >&5
1636 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1637 if test "${ac_cv_target+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   ac_cv_target_alias=$target_alias
1641 test "x$ac_cv_target_alias" = "x" &&
1642   ac_cv_target_alias=$ac_cv_host_alias
1643 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1644   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1645 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1646    { (exit 1); exit 1; }; }
1647
1648 fi
1649 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1650 echo "${ECHO_T}$ac_cv_target" >&6
1651 target=$ac_cv_target
1652 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1653 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1654 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1655
1656
1657 # The aliases save the names the user supplied, while $host etc.
1658 # will get canonicalized.
1659 test -n "$target_alias" &&
1660   test "$program_prefix$program_suffix$program_transform_name" = \
1661     NONENONEs,x,x, &&
1662   program_prefix=${target_alias}-
1663
1664
1665
1666 wx_major_version_number=2
1667 wx_minor_version_number=7
1668 wx_release_number=0
1669 wx_subrelease_number=0
1670
1671 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1672 WX_VERSION=$WX_RELEASE.$wx_release_number
1673 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1674
1675 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1676
1677
1678
1679
1680 USE_UNIX=1
1681 USE_OS2=0
1682 USE_WIN32=0
1683 USE_DOS=0
1684 USE_BEOS=0
1685 USE_MAC=0
1686
1687 USE_AIX=
1688 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1689 USE_GNU=                            USE_HPUX=
1690 USE_LINUX=
1691 USE_NETBSD=
1692 USE_OPENBSD=
1693 USE_OSF=                            USE_SGI=
1694 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1695 USE_ULTRIX=
1696 USE_UNIXWARE=
1697
1698 USE_ALPHA=
1699
1700 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1701
1702 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1703
1704 DEFAULT_wxUSE_COCOA=0
1705 DEFAULT_wxUSE_GTK=0
1706 DEFAULT_wxUSE_MAC=0
1707 DEFAULT_wxUSE_MGL=0
1708 DEFAULT_wxUSE_MICROWIN=0
1709 DEFAULT_wxUSE_MOTIF=0
1710 DEFAULT_wxUSE_MSW=0
1711 DEFAULT_wxUSE_PM=0
1712 DEFAULT_wxUSE_X11=0
1713
1714 DEFAULT_DEFAULT_wxUSE_COCOA=0
1715 DEFAULT_DEFAULT_wxUSE_GTK=0
1716 DEFAULT_DEFAULT_wxUSE_MAC=0
1717 DEFAULT_DEFAULT_wxUSE_MGL=0
1718 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1719 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1720 DEFAULT_DEFAULT_wxUSE_MSW=0
1721 DEFAULT_DEFAULT_wxUSE_PM=0
1722 DEFAULT_DEFAULT_wxUSE_X11=0
1723
1724 PROGRAM_EXT=
1725 SO_SUFFIX=so
1726 SAMPLES_RPATH_FLAG=
1727 SAMPLES_RPATH_POSTLINK=
1728
1729 DEFAULT_STD_FLAG=yes
1730
1731 case "${host}" in
1732   *-hp-hpux* )
1733     USE_HPUX=1
1734     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1735     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1736     SO_SUFFIX=sl
1737     cat >>confdefs.h <<\_ACEOF
1738 #define __HPUX__ 1
1739 _ACEOF
1740
1741
1742             CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
1743   ;;
1744   *-*-linux* )
1745     USE_LINUX=1
1746     cat >>confdefs.h <<\_ACEOF
1747 #define __LINUX__ 1
1748 _ACEOF
1749
1750     TMP=`uname -m`
1751     if test "x$TMP" = "xalpha"; then
1752       USE_ALPHA=1
1753       cat >>confdefs.h <<\_ACEOF
1754 #define __ALPHA__ 1
1755 _ACEOF
1756
1757     fi
1758     DEFAULT_DEFAULT_wxUSE_GTK=1
1759   ;;
1760   *-*-gnu* | *-*-k*bsd*-gnu )
1761     USE_GNU=1
1762     TMP=`uname -m`
1763     if test "x$TMP" = "xalpha"; then
1764       USE_ALPHA=1
1765       cat >>confdefs.h <<\_ACEOF
1766 #define __ALPHA__ 1
1767 _ACEOF
1768
1769     fi
1770     DEFAULT_DEFAULT_wxUSE_GTK=1
1771   ;;
1772   *-*-irix5* | *-*-irix6* )
1773     USE_SGI=1
1774     USE_SVR4=1
1775     cat >>confdefs.h <<\_ACEOF
1776 #define __SGI__ 1
1777 _ACEOF
1778
1779     cat >>confdefs.h <<\_ACEOF
1780 #define __SVR4__ 1
1781 _ACEOF
1782
1783     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1784   ;;
1785   *-*-solaris2* )
1786     USE_SUN=1
1787     USE_SOLARIS=1
1788     USE_SVR4=1
1789     cat >>confdefs.h <<\_ACEOF
1790 #define __SUN__ 1
1791 _ACEOF
1792
1793     cat >>confdefs.h <<\_ACEOF
1794 #define __SOLARIS__ 1
1795 _ACEOF
1796
1797     cat >>confdefs.h <<\_ACEOF
1798 #define __SVR4__ 1
1799 _ACEOF
1800
1801     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1802     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1803   ;;
1804   *-*-sunos4* )
1805     USE_SUN=1
1806     USE_SUNOS=1
1807     USE_BSD=1
1808     cat >>confdefs.h <<\_ACEOF
1809 #define __SUN__ 1
1810 _ACEOF
1811
1812     cat >>confdefs.h <<\_ACEOF
1813 #define __SUNOS__ 1
1814 _ACEOF
1815
1816     cat >>confdefs.h <<\_ACEOF
1817 #define __BSD__ 1
1818 _ACEOF
1819
1820     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1821   ;;
1822   *-*-freebsd*)
1823     USE_BSD=1
1824     USE_FREEBSD=1
1825     cat >>confdefs.h <<\_ACEOF
1826 #define __FREEBSD__ 1
1827 _ACEOF
1828
1829     cat >>confdefs.h <<\_ACEOF
1830 #define __BSD__ 1
1831 _ACEOF
1832
1833     DEFAULT_DEFAULT_wxUSE_GTK=1
1834   ;;
1835   *-*-openbsd*)
1836     USE_BSD=1
1837     USE_OPENBSD=1
1838     cat >>confdefs.h <<\_ACEOF
1839 #define __OPENBSD__ 1
1840 _ACEOF
1841
1842     cat >>confdefs.h <<\_ACEOF
1843 #define __BSD__ 1
1844 _ACEOF
1845
1846     DEFAULT_DEFAULT_wxUSE_GTK=1
1847   ;;
1848   *-*-netbsd*)
1849     USE_BSD=1
1850     USE_NETBSD=1
1851     cat >>confdefs.h <<\_ACEOF
1852 #define __NETBSD__ 1
1853 _ACEOF
1854
1855     cat >>confdefs.h <<\_ACEOF
1856 #define __BSD__ 1
1857 _ACEOF
1858
1859     DEFAULT_DEFAULT_wxUSE_GTK=1
1860   ;;
1861   *-*-osf* )
1862     USE_ALPHA=1
1863     USE_OSF=1
1864     cat >>confdefs.h <<\_ACEOF
1865 #define __ALPHA__ 1
1866 _ACEOF
1867
1868     cat >>confdefs.h <<\_ACEOF
1869 #define __OSF__ 1
1870 _ACEOF
1871
1872     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1873     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1874   ;;
1875   *-*-dgux5* )
1876     USE_ALPHA=1
1877     USE_SVR4=1
1878     cat >>confdefs.h <<\_ACEOF
1879 #define __ALPHA__ 1
1880 _ACEOF
1881
1882     cat >>confdefs.h <<\_ACEOF
1883 #define __SVR4__ 1
1884 _ACEOF
1885
1886     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887   ;;
1888   *-*-sysv5* )
1889     USE_SYSV=1
1890     USE_SVR4=1
1891     cat >>confdefs.h <<\_ACEOF
1892 #define __SYSV__ 1
1893 _ACEOF
1894
1895     cat >>confdefs.h <<\_ACEOF
1896 #define __SVR4__ 1
1897 _ACEOF
1898
1899     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1900   ;;
1901   *-*-aix* )
1902     USE_AIX=1
1903     USE_SYSV=1
1904     USE_SVR4=1
1905                         SO_SUFFIX=a
1906     cat >>confdefs.h <<\_ACEOF
1907 #define __AIX__ 1
1908 _ACEOF
1909
1910     cat >>confdefs.h <<\_ACEOF
1911 #define __SYSV__ 1
1912 _ACEOF
1913
1914     cat >>confdefs.h <<\_ACEOF
1915 #define __SVR4__ 1
1916 _ACEOF
1917
1918     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1919   ;;
1920
1921   *-*-*UnixWare*)
1922     USE_SYSV=1
1923     USE_SVR4=1
1924     USE_UNIXWARE=1
1925     cat >>confdefs.h <<\_ACEOF
1926 #define __UNIXWARE__ 1
1927 _ACEOF
1928
1929   ;;
1930
1931   *-*-cygwin* | *-*-mingw32* )
1932                 SO_SUFFIX=dll
1933     PROGRAM_EXT=".exe"
1934     DEFAULT_DEFAULT_wxUSE_MSW=1
1935     DEFAULT_STD_FLAG=no
1936   ;;
1937
1938   *-pc-msdosdjgpp )
1939     USE_UNIX=0
1940     USE_DOS=1
1941     cat >>confdefs.h <<\_ACEOF
1942 #define __DOS__ 1
1943 _ACEOF
1944
1945     PROGRAM_EXT=".exe"
1946     DEFAULT_DEFAULT_wxUSE_MGL=1
1947   ;;
1948
1949   *-pc-os2_emx | *-pc-os2-emx )
1950     cat >>confdefs.h <<\_ACEOF
1951 #define __EMX__ 1
1952 _ACEOF
1953
1954     USE_OS2=1
1955     cat >>confdefs.h <<\_ACEOF
1956 #define __OS2__ 1
1957 _ACEOF
1958
1959     PROGRAM_EXT=".exe"
1960     DEFAULT_DEFAULT_wxUSE_PM=1
1961         CXX=gcc
1962     LDFLAGS="$LDFLAGS -Zcrtdll"
1963                         ac_executable_extensions=".exe"
1964     export ac_executable_extensions
1965             ac_save_IFS="$IFS"
1966     IFS='\\'
1967     ac_TEMP_PATH=
1968     for ac_dir in $PATH; do
1969       IFS=$ac_save_IFS
1970       if test -z "$ac_TEMP_PATH"; then
1971         ac_TEMP_PATH="$ac_dir"
1972       else
1973         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1974       fi
1975     done
1976     export PATH="$ac_TEMP_PATH"
1977     unset ac_TEMP_PATH
1978     DEFAULT_STD_FLAG=no
1979   ;;
1980
1981   *-*-darwin* )
1982         USE_BSD=1
1983     USE_DARWIN=1
1984     SO_SUFFIX=dylib
1985     cat >>confdefs.h <<\_ACEOF
1986 #define __BSD__ 1
1987 _ACEOF
1988
1989     cat >>confdefs.h <<\_ACEOF
1990 #define __DARWIN__ 1
1991 _ACEOF
1992
1993     cat >>confdefs.h <<\_ACEOF
1994 #define TARGET_CARBON 1
1995 _ACEOF
1996
1997     DEFAULT_DEFAULT_wxUSE_MAC=1
1998     DEFAULT_STD_FLAG=no
1999   ;;
2000   powerpc-apple-macos* )
2001         USE_UNIX=0
2002             ac_cv_c_bigendian=yes
2003     SO_SUFFIX=shlib
2004             DEFAULT_DEFAULT_wxUSE_MAC=1
2005     DEFAULT_STD_FLAG=no
2006   ;;
2007
2008   *-*-beos* )
2009         USE_BEOS=1
2010     cat >>confdefs.h <<\_ACEOF
2011 #define __BEOS__ 1
2012 _ACEOF
2013
2014   ;;
2015
2016   *)
2017     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2018 echo "$as_me: error: unknown system type ${host}." >&2;}
2019    { (exit 1); exit 1; }; }
2020 esac
2021
2022
2023
2024
2025           wx_arg_cache_file="configarg.cache"
2026           echo "loading argument cache $wx_arg_cache_file"
2027           rm -f ${wx_arg_cache_file}.tmp
2028           touch ${wx_arg_cache_file}.tmp
2029           touch ${wx_arg_cache_file}
2030
2031
2032 DEBUG_CONFIGURE=0
2033 if test $DEBUG_CONFIGURE = 1; then
2034   DEFAULT_wxUSE_UNIVERSAL=no
2035   DEFAULT_wxUSE_STL=no
2036
2037   DEFAULT_wxUSE_NANOX=no
2038
2039   DEFAULT_wxUSE_THREADS=yes
2040
2041   DEFAULT_wxUSE_SHARED=yes
2042   DEFAULT_wxUSE_OPTIMISE=no
2043   DEFAULT_wxUSE_PROFILE=no
2044   DEFAULT_wxUSE_NO_DEPS=no
2045   DEFAULT_wxUSE_NO_RTTI=no
2046   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2047   DEFAULT_wxUSE_RPATH=yes
2048   DEFAULT_wxUSE_PERMISSIVE=no
2049   DEFAULT_wxUSE_DEBUG_FLAG=yes
2050   DEFAULT_wxUSE_DEBUG_INFO=yes
2051   DEFAULT_wxUSE_DEBUG_GDB=yes
2052   DEFAULT_wxUSE_MEM_TRACING=no
2053   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2054   DEFAULT_wxUSE_DMALLOC=no
2055   DEFAULT_wxUSE_APPLE_IEEE=no
2056
2057   DEFAULT_wxUSE_EXCEPTIONS=no
2058   DEFAULT_wxUSE_LOG=yes
2059   DEFAULT_wxUSE_LOGWINDOW=no
2060   DEFAULT_wxUSE_LOGGUI=no
2061   DEFAULT_wxUSE_LOGDIALOG=no
2062
2063   DEFAULT_wxUSE_GUI=yes
2064   DEFAULT_wxUSE_CONTROLS=no
2065
2066   DEFAULT_wxUSE_REGEX=no
2067   DEFAULT_wxUSE_XML=no
2068   DEFAULT_wxUSE_EXPAT=no
2069   DEFAULT_wxUSE_ZLIB=no
2070   DEFAULT_wxUSE_LIBPNG=no
2071   DEFAULT_wxUSE_LIBJPEG=no
2072   DEFAULT_wxUSE_LIBTIFF=no
2073   DEFAULT_wxUSE_LIBXPM=no
2074   DEFAULT_wxUSE_LIBMSPACK=no
2075   DEFAULT_wxUSE_LIBSDL=no
2076   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2077   DEFAULT_wxUSE_ODBC=no
2078   DEFAULT_wxUSE_OPENGL=no
2079
2080   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2081   DEFAULT_wxUSE_STACKWALKER=no
2082   DEFAULT_wxUSE_DEBUGREPORT=no
2083   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2084   DEFAULT_wxUSE_STD_IOSTREAM=no
2085   DEFAULT_wxUSE_STD_STRING=no
2086   DEFAULT_wxUSE_CMDLINE_PARSER=no
2087   DEFAULT_wxUSE_DATETIME=no
2088   DEFAULT_wxUSE_TIMER=no
2089   DEFAULT_wxUSE_STOPWATCH=no
2090   DEFAULT_wxUSE_FILE=no
2091   DEFAULT_wxUSE_FFILE=no
2092   DEFAULT_wxUSE_STDPATHS=no
2093   DEFAULT_wxUSE_TEXTBUFFER=no
2094   DEFAULT_wxUSE_TEXTFILE=no
2095   DEFAULT_wxUSE_SOUND=no
2096   DEFAULT_wxUSE_MEDIACTRL=no
2097   DEFAULT_wxUSE_INTL=no
2098   DEFAULT_wxUSE_CONFIG=no
2099   DEFAULT_wxUSE_FONTMAP=no
2100   DEFAULT_wxUSE_STREAMS=no
2101   DEFAULT_wxUSE_SOCKETS=no
2102   DEFAULT_wxUSE_OLE=no
2103   DEFAULT_wxUSE_DATAOBJ=no
2104   DEFAULT_wxUSE_DIALUP_MANAGER=no
2105   DEFAULT_wxUSE_JOYSTICK=no
2106   DEFAULT_wxUSE_DYNLIB_CLASS=no
2107   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2108   DEFAULT_wxUSE_LONGLONG=no
2109   DEFAULT_wxUSE_GEOMETRY=no
2110
2111   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2112   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2113   DEFAULT_wxUSE_POSTSCRIPT=no
2114
2115   DEFAULT_wxUSE_CLIPBOARD=no
2116   DEFAULT_wxUSE_TOOLTIPS=no
2117   DEFAULT_wxUSE_DRAG_AND_DROP=no
2118   DEFAULT_wxUSE_DRAGIMAGE=no
2119   DEFAULT_wxUSE_SPLINES=no
2120   DEFAULT_wxUSE_MOUSEWHEEL=no
2121
2122   DEFAULT_wxUSE_MDI=no
2123   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2124   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2125   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2126
2127   DEFAULT_wxUSE_RESOURCES=no
2128   DEFAULT_wxUSE_CONSTRAINTS=no
2129   DEFAULT_wxUSE_IPC=no
2130   DEFAULT_wxUSE_HELP=no
2131   DEFAULT_wxUSE_MS_HTML_HELP=no
2132   DEFAULT_wxUSE_WXHTML_HELP=no
2133   DEFAULT_wxUSE_TREELAYOUT=no
2134   DEFAULT_wxUSE_METAFILE=no
2135   DEFAULT_wxUSE_MIMETYPE=no
2136   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2137   DEFAULT_wxUSE_PROTOCOL=no
2138   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2139   DEFAULT_wxUSE_PROTOCOL_FTP=no
2140   DEFAULT_wxUSE_PROTOCOL_FILE=no
2141   DEFAULT_wxUSE_URL=no
2142
2143   DEFAULT_wxUSE_COMMONDLGS=no
2144   DEFAULT_wxUSE_CHOICEDLG=no
2145   DEFAULT_wxUSE_COLOURDLG=no
2146   DEFAULT_wxUSE_DIRDLG=no
2147   DEFAULT_wxUSE_FILEDLG=no
2148   DEFAULT_wxUSE_FINDREPLDLG=no
2149   DEFAULT_wxUSE_FONTDLG=no
2150   DEFAULT_wxUSE_MSGDLG=no
2151   DEFAULT_wxUSE_NUMBERDLG=no
2152   DEFAULT_wxUSE_TEXTDLG=no
2153   DEFAULT_wxUSE_SPLASH=no
2154   DEFAULT_wxUSE_STARTUP_TIPS=no
2155   DEFAULT_wxUSE_PROGRESSDLG=no
2156   DEFAULT_wxUSE_WIZARDDLG=no
2157
2158   DEFAULT_wxUSE_MENUS=no
2159   DEFAULT_wxUSE_MINIFRAME=no
2160   DEFAULT_wxUSE_HTML=no
2161   DEFAULT_wxUSE_XRC=no
2162   DEFAULT_wxUSE_WEBKIT=no
2163   DEFAULT_wxUSE_FILESYSTEM=no
2164   DEFAULT_wxUSE_FS_INET=no
2165   DEFAULT_wxUSE_FS_ZIP=no
2166   DEFAULT_wxUSE_BUSYINFO=no
2167   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2168   DEFAULT_wxUSE_ZIPSTREAM=no
2169   DEFAULT_wxUSE_VALIDATORS=no
2170
2171   DEFAULT_wxUSE_ACCEL=no
2172   DEFAULT_wxUSE_BUTTON=no
2173   DEFAULT_wxUSE_BMPBUTTON=no
2174   DEFAULT_wxUSE_CALCTRL=no
2175   DEFAULT_wxUSE_CARET=no
2176   DEFAULT_wxUSE_CHECKBOX=no
2177   DEFAULT_wxUSE_CHECKLST=no
2178   DEFAULT_wxUSE_CHOICE=no
2179   DEFAULT_wxUSE_CHOICEBOOK=no
2180   DEFAULT_wxUSE_COMBOBOX=no
2181   DEFAULT_wxUSE_DATEPICKCTRL=no
2182   DEFAULT_wxUSE_DISPLAY=no
2183   DEFAULT_wxUSE_GAUGE=no
2184   DEFAULT_wxUSE_GRID=no
2185   DEFAULT_wxUSE_IMAGLIST=no
2186   DEFAULT_wxUSE_LISTBOOK=no
2187   DEFAULT_wxUSE_LISTBOX=no
2188   DEFAULT_wxUSE_LISTCTRL=no
2189   DEFAULT_wxUSE_NOTEBOOK=no
2190   DEFAULT_wxUSE_RADIOBOX=no
2191   DEFAULT_wxUSE_RADIOBTN=no
2192   DEFAULT_wxUSE_SASH=no
2193   DEFAULT_wxUSE_SCROLLBAR=no
2194   DEFAULT_wxUSE_SLIDER=no
2195   DEFAULT_wxUSE_SPINBTN=no
2196   DEFAULT_wxUSE_SPINCTRL=no
2197   DEFAULT_wxUSE_SPLITTER=no
2198   DEFAULT_wxUSE_STATBMP=no
2199   DEFAULT_wxUSE_STATBOX=no
2200   DEFAULT_wxUSE_STATLINE=no
2201   DEFAULT_wxUSE_STATTEXT=no
2202   DEFAULT_wxUSE_STATUSBAR=yes
2203   DEFAULT_wxUSE_TABDIALOG=no
2204   DEFAULT_wxUSE_TEXTCTRL=no
2205   DEFAULT_wxUSE_TOGGLEBTN=no
2206   DEFAULT_wxUSE_TOOLBAR=no
2207   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2208   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2209   DEFAULT_wxUSE_TREEBOOK=no
2210   DEFAULT_wxUSE_TREECTRL=no
2211   DEFAULT_wxUSE_POPUPWIN=no
2212   DEFAULT_wxUSE_TIPWINDOW=no
2213
2214   DEFAULT_wxUSE_UNICODE=no
2215   DEFAULT_wxUSE_UNICODE_MSLU=no
2216   DEFAULT_wxUSE_WCSRTOMBS=no
2217
2218   DEFAULT_wxUSE_PALETTE=no
2219   DEFAULT_wxUSE_IMAGE=no
2220   DEFAULT_wxUSE_GIF=no
2221   DEFAULT_wxUSE_PCX=no
2222   DEFAULT_wxUSE_PNM=no
2223   DEFAULT_wxUSE_IFF=no
2224   DEFAULT_wxUSE_XPM=no
2225   DEFAULT_wxUSE_ICO_CUR=no
2226   DEFAULT_wxUSE_ACCESSIBILITY=no
2227
2228   DEFAULT_wxUSE_MONOLITHIC=no
2229   DEFAULT_wxUSE_PLUGINS=no
2230   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2231 else
2232   DEFAULT_wxUSE_UNIVERSAL=no
2233   DEFAULT_wxUSE_STL=no
2234
2235   DEFAULT_wxUSE_NANOX=no
2236
2237   DEFAULT_wxUSE_THREADS=yes
2238
2239   DEFAULT_wxUSE_SHARED=yes
2240   DEFAULT_wxUSE_OPTIMISE=yes
2241   DEFAULT_wxUSE_PROFILE=no
2242   DEFAULT_wxUSE_NO_DEPS=no
2243   DEFAULT_wxUSE_NO_RTTI=no
2244   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2245   DEFAULT_wxUSE_RPATH=yes
2246   DEFAULT_wxUSE_PERMISSIVE=no
2247   DEFAULT_wxUSE_DEBUG_FLAG=no
2248   DEFAULT_wxUSE_DEBUG_INFO=no
2249   DEFAULT_wxUSE_DEBUG_GDB=no
2250   DEFAULT_wxUSE_MEM_TRACING=no
2251   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2252   DEFAULT_wxUSE_DMALLOC=no
2253   DEFAULT_wxUSE_APPLE_IEEE=yes
2254
2255   DEFAULT_wxUSE_EXCEPTIONS=yes
2256   DEFAULT_wxUSE_LOG=yes
2257   DEFAULT_wxUSE_LOGWINDOW=yes
2258   DEFAULT_wxUSE_LOGGUI=yes
2259   DEFAULT_wxUSE_LOGDIALOG=yes
2260
2261   DEFAULT_wxUSE_GUI=yes
2262
2263   DEFAULT_wxUSE_REGEX=yes
2264   DEFAULT_wxUSE_XML=yes
2265   DEFAULT_wxUSE_EXPAT=yes
2266   DEFAULT_wxUSE_ZLIB=yes
2267   DEFAULT_wxUSE_LIBPNG=yes
2268   DEFAULT_wxUSE_LIBJPEG=yes
2269   DEFAULT_wxUSE_LIBTIFF=yes
2270   DEFAULT_wxUSE_LIBXPM=yes
2271   DEFAULT_wxUSE_LIBMSPACK=yes
2272   DEFAULT_wxUSE_LIBSDL=no
2273   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2274   DEFAULT_wxUSE_ODBC=no
2275   DEFAULT_wxUSE_OPENGL=no
2276
2277   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2278   DEFAULT_wxUSE_STACKWALKER=yes
2279   DEFAULT_wxUSE_DEBUGREPORT=yes
2280   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2281   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2282   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2283   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2284   DEFAULT_wxUSE_DATETIME=yes
2285   DEFAULT_wxUSE_TIMER=yes
2286   DEFAULT_wxUSE_STOPWATCH=yes
2287   DEFAULT_wxUSE_FILE=yes
2288   DEFAULT_wxUSE_FFILE=yes
2289   DEFAULT_wxUSE_STDPATHS=yes
2290   DEFAULT_wxUSE_TEXTBUFFER=yes
2291   DEFAULT_wxUSE_TEXTFILE=yes
2292   DEFAULT_wxUSE_SOUND=yes
2293   DEFAULT_wxUSE_MEDIACTRL=no
2294   DEFAULT_wxUSE_INTL=yes
2295   DEFAULT_wxUSE_CONFIG=yes
2296   DEFAULT_wxUSE_FONTMAP=yes
2297   DEFAULT_wxUSE_STREAMS=yes
2298   DEFAULT_wxUSE_SOCKETS=yes
2299   DEFAULT_wxUSE_OLE=yes
2300   DEFAULT_wxUSE_DATAOBJ=yes
2301   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2302   DEFAULT_wxUSE_JOYSTICK=yes
2303   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2304   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2305   DEFAULT_wxUSE_LONGLONG=yes
2306   DEFAULT_wxUSE_GEOMETRY=yes
2307
2308   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2309   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2310   DEFAULT_wxUSE_POSTSCRIPT=yes
2311
2312   DEFAULT_wxUSE_CLIPBOARD=yes
2313   DEFAULT_wxUSE_TOOLTIPS=yes
2314   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2315   DEFAULT_wxUSE_DRAGIMAGE=yes
2316   DEFAULT_wxUSE_SPLINES=yes
2317   DEFAULT_wxUSE_MOUSEWHEEL=yes
2318
2319   DEFAULT_wxUSE_MDI=yes
2320   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2321   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2322   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2323
2324   DEFAULT_wxUSE_RESOURCES=no
2325   DEFAULT_wxUSE_CONSTRAINTS=yes
2326   DEFAULT_wxUSE_IPC=yes
2327   DEFAULT_wxUSE_HELP=yes
2328   DEFAULT_wxUSE_MS_HTML_HELP=yes
2329   DEFAULT_wxUSE_WXHTML_HELP=yes
2330   DEFAULT_wxUSE_TREELAYOUT=yes
2331   DEFAULT_wxUSE_METAFILE=yes
2332   DEFAULT_wxUSE_MIMETYPE=yes
2333   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2334   DEFAULT_wxUSE_PROTOCOL=yes
2335   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2336   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2337   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2338   DEFAULT_wxUSE_URL=yes
2339
2340   DEFAULT_wxUSE_COMMONDLGS=yes
2341   DEFAULT_wxUSE_CHOICEDLG=yes
2342   DEFAULT_wxUSE_COLOURDLG=yes
2343   DEFAULT_wxUSE_DIRDLG=yes
2344   DEFAULT_wxUSE_FILEDLG=yes
2345   DEFAULT_wxUSE_FINDREPLDLG=yes
2346   DEFAULT_wxUSE_FONTDLG=yes
2347   DEFAULT_wxUSE_MSGDLG=yes
2348   DEFAULT_wxUSE_NUMBERDLG=yes
2349   DEFAULT_wxUSE_TEXTDLG=yes
2350   DEFAULT_wxUSE_SPLASH=yes
2351   DEFAULT_wxUSE_STARTUP_TIPS=yes
2352   DEFAULT_wxUSE_PROGRESSDLG=yes
2353   DEFAULT_wxUSE_WIZARDDLG=yes
2354
2355   DEFAULT_wxUSE_MENUS=yes
2356   DEFAULT_wxUSE_MINIFRAME=yes
2357   DEFAULT_wxUSE_HTML=yes
2358   DEFAULT_wxUSE_XRC=yes
2359   DEFAULT_wxUSE_WEBKIT=yes
2360   DEFAULT_wxUSE_FILESYSTEM=yes
2361   DEFAULT_wxUSE_FS_INET=yes
2362   DEFAULT_wxUSE_FS_ZIP=yes
2363   DEFAULT_wxUSE_BUSYINFO=yes
2364   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2365   DEFAULT_wxUSE_ZIPSTREAM=yes
2366   DEFAULT_wxUSE_VALIDATORS=yes
2367
2368   DEFAULT_wxUSE_ACCEL=yes
2369   DEFAULT_wxUSE_BUTTON=yes
2370   DEFAULT_wxUSE_BMPBUTTON=yes
2371   DEFAULT_wxUSE_CALCTRL=yes
2372   DEFAULT_wxUSE_CARET=yes
2373   DEFAULT_wxUSE_CHECKBOX=yes
2374   DEFAULT_wxUSE_CHECKLST=yes
2375   DEFAULT_wxUSE_CHOICE=yes
2376   DEFAULT_wxUSE_CHOICEBOOK=yes
2377   DEFAULT_wxUSE_COMBOBOX=yes
2378   DEFAULT_wxUSE_DATEPICKCTRL=yes
2379   DEFAULT_wxUSE_DISPLAY=yes
2380   DEFAULT_wxUSE_GAUGE=yes
2381   DEFAULT_wxUSE_GRID=yes
2382   DEFAULT_wxUSE_IMAGLIST=yes
2383   DEFAULT_wxUSE_LISTBOOK=yes
2384   DEFAULT_wxUSE_LISTBOX=yes
2385   DEFAULT_wxUSE_LISTCTRL=yes
2386   DEFAULT_wxUSE_NOTEBOOK=yes
2387   DEFAULT_wxUSE_RADIOBOX=yes
2388   DEFAULT_wxUSE_RADIOBTN=yes
2389   DEFAULT_wxUSE_SASH=yes
2390   DEFAULT_wxUSE_SCROLLBAR=yes
2391   DEFAULT_wxUSE_SLIDER=yes
2392   DEFAULT_wxUSE_SPINBTN=yes
2393   DEFAULT_wxUSE_SPINCTRL=yes
2394   DEFAULT_wxUSE_SPLITTER=yes
2395   DEFAULT_wxUSE_STATBMP=yes
2396   DEFAULT_wxUSE_STATBOX=yes
2397   DEFAULT_wxUSE_STATLINE=yes
2398   DEFAULT_wxUSE_STATTEXT=yes
2399   DEFAULT_wxUSE_STATUSBAR=yes
2400   DEFAULT_wxUSE_TABDIALOG=no
2401   DEFAULT_wxUSE_TEXTCTRL=yes
2402   DEFAULT_wxUSE_TOGGLEBTN=yes
2403   DEFAULT_wxUSE_TOOLBAR=yes
2404   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2405   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2406   DEFAULT_wxUSE_TREEBOOK=yes
2407   DEFAULT_wxUSE_TREECTRL=yes
2408   DEFAULT_wxUSE_POPUPWIN=yes
2409   DEFAULT_wxUSE_TIPWINDOW=yes
2410
2411   DEFAULT_wxUSE_UNICODE=no
2412   DEFAULT_wxUSE_UNICODE_MSLU=yes
2413   DEFAULT_wxUSE_WCSRTOMBS=no
2414
2415   DEFAULT_wxUSE_PALETTE=yes
2416   DEFAULT_wxUSE_IMAGE=yes
2417   DEFAULT_wxUSE_GIF=yes
2418   DEFAULT_wxUSE_PCX=yes
2419   DEFAULT_wxUSE_IFF=no
2420   DEFAULT_wxUSE_PNM=yes
2421   DEFAULT_wxUSE_XPM=yes
2422   DEFAULT_wxUSE_ICO_CUR=yes
2423   DEFAULT_wxUSE_ACCESSIBILITY=no
2424
2425   DEFAULT_wxUSE_MONOLITHIC=no
2426   DEFAULT_wxUSE_PLUGINS=no
2427   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2428
2429     DEFAULT_wxUSE_GTK2=yes
2430 fi
2431
2432
2433
2434
2435 for toolkit in `echo $ALL_TOOLKITS`; do
2436   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2437   if test "x$LINE" != "x" ; then
2438     has_toolkit_in_cache=1
2439     eval "DEFAULT_$LINE"
2440     eval "CACHE_$toolkit=1"
2441
2442     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2443     if test "x$LINE" != "x" ; then
2444         eval "DEFAULT_$LINE"
2445     fi
2446   fi
2447 done
2448
2449
2450
2451           enablestring=
2452           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2453 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2454           no_cache=0
2455           # Check whether --enable-gui or --disable-gui was given.
2456 if test "${enable_gui+set}" = set; then
2457   enableval="$enable_gui"
2458
2459                           if test "$enableval" = yes; then
2460                             ac_cv_use_gui='wxUSE_GUI=yes'
2461                           else
2462                             ac_cv_use_gui='wxUSE_GUI=no'
2463                           fi
2464
2465 else
2466
2467                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2468                           if test "x$LINE" != x ; then
2469                             eval "DEFAULT_$LINE"
2470                           else
2471                             no_cache=1
2472                           fi
2473
2474                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2475
2476 fi;
2477
2478           eval "$ac_cv_use_gui"
2479           if test "$no_cache" != 1; then
2480             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2481           fi
2482
2483           if test "$wxUSE_GUI" = yes; then
2484             echo "$as_me:$LINENO: result: yes" >&5
2485 echo "${ECHO_T}yes" >&6
2486           else
2487             echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2489           fi
2490
2491
2492           enablestring=
2493           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2494 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2495           no_cache=0
2496           # Check whether --enable-monolithic or --disable-monolithic was given.
2497 if test "${enable_monolithic+set}" = set; then
2498   enableval="$enable_monolithic"
2499
2500                           if test "$enableval" = yes; then
2501                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2502                           else
2503                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2504                           fi
2505
2506 else
2507
2508                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2509                           if test "x$LINE" != x ; then
2510                             eval "DEFAULT_$LINE"
2511                           else
2512                             no_cache=1
2513                           fi
2514
2515                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2516
2517 fi;
2518
2519           eval "$ac_cv_use_monolithic"
2520           if test "$no_cache" != 1; then
2521             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2522           fi
2523
2524           if test "$wxUSE_MONOLITHIC" = yes; then
2525             echo "$as_me:$LINENO: result: yes" >&5
2526 echo "${ECHO_T}yes" >&6
2527           else
2528             echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6
2530           fi
2531
2532
2533           enablestring=
2534           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2535 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2536           no_cache=0
2537           # Check whether --enable-plugins or --disable-plugins was given.
2538 if test "${enable_plugins+set}" = set; then
2539   enableval="$enable_plugins"
2540
2541                           if test "$enableval" = yes; then
2542                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2543                           else
2544                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2545                           fi
2546
2547 else
2548
2549                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2550                           if test "x$LINE" != x ; then
2551                             eval "DEFAULT_$LINE"
2552                           else
2553                             no_cache=1
2554                           fi
2555
2556                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2557
2558 fi;
2559
2560           eval "$ac_cv_use_plugins"
2561           if test "$no_cache" != 1; then
2562             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2563           fi
2564
2565           if test "$wxUSE_PLUGINS" = yes; then
2566             echo "$as_me:$LINENO: result: yes" >&5
2567 echo "${ECHO_T}yes" >&6
2568           else
2569             echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6
2571           fi
2572
2573
2574           withstring=without
2575           echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2576 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2577           no_cache=0
2578
2579 # Check whether --with-subdirs or --without-subdirs was given.
2580 if test "${with_subdirs+set}" = set; then
2581   withval="$with_subdirs"
2582
2583                         if test "$withval" = yes; then
2584                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2585                         else
2586                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2587                         fi
2588
2589 else
2590
2591                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2592                         if test "x$LINE" != x ; then
2593                           eval "DEFAULT_$LINE"
2594                         else
2595                           no_cache=1
2596                         fi
2597
2598                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2599
2600 fi;
2601
2602           eval "$ac_cv_use_subdirs"
2603           if test "$no_cache" != 1; then
2604             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2605           fi
2606
2607           if test "$wxWITH_SUBDIRS" = yes; then
2608             echo "$as_me:$LINENO: result: yes" >&5
2609 echo "${ECHO_T}yes" >&6
2610           else
2611             echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2613           fi
2614
2615
2616 if test "$wxUSE_GUI" = "yes"; then
2617
2618
2619           enablestring=
2620           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2621 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2622           no_cache=0
2623           # Check whether --enable-universal or --disable-universal was given.
2624 if test "${enable_universal+set}" = set; then
2625   enableval="$enable_universal"
2626
2627                           if test "$enableval" = yes; then
2628                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2629                           else
2630                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2631                           fi
2632
2633 else
2634
2635                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2636                           if test "x$LINE" != x ; then
2637                             eval "DEFAULT_$LINE"
2638                           else
2639                             no_cache=1
2640                           fi
2641
2642                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2643
2644 fi;
2645
2646           eval "$ac_cv_use_universal"
2647           if test "$no_cache" != 1; then
2648             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2649           fi
2650
2651           if test "$wxUSE_UNIVERSAL" = yes; then
2652             echo "$as_me:$LINENO: result: yes" >&5
2653 echo "${ECHO_T}yes" >&6
2654           else
2655             echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2657           fi
2658
2659
2660 # Check whether --with-gtk or --without-gtk was given.
2661 if test "${with_gtk+set}" = set; then
2662   withval="$with_gtk"
2663   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2664 fi;
2665
2666 # Check whether --with-motif or --without-motif was given.
2667 if test "${with_motif+set}" = set; then
2668   withval="$with_motif"
2669   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2670 fi;
2671
2672 # Check whether --with-mac or --without-mac was given.
2673 if test "${with_mac+set}" = set; then
2674   withval="$with_mac"
2675   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2676 fi;
2677
2678 # Check whether --with-cocoa or --without-cocoa was given.
2679 if test "${with_cocoa+set}" = set; then
2680   withval="$with_cocoa"
2681   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2682 fi;
2683
2684 # Check whether --with-wine or --without-wine was given.
2685 if test "${with_wine+set}" = set; then
2686   withval="$with_wine"
2687   wxUSE_WINE="$withval" CACHE_WINE=1
2688 fi;
2689
2690 # Check whether --with-msw or --without-msw was given.
2691 if test "${with_msw+set}" = set; then
2692   withval="$with_msw"
2693   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2694 fi;
2695
2696 # Check whether --with-pm or --without-pm was given.
2697 if test "${with_pm+set}" = set; then
2698   withval="$with_pm"
2699   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2700 fi;
2701
2702 # Check whether --with-mgl or --without-mgl was given.
2703 if test "${with_mgl+set}" = set; then
2704   withval="$with_mgl"
2705   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2706 fi;
2707
2708 # Check whether --with-microwin or --without-microwin was given.
2709 if test "${with_microwin+set}" = set; then
2710   withval="$with_microwin"
2711   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2712 fi;
2713
2714 # Check whether --with-x11 or --without-x11 was given.
2715 if test "${with_x11+set}" = set; then
2716   withval="$with_x11"
2717   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2718 fi;
2719
2720           enablestring=
2721           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2722 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2723           no_cache=0
2724           # Check whether --enable-nanox or --disable-nanox was given.
2725 if test "${enable_nanox+set}" = set; then
2726   enableval="$enable_nanox"
2727
2728                           if test "$enableval" = yes; then
2729                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2730                           else
2731                             ac_cv_use_nanox='wxUSE_NANOX=no'
2732                           fi
2733
2734 else
2735
2736                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2737                           if test "x$LINE" != x ; then
2738                             eval "DEFAULT_$LINE"
2739                           else
2740                             no_cache=1
2741                           fi
2742
2743                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2744
2745 fi;
2746
2747           eval "$ac_cv_use_nanox"
2748           if test "$no_cache" != 1; then
2749             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2750           fi
2751
2752           if test "$wxUSE_NANOX" = yes; then
2753             echo "$as_me:$LINENO: result: yes" >&5
2754 echo "${ECHO_T}yes" >&6
2755           else
2756             echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2758           fi
2759
2760
2761 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2762 if test "${enable_gtk2+set}" = set; then
2763   enableval="$enable_gtk2"
2764   wxUSE_GTK2="$enableval"
2765 fi;
2766
2767           enablestring=
2768           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2769 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2770           no_cache=0
2771           # Check whether --enable-gpe or --disable-gpe was given.
2772 if test "${enable_gpe+set}" = set; then
2773   enableval="$enable_gpe"
2774
2775                           if test "$enableval" = yes; then
2776                             ac_cv_use_gpe='wxUSE_GPE=yes'
2777                           else
2778                             ac_cv_use_gpe='wxUSE_GPE=no'
2779                           fi
2780
2781 else
2782
2783                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2784                           if test "x$LINE" != x ; then
2785                             eval "DEFAULT_$LINE"
2786                           else
2787                             no_cache=1
2788                           fi
2789
2790                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2791
2792 fi;
2793
2794           eval "$ac_cv_use_gpe"
2795           if test "$no_cache" != 1; then
2796             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2797           fi
2798
2799           if test "$wxUSE_GPE" = yes; then
2800             echo "$as_me:$LINENO: result: yes" >&5
2801 echo "${ECHO_T}yes" >&6
2802           else
2803             echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6
2805           fi
2806
2807
2808
2809           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2810 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2811           no_cache=0
2812
2813 # Check whether --with-libpng or --without-libpng was given.
2814 if test "${with_libpng+set}" = set; then
2815   withval="$with_libpng"
2816
2817                         if test "$withval" = yes; then
2818                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2819                         elif test "$withval" = no; then
2820                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2821                         elif test "$withval" = sys; then
2822                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2823                         elif test "$withval" = builtin; then
2824                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2825                         else
2826                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2827 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2828    { (exit 1); exit 1; }; }
2829                         fi
2830
2831 else
2832
2833                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2834                         if test "x$LINE" != x ; then
2835                           eval "DEFAULT_$LINE"
2836                         else
2837                           no_cache=1
2838                         fi
2839
2840                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2841
2842 fi;
2843
2844           eval "$ac_cv_use_libpng"
2845           if test "$no_cache" != 1; then
2846             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2847           fi
2848
2849           if test "$wxUSE_LIBPNG" = yes; then
2850             echo "$as_me:$LINENO: result: yes" >&5
2851 echo "${ECHO_T}yes" >&6
2852           elif test "$wxUSE_LIBPNG" = no; then
2853             echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2855           elif test "$wxUSE_LIBPNG" = sys; then
2856             echo "$as_me:$LINENO: result: system version" >&5
2857 echo "${ECHO_T}system version" >&6
2858           elif test "$wxUSE_LIBPNG" = builtin; then
2859             echo "$as_me:$LINENO: result: builtin version" >&5
2860 echo "${ECHO_T}builtin version" >&6
2861           else
2862             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2863 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2864    { (exit 1); exit 1; }; }
2865           fi
2866
2867
2868           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2869 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2870           no_cache=0
2871
2872 # Check whether --with-libjpeg or --without-libjpeg was given.
2873 if test "${with_libjpeg+set}" = set; then
2874   withval="$with_libjpeg"
2875
2876                         if test "$withval" = yes; then
2877                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2878                         elif test "$withval" = no; then
2879                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2880                         elif test "$withval" = sys; then
2881                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2882                         elif test "$withval" = builtin; then
2883                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2884                         else
2885                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2886 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2887    { (exit 1); exit 1; }; }
2888                         fi
2889
2890 else
2891
2892                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2893                         if test "x$LINE" != x ; then
2894                           eval "DEFAULT_$LINE"
2895                         else
2896                           no_cache=1
2897                         fi
2898
2899                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2900
2901 fi;
2902
2903           eval "$ac_cv_use_libjpeg"
2904           if test "$no_cache" != 1; then
2905             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2906           fi
2907
2908           if test "$wxUSE_LIBJPEG" = yes; then
2909             echo "$as_me:$LINENO: result: yes" >&5
2910 echo "${ECHO_T}yes" >&6
2911           elif test "$wxUSE_LIBJPEG" = no; then
2912             echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6
2914           elif test "$wxUSE_LIBJPEG" = sys; then
2915             echo "$as_me:$LINENO: result: system version" >&5
2916 echo "${ECHO_T}system version" >&6
2917           elif test "$wxUSE_LIBJPEG" = builtin; then
2918             echo "$as_me:$LINENO: result: builtin version" >&5
2919 echo "${ECHO_T}builtin version" >&6
2920           else
2921             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2922 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2923    { (exit 1); exit 1; }; }
2924           fi
2925
2926
2927           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2928 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2929           no_cache=0
2930
2931 # Check whether --with-libtiff or --without-libtiff was given.
2932 if test "${with_libtiff+set}" = set; then
2933   withval="$with_libtiff"
2934
2935                         if test "$withval" = yes; then
2936                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2937                         elif test "$withval" = no; then
2938                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2939                         elif test "$withval" = sys; then
2940                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2941                         elif test "$withval" = builtin; then
2942                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2943                         else
2944                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2945 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2946    { (exit 1); exit 1; }; }
2947                         fi
2948
2949 else
2950
2951                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2952                         if test "x$LINE" != x ; then
2953                           eval "DEFAULT_$LINE"
2954                         else
2955                           no_cache=1
2956                         fi
2957
2958                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2959
2960 fi;
2961
2962           eval "$ac_cv_use_libtiff"
2963           if test "$no_cache" != 1; then
2964             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2965           fi
2966
2967           if test "$wxUSE_LIBTIFF" = yes; then
2968             echo "$as_me:$LINENO: result: yes" >&5
2969 echo "${ECHO_T}yes" >&6
2970           elif test "$wxUSE_LIBTIFF" = no; then
2971             echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2973           elif test "$wxUSE_LIBTIFF" = sys; then
2974             echo "$as_me:$LINENO: result: system version" >&5
2975 echo "${ECHO_T}system version" >&6
2976           elif test "$wxUSE_LIBTIFF" = builtin; then
2977             echo "$as_me:$LINENO: result: builtin version" >&5
2978 echo "${ECHO_T}builtin version" >&6
2979           else
2980             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2981 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2982    { (exit 1); exit 1; }; }
2983           fi
2984
2985
2986           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2987 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2988           no_cache=0
2989
2990 # Check whether --with-libxpm or --without-libxpm was given.
2991 if test "${with_libxpm+set}" = set; then
2992   withval="$with_libxpm"
2993
2994                         if test "$withval" = yes; then
2995                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2996                         elif test "$withval" = no; then
2997                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2998                         elif test "$withval" = sys; then
2999                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3000                         elif test "$withval" = builtin; then
3001                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3002                         else
3003                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3004 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3005    { (exit 1); exit 1; }; }
3006                         fi
3007
3008 else
3009
3010                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3011                         if test "x$LINE" != x ; then
3012                           eval "DEFAULT_$LINE"
3013                         else
3014                           no_cache=1
3015                         fi
3016
3017                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3018
3019 fi;
3020
3021           eval "$ac_cv_use_libxpm"
3022           if test "$no_cache" != 1; then
3023             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3024           fi
3025
3026           if test "$wxUSE_LIBXPM" = yes; then
3027             echo "$as_me:$LINENO: result: yes" >&5
3028 echo "${ECHO_T}yes" >&6
3029           elif test "$wxUSE_LIBXPM" = no; then
3030             echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6
3032           elif test "$wxUSE_LIBXPM" = sys; then
3033             echo "$as_me:$LINENO: result: system version" >&5
3034 echo "${ECHO_T}system version" >&6
3035           elif test "$wxUSE_LIBXPM" = builtin; then
3036             echo "$as_me:$LINENO: result: builtin version" >&5
3037 echo "${ECHO_T}builtin version" >&6
3038           else
3039             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3040 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3041    { (exit 1); exit 1; }; }
3042           fi
3043
3044
3045           withstring=
3046           echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3047 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3048           no_cache=0
3049
3050 # Check whether --with-libmspack or --without-libmspack was given.
3051 if test "${with_libmspack+set}" = set; then
3052   withval="$with_libmspack"
3053
3054                         if test "$withval" = yes; then
3055                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3056                         else
3057                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3058                         fi
3059
3060 else
3061
3062                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3063                         if test "x$LINE" != x ; then
3064                           eval "DEFAULT_$LINE"
3065                         else
3066                           no_cache=1
3067                         fi
3068
3069                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3070
3071 fi;
3072
3073           eval "$ac_cv_use_libmspack"
3074           if test "$no_cache" != 1; then
3075             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3076           fi
3077
3078           if test "$wxUSE_LIBMSPACK" = yes; then
3079             echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6
3081           else
3082             echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6
3084           fi
3085
3086
3087           withstring=
3088           echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3089 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3090           no_cache=0
3091
3092 # Check whether --with-sdl or --without-sdl was given.
3093 if test "${with_sdl+set}" = set; then
3094   withval="$with_sdl"
3095
3096                         if test "$withval" = yes; then
3097                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3098                         else
3099                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3100                         fi
3101
3102 else
3103
3104                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3105                         if test "x$LINE" != x ; then
3106                           eval "DEFAULT_$LINE"
3107                         else
3108                           no_cache=1
3109                         fi
3110
3111                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3112
3113 fi;
3114
3115           eval "$ac_cv_use_sdl"
3116           if test "$no_cache" != 1; then
3117             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3118           fi
3119
3120           if test "$wxUSE_LIBSDL" = yes; then
3121             echo "$as_me:$LINENO: result: yes" >&5
3122 echo "${ECHO_T}yes" >&6
3123           else
3124             echo "$as_me:$LINENO: result: no" >&5
3125 echo "${ECHO_T}no" >&6
3126           fi
3127
3128
3129           withstring=
3130           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3131 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3132           no_cache=0
3133
3134 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3135 if test "${with_gnomeprint+set}" = set; then
3136   withval="$with_gnomeprint"
3137
3138                         if test "$withval" = yes; then
3139                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3140                         else
3141                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3142                         fi
3143
3144 else
3145
3146                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3147                         if test "x$LINE" != x ; then
3148                           eval "DEFAULT_$LINE"
3149                         else
3150                           no_cache=1
3151                         fi
3152
3153                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3154
3155 fi;
3156
3157           eval "$ac_cv_use_gnomeprint"
3158           if test "$no_cache" != 1; then
3159             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3160           fi
3161
3162           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3163             echo "$as_me:$LINENO: result: yes" >&5
3164 echo "${ECHO_T}yes" >&6
3165           else
3166             echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168           fi
3169
3170
3171           withstring=
3172           echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3173 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3174           no_cache=0
3175
3176 # Check whether --with-opengl or --without-opengl was given.
3177 if test "${with_opengl+set}" = set; then
3178   withval="$with_opengl"
3179
3180                         if test "$withval" = yes; then
3181                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3182                         else
3183                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3184                         fi
3185
3186 else
3187
3188                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3189                         if test "x$LINE" != x ; then
3190                           eval "DEFAULT_$LINE"
3191                         else
3192                           no_cache=1
3193                         fi
3194
3195                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3196
3197 fi;
3198
3199           eval "$ac_cv_use_opengl"
3200           if test "$no_cache" != 1; then
3201             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3202           fi
3203
3204           if test "$wxUSE_OPENGL" = yes; then
3205             echo "$as_me:$LINENO: result: yes" >&5
3206 echo "${ECHO_T}yes" >&6
3207           else
3208             echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210           fi
3211
3212
3213 fi
3214
3215
3216           withstring=
3217           echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3218 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3219           no_cache=0
3220
3221 # Check whether --with-dmalloc or --without-dmalloc was given.
3222 if test "${with_dmalloc+set}" = set; then
3223   withval="$with_dmalloc"
3224
3225                         if test "$withval" = yes; then
3226                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3227                         else
3228                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3229                         fi
3230
3231 else
3232
3233                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3234                         if test "x$LINE" != x ; then
3235                           eval "DEFAULT_$LINE"
3236                         else
3237                           no_cache=1
3238                         fi
3239
3240                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3241
3242 fi;
3243
3244           eval "$ac_cv_use_dmalloc"
3245           if test "$no_cache" != 1; then
3246             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3247           fi
3248
3249           if test "$wxUSE_DMALLOC" = yes; then
3250             echo "$as_me:$LINENO: result: yes" >&5
3251 echo "${ECHO_T}yes" >&6
3252           else
3253             echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3255           fi
3256
3257
3258           echo "$as_me:$LINENO: checking for --with-regex" >&5
3259 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3260           no_cache=0
3261
3262 # Check whether --with-regex or --without-regex was given.
3263 if test "${with_regex+set}" = set; then
3264   withval="$with_regex"
3265
3266                         if test "$withval" = yes; then
3267                           ac_cv_use_regex='wxUSE_REGEX=yes'
3268                         elif test "$withval" = no; then
3269                           ac_cv_use_regex='wxUSE_REGEX=no'
3270                         elif test "$withval" = sys; then
3271                           ac_cv_use_regex='wxUSE_REGEX=sys'
3272                         elif test "$withval" = builtin; then
3273                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3274                         else
3275                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3276 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3277    { (exit 1); exit 1; }; }
3278                         fi
3279
3280 else
3281
3282                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3283                         if test "x$LINE" != x ; then
3284                           eval "DEFAULT_$LINE"
3285                         else
3286                           no_cache=1
3287                         fi
3288
3289                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3290
3291 fi;
3292
3293           eval "$ac_cv_use_regex"
3294           if test "$no_cache" != 1; then
3295             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3296           fi
3297
3298           if test "$wxUSE_REGEX" = yes; then
3299             echo "$as_me:$LINENO: result: yes" >&5
3300 echo "${ECHO_T}yes" >&6
3301           elif test "$wxUSE_REGEX" = no; then
3302             echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3304           elif test "$wxUSE_REGEX" = sys; then
3305             echo "$as_me:$LINENO: result: system version" >&5
3306 echo "${ECHO_T}system version" >&6
3307           elif test "$wxUSE_REGEX" = builtin; then
3308             echo "$as_me:$LINENO: result: builtin version" >&5
3309 echo "${ECHO_T}builtin version" >&6
3310           else
3311             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3312 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3313    { (exit 1); exit 1; }; }
3314           fi
3315
3316
3317           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3318 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3319           no_cache=0
3320
3321 # Check whether --with-zlib or --without-zlib was given.
3322 if test "${with_zlib+set}" = set; then
3323   withval="$with_zlib"
3324
3325                         if test "$withval" = yes; then
3326                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3327                         elif test "$withval" = no; then
3328                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3329                         elif test "$withval" = sys; then
3330                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3331                         elif test "$withval" = builtin; then
3332                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3333                         else
3334                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3335 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3336    { (exit 1); exit 1; }; }
3337                         fi
3338
3339 else
3340
3341                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3342                         if test "x$LINE" != x ; then
3343                           eval "DEFAULT_$LINE"
3344                         else
3345                           no_cache=1
3346                         fi
3347
3348                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3349
3350 fi;
3351
3352           eval "$ac_cv_use_zlib"
3353           if test "$no_cache" != 1; then
3354             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3355           fi
3356
3357           if test "$wxUSE_ZLIB" = yes; then
3358             echo "$as_me:$LINENO: result: yes" >&5
3359 echo "${ECHO_T}yes" >&6
3360           elif test "$wxUSE_ZLIB" = no; then
3361             echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3363           elif test "$wxUSE_ZLIB" = sys; then
3364             echo "$as_me:$LINENO: result: system version" >&5
3365 echo "${ECHO_T}system version" >&6
3366           elif test "$wxUSE_ZLIB" = builtin; then
3367             echo "$as_me:$LINENO: result: builtin version" >&5
3368 echo "${ECHO_T}builtin version" >&6
3369           else
3370             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3371 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3372    { (exit 1); exit 1; }; }
3373           fi
3374
3375
3376           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3377 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3378           no_cache=0
3379
3380 # Check whether --with-odbc or --without-odbc was given.
3381 if test "${with_odbc+set}" = set; then
3382   withval="$with_odbc"
3383
3384                         if test "$withval" = yes; then
3385                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3386                         elif test "$withval" = no; then
3387                           ac_cv_use_odbc='wxUSE_ODBC=no'
3388                         elif test "$withval" = sys; then
3389                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3390                         elif test "$withval" = builtin; then
3391                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3392                         else
3393                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3394 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3395    { (exit 1); exit 1; }; }
3396                         fi
3397
3398 else
3399
3400                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3401                         if test "x$LINE" != x ; then
3402                           eval "DEFAULT_$LINE"
3403                         else
3404                           no_cache=1
3405                         fi
3406
3407                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3408
3409 fi;
3410
3411           eval "$ac_cv_use_odbc"
3412           if test "$no_cache" != 1; then
3413             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3414           fi
3415
3416           if test "$wxUSE_ODBC" = yes; then
3417             echo "$as_me:$LINENO: result: yes" >&5
3418 echo "${ECHO_T}yes" >&6
3419           elif test "$wxUSE_ODBC" = no; then
3420             echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422           elif test "$wxUSE_ODBC" = sys; then
3423             echo "$as_me:$LINENO: result: system version" >&5
3424 echo "${ECHO_T}system version" >&6
3425           elif test "$wxUSE_ODBC" = builtin; then
3426             echo "$as_me:$LINENO: result: builtin version" >&5
3427 echo "${ECHO_T}builtin version" >&6
3428           else
3429             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3430 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3431    { (exit 1); exit 1; }; }
3432           fi
3433
3434
3435           echo "$as_me:$LINENO: checking for --with-expat" >&5
3436 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3437           no_cache=0
3438
3439 # Check whether --with-expat or --without-expat was given.
3440 if test "${with_expat+set}" = set; then
3441   withval="$with_expat"
3442
3443                         if test "$withval" = yes; then
3444                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3445                         elif test "$withval" = no; then
3446                           ac_cv_use_expat='wxUSE_EXPAT=no'
3447                         elif test "$withval" = sys; then
3448                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3449                         elif test "$withval" = builtin; then
3450                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3451                         else
3452                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3453 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3454    { (exit 1); exit 1; }; }
3455                         fi
3456
3457 else
3458
3459                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3460                         if test "x$LINE" != x ; then
3461                           eval "DEFAULT_$LINE"
3462                         else
3463                           no_cache=1
3464                         fi
3465
3466                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3467
3468 fi;
3469
3470           eval "$ac_cv_use_expat"
3471           if test "$no_cache" != 1; then
3472             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3473           fi
3474
3475           if test "$wxUSE_EXPAT" = yes; then
3476             echo "$as_me:$LINENO: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3478           elif test "$wxUSE_EXPAT" = no; then
3479             echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3481           elif test "$wxUSE_EXPAT" = sys; then
3482             echo "$as_me:$LINENO: result: system version" >&5
3483 echo "${ECHO_T}system version" >&6
3484           elif test "$wxUSE_EXPAT" = builtin; then
3485             echo "$as_me:$LINENO: result: builtin version" >&5
3486 echo "${ECHO_T}builtin version" >&6
3487           else
3488             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3489 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3490    { (exit 1); exit 1; }; }
3491           fi
3492
3493
3494
3495
3496           enablestring=
3497           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3498 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3499           no_cache=0
3500           # Check whether --enable-shared or --disable-shared was given.
3501 if test "${enable_shared+set}" = set; then
3502   enableval="$enable_shared"
3503
3504                           if test "$enableval" = yes; then
3505                             ac_cv_use_shared='wxUSE_SHARED=yes'
3506                           else
3507                             ac_cv_use_shared='wxUSE_SHARED=no'
3508                           fi
3509
3510 else
3511
3512                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3513                           if test "x$LINE" != x ; then
3514                             eval "DEFAULT_$LINE"
3515                           else
3516                             no_cache=1
3517                           fi
3518
3519                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3520
3521 fi;
3522
3523           eval "$ac_cv_use_shared"
3524           if test "$no_cache" != 1; then
3525             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3526           fi
3527
3528           if test "$wxUSE_SHARED" = yes; then
3529             echo "$as_me:$LINENO: result: yes" >&5
3530 echo "${ECHO_T}yes" >&6
3531           else
3532             echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3534           fi
3535
3536
3537           enablestring=
3538           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3539 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3540           no_cache=0
3541           # Check whether --enable-optimise or --disable-optimise was given.
3542 if test "${enable_optimise+set}" = set; then
3543   enableval="$enable_optimise"
3544
3545                           if test "$enableval" = yes; then
3546                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3547                           else
3548                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3549                           fi
3550
3551 else
3552
3553                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3554                           if test "x$LINE" != x ; then
3555                             eval "DEFAULT_$LINE"
3556                           else
3557                             no_cache=1
3558                           fi
3559
3560                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3561
3562 fi;
3563
3564           eval "$ac_cv_use_optimise"
3565           if test "$no_cache" != 1; then
3566             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3567           fi
3568
3569           if test "$wxUSE_OPTIMISE" = yes; then
3570             echo "$as_me:$LINENO: result: yes" >&5
3571 echo "${ECHO_T}yes" >&6
3572           else
3573             echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6
3575           fi
3576
3577
3578           enablestring=
3579           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3580 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3581           no_cache=0
3582           # Check whether --enable-debug or --disable-debug was given.
3583 if test "${enable_debug+set}" = set; then
3584   enableval="$enable_debug"
3585
3586                           if test "$enableval" = yes; then
3587                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3588                           else
3589                             ac_cv_use_debug='wxUSE_DEBUG=no'
3590                           fi
3591
3592 else
3593
3594                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3595                           if test "x$LINE" != x ; then
3596                             eval "DEFAULT_$LINE"
3597                           else
3598                             no_cache=1
3599                           fi
3600
3601                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3602
3603 fi;
3604
3605           eval "$ac_cv_use_debug"
3606           if test "$no_cache" != 1; then
3607             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3608           fi
3609
3610           if test "$wxUSE_DEBUG" = yes; then
3611             echo "$as_me:$LINENO: result: yes" >&5
3612 echo "${ECHO_T}yes" >&6
3613           else
3614             echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616           fi
3617
3618
3619           enablestring=
3620           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3621 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3622           no_cache=0
3623           # Check whether --enable-stl or --disable-stl was given.
3624 if test "${enable_stl+set}" = set; then
3625   enableval="$enable_stl"
3626
3627                           if test "$enableval" = yes; then
3628                             ac_cv_use_stl='wxUSE_STL=yes'
3629                           else
3630                             ac_cv_use_stl='wxUSE_STL=no'
3631                           fi
3632
3633 else
3634
3635                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3636                           if test "x$LINE" != x ; then
3637                             eval "DEFAULT_$LINE"
3638                           else
3639                             no_cache=1
3640                           fi
3641
3642                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3643
3644 fi;
3645
3646           eval "$ac_cv_use_stl"
3647           if test "$no_cache" != 1; then
3648             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3649           fi
3650
3651           if test "$wxUSE_STL" = yes; then
3652             echo "$as_me:$LINENO: result: yes" >&5
3653 echo "${ECHO_T}yes" >&6
3654           else
3655             echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3657           fi
3658
3659 if test "$USE_OS2" = "1"; then
3660     DEFAULT_wxUSE_OMF=no
3661
3662           enablestring=
3663           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3664 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3665           no_cache=0
3666           # Check whether --enable-omf or --disable-omf was given.
3667 if test "${enable_omf+set}" = set; then
3668   enableval="$enable_omf"
3669
3670                           if test "$enableval" = yes; then
3671                             ac_cv_use_omf='wxUSE_OMF=yes'
3672                           else
3673                             ac_cv_use_omf='wxUSE_OMF=no'
3674                           fi
3675
3676 else
3677
3678                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3679                           if test "x$LINE" != x ; then
3680                             eval "DEFAULT_$LINE"
3681                           else
3682                             no_cache=1
3683                           fi
3684
3685                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3686
3687 fi;
3688
3689           eval "$ac_cv_use_omf"
3690           if test "$no_cache" != 1; then
3691             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3692           fi
3693
3694           if test "$wxUSE_OMF" = yes; then
3695             echo "$as_me:$LINENO: result: yes" >&5
3696 echo "${ECHO_T}yes" >&6
3697           else
3698             echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3700           fi
3701
3702 fi
3703
3704 if test "$wxUSE_DEBUG" = "yes"; then
3705   DEFAULT_wxUSE_DEBUG_FLAG=yes
3706   DEFAULT_wxUSE_DEBUG_INFO=yes
3707   BUILD=debug
3708 elif test "$wxUSE_DEBUG" = "no"; then
3709   DEFAULT_wxUSE_DEBUG_FLAG=no
3710   DEFAULT_wxUSE_DEBUG_INFO=no
3711   BUILD=release
3712 fi
3713
3714
3715           enablestring=
3716           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3717 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3718           no_cache=0
3719           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3720 if test "${enable_debug_flag+set}" = set; then
3721   enableval="$enable_debug_flag"
3722
3723                           if test "$enableval" = yes; then
3724                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3725                           else
3726                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3727                           fi
3728
3729 else
3730
3731                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3732                           if test "x$LINE" != x ; then
3733                             eval "DEFAULT_$LINE"
3734                           else
3735                             no_cache=1
3736                           fi
3737
3738                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3739
3740 fi;
3741
3742           eval "$ac_cv_use_debug_flag"
3743           if test "$no_cache" != 1; then
3744             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3745           fi
3746
3747           if test "$wxUSE_DEBUG_FLAG" = yes; then
3748             echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6
3750           else
3751             echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6
3753           fi
3754
3755
3756           enablestring=
3757           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3758 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3759           no_cache=0
3760           # Check whether --enable-debug_info or --disable-debug_info was given.
3761 if test "${enable_debug_info+set}" = set; then
3762   enableval="$enable_debug_info"
3763
3764                           if test "$enableval" = yes; then
3765                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3766                           else
3767                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3768                           fi
3769
3770 else
3771
3772                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3773                           if test "x$LINE" != x ; then
3774                             eval "DEFAULT_$LINE"
3775                           else
3776                             no_cache=1
3777                           fi
3778
3779                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3780
3781 fi;
3782
3783           eval "$ac_cv_use_debug_info"
3784           if test "$no_cache" != 1; then
3785             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3786           fi
3787
3788           if test "$wxUSE_DEBUG_INFO" = yes; then
3789             echo "$as_me:$LINENO: result: yes" >&5
3790 echo "${ECHO_T}yes" >&6
3791           else
3792             echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3794           fi
3795
3796
3797           enablestring=
3798           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3799 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3800           no_cache=0
3801           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3802 if test "${enable_debug_gdb+set}" = set; then
3803   enableval="$enable_debug_gdb"
3804
3805                           if test "$enableval" = yes; then
3806                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3807                           else
3808                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3809                           fi
3810
3811 else
3812
3813                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3814                           if test "x$LINE" != x ; then
3815                             eval "DEFAULT_$LINE"
3816                           else
3817                             no_cache=1
3818                           fi
3819
3820                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3821
3822 fi;
3823
3824           eval "$ac_cv_use_debug_gdb"
3825           if test "$no_cache" != 1; then
3826             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3827           fi
3828
3829           if test "$wxUSE_DEBUG_GDB" = yes; then
3830             echo "$as_me:$LINENO: result: yes" >&5
3831 echo "${ECHO_T}yes" >&6
3832           else
3833             echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3835           fi
3836
3837
3838           enablestring=
3839           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3840 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3841           no_cache=0
3842           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3843 if test "${enable_debug_cntxt+set}" = set; then
3844   enableval="$enable_debug_cntxt"
3845
3846                           if test "$enableval" = yes; then
3847                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3848                           else
3849                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3850                           fi
3851
3852 else
3853
3854                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3855                           if test "x$LINE" != x ; then
3856                             eval "DEFAULT_$LINE"
3857                           else
3858                             no_cache=1
3859                           fi
3860
3861                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3862
3863 fi;
3864
3865           eval "$ac_cv_use_debug_cntxt"
3866           if test "$no_cache" != 1; then
3867             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3868           fi
3869
3870           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3871             echo "$as_me:$LINENO: result: yes" >&5
3872 echo "${ECHO_T}yes" >&6
3873           else
3874             echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3876           fi
3877
3878
3879           enablestring=
3880           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3881 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3882           no_cache=0
3883           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3884 if test "${enable_mem_tracing+set}" = set; then
3885   enableval="$enable_mem_tracing"
3886
3887                           if test "$enableval" = yes; then
3888                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3889                           else
3890                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3891                           fi
3892
3893 else
3894
3895                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3896                           if test "x$LINE" != x ; then
3897                             eval "DEFAULT_$LINE"
3898                           else
3899                             no_cache=1
3900                           fi
3901
3902                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3903
3904 fi;
3905
3906           eval "$ac_cv_use_mem_tracing"
3907           if test "$no_cache" != 1; then
3908             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3909           fi
3910
3911           if test "$wxUSE_MEM_TRACING" = yes; then
3912             echo "$as_me:$LINENO: result: yes" >&5
3913 echo "${ECHO_T}yes" >&6
3914           else
3915             echo "$as_me:$LINENO: result: no" >&5
3916 echo "${ECHO_T}no" >&6
3917           fi
3918
3919
3920           enablestring=
3921           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3922 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3923           no_cache=0
3924           # Check whether --enable-profile or --disable-profile was given.
3925 if test "${enable_profile+set}" = set; then
3926   enableval="$enable_profile"
3927
3928                           if test "$enableval" = yes; then
3929                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3930                           else
3931                             ac_cv_use_profile='wxUSE_PROFILE=no'
3932                           fi
3933
3934 else
3935
3936                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3937                           if test "x$LINE" != x ; then
3938                             eval "DEFAULT_$LINE"
3939                           else
3940                             no_cache=1
3941                           fi
3942
3943                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3944
3945 fi;
3946
3947           eval "$ac_cv_use_profile"
3948           if test "$no_cache" != 1; then
3949             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3950           fi
3951
3952           if test "$wxUSE_PROFILE" = yes; then
3953             echo "$as_me:$LINENO: result: yes" >&5
3954 echo "${ECHO_T}yes" >&6
3955           else
3956             echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6
3958           fi
3959
3960
3961           enablestring=
3962           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3963 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3964           no_cache=0
3965           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3966 if test "${enable_no_rtti+set}" = set; then
3967   enableval="$enable_no_rtti"
3968
3969                           if test "$enableval" = yes; then
3970                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3971                           else
3972                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3973                           fi
3974
3975 else
3976
3977                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3978                           if test "x$LINE" != x ; then
3979                             eval "DEFAULT_$LINE"
3980                           else
3981                             no_cache=1
3982                           fi
3983
3984                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3985
3986 fi;
3987
3988           eval "$ac_cv_use_no_rtti"
3989           if test "$no_cache" != 1; then
3990             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3991           fi
3992
3993           if test "$wxUSE_NO_RTTI" = yes; then
3994             echo "$as_me:$LINENO: result: yes" >&5
3995 echo "${ECHO_T}yes" >&6
3996           else
3997             echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999           fi
4000
4001
4002           enablestring=
4003           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4004 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4005           no_cache=0
4006           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4007 if test "${enable_no_exceptions+set}" = set; then
4008   enableval="$enable_no_exceptions"
4009
4010                           if test "$enableval" = yes; then
4011                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4012                           else
4013                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4014                           fi
4015
4016 else
4017
4018                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4019                           if test "x$LINE" != x ; then
4020                             eval "DEFAULT_$LINE"
4021                           else
4022                             no_cache=1
4023                           fi
4024
4025                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4026
4027 fi;
4028
4029           eval "$ac_cv_use_no_exceptions"
4030           if test "$no_cache" != 1; then
4031             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4032           fi
4033
4034           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4035             echo "$as_me:$LINENO: result: yes" >&5
4036 echo "${ECHO_T}yes" >&6
4037           else
4038             echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4040           fi
4041
4042
4043           enablestring=
4044           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4045 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4046           no_cache=0
4047           # Check whether --enable-permissive or --disable-permissive was given.
4048 if test "${enable_permissive+set}" = set; then
4049   enableval="$enable_permissive"
4050
4051                           if test "$enableval" = yes; then
4052                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4053                           else
4054                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4055                           fi
4056
4057 else
4058
4059                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4060                           if test "x$LINE" != x ; then
4061                             eval "DEFAULT_$LINE"
4062                           else
4063                             no_cache=1
4064                           fi
4065
4066                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4067
4068 fi;
4069
4070           eval "$ac_cv_use_permissive"
4071           if test "$no_cache" != 1; then
4072             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4073           fi
4074
4075           if test "$wxUSE_PERMISSIVE" = yes; then
4076             echo "$as_me:$LINENO: result: yes" >&5
4077 echo "${ECHO_T}yes" >&6
4078           else
4079             echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081           fi
4082
4083
4084           enablestring=
4085           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4086 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4087           no_cache=0
4088           # Check whether --enable-no_deps or --disable-no_deps was given.
4089 if test "${enable_no_deps+set}" = set; then
4090   enableval="$enable_no_deps"
4091
4092                           if test "$enableval" = yes; then
4093                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4094                           else
4095                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4096                           fi
4097
4098 else
4099
4100                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4101                           if test "x$LINE" != x ; then
4102                             eval "DEFAULT_$LINE"
4103                           else
4104                             no_cache=1
4105                           fi
4106
4107                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4108
4109 fi;
4110
4111           eval "$ac_cv_use_no_deps"
4112           if test "$no_cache" != 1; then
4113             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4114           fi
4115
4116           if test "$wxUSE_NO_DEPS" = yes; then
4117             echo "$as_me:$LINENO: result: yes" >&5
4118 echo "${ECHO_T}yes" >&6
4119           else
4120             echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4122           fi
4123
4124
4125
4126           enablestring=enable
4127           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4128 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4129           no_cache=0
4130           # Check whether --enable-compat24 or --disable-compat24 was given.
4131 if test "${enable_compat24+set}" = set; then
4132   enableval="$enable_compat24"
4133
4134                           if test "$enableval" = yes; then
4135                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4136                           else
4137                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4138                           fi
4139
4140 else
4141
4142                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4143                           if test "x$LINE" != x ; then
4144                             eval "DEFAULT_$LINE"
4145                           else
4146                             no_cache=1
4147                           fi
4148
4149                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4150
4151 fi;
4152
4153           eval "$ac_cv_use_compat24"
4154           if test "$no_cache" != 1; then
4155             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4156           fi
4157
4158           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4159             echo "$as_me:$LINENO: result: yes" >&5
4160 echo "${ECHO_T}yes" >&6
4161           else
4162             echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6
4164           fi
4165
4166
4167           enablestring=disable
4168           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4169 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4170           no_cache=0
4171           # Check whether --enable-compat26 or --disable-compat26 was given.
4172 if test "${enable_compat26+set}" = set; then
4173   enableval="$enable_compat26"
4174
4175                           if test "$enableval" = yes; then
4176                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4177                           else
4178                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4179                           fi
4180
4181 else
4182
4183                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4184                           if test "x$LINE" != x ; then
4185                             eval "DEFAULT_$LINE"
4186                           else
4187                             no_cache=1
4188                           fi
4189
4190                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4191
4192 fi;
4193
4194           eval "$ac_cv_use_compat26"
4195           if test "$no_cache" != 1; then
4196             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4197           fi
4198
4199           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4200             echo "$as_me:$LINENO: result: yes" >&5
4201 echo "${ECHO_T}yes" >&6
4202           else
4203             echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4205           fi
4206
4207
4208
4209           enablestring=
4210           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4211 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4212           no_cache=0
4213           # Check whether --enable-rpath or --disable-rpath was given.
4214 if test "${enable_rpath+set}" = set; then
4215   enableval="$enable_rpath"
4216
4217                           if test "$enableval" = yes; then
4218                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4219                           else
4220                             ac_cv_use_rpath='wxUSE_RPATH=no'
4221                           fi
4222
4223 else
4224
4225                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4226                           if test "x$LINE" != x ; then
4227                             eval "DEFAULT_$LINE"
4228                           else
4229                             no_cache=1
4230                           fi
4231
4232                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4233
4234 fi;
4235
4236           eval "$ac_cv_use_rpath"
4237           if test "$no_cache" != 1; then
4238             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4239           fi
4240
4241           if test "$wxUSE_RPATH" = yes; then
4242             echo "$as_me:$LINENO: result: yes" >&5
4243 echo "${ECHO_T}yes" >&6
4244           else
4245             echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4247           fi
4248
4249
4250
4251
4252
4253           enablestring=
4254           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4255 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4256           no_cache=0
4257           # Check whether --enable-intl or --disable-intl was given.
4258 if test "${enable_intl+set}" = set; then
4259   enableval="$enable_intl"
4260
4261                           if test "$enableval" = yes; then
4262                             ac_cv_use_intl='wxUSE_INTL=yes'
4263                           else
4264                             ac_cv_use_intl='wxUSE_INTL=no'
4265                           fi
4266
4267 else
4268
4269                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4270                           if test "x$LINE" != x ; then
4271                             eval "DEFAULT_$LINE"
4272                           else
4273                             no_cache=1
4274                           fi
4275
4276                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4277
4278 fi;
4279
4280           eval "$ac_cv_use_intl"
4281           if test "$no_cache" != 1; then
4282             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4283           fi
4284
4285           if test "$wxUSE_INTL" = yes; then
4286             echo "$as_me:$LINENO: result: yes" >&5
4287 echo "${ECHO_T}yes" >&6
4288           else
4289             echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4291           fi
4292
4293
4294           enablestring=
4295           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4296 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4297           no_cache=0
4298           # Check whether --enable-config or --disable-config was given.
4299 if test "${enable_config+set}" = set; then
4300   enableval="$enable_config"
4301
4302                           if test "$enableval" = yes; then
4303                             ac_cv_use_config='wxUSE_CONFIG=yes'
4304                           else
4305                             ac_cv_use_config='wxUSE_CONFIG=no'
4306                           fi
4307
4308 else
4309
4310                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4311                           if test "x$LINE" != x ; then
4312                             eval "DEFAULT_$LINE"
4313                           else
4314                             no_cache=1
4315                           fi
4316
4317                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4318
4319 fi;
4320
4321           eval "$ac_cv_use_config"
4322           if test "$no_cache" != 1; then
4323             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4324           fi
4325
4326           if test "$wxUSE_CONFIG" = yes; then
4327             echo "$as_me:$LINENO: result: yes" >&5
4328 echo "${ECHO_T}yes" >&6
4329           else
4330             echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4332           fi
4333
4334
4335
4336           enablestring=
4337           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4338 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4339           no_cache=0
4340           # Check whether --enable-protocols or --disable-protocols was given.
4341 if test "${enable_protocols+set}" = set; then
4342   enableval="$enable_protocols"
4343
4344                           if test "$enableval" = yes; then
4345                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4346                           else
4347                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4348                           fi
4349
4350 else
4351
4352                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4353                           if test "x$LINE" != x ; then
4354                             eval "DEFAULT_$LINE"
4355                           else
4356                             no_cache=1
4357                           fi
4358
4359                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4360
4361 fi;
4362
4363           eval "$ac_cv_use_protocols"
4364           if test "$no_cache" != 1; then
4365             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4366           fi
4367
4368           if test "$wxUSE_PROTOCOL" = yes; then
4369             echo "$as_me:$LINENO: result: yes" >&5
4370 echo "${ECHO_T}yes" >&6
4371           else
4372             echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4374           fi
4375
4376
4377           enablestring=
4378           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4379 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4380           no_cache=0
4381           # Check whether --enable-ftp or --disable-ftp was given.
4382 if test "${enable_ftp+set}" = set; then
4383   enableval="$enable_ftp"
4384
4385                           if test "$enableval" = yes; then
4386                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4387                           else
4388                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4389                           fi
4390
4391 else
4392
4393                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4394                           if test "x$LINE" != x ; then
4395                             eval "DEFAULT_$LINE"
4396                           else
4397                             no_cache=1
4398                           fi
4399
4400                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4401
4402 fi;
4403
4404           eval "$ac_cv_use_ftp"
4405           if test "$no_cache" != 1; then
4406             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4407           fi
4408
4409           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4410             echo "$as_me:$LINENO: result: yes" >&5
4411 echo "${ECHO_T}yes" >&6
4412           else
4413             echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6
4415           fi
4416
4417
4418           enablestring=
4419           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4420 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4421           no_cache=0
4422           # Check whether --enable-http or --disable-http was given.
4423 if test "${enable_http+set}" = set; then
4424   enableval="$enable_http"
4425
4426                           if test "$enableval" = yes; then
4427                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4428                           else
4429                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4430                           fi
4431
4432 else
4433
4434                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4435                           if test "x$LINE" != x ; then
4436                             eval "DEFAULT_$LINE"
4437                           else
4438                             no_cache=1
4439                           fi
4440
4441                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4442
4443 fi;
4444
4445           eval "$ac_cv_use_http"
4446           if test "$no_cache" != 1; then
4447             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4448           fi
4449
4450           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4451             echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6
4453           else
4454             echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456           fi
4457
4458
4459           enablestring=
4460           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4461 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4462           no_cache=0
4463           # Check whether --enable-fileproto or --disable-fileproto was given.
4464 if test "${enable_fileproto+set}" = set; then
4465   enableval="$enable_fileproto"
4466
4467                           if test "$enableval" = yes; then
4468                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4469                           else
4470                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4471                           fi
4472
4473 else
4474
4475                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4476                           if test "x$LINE" != x ; then
4477                             eval "DEFAULT_$LINE"
4478                           else
4479                             no_cache=1
4480                           fi
4481
4482                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4483
4484 fi;
4485
4486           eval "$ac_cv_use_fileproto"
4487           if test "$no_cache" != 1; then
4488             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4489           fi
4490
4491           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4492             echo "$as_me:$LINENO: result: yes" >&5
4493 echo "${ECHO_T}yes" >&6
4494           else
4495             echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6
4497           fi
4498
4499
4500           enablestring=
4501           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4502 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4503           no_cache=0
4504           # Check whether --enable-sockets or --disable-sockets was given.
4505 if test "${enable_sockets+set}" = set; then
4506   enableval="$enable_sockets"
4507
4508                           if test "$enableval" = yes; then
4509                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4510                           else
4511                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4512                           fi
4513
4514 else
4515
4516                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4517                           if test "x$LINE" != x ; then
4518                             eval "DEFAULT_$LINE"
4519                           else
4520                             no_cache=1
4521                           fi
4522
4523                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4524
4525 fi;
4526
4527           eval "$ac_cv_use_sockets"
4528           if test "$no_cache" != 1; then
4529             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4530           fi
4531
4532           if test "$wxUSE_SOCKETS" = yes; then
4533             echo "$as_me:$LINENO: result: yes" >&5
4534 echo "${ECHO_T}yes" >&6
4535           else
4536             echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6
4538           fi
4539
4540
4541           enablestring=
4542           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4543 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4544           no_cache=0
4545           # Check whether --enable-ole or --disable-ole was given.
4546 if test "${enable_ole+set}" = set; then
4547   enableval="$enable_ole"
4548
4549                           if test "$enableval" = yes; then
4550                             ac_cv_use_ole='wxUSE_OLE=yes'
4551                           else
4552                             ac_cv_use_ole='wxUSE_OLE=no'
4553                           fi
4554
4555 else
4556
4557                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4558                           if test "x$LINE" != x ; then
4559                             eval "DEFAULT_$LINE"
4560                           else
4561                             no_cache=1
4562                           fi
4563
4564                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4565
4566 fi;
4567
4568           eval "$ac_cv_use_ole"
4569           if test "$no_cache" != 1; then
4570             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4571           fi
4572
4573           if test "$wxUSE_OLE" = yes; then
4574             echo "$as_me:$LINENO: result: yes" >&5
4575 echo "${ECHO_T}yes" >&6
4576           else
4577             echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4579           fi
4580
4581
4582           enablestring=
4583           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4584 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4585           no_cache=0
4586           # Check whether --enable-dataobj or --disable-dataobj was given.
4587 if test "${enable_dataobj+set}" = set; then
4588   enableval="$enable_dataobj"
4589
4590                           if test "$enableval" = yes; then
4591                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4592                           else
4593                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4594                           fi
4595
4596 else
4597
4598                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4599                           if test "x$LINE" != x ; then
4600                             eval "DEFAULT_$LINE"
4601                           else
4602                             no_cache=1
4603                           fi
4604
4605                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4606
4607 fi;
4608
4609           eval "$ac_cv_use_dataobj"
4610           if test "$no_cache" != 1; then
4611             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4612           fi
4613
4614           if test "$wxUSE_DATAOBJ" = yes; then
4615             echo "$as_me:$LINENO: result: yes" >&5
4616 echo "${ECHO_T}yes" >&6
4617           else
4618             echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4620           fi
4621
4622
4623
4624           enablestring=
4625           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4626 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4627           no_cache=0
4628           # Check whether --enable-ipc or --disable-ipc was given.
4629 if test "${enable_ipc+set}" = set; then
4630   enableval="$enable_ipc"
4631
4632                           if test "$enableval" = yes; then
4633                             ac_cv_use_ipc='wxUSE_IPC=yes'
4634                           else
4635                             ac_cv_use_ipc='wxUSE_IPC=no'
4636                           fi
4637
4638 else
4639
4640                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4641                           if test "x$LINE" != x ; then
4642                             eval "DEFAULT_$LINE"
4643                           else
4644                             no_cache=1
4645                           fi
4646
4647                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4648
4649 fi;
4650
4651           eval "$ac_cv_use_ipc"
4652           if test "$no_cache" != 1; then
4653             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4654           fi
4655
4656           if test "$wxUSE_IPC" = yes; then
4657             echo "$as_me:$LINENO: result: yes" >&5
4658 echo "${ECHO_T}yes" >&6
4659           else
4660             echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4662           fi
4663
4664
4665
4666           enablestring=
4667           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4668 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4669           no_cache=0
4670           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4671 if test "${enable_apple_ieee+set}" = set; then
4672   enableval="$enable_apple_ieee"
4673
4674                           if test "$enableval" = yes; then
4675                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4676                           else
4677                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4678                           fi
4679
4680 else
4681
4682                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4683                           if test "x$LINE" != x ; then
4684                             eval "DEFAULT_$LINE"
4685                           else
4686                             no_cache=1
4687                           fi
4688
4689                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4690
4691 fi;
4692
4693           eval "$ac_cv_use_apple_ieee"
4694           if test "$no_cache" != 1; then
4695             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4696           fi
4697
4698           if test "$wxUSE_APPLE_IEEE" = yes; then
4699             echo "$as_me:$LINENO: result: yes" >&5
4700 echo "${ECHO_T}yes" >&6
4701           else
4702             echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6
4704           fi
4705
4706
4707           enablestring=
4708           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4709 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4710           no_cache=0
4711           # Check whether --enable-arcstream or --disable-arcstream was given.
4712 if test "${enable_arcstream+set}" = set; then
4713   enableval="$enable_arcstream"
4714
4715                           if test "$enableval" = yes; then
4716                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
4717                           else
4718                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
4719                           fi
4720
4721 else
4722
4723                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
4724                           if test "x$LINE" != x ; then
4725                             eval "DEFAULT_$LINE"
4726                           else
4727                             no_cache=1
4728                           fi
4729
4730                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
4731
4732 fi;
4733
4734           eval "$ac_cv_use_arcstream"
4735           if test "$no_cache" != 1; then
4736             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4737           fi
4738
4739           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
4740             echo "$as_me:$LINENO: result: yes" >&5
4741 echo "${ECHO_T}yes" >&6
4742           else
4743             echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6
4745           fi
4746
4747
4748           enablestring=
4749           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4750 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4751           no_cache=0
4752           # Check whether --enable-backtrace or --disable-backtrace was given.
4753 if test "${enable_backtrace+set}" = set; then
4754   enableval="$enable_backtrace"
4755
4756                           if test "$enableval" = yes; then
4757                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4758                           else
4759                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4760                           fi
4761
4762 else
4763
4764                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4765                           if test "x$LINE" != x ; then
4766                             eval "DEFAULT_$LINE"
4767                           else
4768                             no_cache=1
4769                           fi
4770
4771                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4772
4773 fi;
4774
4775           eval "$ac_cv_use_backtrace"
4776           if test "$no_cache" != 1; then
4777             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4778           fi
4779
4780           if test "$wxUSE_STACKWALKER" = yes; then
4781             echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6
4783           else
4784             echo "$as_me:$LINENO: result: no" >&5
4785 echo "${ECHO_T}no" >&6
4786           fi
4787
4788
4789           enablestring=
4790           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4791 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4792           no_cache=0
4793           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4794 if test "${enable_catch_segvs+set}" = set; then
4795   enableval="$enable_catch_segvs"
4796
4797                           if test "$enableval" = yes; then
4798                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4799                           else
4800                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4801                           fi
4802
4803 else
4804
4805                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4806                           if test "x$LINE" != x ; then
4807                             eval "DEFAULT_$LINE"
4808                           else
4809                             no_cache=1
4810                           fi
4811
4812                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4813
4814 fi;
4815
4816           eval "$ac_cv_use_catch_segvs"
4817           if test "$no_cache" != 1; then
4818             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4819           fi
4820
4821           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4822             echo "$as_me:$LINENO: result: yes" >&5
4823 echo "${ECHO_T}yes" >&6
4824           else
4825             echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6
4827           fi
4828
4829
4830           enablestring=
4831           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4832 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4833           no_cache=0
4834           # Check whether --enable-cmdline or --disable-cmdline was given.
4835 if test "${enable_cmdline+set}" = set; then
4836   enableval="$enable_cmdline"
4837
4838                           if test "$enableval" = yes; then
4839                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4840                           else
4841                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4842                           fi
4843
4844 else
4845
4846                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4847                           if test "x$LINE" != x ; then
4848                             eval "DEFAULT_$LINE"
4849                           else
4850                             no_cache=1
4851                           fi
4852
4853                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4854
4855 fi;
4856
4857           eval "$ac_cv_use_cmdline"
4858           if test "$no_cache" != 1; then
4859             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4860           fi
4861
4862           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4863             echo "$as_me:$LINENO: result: yes" >&5
4864 echo "${ECHO_T}yes" >&6
4865           else
4866             echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4868           fi
4869
4870
4871           enablestring=
4872           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4873 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4874           no_cache=0
4875           # Check whether --enable-datetime or --disable-datetime was given.
4876 if test "${enable_datetime+set}" = set; then
4877   enableval="$enable_datetime"
4878
4879                           if test "$enableval" = yes; then
4880                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4881                           else
4882                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4883                           fi
4884
4885 else
4886
4887                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4888                           if test "x$LINE" != x ; then
4889                             eval "DEFAULT_$LINE"
4890                           else
4891                             no_cache=1
4892                           fi
4893
4894                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4895
4896 fi;
4897
4898           eval "$ac_cv_use_datetime"
4899           if test "$no_cache" != 1; then
4900             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4901           fi
4902
4903           if test "$wxUSE_DATETIME" = yes; then
4904             echo "$as_me:$LINENO: result: yes" >&5
4905 echo "${ECHO_T}yes" >&6
4906           else
4907             echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6
4909           fi
4910
4911
4912           enablestring=
4913           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4914 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4915           no_cache=0
4916           # Check whether --enable-debugreport or --disable-debugreport was given.
4917 if test "${enable_debugreport+set}" = set; then
4918   enableval="$enable_debugreport"
4919
4920                           if test "$enableval" = yes; then
4921                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4922                           else
4923                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4924                           fi
4925
4926 else
4927
4928                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4929                           if test "x$LINE" != x ; then
4930                             eval "DEFAULT_$LINE"
4931                           else
4932                             no_cache=1
4933                           fi
4934
4935                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4936
4937 fi;
4938
4939           eval "$ac_cv_use_debugreport"
4940           if test "$no_cache" != 1; then
4941             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4942           fi
4943
4944           if test "$wxUSE_DEBUGREPORT" = yes; then
4945             echo "$as_me:$LINENO: result: yes" >&5
4946 echo "${ECHO_T}yes" >&6
4947           else
4948             echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6
4950           fi
4951
4952
4953           enablestring=
4954           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4955 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4956           no_cache=0
4957           # Check whether --enable-dialupman or --disable-dialupman was given.
4958 if test "${enable_dialupman+set}" = set; then
4959   enableval="$enable_dialupman"
4960
4961                           if test "$enableval" = yes; then
4962                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4963                           else
4964                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4965                           fi
4966
4967 else
4968
4969                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4970                           if test "x$LINE" != x ; then
4971                             eval "DEFAULT_$LINE"
4972                           else
4973                             no_cache=1
4974                           fi
4975
4976                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4977
4978 fi;
4979
4980           eval "$ac_cv_use_dialupman"
4981           if test "$no_cache" != 1; then
4982             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4983           fi
4984
4985           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4986             echo "$as_me:$LINENO: result: yes" >&5
4987 echo "${ECHO_T}yes" >&6
4988           else
4989             echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6
4991           fi
4992
4993
4994           enablestring=
4995           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4996 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4997           no_cache=0
4998           # Check whether --enable-dynlib or --disable-dynlib was given.
4999 if test "${enable_dynlib+set}" = set; then
5000   enableval="$enable_dynlib"
5001
5002                           if test "$enableval" = yes; then
5003                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5004                           else
5005                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5006                           fi
5007
5008 else
5009
5010                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5011                           if test "x$LINE" != x ; then
5012                             eval "DEFAULT_$LINE"
5013                           else
5014                             no_cache=1
5015                           fi
5016
5017                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5018
5019 fi;
5020
5021           eval "$ac_cv_use_dynlib"
5022           if test "$no_cache" != 1; then
5023             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5024           fi
5025
5026           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5027             echo "$as_me:$LINENO: result: yes" >&5
5028 echo "${ECHO_T}yes" >&6
5029           else
5030             echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6
5032           fi
5033
5034
5035           enablestring=
5036           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5037 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5038           no_cache=0
5039           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5040 if test "${enable_dynamicloader+set}" = set; then
5041   enableval="$enable_dynamicloader"
5042
5043                           if test "$enableval" = yes; then
5044                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5045                           else
5046                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5047                           fi
5048
5049 else
5050
5051                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5052                           if test "x$LINE" != x ; then
5053                             eval "DEFAULT_$LINE"
5054                           else
5055                             no_cache=1
5056                           fi
5057
5058                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5059
5060 fi;
5061
5062           eval "$ac_cv_use_dynamicloader"
5063           if test "$no_cache" != 1; then
5064             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5065           fi
5066
5067           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5068             echo "$as_me:$LINENO: result: yes" >&5
5069 echo "${ECHO_T}yes" >&6
5070           else
5071             echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6
5073           fi
5074
5075
5076           enablestring=
5077           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5078 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5079           no_cache=0
5080           # Check whether --enable-exceptions or --disable-exceptions was given.
5081 if test "${enable_exceptions+set}" = set; then
5082   enableval="$enable_exceptions"
5083
5084                           if test "$enableval" = yes; then
5085                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5086                           else
5087                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5088                           fi
5089
5090 else
5091
5092                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5093                           if test "x$LINE" != x ; then
5094                             eval "DEFAULT_$LINE"
5095                           else
5096                             no_cache=1
5097                           fi
5098
5099                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5100
5101 fi;
5102
5103           eval "$ac_cv_use_exceptions"
5104           if test "$no_cache" != 1; then
5105             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5106           fi
5107
5108           if test "$wxUSE_EXCEPTIONS" = yes; then
5109             echo "$as_me:$LINENO: result: yes" >&5
5110 echo "${ECHO_T}yes" >&6
5111           else
5112             echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6
5114           fi
5115
5116
5117           enablestring=
5118           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5119 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5120           no_cache=0
5121           # Check whether --enable-ffile or --disable-ffile was given.
5122 if test "${enable_ffile+set}" = set; then
5123   enableval="$enable_ffile"
5124
5125                           if test "$enableval" = yes; then
5126                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5127                           else
5128                             ac_cv_use_ffile='wxUSE_FFILE=no'
5129                           fi
5130
5131 else
5132
5133                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5134                           if test "x$LINE" != x ; then
5135                             eval "DEFAULT_$LINE"
5136                           else
5137                             no_cache=1
5138                           fi
5139
5140                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5141
5142 fi;
5143
5144           eval "$ac_cv_use_ffile"
5145           if test "$no_cache" != 1; then
5146             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5147           fi
5148
5149           if test "$wxUSE_FFILE" = yes; then
5150             echo "$as_me:$LINENO: result: yes" >&5
5151 echo "${ECHO_T}yes" >&6
5152           else
5153             echo "$as_me:$LINENO: result: no" >&5
5154 echo "${ECHO_T}no" >&6
5155           fi
5156
5157
5158           enablestring=
5159           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5160 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5161           no_cache=0
5162           # Check whether --enable-file or --disable-file was given.
5163 if test "${enable_file+set}" = set; then
5164   enableval="$enable_file"
5165
5166                           if test "$enableval" = yes; then
5167                             ac_cv_use_file='wxUSE_FILE=yes'
5168                           else
5169                             ac_cv_use_file='wxUSE_FILE=no'
5170                           fi
5171
5172 else
5173
5174                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5175                           if test "x$LINE" != x ; then
5176                             eval "DEFAULT_$LINE"
5177                           else
5178                             no_cache=1
5179                           fi
5180
5181                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5182
5183 fi;
5184
5185           eval "$ac_cv_use_file"
5186           if test "$no_cache" != 1; then
5187             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5188           fi
5189
5190           if test "$wxUSE_FILE" = yes; then
5191             echo "$as_me:$LINENO: result: yes" >&5
5192 echo "${ECHO_T}yes" >&6
5193           else
5194             echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5196           fi
5197
5198
5199           enablestring=
5200           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5201 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5202           no_cache=0
5203           # Check whether --enable-filesystem or --disable-filesystem was given.
5204 if test "${enable_filesystem+set}" = set; then
5205   enableval="$enable_filesystem"
5206
5207                           if test "$enableval" = yes; then
5208                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5209                           else
5210                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5211                           fi
5212
5213 else
5214
5215                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5216                           if test "x$LINE" != x ; then
5217                             eval "DEFAULT_$LINE"
5218                           else
5219                             no_cache=1
5220                           fi
5221
5222                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5223
5224 fi;
5225
5226           eval "$ac_cv_use_filesystem"
5227           if test "$no_cache" != 1; then
5228             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5229           fi
5230
5231           if test "$wxUSE_FILESYSTEM" = yes; then
5232             echo "$as_me:$LINENO: result: yes" >&5
5233 echo "${ECHO_T}yes" >&6
5234           else
5235             echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5237           fi
5238
5239
5240           enablestring=
5241           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5242 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5243           no_cache=0
5244           # Check whether --enable-fontmap or --disable-fontmap was given.
5245 if test "${enable_fontmap+set}" = set; then
5246   enableval="$enable_fontmap"
5247
5248                           if test "$enableval" = yes; then
5249                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5250                           else
5251                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5252                           fi
5253
5254 else
5255
5256                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5257                           if test "x$LINE" != x ; then
5258                             eval "DEFAULT_$LINE"
5259                           else
5260                             no_cache=1
5261                           fi
5262
5263                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5264
5265 fi;
5266
5267           eval "$ac_cv_use_fontmap"
5268           if test "$no_cache" != 1; then
5269             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5270           fi
5271
5272           if test "$wxUSE_FONTMAP" = yes; then
5273             echo "$as_me:$LINENO: result: yes" >&5
5274 echo "${ECHO_T}yes" >&6
5275           else
5276             echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6
5278           fi
5279
5280
5281           enablestring=
5282           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5283 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5284           no_cache=0
5285           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5286 if test "${enable_fs_inet+set}" = set; then
5287   enableval="$enable_fs_inet"
5288
5289                           if test "$enableval" = yes; then
5290                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5291                           else
5292                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5293                           fi
5294
5295 else
5296
5297                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5298                           if test "x$LINE" != x ; then
5299                             eval "DEFAULT_$LINE"
5300                           else
5301                             no_cache=1
5302                           fi
5303
5304                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5305
5306 fi;
5307
5308           eval "$ac_cv_use_fs_inet"
5309           if test "$no_cache" != 1; then
5310             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5311           fi
5312
5313           if test "$wxUSE_FS_INET" = yes; then
5314             echo "$as_me:$LINENO: result: yes" >&5
5315 echo "${ECHO_T}yes" >&6
5316           else
5317             echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5319           fi
5320
5321
5322           enablestring=
5323           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5324 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5325           no_cache=0
5326           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5327 if test "${enable_fs_zip+set}" = set; then
5328   enableval="$enable_fs_zip"
5329
5330                           if test "$enableval" = yes; then
5331                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5332                           else
5333                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5334                           fi
5335
5336 else
5337
5338                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5339                           if test "x$LINE" != x ; then
5340                             eval "DEFAULT_$LINE"
5341                           else
5342                             no_cache=1
5343                           fi
5344
5345                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5346
5347 fi;
5348
5349           eval "$ac_cv_use_fs_zip"
5350           if test "$no_cache" != 1; then
5351             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5352           fi
5353
5354           if test "$wxUSE_FS_ZIP" = yes; then
5355             echo "$as_me:$LINENO: result: yes" >&5
5356 echo "${ECHO_T}yes" >&6
5357           else
5358             echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5360           fi
5361
5362
5363           enablestring=
5364           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5365 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5366           no_cache=0
5367           # Check whether --enable-geometry or --disable-geometry was given.
5368 if test "${enable_geometry+set}" = set; then
5369   enableval="$enable_geometry"
5370
5371                           if test "$enableval" = yes; then
5372                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5373                           else
5374                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5375                           fi
5376
5377 else
5378
5379                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5380                           if test "x$LINE" != x ; then
5381                             eval "DEFAULT_$LINE"
5382                           else
5383                             no_cache=1
5384                           fi
5385
5386                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5387
5388 fi;
5389
5390           eval "$ac_cv_use_geometry"
5391           if test "$no_cache" != 1; then
5392             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5393           fi
5394
5395           if test "$wxUSE_GEOMETRY" = yes; then
5396             echo "$as_me:$LINENO: result: yes" >&5
5397 echo "${ECHO_T}yes" >&6
5398           else
5399             echo "$as_me:$LINENO: result: no" >&5
5400 echo "${ECHO_T}no" >&6
5401           fi
5402
5403
5404           enablestring=
5405           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5406 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5407           no_cache=0
5408           # Check whether --enable-log or --disable-log was given.
5409 if test "${enable_log+set}" = set; then
5410   enableval="$enable_log"
5411
5412                           if test "$enableval" = yes; then
5413                             ac_cv_use_log='wxUSE_LOG=yes'
5414                           else
5415                             ac_cv_use_log='wxUSE_LOG=no'
5416                           fi
5417
5418 else
5419
5420                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5421                           if test "x$LINE" != x ; then
5422                             eval "DEFAULT_$LINE"
5423                           else
5424                             no_cache=1
5425                           fi
5426
5427                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5428
5429 fi;
5430
5431           eval "$ac_cv_use_log"
5432           if test "$no_cache" != 1; then
5433             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5434           fi
5435
5436           if test "$wxUSE_LOG" = yes; then
5437             echo "$as_me:$LINENO: result: yes" >&5
5438 echo "${ECHO_T}yes" >&6
5439           else
5440             echo "$as_me:$LINENO: result: no" >&5
5441 echo "${ECHO_T}no" >&6
5442           fi
5443
5444
5445           enablestring=
5446           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5447 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5448           no_cache=0
5449           # Check whether --enable-longlong or --disable-longlong was given.
5450 if test "${enable_longlong+set}" = set; then
5451   enableval="$enable_longlong"
5452
5453                           if test "$enableval" = yes; then
5454                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5455                           else
5456                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5457                           fi
5458
5459 else
5460
5461                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5462                           if test "x$LINE" != x ; then
5463                             eval "DEFAULT_$LINE"
5464                           else
5465                             no_cache=1
5466                           fi
5467
5468                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5469
5470 fi;
5471
5472           eval "$ac_cv_use_longlong"
5473           if test "$no_cache" != 1; then
5474             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5475           fi
5476
5477           if test "$wxUSE_LONGLONG" = yes; then
5478             echo "$as_me:$LINENO: result: yes" >&5
5479 echo "${ECHO_T}yes" >&6
5480           else
5481             echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6
5483           fi
5484
5485
5486           enablestring=
5487           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5488 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5489           no_cache=0
5490           # Check whether --enable-mimetype or --disable-mimetype was given.
5491 if test "${enable_mimetype+set}" = set; then
5492   enableval="$enable_mimetype"
5493
5494                           if test "$enableval" = yes; then
5495                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5496                           else
5497                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5498                           fi
5499
5500 else
5501
5502                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5503                           if test "x$LINE" != x ; then
5504                             eval "DEFAULT_$LINE"
5505                           else
5506                             no_cache=1
5507                           fi
5508
5509                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5510
5511 fi;
5512
5513           eval "$ac_cv_use_mimetype"
5514           if test "$no_cache" != 1; then
5515             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5516           fi
5517
5518           if test "$wxUSE_MIMETYPE" = yes; then
5519             echo "$as_me:$LINENO: result: yes" >&5
5520 echo "${ECHO_T}yes" >&6
5521           else
5522             echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6
5524           fi
5525
5526
5527           enablestring=
5528           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5529 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5530           no_cache=0
5531           # Check whether --enable-mslu or --disable-mslu was given.
5532 if test "${enable_mslu+set}" = set; then
5533   enableval="$enable_mslu"
5534
5535                           if test "$enableval" = yes; then
5536                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5537                           else
5538                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5539                           fi
5540
5541 else
5542
5543                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5544                           if test "x$LINE" != x ; then
5545                             eval "DEFAULT_$LINE"
5546                           else
5547                             no_cache=1
5548                           fi
5549
5550                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5551
5552 fi;
5553
5554           eval "$ac_cv_use_mslu"
5555           if test "$no_cache" != 1; then
5556             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5557           fi
5558
5559           if test "$wxUSE_UNICODE_MSLU" = yes; then
5560             echo "$as_me:$LINENO: result: yes" >&5
5561 echo "${ECHO_T}yes" >&6
5562           else
5563             echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6
5565           fi
5566
5567
5568           enablestring=
5569           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5570 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5571           no_cache=0
5572           # Check whether --enable-snglinst or --disable-snglinst was given.
5573 if test "${enable_snglinst+set}" = set; then
5574   enableval="$enable_snglinst"
5575
5576                           if test "$enableval" = yes; then
5577                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5578                           else
5579                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5580                           fi
5581
5582 else
5583
5584                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5585                           if test "x$LINE" != x ; then
5586                             eval "DEFAULT_$LINE"
5587                           else
5588                             no_cache=1
5589                           fi
5590
5591                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5592
5593 fi;
5594
5595           eval "$ac_cv_use_snglinst"
5596           if test "$no_cache" != 1; then
5597             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5598           fi
5599
5600           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5601             echo "$as_me:$LINENO: result: yes" >&5
5602 echo "${ECHO_T}yes" >&6
5603           else
5604             echo "$as_me:$LINENO: result: no" >&5
5605 echo "${ECHO_T}no" >&6
5606           fi
5607
5608
5609           enablestring=
5610           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5611 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5612           no_cache=0
5613           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5614 if test "${enable_std_iostreams+set}" = set; then
5615   enableval="$enable_std_iostreams"
5616
5617                           if test "$enableval" = yes; then
5618                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5619                           else
5620                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5621                           fi
5622
5623 else
5624
5625                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5626                           if test "x$LINE" != x ; then
5627                             eval "DEFAULT_$LINE"
5628                           else
5629                             no_cache=1
5630                           fi
5631
5632                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5633
5634 fi;
5635
5636           eval "$ac_cv_use_std_iostreams"
5637           if test "$no_cache" != 1; then
5638             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5639           fi
5640
5641           if test "$wxUSE_STD_IOSTREAM" = yes; then
5642             echo "$as_me:$LINENO: result: yes" >&5
5643 echo "${ECHO_T}yes" >&6
5644           else
5645             echo "$as_me:$LINENO: result: no" >&5
5646 echo "${ECHO_T}no" >&6
5647           fi
5648
5649
5650           enablestring=
5651           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5652 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5653           no_cache=0
5654           # Check whether --enable-std_string or --disable-std_string was given.
5655 if test "${enable_std_string+set}" = set; then
5656   enableval="$enable_std_string"
5657
5658                           if test "$enableval" = yes; then
5659                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5660                           else
5661                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5662                           fi
5663
5664 else
5665
5666                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5667                           if test "x$LINE" != x ; then
5668                             eval "DEFAULT_$LINE"
5669                           else
5670                             no_cache=1
5671                           fi
5672
5673                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5674
5675 fi;
5676
5677           eval "$ac_cv_use_std_string"
5678           if test "$no_cache" != 1; then
5679             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5680           fi
5681
5682           if test "$wxUSE_STD_STRING" = yes; then
5683             echo "$as_me:$LINENO: result: yes" >&5
5684 echo "${ECHO_T}yes" >&6
5685           else
5686             echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6
5688           fi
5689
5690
5691           enablestring=
5692           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5693 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5694           no_cache=0
5695           # Check whether --enable-stdpaths or --disable-stdpaths was given.
5696 if test "${enable_stdpaths+set}" = set; then
5697   enableval="$enable_stdpaths"
5698
5699                           if test "$enableval" = yes; then
5700                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
5701                           else
5702                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
5703                           fi
5704
5705 else
5706
5707                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
5708                           if test "x$LINE" != x ; then
5709                             eval "DEFAULT_$LINE"
5710                           else
5711                             no_cache=1
5712                           fi
5713
5714                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
5715
5716 fi;
5717
5718           eval "$ac_cv_use_stdpaths"
5719           if test "$no_cache" != 1; then
5720             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
5721           fi
5722
5723           if test "$wxUSE_STDPATHS" = yes; then
5724             echo "$as_me:$LINENO: result: yes" >&5
5725 echo "${ECHO_T}yes" >&6
5726           else
5727             echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6
5729           fi
5730
5731
5732           enablestring=
5733           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5734 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5735           no_cache=0
5736           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5737 if test "${enable_stopwatch+set}" = set; then
5738   enableval="$enable_stopwatch"
5739
5740                           if test "$enableval" = yes; then
5741                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5742                           else
5743                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5744                           fi
5745
5746 else
5747
5748                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5749                           if test "x$LINE" != x ; then
5750                             eval "DEFAULT_$LINE"
5751                           else
5752                             no_cache=1
5753                           fi
5754
5755                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5756
5757 fi;
5758
5759           eval "$ac_cv_use_stopwatch"
5760           if test "$no_cache" != 1; then
5761             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5762           fi
5763
5764           if test "$wxUSE_STOPWATCH" = yes; then
5765             echo "$as_me:$LINENO: result: yes" >&5
5766 echo "${ECHO_T}yes" >&6
5767           else
5768             echo "$as_me:$LINENO: result: no" >&5
5769 echo "${ECHO_T}no" >&6
5770           fi
5771
5772
5773           enablestring=
5774           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5775 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5776           no_cache=0
5777           # Check whether --enable-streams or --disable-streams was given.
5778 if test "${enable_streams+set}" = set; then
5779   enableval="$enable_streams"
5780
5781                           if test "$enableval" = yes; then
5782                             ac_cv_use_streams='wxUSE_STREAMS=yes'
5783                           else
5784                             ac_cv_use_streams='wxUSE_STREAMS=no'
5785                           fi
5786
5787 else
5788
5789                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5790                           if test "x$LINE" != x ; then
5791                             eval "DEFAULT_$LINE"
5792                           else
5793                             no_cache=1
5794                           fi
5795
5796                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5797
5798 fi;
5799
5800           eval "$ac_cv_use_streams"
5801           if test "$no_cache" != 1; then
5802             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5803           fi
5804
5805           if test "$wxUSE_STREAMS" = yes; then
5806             echo "$as_me:$LINENO: result: yes" >&5
5807 echo "${ECHO_T}yes" >&6
5808           else
5809             echo "$as_me:$LINENO: result: no" >&5
5810 echo "${ECHO_T}no" >&6
5811           fi
5812
5813
5814           enablestring=
5815           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5816 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5817           no_cache=0
5818           # Check whether --enable-system_options or --disable-system_options was given.
5819 if test "${enable_system_options+set}" = set; then
5820   enableval="$enable_system_options"
5821
5822                           if test "$enableval" = yes; then
5823                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5824                           else
5825                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5826                           fi
5827
5828 else
5829
5830                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5831                           if test "x$LINE" != x ; then
5832                             eval "DEFAULT_$LINE"
5833                           else
5834                             no_cache=1
5835                           fi
5836
5837                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5838
5839 fi;
5840
5841           eval "$ac_cv_use_system_options"
5842           if test "$no_cache" != 1; then
5843             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5844           fi
5845
5846           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5847             echo "$as_me:$LINENO: result: yes" >&5
5848 echo "${ECHO_T}yes" >&6
5849           else
5850             echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6
5852           fi
5853
5854
5855           enablestring=
5856           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5857 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5858           no_cache=0
5859           # Check whether --enable-textbuf or --disable-textbuf was given.
5860 if test "${enable_textbuf+set}" = set; then
5861   enableval="$enable_textbuf"
5862
5863                           if test "$enableval" = yes; then
5864                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5865                           else
5866                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5867                           fi
5868
5869 else
5870
5871                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5872                           if test "x$LINE" != x ; then
5873                             eval "DEFAULT_$LINE"
5874                           else
5875                             no_cache=1
5876                           fi
5877
5878                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5879
5880 fi;
5881
5882           eval "$ac_cv_use_textbuf"
5883           if test "$no_cache" != 1; then
5884             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5885           fi
5886
5887           if test "$wxUSE_TEXTBUFFER" = yes; then
5888             echo "$as_me:$LINENO: result: yes" >&5
5889 echo "${ECHO_T}yes" >&6
5890           else
5891             echo "$as_me:$LINENO: result: no" >&5
5892 echo "${ECHO_T}no" >&6
5893           fi
5894
5895
5896           enablestring=
5897           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5898 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5899           no_cache=0
5900           # Check whether --enable-textfile or --disable-textfile was given.
5901 if test "${enable_textfile+set}" = set; then
5902   enableval="$enable_textfile"
5903
5904                           if test "$enableval" = yes; then
5905                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5906                           else
5907                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5908                           fi
5909
5910 else
5911
5912                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5913                           if test "x$LINE" != x ; then
5914                             eval "DEFAULT_$LINE"
5915                           else
5916                             no_cache=1
5917                           fi
5918
5919                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5920
5921 fi;
5922
5923           eval "$ac_cv_use_textfile"
5924           if test "$no_cache" != 1; then
5925             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5926           fi
5927
5928           if test "$wxUSE_TEXTFILE" = yes; then
5929             echo "$as_me:$LINENO: result: yes" >&5
5930 echo "${ECHO_T}yes" >&6
5931           else
5932             echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5934           fi
5935
5936
5937           enablestring=
5938           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5939 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5940           no_cache=0
5941           # Check whether --enable-timer or --disable-timer was given.
5942 if test "${enable_timer+set}" = set; then
5943   enableval="$enable_timer"
5944
5945                           if test "$enableval" = yes; then
5946                             ac_cv_use_timer='wxUSE_TIMER=yes'
5947                           else
5948                             ac_cv_use_timer='wxUSE_TIMER=no'
5949                           fi
5950
5951 else
5952
5953                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5954                           if test "x$LINE" != x ; then
5955                             eval "DEFAULT_$LINE"
5956                           else
5957                             no_cache=1
5958                           fi
5959
5960                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5961
5962 fi;
5963
5964           eval "$ac_cv_use_timer"
5965           if test "$no_cache" != 1; then
5966             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5967           fi
5968
5969           if test "$wxUSE_TIMER" = yes; then
5970             echo "$as_me:$LINENO: result: yes" >&5
5971 echo "${ECHO_T}yes" >&6
5972           else
5973             echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5975           fi
5976
5977
5978           enablestring=
5979           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5980 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5981           no_cache=0
5982           # Check whether --enable-unicode or --disable-unicode was given.
5983 if test "${enable_unicode+set}" = set; then
5984   enableval="$enable_unicode"
5985
5986                           if test "$enableval" = yes; then
5987                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
5988                           else
5989                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5990                           fi
5991
5992 else
5993
5994                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5995                           if test "x$LINE" != x ; then
5996                             eval "DEFAULT_$LINE"
5997                           else
5998                             no_cache=1
5999                           fi
6000
6001                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6002
6003 fi;
6004
6005           eval "$ac_cv_use_unicode"
6006           if test "$no_cache" != 1; then
6007             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6008           fi
6009
6010           if test "$wxUSE_UNICODE" = yes; then
6011             echo "$as_me:$LINENO: result: yes" >&5
6012 echo "${ECHO_T}yes" >&6
6013           else
6014             echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6016           fi
6017
6018
6019           enablestring=
6020           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6021 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6022           no_cache=0
6023           # Check whether --enable-sound or --disable-sound was given.
6024 if test "${enable_sound+set}" = set; then
6025   enableval="$enable_sound"
6026
6027                           if test "$enableval" = yes; then
6028                             ac_cv_use_sound='wxUSE_SOUND=yes'
6029                           else
6030                             ac_cv_use_sound='wxUSE_SOUND=no'
6031                           fi
6032
6033 else
6034
6035                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6036                           if test "x$LINE" != x ; then
6037                             eval "DEFAULT_$LINE"
6038                           else
6039                             no_cache=1
6040                           fi
6041
6042                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6043
6044 fi;
6045
6046           eval "$ac_cv_use_sound"
6047           if test "$no_cache" != 1; then
6048             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6049           fi
6050
6051           if test "$wxUSE_SOUND" = yes; then
6052             echo "$as_me:$LINENO: result: yes" >&5
6053 echo "${ECHO_T}yes" >&6
6054           else
6055             echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6
6057           fi
6058
6059
6060           enablestring=
6061           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6062 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6063           no_cache=0
6064           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6065 if test "${enable_mediactrl+set}" = set; then
6066   enableval="$enable_mediactrl"
6067
6068                           if test "$enableval" = yes; then
6069                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6070                           else
6071                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6072                           fi
6073
6074 else
6075
6076                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6077                           if test "x$LINE" != x ; then
6078                             eval "DEFAULT_$LINE"
6079                           else
6080                             no_cache=1
6081                           fi
6082
6083                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6084
6085 fi;
6086
6087           eval "$ac_cv_use_mediactrl"
6088           if test "$no_cache" != 1; then
6089             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6090           fi
6091
6092           if test "$wxUSE_MEDIACTRL" = yes; then
6093             echo "$as_me:$LINENO: result: yes" >&5
6094 echo "${ECHO_T}yes" >&6
6095           else
6096             echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6098           fi
6099
6100
6101           enablestring=
6102           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6103 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6104           no_cache=0
6105           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6106 if test "${enable_wxprintfv+set}" = set; then
6107   enableval="$enable_wxprintfv"
6108
6109                           if test "$enableval" = yes; then
6110                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6111                           else
6112                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6113                           fi
6114
6115 else
6116
6117                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6118                           if test "x$LINE" != x ; then
6119                             eval "DEFAULT_$LINE"
6120                           else
6121                             no_cache=1
6122                           fi
6123
6124                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6125
6126 fi;
6127
6128           eval "$ac_cv_use_wxprintfv"
6129           if test "$no_cache" != 1; then
6130             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6131           fi
6132
6133           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6134             echo "$as_me:$LINENO: result: yes" >&5
6135 echo "${ECHO_T}yes" >&6
6136           else
6137             echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6
6139           fi
6140
6141
6142           enablestring=
6143           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6144 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6145           no_cache=0
6146           # Check whether --enable-zipstream or --disable-zipstream was given.
6147 if test "${enable_zipstream+set}" = set; then
6148   enableval="$enable_zipstream"
6149
6150                           if test "$enableval" = yes; then
6151                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6152                           else
6153                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6154                           fi
6155
6156 else
6157
6158                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6159                           if test "x$LINE" != x ; then
6160                             eval "DEFAULT_$LINE"
6161                           else
6162                             no_cache=1
6163                           fi
6164
6165                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6166
6167 fi;
6168
6169           eval "$ac_cv_use_zipstream"
6170           if test "$no_cache" != 1; then
6171             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6172           fi
6173
6174           if test "$wxUSE_ZIPSTREAM" = yes; then
6175             echo "$as_me:$LINENO: result: yes" >&5
6176 echo "${ECHO_T}yes" >&6
6177           else
6178             echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6
6180           fi
6181
6182
6183
6184           enablestring=
6185           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6186 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6187           no_cache=0
6188           # Check whether --enable-url or --disable-url was given.
6189 if test "${enable_url+set}" = set; then
6190   enableval="$enable_url"
6191
6192                           if test "$enableval" = yes; then
6193                             ac_cv_use_url='wxUSE_URL=yes'
6194                           else
6195                             ac_cv_use_url='wxUSE_URL=no'
6196                           fi
6197
6198 else
6199
6200                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6201                           if test "x$LINE" != x ; then
6202                             eval "DEFAULT_$LINE"
6203                           else
6204                             no_cache=1
6205                           fi
6206
6207                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6208
6209 fi;
6210
6211           eval "$ac_cv_use_url"
6212           if test "$no_cache" != 1; then
6213             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6214           fi
6215
6216           if test "$wxUSE_URL" = yes; then
6217             echo "$as_me:$LINENO: result: yes" >&5
6218 echo "${ECHO_T}yes" >&6
6219           else
6220             echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6
6222           fi
6223
6224
6225           enablestring=
6226           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6227 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6228           no_cache=0
6229           # Check whether --enable-protocol or --disable-protocol was given.
6230 if test "${enable_protocol+set}" = set; then
6231   enableval="$enable_protocol"
6232
6233                           if test "$enableval" = yes; then
6234                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6235                           else
6236                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6237                           fi
6238
6239 else
6240
6241                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6242                           if test "x$LINE" != x ; then
6243                             eval "DEFAULT_$LINE"
6244                           else
6245                             no_cache=1
6246                           fi
6247
6248                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6249
6250 fi;
6251
6252           eval "$ac_cv_use_protocol"
6253           if test "$no_cache" != 1; then
6254             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6255           fi
6256
6257           if test "$wxUSE_PROTOCOL" = yes; then
6258             echo "$as_me:$LINENO: result: yes" >&5
6259 echo "${ECHO_T}yes" >&6
6260           else
6261             echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6
6263           fi
6264
6265
6266           enablestring=
6267           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6268 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6269           no_cache=0
6270           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6271 if test "${enable_protocol_http+set}" = set; then
6272   enableval="$enable_protocol_http"
6273
6274                           if test "$enableval" = yes; then
6275                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6276                           else
6277                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6278                           fi
6279
6280 else
6281
6282                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6283                           if test "x$LINE" != x ; then
6284                             eval "DEFAULT_$LINE"
6285                           else
6286                             no_cache=1
6287                           fi
6288
6289                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6290
6291 fi;
6292
6293           eval "$ac_cv_use_protocol_http"
6294           if test "$no_cache" != 1; then
6295             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6296           fi
6297
6298           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6299             echo "$as_me:$LINENO: result: yes" >&5
6300 echo "${ECHO_T}yes" >&6
6301           else
6302             echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6
6304           fi
6305
6306
6307           enablestring=
6308           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6309 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6310           no_cache=0
6311           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6312 if test "${enable_protocol_ftp+set}" = set; then
6313   enableval="$enable_protocol_ftp"
6314
6315                           if test "$enableval" = yes; then
6316                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6317                           else
6318                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6319                           fi
6320
6321 else
6322
6323                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6324                           if test "x$LINE" != x ; then
6325                             eval "DEFAULT_$LINE"
6326                           else
6327                             no_cache=1
6328                           fi
6329
6330                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6331
6332 fi;
6333
6334           eval "$ac_cv_use_protocol_ftp"
6335           if test "$no_cache" != 1; then
6336             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6337           fi
6338
6339           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6340             echo "$as_me:$LINENO: result: yes" >&5
6341 echo "${ECHO_T}yes" >&6
6342           else
6343             echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6
6345           fi
6346
6347
6348           enablestring=
6349           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6350 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6351           no_cache=0
6352           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6353 if test "${enable_protocol_file+set}" = set; then
6354   enableval="$enable_protocol_file"
6355
6356                           if test "$enableval" = yes; then
6357                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6358                           else
6359                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6360                           fi
6361
6362 else
6363
6364                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6365                           if test "x$LINE" != x ; then
6366                             eval "DEFAULT_$LINE"
6367                           else
6368                             no_cache=1
6369                           fi
6370
6371                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6372
6373 fi;
6374
6375           eval "$ac_cv_use_protocol_file"
6376           if test "$no_cache" != 1; then
6377             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6378           fi
6379
6380           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6381             echo "$as_me:$LINENO: result: yes" >&5
6382 echo "${ECHO_T}yes" >&6
6383           else
6384             echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6
6386           fi
6387
6388
6389
6390
6391
6392           enablestring=
6393           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6394 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6395           no_cache=0
6396           # Check whether --enable-threads or --disable-threads was given.
6397 if test "${enable_threads+set}" = set; then
6398   enableval="$enable_threads"
6399
6400                           if test "$enableval" = yes; then
6401                             ac_cv_use_threads='wxUSE_THREADS=yes'
6402                           else
6403                             ac_cv_use_threads='wxUSE_THREADS=no'
6404                           fi
6405
6406 else
6407
6408                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6409                           if test "x$LINE" != x ; then
6410                             eval "DEFAULT_$LINE"
6411                           else
6412                             no_cache=1
6413                           fi
6414
6415                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6416
6417 fi;
6418
6419           eval "$ac_cv_use_threads"
6420           if test "$no_cache" != 1; then
6421             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6422           fi
6423
6424           if test "$wxUSE_THREADS" = yes; then
6425             echo "$as_me:$LINENO: result: yes" >&5
6426 echo "${ECHO_T}yes" >&6
6427           else
6428             echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6
6430           fi
6431
6432
6433 if test "$wxUSE_GUI" = "yes"; then
6434
6435
6436
6437           enablestring=
6438           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6439 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6440           no_cache=0
6441           # Check whether --enable-docview or --disable-docview was given.
6442 if test "${enable_docview+set}" = set; then
6443   enableval="$enable_docview"
6444
6445                           if test "$enableval" = yes; then
6446                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6447                           else
6448                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6449                           fi
6450
6451 else
6452
6453                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6454                           if test "x$LINE" != x ; then
6455                             eval "DEFAULT_$LINE"
6456                           else
6457                             no_cache=1
6458                           fi
6459
6460                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6461
6462 fi;
6463
6464           eval "$ac_cv_use_docview"
6465           if test "$no_cache" != 1; then
6466             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6467           fi
6468
6469           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6470             echo "$as_me:$LINENO: result: yes" >&5
6471 echo "${ECHO_T}yes" >&6
6472           else
6473             echo "$as_me:$LINENO: result: no" >&5
6474 echo "${ECHO_T}no" >&6
6475           fi
6476
6477
6478           enablestring=
6479           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6480 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6481           no_cache=0
6482           # Check whether --enable-help or --disable-help was given.
6483 if test "${enable_help+set}" = set; then
6484   enableval="$enable_help"
6485
6486                           if test "$enableval" = yes; then
6487                             ac_cv_use_help='wxUSE_HELP=yes'
6488                           else
6489                             ac_cv_use_help='wxUSE_HELP=no'
6490                           fi
6491
6492 else
6493
6494                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6495                           if test "x$LINE" != x ; then
6496                             eval "DEFAULT_$LINE"
6497                           else
6498                             no_cache=1
6499                           fi
6500
6501                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6502
6503 fi;
6504
6505           eval "$ac_cv_use_help"
6506           if test "$no_cache" != 1; then
6507             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6508           fi
6509
6510           if test "$wxUSE_HELP" = yes; then
6511             echo "$as_me:$LINENO: result: yes" >&5
6512 echo "${ECHO_T}yes" >&6
6513           else
6514             echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6
6516           fi
6517
6518
6519           enablestring=
6520           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6521 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6522           no_cache=0
6523           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6524 if test "${enable_mshtmlhelp+set}" = set; then
6525   enableval="$enable_mshtmlhelp"
6526
6527                           if test "$enableval" = yes; then
6528                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6529                           else
6530                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6531                           fi
6532
6533 else
6534
6535                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6536                           if test "x$LINE" != x ; then
6537                             eval "DEFAULT_$LINE"
6538                           else
6539                             no_cache=1
6540                           fi
6541
6542                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6543
6544 fi;
6545
6546           eval "$ac_cv_use_mshtmlhelp"
6547           if test "$no_cache" != 1; then
6548             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6549           fi
6550
6551           if test "$wxUSE_MS_HTML_HELP" = yes; then
6552             echo "$as_me:$LINENO: result: yes" >&5
6553 echo "${ECHO_T}yes" >&6
6554           else
6555             echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6
6557           fi
6558
6559
6560           enablestring=
6561           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6562 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6563           no_cache=0
6564           # Check whether --enable-html or --disable-html was given.
6565 if test "${enable_html+set}" = set; then
6566   enableval="$enable_html"
6567
6568                           if test "$enableval" = yes; then
6569                             ac_cv_use_html='wxUSE_HTML=yes'
6570                           else
6571                             ac_cv_use_html='wxUSE_HTML=no'
6572                           fi
6573
6574 else
6575
6576                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6577                           if test "x$LINE" != x ; then
6578                             eval "DEFAULT_$LINE"
6579                           else
6580                             no_cache=1
6581                           fi
6582
6583                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6584
6585 fi;
6586
6587           eval "$ac_cv_use_html"
6588           if test "$no_cache" != 1; then
6589             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6590           fi
6591
6592           if test "$wxUSE_HTML" = yes; then
6593             echo "$as_me:$LINENO: result: yes" >&5
6594 echo "${ECHO_T}yes" >&6
6595           else
6596             echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6
6598           fi
6599
6600
6601           enablestring=
6602           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6603 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6604           no_cache=0
6605           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6606 if test "${enable_htmlhelp+set}" = set; then
6607   enableval="$enable_htmlhelp"
6608
6609                           if test "$enableval" = yes; then
6610                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6611                           else
6612                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6613                           fi
6614
6615 else
6616
6617                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6618                           if test "x$LINE" != x ; then
6619                             eval "DEFAULT_$LINE"
6620                           else
6621                             no_cache=1
6622                           fi
6623
6624                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6625
6626 fi;
6627
6628           eval "$ac_cv_use_htmlhelp"
6629           if test "$no_cache" != 1; then
6630             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6631           fi
6632
6633           if test "$wxUSE_WXHTML_HELP" = yes; then
6634             echo "$as_me:$LINENO: result: yes" >&5
6635 echo "${ECHO_T}yes" >&6
6636           else
6637             echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6
6639           fi
6640
6641
6642           enablestring=
6643           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6644 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6645           no_cache=0
6646           # Check whether --enable-xrc or --disable-xrc was given.
6647 if test "${enable_xrc+set}" = set; then
6648   enableval="$enable_xrc"
6649
6650                           if test "$enableval" = yes; then
6651                             ac_cv_use_xrc='wxUSE_XRC=yes'
6652                           else
6653                             ac_cv_use_xrc='wxUSE_XRC=no'
6654                           fi
6655
6656 else
6657
6658                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6659                           if test "x$LINE" != x ; then
6660                             eval "DEFAULT_$LINE"
6661                           else
6662                             no_cache=1
6663                           fi
6664
6665                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6666
6667 fi;
6668
6669           eval "$ac_cv_use_xrc"
6670           if test "$no_cache" != 1; then
6671             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6672           fi
6673
6674           if test "$wxUSE_XRC" = yes; then
6675             echo "$as_me:$LINENO: result: yes" >&5
6676 echo "${ECHO_T}yes" >&6
6677           else
6678             echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6
6680           fi
6681
6682
6683           enablestring=
6684           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6685 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6686           no_cache=0
6687           # Check whether --enable-constraints or --disable-constraints was given.
6688 if test "${enable_constraints+set}" = set; then
6689   enableval="$enable_constraints"
6690
6691                           if test "$enableval" = yes; then
6692                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6693                           else
6694                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6695                           fi
6696
6697 else
6698
6699                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6700                           if test "x$LINE" != x ; then
6701                             eval "DEFAULT_$LINE"
6702                           else
6703                             no_cache=1
6704                           fi
6705
6706                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6707
6708 fi;
6709
6710           eval "$ac_cv_use_constraints"
6711           if test "$no_cache" != 1; then
6712             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6713           fi
6714
6715           if test "$wxUSE_CONSTRAINTS" = yes; then
6716             echo "$as_me:$LINENO: result: yes" >&5
6717 echo "${ECHO_T}yes" >&6
6718           else
6719             echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6
6721           fi
6722
6723
6724           enablestring=
6725           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6726 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6727           no_cache=0
6728           # Check whether --enable-printarch or --disable-printarch was given.
6729 if test "${enable_printarch+set}" = set; then
6730   enableval="$enable_printarch"
6731
6732                           if test "$enableval" = yes; then
6733                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6734                           else
6735                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6736                           fi
6737
6738 else
6739
6740                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6741                           if test "x$LINE" != x ; then
6742                             eval "DEFAULT_$LINE"
6743                           else
6744                             no_cache=1
6745                           fi
6746
6747                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6748
6749 fi;
6750
6751           eval "$ac_cv_use_printarch"
6752           if test "$no_cache" != 1; then
6753             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6754           fi
6755
6756           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6757             echo "$as_me:$LINENO: result: yes" >&5
6758 echo "${ECHO_T}yes" >&6
6759           else
6760             echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6762           fi
6763
6764
6765           enablestring=
6766           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6767 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6768           no_cache=0
6769           # Check whether --enable-mdi or --disable-mdi was given.
6770 if test "${enable_mdi+set}" = set; then
6771   enableval="$enable_mdi"
6772
6773                           if test "$enableval" = yes; then
6774                             ac_cv_use_mdi='wxUSE_MDI=yes'
6775                           else
6776                             ac_cv_use_mdi='wxUSE_MDI=no'
6777                           fi
6778
6779 else
6780
6781                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
6782                           if test "x$LINE" != x ; then
6783                             eval "DEFAULT_$LINE"
6784                           else
6785                             no_cache=1
6786                           fi
6787
6788                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
6789
6790 fi;
6791
6792           eval "$ac_cv_use_mdi"
6793           if test "$no_cache" != 1; then
6794             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6795           fi
6796
6797           if test "$wxUSE_MDI" = yes; then
6798             echo "$as_me:$LINENO: result: yes" >&5
6799 echo "${ECHO_T}yes" >&6
6800           else
6801             echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6
6803           fi
6804
6805
6806           enablestring=
6807           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6808 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6809           no_cache=0
6810           # Check whether --enable-mdidoc or --disable-mdidoc was given.
6811 if test "${enable_mdidoc+set}" = set; then
6812   enableval="$enable_mdidoc"
6813
6814                           if test "$enableval" = yes; then
6815                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6816                           else
6817                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6818                           fi
6819
6820 else
6821
6822                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6823                           if test "x$LINE" != x ; then
6824                             eval "DEFAULT_$LINE"
6825                           else
6826                             no_cache=1
6827                           fi
6828
6829                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6830
6831 fi;
6832
6833           eval "$ac_cv_use_mdidoc"
6834           if test "$no_cache" != 1; then
6835             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6836           fi
6837
6838           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6839             echo "$as_me:$LINENO: result: yes" >&5
6840 echo "${ECHO_T}yes" >&6
6841           else
6842             echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6
6844           fi
6845
6846
6847           enablestring=
6848           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6849 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6850           no_cache=0
6851           # Check whether --enable-loggui or --disable-loggui was given.
6852 if test "${enable_loggui+set}" = set; then
6853   enableval="$enable_loggui"
6854
6855                           if test "$enableval" = yes; then
6856                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6857                           else
6858                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6859                           fi
6860
6861 else
6862
6863                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6864                           if test "x$LINE" != x ; then
6865                             eval "DEFAULT_$LINE"
6866                           else
6867                             no_cache=1
6868                           fi
6869
6870                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6871
6872 fi;
6873
6874           eval "$ac_cv_use_loggui"
6875           if test "$no_cache" != 1; then
6876             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6877           fi
6878
6879           if test "$wxUSE_LOGGUI" = yes; then
6880             echo "$as_me:$LINENO: result: yes" >&5
6881 echo "${ECHO_T}yes" >&6
6882           else
6883             echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6
6885           fi
6886
6887
6888           enablestring=
6889           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6890 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6891           no_cache=0
6892           # Check whether --enable-logwin or --disable-logwin was given.
6893 if test "${enable_logwin+set}" = set; then
6894   enableval="$enable_logwin"
6895
6896                           if test "$enableval" = yes; then
6897                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6898                           else
6899                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6900                           fi
6901
6902 else
6903
6904                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6905                           if test "x$LINE" != x ; then
6906                             eval "DEFAULT_$LINE"
6907                           else
6908                             no_cache=1
6909                           fi
6910
6911                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6912
6913 fi;
6914
6915           eval "$ac_cv_use_logwin"
6916           if test "$no_cache" != 1; then
6917             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6918           fi
6919
6920           if test "$wxUSE_LOGWINDOW" = yes; then
6921             echo "$as_me:$LINENO: result: yes" >&5
6922 echo "${ECHO_T}yes" >&6
6923           else
6924             echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6
6926           fi
6927
6928
6929           enablestring=
6930           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6931 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6932           no_cache=0
6933           # Check whether --enable-logdialog or --disable-logdialog was given.
6934 if test "${enable_logdialog+set}" = set; then
6935   enableval="$enable_logdialog"
6936
6937                           if test "$enableval" = yes; then
6938                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6939                           else
6940                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6941                           fi
6942
6943 else
6944
6945                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6946                           if test "x$LINE" != x ; then
6947                             eval "DEFAULT_$LINE"
6948                           else
6949                             no_cache=1
6950                           fi
6951
6952                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6953
6954 fi;
6955
6956           eval "$ac_cv_use_logdialog"
6957           if test "$no_cache" != 1; then
6958             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6959           fi
6960
6961           if test "$wxUSE_LOGDIALOG" = yes; then
6962             echo "$as_me:$LINENO: result: yes" >&5
6963 echo "${ECHO_T}yes" >&6
6964           else
6965             echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6
6967           fi
6968
6969
6970           enablestring=
6971           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6972 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6973           no_cache=0
6974           # Check whether --enable-webkit or --disable-webkit was given.
6975 if test "${enable_webkit+set}" = set; then
6976   enableval="$enable_webkit"
6977
6978                           if test "$enableval" = yes; then
6979                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6980                           else
6981                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
6982                           fi
6983
6984 else
6985
6986                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6987                           if test "x$LINE" != x ; then
6988                             eval "DEFAULT_$LINE"
6989                           else
6990                             no_cache=1
6991                           fi
6992
6993                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6994
6995 fi;
6996
6997           eval "$ac_cv_use_webkit"
6998           if test "$no_cache" != 1; then
6999             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7000           fi
7001
7002           if test "$wxUSE_WEBKIT" = yes; then
7003             echo "$as_me:$LINENO: result: yes" >&5
7004 echo "${ECHO_T}yes" >&6
7005           else
7006             echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6
7008           fi
7009
7010
7011
7012           enablestring=
7013           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7014 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7015           no_cache=0
7016           # Check whether --enable-postscript or --disable-postscript was given.
7017 if test "${enable_postscript+set}" = set; then
7018   enableval="$enable_postscript"
7019
7020                           if test "$enableval" = yes; then
7021                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7022                           else
7023                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7024                           fi
7025
7026 else
7027
7028                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7029                           if test "x$LINE" != x ; then
7030                             eval "DEFAULT_$LINE"
7031                           else
7032                             no_cache=1
7033                           fi
7034
7035                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7036
7037 fi;
7038
7039           eval "$ac_cv_use_postscript"
7040           if test "$no_cache" != 1; then
7041             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7042           fi
7043
7044           if test "$wxUSE_POSTSCRIPT" = yes; then
7045             echo "$as_me:$LINENO: result: yes" >&5
7046 echo "${ECHO_T}yes" >&6
7047           else
7048             echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6
7050           fi
7051
7052
7053
7054
7055
7056           enablestring=
7057           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7058 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7059           no_cache=0
7060           # Check whether --enable-prologio or --disable-prologio was given.
7061 if test "${enable_prologio+set}" = set; then
7062   enableval="$enable_prologio"
7063
7064                           if test "$enableval" = yes; then
7065                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7066                           else
7067                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7068                           fi
7069
7070 else
7071
7072                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7073                           if test "x$LINE" != x ; then
7074                             eval "DEFAULT_$LINE"
7075                           else
7076                             no_cache=1
7077                           fi
7078
7079                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7080
7081 fi;
7082
7083           eval "$ac_cv_use_prologio"
7084           if test "$no_cache" != 1; then
7085             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7086           fi
7087
7088           if test "$wxUSE_PROLOGIO" = yes; then
7089             echo "$as_me:$LINENO: result: yes" >&5
7090 echo "${ECHO_T}yes" >&6
7091           else
7092             echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6
7094           fi
7095
7096
7097           enablestring=
7098           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7099 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7100           no_cache=0
7101           # Check whether --enable-resources or --disable-resources was given.
7102 if test "${enable_resources+set}" = set; then
7103   enableval="$enable_resources"
7104
7105                           if test "$enableval" = yes; then
7106                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7107                           else
7108                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7109                           fi
7110
7111 else
7112
7113                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7114                           if test "x$LINE" != x ; then
7115                             eval "DEFAULT_$LINE"
7116                           else
7117                             no_cache=1
7118                           fi
7119
7120                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7121
7122 fi;
7123
7124           eval "$ac_cv_use_resources"
7125           if test "$no_cache" != 1; then
7126             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7127           fi
7128
7129           if test "$wxUSE_RESOURCES" = yes; then
7130             echo "$as_me:$LINENO: result: yes" >&5
7131 echo "${ECHO_T}yes" >&6
7132           else
7133             echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6
7135           fi
7136
7137
7138
7139
7140           enablestring=
7141           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7142 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7143           no_cache=0
7144           # Check whether --enable-clipboard or --disable-clipboard was given.
7145 if test "${enable_clipboard+set}" = set; then
7146   enableval="$enable_clipboard"
7147
7148                           if test "$enableval" = yes; then
7149                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7150                           else
7151                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7152                           fi
7153
7154 else
7155
7156                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7157                           if test "x$LINE" != x ; then
7158                             eval "DEFAULT_$LINE"
7159                           else
7160                             no_cache=1
7161                           fi
7162
7163                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7164
7165 fi;
7166
7167           eval "$ac_cv_use_clipboard"
7168           if test "$no_cache" != 1; then
7169             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7170           fi
7171
7172           if test "$wxUSE_CLIPBOARD" = yes; then
7173             echo "$as_me:$LINENO: result: yes" >&5
7174 echo "${ECHO_T}yes" >&6
7175           else
7176             echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7178           fi
7179
7180
7181           enablestring=
7182           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7183 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7184           no_cache=0
7185           # Check whether --enable-dnd or --disable-dnd was given.
7186 if test "${enable_dnd+set}" = set; then
7187   enableval="$enable_dnd"
7188
7189                           if test "$enableval" = yes; then
7190                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7191                           else
7192                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7193                           fi
7194
7195 else
7196
7197                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7198                           if test "x$LINE" != x ; then
7199                             eval "DEFAULT_$LINE"
7200                           else
7201                             no_cache=1
7202                           fi
7203
7204                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7205
7206 fi;
7207
7208           eval "$ac_cv_use_dnd"
7209           if test "$no_cache" != 1; then
7210             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7211           fi
7212
7213           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7214             echo "$as_me:$LINENO: result: yes" >&5
7215 echo "${ECHO_T}yes" >&6
7216           else
7217             echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7219           fi
7220
7221
7222           enablestring=
7223           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7224 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7225           no_cache=0
7226           # Check whether --enable-metafile or --disable-metafile was given.
7227 if test "${enable_metafile+set}" = set; then
7228   enableval="$enable_metafile"
7229
7230                           if test "$enableval" = yes; then
7231                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7232                           else
7233                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7234                           fi
7235
7236 else
7237
7238                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7239                           if test "x$LINE" != x ; then
7240                             eval "DEFAULT_$LINE"
7241                           else
7242                             no_cache=1
7243                           fi
7244
7245                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7246
7247 fi;
7248
7249           eval "$ac_cv_use_metafile"
7250           if test "$no_cache" != 1; then
7251             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7252           fi
7253
7254           if test "$wxUSE_METAFILE" = yes; then
7255             echo "$as_me:$LINENO: result: yes" >&5
7256 echo "${ECHO_T}yes" >&6
7257           else
7258             echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6
7260           fi
7261
7262
7263
7264
7265
7266           enablestring=
7267           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7268 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7269           no_cache=0
7270           # Check whether --enable-controls or --disable-controls was given.
7271 if test "${enable_controls+set}" = set; then
7272   enableval="$enable_controls"
7273
7274                           if test "$enableval" = yes; then
7275                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7276                           else
7277                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7278                           fi
7279
7280 else
7281
7282                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7283                           if test "x$LINE" != x ; then
7284                             eval "DEFAULT_$LINE"
7285                           else
7286                             no_cache=1
7287                           fi
7288
7289                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7290
7291 fi;
7292
7293           eval "$ac_cv_use_controls"
7294           if test "$no_cache" != 1; then
7295             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7296           fi
7297
7298           if test "$wxUSE_CONTROLS" = yes; then
7299             echo "$as_me:$LINENO: result: yes" >&5
7300 echo "${ECHO_T}yes" >&6
7301           else
7302             echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304           fi
7305
7306
7307 if test "$wxUSE_CONTROLS" = "yes"; then
7308   DEFAULT_wxUSE_ACCEL=yes
7309   DEFAULT_wxUSE_BMPBUTTON=yes
7310   DEFAULT_wxUSE_BUTTON=yes
7311   DEFAULT_wxUSE_CALCTRL=yes
7312   DEFAULT_wxUSE_CARET=yes
7313   DEFAULT_wxUSE_COMBOBOX=yes
7314   DEFAULT_wxUSE_CHECKBOX=yes
7315   DEFAULT_wxUSE_CHECKLISTBOX=yes
7316   DEFAULT_wxUSE_CHOICE=yes
7317   DEFAULT_wxUSE_CHOICEBOOK=yes
7318   DEFAULT_wxUSE_DATEPICKCTRL=yes
7319   DEFAULT_wxUSE_GAUGE=yes
7320   DEFAULT_wxUSE_GRID=yes
7321   DEFAULT_wxUSE_IMAGLIST=yes
7322   DEFAULT_wxUSE_LISTBOOK=yes
7323   DEFAULT_wxUSE_LISTBOX=yes
7324   DEFAULT_wxUSE_LISTCTRL=yes
7325   DEFAULT_wxUSE_NOTEBOOK=yes
7326   DEFAULT_wxUSE_RADIOBOX=yes
7327   DEFAULT_wxUSE_RADIOBTN=yes
7328   DEFAULT_wxUSE_SASH=yes
7329   DEFAULT_wxUSE_SCROLLBAR=yes
7330   DEFAULT_wxUSE_SLIDER=yes
7331   DEFAULT_wxUSE_SPINBTN=yes
7332   DEFAULT_wxUSE_SPINCTRL=yes
7333   DEFAULT_wxUSE_SPLITTER=yes
7334   DEFAULT_wxUSE_STATBMP=yes
7335   DEFAULT_wxUSE_STATBOX=yes
7336   DEFAULT_wxUSE_STATLINE=yes
7337   DEFAULT_wxUSE_STATUSBAR=yes
7338   DEFAULT_wxUSE_TAB_DIALOG=yes
7339   DEFAULT_wxUSE_TOGGLEBTN=yes
7340   DEFAULT_wxUSE_TOOLBAR=yes
7341   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7342   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7343   DEFAULT_wxUSE_TOOLTIPS=yes
7344   DEFAULT_wxUSE_TREEBOOK=yes
7345   DEFAULT_wxUSE_TREECTRL=yes
7346   DEFAULT_wxUSE_POPUPWIN=yes
7347   DEFAULT_wxUSE_TIPWINDOW=yes
7348 elif test "$wxUSE_CONTROLS" = "no"; then
7349   DEFAULT_wxUSE_ACCEL=no
7350   DEFAULT_wxUSE_BMPBUTTON=no
7351   DEFAULT_wxUSE_BUTTON=no
7352   DEFAULT_wxUSE_CALCTRL=no
7353   DEFAULT_wxUSE_CARET=no
7354   DEFAULT_wxUSE_COMBOBOX=no
7355   DEFAULT_wxUSE_CHECKBOX=no
7356   DEFAULT_wxUSE_CHECKLISTBOX=no
7357   DEFAULT_wxUSE_CHOICE=no
7358   DEFAULT_wxUSE_CHOICEBOOK=no
7359   DEFAULT_wxUSE_DATEPICKCTRL=no
7360   DEFAULT_wxUSE_GAUGE=no
7361   DEFAULT_wxUSE_GRID=no
7362   DEFAULT_wxUSE_IMAGLIST=no
7363   DEFAULT_wxUSE_LISTBOOK=no
7364   DEFAULT_wxUSE_LISTBOX=no
7365   DEFAULT_wxUSE_LISTCTRL=no
7366   DEFAULT_wxUSE_NOTEBOOK=no
7367   DEFAULT_wxUSE_RADIOBOX=no
7368   DEFAULT_wxUSE_RADIOBTN=no
7369   DEFAULT_wxUSE_SASH=no
7370   DEFAULT_wxUSE_SCROLLBAR=no
7371   DEFAULT_wxUSE_SLIDER=no
7372   DEFAULT_wxUSE_SPINBTN=no
7373   DEFAULT_wxUSE_SPINCTRL=no
7374   DEFAULT_wxUSE_SPLITTER=no
7375   DEFAULT_wxUSE_STATBMP=no
7376   DEFAULT_wxUSE_STATBOX=no
7377   DEFAULT_wxUSE_STATLINE=no
7378   DEFAULT_wxUSE_STATUSBAR=no
7379   DEFAULT_wxUSE_TAB_DIALOG=no
7380   DEFAULT_wxUSE_TOGGLEBTN=no
7381   DEFAULT_wxUSE_TOOLBAR=no
7382   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7383   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7384   DEFAULT_wxUSE_TOOLTIPS=no
7385   DEFAULT_wxUSE_TREEBOOK=no
7386   DEFAULT_wxUSE_TREECTRL=no
7387   DEFAULT_wxUSE_POPUPWIN=no
7388   DEFAULT_wxUSE_TIPWINDOW=no
7389 fi
7390
7391
7392           enablestring=
7393           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7394 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7395           no_cache=0
7396           # Check whether --enable-accel or --disable-accel was given.
7397 if test "${enable_accel+set}" = set; then
7398   enableval="$enable_accel"
7399
7400                           if test "$enableval" = yes; then
7401                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7402                           else
7403                             ac_cv_use_accel='wxUSE_ACCEL=no'
7404                           fi
7405
7406 else
7407
7408                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7409                           if test "x$LINE" != x ; then
7410                             eval "DEFAULT_$LINE"
7411                           else
7412                             no_cache=1
7413                           fi
7414
7415                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7416
7417 fi;
7418
7419           eval "$ac_cv_use_accel"
7420           if test "$no_cache" != 1; then
7421             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7422           fi
7423
7424           if test "$wxUSE_ACCEL" = yes; then
7425             echo "$as_me:$LINENO: result: yes" >&5
7426 echo "${ECHO_T}yes" >&6
7427           else
7428             echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7430           fi
7431
7432
7433           enablestring=
7434           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7435 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7436           no_cache=0
7437           # Check whether --enable-button or --disable-button was given.
7438 if test "${enable_button+set}" = set; then
7439   enableval="$enable_button"
7440
7441                           if test "$enableval" = yes; then
7442                             ac_cv_use_button='wxUSE_BUTTON=yes'
7443                           else
7444                             ac_cv_use_button='wxUSE_BUTTON=no'
7445                           fi
7446
7447 else
7448
7449                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7450                           if test "x$LINE" != x ; then
7451                             eval "DEFAULT_$LINE"
7452                           else
7453                             no_cache=1
7454                           fi
7455
7456                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7457
7458 fi;
7459
7460           eval "$ac_cv_use_button"
7461           if test "$no_cache" != 1; then
7462             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7463           fi
7464
7465           if test "$wxUSE_BUTTON" = yes; then
7466             echo "$as_me:$LINENO: result: yes" >&5
7467 echo "${ECHO_T}yes" >&6
7468           else
7469             echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7471           fi
7472
7473
7474           enablestring=
7475           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7476 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7477           no_cache=0
7478           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7479 if test "${enable_bmpbutton+set}" = set; then
7480   enableval="$enable_bmpbutton"
7481
7482                           if test "$enableval" = yes; then
7483                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7484                           else
7485                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7486                           fi
7487
7488 else
7489
7490                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7491                           if test "x$LINE" != x ; then
7492                             eval "DEFAULT_$LINE"
7493                           else
7494                             no_cache=1
7495                           fi
7496
7497                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7498
7499 fi;
7500
7501           eval "$ac_cv_use_bmpbutton"
7502           if test "$no_cache" != 1; then
7503             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7504           fi
7505
7506           if test "$wxUSE_BMPBUTTON" = yes; then
7507             echo "$as_me:$LINENO: result: yes" >&5
7508 echo "${ECHO_T}yes" >&6
7509           else
7510             echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6
7512           fi
7513
7514
7515           enablestring=
7516           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7517 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7518           no_cache=0
7519           # Check whether --enable-calendar or --disable-calendar was given.
7520 if test "${enable_calendar+set}" = set; then
7521   enableval="$enable_calendar"
7522
7523                           if test "$enableval" = yes; then
7524                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7525                           else
7526                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7527                           fi
7528
7529 else
7530
7531                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7532                           if test "x$LINE" != x ; then
7533                             eval "DEFAULT_$LINE"
7534                           else
7535                             no_cache=1
7536                           fi
7537
7538                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7539
7540 fi;
7541
7542           eval "$ac_cv_use_calendar"
7543           if test "$no_cache" != 1; then
7544             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7545           fi
7546
7547           if test "$wxUSE_CALCTRL" = yes; then
7548             echo "$as_me:$LINENO: result: yes" >&5
7549 echo "${ECHO_T}yes" >&6
7550           else
7551             echo "$as_me:$LINENO: result: no" >&5
7552 echo "${ECHO_T}no" >&6
7553           fi
7554
7555
7556           enablestring=
7557           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7558 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7559           no_cache=0
7560           # Check whether --enable-caret or --disable-caret was given.
7561 if test "${enable_caret+set}" = set; then
7562   enableval="$enable_caret"
7563
7564                           if test "$enableval" = yes; then
7565                             ac_cv_use_caret='wxUSE_CARET=yes'
7566                           else
7567                             ac_cv_use_caret='wxUSE_CARET=no'
7568                           fi
7569
7570 else
7571
7572                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7573                           if test "x$LINE" != x ; then
7574                             eval "DEFAULT_$LINE"
7575                           else
7576                             no_cache=1
7577                           fi
7578
7579                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7580
7581 fi;
7582
7583           eval "$ac_cv_use_caret"
7584           if test "$no_cache" != 1; then
7585             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7586           fi
7587
7588           if test "$wxUSE_CARET" = yes; then
7589             echo "$as_me:$LINENO: result: yes" >&5
7590 echo "${ECHO_T}yes" >&6
7591           else
7592             echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7594           fi
7595
7596
7597           enablestring=
7598           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7599 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7600           no_cache=0
7601           # Check whether --enable-checkbox or --disable-checkbox was given.
7602 if test "${enable_checkbox+set}" = set; then
7603   enableval="$enable_checkbox"
7604
7605                           if test "$enableval" = yes; then
7606                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7607                           else
7608                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7609                           fi
7610
7611 else
7612
7613                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7614                           if test "x$LINE" != x ; then
7615                             eval "DEFAULT_$LINE"
7616                           else
7617                             no_cache=1
7618                           fi
7619
7620                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7621
7622 fi;
7623
7624           eval "$ac_cv_use_checkbox"
7625           if test "$no_cache" != 1; then
7626             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7627           fi
7628
7629           if test "$wxUSE_CHECKBOX" = yes; then
7630             echo "$as_me:$LINENO: result: yes" >&5
7631 echo "${ECHO_T}yes" >&6
7632           else
7633             echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6
7635           fi
7636
7637
7638           enablestring=
7639           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7640 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7641           no_cache=0
7642           # Check whether --enable-checklst or --disable-checklst was given.
7643 if test "${enable_checklst+set}" = set; then
7644   enableval="$enable_checklst"
7645
7646                           if test "$enableval" = yes; then
7647                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7648                           else
7649                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
7650                           fi
7651
7652 else
7653
7654                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7655                           if test "x$LINE" != x ; then
7656                             eval "DEFAULT_$LINE"
7657                           else
7658                             no_cache=1
7659                           fi
7660
7661                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7662
7663 fi;
7664
7665           eval "$ac_cv_use_checklst"
7666           if test "$no_cache" != 1; then
7667             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7668           fi
7669
7670           if test "$wxUSE_CHECKLST" = yes; then
7671             echo "$as_me:$LINENO: result: yes" >&5
7672 echo "${ECHO_T}yes" >&6
7673           else
7674             echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6
7676           fi
7677
7678
7679           enablestring=
7680           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7681 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7682           no_cache=0
7683           # Check whether --enable-choice or --disable-choice was given.
7684 if test "${enable_choice+set}" = set; then
7685   enableval="$enable_choice"
7686
7687                           if test "$enableval" = yes; then
7688                             ac_cv_use_choice='wxUSE_CHOICE=yes'
7689                           else
7690                             ac_cv_use_choice='wxUSE_CHOICE=no'
7691                           fi
7692
7693 else
7694
7695                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7696                           if test "x$LINE" != x ; then
7697                             eval "DEFAULT_$LINE"
7698                           else
7699                             no_cache=1
7700                           fi
7701
7702                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7703
7704 fi;
7705
7706           eval "$ac_cv_use_choice"
7707           if test "$no_cache" != 1; then
7708             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7709           fi
7710
7711           if test "$wxUSE_CHOICE" = yes; then
7712             echo "$as_me:$LINENO: result: yes" >&5
7713 echo "${ECHO_T}yes" >&6
7714           else
7715             echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6
7717           fi
7718
7719
7720           enablestring=
7721           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7722 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7723           no_cache=0
7724           # Check whether --enable-choicebook or --disable-choicebook was given.
7725 if test "${enable_choicebook+set}" = set; then
7726   enableval="$enable_choicebook"
7727
7728                           if test "$enableval" = yes; then
7729                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7730                           else
7731                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7732                           fi
7733
7734 else
7735
7736                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7737                           if test "x$LINE" != x ; then
7738                             eval "DEFAULT_$LINE"
7739                           else
7740                             no_cache=1
7741                           fi
7742
7743                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7744
7745 fi;
7746
7747           eval "$ac_cv_use_choicebook"
7748           if test "$no_cache" != 1; then
7749             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7750           fi
7751
7752           if test "$wxUSE_CHOICEBOOK" = yes; then
7753             echo "$as_me:$LINENO: result: yes" >&5
7754 echo "${ECHO_T}yes" >&6
7755           else
7756             echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6
7758           fi
7759
7760
7761           enablestring=
7762           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7763 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7764           no_cache=0
7765           # Check whether --enable-combobox or --disable-combobox was given.
7766 if test "${enable_combobox+set}" = set; then
7767   enableval="$enable_combobox"
7768
7769                           if test "$enableval" = yes; then
7770                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7771                           else
7772                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7773                           fi
7774
7775 else
7776
7777                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7778                           if test "x$LINE" != x ; then
7779                             eval "DEFAULT_$LINE"
7780                           else
7781                             no_cache=1
7782                           fi
7783
7784                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7785
7786 fi;
7787
7788           eval "$ac_cv_use_combobox"
7789           if test "$no_cache" != 1; then
7790             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7791           fi
7792
7793           if test "$wxUSE_COMBOBOX" = yes; then
7794             echo "$as_me:$LINENO: result: yes" >&5
7795 echo "${ECHO_T}yes" >&6
7796           else
7797             echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6
7799           fi
7800
7801
7802           enablestring=
7803           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7804 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7805           no_cache=0
7806           # Check whether --enable-datepick or --disable-datepick was given.
7807 if test "${enable_datepick+set}" = set; then
7808   enableval="$enable_datepick"
7809
7810                           if test "$enableval" = yes; then
7811                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7812                           else
7813                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7814                           fi
7815
7816 else
7817
7818                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7819                           if test "x$LINE" != x ; then
7820                             eval "DEFAULT_$LINE"
7821                           else
7822                             no_cache=1
7823                           fi
7824
7825                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7826
7827 fi;
7828
7829           eval "$ac_cv_use_datepick"
7830           if test "$no_cache" != 1; then
7831             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7832           fi
7833
7834           if test "$wxUSE_DATEPICKCTRL" = yes; then
7835             echo "$as_me:$LINENO: result: yes" >&5
7836 echo "${ECHO_T}yes" >&6
7837           else
7838             echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6
7840           fi
7841
7842
7843           enablestring=
7844           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7845 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7846           no_cache=0
7847           # Check whether --enable-display or --disable-display was given.
7848 if test "${enable_display+set}" = set; then
7849   enableval="$enable_display"
7850
7851                           if test "$enableval" = yes; then
7852                             ac_cv_use_display='wxUSE_DISPLAY=yes'
7853                           else
7854                             ac_cv_use_display='wxUSE_DISPLAY=no'
7855                           fi
7856
7857 else
7858
7859                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7860                           if test "x$LINE" != x ; then
7861                             eval "DEFAULT_$LINE"
7862                           else
7863                             no_cache=1
7864                           fi
7865
7866                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7867
7868 fi;
7869
7870           eval "$ac_cv_use_display"
7871           if test "$no_cache" != 1; then
7872             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7873           fi
7874
7875           if test "$wxUSE_DISPLAY" = yes; then
7876             echo "$as_me:$LINENO: result: yes" >&5
7877 echo "${ECHO_T}yes" >&6
7878           else
7879             echo "$as_me:$LINENO: result: no" >&5
7880 echo "${ECHO_T}no" >&6
7881           fi
7882
7883
7884           enablestring=
7885           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7886 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7887           no_cache=0
7888           # Check whether --enable-gauge or --disable-gauge was given.
7889 if test "${enable_gauge+set}" = set; then
7890   enableval="$enable_gauge"
7891
7892                           if test "$enableval" = yes; then
7893                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
7894                           else
7895                             ac_cv_use_gauge='wxUSE_GAUGE=no'
7896                           fi
7897
7898 else
7899
7900                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7901                           if test "x$LINE" != x ; then
7902                             eval "DEFAULT_$LINE"
7903                           else
7904                             no_cache=1
7905                           fi
7906
7907                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7908
7909 fi;
7910
7911           eval "$ac_cv_use_gauge"
7912           if test "$no_cache" != 1; then
7913             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7914           fi
7915
7916           if test "$wxUSE_GAUGE" = yes; then
7917             echo "$as_me:$LINENO: result: yes" >&5
7918 echo "${ECHO_T}yes" >&6
7919           else
7920             echo "$as_me:$LINENO: result: no" >&5
7921 echo "${ECHO_T}no" >&6
7922           fi
7923
7924
7925           enablestring=
7926           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7927 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7928           no_cache=0
7929           # Check whether --enable-grid or --disable-grid was given.
7930 if test "${enable_grid+set}" = set; then
7931   enableval="$enable_grid"
7932
7933                           if test "$enableval" = yes; then
7934                             ac_cv_use_grid='wxUSE_GRID=yes'
7935                           else
7936                             ac_cv_use_grid='wxUSE_GRID=no'
7937                           fi
7938
7939 else
7940
7941                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7942                           if test "x$LINE" != x ; then
7943                             eval "DEFAULT_$LINE"
7944                           else
7945                             no_cache=1
7946                           fi
7947
7948                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7949
7950 fi;
7951
7952           eval "$ac_cv_use_grid"
7953           if test "$no_cache" != 1; then
7954             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7955           fi
7956
7957           if test "$wxUSE_GRID" = yes; then
7958             echo "$as_me:$LINENO: result: yes" >&5
7959 echo "${ECHO_T}yes" >&6
7960           else
7961             echo "$as_me:$LINENO: result: no" >&5
7962 echo "${ECHO_T}no" >&6
7963           fi
7964
7965
7966           enablestring=
7967           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7968 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7969           no_cache=0
7970           # Check whether --enable-imaglist or --disable-imaglist was given.
7971 if test "${enable_imaglist+set}" = set; then
7972   enableval="$enable_imaglist"
7973
7974                           if test "$enableval" = yes; then
7975                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7976                           else
7977                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7978                           fi
7979
7980 else
7981
7982                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7983                           if test "x$LINE" != x ; then
7984                             eval "DEFAULT_$LINE"
7985                           else
7986                             no_cache=1
7987                           fi
7988
7989                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7990
7991 fi;
7992
7993           eval "$ac_cv_use_imaglist"
7994           if test "$no_cache" != 1; then
7995             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7996           fi
7997
7998           if test "$wxUSE_IMAGLIST" = yes; then
7999             echo "$as_me:$LINENO: result: yes" >&5
8000 echo "${ECHO_T}yes" >&6
8001           else
8002             echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6
8004           fi
8005
8006
8007           enablestring=
8008           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8009 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8010           no_cache=0
8011           # Check whether --enable-listbook or --disable-listbook was given.
8012 if test "${enable_listbook+set}" = set; then
8013   enableval="$enable_listbook"
8014
8015                           if test "$enableval" = yes; then
8016                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8017                           else
8018                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8019                           fi
8020
8021 else
8022
8023                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8024                           if test "x$LINE" != x ; then
8025                             eval "DEFAULT_$LINE"
8026                           else
8027                             no_cache=1
8028                           fi
8029
8030                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8031
8032 fi;
8033
8034           eval "$ac_cv_use_listbook"
8035           if test "$no_cache" != 1; then
8036             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8037           fi
8038
8039           if test "$wxUSE_LISTBOOK" = yes; then
8040             echo "$as_me:$LINENO: result: yes" >&5
8041 echo "${ECHO_T}yes" >&6
8042           else
8043             echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6
8045           fi
8046
8047
8048           enablestring=
8049           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8050 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8051           no_cache=0
8052           # Check whether --enable-listbox or --disable-listbox was given.
8053 if test "${enable_listbox+set}" = set; then
8054   enableval="$enable_listbox"
8055
8056                           if test "$enableval" = yes; then
8057                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8058                           else
8059                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
8060                           fi
8061
8062 else
8063
8064                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8065                           if test "x$LINE" != x ; then
8066                             eval "DEFAULT_$LINE"
8067                           else
8068                             no_cache=1
8069                           fi
8070
8071                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8072
8073 fi;
8074
8075           eval "$ac_cv_use_listbox"
8076           if test "$no_cache" != 1; then
8077             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8078           fi
8079
8080           if test "$wxUSE_LISTBOX" = yes; then
8081             echo "$as_me:$LINENO: result: yes" >&5
8082 echo "${ECHO_T}yes" >&6
8083           else
8084             echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6
8086           fi
8087
8088
8089           enablestring=
8090           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8091 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8092           no_cache=0
8093           # Check whether --enable-listctrl or --disable-listctrl was given.
8094 if test "${enable_listctrl+set}" = set; then
8095   enableval="$enable_listctrl"
8096
8097                           if test "$enableval" = yes; then
8098                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8099                           else
8100                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8101                           fi
8102
8103 else
8104
8105                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8106                           if test "x$LINE" != x ; then
8107                             eval "DEFAULT_$LINE"
8108                           else
8109                             no_cache=1
8110                           fi
8111
8112                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8113
8114 fi;
8115
8116           eval "$ac_cv_use_listctrl"
8117           if test "$no_cache" != 1; then
8118             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8119           fi
8120
8121           if test "$wxUSE_LISTCTRL" = yes; then
8122             echo "$as_me:$LINENO: result: yes" >&5
8123 echo "${ECHO_T}yes" >&6
8124           else
8125             echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8127           fi
8128
8129
8130           enablestring=
8131           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8132 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8133           no_cache=0
8134           # Check whether --enable-notebook or --disable-notebook was given.
8135 if test "${enable_notebook+set}" = set; then
8136   enableval="$enable_notebook"
8137
8138                           if test "$enableval" = yes; then
8139                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8140                           else
8141                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8142                           fi
8143
8144 else
8145
8146                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8147                           if test "x$LINE" != x ; then
8148                             eval "DEFAULT_$LINE"
8149                           else
8150                             no_cache=1
8151                           fi
8152
8153                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8154
8155 fi;
8156
8157           eval "$ac_cv_use_notebook"
8158           if test "$no_cache" != 1; then
8159             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8160           fi
8161
8162           if test "$wxUSE_NOTEBOOK" = yes; then
8163             echo "$as_me:$LINENO: result: yes" >&5
8164 echo "${ECHO_T}yes" >&6
8165           else
8166             echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8168           fi
8169
8170
8171           enablestring=
8172           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8173 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8174           no_cache=0
8175           # Check whether --enable-radiobox or --disable-radiobox was given.
8176 if test "${enable_radiobox+set}" = set; then
8177   enableval="$enable_radiobox"
8178
8179                           if test "$enableval" = yes; then
8180                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8181                           else
8182                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8183                           fi
8184
8185 else
8186
8187                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8188                           if test "x$LINE" != x ; then
8189                             eval "DEFAULT_$LINE"
8190                           else
8191                             no_cache=1
8192                           fi
8193
8194                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8195
8196 fi;
8197
8198           eval "$ac_cv_use_radiobox"
8199           if test "$no_cache" != 1; then
8200             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8201           fi
8202
8203           if test "$wxUSE_RADIOBOX" = yes; then
8204             echo "$as_me:$LINENO: result: yes" >&5
8205 echo "${ECHO_T}yes" >&6
8206           else
8207             echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6
8209           fi
8210
8211
8212           enablestring=
8213           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8214 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8215           no_cache=0
8216           # Check whether --enable-radiobtn or --disable-radiobtn was given.
8217 if test "${enable_radiobtn+set}" = set; then
8218   enableval="$enable_radiobtn"
8219
8220                           if test "$enableval" = yes; then
8221                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8222                           else
8223                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8224                           fi
8225
8226 else
8227
8228                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8229                           if test "x$LINE" != x ; then
8230                             eval "DEFAULT_$LINE"
8231                           else
8232                             no_cache=1
8233                           fi
8234
8235                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8236
8237 fi;
8238
8239           eval "$ac_cv_use_radiobtn"
8240           if test "$no_cache" != 1; then
8241             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8242           fi
8243
8244           if test "$wxUSE_RADIOBTN" = yes; then
8245             echo "$as_me:$LINENO: result: yes" >&5
8246 echo "${ECHO_T}yes" >&6
8247           else
8248             echo "$as_me:$LINENO: result: no" >&5
8249 echo "${ECHO_T}no" >&6
8250           fi
8251
8252
8253           enablestring=
8254           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8255 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8256           no_cache=0
8257           # Check whether --enable-sash or --disable-sash was given.
8258 if test "${enable_sash+set}" = set; then
8259   enableval="$enable_sash"
8260
8261                           if test "$enableval" = yes; then
8262                             ac_cv_use_sash='wxUSE_SASH=yes'
8263                           else
8264                             ac_cv_use_sash='wxUSE_SASH=no'
8265                           fi
8266
8267 else
8268
8269                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8270                           if test "x$LINE" != x ; then
8271                             eval "DEFAULT_$LINE"
8272                           else
8273                             no_cache=1
8274                           fi
8275
8276                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8277
8278 fi;
8279
8280           eval "$ac_cv_use_sash"
8281           if test "$no_cache" != 1; then
8282             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8283           fi
8284
8285           if test "$wxUSE_SASH" = yes; then
8286             echo "$as_me:$LINENO: result: yes" >&5
8287 echo "${ECHO_T}yes" >&6
8288           else
8289             echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6
8291           fi
8292
8293
8294           enablestring=
8295           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8296 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8297           no_cache=0
8298           # Check whether --enable-scrollbar or --disable-scrollbar was given.
8299 if test "${enable_scrollbar+set}" = set; then
8300   enableval="$enable_scrollbar"
8301
8302                           if test "$enableval" = yes; then
8303                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8304                           else
8305                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8306                           fi
8307
8308 else
8309
8310                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8311                           if test "x$LINE" != x ; then
8312                             eval "DEFAULT_$LINE"
8313                           else
8314                             no_cache=1
8315                           fi
8316
8317                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8318
8319 fi;
8320
8321           eval "$ac_cv_use_scrollbar"
8322           if test "$no_cache" != 1; then
8323             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8324           fi
8325
8326           if test "$wxUSE_SCROLLBAR" = yes; then
8327             echo "$as_me:$LINENO: result: yes" >&5
8328 echo "${ECHO_T}yes" >&6
8329           else
8330             echo "$as_me:$LINENO: result: no" >&5
8331 echo "${ECHO_T}no" >&6
8332           fi
8333
8334
8335           enablestring=
8336           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8337 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8338           no_cache=0
8339           # Check whether --enable-slider or --disable-slider was given.
8340 if test "${enable_slider+set}" = set; then
8341   enableval="$enable_slider"
8342
8343                           if test "$enableval" = yes; then
8344                             ac_cv_use_slider='wxUSE_SLIDER=yes'
8345                           else
8346                             ac_cv_use_slider='wxUSE_SLIDER=no'
8347                           fi
8348
8349 else
8350
8351                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8352                           if test "x$LINE" != x ; then
8353                             eval "DEFAULT_$LINE"
8354                           else
8355                             no_cache=1
8356                           fi
8357
8358                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8359
8360 fi;
8361
8362           eval "$ac_cv_use_slider"
8363           if test "$no_cache" != 1; then
8364             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8365           fi
8366
8367           if test "$wxUSE_SLIDER" = yes; then
8368             echo "$as_me:$LINENO: result: yes" >&5
8369 echo "${ECHO_T}yes" >&6
8370           else
8371             echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6
8373           fi
8374
8375
8376           enablestring=
8377           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8378 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8379           no_cache=0
8380           # Check whether --enable-spinbtn or --disable-spinbtn was given.
8381 if test "${enable_spinbtn+set}" = set; then
8382   enableval="$enable_spinbtn"
8383
8384                           if test "$enableval" = yes; then
8385                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8386                           else
8387                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8388                           fi
8389
8390 else
8391
8392                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8393                           if test "x$LINE" != x ; then
8394                             eval "DEFAULT_$LINE"
8395                           else
8396                             no_cache=1
8397                           fi
8398
8399                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8400
8401 fi;
8402
8403           eval "$ac_cv_use_spinbtn"
8404           if test "$no_cache" != 1; then
8405             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8406           fi
8407
8408           if test "$wxUSE_SPINBTN" = yes; then
8409             echo "$as_me:$LINENO: result: yes" >&5
8410 echo "${ECHO_T}yes" >&6
8411           else
8412             echo "$as_me:$LINENO: result: no" >&5
8413 echo "${ECHO_T}no" >&6
8414           fi
8415
8416
8417           enablestring=
8418           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8419 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8420           no_cache=0
8421           # Check whether --enable-spinctrl or --disable-spinctrl was given.
8422 if test "${enable_spinctrl+set}" = set; then
8423   enableval="$enable_spinctrl"
8424
8425                           if test "$enableval" = yes; then
8426                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8427                           else
8428                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8429                           fi
8430
8431 else
8432
8433                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8434                           if test "x$LINE" != x ; then
8435                             eval "DEFAULT_$LINE"
8436                           else
8437                             no_cache=1
8438                           fi
8439
8440                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8441
8442 fi;
8443
8444           eval "$ac_cv_use_spinctrl"
8445           if test "$no_cache" != 1; then
8446             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8447           fi
8448
8449           if test "$wxUSE_SPINCTRL" = yes; then
8450             echo "$as_me:$LINENO: result: yes" >&5
8451 echo "${ECHO_T}yes" >&6
8452           else
8453             echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6
8455           fi
8456
8457
8458           enablestring=
8459           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8460 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8461           no_cache=0
8462           # Check whether --enable-splitter or --disable-splitter was given.
8463 if test "${enable_splitter+set}" = set; then
8464   enableval="$enable_splitter"
8465
8466                           if test "$enableval" = yes; then
8467                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8468                           else
8469                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
8470                           fi
8471
8472 else
8473
8474                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8475                           if test "x$LINE" != x ; then
8476                             eval "DEFAULT_$LINE"
8477                           else
8478                             no_cache=1
8479                           fi
8480
8481                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8482
8483 fi;
8484
8485           eval "$ac_cv_use_splitter"
8486           if test "$no_cache" != 1; then
8487             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8488           fi
8489
8490           if test "$wxUSE_SPLITTER" = yes; then
8491             echo "$as_me:$LINENO: result: yes" >&5
8492 echo "${ECHO_T}yes" >&6
8493           else
8494             echo "$as_me:$LINENO: result: no" >&5
8495 echo "${ECHO_T}no" >&6
8496           fi
8497
8498
8499           enablestring=
8500           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8501 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8502           no_cache=0
8503           # Check whether --enable-statbmp or --disable-statbmp was given.
8504 if test "${enable_statbmp+set}" = set; then
8505   enableval="$enable_statbmp"
8506
8507                           if test "$enableval" = yes; then
8508                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8509                           else
8510                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
8511                           fi
8512
8513 else
8514
8515                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8516                           if test "x$LINE" != x ; then
8517                             eval "DEFAULT_$LINE"
8518                           else
8519                             no_cache=1
8520                           fi
8521
8522                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8523
8524 fi;
8525
8526           eval "$ac_cv_use_statbmp"
8527           if test "$no_cache" != 1; then
8528             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8529           fi
8530
8531           if test "$wxUSE_STATBMP" = yes; then
8532             echo "$as_me:$LINENO: result: yes" >&5
8533 echo "${ECHO_T}yes" >&6
8534           else
8535             echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6
8537           fi
8538
8539
8540           enablestring=
8541           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8542 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8543           no_cache=0
8544           # Check whether --enable-statbox or --disable-statbox was given.
8545 if test "${enable_statbox+set}" = set; then
8546   enableval="$enable_statbox"
8547
8548                           if test "$enableval" = yes; then
8549                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
8550                           else
8551                             ac_cv_use_statbox='wxUSE_STATBOX=no'
8552                           fi
8553
8554 else
8555
8556                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8557                           if test "x$LINE" != x ; then
8558                             eval "DEFAULT_$LINE"
8559                           else
8560                             no_cache=1
8561                           fi
8562
8563                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8564
8565 fi;
8566
8567           eval "$ac_cv_use_statbox"
8568           if test "$no_cache" != 1; then
8569             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8570           fi
8571
8572           if test "$wxUSE_STATBOX" = yes; then
8573             echo "$as_me:$LINENO: result: yes" >&5
8574 echo "${ECHO_T}yes" >&6
8575           else
8576             echo "$as_me:$LINENO: result: no" >&5
8577 echo "${ECHO_T}no" >&6
8578           fi
8579
8580
8581           enablestring=
8582           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8583 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8584           no_cache=0
8585           # Check whether --enable-statline or --disable-statline was given.
8586 if test "${enable_statline+set}" = set; then
8587   enableval="$enable_statline"
8588
8589                           if test "$enableval" = yes; then
8590                             ac_cv_use_statline='wxUSE_STATLINE=yes'
8591                           else
8592                             ac_cv_use_statline='wxUSE_STATLINE=no'
8593                           fi
8594
8595 else
8596
8597                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8598                           if test "x$LINE" != x ; then
8599                             eval "DEFAULT_$LINE"
8600                           else
8601                             no_cache=1
8602                           fi
8603
8604                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8605
8606 fi;
8607
8608           eval "$ac_cv_use_statline"
8609           if test "$no_cache" != 1; then
8610             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8611           fi
8612
8613           if test "$wxUSE_STATLINE" = yes; then
8614             echo "$as_me:$LINENO: result: yes" >&5
8615 echo "${ECHO_T}yes" >&6
8616           else
8617             echo "$as_me:$LINENO: result: no" >&5
8618 echo "${ECHO_T}no" >&6
8619           fi
8620
8621
8622           enablestring=
8623           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8624 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8625           no_cache=0
8626           # Check whether --enable-stattext or --disable-stattext was given.
8627 if test "${enable_stattext+set}" = set; then
8628   enableval="$enable_stattext"
8629
8630                           if test "$enableval" = yes; then
8631                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8632                           else
8633                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
8634                           fi
8635
8636 else
8637
8638                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8639                           if test "x$LINE" != x ; then
8640                             eval "DEFAULT_$LINE"
8641                           else
8642                             no_cache=1
8643                           fi
8644
8645                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8646
8647 fi;
8648
8649           eval "$ac_cv_use_stattext"
8650           if test "$no_cache" != 1; then
8651             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8652           fi
8653
8654           if test "$wxUSE_STATTEXT" = yes; then
8655             echo "$as_me:$LINENO: result: yes" >&5
8656 echo "${ECHO_T}yes" >&6
8657           else
8658             echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6
8660           fi
8661
8662
8663           enablestring=
8664           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8665 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8666           no_cache=0
8667           # Check whether --enable-statusbar or --disable-statusbar was given.
8668 if test "${enable_statusbar+set}" = set; then
8669   enableval="$enable_statusbar"
8670
8671                           if test "$enableval" = yes; then
8672                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8673                           else
8674                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8675                           fi
8676
8677 else
8678
8679                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8680                           if test "x$LINE" != x ; then
8681                             eval "DEFAULT_$LINE"
8682                           else
8683                             no_cache=1
8684                           fi
8685
8686                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8687
8688 fi;
8689
8690           eval "$ac_cv_use_statusbar"
8691           if test "$no_cache" != 1; then
8692             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8693           fi
8694
8695           if test "$wxUSE_STATUSBAR" = yes; then
8696             echo "$as_me:$LINENO: result: yes" >&5
8697 echo "${ECHO_T}yes" >&6
8698           else
8699             echo "$as_me:$LINENO: result: no" >&5
8700 echo "${ECHO_T}no" >&6
8701           fi
8702
8703
8704           enablestring=
8705           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8706 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8707           no_cache=0
8708           # Check whether --enable-tabdialog or --disable-tabdialog was given.
8709 if test "${enable_tabdialog+set}" = set; then
8710   enableval="$enable_tabdialog"
8711
8712                           if test "$enableval" = yes; then
8713                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8714                           else
8715                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8716                           fi
8717
8718 else
8719
8720                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8721                           if test "x$LINE" != x ; then
8722                             eval "DEFAULT_$LINE"
8723                           else
8724                             no_cache=1
8725                           fi
8726
8727                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8728
8729 fi;
8730
8731           eval "$ac_cv_use_tabdialog"
8732           if test "$no_cache" != 1; then
8733             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8734           fi
8735
8736           if test "$wxUSE_TABDIALOG" = yes; then
8737             echo "$as_me:$LINENO: result: yes" >&5
8738 echo "${ECHO_T}yes" >&6
8739           else
8740             echo "$as_me:$LINENO: result: no" >&5
8741 echo "${ECHO_T}no" >&6
8742           fi
8743
8744
8745           enablestring=
8746           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8747 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8748           no_cache=0
8749           # Check whether --enable-textctrl or --disable-textctrl was given.
8750 if test "${enable_textctrl+set}" = set; then
8751   enableval="$enable_textctrl"
8752
8753                           if test "$enableval" = yes; then
8754                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8755                           else
8756                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8757                           fi
8758
8759 else
8760
8761                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8762                           if test "x$LINE" != x ; then
8763                             eval "DEFAULT_$LINE"
8764                           else
8765                             no_cache=1
8766                           fi
8767
8768                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8769
8770 fi;
8771
8772           eval "$ac_cv_use_textctrl"
8773           if test "$no_cache" != 1; then
8774             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8775           fi
8776
8777           if test "$wxUSE_TEXTCTRL" = yes; then
8778             echo "$as_me:$LINENO: result: yes" >&5
8779 echo "${ECHO_T}yes" >&6
8780           else
8781             echo "$as_me:$LINENO: result: no" >&5
8782 echo "${ECHO_T}no" >&6
8783           fi
8784
8785
8786           enablestring=
8787           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8788 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8789           no_cache=0
8790           # Check whether --enable-togglebtn or --disable-togglebtn was given.
8791 if test "${enable_togglebtn+set}" = set; then
8792   enableval="$enable_togglebtn"
8793
8794                           if test "$enableval" = yes; then
8795                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8796                           else
8797                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8798                           fi
8799
8800 else
8801
8802                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8803                           if test "x$LINE" != x ; then
8804                             eval "DEFAULT_$LINE"
8805                           else
8806                             no_cache=1
8807                           fi
8808
8809                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8810
8811 fi;
8812
8813           eval "$ac_cv_use_togglebtn"
8814           if test "$no_cache" != 1; then
8815             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8816           fi
8817
8818           if test "$wxUSE_TOGGLEBTN" = yes; then
8819             echo "$as_me:$LINENO: result: yes" >&5
8820 echo "${ECHO_T}yes" >&6
8821           else
8822             echo "$as_me:$LINENO: result: no" >&5
8823 echo "${ECHO_T}no" >&6
8824           fi
8825
8826
8827           enablestring=
8828           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8829 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8830           no_cache=0
8831           # Check whether --enable-toolbar or --disable-toolbar was given.
8832 if test "${enable_toolbar+set}" = set; then
8833   enableval="$enable_toolbar"
8834
8835                           if test "$enableval" = yes; then
8836                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8837                           else
8838                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8839                           fi
8840
8841 else
8842
8843                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8844                           if test "x$LINE" != x ; then
8845                             eval "DEFAULT_$LINE"
8846                           else
8847                             no_cache=1
8848                           fi
8849
8850                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8851
8852 fi;
8853
8854           eval "$ac_cv_use_toolbar"
8855           if test "$no_cache" != 1; then
8856             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8857           fi
8858
8859           if test "$wxUSE_TOOLBAR" = yes; then
8860             echo "$as_me:$LINENO: result: yes" >&5
8861 echo "${ECHO_T}yes" >&6
8862           else
8863             echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6
8865           fi
8866
8867
8868           enablestring=
8869           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8870 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8871           no_cache=0
8872           # Check whether --enable-tbarnative or --disable-tbarnative was given.
8873 if test "${enable_tbarnative+set}" = set; then
8874   enableval="$enable_tbarnative"
8875
8876                           if test "$enableval" = yes; then
8877                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8878                           else
8879                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8880                           fi
8881
8882 else
8883
8884                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8885                           if test "x$LINE" != x ; then
8886                             eval "DEFAULT_$LINE"
8887                           else
8888                             no_cache=1
8889                           fi
8890
8891                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8892
8893 fi;
8894
8895           eval "$ac_cv_use_tbarnative"
8896           if test "$no_cache" != 1; then
8897             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8898           fi
8899
8900           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8901             echo "$as_me:$LINENO: result: yes" >&5
8902 echo "${ECHO_T}yes" >&6
8903           else
8904             echo "$as_me:$LINENO: result: no" >&5
8905 echo "${ECHO_T}no" >&6
8906           fi
8907
8908
8909           enablestring=
8910           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8911 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8912           no_cache=0
8913           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8914 if test "${enable_tbarsmpl+set}" = set; then
8915   enableval="$enable_tbarsmpl"
8916
8917                           if test "$enableval" = yes; then
8918                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8919                           else
8920                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8921                           fi
8922
8923 else
8924
8925                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8926                           if test "x$LINE" != x ; then
8927                             eval "DEFAULT_$LINE"
8928                           else
8929                             no_cache=1
8930                           fi
8931
8932                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8933
8934 fi;
8935
8936           eval "$ac_cv_use_tbarsmpl"
8937           if test "$no_cache" != 1; then
8938             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8939           fi
8940
8941           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8942             echo "$as_me:$LINENO: result: yes" >&5
8943 echo "${ECHO_T}yes" >&6
8944           else
8945             echo "$as_me:$LINENO: result: no" >&5
8946 echo "${ECHO_T}no" >&6
8947           fi
8948
8949
8950           enablestring=
8951           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
8952 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
8953           no_cache=0
8954           # Check whether --enable-treebook or --disable-treebook was given.
8955 if test "${enable_treebook+set}" = set; then
8956   enableval="$enable_treebook"
8957
8958                           if test "$enableval" = yes; then
8959                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
8960                           else
8961                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
8962                           fi
8963
8964 else
8965
8966                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
8967                           if test "x$LINE" != x ; then
8968                             eval "DEFAULT_$LINE"
8969                           else
8970                             no_cache=1
8971                           fi
8972
8973                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
8974
8975 fi;
8976
8977           eval "$ac_cv_use_treebook"
8978           if test "$no_cache" != 1; then
8979             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
8980           fi
8981
8982           if test "$wxUSE_TREEBOOK" = yes; then
8983             echo "$as_me:$LINENO: result: yes" >&5
8984 echo "${ECHO_T}yes" >&6
8985           else
8986             echo "$as_me:$LINENO: result: no" >&5
8987 echo "${ECHO_T}no" >&6
8988           fi
8989
8990
8991           enablestring=
8992           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8993 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8994           no_cache=0
8995           # Check whether --enable-treectrl or --disable-treectrl was given.
8996 if test "${enable_treectrl+set}" = set; then
8997   enableval="$enable_treectrl"
8998
8999                           if test "$enableval" = yes; then
9000                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9001                           else
9002                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9003                           fi
9004
9005 else
9006
9007                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9008                           if test "x$LINE" != x ; then
9009                             eval "DEFAULT_$LINE"
9010                           else
9011                             no_cache=1
9012                           fi
9013
9014                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9015
9016 fi;
9017
9018           eval "$ac_cv_use_treectrl"
9019           if test "$no_cache" != 1; then
9020             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9021           fi
9022
9023           if test "$wxUSE_TREECTRL" = yes; then
9024             echo "$as_me:$LINENO: result: yes" >&5
9025 echo "${ECHO_T}yes" >&6
9026           else
9027             echo "$as_me:$LINENO: result: no" >&5
9028 echo "${ECHO_T}no" >&6
9029           fi
9030
9031
9032           enablestring=
9033           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9034 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9035           no_cache=0
9036           # Check whether --enable-tipwindow or --disable-tipwindow was given.
9037 if test "${enable_tipwindow+set}" = set; then
9038   enableval="$enable_tipwindow"
9039
9040                           if test "$enableval" = yes; then
9041                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9042                           else
9043                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9044                           fi
9045
9046 else
9047
9048                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9049                           if test "x$LINE" != x ; then
9050                             eval "DEFAULT_$LINE"
9051                           else
9052                             no_cache=1
9053                           fi
9054
9055                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9056
9057 fi;
9058
9059           eval "$ac_cv_use_tipwindow"
9060           if test "$no_cache" != 1; then
9061             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9062           fi
9063
9064           if test "$wxUSE_TIPWINDOW" = yes; then
9065             echo "$as_me:$LINENO: result: yes" >&5
9066 echo "${ECHO_T}yes" >&6
9067           else
9068             echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6
9070           fi
9071
9072
9073           enablestring=
9074           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9075 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9076           no_cache=0
9077           # Check whether --enable-popupwin or --disable-popupwin was given.
9078 if test "${enable_popupwin+set}" = set; then
9079   enableval="$enable_popupwin"
9080
9081                           if test "$enableval" = yes; then
9082                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9083                           else
9084                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9085                           fi
9086
9087 else
9088
9089                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9090                           if test "x$LINE" != x ; then
9091                             eval "DEFAULT_$LINE"
9092                           else
9093                             no_cache=1
9094                           fi
9095
9096                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9097
9098 fi;
9099
9100           eval "$ac_cv_use_popupwin"
9101           if test "$no_cache" != 1; then
9102             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9103           fi
9104
9105           if test "$wxUSE_POPUPWIN" = yes; then
9106             echo "$as_me:$LINENO: result: yes" >&5
9107 echo "${ECHO_T}yes" >&6
9108           else
9109             echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9111           fi
9112
9113
9114
9115
9116           enablestring=
9117           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9118 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9119           no_cache=0
9120           # Check whether --enable-commondlg or --disable-commondlg was given.
9121 if test "${enable_commondlg+set}" = set; then
9122   enableval="$enable_commondlg"
9123
9124                           if test "$enableval" = yes; then
9125                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9126                           else
9127                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9128                           fi
9129
9130 else
9131
9132                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9133                           if test "x$LINE" != x ; then
9134                             eval "DEFAULT_$LINE"
9135                           else
9136                             no_cache=1
9137                           fi
9138
9139                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9140
9141 fi;
9142
9143           eval "$ac_cv_use_commondlg"
9144           if test "$no_cache" != 1; then
9145             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9146           fi
9147
9148           if test "$wxUSE_COMMONDLGS" = yes; then
9149             echo "$as_me:$LINENO: result: yes" >&5
9150 echo "${ECHO_T}yes" >&6
9151           else
9152             echo "$as_me:$LINENO: result: no" >&5
9153 echo "${ECHO_T}no" >&6
9154           fi
9155
9156
9157           enablestring=
9158           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9159 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9160           no_cache=0
9161           # Check whether --enable-choicedlg or --disable-choicedlg was given.
9162 if test "${enable_choicedlg+set}" = set; then
9163   enableval="$enable_choicedlg"
9164
9165                           if test "$enableval" = yes; then
9166                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9167                           else
9168                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9169                           fi
9170
9171 else
9172
9173                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9174                           if test "x$LINE" != x ; then
9175                             eval "DEFAULT_$LINE"
9176                           else
9177                             no_cache=1
9178                           fi
9179
9180                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9181
9182 fi;
9183
9184           eval "$ac_cv_use_choicedlg"
9185           if test "$no_cache" != 1; then
9186             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9187           fi
9188
9189           if test "$wxUSE_CHOICEDLG" = yes; then
9190             echo "$as_me:$LINENO: result: yes" >&5
9191 echo "${ECHO_T}yes" >&6
9192           else
9193             echo "$as_me:$LINENO: result: no" >&5
9194 echo "${ECHO_T}no" >&6
9195           fi
9196
9197
9198           enablestring=
9199           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9200 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9201           no_cache=0
9202           # Check whether --enable-coldlg or --disable-coldlg was given.
9203 if test "${enable_coldlg+set}" = set; then
9204   enableval="$enable_coldlg"
9205
9206                           if test "$enableval" = yes; then
9207                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9208                           else
9209                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9210                           fi
9211
9212 else
9213
9214                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9215                           if test "x$LINE" != x ; then
9216                             eval "DEFAULT_$LINE"
9217                           else
9218                             no_cache=1
9219                           fi
9220
9221                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9222
9223 fi;
9224
9225           eval "$ac_cv_use_coldlg"
9226           if test "$no_cache" != 1; then
9227             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9228           fi
9229
9230           if test "$wxUSE_COLOURDLG" = yes; then
9231             echo "$as_me:$LINENO: result: yes" >&5
9232 echo "${ECHO_T}yes" >&6
9233           else
9234             echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6
9236           fi
9237
9238
9239           enablestring=
9240           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9241 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9242           no_cache=0
9243           # Check whether --enable-filedlg or --disable-filedlg was given.
9244 if test "${enable_filedlg+set}" = set; then
9245   enableval="$enable_filedlg"
9246
9247                           if test "$enableval" = yes; then
9248                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9249                           else
9250                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9251                           fi
9252
9253 else
9254
9255                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9256                           if test "x$LINE" != x ; then
9257                             eval "DEFAULT_$LINE"
9258                           else
9259                             no_cache=1
9260                           fi
9261
9262                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9263
9264 fi;
9265
9266           eval "$ac_cv_use_filedlg"
9267           if test "$no_cache" != 1; then
9268             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9269           fi
9270
9271           if test "$wxUSE_FILEDLG" = yes; then
9272             echo "$as_me:$LINENO: result: yes" >&5
9273 echo "${ECHO_T}yes" >&6
9274           else
9275             echo "$as_me:$LINENO: result: no" >&5
9276 echo "${ECHO_T}no" >&6
9277           fi
9278
9279
9280           enablestring=
9281           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9282 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9283           no_cache=0
9284           # Check whether --enable-finddlg or --disable-finddlg was given.
9285 if test "${enable_finddlg+set}" = set; then
9286   enableval="$enable_finddlg"
9287
9288                           if test "$enableval" = yes; then
9289                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9290                           else
9291                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9292                           fi
9293
9294 else
9295
9296                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9297                           if test "x$LINE" != x ; then
9298                             eval "DEFAULT_$LINE"
9299                           else
9300                             no_cache=1
9301                           fi
9302
9303                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9304
9305 fi;
9306
9307           eval "$ac_cv_use_finddlg"
9308           if test "$no_cache" != 1; then
9309             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9310           fi
9311
9312           if test "$wxUSE_FINDREPLDLG" = yes; then
9313             echo "$as_me:$LINENO: result: yes" >&5
9314 echo "${ECHO_T}yes" >&6
9315           else
9316             echo "$as_me:$LINENO: result: no" >&5
9317 echo "${ECHO_T}no" >&6
9318           fi
9319
9320
9321           enablestring=
9322           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9323 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9324           no_cache=0
9325           # Check whether --enable-fontdlg or --disable-fontdlg was given.
9326 if test "${enable_fontdlg+set}" = set; then
9327   enableval="$enable_fontdlg"
9328
9329                           if test "$enableval" = yes; then
9330                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9331                           else
9332                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9333                           fi
9334
9335 else
9336
9337                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9338                           if test "x$LINE" != x ; then
9339                             eval "DEFAULT_$LINE"
9340                           else
9341                             no_cache=1
9342                           fi
9343
9344                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9345
9346 fi;
9347
9348           eval "$ac_cv_use_fontdlg"
9349           if test "$no_cache" != 1; then
9350             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9351           fi
9352
9353           if test "$wxUSE_FONTDLG" = yes; then
9354             echo "$as_me:$LINENO: result: yes" >&5
9355 echo "${ECHO_T}yes" >&6
9356           else
9357             echo "$as_me:$LINENO: result: no" >&5
9358 echo "${ECHO_T}no" >&6
9359           fi
9360
9361
9362           enablestring=
9363           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9364 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9365           no_cache=0
9366           # Check whether --enable-dirdlg or --disable-dirdlg was given.
9367 if test "${enable_dirdlg+set}" = set; then
9368   enableval="$enable_dirdlg"
9369
9370                           if test "$enableval" = yes; then
9371                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9372                           else
9373                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9374                           fi
9375
9376 else
9377
9378                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9379                           if test "x$LINE" != x ; then
9380                             eval "DEFAULT_$LINE"
9381                           else
9382                             no_cache=1
9383                           fi
9384
9385                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9386
9387 fi;
9388
9389           eval "$ac_cv_use_dirdlg"
9390           if test "$no_cache" != 1; then
9391             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9392           fi
9393
9394           if test "$wxUSE_DIRDLG" = yes; then
9395             echo "$as_me:$LINENO: result: yes" >&5
9396 echo "${ECHO_T}yes" >&6
9397           else
9398             echo "$as_me:$LINENO: result: no" >&5
9399 echo "${ECHO_T}no" >&6
9400           fi
9401
9402
9403           enablestring=
9404           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9405 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9406           no_cache=0
9407           # Check whether --enable-msgdlg or --disable-msgdlg was given.
9408 if test "${enable_msgdlg+set}" = set; then
9409   enableval="$enable_msgdlg"
9410
9411                           if test "$enableval" = yes; then
9412                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9413                           else
9414                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9415                           fi
9416
9417 else
9418
9419                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9420                           if test "x$LINE" != x ; then
9421                             eval "DEFAULT_$LINE"
9422                           else
9423                             no_cache=1
9424                           fi
9425
9426                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9427
9428 fi;
9429
9430           eval "$ac_cv_use_msgdlg"
9431           if test "$no_cache" != 1; then
9432             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9433           fi
9434
9435           if test "$wxUSE_MSGDLG" = yes; then
9436             echo "$as_me:$LINENO: result: yes" >&5
9437 echo "${ECHO_T}yes" >&6
9438           else
9439             echo "$as_me:$LINENO: result: no" >&5
9440 echo "${ECHO_T}no" >&6
9441           fi
9442
9443
9444           enablestring=
9445           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9446 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9447           no_cache=0
9448           # Check whether --enable-numberdlg or --disable-numberdlg was given.
9449 if test "${enable_numberdlg+set}" = set; then
9450   enableval="$enable_numberdlg"
9451
9452                           if test "$enableval" = yes; then
9453                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9454                           else
9455                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9456                           fi
9457
9458 else
9459
9460                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9461                           if test "x$LINE" != x ; then
9462                             eval "DEFAULT_$LINE"
9463                           else
9464                             no_cache=1
9465                           fi
9466
9467                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9468
9469 fi;
9470
9471           eval "$ac_cv_use_numberdlg"
9472           if test "$no_cache" != 1; then
9473             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9474           fi
9475
9476           if test "$wxUSE_NUMBERDLG" = yes; then
9477             echo "$as_me:$LINENO: result: yes" >&5
9478 echo "${ECHO_T}yes" >&6
9479           else
9480             echo "$as_me:$LINENO: result: no" >&5
9481 echo "${ECHO_T}no" >&6
9482           fi
9483
9484
9485           enablestring=
9486           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9487 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9488           no_cache=0
9489           # Check whether --enable-splash or --disable-splash was given.
9490 if test "${enable_splash+set}" = set; then
9491   enableval="$enable_splash"
9492
9493                           if test "$enableval" = yes; then
9494                             ac_cv_use_splash='wxUSE_SPLASH=yes'
9495                           else
9496                             ac_cv_use_splash='wxUSE_SPLASH=no'
9497                           fi
9498
9499 else
9500
9501                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9502                           if test "x$LINE" != x ; then
9503                             eval "DEFAULT_$LINE"
9504                           else
9505                             no_cache=1
9506                           fi
9507
9508                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9509
9510 fi;
9511
9512           eval "$ac_cv_use_splash"
9513           if test "$no_cache" != 1; then
9514             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9515           fi
9516
9517           if test "$wxUSE_SPLASH" = yes; then
9518             echo "$as_me:$LINENO: result: yes" >&5
9519 echo "${ECHO_T}yes" >&6
9520           else
9521             echo "$as_me:$LINENO: result: no" >&5
9522 echo "${ECHO_T}no" >&6
9523           fi
9524
9525
9526           enablestring=
9527           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9528 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9529           no_cache=0
9530           # Check whether --enable-textdlg or --disable-textdlg was given.
9531 if test "${enable_textdlg+set}" = set; then
9532   enableval="$enable_textdlg"
9533
9534                           if test "$enableval" = yes; then
9535                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9536                           else
9537                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9538                           fi
9539
9540 else
9541
9542                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9543                           if test "x$LINE" != x ; then
9544                             eval "DEFAULT_$LINE"
9545                           else
9546                             no_cache=1
9547                           fi
9548
9549                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9550
9551 fi;
9552
9553           eval "$ac_cv_use_textdlg"
9554           if test "$no_cache" != 1; then
9555             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9556           fi
9557
9558           if test "$wxUSE_TEXTDLG" = yes; then
9559             echo "$as_me:$LINENO: result: yes" >&5
9560 echo "${ECHO_T}yes" >&6
9561           else
9562             echo "$as_me:$LINENO: result: no" >&5
9563 echo "${ECHO_T}no" >&6
9564           fi
9565
9566
9567           enablestring=
9568           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9569 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9570           no_cache=0
9571           # Check whether --enable-tipdlg or --disable-tipdlg was given.
9572 if test "${enable_tipdlg+set}" = set; then
9573   enableval="$enable_tipdlg"
9574
9575                           if test "$enableval" = yes; then
9576                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9577                           else
9578                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9579                           fi
9580
9581 else
9582
9583                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9584                           if test "x$LINE" != x ; then
9585                             eval "DEFAULT_$LINE"
9586                           else
9587                             no_cache=1
9588                           fi
9589
9590                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9591
9592 fi;
9593
9594           eval "$ac_cv_use_tipdlg"
9595           if test "$no_cache" != 1; then
9596             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9597           fi
9598
9599           if test "$wxUSE_STARTUP_TIPS" = yes; then
9600             echo "$as_me:$LINENO: result: yes" >&5
9601 echo "${ECHO_T}yes" >&6
9602           else
9603             echo "$as_me:$LINENO: result: no" >&5
9604 echo "${ECHO_T}no" >&6
9605           fi
9606
9607
9608           enablestring=
9609           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9610 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9611           no_cache=0
9612           # Check whether --enable-progressdlg or --disable-progressdlg was given.
9613 if test "${enable_progressdlg+set}" = set; then
9614   enableval="$enable_progressdlg"
9615
9616                           if test "$enableval" = yes; then
9617                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9618                           else
9619                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9620                           fi
9621
9622 else
9623
9624                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9625                           if test "x$LINE" != x ; then
9626                             eval "DEFAULT_$LINE"
9627                           else
9628                             no_cache=1
9629                           fi
9630
9631                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9632
9633 fi;
9634
9635           eval "$ac_cv_use_progressdlg"
9636           if test "$no_cache" != 1; then
9637             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9638           fi
9639
9640           if test "$wxUSE_PROGRESSDLG" = yes; then
9641             echo "$as_me:$LINENO: result: yes" >&5
9642 echo "${ECHO_T}yes" >&6
9643           else
9644             echo "$as_me:$LINENO: result: no" >&5
9645 echo "${ECHO_T}no" >&6
9646           fi
9647
9648
9649           enablestring=
9650           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9651 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9652           no_cache=0
9653           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9654 if test "${enable_wizarddlg+set}" = set; then
9655   enableval="$enable_wizarddlg"
9656
9657                           if test "$enableval" = yes; then
9658                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9659                           else
9660                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9661                           fi
9662
9663 else
9664
9665                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9666                           if test "x$LINE" != x ; then
9667                             eval "DEFAULT_$LINE"
9668                           else
9669                             no_cache=1
9670                           fi
9671
9672                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9673
9674 fi;
9675
9676           eval "$ac_cv_use_wizarddlg"
9677           if test "$no_cache" != 1; then
9678             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9679           fi
9680
9681           if test "$wxUSE_WIZARDDLG" = yes; then
9682             echo "$as_me:$LINENO: result: yes" >&5
9683 echo "${ECHO_T}yes" >&6
9684           else
9685             echo "$as_me:$LINENO: result: no" >&5
9686 echo "${ECHO_T}no" >&6
9687           fi
9688
9689
9690
9691
9692           enablestring=
9693           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9694 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9695           no_cache=0
9696           # Check whether --enable-menus or --disable-menus was given.
9697 if test "${enable_menus+set}" = set; then
9698   enableval="$enable_menus"
9699
9700                           if test "$enableval" = yes; then
9701                             ac_cv_use_menus='wxUSE_MENUS=yes'
9702                           else
9703                             ac_cv_use_menus='wxUSE_MENUS=no'
9704                           fi
9705
9706 else
9707
9708                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9709                           if test "x$LINE" != x ; then
9710                             eval "DEFAULT_$LINE"
9711                           else
9712                             no_cache=1
9713                           fi
9714
9715                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9716
9717 fi;
9718
9719           eval "$ac_cv_use_menus"
9720           if test "$no_cache" != 1; then
9721             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9722           fi
9723
9724           if test "$wxUSE_MENUS" = yes; then
9725             echo "$as_me:$LINENO: result: yes" >&5
9726 echo "${ECHO_T}yes" >&6
9727           else
9728             echo "$as_me:$LINENO: result: no" >&5
9729 echo "${ECHO_T}no" >&6
9730           fi
9731
9732
9733           enablestring=
9734           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9735 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9736           no_cache=0
9737           # Check whether --enable-miniframe or --disable-miniframe was given.
9738 if test "${enable_miniframe+set}" = set; then
9739   enableval="$enable_miniframe"
9740
9741                           if test "$enableval" = yes; then
9742                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9743                           else
9744                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9745                           fi
9746
9747 else
9748
9749                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9750                           if test "x$LINE" != x ; then
9751                             eval "DEFAULT_$LINE"
9752                           else
9753                             no_cache=1
9754                           fi
9755
9756                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9757
9758 fi;
9759
9760           eval "$ac_cv_use_miniframe"
9761           if test "$no_cache" != 1; then
9762             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9763           fi
9764
9765           if test "$wxUSE_MINIFRAME" = yes; then
9766             echo "$as_me:$LINENO: result: yes" >&5
9767 echo "${ECHO_T}yes" >&6
9768           else
9769             echo "$as_me:$LINENO: result: no" >&5
9770 echo "${ECHO_T}no" >&6
9771           fi
9772
9773
9774           enablestring=
9775           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9776 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9777           no_cache=0
9778           # Check whether --enable-tooltips or --disable-tooltips was given.
9779 if test "${enable_tooltips+set}" = set; then
9780   enableval="$enable_tooltips"
9781
9782                           if test "$enableval" = yes; then
9783                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9784                           else
9785                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9786                           fi
9787
9788 else
9789
9790                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9791                           if test "x$LINE" != x ; then
9792                             eval "DEFAULT_$LINE"
9793                           else
9794                             no_cache=1
9795                           fi
9796
9797                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9798
9799 fi;
9800
9801           eval "$ac_cv_use_tooltips"
9802           if test "$no_cache" != 1; then
9803             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9804           fi
9805
9806           if test "$wxUSE_TOOLTIPS" = yes; then
9807             echo "$as_me:$LINENO: result: yes" >&5
9808 echo "${ECHO_T}yes" >&6
9809           else
9810             echo "$as_me:$LINENO: result: no" >&5
9811 echo "${ECHO_T}no" >&6
9812           fi
9813
9814
9815           enablestring=
9816           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9817 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9818           no_cache=0
9819           # Check whether --enable-splines or --disable-splines was given.
9820 if test "${enable_splines+set}" = set; then
9821   enableval="$enable_splines"
9822
9823                           if test "$enableval" = yes; then
9824                             ac_cv_use_splines='wxUSE_SPLINES=yes'
9825                           else
9826                             ac_cv_use_splines='wxUSE_SPLINES=no'
9827                           fi
9828
9829 else
9830
9831                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9832                           if test "x$LINE" != x ; then
9833                             eval "DEFAULT_$LINE"
9834                           else
9835                             no_cache=1
9836                           fi
9837
9838                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9839
9840 fi;
9841
9842           eval "$ac_cv_use_splines"
9843           if test "$no_cache" != 1; then
9844             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9845           fi
9846
9847           if test "$wxUSE_SPLINES" = yes; then
9848             echo "$as_me:$LINENO: result: yes" >&5
9849 echo "${ECHO_T}yes" >&6
9850           else
9851             echo "$as_me:$LINENO: result: no" >&5
9852 echo "${ECHO_T}no" >&6
9853           fi
9854
9855
9856           enablestring=
9857           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9858 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9859           no_cache=0
9860           # Check whether --enable-mousewheel or --disable-mousewheel was given.
9861 if test "${enable_mousewheel+set}" = set; then
9862   enableval="$enable_mousewheel"
9863
9864                           if test "$enableval" = yes; then
9865                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9866                           else
9867                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9868                           fi
9869
9870 else
9871
9872                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9873                           if test "x$LINE" != x ; then
9874                             eval "DEFAULT_$LINE"
9875                           else
9876                             no_cache=1
9877                           fi
9878
9879                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9880
9881 fi;
9882
9883           eval "$ac_cv_use_mousewheel"
9884           if test "$no_cache" != 1; then
9885             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9886           fi
9887
9888           if test "$wxUSE_MOUSEWHEEL" = yes; then
9889             echo "$as_me:$LINENO: result: yes" >&5
9890 echo "${ECHO_T}yes" >&6
9891           else
9892             echo "$as_me:$LINENO: result: no" >&5
9893 echo "${ECHO_T}no" >&6
9894           fi
9895
9896
9897           enablestring=
9898           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9899 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9900           no_cache=0
9901           # Check whether --enable-validators or --disable-validators was given.
9902 if test "${enable_validators+set}" = set; then
9903   enableval="$enable_validators"
9904
9905                           if test "$enableval" = yes; then
9906                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9907                           else
9908                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
9909                           fi
9910
9911 else
9912
9913                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9914                           if test "x$LINE" != x ; then
9915                             eval "DEFAULT_$LINE"
9916                           else
9917                             no_cache=1
9918                           fi
9919
9920                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9921
9922 fi;
9923
9924           eval "$ac_cv_use_validators"
9925           if test "$no_cache" != 1; then
9926             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9927           fi
9928
9929           if test "$wxUSE_VALIDATORS" = yes; then
9930             echo "$as_me:$LINENO: result: yes" >&5
9931 echo "${ECHO_T}yes" >&6
9932           else
9933             echo "$as_me:$LINENO: result: no" >&5
9934 echo "${ECHO_T}no" >&6
9935           fi
9936
9937
9938           enablestring=
9939           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9940 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9941           no_cache=0
9942           # Check whether --enable-busyinfo or --disable-busyinfo was given.
9943 if test "${enable_busyinfo+set}" = set; then
9944   enableval="$enable_busyinfo"
9945
9946                           if test "$enableval" = yes; then
9947                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9948                           else
9949                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9950                           fi
9951
9952 else
9953
9954                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9955                           if test "x$LINE" != x ; then
9956                             eval "DEFAULT_$LINE"
9957                           else
9958                             no_cache=1
9959                           fi
9960
9961                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9962
9963 fi;
9964
9965           eval "$ac_cv_use_busyinfo"
9966           if test "$no_cache" != 1; then
9967             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9968           fi
9969
9970           if test "$wxUSE_BUSYINFO" = yes; then
9971             echo "$as_me:$LINENO: result: yes" >&5
9972 echo "${ECHO_T}yes" >&6
9973           else
9974             echo "$as_me:$LINENO: result: no" >&5
9975 echo "${ECHO_T}no" >&6
9976           fi
9977
9978
9979           enablestring=
9980           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9981 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9982           no_cache=0
9983           # Check whether --enable-joystick or --disable-joystick was given.
9984 if test "${enable_joystick+set}" = set; then
9985   enableval="$enable_joystick"
9986
9987                           if test "$enableval" = yes; then
9988                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9989                           else
9990                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9991                           fi
9992
9993 else
9994
9995                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9996                           if test "x$LINE" != x ; then
9997                             eval "DEFAULT_$LINE"
9998                           else
9999                             no_cache=1
10000                           fi
10001
10002                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10003
10004 fi;
10005
10006           eval "$ac_cv_use_joystick"
10007           if test "$no_cache" != 1; then
10008             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10009           fi
10010
10011           if test "$wxUSE_JOYSTICK" = yes; then
10012             echo "$as_me:$LINENO: result: yes" >&5
10013 echo "${ECHO_T}yes" >&6
10014           else
10015             echo "$as_me:$LINENO: result: no" >&5
10016 echo "${ECHO_T}no" >&6
10017           fi
10018
10019
10020           enablestring=
10021           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10022 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10023           no_cache=0
10024           # Check whether --enable-metafile or --disable-metafile was given.
10025 if test "${enable_metafile+set}" = set; then
10026   enableval="$enable_metafile"
10027
10028                           if test "$enableval" = yes; then
10029                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
10030                           else
10031                             ac_cv_use_metafile='wxUSE_METAFILE=no'
10032                           fi
10033
10034 else
10035
10036                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10037                           if test "x$LINE" != x ; then
10038                             eval "DEFAULT_$LINE"
10039                           else
10040                             no_cache=1
10041                           fi
10042
10043                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10044
10045 fi;
10046
10047           eval "$ac_cv_use_metafile"
10048           if test "$no_cache" != 1; then
10049             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10050           fi
10051
10052           if test "$wxUSE_METAFILE" = yes; then
10053             echo "$as_me:$LINENO: result: yes" >&5
10054 echo "${ECHO_T}yes" >&6
10055           else
10056             echo "$as_me:$LINENO: result: no" >&5
10057 echo "${ECHO_T}no" >&6
10058           fi
10059
10060
10061           enablestring=
10062           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10063 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10064           no_cache=0
10065           # Check whether --enable-dragimage or --disable-dragimage was given.
10066 if test "${enable_dragimage+set}" = set; then
10067   enableval="$enable_dragimage"
10068
10069                           if test "$enableval" = yes; then
10070                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10071                           else
10072                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10073                           fi
10074
10075 else
10076
10077                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10078                           if test "x$LINE" != x ; then
10079                             eval "DEFAULT_$LINE"
10080                           else
10081                             no_cache=1
10082                           fi
10083
10084                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10085
10086 fi;
10087
10088           eval "$ac_cv_use_dragimage"
10089           if test "$no_cache" != 1; then
10090             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10091           fi
10092
10093           if test "$wxUSE_DRAGIMAGE" = yes; then
10094             echo "$as_me:$LINENO: result: yes" >&5
10095 echo "${ECHO_T}yes" >&6
10096           else
10097             echo "$as_me:$LINENO: result: no" >&5
10098 echo "${ECHO_T}no" >&6
10099           fi
10100
10101
10102           enablestring=
10103           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10104 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10105           no_cache=0
10106           # Check whether --enable-accessibility or --disable-accessibility was given.
10107 if test "${enable_accessibility+set}" = set; then
10108   enableval="$enable_accessibility"
10109
10110                           if test "$enableval" = yes; then
10111                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10112                           else
10113                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10114                           fi
10115
10116 else
10117
10118                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10119                           if test "x$LINE" != x ; then
10120                             eval "DEFAULT_$LINE"
10121                           else
10122                             no_cache=1
10123                           fi
10124
10125                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10126
10127 fi;
10128
10129           eval "$ac_cv_use_accessibility"
10130           if test "$no_cache" != 1; then
10131             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10132           fi
10133
10134           if test "$wxUSE_ACCESSIBILITY" = yes; then
10135             echo "$as_me:$LINENO: result: yes" >&5
10136 echo "${ECHO_T}yes" >&6
10137           else
10138             echo "$as_me:$LINENO: result: no" >&5
10139 echo "${ECHO_T}no" >&6
10140           fi
10141
10142
10143 if test "$wxUSE_MSW" = "1"; then
10144
10145           enablestring=
10146           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10147 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10148           no_cache=0
10149           # Check whether --enable-dccache or --disable-dccache was given.
10150 if test "${enable_dccache+set}" = set; then
10151   enableval="$enable_dccache"
10152
10153                           if test "$enableval" = yes; then
10154                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10155                           else
10156                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10157                           fi
10158
10159 else
10160
10161                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10162                           if test "x$LINE" != x ; then
10163                             eval "DEFAULT_$LINE"
10164                           else
10165                             no_cache=1
10166                           fi
10167
10168                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10169
10170 fi;
10171
10172           eval "$ac_cv_use_dccache"
10173           if test "$no_cache" != 1; then
10174             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10175           fi
10176
10177           if test "$wxUSE_DC_CACHEING" = yes; then
10178             echo "$as_me:$LINENO: result: yes" >&5
10179 echo "${ECHO_T}yes" >&6
10180           else
10181             echo "$as_me:$LINENO: result: no" >&5
10182 echo "${ECHO_T}no" >&6
10183           fi
10184
10185 fi
10186
10187
10188
10189           enablestring=
10190           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10191 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10192           no_cache=0
10193           # Check whether --enable-palette or --disable-palette was given.
10194 if test "${enable_palette+set}" = set; then
10195   enableval="$enable_palette"
10196
10197                           if test "$enableval" = yes; then
10198                             ac_cv_use_palette='wxUSE_PALETTE=yes'
10199                           else
10200                             ac_cv_use_palette='wxUSE_PALETTE=no'
10201                           fi
10202
10203 else
10204
10205                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10206                           if test "x$LINE" != x ; then
10207                             eval "DEFAULT_$LINE"
10208                           else
10209                             no_cache=1
10210                           fi
10211
10212                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10213
10214 fi;
10215
10216           eval "$ac_cv_use_palette"
10217           if test "$no_cache" != 1; then
10218             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10219           fi
10220
10221           if test "$wxUSE_PALETTE" = yes; then
10222             echo "$as_me:$LINENO: result: yes" >&5
10223 echo "${ECHO_T}yes" >&6
10224           else
10225             echo "$as_me:$LINENO: result: no" >&5
10226 echo "${ECHO_T}no" >&6
10227           fi
10228
10229
10230           enablestring=
10231           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10232 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10233           no_cache=0
10234           # Check whether --enable-image or --disable-image was given.
10235 if test "${enable_image+set}" = set; then
10236   enableval="$enable_image"
10237
10238                           if test "$enableval" = yes; then
10239                             ac_cv_use_image='wxUSE_IMAGE=yes'
10240                           else
10241                             ac_cv_use_image='wxUSE_IMAGE=no'
10242                           fi
10243
10244 else
10245
10246                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10247                           if test "x$LINE" != x ; then
10248                             eval "DEFAULT_$LINE"
10249                           else
10250                             no_cache=1
10251                           fi
10252
10253                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10254
10255 fi;
10256
10257           eval "$ac_cv_use_image"
10258           if test "$no_cache" != 1; then
10259             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10260           fi
10261
10262           if test "$wxUSE_IMAGE" = yes; then
10263             echo "$as_me:$LINENO: result: yes" >&5
10264 echo "${ECHO_T}yes" >&6
10265           else
10266             echo "$as_me:$LINENO: result: no" >&5
10267 echo "${ECHO_T}no" >&6
10268           fi
10269
10270
10271           enablestring=
10272           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10273 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10274           no_cache=0
10275           # Check whether --enable-gif or --disable-gif was given.
10276 if test "${enable_gif+set}" = set; then
10277   enableval="$enable_gif"
10278
10279                           if test "$enableval" = yes; then
10280                             ac_cv_use_gif='wxUSE_GIF=yes'
10281                           else
10282                             ac_cv_use_gif='wxUSE_GIF=no'
10283                           fi
10284
10285 else
10286
10287                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10288                           if test "x$LINE" != x ; then
10289                             eval "DEFAULT_$LINE"
10290                           else
10291                             no_cache=1
10292                           fi
10293
10294                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10295
10296 fi;
10297
10298           eval "$ac_cv_use_gif"
10299           if test "$no_cache" != 1; then
10300             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10301           fi
10302
10303           if test "$wxUSE_GIF" = yes; then
10304             echo "$as_me:$LINENO: result: yes" >&5
10305 echo "${ECHO_T}yes" >&6
10306           else
10307             echo "$as_me:$LINENO: result: no" >&5
10308 echo "${ECHO_T}no" >&6
10309           fi
10310
10311
10312           enablestring=
10313           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10314 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10315           no_cache=0
10316           # Check whether --enable-pcx or --disable-pcx was given.
10317 if test "${enable_pcx+set}" = set; then
10318   enableval="$enable_pcx"
10319
10320                           if test "$enableval" = yes; then
10321                             ac_cv_use_pcx='wxUSE_PCX=yes'
10322                           else
10323                             ac_cv_use_pcx='wxUSE_PCX=no'
10324                           fi
10325
10326 else
10327
10328                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10329                           if test "x$LINE" != x ; then
10330                             eval "DEFAULT_$LINE"
10331                           else
10332                             no_cache=1
10333                           fi
10334
10335                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10336
10337 fi;
10338
10339           eval "$ac_cv_use_pcx"
10340           if test "$no_cache" != 1; then
10341             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10342           fi
10343
10344           if test "$wxUSE_PCX" = yes; then
10345             echo "$as_me:$LINENO: result: yes" >&5
10346 echo "${ECHO_T}yes" >&6
10347           else
10348             echo "$as_me:$LINENO: result: no" >&5
10349 echo "${ECHO_T}no" >&6
10350           fi
10351
10352
10353           enablestring=
10354           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10355 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10356           no_cache=0
10357           # Check whether --enable-iff or --disable-iff was given.
10358 if test "${enable_iff+set}" = set; then
10359   enableval="$enable_iff"
10360
10361                           if test "$enableval" = yes; then
10362                             ac_cv_use_iff='wxUSE_IFF=yes'
10363                           else
10364                             ac_cv_use_iff='wxUSE_IFF=no'
10365                           fi
10366
10367 else
10368
10369                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10370                           if test "x$LINE" != x ; then
10371                             eval "DEFAULT_$LINE"
10372                           else
10373                             no_cache=1
10374                           fi
10375
10376                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10377
10378 fi;
10379
10380           eval "$ac_cv_use_iff"
10381           if test "$no_cache" != 1; then
10382             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10383           fi
10384
10385           if test "$wxUSE_IFF" = yes; then
10386             echo "$as_me:$LINENO: result: yes" >&5
10387 echo "${ECHO_T}yes" >&6
10388           else
10389             echo "$as_me:$LINENO: result: no" >&5
10390 echo "${ECHO_T}no" >&6
10391           fi
10392
10393
10394           enablestring=
10395           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10396 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10397           no_cache=0
10398           # Check whether --enable-pnm or --disable-pnm was given.
10399 if test "${enable_pnm+set}" = set; then
10400   enableval="$enable_pnm"
10401
10402                           if test "$enableval" = yes; then
10403                             ac_cv_use_pnm='wxUSE_PNM=yes'
10404                           else
10405                             ac_cv_use_pnm='wxUSE_PNM=no'
10406                           fi
10407
10408 else
10409
10410                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10411                           if test "x$LINE" != x ; then
10412                             eval "DEFAULT_$LINE"
10413                           else
10414                             no_cache=1
10415                           fi
10416
10417                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10418
10419 fi;
10420
10421           eval "$ac_cv_use_pnm"
10422           if test "$no_cache" != 1; then
10423             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10424           fi
10425
10426           if test "$wxUSE_PNM" = yes; then
10427             echo "$as_me:$LINENO: result: yes" >&5
10428 echo "${ECHO_T}yes" >&6
10429           else
10430             echo "$as_me:$LINENO: result: no" >&5
10431 echo "${ECHO_T}no" >&6
10432           fi
10433
10434
10435           enablestring=
10436           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10437 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10438           no_cache=0
10439           # Check whether --enable-xpm or --disable-xpm was given.
10440 if test "${enable_xpm+set}" = set; then
10441   enableval="$enable_xpm"
10442
10443                           if test "$enableval" = yes; then
10444                             ac_cv_use_xpm='wxUSE_XPM=yes'
10445                           else
10446                             ac_cv_use_xpm='wxUSE_XPM=no'
10447                           fi
10448
10449 else
10450
10451                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10452                           if test "x$LINE" != x ; then
10453                             eval "DEFAULT_$LINE"
10454                           else
10455                             no_cache=1
10456                           fi
10457
10458                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10459
10460 fi;
10461
10462           eval "$ac_cv_use_xpm"
10463           if test "$no_cache" != 1; then
10464             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10465           fi
10466
10467           if test "$wxUSE_XPM" = yes; then
10468             echo "$as_me:$LINENO: result: yes" >&5
10469 echo "${ECHO_T}yes" >&6
10470           else
10471             echo "$as_me:$LINENO: result: no" >&5
10472 echo "${ECHO_T}no" >&6
10473           fi
10474
10475
10476           enablestring=
10477           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10478 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10479           no_cache=0
10480           # Check whether --enable-ico_cur or --disable-ico_cur was given.
10481 if test "${enable_ico_cur+set}" = set; then
10482   enableval="$enable_ico_cur"
10483
10484                           if test "$enableval" = yes; then
10485                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10486                           else
10487                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10488                           fi
10489
10490 else
10491
10492                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10493                           if test "x$LINE" != x ; then
10494                             eval "DEFAULT_$LINE"
10495                           else
10496                             no_cache=1
10497                           fi
10498
10499                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10500
10501 fi;
10502
10503           eval "$ac_cv_use_ico_cur"
10504           if test "$no_cache" != 1; then
10505             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10506           fi
10507
10508           if test "$wxUSE_ICO_CUR" = yes; then
10509             echo "$as_me:$LINENO: result: yes" >&5
10510 echo "${ECHO_T}yes" >&6
10511           else
10512             echo "$as_me:$LINENO: result: no" >&5
10513 echo "${ECHO_T}no" >&6
10514           fi
10515
10516
10517 fi
10518
10519
10520
10521 # Check whether --with-flavour or --without-flavour was given.
10522 if test "${with_flavour+set}" = set; then
10523   withval="$with_flavour"
10524   WX_FLAVOUR="$withval"
10525 fi;
10526
10527
10528
10529           enablestring=
10530           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10531 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10532           no_cache=0
10533           # Check whether --enable-official_build or --disable-official_build was given.
10534 if test "${enable_official_build+set}" = set; then
10535   enableval="$enable_official_build"
10536
10537                           if test "$enableval" = yes; then
10538                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10539                           else
10540                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10541                           fi
10542
10543 else
10544
10545                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10546                           if test "x$LINE" != x ; then
10547                             eval "DEFAULT_$LINE"
10548                           else
10549                             no_cache=1
10550                           fi
10551
10552                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10553
10554 fi;
10555
10556           eval "$ac_cv_use_official_build"
10557           if test "$no_cache" != 1; then
10558             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10559           fi
10560
10561           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10562             echo "$as_me:$LINENO: result: yes" >&5
10563 echo "${ECHO_T}yes" >&6
10564           else
10565             echo "$as_me:$LINENO: result: no" >&5
10566 echo "${ECHO_T}no" >&6
10567           fi
10568
10569 # Check whether --enable-vendor or --disable-vendor was given.
10570 if test "${enable_vendor+set}" = set; then
10571   enableval="$enable_vendor"
10572   VENDOR="$enableval"
10573 fi;
10574 if test "x$VENDOR" = "x"; then
10575     VENDOR="custom"
10576 fi
10577
10578
10579
10580
10581           echo "saving argument cache $wx_arg_cache_file"
10582           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10583
10584
10585
10586 echo "$as_me:$LINENO: checking for toolkit" >&5
10587 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10588
10589 # In Wine, we need to default to MSW, not GTK or MOTIF
10590 if test "$wxUSE_WINE" = "yes"; then
10591     DEFAULT_DEFAULT_wxUSE_GTK=0
10592     DEFAULT_DEFAULT_wxUSE_MOTIF=0
10593     DEFAULT_DEFAULT_wxUSE_MSW=1
10594     wxUSE_SHARED=no
10595 fi
10596
10597
10598 if test "$wxUSE_GUI" = "yes"; then
10599
10600     if test "$USE_BEOS" = 1; then
10601         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10602 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10603    { (exit 1); exit 1; }; }
10604     fi
10605
10606     if test "$TOOLKIT_GIVEN" = 1; then
10607             for toolkit in `echo $ALL_TOOLKITS`; do
10608         var=wxUSE_$toolkit
10609         eval "value=\$${var}"
10610         if test "x$value" = "xno"; then
10611           eval "$var=0"
10612         elif test "x$value" != "x"; then
10613           eval "$var=1"
10614         fi
10615
10616         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10617           eval "wx${toolkit}_VERSION=$value"
10618         fi
10619       done
10620     else
10621             for toolkit in `echo $ALL_TOOLKITS`; do
10622         if test "$has_toolkit_in_cache" != 1; then
10623           var=DEFAULT_DEFAULT_wxUSE_$toolkit
10624         else
10625           var=DEFAULT_wxUSE_$toolkit
10626
10627           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10628           if test "x$version" != "x"; then
10629             eval "wx${toolkit}_VERSION=$version"
10630           fi
10631         fi
10632         eval "wxUSE_$toolkit=\$${var}"
10633       done
10634     fi
10635
10636             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10637                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10638                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10639
10640         case "${host}" in
10641       *-pc-os2_emx | *-pc-os2-emx )
10642         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10643     esac
10644
10645     case "$NUM_TOOLKITS" in
10646       1)
10647       ;;
10648       0)
10649         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10650 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10651    { (exit 1); exit 1; }; }
10652       ;;
10653       *)
10654         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10655 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10656    { (exit 1); exit 1; }; }
10657     esac
10658
10659     # to be removed when --disable-gtk2 isn't needed
10660     if test "x$wxUSE_GTK2" = "xyes"; then
10661         wxGTK_VERSION=2
10662     elif test "x$wxUSE_GTK2" = "xno"; then
10663         wxGTK_VERSION=1
10664     fi
10665
10666         for toolkit in `echo $ALL_TOOLKITS`; do
10667       var=wxUSE_$toolkit
10668       eval "value=\$${var}"
10669       if test "x$value" != x; then
10670         cache_var=CACHE_$toolkit
10671         eval "cache=\$${cache_var}"
10672         if test "$cache" = 1; then
10673           echo "$var=$value" >> ${wx_arg_cache_file}
10674           eval "version=\$wx${toolkit}_VERSION"
10675           if test "x$version" != "x"; then
10676             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10677           fi
10678         fi
10679         if test "$value" = 1; then
10680           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10681           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10682 echo "${ECHO_T}$toolkit_echo" >&6
10683         fi
10684       fi
10685     done
10686 else
10687     if test "x$host_alias" != "x"; then
10688         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10689 echo "${ECHO_T}base ($host_alias hosted) only" >&6
10690     else
10691         echo "$as_me:$LINENO: result: base only" >&5
10692 echo "${ECHO_T}base only" >&6
10693     fi
10694 fi
10695
10696 wants_win32=0
10697 doesnt_want_win32=0
10698 case "${host}" in
10699   *-*-cygwin*)
10700       if test "$wxUSE_MSW" = 1 ; then
10701         wants_win32=1
10702         BAKEFILE_FORCE_PLATFORM=win32
10703       else
10704         doesnt_want_win32=1
10705       fi
10706   ;;
10707   *-*-mingw*)
10708       wants_win32=1
10709   ;;
10710 esac
10711
10712 if test "$wxUSE_WINE" = "yes"; then
10713     wants_win32=1
10714         CC=winegcc
10715     CXX=wineg++
10716     LDFLAGS_GUI="-mwindows"
10717 fi
10718
10719 if test "$wants_win32" = 1 ; then
10720     USE_UNIX=0
10721     USE_WIN32=1
10722     cat >>confdefs.h <<\_ACEOF
10723 #define __WIN32__ 1
10724 _ACEOF
10725
10726     cat >>confdefs.h <<\_ACEOF
10727 #define __WIN95__ 1
10728 _ACEOF
10729
10730     cat >>confdefs.h <<\_ACEOF
10731 #define __WINDOWS__ 1
10732 _ACEOF
10733
10734     cat >>confdefs.h <<\_ACEOF
10735 #define __GNUWIN32__ 1
10736 _ACEOF
10737
10738     cat >>confdefs.h <<\_ACEOF
10739 #define STRICT 1
10740 _ACEOF
10741
10742     cat >>confdefs.h <<\_ACEOF
10743 #define WINVER 0x0400
10744 _ACEOF
10745
10746 fi
10747 if test "$doesnt_want_win32" = 1 ; then
10748     USE_UNIX=1
10749     USE_WIN32=0
10750 fi
10751
10752 if test "$USE_UNIX" = 1 ; then
10753     wxUSE_UNIX=yes
10754     cat >>confdefs.h <<\_ACEOF
10755 #define __UNIX__ 1
10756 _ACEOF
10757
10758 fi
10759
10760
10761 cat >confcache <<\_ACEOF
10762 # This file is a shell script that caches the results of configure
10763 # tests run on this system so they can be shared between configure
10764 # scripts and configure runs, see configure's option --config-cache.
10765 # It is not useful on other systems.  If it contains results you don't
10766 # want to keep, you may remove or edit it.
10767 #
10768 # config.status only pays attention to the cache file if you give it
10769 # the --recheck option to rerun configure.
10770 #
10771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10773 # following values.
10774
10775 _ACEOF
10776
10777 # The following way of writing the cache mishandles newlines in values,
10778 # but we know of no workaround that is simple, portable, and efficient.
10779 # So, don't put newlines in cache variables' values.
10780 # Ultrix sh set writes to stderr and can't be redirected directly,
10781 # and sets the high bit in the cache file unless we assign to the vars.
10782 {
10783   (set) 2>&1 |
10784     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10785     *ac_space=\ *)
10786       # `set' does not quote correctly, so add quotes (double-quote
10787       # substitution turns \\\\ into \\, and sed turns \\ into \).
10788       sed -n \
10789         "s/'/'\\\\''/g;
10790           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10791       ;;
10792     *)
10793       # `set' quotes correctly as required by POSIX, so do not add quotes.
10794       sed -n \
10795         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10796       ;;
10797     esac;
10798 } |
10799   sed '
10800      t clear
10801      : clear
10802      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10803      t end
10804      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10805      : end' >>confcache
10806 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10807   if test -w $cache_file; then
10808     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10809     cat confcache >$cache_file
10810   else
10811     echo "not updating unwritable cache $cache_file"
10812   fi
10813 fi
10814 rm -f confcache
10815
10816 CFLAGS=${CFLAGS:=}
10817
10818
10819
10820     ac_ext=c
10821 ac_cpp='$CPP $CPPFLAGS'
10822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10825 if test -n "$ac_tool_prefix"; then
10826   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10828 echo "$as_me:$LINENO: checking for $ac_word" >&5
10829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10830 if test "${ac_cv_prog_CC+set}" = set; then
10831   echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833   if test -n "$CC"; then
10834   ac_cv_prog_CC="$CC" # Let the user override the test.
10835 else
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839   IFS=$as_save_IFS
10840   test -z "$as_dir" && as_dir=.
10841   for ac_exec_ext in '' $ac_executable_extensions; do
10842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10845     break 2
10846   fi
10847 done
10848 done
10849
10850 fi
10851 fi
10852 CC=$ac_cv_prog_CC
10853 if test -n "$CC"; then
10854   echo "$as_me:$LINENO: result: $CC" >&5
10855 echo "${ECHO_T}$CC" >&6
10856 else
10857   echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6
10859 fi
10860
10861 fi
10862 if test -z "$ac_cv_prog_CC"; then
10863   ac_ct_CC=$CC
10864   # Extract the first word of "gcc", so it can be a program name with args.
10865 set dummy gcc; ac_word=$2
10866 echo "$as_me:$LINENO: checking for $ac_word" >&5
10867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871   if test -n "$ac_ct_CC"; then
10872   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10873 else
10874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875 for as_dir in $PATH
10876 do
10877   IFS=$as_save_IFS
10878   test -z "$as_dir" && as_dir=.
10879   for ac_exec_ext in '' $ac_executable_extensions; do
10880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10881     ac_cv_prog_ac_ct_CC="gcc"
10882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10883     break 2
10884   fi
10885 done
10886 done
10887
10888 fi
10889 fi
10890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10891 if test -n "$ac_ct_CC"; then
10892   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10893 echo "${ECHO_T}$ac_ct_CC" >&6
10894 else
10895   echo "$as_me:$LINENO: result: no" >&5
10896 echo "${ECHO_T}no" >&6
10897 fi
10898
10899   CC=$ac_ct_CC
10900 else
10901   CC="$ac_cv_prog_CC"
10902 fi
10903
10904 if test -z "$CC"; then
10905   if test -n "$ac_tool_prefix"; then
10906   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10907 set dummy ${ac_tool_prefix}cc; ac_word=$2
10908 echo "$as_me:$LINENO: checking for $ac_word" >&5
10909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10910 if test "${ac_cv_prog_CC+set}" = set; then
10911   echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913   if test -n "$CC"; then
10914   ac_cv_prog_CC="$CC" # Let the user override the test.
10915 else
10916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917 for as_dir in $PATH
10918 do
10919   IFS=$as_save_IFS
10920   test -z "$as_dir" && as_dir=.
10921   for ac_exec_ext in '' $ac_executable_extensions; do
10922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10923     ac_cv_prog_CC="${ac_tool_prefix}cc"
10924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10925     break 2
10926   fi
10927 done
10928 done
10929
10930 fi
10931 fi
10932 CC=$ac_cv_prog_CC
10933 if test -n "$CC"; then
10934   echo "$as_me:$LINENO: result: $CC" >&5
10935 echo "${ECHO_T}$CC" >&6
10936 else
10937   echo "$as_me:$LINENO: result: no" >&5
10938 echo "${ECHO_T}no" >&6
10939 fi
10940
10941 fi
10942 if test -z "$ac_cv_prog_CC"; then
10943   ac_ct_CC=$CC
10944   # Extract the first word of "cc", so it can be a program name with args.
10945 set dummy cc; ac_word=$2
10946 echo "$as_me:$LINENO: checking for $ac_word" >&5
10947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10949   echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951   if test -n "$ac_ct_CC"; then
10952   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10953 else
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10956 do
10957   IFS=$as_save_IFS
10958   test -z "$as_dir" && as_dir=.
10959   for ac_exec_ext in '' $ac_executable_extensions; do
10960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961     ac_cv_prog_ac_ct_CC="cc"
10962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963     break 2
10964   fi
10965 done
10966 done
10967
10968 fi
10969 fi
10970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10971 if test -n "$ac_ct_CC"; then
10972   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10973 echo "${ECHO_T}$ac_ct_CC" >&6
10974 else
10975   echo "$as_me:$LINENO: result: no" >&5
10976 echo "${ECHO_T}no" >&6
10977 fi
10978
10979   CC=$ac_ct_CC
10980 else
10981   CC="$ac_cv_prog_CC"
10982 fi
10983
10984 fi
10985 if test -z "$CC"; then
10986   # Extract the first word of "cc", so it can be a program name with args.
10987 set dummy cc; ac_word=$2
10988 echo "$as_me:$LINENO: checking for $ac_word" >&5
10989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10990 if test "${ac_cv_prog_CC+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   if test -n "$CC"; then
10994   ac_cv_prog_CC="$CC" # Let the user override the test.
10995 else
10996   ac_prog_rejected=no
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
10999 do
11000   IFS=$as_save_IFS
11001   test -z "$as_dir" && as_dir=.
11002   for ac_exec_ext in '' $ac_executable_extensions; do
11003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11004     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11005        ac_prog_rejected=yes
11006        continue
11007      fi
11008     ac_cv_prog_CC="cc"
11009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11010     break 2
11011   fi
11012 done
11013 done
11014
11015 if test $ac_prog_rejected = yes; then
11016   # We found a bogon in the path, so make sure we never use it.
11017   set dummy $ac_cv_prog_CC
11018   shift
11019   if test $# != 0; then
11020     # We chose a different compiler from the bogus one.
11021     # However, it has the same basename, so the bogon will be chosen
11022     # first if we set CC to just the basename; use the full file name.
11023     shift
11024     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11025   fi
11026 fi
11027 fi
11028 fi
11029 CC=$ac_cv_prog_CC
11030 if test -n "$CC"; then
11031   echo "$as_me:$LINENO: result: $CC" >&5
11032 echo "${ECHO_T}$CC" >&6
11033 else
11034   echo "$as_me:$LINENO: result: no" >&5
11035 echo "${ECHO_T}no" >&6
11036 fi
11037
11038 fi
11039 if test -z "$CC"; then
11040   if test -n "$ac_tool_prefix"; then
11041   for ac_prog in cl
11042   do
11043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11045 echo "$as_me:$LINENO: checking for $ac_word" >&5
11046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11047 if test "${ac_cv_prog_CC+set}" = set; then
11048   echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050   if test -n "$CC"; then
11051   ac_cv_prog_CC="$CC" # Let the user override the test.
11052 else
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11055 do
11056   IFS=$as_save_IFS
11057   test -z "$as_dir" && as_dir=.
11058   for ac_exec_ext in '' $ac_executable_extensions; do
11059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11062     break 2
11063   fi
11064 done
11065 done
11066
11067 fi
11068 fi
11069 CC=$ac_cv_prog_CC
11070 if test -n "$CC"; then
11071   echo "$as_me:$LINENO: result: $CC" >&5
11072 echo "${ECHO_T}$CC" >&6
11073 else
11074   echo "$as_me:$LINENO: result: no" >&5
11075 echo "${ECHO_T}no" >&6
11076 fi
11077
11078     test -n "$CC" && break
11079   done
11080 fi
11081 if test -z "$CC"; then
11082   ac_ct_CC=$CC
11083   for ac_prog in cl
11084 do
11085   # Extract the first word of "$ac_prog", so it can be a program name with args.
11086 set dummy $ac_prog; ac_word=$2
11087 echo "$as_me:$LINENO: checking for $ac_word" >&5
11088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11090   echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092   if test -n "$ac_ct_CC"; then
11093   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11094 else
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11097 do
11098   IFS=$as_save_IFS
11099   test -z "$as_dir" && as_dir=.
11100   for ac_exec_ext in '' $ac_executable_extensions; do
11101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102     ac_cv_prog_ac_ct_CC="$ac_prog"
11103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11104     break 2
11105   fi
11106 done
11107 done
11108
11109 fi
11110 fi
11111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11112 if test -n "$ac_ct_CC"; then
11113   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11114 echo "${ECHO_T}$ac_ct_CC" >&6
11115 else
11116   echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6
11118 fi
11119
11120   test -n "$ac_ct_CC" && break
11121 done
11122
11123   CC=$ac_ct_CC
11124 fi
11125
11126 fi
11127
11128
11129 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11130 See \`config.log' for more details." >&5
11131 echo "$as_me: error: no acceptable C compiler found in \$PATH
11132 See \`config.log' for more details." >&2;}
11133    { (exit 1); exit 1; }; }
11134
11135 # Provide some information about the compiler.
11136 echo "$as_me:$LINENO:" \
11137      "checking for C compiler version" >&5
11138 ac_compiler=`set X $ac_compile; echo $2`
11139 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11140   (eval $ac_compiler --version </dev/null >&5) 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }
11144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11145   (eval $ac_compiler -v </dev/null >&5) 2>&5
11146   ac_status=$?
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); }
11149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11150   (eval $ac_compiler -V </dev/null >&5) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }
11154
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h.  */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h.  */
11161
11162 int
11163 main ()
11164 {
11165
11166   ;
11167   return 0;
11168 }
11169 _ACEOF
11170 ac_clean_files_save=$ac_clean_files
11171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
11172 # Try to create an executable without -o first, disregard a.out.
11173 # It will help us diagnose broken compilers, and finding out an intuition
11174 # of exeext.
11175 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11179   (eval $ac_link_default) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); }; then
11183   # Find the output, starting from the most likely.  This scheme is
11184 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
11185 # resort.
11186
11187 # Be careful to initialize this variable, since it used to be cached.
11188 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11189 ac_cv_exeext=
11190 # b.out is created by i960 compilers.
11191 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11192 do
11193   test -f "$ac_file" || continue
11194   case $ac_file in
11195     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11196         ;;
11197     conftest.$ac_ext )
11198         # This is the source file.
11199         ;;
11200     [ab].out )
11201         # We found the default executable, but exeext='' is most
11202         # certainly right.
11203         break;;
11204     *.* )
11205         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11206         # FIXME: I believe we export ac_cv_exeext for Libtool,
11207         # but it would be cool to find out if it's true.  Does anybody
11208         # maintain Libtool? --akim.
11209         export ac_cv_exeext
11210         break;;
11211     * )
11212         break;;
11213   esac
11214 done
11215 else
11216   echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
11220 See \`config.log' for more details." >&5
11221 echo "$as_me: error: C compiler cannot create executables
11222 See \`config.log' for more details." >&2;}
11223    { (exit 77); exit 77; }; }
11224 fi
11225
11226 ac_exeext=$ac_cv_exeext
11227 echo "$as_me:$LINENO: result: $ac_file" >&5
11228 echo "${ECHO_T}$ac_file" >&6
11229
11230 # Check the compiler produces executables we can run.  If not, either
11231 # the compiler is broken, or we cross compile.
11232 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11235 # If not cross compiling, check that we can run a simple program.
11236 if test "$cross_compiling" != yes; then
11237   if { ac_try='./$ac_file'
11238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239   (eval $ac_try) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }; }; then
11243     cross_compiling=no
11244   else
11245     if test "$cross_compiling" = maybe; then
11246         cross_compiling=yes
11247     else
11248         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11249 If you meant to cross compile, use \`--host'.
11250 See \`config.log' for more details." >&5
11251 echo "$as_me: error: cannot run C compiled programs.
11252 If you meant to cross compile, use \`--host'.
11253 See \`config.log' for more details." >&2;}
11254    { (exit 1); exit 1; }; }
11255     fi
11256   fi
11257 fi
11258 echo "$as_me:$LINENO: result: yes" >&5
11259 echo "${ECHO_T}yes" >&6
11260
11261 rm -f a.out a.exe conftest$ac_cv_exeext b.out
11262 ac_clean_files=$ac_clean_files_save
11263 # Check the compiler produces executables we can run.  If not, either
11264 # the compiler is broken, or we cross compile.
11265 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11266 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11267 echo "$as_me:$LINENO: result: $cross_compiling" >&5
11268 echo "${ECHO_T}$cross_compiling" >&6
11269
11270 echo "$as_me:$LINENO: checking for suffix of executables" >&5
11271 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11273   (eval $ac_link) 2>&5
11274   ac_status=$?
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); }; then
11277   # If both `conftest.exe' and `conftest' are `present' (well, observable)
11278 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
11279 # work properly (i.e., refer to `conftest.exe'), while it won't with
11280 # `rm'.
11281 for ac_file in conftest.exe conftest conftest.*; do
11282   test -f "$ac_file" || continue
11283   case $ac_file in
11284     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11285     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11286           export ac_cv_exeext
11287           break;;
11288     * ) break;;
11289   esac
11290 done
11291 else
11292   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11293 See \`config.log' for more details." >&5
11294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11295 See \`config.log' for more details." >&2;}
11296    { (exit 1); exit 1; }; }
11297 fi
11298
11299 rm -f conftest$ac_cv_exeext
11300 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11301 echo "${ECHO_T}$ac_cv_exeext" >&6
11302
11303 rm -f conftest.$ac_ext
11304 EXEEXT=$ac_cv_exeext
11305 ac_exeext=$EXEEXT
11306 echo "$as_me:$LINENO: checking for suffix of object files" >&5
11307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11308 if test "${ac_cv_objext+set}" = set; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311   cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h.  */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h.  */
11317
11318 int
11319 main ()
11320 {
11321
11322   ;
11323   return 0;
11324 }
11325 _ACEOF
11326 rm -f conftest.o conftest.obj
11327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11328   (eval $ac_compile) 2>&5
11329   ac_status=$?
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); }; then
11332   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11333   case $ac_file in
11334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11335     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11336        break;;
11337   esac
11338 done
11339 else
11340   echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11344 See \`config.log' for more details." >&5
11345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
11346 See \`config.log' for more details." >&2;}
11347    { (exit 1); exit 1; }; }
11348 fi
11349
11350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
11351 fi
11352 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11353 echo "${ECHO_T}$ac_cv_objext" >&6
11354 OBJEXT=$ac_cv_objext
11355 ac_objext=$OBJEXT
11356 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11359   echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361   cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h.  */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h.  */
11367
11368 int
11369 main ()
11370 {
11371 #ifndef __GNUC__
11372        choke me
11373 #endif
11374
11375   ;
11376   return 0;
11377 }
11378 _ACEOF
11379 rm -f conftest.$ac_objext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11381   (eval $ac_compile) 2>conftest.er1
11382   ac_status=$?
11383   grep -v '^ *+' conftest.er1 >conftest.err
11384   rm -f conftest.er1
11385   cat conftest.err >&5
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); } &&
11388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390   (eval $ac_try) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); }; } &&
11394          { ac_try='test -s conftest.$ac_objext'
11395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396   (eval $ac_try) 2>&5
11397   ac_status=$?
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); }; }; then
11400   ac_compiler_gnu=yes
11401 else
11402   echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ac_compiler_gnu=no
11406 fi
11407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11409
11410 fi
11411 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11412 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11413 GCC=`test $ac_compiler_gnu = yes && echo yes`
11414 ac_test_CFLAGS=${CFLAGS+set}
11415 ac_save_CFLAGS=$CFLAGS
11416 CFLAGS="-g"
11417 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11419 if test "${ac_cv_prog_cc_g+set}" = set; then
11420   echo $ECHO_N "(cached) $ECHO_C" >&6
11421 else
11422   cat >conftest.$ac_ext <<_ACEOF
11423 /* confdefs.h.  */
11424 _ACEOF
11425 cat confdefs.h >>conftest.$ac_ext
11426 cat >>conftest.$ac_ext <<_ACEOF
11427 /* end confdefs.h.  */
11428
11429 int
11430 main ()
11431 {
11432
11433   ;
11434   return 0;
11435 }
11436 _ACEOF
11437 rm -f conftest.$ac_objext
11438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11439   (eval $ac_compile) 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } &&
11446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448   (eval $ac_try) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; } &&
11452          { ac_try='test -s conftest.$ac_objext'
11453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454   (eval $ac_try) 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; }; then
11458   ac_cv_prog_cc_g=yes
11459 else
11460   echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 ac_cv_prog_cc_g=no
11464 fi
11465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11466 fi
11467 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11468 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11469 if test "$ac_test_CFLAGS" = set; then
11470   CFLAGS=$ac_save_CFLAGS
11471 elif test $ac_cv_prog_cc_g = yes; then
11472   if test "$GCC" = yes; then
11473     CFLAGS="-g -O2"
11474   else
11475     CFLAGS="-g"
11476   fi
11477 else
11478   if test "$GCC" = yes; then
11479     CFLAGS="-O2"
11480   else
11481     CFLAGS=
11482   fi
11483 fi
11484 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11485 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11486 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11487   echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489   ac_cv_prog_cc_stdc=no
11490 ac_save_CC=$CC
11491 cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h.  */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h.  */
11497 #include <stdarg.h>
11498 #include <stdio.h>
11499 #include <sys/types.h>
11500 #include <sys/stat.h>
11501 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11502 struct buf { int x; };
11503 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11504 static char *e (p, i)
11505      char **p;
11506      int i;
11507 {
11508   return p[i];
11509 }
11510 static char *f (char * (*g) (char **, int), char **p, ...)
11511 {
11512   char *s;
11513   va_list v;
11514   va_start (v,p);
11515   s = g (p, va_arg (v,int));
11516   va_end (v);
11517   return s;
11518 }
11519
11520 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11521    function prototypes and stuff, but not '\xHH' hex character constants.
11522    These don't provoke an error unfortunately, instead are silently treated
11523    as 'x'.  The following induces an error, until -std1 is added to get
11524    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11525    array size at least.  It's necessary to write '\x00'==0 to get something
11526    that's true only with -std1.  */
11527 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11528
11529 int test (int i, double x);
11530 struct s1 {int (*f) (int a);};
11531 struct s2 {int (*f) (double a);};
11532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11533 int argc;
11534 char **argv;
11535 int
11536 main ()
11537 {
11538 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 # Don't try gcc -ansi; that turns off useful extensions and
11544 # breaks some systems' header files.
11545 # AIX                   -qlanglvl=ansi
11546 # Ultrix and OSF/1      -std1
11547 # HP-UX 10.20 and later -Ae
11548 # HP-UX older versions  -Aa -D_HPUX_SOURCE
11549 # SVR4                  -Xc -D__EXTENSIONS__
11550 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11551 do
11552   CC="$ac_save_CC $ac_arg"
11553   rm -f conftest.$ac_objext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555   (eval $ac_compile) 2>conftest.er1
11556   ac_status=$?
11557   grep -v '^ *+' conftest.er1 >conftest.err
11558   rm -f conftest.er1
11559   cat conftest.err >&5
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } &&
11562          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564   (eval $ac_try) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; } &&
11568          { ac_try='test -s conftest.$ac_objext'
11569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570   (eval $ac_try) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; }; then
11574   ac_cv_prog_cc_stdc=$ac_arg
11575 break
11576 else
11577   echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580 fi
11581 rm -f conftest.err conftest.$ac_objext
11582 done
11583 rm -f conftest.$ac_ext conftest.$ac_objext
11584 CC=$ac_save_CC
11585
11586 fi
11587
11588 case "x$ac_cv_prog_cc_stdc" in
11589   x|xno)
11590     echo "$as_me:$LINENO: result: none needed" >&5
11591 echo "${ECHO_T}none needed" >&6 ;;
11592   *)
11593     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11594 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11595     CC="$CC $ac_cv_prog_cc_stdc" ;;
11596 esac
11597
11598 # Some people use a C++ compiler to compile C.  Since we use `exit',
11599 # in C++ we need to declare it.  In case someone uses the same compiler
11600 # for both compiling C and C++ we need to have the C++ compiler decide
11601 # the declaration of exit, since it's the most demanding environment.
11602 cat >conftest.$ac_ext <<_ACEOF
11603 #ifndef __cplusplus
11604   choke me
11605 #endif
11606 _ACEOF
11607 rm -f conftest.$ac_objext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609   (eval $ac_compile) 2>conftest.er1
11610   ac_status=$?
11611   grep -v '^ *+' conftest.er1 >conftest.err
11612   rm -f conftest.er1
11613   cat conftest.err >&5
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); } &&
11616          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; } &&
11622          { ac_try='test -s conftest.$ac_objext'
11623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624   (eval $ac_try) 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; }; then
11628   for ac_declaration in \
11629    '' \
11630    'extern "C" void std::exit (int) throw (); using std::exit;' \
11631    'extern "C" void std::exit (int); using std::exit;' \
11632    'extern "C" void exit (int) throw ();' \
11633    'extern "C" void exit (int);' \
11634    'void exit (int);'
11635 do
11636   cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h.  */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h.  */
11642 $ac_declaration
11643 #include <stdlib.h>
11644 int
11645 main ()
11646 {
11647 exit (42);
11648   ;
11649   return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext
11653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11654   (eval $ac_compile) 2>conftest.er1
11655   ac_status=$?
11656   grep -v '^ *+' conftest.er1 >conftest.err
11657   rm -f conftest.er1
11658   cat conftest.err >&5
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); } &&
11661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663   (eval $ac_try) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; } &&
11667          { ac_try='test -s conftest.$ac_objext'
11668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669   (eval $ac_try) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); }; }; then
11673   :
11674 else
11675   echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 continue
11679 fi
11680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11681   cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h.  */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h.  */
11687 $ac_declaration
11688 int
11689 main ()
11690 {
11691 exit (42);
11692   ;
11693   return 0;
11694 }
11695 _ACEOF
11696 rm -f conftest.$ac_objext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698   (eval $ac_compile) 2>conftest.er1
11699   ac_status=$?
11700   grep -v '^ *+' conftest.er1 >conftest.err
11701   rm -f conftest.er1
11702   cat conftest.err >&5
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); } &&
11705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707   (eval $ac_try) 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); }; } &&
11711          { ac_try='test -s conftest.$ac_objext'
11712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713   (eval $ac_try) 2>&5
11714   ac_status=$?
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); }; }; then
11717   break
11718 else
11719   echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 fi
11723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11724 done
11725 rm -f conftest*
11726 if test -n "$ac_declaration"; then
11727   echo '#ifdef __cplusplus' >>confdefs.h
11728   echo $ac_declaration      >>confdefs.h
11729   echo '#endif'             >>confdefs.h
11730 fi
11731
11732 else
11733   echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736 fi
11737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11738 ac_ext=c
11739 ac_cpp='$CPP $CPPFLAGS'
11740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11743
11744
11745
11746     ac_ext=c
11747 ac_cpp='$CPP $CPPFLAGS'
11748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11751
11752     echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11753 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11754 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11755   echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757   cat >conftest.$ac_ext <<_ACEOF
11758 /* confdefs.h.  */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h.  */
11763
11764 int
11765 main ()
11766 {
11767
11768              #ifndef __INTEL_COMPILER
11769                 choke me
11770              #endif
11771
11772   ;
11773   return 0;
11774 }
11775 _ACEOF
11776 rm -f conftest.$ac_objext
11777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11778   (eval $ac_compile) 2>conftest.er1
11779   ac_status=$?
11780   grep -v '^ *+' conftest.er1 >conftest.err
11781   rm -f conftest.er1
11782   cat conftest.err >&5
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); } &&
11785          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787   (eval $ac_try) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }; } &&
11791          { ac_try='test -s conftest.$ac_objext'
11792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793   (eval $ac_try) 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; }; then
11797   bakefile_cv_c_compiler___INTEL_COMPILER=yes
11798 else
11799   echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 bakefile_cv_c_compiler___INTEL_COMPILER=no
11803
11804 fi
11805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11806
11807
11808 fi
11809 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11810 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11811     ac_ext=c
11812 ac_cpp='$CPP $CPPFLAGS'
11813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11816
11817     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11818         :; INTELCC=yes
11819     else
11820         :;
11821     fi
11822
11823
11824         if test "x$GCC" != "xyes"; then
11825         if test "xCC" = "xC"; then
11826             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
11827 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11828 if test "${bakefile_cv_c_exto+set}" = set; then
11829   echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831   cat >conftest.$ac_ext <<_ACEOF
11832 /* confdefs.h.  */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h.  */
11837
11838 int
11839 main ()
11840 {
11841
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext conftest.$ac_ext.o
11847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848   (eval $ac_compile) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; then
11852   for ac_file in `(ls conftest.* 2>/dev/null)`; do
11853     case $ac_file in
11854         conftest.$ac_ext.o)
11855             bakefile_cv_c_exto="-ext o"
11856             ;;
11857         *)
11858             ;;
11859     esac
11860 done
11861 else
11862   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11863 See \`config.log' for more details." >&5
11864 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11865 See \`config.log' for more details." >&2;}
11866    { (exit 1); exit 1; }; }
11867
11868 fi
11869
11870 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11871
11872 fi
11873 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
11874 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
11875 if test "x$bakefile_cv_c_exto" '!=' "x"; then
11876     if test "c" = "c"; then
11877         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
11878     fi
11879     if test "c" = "cxx"; then
11880         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
11881     fi
11882 fi
11883
11884             if test "x$bakefile_cv_c_exto" '!=' "x"; then
11885                 unset ac_cv_prog_cc_g
11886                 ac_test_CFLAGS=${CFLAGS+set}
11887 ac_save_CFLAGS=$CFLAGS
11888 CFLAGS="-g"
11889 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11890 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11891 if test "${ac_cv_prog_cc_g+set}" = set; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h.  */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h.  */
11900
11901 int
11902 main ()
11903 {
11904
11905   ;
11906   return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911   (eval $ac_compile) 2>conftest.er1
11912   ac_status=$?
11913   grep -v '^ *+' conftest.er1 >conftest.err
11914   rm -f conftest.er1
11915   cat conftest.err >&5
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; } &&
11924          { ac_try='test -s conftest.$ac_objext'
11925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926   (eval $ac_try) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; }; then
11930   ac_cv_prog_cc_g=yes
11931 else
11932   echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 ac_cv_prog_cc_g=no
11936 fi
11937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11938 fi
11939 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11940 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11941 if test "$ac_test_CFLAGS" = set; then
11942   CFLAGS=$ac_save_CFLAGS
11943 elif test $ac_cv_prog_cc_g = yes; then
11944   if test "$GCC" = yes; then
11945     CFLAGS="-g -O2"
11946   else
11947     CFLAGS="-g"
11948   fi
11949 else
11950   if test "$GCC" = yes; then
11951     CFLAGS="-O2"
11952   else
11953     CFLAGS=
11954   fi
11955 fi
11956             fi
11957         fi
11958
11959                         case `uname -s` in
11960             AIX*)
11961                 ac_ext=c
11962 ac_cpp='$CPP $CPPFLAGS'
11963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11966
11967 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11968 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11969 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
11970   echo $ECHO_N "(cached) $ECHO_C" >&6
11971 else
11972   cat >conftest.$ac_ext <<_ACEOF
11973 /* confdefs.h.  */
11974 _ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h.  */
11978
11979 int
11980 main ()
11981 {
11982 #ifndef __xlC__
11983        choke me
11984 #endif
11985
11986   ;
11987   return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext
11991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992   (eval $ac_compile) 2>conftest.er1
11993   ac_status=$?
11994   grep -v '^ *+' conftest.er1 >conftest.err
11995   rm -f conftest.er1
11996   cat conftest.err >&5
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); } &&
11999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001   (eval $ac_try) 2>&5
12002   ac_status=$?
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); }; } &&
12005          { ac_try='test -s conftest.$ac_objext'
12006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007   (eval $ac_try) 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; }; then
12011   bakefile_compiler_xlc=yes
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 bakefile_compiler_xlc=no
12017 fi
12018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12019     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12020
12021 fi
12022 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12023 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12024
12025 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12026 ac_ext=c
12027 ac_cpp='$CPP $CPPFLAGS'
12028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12031
12032
12033                 ;;
12034
12035             Darwin)
12036                 ac_ext=c
12037 ac_cpp='$CPP $CPPFLAGS'
12038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12041
12042 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12043 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12044 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12045   echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047   cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h.  */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h.  */
12053
12054 int
12055 main ()
12056 {
12057 #ifndef __MWERKS__
12058        choke me
12059 #endif
12060
12061   ;
12062   return 0;
12063 }
12064 _ACEOF
12065 rm -f conftest.$ac_objext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12067   (eval $ac_compile) 2>conftest.er1
12068   ac_status=$?
12069   grep -v '^ *+' conftest.er1 >conftest.err
12070   rm -f conftest.er1
12071   cat conftest.err >&5
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); } &&
12074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076   (eval $ac_try) 2>&5
12077   ac_status=$?
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); }; } &&
12080          { ac_try='test -s conftest.$ac_objext'
12081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082   (eval $ac_try) 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; }; then
12086   bakefile_compiler_mwerks=yes
12087 else
12088   echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 bakefile_compiler_mwerks=no
12092 fi
12093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12094     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12095
12096 fi
12097 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12098 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12099
12100 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
12101 ac_ext=c
12102 ac_cpp='$CPP $CPPFLAGS'
12103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12106
12107
12108                 ac_ext=c
12109 ac_cpp='$CPP $CPPFLAGS'
12110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12113
12114 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12115 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12116 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12117   echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119   cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125
12126 int
12127 main ()
12128 {
12129 #ifndef __xlC__
12130        choke me
12131 #endif
12132
12133   ;
12134   return 0;
12135 }
12136 _ACEOF
12137 rm -f conftest.$ac_objext
12138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12139   (eval $ac_compile) 2>conftest.er1
12140   ac_status=$?
12141   grep -v '^ *+' conftest.er1 >conftest.err
12142   rm -f conftest.er1
12143   cat conftest.err >&5
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); } &&
12146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148   (eval $ac_try) 2>&5
12149   ac_status=$?
12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); }; } &&
12152          { ac_try='test -s conftest.$ac_objext'
12153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154   (eval $ac_try) 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); }; }; then
12158   bakefile_compiler_xlc=yes
12159 else
12160   echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12162
12163 bakefile_compiler_xlc=no
12164 fi
12165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12166     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12167
12168 fi
12169 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12170 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12171
12172 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12173 ac_ext=c
12174 ac_cpp='$CPP $CPPFLAGS'
12175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12178
12179
12180                 ;;
12181
12182             IRIX*)
12183
12184
12185     ac_ext=c
12186 ac_cpp='$CPP $CPPFLAGS'
12187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12190
12191     echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12192 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12193 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12194   echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196   cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h.  */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h.  */
12202
12203 int
12204 main ()
12205 {
12206
12207              #ifndef _SGI_COMPILER_VERSION
12208                 choke me
12209              #endif
12210
12211   ;
12212   return 0;
12213 }
12214 _ACEOF
12215 rm -f conftest.$ac_objext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12217   (eval $ac_compile) 2>conftest.er1
12218   ac_status=$?
12219   grep -v '^ *+' conftest.er1 >conftest.err
12220   rm -f conftest.er1
12221   cat conftest.err >&5
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } &&
12224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226   (eval $ac_try) 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; } &&
12230          { ac_try='test -s conftest.$ac_objext'
12231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232   (eval $ac_try) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; }; then
12236   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12237 else
12238   echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12240
12241 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12242
12243 fi
12244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12245
12246
12247 fi
12248 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12249 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12250     ac_ext=c
12251 ac_cpp='$CPP $CPPFLAGS'
12252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12255
12256     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12257         :; SGICC=yes
12258     else
12259         :;
12260     fi
12261
12262
12263                 ;;
12264
12265             HP-UX*)
12266
12267
12268     ac_ext=c
12269 ac_cpp='$CPP $CPPFLAGS'
12270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12273
12274     echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12275 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12276 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
12277   echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279   cat >conftest.$ac_ext <<_ACEOF
12280 /* confdefs.h.  */
12281 _ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h.  */
12285
12286 int
12287 main ()
12288 {
12289
12290              #ifndef __HP_cc
12291                 choke me
12292              #endif
12293
12294   ;
12295   return 0;
12296 }
12297 _ACEOF
12298 rm -f conftest.$ac_objext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12300   (eval $ac_compile) 2>conftest.er1
12301   ac_status=$?
12302   grep -v '^ *+' conftest.er1 >conftest.err
12303   rm -f conftest.er1
12304   cat conftest.err >&5
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); } &&
12307          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309   (eval $ac_try) 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; } &&
12313          { ac_try='test -s conftest.$ac_objext'
12314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315   (eval $ac_try) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; }; then
12319   bakefile_cv_c_compiler___HP_cc=yes
12320 else
12321   echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12323
12324 bakefile_cv_c_compiler___HP_cc=no
12325
12326 fi
12327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12328
12329
12330 fi
12331 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12332 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
12333     ac_ext=c
12334 ac_cpp='$CPP $CPPFLAGS'
12335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12338
12339     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12340         :; HPCC=yes
12341     else
12342         :;
12343     fi
12344
12345
12346                 ;;
12347
12348             OSF1)
12349
12350
12351     ac_ext=c
12352 ac_cpp='$CPP $CPPFLAGS'
12353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12356
12357     echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12358 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12359 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368
12369 int
12370 main ()
12371 {
12372
12373              #ifndef __DECC
12374                 choke me
12375              #endif
12376
12377   ;
12378   return 0;
12379 }
12380 _ACEOF
12381 rm -f conftest.$ac_objext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383   (eval $ac_compile) 2>conftest.er1
12384   ac_status=$?
12385   grep -v '^ *+' conftest.er1 >conftest.err
12386   rm -f conftest.er1
12387   cat conftest.err >&5
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); } &&
12390          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392   (eval $ac_try) 2>&5
12393   ac_status=$?
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); }; } &&
12396          { ac_try='test -s conftest.$ac_objext'
12397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398   (eval $ac_try) 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; }; then
12402   bakefile_cv_c_compiler___DECC=yes
12403 else
12404   echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12406
12407 bakefile_cv_c_compiler___DECC=no
12408
12409 fi
12410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12411
12412
12413 fi
12414 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12415 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
12416     ac_ext=c
12417 ac_cpp='$CPP $CPPFLAGS'
12418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12421
12422     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12423         :; COMPAQCC=yes
12424     else
12425         :;
12426     fi
12427
12428
12429                 ;;
12430
12431             SunOS)
12432
12433
12434     ac_ext=c
12435 ac_cpp='$CPP $CPPFLAGS'
12436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12439
12440     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12441 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12442 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12443   echo $ECHO_N "(cached) $ECHO_C" >&6
12444 else
12445   cat >conftest.$ac_ext <<_ACEOF
12446 /* confdefs.h.  */
12447 _ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h.  */
12451
12452 int
12453 main ()
12454 {
12455
12456              #ifndef __SUNPRO_C
12457                 choke me
12458              #endif
12459
12460   ;
12461   return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466   (eval $ac_compile) 2>conftest.er1
12467   ac_status=$?
12468   grep -v '^ *+' conftest.er1 >conftest.err
12469   rm -f conftest.er1
12470   cat conftest.err >&5
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); } &&
12473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475   (eval $ac_try) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); }; } &&
12479          { ac_try='test -s conftest.$ac_objext'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; }; then
12485   bakefile_cv_c_compiler___SUNPRO_C=yes
12486 else
12487   echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490 bakefile_cv_c_compiler___SUNPRO_C=no
12491
12492 fi
12493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12494
12495
12496 fi
12497 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12498 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12499     ac_ext=c
12500 ac_cpp='$CPP $CPPFLAGS'
12501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12504
12505     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12506         :; SUNCC=yes
12507     else
12508         :;
12509     fi
12510
12511
12512                 ;;
12513         esac
12514     fi
12515
12516
12517
12518 ac_ext=c
12519 ac_cpp='$CPP $CPPFLAGS'
12520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12523 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12524 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12525 # On Suns, sometimes $CPP names a directory.
12526 if test -n "$CPP" && test -d "$CPP"; then
12527   CPP=
12528 fi
12529 if test -z "$CPP"; then
12530   if test "${ac_cv_prog_CPP+set}" = set; then
12531   echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533       # Double quotes because CPP needs to be expanded
12534     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12535     do
12536       ac_preproc_ok=false
12537 for ac_c_preproc_warn_flag in '' yes
12538 do
12539   # Use a header file that comes with gcc, so configuring glibc
12540   # with a fresh cross-compiler works.
12541   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12542   # <limits.h> exists even on freestanding compilers.
12543   # On the NeXT, cc -E runs the code through the compiler's parser,
12544   # not just through cpp. "Syntax error" is here to catch this case.
12545   cat >conftest.$ac_ext <<_ACEOF
12546 /* confdefs.h.  */
12547 _ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h.  */
12551 #ifdef __STDC__
12552 # include <limits.h>
12553 #else
12554 # include <assert.h>
12555 #endif
12556                      Syntax error
12557 _ACEOF
12558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12560   ac_status=$?
12561   grep -v '^ *+' conftest.er1 >conftest.err
12562   rm -f conftest.er1
12563   cat conftest.err >&5
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); } >/dev/null; then
12566   if test -s conftest.err; then
12567     ac_cpp_err=$ac_c_preproc_warn_flag
12568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12569   else
12570     ac_cpp_err=
12571   fi
12572 else
12573   ac_cpp_err=yes
12574 fi
12575 if test -z "$ac_cpp_err"; then
12576   :
12577 else
12578   echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581   # Broken: fails on valid input.
12582 continue
12583 fi
12584 rm -f conftest.err conftest.$ac_ext
12585
12586   # OK, works on sane cases.  Now check whether non-existent headers
12587   # can be detected and how.
12588   cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h.  */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h.  */
12594 #include <ac_nonexistent.h>
12595 _ACEOF
12596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12597   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12598   ac_status=$?
12599   grep -v '^ *+' conftest.er1 >conftest.err
12600   rm -f conftest.er1
12601   cat conftest.err >&5
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); } >/dev/null; then
12604   if test -s conftest.err; then
12605     ac_cpp_err=$ac_c_preproc_warn_flag
12606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12607   else
12608     ac_cpp_err=
12609   fi
12610 else
12611   ac_cpp_err=yes
12612 fi
12613 if test -z "$ac_cpp_err"; then
12614   # Broken: success on invalid input.
12615 continue
12616 else
12617   echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620   # Passes both tests.
12621 ac_preproc_ok=:
12622 break
12623 fi
12624 rm -f conftest.err conftest.$ac_ext
12625
12626 done
12627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12628 rm -f conftest.err conftest.$ac_ext
12629 if $ac_preproc_ok; then
12630   break
12631 fi
12632
12633     done
12634     ac_cv_prog_CPP=$CPP
12635
12636 fi
12637   CPP=$ac_cv_prog_CPP
12638 else
12639   ac_cv_prog_CPP=$CPP
12640 fi
12641 echo "$as_me:$LINENO: result: $CPP" >&5
12642 echo "${ECHO_T}$CPP" >&6
12643 ac_preproc_ok=false
12644 for ac_c_preproc_warn_flag in '' yes
12645 do
12646   # Use a header file that comes with gcc, so configuring glibc
12647   # with a fresh cross-compiler works.
12648   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12649   # <limits.h> exists even on freestanding compilers.
12650   # On the NeXT, cc -E runs the code through the compiler's parser,
12651   # not just through cpp. "Syntax error" is here to catch this case.
12652   cat >conftest.$ac_ext <<_ACEOF
12653 /* confdefs.h.  */
12654 _ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h.  */
12658 #ifdef __STDC__
12659 # include <limits.h>
12660 #else
12661 # include <assert.h>
12662 #endif
12663                      Syntax error
12664 _ACEOF
12665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12667   ac_status=$?
12668   grep -v '^ *+' conftest.er1 >conftest.err
12669   rm -f conftest.er1
12670   cat conftest.err >&5
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } >/dev/null; then
12673   if test -s conftest.err; then
12674     ac_cpp_err=$ac_c_preproc_warn_flag
12675     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12676   else
12677     ac_cpp_err=
12678   fi
12679 else
12680   ac_cpp_err=yes
12681 fi
12682 if test -z "$ac_cpp_err"; then
12683   :
12684 else
12685   echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688   # Broken: fails on valid input.
12689 continue
12690 fi
12691 rm -f conftest.err conftest.$ac_ext
12692
12693   # OK, works on sane cases.  Now check whether non-existent headers
12694   # can be detected and how.
12695   cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h.  */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h.  */
12701 #include <ac_nonexistent.h>
12702 _ACEOF
12703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12705   ac_status=$?
12706   grep -v '^ *+' conftest.er1 >conftest.err
12707   rm -f conftest.er1
12708   cat conftest.err >&5
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } >/dev/null; then
12711   if test -s conftest.err; then
12712     ac_cpp_err=$ac_c_preproc_warn_flag
12713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12714   else
12715     ac_cpp_err=
12716   fi
12717 else
12718   ac_cpp_err=yes
12719 fi
12720 if test -z "$ac_cpp_err"; then
12721   # Broken: success on invalid input.
12722 continue
12723 else
12724   echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727   # Passes both tests.
12728 ac_preproc_ok=:
12729 break
12730 fi
12731 rm -f conftest.err conftest.$ac_ext
12732
12733 done
12734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12735 rm -f conftest.err conftest.$ac_ext
12736 if $ac_preproc_ok; then
12737   :
12738 else
12739   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12740 See \`config.log' for more details." >&5
12741 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12742 See \`config.log' for more details." >&2;}
12743    { (exit 1); exit 1; }; }
12744 fi
12745
12746 ac_ext=c
12747 ac_cpp='$CPP $CPPFLAGS'
12748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12751
12752
12753 echo "$as_me:$LINENO: checking for egrep" >&5
12754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12755 if test "${ac_cv_prog_egrep+set}" = set; then
12756   echo $ECHO_N "(cached) $ECHO_C" >&6
12757 else
12758   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12759     then ac_cv_prog_egrep='grep -E'
12760     else ac_cv_prog_egrep='egrep'
12761     fi
12762 fi
12763 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12764 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12765  EGREP=$ac_cv_prog_egrep
12766
12767
12768 if test $ac_cv_c_compiler_gnu = yes; then
12769     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12770 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12771 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12772   echo $ECHO_N "(cached) $ECHO_C" >&6
12773 else
12774     ac_pattern="Autoconf.*'x'"
12775   cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h.  */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h.  */
12781 #include <sgtty.h>
12782 Autoconf TIOCGETP
12783 _ACEOF
12784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12785   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12786   ac_cv_prog_gcc_traditional=yes
12787 else
12788   ac_cv_prog_gcc_traditional=no
12789 fi
12790 rm -f conftest*
12791
12792
12793   if test $ac_cv_prog_gcc_traditional = no; then
12794     cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h.  */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h.  */
12800 #include <termio.h>
12801 Autoconf TCGETA
12802 _ACEOF
12803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12804   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12805   ac_cv_prog_gcc_traditional=yes
12806 fi
12807 rm -f conftest*
12808
12809   fi
12810 fi
12811 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12812 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12813   if test $ac_cv_prog_gcc_traditional = yes; then
12814     CC="$CC -traditional"
12815   fi
12816 fi
12817
12818
12819
12820
12821 ac_ext=cc
12822 ac_cpp='$CXXCPP $CPPFLAGS'
12823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12826
12827
12828 CXXFLAGS=${CXXFLAGS:=}
12829
12830
12831
12832     ac_ext=cc
12833 ac_cpp='$CXXCPP $CPPFLAGS'
12834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12837 if test -n "$ac_tool_prefix"; then
12838   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12839   do
12840     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12842 echo "$as_me:$LINENO: checking for $ac_word" >&5
12843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12844 if test "${ac_cv_prog_CXX+set}" = set; then
12845   echo $ECHO_N "(cached) $ECHO_C" >&6
12846 else
12847   if test -n "$CXX"; then
12848   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12849 else
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12852 do
12853   IFS=$as_save_IFS
12854   test -z "$as_dir" && as_dir=.
12855   for ac_exec_ext in '' $ac_executable_extensions; do
12856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12857     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12859     break 2
12860   fi
12861 done
12862 done
12863
12864 fi
12865 fi
12866 CXX=$ac_cv_prog_CXX
12867 if test -n "$CXX"; then
12868   echo "$as_me:$LINENO: result: $CXX" >&5
12869 echo "${ECHO_T}$CXX" >&6
12870 else
12871   echo "$as_me:$LINENO: result: no" >&5
12872 echo "${ECHO_T}no" >&6
12873 fi
12874
12875     test -n "$CXX" && break
12876   done
12877 fi
12878 if test -z "$CXX"; then
12879   ac_ct_CXX=$CXX
12880   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12881 do
12882   # Extract the first word of "$ac_prog", so it can be a program name with args.
12883 set dummy $ac_prog; ac_word=$2
12884 echo "$as_me:$LINENO: checking for $ac_word" >&5
12885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12886 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12887   echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889   if test -n "$ac_ct_CXX"; then
12890   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12891 else
12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12894 do
12895   IFS=$as_save_IFS
12896   test -z "$as_dir" && as_dir=.
12897   for ac_exec_ext in '' $ac_executable_extensions; do
12898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12899     ac_cv_prog_ac_ct_CXX="$ac_prog"
12900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12901     break 2
12902   fi
12903 done
12904 done
12905
12906 fi
12907 fi
12908 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12909 if test -n "$ac_ct_CXX"; then
12910   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12911 echo "${ECHO_T}$ac_ct_CXX" >&6
12912 else
12913   echo "$as_me:$LINENO: result: no" >&5
12914 echo "${ECHO_T}no" >&6
12915 fi
12916
12917   test -n "$ac_ct_CXX" && break
12918 done
12919 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12920
12921   CXX=$ac_ct_CXX
12922 fi
12923
12924
12925 # Provide some information about the compiler.
12926 echo "$as_me:$LINENO:" \
12927      "checking for C++ compiler version" >&5
12928 ac_compiler=`set X $ac_compile; echo $2`
12929 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12930   (eval $ac_compiler --version </dev/null >&5) 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }
12934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12935   (eval $ac_compiler -v </dev/null >&5) 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); }
12939 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12940   (eval $ac_compiler -V </dev/null >&5) 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }
12944
12945 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12946 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12947 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12948   echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950   cat >conftest.$ac_ext <<_ACEOF
12951 /* confdefs.h.  */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h.  */
12956
12957 int
12958 main ()
12959 {
12960 #ifndef __GNUC__
12961        choke me
12962 #endif
12963
12964   ;
12965   return 0;
12966 }
12967 _ACEOF
12968 rm -f conftest.$ac_objext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970   (eval $ac_compile) 2>conftest.er1
12971   ac_status=$?
12972   grep -v '^ *+' conftest.er1 >conftest.err
12973   rm -f conftest.er1
12974   cat conftest.err >&5
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); } &&
12977          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979   (eval $ac_try) 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); }; } &&
12983          { ac_try='test -s conftest.$ac_objext'
12984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985   (eval $ac_try) 2>&5
12986   ac_status=$?
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); }; }; then
12989   ac_compiler_gnu=yes
12990 else
12991   echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12993
12994 ac_compiler_gnu=no
12995 fi
12996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12997 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12998
12999 fi
13000 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13001 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13002 GXX=`test $ac_compiler_gnu = yes && echo yes`
13003 ac_test_CXXFLAGS=${CXXFLAGS+set}
13004 ac_save_CXXFLAGS=$CXXFLAGS
13005 CXXFLAGS="-g"
13006 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13007 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13008 if test "${ac_cv_prog_cxx_g+set}" = set; then
13009   echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011   cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h.  */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h.  */
13017
13018 int
13019 main ()
13020 {
13021
13022   ;
13023   return 0;
13024 }
13025 _ACEOF
13026 rm -f conftest.$ac_objext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028   (eval $ac_compile) 2>conftest.er1
13029   ac_status=$?
13030   grep -v '^ *+' conftest.er1 >conftest.err
13031   rm -f conftest.er1
13032   cat conftest.err >&5
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); } &&
13035          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037   (eval $ac_try) 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; } &&
13041          { ac_try='test -s conftest.$ac_objext'
13042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043   (eval $ac_try) 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); }; }; then
13047   ac_cv_prog_cxx_g=yes
13048 else
13049   echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 ac_cv_prog_cxx_g=no
13053 fi
13054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13055 fi
13056 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13057 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13058 if test "$ac_test_CXXFLAGS" = set; then
13059   CXXFLAGS=$ac_save_CXXFLAGS
13060 elif test $ac_cv_prog_cxx_g = yes; then
13061   if test "$GXX" = yes; then
13062     CXXFLAGS="-g -O2"
13063   else
13064     CXXFLAGS="-g"
13065   fi
13066 else
13067   if test "$GXX" = yes; then
13068     CXXFLAGS="-O2"
13069   else
13070     CXXFLAGS=
13071   fi
13072 fi
13073 for ac_declaration in \
13074    '' \
13075    'extern "C" void std::exit (int) throw (); using std::exit;' \
13076    'extern "C" void std::exit (int); using std::exit;' \
13077    'extern "C" void exit (int) throw ();' \
13078    'extern "C" void exit (int);' \
13079    'void exit (int);'
13080 do
13081   cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 $ac_declaration
13088 #include <stdlib.h>
13089 int
13090 main ()
13091 {
13092 exit (42);
13093   ;
13094   return 0;
13095 }
13096 _ACEOF
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099   (eval $ac_compile) 2>conftest.er1
13100   ac_status=$?
13101   grep -v '^ *+' conftest.er1 >conftest.err
13102   rm -f conftest.er1
13103   cat conftest.err >&5
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); } &&
13106          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108   (eval $ac_try) 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); }; } &&
13112          { ac_try='test -s conftest.$ac_objext'
13113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114   (eval $ac_try) 2>&5
13115   ac_status=$?
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); }; }; then
13118   :
13119 else
13120   echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13122
13123 continue
13124 fi
13125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126   cat >conftest.$ac_ext <<_ACEOF
13127 /* confdefs.h.  */
13128 _ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h.  */
13132 $ac_declaration
13133 int
13134 main ()
13135 {
13136 exit (42);
13137   ;
13138   return 0;
13139 }
13140 _ACEOF
13141 rm -f conftest.$ac_objext
13142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143   (eval $ac_compile) 2>conftest.er1
13144   ac_status=$?
13145   grep -v '^ *+' conftest.er1 >conftest.err
13146   rm -f conftest.er1
13147   cat conftest.err >&5
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); } &&
13150          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152   (eval $ac_try) 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }; } &&
13156          { ac_try='test -s conftest.$ac_objext'
13157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158   (eval $ac_try) 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; }; then
13162   break
13163 else
13164   echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13166
13167 fi
13168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13169 done
13170 rm -f conftest*
13171 if test -n "$ac_declaration"; then
13172   echo '#ifdef __cplusplus' >>confdefs.h
13173   echo $ac_declaration      >>confdefs.h
13174   echo '#endif'             >>confdefs.h
13175 fi
13176
13177 ac_ext=cc
13178 ac_cpp='$CXXCPP $CPPFLAGS'
13179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13182
13183
13184
13185     ac_ext=cc
13186 ac_cpp='$CXXCPP $CPPFLAGS'
13187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13190
13191     echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13192 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13193 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13194   echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196   cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h.  */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h.  */
13202
13203 int
13204 main ()
13205 {
13206
13207              #ifndef __INTEL_COMPILER
13208                 choke me
13209              #endif
13210
13211   ;
13212   return 0;
13213 }
13214 _ACEOF
13215 rm -f conftest.$ac_objext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217   (eval $ac_compile) 2>conftest.er1
13218   ac_status=$?
13219   grep -v '^ *+' conftest.er1 >conftest.err
13220   rm -f conftest.er1
13221   cat conftest.err >&5
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); } &&
13224          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226   (eval $ac_try) 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); }; } &&
13230          { ac_try='test -s conftest.$ac_objext'
13231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232   (eval $ac_try) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; }; then
13236   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13237 else
13238   echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13240
13241 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13242
13243 fi
13244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13245
13246
13247 fi
13248 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13249 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13250     ac_ext=cc
13251 ac_cpp='$CXXCPP $CPPFLAGS'
13252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13255
13256     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13257         :; INTELCXX=yes
13258     else
13259         :;
13260     fi
13261
13262
13263         if test "x$GCXX" != "xyes"; then
13264         if test "xCXX" = "xC"; then
13265             echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
13266 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
13267 if test "${bakefile_cv_cxx_exto+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270   cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276
13277 int
13278 main ()
13279 {
13280
13281   ;
13282   return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext conftest.$ac_ext.o
13286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287   (eval $ac_compile) 2>&5
13288   ac_status=$?
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); }; then
13291   for ac_file in `(ls conftest.* 2>/dev/null)`; do
13292     case $ac_file in
13293         conftest.$ac_ext.o)
13294             bakefile_cv_cxx_exto="-ext o"
13295             ;;
13296         *)
13297             ;;
13298     esac
13299 done
13300 else
13301   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13302 See \`config.log' for more details." >&5
13303 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13304 See \`config.log' for more details." >&2;}
13305    { (exit 1); exit 1; }; }
13306
13307 fi
13308
13309 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13310
13311 fi
13312 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13313 echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13314 if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
13315     if test "cxx" = "c"; then
13316         CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
13317     fi
13318     if test "cxx" = "cxx"; then
13319         CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
13320     fi
13321 fi
13322
13323             if test "x$bakefile_cv_c_exto" '!=' "x"; then
13324                 unset ac_cv_prog_cc_g
13325                 ac_test_CFLAGS=${CFLAGS+set}
13326 ac_save_CFLAGS=$CFLAGS
13327 CFLAGS="-g"
13328 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13329 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13330 if test "${ac_cv_prog_cc_g+set}" = set; then
13331   echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333   cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h.  */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h.  */
13339
13340 int
13341 main ()
13342 {
13343
13344   ;
13345   return 0;
13346 }
13347 _ACEOF
13348 rm -f conftest.$ac_objext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350   (eval $ac_compile) 2>conftest.er1
13351   ac_status=$?
13352   grep -v '^ *+' conftest.er1 >conftest.err
13353   rm -f conftest.er1
13354   cat conftest.err >&5
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } &&
13357          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359   (eval $ac_try) 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); }; } &&
13363          { ac_try='test -s conftest.$ac_objext'
13364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365   (eval $ac_try) 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); }; }; then
13369   ac_cv_prog_cc_g=yes
13370 else
13371   echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13373
13374 ac_cv_prog_cc_g=no
13375 fi
13376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13377 fi
13378 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13379 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13380 if test "$ac_test_CFLAGS" = set; then
13381   CFLAGS=$ac_save_CFLAGS
13382 elif test $ac_cv_prog_cc_g = yes; then
13383   if test "$GCC" = yes; then
13384     CFLAGS="-g -O2"
13385   else
13386     CFLAGS="-g"
13387   fi
13388 else
13389   if test "$GCC" = yes; then
13390     CFLAGS="-O2"
13391   else
13392     CFLAGS=
13393   fi
13394 fi
13395             fi
13396         fi
13397
13398                         case `uname -s` in
13399             AIX*)
13400                 ac_ext=cc
13401 ac_cpp='$CXXCPP $CPPFLAGS'
13402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13405
13406 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13407 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
13408 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
13409   echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411   cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417
13418 int
13419 main ()
13420 {
13421 #ifndef __xlC__
13422        choke me
13423 #endif
13424
13425   ;
13426   return 0;
13427 }
13428 _ACEOF
13429 rm -f conftest.$ac_objext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431   (eval $ac_compile) 2>conftest.er1
13432   ac_status=$?
13433   grep -v '^ *+' conftest.er1 >conftest.err
13434   rm -f conftest.er1
13435   cat conftest.err >&5
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } &&
13438          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440   (eval $ac_try) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); }; } &&
13444          { ac_try='test -s conftest.$ac_objext'
13445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446   (eval $ac_try) 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; }; then
13450   bakefile_compiler_xlc=yes
13451 else
13452   echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455 bakefile_compiler_xlc=no
13456 fi
13457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13458     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
13459
13460 fi
13461 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13462 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
13463
13464 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
13465 ac_ext=cc
13466 ac_cpp='$CXXCPP $CPPFLAGS'
13467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13470
13471
13472                 ;;
13473
13474             Darwin)
13475                 ac_ext=cc
13476 ac_cpp='$CXXCPP $CPPFLAGS'
13477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13480
13481 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13482 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13483 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486   cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h.  */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h.  */
13492
13493 int
13494 main ()
13495 {
13496 #ifndef __MWERKS__
13497        choke me
13498 #endif
13499
13500   ;
13501   return 0;
13502 }
13503 _ACEOF
13504 rm -f conftest.$ac_objext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506   (eval $ac_compile) 2>conftest.er1
13507   ac_status=$?
13508   grep -v '^ *+' conftest.er1 >conftest.err
13509   rm -f conftest.er1
13510   cat conftest.err >&5
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); } &&
13513          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515   (eval $ac_try) 2>&5
13516   ac_status=$?
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); }; } &&
13519          { ac_try='test -s conftest.$ac_objext'
13520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521   (eval $ac_try) 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; }; then
13525   bakefile_compiler_mwerks=yes
13526 else
13527   echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13529
13530 bakefile_compiler_mwerks=no
13531 fi
13532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13533     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13534
13535 fi
13536 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13537 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13538
13539 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
13540 ac_ext=cc
13541 ac_cpp='$CXXCPP $CPPFLAGS'
13542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13545
13546
13547                 ac_ext=cc
13548 ac_cpp='$CXXCPP $CPPFLAGS'
13549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13552
13553 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13554 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
13555 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
13556   echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558   cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h.  */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h.  */
13564
13565 int
13566 main ()
13567 {
13568 #ifndef __xlC__
13569        choke me
13570 #endif
13571
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 rm -f conftest.$ac_objext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578   (eval $ac_compile) 2>conftest.er1
13579   ac_status=$?
13580   grep -v '^ *+' conftest.er1 >conftest.err
13581   rm -f conftest.er1
13582   cat conftest.err >&5
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); } &&
13585          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587   (eval $ac_try) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; } &&
13591          { ac_try='test -s conftest.$ac_objext'
13592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593   (eval $ac_try) 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); }; }; then
13597   bakefile_compiler_xlc=yes
13598 else
13599   echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13601
13602 bakefile_compiler_xlc=no
13603 fi
13604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13605     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
13606
13607 fi
13608 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13609 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
13610
13611 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
13612 ac_ext=cc
13613 ac_cpp='$CXXCPP $CPPFLAGS'
13614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13617
13618
13619                 ;;
13620
13621             IRIX*)
13622
13623
13624     ac_ext=cc
13625 ac_cpp='$CXXCPP $CPPFLAGS'
13626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13629
13630     echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13631 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13632 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13633   echo $ECHO_N "(cached) $ECHO_C" >&6
13634 else
13635   cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h.  */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h.  */
13641
13642 int
13643 main ()
13644 {
13645
13646              #ifndef _SGI_COMPILER_VERSION
13647                 choke me
13648              #endif
13649
13650   ;
13651   return 0;
13652 }
13653 _ACEOF
13654 rm -f conftest.$ac_objext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656   (eval $ac_compile) 2>conftest.er1
13657   ac_status=$?
13658   grep -v '^ *+' conftest.er1 >conftest.err
13659   rm -f conftest.er1
13660   cat conftest.err >&5
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); } &&
13663          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665   (eval $ac_try) 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); }; } &&
13669          { ac_try='test -s conftest.$ac_objext'
13670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671   (eval $ac_try) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; }; then
13675   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13676 else
13677   echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13679
13680 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13681
13682 fi
13683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684
13685
13686 fi
13687 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13688 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13689     ac_ext=cc
13690 ac_cpp='$CXXCPP $CPPFLAGS'
13691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13694
13695     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13696         :; SGICXX=yes
13697     else
13698         :;
13699     fi
13700
13701
13702                 ;;
13703
13704             HP-UX*)
13705
13706
13707     ac_ext=cc
13708 ac_cpp='$CXXCPP $CPPFLAGS'
13709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13712
13713     echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13714 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13715 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
13716   echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718   cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h.  */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h.  */
13724
13725 int
13726 main ()
13727 {
13728
13729              #ifndef __HP_aCC
13730                 choke me
13731              #endif
13732
13733   ;
13734   return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739   (eval $ac_compile) 2>conftest.er1
13740   ac_status=$?
13741   grep -v '^ *+' conftest.er1 >conftest.err
13742   rm -f conftest.er1
13743   cat conftest.err >&5
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); } &&
13746          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748   (eval $ac_try) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; } &&
13752          { ac_try='test -s conftest.$ac_objext'
13753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754   (eval $ac_try) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; }; then
13758   bakefile_cv_cxx_compiler___HP_aCC=yes
13759 else
13760   echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 bakefile_cv_cxx_compiler___HP_aCC=no
13764
13765 fi
13766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13767
13768
13769 fi
13770 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13771 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
13772     ac_ext=cc
13773 ac_cpp='$CXXCPP $CPPFLAGS'
13774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13777
13778     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13779         :; HPCXX=yes
13780     else
13781         :;
13782     fi
13783
13784
13785                 ;;
13786
13787             OSF1)
13788
13789
13790     ac_ext=cc
13791 ac_cpp='$CXXCPP $CPPFLAGS'
13792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13795
13796     echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
13797 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
13798 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
13799   echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801   cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h.  */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h.  */
13807
13808 int
13809 main ()
13810 {
13811
13812              #ifndef __DECCXX
13813                 choke me
13814              #endif
13815
13816   ;
13817   return 0;
13818 }
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822   (eval $ac_compile) 2>conftest.er1
13823   ac_status=$?
13824   grep -v '^ *+' conftest.er1 >conftest.err
13825   rm -f conftest.er1
13826   cat conftest.err >&5
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); } &&
13829          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831   (eval $ac_try) 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); }; } &&
13835          { ac_try='test -s conftest.$ac_objext'
13836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837   (eval $ac_try) 2>&5
13838   ac_status=$?
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); }; }; then
13841   bakefile_cv_cxx_compiler___DECCXX=yes
13842 else
13843   echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846 bakefile_cv_cxx_compiler___DECCXX=no
13847
13848 fi
13849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13850
13851
13852 fi
13853 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
13854 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
13855     ac_ext=cc
13856 ac_cpp='$CXXCPP $CPPFLAGS'
13857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13860
13861     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
13862         :; COMPAQCXX=yes
13863     else
13864         :;
13865     fi
13866
13867
13868                 ;;
13869
13870             SunOS)
13871
13872
13873     ac_ext=cc
13874 ac_cpp='$CXXCPP $CPPFLAGS'
13875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13878
13879     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13880 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13881 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13882   echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884   cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h.  */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h.  */
13890
13891 int
13892 main ()
13893 {
13894
13895              #ifndef __SUNPRO_CC
13896                 choke me
13897              #endif
13898
13899   ;
13900   return 0;
13901 }
13902 _ACEOF
13903 rm -f conftest.$ac_objext
13904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13905   (eval $ac_compile) 2>conftest.er1
13906   ac_status=$?
13907   grep -v '^ *+' conftest.er1 >conftest.err
13908   rm -f conftest.er1
13909   cat conftest.err >&5
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); } &&
13912          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914   (eval $ac_try) 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; } &&
13918          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13924   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13925 else
13926   echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 bakefile_cv_cxx_compiler___SUNPRO_CC=no
13930
13931 fi
13932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13933
13934
13935 fi
13936 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13937 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13938     ac_ext=cc
13939 ac_cpp='$CXXCPP $CPPFLAGS'
13940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13943
13944     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13945         :; SUNCXX=yes
13946     else
13947         :;
13948     fi
13949
13950
13951                 ;;
13952         esac
13953     fi
13954
13955
13956
13957 ac_ext=c
13958 ac_cpp='$CPP $CPPFLAGS'
13959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962
13963
13964 if test -n "$ac_tool_prefix"; then
13965   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13967 echo "$as_me:$LINENO: checking for $ac_word" >&5
13968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13969 if test "${ac_cv_prog_RANLIB+set}" = set; then
13970   echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972   if test -n "$RANLIB"; then
13973   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13974 else
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13977 do
13978   IFS=$as_save_IFS
13979   test -z "$as_dir" && as_dir=.
13980   for ac_exec_ext in '' $ac_executable_extensions; do
13981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13982     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13984     break 2
13985   fi
13986 done
13987 done
13988
13989 fi
13990 fi
13991 RANLIB=$ac_cv_prog_RANLIB
13992 if test -n "$RANLIB"; then
13993   echo "$as_me:$LINENO: result: $RANLIB" >&5
13994 echo "${ECHO_T}$RANLIB" >&6
13995 else
13996   echo "$as_me:$LINENO: result: no" >&5
13997 echo "${ECHO_T}no" >&6
13998 fi
13999
14000 fi
14001 if test -z "$ac_cv_prog_RANLIB"; then
14002   ac_ct_RANLIB=$RANLIB
14003   # Extract the first word of "ranlib", so it can be a program name with args.
14004 set dummy ranlib; ac_word=$2
14005 echo "$as_me:$LINENO: checking for $ac_word" >&5
14006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14007 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010   if test -n "$ac_ct_RANLIB"; then
14011   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14012 else
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14015 do
14016   IFS=$as_save_IFS
14017   test -z "$as_dir" && as_dir=.
14018   for ac_exec_ext in '' $ac_executable_extensions; do
14019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14020     ac_cv_prog_ac_ct_RANLIB="ranlib"
14021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14022     break 2
14023   fi
14024 done
14025 done
14026
14027   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14028 fi
14029 fi
14030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14031 if test -n "$ac_ct_RANLIB"; then
14032   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14033 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14034 else
14035   echo "$as_me:$LINENO: result: no" >&5
14036 echo "${ECHO_T}no" >&6
14037 fi
14038
14039   RANLIB=$ac_ct_RANLIB
14040 else
14041   RANLIB="$ac_cv_prog_RANLIB"
14042 fi
14043
14044
14045 if test -n "$ac_tool_prefix"; then
14046   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14047 set dummy ${ac_tool_prefix}ar; ac_word=$2
14048 echo "$as_me:$LINENO: checking for $ac_word" >&5
14049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14050 if test "${ac_cv_prog_AR+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   if test -n "$AR"; then
14054   ac_cv_prog_AR="$AR" # Let the user override the test.
14055 else
14056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057 for as_dir in $PATH
14058 do
14059   IFS=$as_save_IFS
14060   test -z "$as_dir" && as_dir=.
14061   for ac_exec_ext in '' $ac_executable_extensions; do
14062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14063     ac_cv_prog_AR="${ac_tool_prefix}ar"
14064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14065     break 2
14066   fi
14067 done
14068 done
14069
14070 fi
14071 fi
14072 AR=$ac_cv_prog_AR
14073 if test -n "$AR"; then
14074   echo "$as_me:$LINENO: result: $AR" >&5
14075 echo "${ECHO_T}$AR" >&6
14076 else
14077   echo "$as_me:$LINENO: result: no" >&5
14078 echo "${ECHO_T}no" >&6
14079 fi
14080
14081 fi
14082 if test -z "$ac_cv_prog_AR"; then
14083   ac_ct_AR=$AR
14084   # Extract the first word of "ar", so it can be a program name with args.
14085 set dummy ar; ac_word=$2
14086 echo "$as_me:$LINENO: checking for $ac_word" >&5
14087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14088 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14089   echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091   if test -n "$ac_ct_AR"; then
14092   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14093 else
14094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14096 do
14097   IFS=$as_save_IFS
14098   test -z "$as_dir" && as_dir=.
14099   for ac_exec_ext in '' $ac_executable_extensions; do
14100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101     ac_cv_prog_ac_ct_AR="ar"
14102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14103     break 2
14104   fi
14105 done
14106 done
14107
14108 fi
14109 fi
14110 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14111 if test -n "$ac_ct_AR"; then
14112   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14113 echo "${ECHO_T}$ac_ct_AR" >&6
14114 else
14115   echo "$as_me:$LINENO: result: no" >&5
14116 echo "${ECHO_T}no" >&6
14117 fi
14118
14119   AR=$ac_ct_AR
14120 else
14121   AR="$ac_cv_prog_AR"
14122 fi
14123
14124 if test "x$AR" = "x" ; then
14125     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14126 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
14127    { (exit 1); exit 1; }; }
14128 fi
14129
14130 # Find a good install program.  We prefer a C program (faster),
14131 # so one script is as good as another.  But avoid the broken or
14132 # incompatible versions:
14133 # SysV /etc/install, /usr/sbin/install
14134 # SunOS /usr/etc/install
14135 # IRIX /sbin/install
14136 # AIX /bin/install
14137 # AmigaOS /C/install, which installs bootblocks on floppy discs
14138 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14139 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14140 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14141 # OS/2's system install, which has a completely different semantic
14142 # ./install, which can be erroneously created by make from ./install.sh.
14143 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14144 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14145 if test -z "$INSTALL"; then
14146 if test "${ac_cv_path_install+set}" = set; then
14147   echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14151 do
14152   IFS=$as_save_IFS
14153   test -z "$as_dir" && as_dir=.
14154   # Account for people who put trailing slashes in PATH elements.
14155 case $as_dir/ in
14156   ./ | .// | /cC/* | \
14157   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14158   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14159   /usr/ucb/* ) ;;
14160   *)
14161     # OSF1 and SCO ODT 3.0 have their own names for install.
14162     # Don't use installbsd from OSF since it installs stuff as root
14163     # by default.
14164     for ac_prog in ginstall scoinst install; do
14165       for ac_exec_ext in '' $ac_executable_extensions; do
14166         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14167           if test $ac_prog = install &&
14168             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14169             # AIX install.  It has an incompatible calling convention.
14170             :
14171           elif test $ac_prog = install &&
14172             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14173             # program-specific install script used by HP pwplus--don't use.
14174             :
14175           else
14176             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14177             break 3
14178           fi
14179         fi
14180       done
14181     done
14182     ;;
14183 esac
14184 done
14185
14186
14187 fi
14188   if test "${ac_cv_path_install+set}" = set; then
14189     INSTALL=$ac_cv_path_install
14190   else
14191     # As a last resort, use the slow shell script.  We don't cache a
14192     # path for INSTALL within a source directory, because that will
14193     # break other packages using the cache if that directory is
14194     # removed, or if the path is relative.
14195     INSTALL=$ac_install_sh
14196   fi
14197 fi
14198 echo "$as_me:$LINENO: result: $INSTALL" >&5
14199 echo "${ECHO_T}$INSTALL" >&6
14200
14201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14202 # It thinks the first close brace ends the variable substitution.
14203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14204
14205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14206
14207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14208
14209
14210 case ${INSTALL} in
14211   /* ) # Absolute
14212      ;;
14213   ?:* ) # Drive letter, considered as absolute.
14214      ;;
14215   *)
14216      INSTALL=`pwd`/${INSTALL} ;;
14217 esac
14218
14219
14220 case "${host}" in
14221
14222                 *-*-darwin* )
14223         INSTALL_PROGRAM="cp -fp"
14224         INSTALL_DATA="cp -fp"
14225         ;;
14226     *)
14227         ;;
14228 esac
14229
14230 if test -n "$ac_tool_prefix"; then
14231   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14232 set dummy ${ac_tool_prefix}strip; ac_word=$2
14233 echo "$as_me:$LINENO: checking for $ac_word" >&5
14234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14235 if test "${ac_cv_prog_STRIP+set}" = set; then
14236   echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238   if test -n "$STRIP"; then
14239   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14240 else
14241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14242 for as_dir in $PATH
14243 do
14244   IFS=$as_save_IFS
14245   test -z "$as_dir" && as_dir=.
14246   for ac_exec_ext in '' $ac_executable_extensions; do
14247   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14248     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14250     break 2
14251   fi
14252 done
14253 done
14254
14255 fi
14256 fi
14257 STRIP=$ac_cv_prog_STRIP
14258 if test -n "$STRIP"; then
14259   echo "$as_me:$LINENO: result: $STRIP" >&5
14260 echo "${ECHO_T}$STRIP" >&6
14261 else
14262   echo "$as_me:$LINENO: result: no" >&5
14263 echo "${ECHO_T}no" >&6
14264 fi
14265
14266 fi
14267 if test -z "$ac_cv_prog_STRIP"; then
14268   ac_ct_STRIP=$STRIP
14269   # Extract the first word of "strip", so it can be a program name with args.
14270 set dummy strip; ac_word=$2
14271 echo "$as_me:$LINENO: checking for $ac_word" >&5
14272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14273 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   if test -n "$ac_ct_STRIP"; then
14277   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14278 else
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14281 do
14282   IFS=$as_save_IFS
14283   test -z "$as_dir" && as_dir=.
14284   for ac_exec_ext in '' $ac_executable_extensions; do
14285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14286     ac_cv_prog_ac_ct_STRIP="strip"
14287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14288     break 2
14289   fi
14290 done
14291 done
14292
14293   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14294 fi
14295 fi
14296 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14297 if test -n "$ac_ct_STRIP"; then
14298   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14299 echo "${ECHO_T}$ac_ct_STRIP" >&6
14300 else
14301   echo "$as_me:$LINENO: result: no" >&5
14302 echo "${ECHO_T}no" >&6
14303 fi
14304
14305   STRIP=$ac_ct_STRIP
14306 else
14307   STRIP="$ac_cv_prog_STRIP"
14308 fi
14309
14310
14311 if test "$wxUSE_WINE" = "yes"; then
14312     if test -n "$ac_tool_prefix"; then
14313   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14314 set dummy ${ac_tool_prefix}wrc; ac_word=$2
14315 echo "$as_me:$LINENO: checking for $ac_word" >&5
14316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14317 if test "${ac_cv_prog_RESCOMP+set}" = set; then
14318   echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320   if test -n "$RESCOMP"; then
14321   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14322 else
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14325 do
14326   IFS=$as_save_IFS
14327   test -z "$as_dir" && as_dir=.
14328   for ac_exec_ext in '' $ac_executable_extensions; do
14329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14330     ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
14331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14332     break 2
14333   fi
14334 done
14335 done
14336
14337 fi
14338 fi
14339 RESCOMP=$ac_cv_prog_RESCOMP
14340 if test -n "$RESCOMP"; then
14341   echo "$as_me:$LINENO: result: $RESCOMP" >&5
14342 echo "${ECHO_T}$RESCOMP" >&6
14343 else
14344   echo "$as_me:$LINENO: result: no" >&5
14345 echo "${ECHO_T}no" >&6
14346 fi
14347
14348 fi
14349 if test -z "$ac_cv_prog_RESCOMP"; then
14350   ac_ct_RESCOMP=$RESCOMP
14351   # Extract the first word of "wrc", so it can be a program name with args.
14352 set dummy wrc; ac_word=$2
14353 echo "$as_me:$LINENO: checking for $ac_word" >&5
14354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14355 if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14356   echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358   if test -n "$ac_ct_RESCOMP"; then
14359   ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14360 else
14361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362 for as_dir in $PATH
14363 do
14364   IFS=$as_save_IFS
14365   test -z "$as_dir" && as_dir=.
14366   for ac_exec_ext in '' $ac_executable_extensions; do
14367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14368     ac_cv_prog_ac_ct_RESCOMP="wrc"
14369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14370     break 2
14371   fi
14372 done
14373 done
14374
14375 fi
14376 fi
14377 ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14378 if test -n "$ac_ct_RESCOMP"; then
14379   echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14380 echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14381 else
14382   echo "$as_me:$LINENO: result: no" >&5
14383 echo "${ECHO_T}no" >&6
14384 fi
14385
14386   RESCOMP=$ac_ct_RESCOMP
14387 else
14388   RESCOMP="$ac_cv_prog_RESCOMP"
14389 fi
14390
14391 else
14392     case "${host}" in
14393     *-*-cygwin* | *-*-mingw32* )
14394         if test -n "$ac_tool_prefix"; then
14395   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14396 set dummy ${ac_tool_prefix}windres; ac_word=$2
14397 echo "$as_me:$LINENO: checking for $ac_word" >&5
14398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14399 if test "${ac_cv_prog_RESCOMP+set}" = set; then
14400   echo $ECHO_N "(cached) $ECHO_C" >&6
14401 else
14402   if test -n "$RESCOMP"; then
14403   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14404 else
14405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406 for as_dir in $PATH
14407 do
14408   IFS=$as_save_IFS
14409   test -z "$as_dir" && as_dir=.
14410   for ac_exec_ext in '' $ac_executable_extensions; do
14411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14412     ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
14413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14414     break 2
14415   fi
14416 done
14417 done
14418
14419 fi
14420 fi
14421 RESCOMP=$ac_cv_prog_RESCOMP
14422 if test -n "$RESCOMP"; then
14423   echo "$as_me:$LINENO: result: $RESCOMP" >&5
14424 echo "${ECHO_T}$RESCOMP" >&6
14425 else
14426   echo "$as_me:$LINENO: result: no" >&5
14427 echo "${ECHO_T}no" >&6
14428 fi
14429
14430 fi
14431 if test -z "$ac_cv_prog_RESCOMP"; then
14432   ac_ct_RESCOMP=$RESCOMP
14433   # Extract the first word of "windres", so it can be a program name with args.
14434 set dummy windres; ac_word=$2
14435 echo "$as_me:$LINENO: checking for $ac_word" >&5
14436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14437 if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14438   echo $ECHO_N "(cached) $ECHO_C" >&6
14439 else
14440   if test -n "$ac_ct_RESCOMP"; then
14441   ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14442 else
14443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14444 for as_dir in $PATH
14445 do
14446   IFS=$as_save_IFS
14447   test -z "$as_dir" && as_dir=.
14448   for ac_exec_ext in '' $ac_executable_extensions; do
14449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14450     ac_cv_prog_ac_ct_RESCOMP="windres"
14451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14452     break 2
14453   fi
14454 done
14455 done
14456
14457 fi
14458 fi
14459 ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14460 if test -n "$ac_ct_RESCOMP"; then
14461   echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14462 echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14463 else
14464   echo "$as_me:$LINENO: result: no" >&5
14465 echo "${ECHO_T}no" >&6
14466 fi
14467
14468   RESCOMP=$ac_ct_RESCOMP
14469 else
14470   RESCOMP="$ac_cv_prog_RESCOMP"
14471 fi
14472
14473         if test -n "$ac_tool_prefix"; then
14474   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14475 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14476 echo "$as_me:$LINENO: checking for $ac_word" >&5
14477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14478 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14479   echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481   if test -n "$DLLTOOL"; then
14482   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14483 else
14484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14485 for as_dir in $PATH
14486 do
14487   IFS=$as_save_IFS
14488   test -z "$as_dir" && as_dir=.
14489   for ac_exec_ext in '' $ac_executable_extensions; do
14490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14491     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14493     break 2
14494   fi
14495 done
14496 done
14497
14498 fi
14499 fi
14500 DLLTOOL=$ac_cv_prog_DLLTOOL
14501 if test -n "$DLLTOOL"; then
14502   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14503 echo "${ECHO_T}$DLLTOOL" >&6
14504 else
14505   echo "$as_me:$LINENO: result: no" >&5
14506 echo "${ECHO_T}no" >&6
14507 fi
14508
14509 fi
14510 if test -z "$ac_cv_prog_DLLTOOL"; then
14511   ac_ct_DLLTOOL=$DLLTOOL
14512   # Extract the first word of "dlltool", so it can be a program name with args.
14513 set dummy dlltool; ac_word=$2
14514 echo "$as_me:$LINENO: checking for $ac_word" >&5
14515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14516 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14517   echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519   if test -n "$ac_ct_DLLTOOL"; then
14520   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14521 else
14522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14523 for as_dir in $PATH
14524 do
14525   IFS=$as_save_IFS
14526   test -z "$as_dir" && as_dir=.
14527   for ac_exec_ext in '' $ac_executable_extensions; do
14528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14529     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14531     break 2
14532   fi
14533 done
14534 done
14535
14536 fi
14537 fi
14538 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14539 if test -n "$ac_ct_DLLTOOL"; then
14540   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14541 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14542 else
14543   echo "$as_me:$LINENO: result: no" >&5
14544 echo "${ECHO_T}no" >&6
14545 fi
14546
14547   DLLTOOL=$ac_ct_DLLTOOL
14548 else
14549   DLLTOOL="$ac_cv_prog_DLLTOOL"
14550 fi
14551
14552         ;;
14553     esac
14554 fi
14555
14556 echo "$as_me:$LINENO: checking if make is GNU make" >&5
14557 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14558 if test "${wx_cv_prog_makeisgnu+set}" = set; then
14559   echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561
14562     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14563             egrep -s GNU > /dev/null); then
14564         wx_cv_prog_makeisgnu="yes"
14565     else
14566         wx_cv_prog_makeisgnu="no"
14567     fi
14568
14569 fi
14570 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14571 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14572
14573 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14574     IF_GNU_MAKE=""
14575 else
14576     IF_GNU_MAKE="#"
14577 fi
14578
14579
14580
14581 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14582 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14583 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14584 if test "${wx_cv_prog_makevpath+set}" = set; then
14585   echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587
14588 cat - << EOF > confMake
14589 check : file
14590         cp \$? \$@
14591         cp \$? final_file
14592 EOF
14593
14594 if test ! -d sub ; then
14595   mkdir sub
14596 fi
14597 echo dummy > sub/file
14598 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14599 RESULT=$?
14600 rm -f sub/file check final_file confMake
14601 rmdir sub
14602 if test "$RESULT" = 0; then
14603   wx_cv_prog_makevpath="yes"
14604 else
14605   wx_cv_prog_makevpath="no"
14606 fi
14607
14608 fi
14609 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14610 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14611
14612 if test "x$wx_cv_prog_makevpath" != "xyes"; then
14613 { { echo "$as_me:$LINENO: error:
14614 You need a make-utility that is able to use the variable
14615 VPATH correctly.
14616 If your version of make does not support VPATH correctly,
14617 please install GNU-make (possibly as gmake), and start
14618 configure with the following command:
14619 export MAKE=gmake; ./configure  for sh-type shells
14620 setenv MAKE gmake; ./configure  for csh-type shells
14621 Also please do remember to use gmake in this case every time
14622 you are trying to compile.
14623 " >&5
14624 echo "$as_me: error:
14625 You need a make-utility that is able to use the variable
14626 VPATH correctly.
14627 If your version of make does not support VPATH correctly,
14628 please install GNU-make (possibly as gmake), and start
14629 configure with the following command:
14630 export MAKE=gmake; ./configure  for sh-type shells
14631 setenv MAKE gmake; ./configure  for csh-type shells
14632 Also please do remember to use gmake in this case every time
14633 you are trying to compile.
14634 " >&2;}
14635    { (exit 1); exit 1; }; }
14636 fi fi
14637 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14638 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14639 LN_S=$as_ln_s
14640 if test "$LN_S" = "ln -s"; then
14641   echo "$as_me:$LINENO: result: yes" >&5
14642 echo "${ECHO_T}yes" >&6
14643 else
14644   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14645 echo "${ECHO_T}no, using $LN_S" >&6
14646 fi
14647
14648
14649 CP_PR='cp -pR'
14650 for ac_prog in lndir
14651 do
14652   # Extract the first word of "$ac_prog", so it can be a program name with args.
14653 set dummy $ac_prog; ac_word=$2
14654 echo "$as_me:$LINENO: checking for $ac_word" >&5
14655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14656 if test "${ac_cv_prog_LNDIR+set}" = set; then
14657   echo $ECHO_N "(cached) $ECHO_C" >&6
14658 else
14659   if test -n "$LNDIR"; then
14660   ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test.
14661 else
14662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14663 for as_dir in $PATH
14664 do
14665   IFS=$as_save_IFS
14666   test -z "$as_dir" && as_dir=.
14667   for ac_exec_ext in '' $ac_executable_extensions; do
14668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14669     ac_cv_prog_LNDIR="$ac_prog"
14670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14671     break 2
14672   fi
14673 done
14674 done
14675
14676 fi
14677 fi
14678 LNDIR=$ac_cv_prog_LNDIR
14679 if test -n "$LNDIR"; then
14680   echo "$as_me:$LINENO: result: $LNDIR" >&5
14681 echo "${ECHO_T}$LNDIR" >&6
14682 else
14683   echo "$as_me:$LINENO: result: no" >&5
14684 echo "${ECHO_T}no" >&6
14685 fi
14686
14687   test -n "$LNDIR" && break
14688 done
14689 test -n "$LNDIR" || LNDIR="$CP_PR"
14690
14691
14692
14693
14694
14695 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
14696     CXXFLAGS="$CXXFLAGS -qunique"
14697 fi
14698
14699 case "${host}" in
14700   powerpc-*-darwin* )
14701     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14702 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14703     cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h.  */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h.  */
14709
14710 int
14711 main ()
14712 {
14713 #ifndef __POWERPC__
14714         choke me for lack of PowerPC
14715 #endif
14716
14717   ;
14718   return 0;
14719 }
14720 _ACEOF
14721 rm -f conftest.$ac_objext
14722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723   (eval $ac_compile) 2>conftest.er1
14724   ac_status=$?
14725   grep -v '^ *+' conftest.er1 >conftest.err
14726   rm -f conftest.er1
14727   cat conftest.err >&5
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); } &&
14730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732   (eval $ac_try) 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; } &&
14736          { ac_try='test -s conftest.$ac_objext'
14737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738   (eval $ac_try) 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); }; }; then
14742   echo "$as_me:$LINENO: result: yes" >&5
14743 echo "${ECHO_T}yes" >&6
14744 else
14745   echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748 echo "$as_me:$LINENO: result: no" >&5
14749 echo "${ECHO_T}no" >&6
14750         cat >>confdefs.h <<\_ACEOF
14751 #define __POWERPC__ 1
14752 _ACEOF
14753
14754
14755 fi
14756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14757   ;;
14758 esac
14759
14760 case "${host}" in
14761   *-*-darwin* )
14762     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14763 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14764     cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h.  */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h.  */
14770 #include <CoreFoundation/CFBase.h>
14771
14772 int
14773 main ()
14774 {
14775
14776   ;
14777   return 0;
14778 }
14779 _ACEOF
14780 rm -f conftest.$ac_objext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14782   (eval $ac_compile) 2>conftest.er1
14783   ac_status=$?
14784   grep -v '^ *+' conftest.er1 >conftest.err
14785   rm -f conftest.er1
14786   cat conftest.err >&5
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); } &&
14789          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791   (eval $ac_try) 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); }; } &&
14795          { ac_try='test -s conftest.$ac_objext'
14796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797   (eval $ac_try) 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); }; }; then
14801   echo "$as_me:$LINENO: result: yes" >&5
14802 echo "${ECHO_T}yes" >&6
14803 else
14804   echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14806
14807 echo "$as_me:$LINENO: result: no" >&5
14808 echo "${ECHO_T}no" >&6
14809         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14810 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14811         cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h.  */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h.  */
14817 #define __CF_USE_FRAMEWORK_INCLUDES__
14818 #include <CoreFoundation/CFBase.h>
14819
14820 int
14821 main ()
14822 {
14823
14824   ;
14825   return 0;
14826 }
14827 _ACEOF
14828 rm -f conftest.$ac_objext
14829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14830   (eval $ac_compile) 2>conftest.er1
14831   ac_status=$?
14832   grep -v '^ *+' conftest.er1 >conftest.err
14833   rm -f conftest.er1
14834   cat conftest.err >&5
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } &&
14837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839   (eval $ac_try) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; } &&
14843          { ac_try='test -s conftest.$ac_objext'
14844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845   (eval $ac_try) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); }; }; then
14849   echo "$as_me:$LINENO: result: yes" >&5
14850 echo "${ECHO_T}yes" >&6
14851                         CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14852 else
14853   echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14855
14856 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
14857 See \`config.log' for more details." >&5
14858 echo "$as_me: error: no.  CoreFoundation not available.
14859 See \`config.log' for more details." >&2;}
14860    { (exit 1); exit 1; }; }
14861
14862 fi
14863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864
14865
14866 fi
14867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14868   ;;
14869 esac
14870
14871 case "${host}" in
14872   *-pc-os2_emx | *-pc-os2-emx )
14873                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14874                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14875 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14876 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14877   echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879   ac_check_lib_save_LIBS=$LIBS
14880 LIBS="-lcExt  $LIBS"
14881 cat >conftest.$ac_ext <<_ACEOF
14882 /* confdefs.h.  */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h.  */
14887
14888 /* Override any gcc2 internal prototype to avoid an error.  */
14889 #ifdef __cplusplus
14890 extern "C"
14891 #endif
14892 /* We use char because int might match the return type of a gcc2
14893    builtin and then its argument prototype would still apply.  */
14894 char drand48 ();
14895 int
14896 main ()
14897 {
14898 drand48 ();
14899   ;
14900   return 0;
14901 }
14902 _ACEOF
14903 rm -f conftest.$ac_objext conftest$ac_exeext
14904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14905   (eval $ac_link) 2>conftest.er1
14906   ac_status=$?
14907   grep -v '^ *+' conftest.er1 >conftest.err
14908   rm -f conftest.er1
14909   cat conftest.err >&5
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); } &&
14912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914   (eval $ac_try) 2>&5
14915   ac_status=$?
14916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917   (exit $ac_status); }; } &&
14918          { ac_try='test -s conftest$ac_exeext'
14919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920   (eval $ac_try) 2>&5
14921   ac_status=$?
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); }; }; then
14924   ac_cv_lib_cExt_drand48=yes
14925 else
14926   echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14928
14929 ac_cv_lib_cExt_drand48=no
14930 fi
14931 rm -f conftest.err conftest.$ac_objext \
14932       conftest$ac_exeext conftest.$ac_ext
14933 LIBS=$ac_check_lib_save_LIBS
14934 fi
14935 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14936 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14937 if test $ac_cv_lib_cExt_drand48 = yes; then
14938   LIBS="$LIBS -lcExt"
14939 fi
14940
14941       else
14942                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14943       fi
14944                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14945 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
14946 if test "${wx_cv_gccversion+set}" = set; then
14947   echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949
14950           if test "$cross_compiling" = yes; then
14951                 wx_cv_gccversion="EMX2"
14952
14953 else
14954   cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h.  */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h.  */
14960
14961                   #include <stdio.h>
14962
14963                   int main()
14964                   {
14965                       FILE *f=fopen("conftestval", "w");
14966                       if (!f) exit(1);
14967                       fprintf(f,
14968                   #if (__GNUC__ < 3)
14969                               "EMX2"
14970                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14971                               "EMX3"
14972                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14973                               "Innotek5"
14974                   #else
14975                               "Innotek6"
14976                   #endif
14977                       );
14978                       exit(0);
14979                   }
14980
14981 _ACEOF
14982 rm -f conftest$ac_exeext
14983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14984   (eval $ac_link) 2>&5
14985   ac_status=$?
14986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989   (eval $ac_try) 2>&5
14990   ac_status=$?
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); }; }; then
14993   wx_cv_gccversion=`cat conftestval`
14994 else
14995   echo "$as_me: program exited with status $ac_status" >&5
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999 ( exit $ac_status )
15000 wx_cv_gccversion="EMX2"
15001 fi
15002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15003 fi
15004
15005 fi
15006 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15007 echo "${ECHO_T}$wx_cv_gccversion" >&6
15008       if test "$wx_cv_gccversion" = "EMX2"; then
15009           LIBS="$LIBS -lstdcpp"
15010           LDFLAGS="$LDFLAGS -Zsysv-signals"
15011       else
15012           if test "$wx_cv_gccversion" = "EMX3"; then
15013               LIBS="$LIBS -lstdcxx -lgcc"
15014               LDFLAGS="$LDFLAGS -Zsysv-signals"
15015           else
15016               LIBS="$LIBS -lstdc++"
15017           fi
15018       fi
15019       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15020         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15021 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15022         wxUSE_OMF=yes
15023         enable_omf=yes
15024       fi
15025         ;;
15026   *)
15027
15028
15029
15030       ac_ext=cc
15031 ac_cpp='$CXXCPP $CPPFLAGS'
15032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15035
15036
15037       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
15038 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15039 if test "${ac_cv_string_strcasecmp+set}" = set; then
15040   echo $ECHO_N "(cached) $ECHO_C" >&6
15041 else
15042
15043           cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h.  */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h.  */
15049
15050               #include <string.h>
15051
15052 int
15053 main ()
15054 {
15055
15056                   strcasecmp("foo", "bar");
15057
15058   ;
15059   return 0;
15060 }
15061 _ACEOF
15062 rm -f conftest.$ac_objext conftest$ac_exeext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15064   (eval $ac_link) 2>conftest.er1
15065   ac_status=$?
15066   grep -v '^ *+' conftest.er1 >conftest.err
15067   rm -f conftest.er1
15068   cat conftest.err >&5
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); } &&
15071          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073   (eval $ac_try) 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); }; } &&
15077          { ac_try='test -s conftest$ac_exeext'
15078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079   (eval $ac_try) 2>&5
15080   ac_status=$?
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); }; }; then
15083   ac_cv_string_strcasecmp=yes
15084 else
15085   echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15087
15088 ac_cv_string_strcasecmp=no
15089
15090 fi
15091 rm -f conftest.err conftest.$ac_objext \
15092       conftest$ac_exeext conftest.$ac_ext
15093
15094 fi
15095 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15096 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15097
15098       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15099           cat >>confdefs.h <<\_ACEOF
15100 #define HAVE_STRCASECMP_IN_STRING_H 1
15101 _ACEOF
15102
15103       else
15104           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15105 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15106 if test "${ac_cv_strings_strcasecmp+set}" = set; then
15107   echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109
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
15117                   #include <strings.h>
15118
15119 int
15120 main ()
15121 {
15122
15123                       strcasecmp("foo", "bar");
15124
15125   ;
15126   return 0;
15127 }
15128 _ACEOF
15129 rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15131   (eval $ac_link) 2>conftest.er1
15132   ac_status=$?
15133   grep -v '^ *+' conftest.er1 >conftest.err
15134   rm -f conftest.er1
15135   cat conftest.err >&5
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); } &&
15138          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140   (eval $ac_try) 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); }; } &&
15144          { ac_try='test -s conftest$ac_exeext'
15145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146   (eval $ac_try) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); }; }; then
15150   ac_cv_strings_strcasecmp=yes
15151 else
15152   echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155 ac_cv_strings_strcasecmp=no
15156
15157 fi
15158 rm -f conftest.err conftest.$ac_objext \
15159       conftest$ac_exeext conftest.$ac_ext
15160
15161 fi
15162 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15163 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15164
15165           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
15166               cat >>confdefs.h <<\_ACEOF
15167 #define HAVE_STRCASECMP_IN_STRINGS_H 1
15168 _ACEOF
15169
15170           else
15171               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15172 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15173    { (exit 1); exit 1; }; }
15174           fi
15175       fi
15176
15177       ac_ext=c
15178 ac_cpp='$CPP $CPPFLAGS'
15179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15182
15183         ;;
15184 esac
15185
15186
15187 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15188 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15189 if test "${ac_cv_header_stdc+set}" = set; then
15190   echo $ECHO_N "(cached) $ECHO_C" >&6
15191 else
15192   cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h.  */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h.  */
15198 #include <stdlib.h>
15199 #include <stdarg.h>
15200 #include <string.h>
15201 #include <float.h>
15202
15203 int
15204 main ()
15205 {
15206
15207   ;
15208   return 0;
15209 }
15210 _ACEOF
15211 rm -f conftest.$ac_objext
15212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15213   (eval $ac_compile) 2>conftest.er1
15214   ac_status=$?
15215   grep -v '^ *+' conftest.er1 >conftest.err
15216   rm -f conftest.er1
15217   cat conftest.err >&5
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); } &&
15220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222   (eval $ac_try) 2>&5
15223   ac_status=$?
15224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225   (exit $ac_status); }; } &&
15226          { ac_try='test -s conftest.$ac_objext'
15227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228   (eval $ac_try) 2>&5
15229   ac_status=$?
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); }; }; then
15232   ac_cv_header_stdc=yes
15233 else
15234   echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15236
15237 ac_cv_header_stdc=no
15238 fi
15239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15240
15241 if test $ac_cv_header_stdc = yes; then
15242   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15243   cat >conftest.$ac_ext <<_ACEOF
15244 /* confdefs.h.  */
15245 _ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h.  */
15249 #include <string.h>
15250
15251 _ACEOF
15252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15253   $EGREP "memchr" >/dev/null 2>&1; then
15254   :
15255 else
15256   ac_cv_header_stdc=no
15257 fi
15258 rm -f conftest*
15259
15260 fi
15261
15262 if test $ac_cv_header_stdc = yes; then
15263   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15264   cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h.  */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h.  */
15270 #include <stdlib.h>
15271
15272 _ACEOF
15273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15274   $EGREP "free" >/dev/null 2>&1; then
15275   :
15276 else
15277   ac_cv_header_stdc=no
15278 fi
15279 rm -f conftest*
15280
15281 fi
15282
15283 if test $ac_cv_header_stdc = yes; then
15284   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15285   if test "$cross_compiling" = yes; then
15286   :
15287 else
15288   cat >conftest.$ac_ext <<_ACEOF
15289 /* confdefs.h.  */
15290 _ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h.  */
15294 #include <ctype.h>
15295 #if ((' ' & 0x0FF) == 0x020)
15296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15298 #else
15299 # define ISLOWER(c) \
15300                    (('a' <= (c) && (c) <= 'i') \
15301                      || ('j' <= (c) && (c) <= 'r') \
15302                      || ('s' <= (c) && (c) <= 'z'))
15303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15304 #endif
15305
15306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15307 int
15308 main ()
15309 {
15310   int i;
15311   for (i = 0; i < 256; i++)
15312     if (XOR (islower (i), ISLOWER (i))
15313         || toupper (i) != TOUPPER (i))
15314       exit(2);
15315   exit (0);
15316 }
15317 _ACEOF
15318 rm -f conftest$ac_exeext
15319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320   (eval $ac_link) 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329   :
15330 else
15331   echo "$as_me: program exited with status $ac_status" >&5
15332 echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335 ( exit $ac_status )
15336 ac_cv_header_stdc=no
15337 fi
15338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15339 fi
15340 fi
15341 fi
15342 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15343 echo "${ECHO_T}$ac_cv_header_stdc" >&6
15344 if test $ac_cv_header_stdc = yes; then
15345
15346 cat >>confdefs.h <<\_ACEOF
15347 #define STDC_HEADERS 1
15348 _ACEOF
15349
15350 fi
15351
15352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
15363                   inttypes.h stdint.h unistd.h
15364 do
15365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15366 echo "$as_me:$LINENO: checking for $ac_header" >&5
15367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h.  */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h.  */
15377 $ac_includes_default
15378
15379 #include <$ac_header>
15380 _ACEOF
15381 rm -f conftest.$ac_objext
15382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15383   (eval $ac_compile) 2>conftest.er1
15384   ac_status=$?
15385   grep -v '^ *+' conftest.er1 >conftest.err
15386   rm -f conftest.er1
15387   cat conftest.err >&5
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); } &&
15390          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392   (eval $ac_try) 2>&5
15393   ac_status=$?
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); }; } &&
15396          { ac_try='test -s conftest.$ac_objext'
15397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398   (eval $ac_try) 2>&5
15399   ac_status=$?
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); }; }; then
15402   eval "$as_ac_Header=yes"
15403 else
15404   echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15406
15407 eval "$as_ac_Header=no"
15408 fi
15409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15410 fi
15411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15414   cat >>confdefs.h <<_ACEOF
15415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15416 _ACEOF
15417
15418 fi
15419
15420 done
15421
15422
15423
15424 for ac_header in stdlib.h
15425 do
15426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15428   echo "$as_me:$LINENO: checking for $ac_header" >&5
15429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15431   echo $ECHO_N "(cached) $ECHO_C" >&6
15432 fi
15433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15435 else
15436   # Is the header compilable?
15437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15439 cat >conftest.$ac_ext <<_ACEOF
15440 /* confdefs.h.  */
15441 _ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h.  */
15445 $ac_includes_default
15446 #include <$ac_header>
15447 _ACEOF
15448 rm -f conftest.$ac_objext
15449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15450   (eval $ac_compile) 2>conftest.er1
15451   ac_status=$?
15452   grep -v '^ *+' conftest.er1 >conftest.err
15453   rm -f conftest.er1
15454   cat conftest.err >&5
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } &&
15457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459   (eval $ac_try) 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; } &&
15463          { ac_try='test -s conftest.$ac_objext'
15464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465   (eval $ac_try) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); }; }; then
15469   ac_header_compiler=yes
15470 else
15471   echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15473
15474 ac_header_compiler=no
15475 fi
15476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15478 echo "${ECHO_T}$ac_header_compiler" >&6
15479
15480 # Is the header present?
15481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15483 cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h.  */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h.  */
15489 #include <$ac_header>
15490 _ACEOF
15491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15493   ac_status=$?
15494   grep -v '^ *+' conftest.er1 >conftest.err
15495   rm -f conftest.er1
15496   cat conftest.err >&5
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); } >/dev/null; then
15499   if test -s conftest.err; then
15500     ac_cpp_err=$ac_c_preproc_warn_flag
15501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15502   else
15503     ac_cpp_err=
15504   fi
15505 else
15506   ac_cpp_err=yes
15507 fi
15508 if test -z "$ac_cpp_err"; then
15509   ac_header_preproc=yes
15510 else
15511   echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514   ac_header_preproc=no
15515 fi
15516 rm -f conftest.err conftest.$ac_ext
15517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15518 echo "${ECHO_T}$ac_header_preproc" >&6
15519
15520 # So?  What about this header?
15521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15522   yes:no: )
15523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15527     ac_header_preproc=yes
15528     ;;
15529   no:yes:* )
15530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15532     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15533 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15534     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15536     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15537 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15540     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15542     (
15543       cat <<\_ASBOX
15544 ## ----------------------------------------- ##
15545 ## Report this to wx-dev@lists.wxwidgets.org ##
15546 ## ----------------------------------------- ##
15547 _ASBOX
15548     ) |
15549       sed "s/^/$as_me: WARNING:     /" >&2
15550     ;;
15551 esac
15552 echo "$as_me:$LINENO: checking for $ac_header" >&5
15553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15555   echo $ECHO_N "(cached) $ECHO_C" >&6
15556 else
15557   eval "$as_ac_Header=\$ac_header_preproc"
15558 fi
15559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15561
15562 fi
15563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15564   cat >>confdefs.h <<_ACEOF
15565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15566 _ACEOF
15567
15568 fi
15569
15570 done
15571
15572
15573 for ac_header in malloc.h
15574 do
15575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15577   echo "$as_me:$LINENO: checking for $ac_header" >&5
15578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15580   echo $ECHO_N "(cached) $ECHO_C" >&6
15581 fi
15582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15584 else
15585   # Is the header compilable?
15586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15588 cat >conftest.$ac_ext <<_ACEOF
15589 /* confdefs.h.  */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h.  */
15594 $ac_includes_default
15595 #include <$ac_header>
15596 _ACEOF
15597 rm -f conftest.$ac_objext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15599   (eval $ac_compile) 2>conftest.er1
15600   ac_status=$?
15601   grep -v '^ *+' conftest.er1 >conftest.err
15602   rm -f conftest.er1
15603   cat conftest.err >&5
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } &&
15606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608   (eval $ac_try) 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; } &&
15612          { ac_try='test -s conftest.$ac_objext'
15613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614   (eval $ac_try) 2>&5
15615   ac_status=$?
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); }; }; then
15618   ac_header_compiler=yes
15619 else
15620   echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15622
15623 ac_header_compiler=no
15624 fi
15625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15627 echo "${ECHO_T}$ac_header_compiler" >&6
15628
15629 # Is the header present?
15630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h.  */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h.  */
15638 #include <$ac_header>
15639 _ACEOF
15640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15642   ac_status=$?
15643   grep -v '^ *+' conftest.er1 >conftest.err
15644   rm -f conftest.er1
15645   cat conftest.err >&5
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); } >/dev/null; then
15648   if test -s conftest.err; then
15649     ac_cpp_err=$ac_c_preproc_warn_flag
15650     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15651   else
15652     ac_cpp_err=
15653   fi
15654 else
15655   ac_cpp_err=yes
15656 fi
15657 if test -z "$ac_cpp_err"; then
15658   ac_header_preproc=yes
15659 else
15660   echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663   ac_header_preproc=no
15664 fi
15665 rm -f conftest.err conftest.$ac_ext
15666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15667 echo "${ECHO_T}$ac_header_preproc" >&6
15668
15669 # So?  What about this header?
15670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15671   yes:no: )
15672     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15676     ac_header_preproc=yes
15677     ;;
15678   no:yes:* )
15679     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15681     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15682 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15683     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15685     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15686 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15689     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15691     (
15692       cat <<\_ASBOX
15693 ## ----------------------------------------- ##
15694 ## Report this to wx-dev@lists.wxwidgets.org ##
15695 ## ----------------------------------------- ##
15696 _ASBOX
15697     ) |
15698       sed "s/^/$as_me: WARNING:     /" >&2
15699     ;;
15700 esac
15701 echo "$as_me:$LINENO: checking for $ac_header" >&5
15702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15704   echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706   eval "$as_ac_Header=\$ac_header_preproc"
15707 fi
15708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15710
15711 fi
15712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15713   cat >>confdefs.h <<_ACEOF
15714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15715 _ACEOF
15716
15717 fi
15718
15719 done
15720
15721
15722 for ac_header in unistd.h
15723 do
15724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15726   echo "$as_me:$LINENO: checking for $ac_header" >&5
15727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15729   echo $ECHO_N "(cached) $ECHO_C" >&6
15730 fi
15731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15733 else
15734   # Is the header compilable?
15735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15737 cat >conftest.$ac_ext <<_ACEOF
15738 /* confdefs.h.  */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h.  */
15743 $ac_includes_default
15744 #include <$ac_header>
15745 _ACEOF
15746 rm -f conftest.$ac_objext
15747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15748   (eval $ac_compile) 2>conftest.er1
15749   ac_status=$?
15750   grep -v '^ *+' conftest.er1 >conftest.err
15751   rm -f conftest.er1
15752   cat conftest.err >&5
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); } &&
15755          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757   (eval $ac_try) 2>&5
15758   ac_status=$?
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); }; } &&
15761          { ac_try='test -s conftest.$ac_objext'
15762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763   (eval $ac_try) 2>&5
15764   ac_status=$?
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); }; }; then
15767   ac_header_compiler=yes
15768 else
15769   echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772 ac_header_compiler=no
15773 fi
15774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15776 echo "${ECHO_T}$ac_header_compiler" >&6
15777
15778 # Is the header present?
15779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15781 cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h.  */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h.  */
15787 #include <$ac_header>
15788 _ACEOF
15789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15791   ac_status=$?
15792   grep -v '^ *+' conftest.er1 >conftest.err
15793   rm -f conftest.er1
15794   cat conftest.err >&5
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); } >/dev/null; then
15797   if test -s conftest.err; then
15798     ac_cpp_err=$ac_c_preproc_warn_flag
15799     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15800   else
15801     ac_cpp_err=
15802   fi
15803 else
15804   ac_cpp_err=yes
15805 fi
15806 if test -z "$ac_cpp_err"; then
15807   ac_header_preproc=yes
15808 else
15809   echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15811
15812   ac_header_preproc=no
15813 fi
15814 rm -f conftest.err conftest.$ac_ext
15815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15816 echo "${ECHO_T}$ac_header_preproc" >&6
15817
15818 # So?  What about this header?
15819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15820   yes:no: )
15821     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15825     ac_header_preproc=yes
15826     ;;
15827   no:yes:* )
15828     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15830     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15831 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15832     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15834     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15835 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15838     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15840     (
15841       cat <<\_ASBOX
15842 ## ----------------------------------------- ##
15843 ## Report this to wx-dev@lists.wxwidgets.org ##
15844 ## ----------------------------------------- ##
15845 _ASBOX
15846     ) |
15847       sed "s/^/$as_me: WARNING:     /" >&2
15848     ;;
15849 esac
15850 echo "$as_me:$LINENO: checking for $ac_header" >&5
15851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15853   echo $ECHO_N "(cached) $ECHO_C" >&6
15854 else
15855   eval "$as_ac_Header=\$ac_header_preproc"
15856 fi
15857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15859
15860 fi
15861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15862   cat >>confdefs.h <<_ACEOF
15863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15864 _ACEOF
15865
15866 fi
15867
15868 done
15869
15870
15871 for ac_header in wchar.h
15872 do
15873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15875   echo "$as_me:$LINENO: checking for $ac_header" >&5
15876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15878   echo $ECHO_N "(cached) $ECHO_C" >&6
15879 fi
15880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15882 else
15883   # Is the header compilable?
15884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15886 cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h.  */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h.  */
15892 $ac_includes_default
15893 #include <$ac_header>
15894 _ACEOF
15895 rm -f conftest.$ac_objext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15897   (eval $ac_compile) 2>conftest.er1
15898   ac_status=$?
15899   grep -v '^ *+' conftest.er1 >conftest.err
15900   rm -f conftest.er1
15901   cat conftest.err >&5
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); } &&
15904          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906   (eval $ac_try) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); }; } &&
15910          { ac_try='test -s conftest.$ac_objext'
15911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912   (eval $ac_try) 2>&5
15913   ac_status=$?
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); }; }; then
15916   ac_header_compiler=yes
15917 else
15918   echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ac_header_compiler=no
15922 fi
15923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6
15926
15927 # Is the header present?
15928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h.  */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h.  */
15936 #include <$ac_header>
15937 _ACEOF
15938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15940   ac_status=$?
15941   grep -v '^ *+' conftest.er1 >conftest.err
15942   rm -f conftest.er1
15943   cat conftest.err >&5
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); } >/dev/null; then
15946   if test -s conftest.err; then
15947     ac_cpp_err=$ac_c_preproc_warn_flag
15948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15949   else
15950     ac_cpp_err=
15951   fi
15952 else
15953   ac_cpp_err=yes
15954 fi
15955 if test -z "$ac_cpp_err"; then
15956   ac_header_preproc=yes
15957 else
15958   echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961   ac_header_preproc=no
15962 fi
15963 rm -f conftest.err conftest.$ac_ext
15964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15965 echo "${ECHO_T}$ac_header_preproc" >&6
15966
15967 # So?  What about this header?
15968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15969   yes:no: )
15970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15974     ac_header_preproc=yes
15975     ;;
15976   no:yes:* )
15977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15989     (
15990       cat <<\_ASBOX
15991 ## ----------------------------------------- ##
15992 ## Report this to wx-dev@lists.wxwidgets.org ##
15993 ## ----------------------------------------- ##
15994 _ASBOX
15995     ) |
15996       sed "s/^/$as_me: WARNING:     /" >&2
15997     ;;
15998 esac
15999 echo "$as_me:$LINENO: checking for $ac_header" >&5
16000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16002   echo $ECHO_N "(cached) $ECHO_C" >&6
16003 else
16004   eval "$as_ac_Header=\$ac_header_preproc"
16005 fi
16006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16008
16009 fi
16010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16011   cat >>confdefs.h <<_ACEOF
16012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16013 _ACEOF
16014
16015 fi
16016
16017 done
16018
16019
16020 if test "$ac_cv_header_wchar_h" != "yes"; then
16021
16022 for ac_header in wcstr.h
16023 do
16024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16026   echo "$as_me:$LINENO: checking for $ac_header" >&5
16027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16029   echo $ECHO_N "(cached) $ECHO_C" >&6
16030 fi
16031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16033 else
16034   # Is the header compilable?
16035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 $ac_includes_default
16044 #include <$ac_header>
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16048   (eval $ac_compile) 2>conftest.er1
16049   ac_status=$?
16050   grep -v '^ *+' conftest.er1 >conftest.err
16051   rm -f conftest.er1
16052   cat conftest.err >&5
16053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054   (exit $ac_status); } &&
16055          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057   (eval $ac_try) 2>&5
16058   ac_status=$?
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); }; } &&
16061          { ac_try='test -s conftest.$ac_objext'
16062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063   (eval $ac_try) 2>&5
16064   ac_status=$?
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); }; }; then
16067   ac_header_compiler=yes
16068 else
16069   echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16071
16072 ac_header_compiler=no
16073 fi
16074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16076 echo "${ECHO_T}$ac_header_compiler" >&6
16077
16078 # Is the header present?
16079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16081 cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h.  */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h.  */
16087 #include <$ac_header>
16088 _ACEOF
16089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16091   ac_status=$?
16092   grep -v '^ *+' conftest.er1 >conftest.err
16093   rm -f conftest.er1
16094   cat conftest.err >&5
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); } >/dev/null; then
16097   if test -s conftest.err; then
16098     ac_cpp_err=$ac_c_preproc_warn_flag
16099     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16100   else
16101     ac_cpp_err=
16102   fi
16103 else
16104   ac_cpp_err=yes
16105 fi
16106 if test -z "$ac_cpp_err"; then
16107   ac_header_preproc=yes
16108 else
16109   echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16111
16112   ac_header_preproc=no
16113 fi
16114 rm -f conftest.err conftest.$ac_ext
16115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16116 echo "${ECHO_T}$ac_header_preproc" >&6
16117
16118 # So?  What about this header?
16119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16120   yes:no: )
16121     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16125     ac_header_preproc=yes
16126     ;;
16127   no:yes:* )
16128     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16131 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16132     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16135 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16138     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16140     (
16141       cat <<\_ASBOX
16142 ## ----------------------------------------- ##
16143 ## Report this to wx-dev@lists.wxwidgets.org ##
16144 ## ----------------------------------------- ##
16145 _ASBOX
16146     ) |
16147       sed "s/^/$as_me: WARNING:     /" >&2
16148     ;;
16149 esac
16150 echo "$as_me:$LINENO: checking for $ac_header" >&5
16151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16153   echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155   eval "$as_ac_Header=\$ac_header_preproc"
16156 fi
16157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16159
16160 fi
16161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16162   cat >>confdefs.h <<_ACEOF
16163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16164 _ACEOF
16165
16166 fi
16167
16168 done
16169
16170 fi
16171
16172
16173 for ac_header in fnmatch.h
16174 do
16175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16177   echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16180   echo $ECHO_N "(cached) $ECHO_C" >&6
16181 fi
16182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16184 else
16185   # Is the header compilable?
16186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h.  */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h.  */
16194 $ac_includes_default
16195 #include <$ac_header>
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199   (eval $ac_compile) 2>conftest.er1
16200   ac_status=$?
16201   grep -v '^ *+' conftest.er1 >conftest.err
16202   rm -f conftest.er1
16203   cat conftest.err >&5
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); } &&
16206          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208   (eval $ac_try) 2>&5
16209   ac_status=$?
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); }; } &&
16212          { ac_try='test -s conftest.$ac_objext'
16213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214   (eval $ac_try) 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; }; then
16218   ac_header_compiler=yes
16219 else
16220   echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16222
16223 ac_header_compiler=no
16224 fi
16225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16227 echo "${ECHO_T}$ac_header_compiler" >&6
16228
16229 # Is the header present?
16230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16232 cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h.  */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h.  */
16238 #include <$ac_header>
16239 _ACEOF
16240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16242   ac_status=$?
16243   grep -v '^ *+' conftest.er1 >conftest.err
16244   rm -f conftest.er1
16245   cat conftest.err >&5
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); } >/dev/null; then
16248   if test -s conftest.err; then
16249     ac_cpp_err=$ac_c_preproc_warn_flag
16250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16251   else
16252     ac_cpp_err=
16253   fi
16254 else
16255   ac_cpp_err=yes
16256 fi
16257 if test -z "$ac_cpp_err"; then
16258   ac_header_preproc=yes
16259 else
16260   echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16262
16263   ac_header_preproc=no
16264 fi
16265 rm -f conftest.err conftest.$ac_ext
16266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16267 echo "${ECHO_T}$ac_header_preproc" >&6
16268
16269 # So?  What about this header?
16270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16271   yes:no: )
16272     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16276     ac_header_preproc=yes
16277     ;;
16278   no:yes:* )
16279     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16281     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16282 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16283     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16285     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16286 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16289     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16291     (
16292       cat <<\_ASBOX
16293 ## ----------------------------------------- ##
16294 ## Report this to wx-dev@lists.wxwidgets.org ##
16295 ## ----------------------------------------- ##
16296 _ASBOX
16297     ) |
16298       sed "s/^/$as_me: WARNING:     /" >&2
16299     ;;
16300 esac
16301 echo "$as_me:$LINENO: checking for $ac_header" >&5
16302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16304   echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306   eval "$as_ac_Header=\$ac_header_preproc"
16307 fi
16308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16310
16311 fi
16312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16313   cat >>confdefs.h <<_ACEOF
16314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16315 _ACEOF
16316
16317 fi
16318
16319 done
16320
16321
16322
16323 for ac_header in langinfo.h
16324 do
16325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16327   echo "$as_me:$LINENO: checking for $ac_header" >&5
16328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330   echo $ECHO_N "(cached) $ECHO_C" >&6
16331 fi
16332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16334 else
16335   # Is the header compilable?
16336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16338 cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h.  */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h.  */
16344 $ac_includes_default
16345 #include <$ac_header>
16346 _ACEOF
16347 rm -f conftest.$ac_objext
16348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16349   (eval $ac_compile) 2>conftest.er1
16350   ac_status=$?
16351   grep -v '^ *+' conftest.er1 >conftest.err
16352   rm -f conftest.er1
16353   cat conftest.err >&5
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); } &&
16356          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
16362          { ac_try='test -s conftest.$ac_objext'
16363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364   (eval $ac_try) 2>&5
16365   ac_status=$?
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); }; }; then
16368   ac_header_compiler=yes
16369 else
16370   echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16372
16373 ac_header_compiler=no
16374 fi
16375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16377 echo "${ECHO_T}$ac_header_compiler" >&6
16378
16379 # Is the header present?
16380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388 #include <$ac_header>
16389 _ACEOF
16390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16392   ac_status=$?
16393   grep -v '^ *+' conftest.er1 >conftest.err
16394   rm -f conftest.er1
16395   cat conftest.err >&5
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); } >/dev/null; then
16398   if test -s conftest.err; then
16399     ac_cpp_err=$ac_c_preproc_warn_flag
16400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16401   else
16402     ac_cpp_err=
16403   fi
16404 else
16405   ac_cpp_err=yes
16406 fi
16407 if test -z "$ac_cpp_err"; then
16408   ac_header_preproc=yes
16409 else
16410   echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16412
16413   ac_header_preproc=no
16414 fi
16415 rm -f conftest.err conftest.$ac_ext
16416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16417 echo "${ECHO_T}$ac_header_preproc" >&6
16418
16419 # So?  What about this header?
16420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16421   yes:no: )
16422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16426     ac_header_preproc=yes
16427     ;;
16428   no:yes:* )
16429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16441     (
16442       cat <<\_ASBOX
16443 ## ----------------------------------------- ##
16444 ## Report this to wx-dev@lists.wxwidgets.org ##
16445 ## ----------------------------------------- ##
16446 _ASBOX
16447     ) |
16448       sed "s/^/$as_me: WARNING:     /" >&2
16449     ;;
16450 esac
16451 echo "$as_me:$LINENO: checking for $ac_header" >&5
16452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16454   echo $ECHO_N "(cached) $ECHO_C" >&6
16455 else
16456   eval "$as_ac_Header=\$ac_header_preproc"
16457 fi
16458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16460
16461 fi
16462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16463   cat >>confdefs.h <<_ACEOF
16464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16465 _ACEOF
16466
16467 fi
16468
16469 done
16470
16471
16472 case "${host}" in
16473   *-pc-os2_emx | *-pc-os2-emx )
16474                   if test $ac_cv_header_langinfo_h = "yes" \
16475                 -a \(   "$wx_cv_gccversion" = "EMX2" \
16476                      -o "$wx_cv_gccversion" = "EMX3" \
16477                      -o "$wx_cv_gccversion" = "Innotek5" \); then
16478           LIBS="$LIBS -lintl"
16479       fi
16480   ;;
16481 esac
16482
16483
16484 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16485 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16486 if test "${ac_cv_c_const+set}" = set; then
16487   echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489   cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495
16496 int
16497 main ()
16498 {
16499 /* FIXME: Include the comments suggested by Paul. */
16500 #ifndef __cplusplus
16501   /* Ultrix mips cc rejects this.  */
16502   typedef int charset[2];
16503   const charset x;
16504   /* SunOS 4.1.1 cc rejects this.  */
16505   char const *const *ccp;
16506   char **p;
16507   /* NEC SVR4.0.2 mips cc rejects this.  */
16508   struct point {int x, y;};
16509   static struct point const zero = {0,0};
16510   /* AIX XL C 1.02.0.0 rejects this.
16511      It does not let you subtract one const X* pointer from another in
16512      an arm of an if-expression whose if-part is not a constant
16513      expression */
16514   const char *g = "string";
16515   ccp = &g + (g ? g-g : 0);
16516   /* HPUX 7.0 cc rejects these. */
16517   ++ccp;
16518   p = (char**) ccp;
16519   ccp = (char const *const *) p;
16520   { /* SCO 3.2v4 cc rejects this.  */
16521     char *t;
16522     char const *s = 0 ? (char *) 0 : (char const *) 0;
16523
16524     *t++ = 0;
16525   }
16526   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16527     int x[] = {25, 17};
16528     const int *foo = &x[0];
16529     ++foo;
16530   }
16531   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16532     typedef const int *iptr;
16533     iptr p = 0;
16534     ++p;
16535   }
16536   { /* AIX XL C 1.02.0.0 rejects this saying
16537        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16538     struct s { int j; const int *ap[3]; };
16539     struct s *b; b->j = 5;
16540   }
16541   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16542     const int foo = 10;
16543   }
16544 #endif
16545
16546   ;
16547   return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16552   (eval $ac_compile) 2>conftest.er1
16553   ac_status=$?
16554   grep -v '^ *+' conftest.er1 >conftest.err
16555   rm -f conftest.er1
16556   cat conftest.err >&5
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); } &&
16559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561   (eval $ac_try) 2>&5
16562   ac_status=$?
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); }; } &&
16565          { ac_try='test -s conftest.$ac_objext'
16566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567   (eval $ac_try) 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; }; then
16571   ac_cv_c_const=yes
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576 ac_cv_c_const=no
16577 fi
16578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16579 fi
16580 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16581 echo "${ECHO_T}$ac_cv_c_const" >&6
16582 if test $ac_cv_c_const = no; then
16583
16584 cat >>confdefs.h <<\_ACEOF
16585 #define const
16586 _ACEOF
16587
16588 fi
16589
16590 echo "$as_me:$LINENO: checking for inline" >&5
16591 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16592 if test "${ac_cv_c_inline+set}" = set; then
16593   echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595   ac_cv_c_inline=no
16596 for ac_kw in inline __inline__ __inline; do
16597   cat >conftest.$ac_ext <<_ACEOF
16598 /* confdefs.h.  */
16599 _ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h.  */
16603 #ifndef __cplusplus
16604 typedef int foo_t;
16605 static $ac_kw foo_t static_foo () {return 0; }
16606 $ac_kw foo_t foo () {return 0; }
16607 #endif
16608
16609 _ACEOF
16610 rm -f conftest.$ac_objext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16612   (eval $ac_compile) 2>conftest.er1
16613   ac_status=$?
16614   grep -v '^ *+' conftest.er1 >conftest.err
16615   rm -f conftest.er1
16616   cat conftest.err >&5
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } &&
16619          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621   (eval $ac_try) 2>&5
16622   ac_status=$?
16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); }; } &&
16625          { ac_try='test -s conftest.$ac_objext'
16626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627   (eval $ac_try) 2>&5
16628   ac_status=$?
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); }; }; then
16631   ac_cv_c_inline=$ac_kw; break
16632 else
16633   echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16635
16636 fi
16637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16638 done
16639
16640 fi
16641 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16642 echo "${ECHO_T}$ac_cv_c_inline" >&6
16643
16644
16645 case $ac_cv_c_inline in
16646   inline | yes) ;;
16647   *)
16648     case $ac_cv_c_inline in
16649       no) ac_val=;;
16650       *) ac_val=$ac_cv_c_inline;;
16651     esac
16652     cat >>confdefs.h <<_ACEOF
16653 #ifndef __cplusplus
16654 #define inline $ac_val
16655 #endif
16656 _ACEOF
16657     ;;
16658 esac
16659
16660
16661 echo "$as_me:$LINENO: checking for char" >&5
16662 echo $ECHO_N "checking for char... $ECHO_C" >&6
16663 if test "${ac_cv_type_char+set}" = set; then
16664   echo $ECHO_N "(cached) $ECHO_C" >&6
16665 else
16666   cat >conftest.$ac_ext <<_ACEOF
16667 /* confdefs.h.  */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h.  */
16672 $ac_includes_default
16673 int
16674 main ()
16675 {
16676 if ((char *) 0)
16677   return 0;
16678 if (sizeof (char))
16679   return 0;
16680   ;
16681   return 0;
16682 }
16683 _ACEOF
16684 rm -f conftest.$ac_objext
16685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16686   (eval $ac_compile) 2>conftest.er1
16687   ac_status=$?
16688   grep -v '^ *+' conftest.er1 >conftest.err
16689   rm -f conftest.er1
16690   cat conftest.err >&5
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); } &&
16693          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695   (eval $ac_try) 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }; } &&
16699          { ac_try='test -s conftest.$ac_objext'
16700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701   (eval $ac_try) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; }; then
16705   ac_cv_type_char=yes
16706 else
16707   echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710 ac_cv_type_char=no
16711 fi
16712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16713 fi
16714 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16715 echo "${ECHO_T}$ac_cv_type_char" >&6
16716
16717 echo "$as_me:$LINENO: checking size of char" >&5
16718 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16719 if test "${ac_cv_sizeof_char+set}" = set; then
16720   echo $ECHO_N "(cached) $ECHO_C" >&6
16721 else
16722   if test "$ac_cv_type_char" = yes; then
16723   # The cast to unsigned long works around a bug in the HP C Compiler
16724   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16725   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16726   # This bug is HP SR number 8606223364.
16727   if test "$cross_compiling" = yes; then
16728   # Depending upon the size, compute the lo and hi bounds.
16729 cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h.  */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h.  */
16735 $ac_includes_default
16736 int
16737 main ()
16738 {
16739 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16740 test_array [0] = 0
16741
16742   ;
16743   return 0;
16744 }
16745 _ACEOF
16746 rm -f conftest.$ac_objext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16748   (eval $ac_compile) 2>conftest.er1
16749   ac_status=$?
16750   grep -v '^ *+' conftest.er1 >conftest.err
16751   rm -f conftest.er1
16752   cat conftest.err >&5
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); } &&
16755          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757   (eval $ac_try) 2>&5
16758   ac_status=$?
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); }; } &&
16761          { ac_try='test -s conftest.$ac_objext'
16762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763   (eval $ac_try) 2>&5
16764   ac_status=$?
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); }; }; then
16767   ac_lo=0 ac_mid=0
16768   while :; do
16769     cat >conftest.$ac_ext <<_ACEOF
16770 /* confdefs.h.  */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h.  */
16775 $ac_includes_default
16776 int
16777 main ()
16778 {
16779 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16780 test_array [0] = 0
16781
16782   ;
16783   return 0;
16784 }
16785 _ACEOF
16786 rm -f conftest.$ac_objext
16787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16788   (eval $ac_compile) 2>conftest.er1
16789   ac_status=$?
16790   grep -v '^ *+' conftest.er1 >conftest.err
16791   rm -f conftest.er1
16792   cat conftest.err >&5
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); } &&
16795          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797   (eval $ac_try) 2>&5
16798   ac_status=$?
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); }; } &&
16801          { ac_try='test -s conftest.$ac_objext'
16802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803   (eval $ac_try) 2>&5
16804   ac_status=$?
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); }; }; then
16807   ac_hi=$ac_mid; break
16808 else
16809   echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16811
16812 ac_lo=`expr $ac_mid + 1`
16813                     if test $ac_lo -le $ac_mid; then
16814                       ac_lo= ac_hi=
16815                       break
16816                     fi
16817                     ac_mid=`expr 2 '*' $ac_mid + 1`
16818 fi
16819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16820   done
16821 else
16822   echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825 cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h.  */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h.  */
16831 $ac_includes_default
16832 int
16833 main ()
16834 {
16835 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16836 test_array [0] = 0
16837
16838   ;
16839   return 0;
16840 }
16841 _ACEOF
16842 rm -f conftest.$ac_objext
16843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16844   (eval $ac_compile) 2>conftest.er1
16845   ac_status=$?
16846   grep -v '^ *+' conftest.er1 >conftest.err
16847   rm -f conftest.er1
16848   cat conftest.err >&5
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); } &&
16851          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853   (eval $ac_try) 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); }; } &&
16857          { ac_try='test -s conftest.$ac_objext'
16858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859   (eval $ac_try) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; }; then
16863   ac_hi=-1 ac_mid=-1
16864   while :; do
16865     cat >conftest.$ac_ext <<_ACEOF
16866 /* confdefs.h.  */
16867 _ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h.  */
16871 $ac_includes_default
16872 int
16873 main ()
16874 {
16875 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16876 test_array [0] = 0
16877
16878   ;
16879   return 0;
16880 }
16881 _ACEOF
16882 rm -f conftest.$ac_objext
16883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16884   (eval $ac_compile) 2>conftest.er1
16885   ac_status=$?
16886   grep -v '^ *+' conftest.er1 >conftest.err
16887   rm -f conftest.er1
16888   cat conftest.err >&5
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); } &&
16891          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893   (eval $ac_try) 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; } &&
16897          { ac_try='test -s conftest.$ac_objext'
16898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899   (eval $ac_try) 2>&5
16900   ac_status=$?
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); }; }; then
16903   ac_lo=$ac_mid; break
16904 else
16905   echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16907
16908 ac_hi=`expr '(' $ac_mid ')' - 1`
16909                        if test $ac_mid -le $ac_hi; then
16910                          ac_lo= ac_hi=
16911                          break
16912                        fi
16913                        ac_mid=`expr 2 '*' $ac_mid`
16914 fi
16915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16916   done
16917 else
16918   echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 ac_lo= ac_hi=
16922 fi
16923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16924 fi
16925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16926 # Binary search between lo and hi bounds.
16927 while test "x$ac_lo" != "x$ac_hi"; do
16928   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16929   cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h.  */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h.  */
16935 $ac_includes_default
16936 int
16937 main ()
16938 {
16939 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16940 test_array [0] = 0
16941
16942   ;
16943   return 0;
16944 }
16945 _ACEOF
16946 rm -f conftest.$ac_objext
16947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16948   (eval $ac_compile) 2>conftest.er1
16949   ac_status=$?
16950   grep -v '^ *+' conftest.er1 >conftest.err
16951   rm -f conftest.er1
16952   cat conftest.err >&5
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); } &&
16955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957   (eval $ac_try) 2>&5
16958   ac_status=$?
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); }; } &&
16961          { ac_try='test -s conftest.$ac_objext'
16962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963   (eval $ac_try) 2>&5
16964   ac_status=$?
16965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); }; }; then
16967   ac_hi=$ac_mid
16968 else
16969   echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16971
16972 ac_lo=`expr '(' $ac_mid ')' + 1`
16973 fi
16974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16975 done
16976 case $ac_lo in
16977 ?*) ac_cv_sizeof_char=$ac_lo;;
16978 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16979 See \`config.log' for more details." >&5
16980 echo "$as_me: error: cannot compute sizeof (char), 77
16981 See \`config.log' for more details." >&2;}
16982    { (exit 1); exit 1; }; } ;;
16983 esac
16984 else
16985   if test "$cross_compiling" = yes; then
16986   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16987 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16988    { (exit 1); exit 1; }; }
16989 else
16990   cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h.  */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h.  */
16996 $ac_includes_default
16997 long longval () { return (long) (sizeof (char)); }
16998 unsigned long ulongval () { return (long) (sizeof (char)); }
16999 #include <stdio.h>
17000 #include <stdlib.h>
17001 int
17002 main ()
17003 {
17004
17005   FILE *f = fopen ("conftest.val", "w");
17006   if (! f)
17007     exit (1);
17008   if (((long) (sizeof (char))) < 0)
17009     {
17010       long i = longval ();
17011       if (i != ((long) (sizeof (char))))
17012         exit (1);
17013       fprintf (f, "%ld\n", i);
17014     }
17015   else
17016     {
17017       unsigned long i = ulongval ();
17018       if (i != ((long) (sizeof (char))))
17019         exit (1);
17020       fprintf (f, "%lu\n", i);
17021     }
17022   exit (ferror (f) || fclose (f) != 0);
17023
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest$ac_exeext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17030   (eval $ac_link) 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035   (eval $ac_try) 2>&5
17036   ac_status=$?
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); }; }; then
17039   ac_cv_sizeof_char=`cat conftest.val`
17040 else
17041   echo "$as_me: program exited with status $ac_status" >&5
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 ( exit $ac_status )
17046 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17047 See \`config.log' for more details." >&5
17048 echo "$as_me: error: cannot compute sizeof (char), 77
17049 See \`config.log' for more details." >&2;}
17050    { (exit 1); exit 1; }; }
17051 fi
17052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17053 fi
17054 fi
17055 rm -f conftest.val
17056 else
17057   ac_cv_sizeof_char=0
17058 fi
17059 fi
17060 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17061 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17062 cat >>confdefs.h <<_ACEOF
17063 #define SIZEOF_CHAR $ac_cv_sizeof_char
17064 _ACEOF
17065
17066
17067 echo "$as_me:$LINENO: checking for short" >&5
17068 echo $ECHO_N "checking for short... $ECHO_C" >&6
17069 if test "${ac_cv_type_short+set}" = set; then
17070   echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072   cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h.  */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h.  */
17078 $ac_includes_default
17079 int
17080 main ()
17081 {
17082 if ((short *) 0)
17083   return 0;
17084 if (sizeof (short))
17085   return 0;
17086   ;
17087   return 0;
17088 }
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17092   (eval $ac_compile) 2>conftest.er1
17093   ac_status=$?
17094   grep -v '^ *+' conftest.er1 >conftest.err
17095   rm -f conftest.er1
17096   cat conftest.err >&5
17097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098   (exit $ac_status); } &&
17099          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101   (eval $ac_try) 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; } &&
17105          { ac_try='test -s conftest.$ac_objext'
17106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107   (eval $ac_try) 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; }; then
17111   ac_cv_type_short=yes
17112 else
17113   echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17115
17116 ac_cv_type_short=no
17117 fi
17118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17119 fi
17120 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17121 echo "${ECHO_T}$ac_cv_type_short" >&6
17122
17123 echo "$as_me:$LINENO: checking size of short" >&5
17124 echo $ECHO_N "checking size of short... $ECHO_C" >&6
17125 if test "${ac_cv_sizeof_short+set}" = set; then
17126   echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17128   if test "$ac_cv_type_short" = yes; then
17129   # The cast to unsigned long works around a bug in the HP C Compiler
17130   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17131   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17132   # This bug is HP SR number 8606223364.
17133   if test "$cross_compiling" = yes; then
17134   # Depending upon the size, compute the lo and hi bounds.
17135 cat >conftest.$ac_ext <<_ACEOF
17136 /* confdefs.h.  */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h.  */
17141 $ac_includes_default
17142 int
17143 main ()
17144 {
17145 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17146 test_array [0] = 0
17147
17148   ;
17149   return 0;
17150 }
17151 _ACEOF
17152 rm -f conftest.$ac_objext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17154   (eval $ac_compile) 2>conftest.er1
17155   ac_status=$?
17156   grep -v '^ *+' conftest.er1 >conftest.err
17157   rm -f conftest.er1
17158   cat conftest.err >&5
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); } &&
17161          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163   (eval $ac_try) 2>&5
17164   ac_status=$?
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); }; } &&
17167          { ac_try='test -s conftest.$ac_objext'
17168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169   (eval $ac_try) 2>&5
17170   ac_status=$?
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); }; }; then
17173   ac_lo=0 ac_mid=0
17174   while :; do
17175     cat >conftest.$ac_ext <<_ACEOF
17176 /* confdefs.h.  */
17177 _ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h.  */
17181 $ac_includes_default
17182 int
17183 main ()
17184 {
17185 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17186 test_array [0] = 0
17187
17188   ;
17189   return 0;
17190 }
17191 _ACEOF
17192 rm -f conftest.$ac_objext
17193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17194   (eval $ac_compile) 2>conftest.er1
17195   ac_status=$?
17196   grep -v '^ *+' conftest.er1 >conftest.err
17197   rm -f conftest.er1
17198   cat conftest.err >&5
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); } &&
17201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203   (eval $ac_try) 2>&5
17204   ac_status=$?
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); }; } &&
17207          { ac_try='test -s conftest.$ac_objext'
17208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209   (eval $ac_try) 2>&5
17210   ac_status=$?
17211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212   (exit $ac_status); }; }; then
17213   ac_hi=$ac_mid; break
17214 else
17215   echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17217
17218 ac_lo=`expr $ac_mid + 1`
17219                     if test $ac_lo -le $ac_mid; then
17220                       ac_lo= ac_hi=
17221                       break
17222                     fi
17223                     ac_mid=`expr 2 '*' $ac_mid + 1`
17224 fi
17225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17226   done
17227 else
17228   echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h.  */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h.  */
17237 $ac_includes_default
17238 int
17239 main ()
17240 {
17241 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17242 test_array [0] = 0
17243
17244   ;
17245   return 0;
17246 }
17247 _ACEOF
17248 rm -f conftest.$ac_objext
17249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17250   (eval $ac_compile) 2>conftest.er1
17251   ac_status=$?
17252   grep -v '^ *+' conftest.er1 >conftest.err
17253   rm -f conftest.er1
17254   cat conftest.err >&5
17255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256   (exit $ac_status); } &&
17257          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259   (eval $ac_try) 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; } &&
17263          { ac_try='test -s conftest.$ac_objext'
17264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265   (eval $ac_try) 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; }; then
17269   ac_hi=-1 ac_mid=-1
17270   while :; do
17271     cat >conftest.$ac_ext <<_ACEOF
17272 /* confdefs.h.  */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h.  */
17277 $ac_includes_default
17278 int
17279 main ()
17280 {
17281 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17282 test_array [0] = 0
17283
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 rm -f conftest.$ac_objext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17290   (eval $ac_compile) 2>conftest.er1
17291   ac_status=$?
17292   grep -v '^ *+' conftest.er1 >conftest.err
17293   rm -f conftest.er1
17294   cat conftest.err >&5
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } &&
17297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299   (eval $ac_try) 2>&5
17300   ac_status=$?
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); }; } &&
17303          { ac_try='test -s conftest.$ac_objext'
17304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305   (eval $ac_try) 2>&5
17306   ac_status=$?
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); }; }; then
17309   ac_lo=$ac_mid; break
17310 else
17311   echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17313
17314 ac_hi=`expr '(' $ac_mid ')' - 1`
17315                        if test $ac_mid -le $ac_hi; then
17316                          ac_lo= ac_hi=
17317                          break
17318                        fi
17319                        ac_mid=`expr 2 '*' $ac_mid`
17320 fi
17321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17322   done
17323 else
17324   echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17326
17327 ac_lo= ac_hi=
17328 fi
17329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17330 fi
17331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17332 # Binary search between lo and hi bounds.
17333 while test "x$ac_lo" != "x$ac_hi"; do
17334   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17335   cat >conftest.$ac_ext <<_ACEOF
17336 /* confdefs.h.  */
17337 _ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h.  */
17341 $ac_includes_default
17342 int
17343 main ()
17344 {
17345 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17346 test_array [0] = 0
17347
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext
17353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354   (eval $ac_compile) 2>conftest.er1
17355   ac_status=$?
17356   grep -v '^ *+' conftest.er1 >conftest.err
17357   rm -f conftest.er1
17358   cat conftest.err >&5
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } &&
17361          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363   (eval $ac_try) 2>&5
17364   ac_status=$?
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); }; } &&
17367          { ac_try='test -s conftest.$ac_objext'
17368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369   (eval $ac_try) 2>&5
17370   ac_status=$?
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); }; }; then
17373   ac_hi=$ac_mid
17374 else
17375   echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378 ac_lo=`expr '(' $ac_mid ')' + 1`
17379 fi
17380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17381 done
17382 case $ac_lo in
17383 ?*) ac_cv_sizeof_short=$ac_lo;;
17384 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17385 See \`config.log' for more details." >&5
17386 echo "$as_me: error: cannot compute sizeof (short), 77
17387 See \`config.log' for more details." >&2;}
17388    { (exit 1); exit 1; }; } ;;
17389 esac
17390 else
17391   if test "$cross_compiling" = yes; then
17392   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17393 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17394    { (exit 1); exit 1; }; }
17395 else
17396   cat >conftest.$ac_ext <<_ACEOF
17397 /* confdefs.h.  */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h.  */
17402 $ac_includes_default
17403 long longval () { return (long) (sizeof (short)); }
17404 unsigned long ulongval () { return (long) (sizeof (short)); }
17405 #include <stdio.h>
17406 #include <stdlib.h>
17407 int
17408 main ()
17409 {
17410
17411   FILE *f = fopen ("conftest.val", "w");
17412   if (! f)
17413     exit (1);
17414   if (((long) (sizeof (short))) < 0)
17415     {
17416       long i = longval ();
17417       if (i != ((long) (sizeof (short))))
17418         exit (1);
17419       fprintf (f, "%ld\n", i);
17420     }
17421   else
17422     {
17423       unsigned long i = ulongval ();
17424       if (i != ((long) (sizeof (short))))
17425         exit (1);
17426       fprintf (f, "%lu\n", i);
17427     }
17428   exit (ferror (f) || fclose (f) != 0);
17429
17430   ;
17431   return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest$ac_exeext
17435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17436   (eval $ac_link) 2>&5
17437   ac_status=$?
17438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441   (eval $ac_try) 2>&5
17442   ac_status=$?
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); }; }; then
17445   ac_cv_sizeof_short=`cat conftest.val`
17446 else
17447   echo "$as_me: program exited with status $ac_status" >&5
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451 ( exit $ac_status )
17452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17453 See \`config.log' for more details." >&5
17454 echo "$as_me: error: cannot compute sizeof (short), 77
17455 See \`config.log' for more details." >&2;}
17456    { (exit 1); exit 1; }; }
17457 fi
17458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17459 fi
17460 fi
17461 rm -f conftest.val
17462 else
17463   ac_cv_sizeof_short=0
17464 fi
17465 fi
17466 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17467 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17468 cat >>confdefs.h <<_ACEOF
17469 #define SIZEOF_SHORT $ac_cv_sizeof_short
17470 _ACEOF
17471
17472
17473 echo "$as_me:$LINENO: checking for void *" >&5
17474 echo $ECHO_N "checking for void *... $ECHO_C" >&6
17475 if test "${ac_cv_type_void_p+set}" = set; then
17476   echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478   cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h.  */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h.  */
17484 $ac_includes_default
17485 int
17486 main ()
17487 {
17488 if ((void * *) 0)
17489   return 0;
17490 if (sizeof (void *))
17491   return 0;
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17498   (eval $ac_compile) 2>conftest.er1
17499   ac_status=$?
17500   grep -v '^ *+' conftest.er1 >conftest.err
17501   rm -f conftest.er1
17502   cat conftest.err >&5
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); } &&
17505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507   (eval $ac_try) 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; } &&
17511          { ac_try='test -s conftest.$ac_objext'
17512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513   (eval $ac_try) 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); }; }; then
17517   ac_cv_type_void_p=yes
17518 else
17519   echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17521
17522 ac_cv_type_void_p=no
17523 fi
17524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17525 fi
17526 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17527 echo "${ECHO_T}$ac_cv_type_void_p" >&6
17528
17529 echo "$as_me:$LINENO: checking size of void *" >&5
17530 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17531 if test "${ac_cv_sizeof_void_p+set}" = set; then
17532   echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534   if test "$ac_cv_type_void_p" = yes; then
17535   # The cast to unsigned long works around a bug in the HP C Compiler
17536   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17537   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17538   # This bug is HP SR number 8606223364.
17539   if test "$cross_compiling" = yes; then
17540   # Depending upon the size, compute the lo and hi bounds.
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h.  */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h.  */
17547 $ac_includes_default
17548 int
17549 main ()
17550 {
17551 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17552 test_array [0] = 0
17553
17554   ;
17555   return 0;
17556 }
17557 _ACEOF
17558 rm -f conftest.$ac_objext
17559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17560   (eval $ac_compile) 2>conftest.er1
17561   ac_status=$?
17562   grep -v '^ *+' conftest.er1 >conftest.err
17563   rm -f conftest.er1
17564   cat conftest.err >&5
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); } &&
17567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569   (eval $ac_try) 2>&5
17570   ac_status=$?
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); }; } &&
17573          { ac_try='test -s conftest.$ac_objext'
17574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575   (eval $ac_try) 2>&5
17576   ac_status=$?
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); }; }; then
17579   ac_lo=0 ac_mid=0
17580   while :; do
17581     cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587 $ac_includes_default
17588 int
17589 main ()
17590 {
17591 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17592 test_array [0] = 0
17593
17594   ;
17595   return 0;
17596 }
17597 _ACEOF
17598 rm -f conftest.$ac_objext
17599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17600   (eval $ac_compile) 2>conftest.er1
17601   ac_status=$?
17602   grep -v '^ *+' conftest.er1 >conftest.err
17603   rm -f conftest.er1
17604   cat conftest.err >&5
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } &&
17607          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609   (eval $ac_try) 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; } &&
17613          { ac_try='test -s conftest.$ac_objext'
17614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615   (eval $ac_try) 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); }; }; then
17619   ac_hi=$ac_mid; break
17620 else
17621   echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17623
17624 ac_lo=`expr $ac_mid + 1`
17625                     if test $ac_lo -le $ac_mid; then
17626                       ac_lo= ac_hi=
17627                       break
17628                     fi
17629                     ac_mid=`expr 2 '*' $ac_mid + 1`
17630 fi
17631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17632   done
17633 else
17634   echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17636
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643 $ac_includes_default
17644 int
17645 main ()
17646 {
17647 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17648 test_array [0] = 0
17649
17650   ;
17651   return 0;
17652 }
17653 _ACEOF
17654 rm -f conftest.$ac_objext
17655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17656   (eval $ac_compile) 2>conftest.er1
17657   ac_status=$?
17658   grep -v '^ *+' conftest.er1 >conftest.err
17659   rm -f conftest.er1
17660   cat conftest.err >&5
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); } &&
17663          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665   (eval $ac_try) 2>&5
17666   ac_status=$?
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); }; } &&
17669          { ac_try='test -s conftest.$ac_objext'
17670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671   (eval $ac_try) 2>&5
17672   ac_status=$?
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); }; }; then
17675   ac_hi=-1 ac_mid=-1
17676   while :; do
17677     cat >conftest.$ac_ext <<_ACEOF
17678 /* confdefs.h.  */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h.  */
17683 $ac_includes_default
17684 int
17685 main ()
17686 {
17687 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17688 test_array [0] = 0
17689
17690   ;
17691   return 0;
17692 }
17693 _ACEOF
17694 rm -f conftest.$ac_objext
17695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17696   (eval $ac_compile) 2>conftest.er1
17697   ac_status=$?
17698   grep -v '^ *+' conftest.er1 >conftest.err
17699   rm -f conftest.er1
17700   cat conftest.err >&5
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); } &&
17703          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705   (eval $ac_try) 2>&5
17706   ac_status=$?
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); }; } &&
17709          { ac_try='test -s conftest.$ac_objext'
17710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711   (eval $ac_try) 2>&5
17712   ac_status=$?
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); }; }; then
17715   ac_lo=$ac_mid; break
17716 else
17717   echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17719
17720 ac_hi=`expr '(' $ac_mid ')' - 1`
17721                        if test $ac_mid -le $ac_hi; then
17722                          ac_lo= ac_hi=
17723                          break
17724                        fi
17725                        ac_mid=`expr 2 '*' $ac_mid`
17726 fi
17727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17728   done
17729 else
17730   echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 ac_lo= ac_hi=
17734 fi
17735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17736 fi
17737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17738 # Binary search between lo and hi bounds.
17739 while test "x$ac_lo" != "x$ac_hi"; do
17740   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17741   cat >conftest.$ac_ext <<_ACEOF
17742 /* confdefs.h.  */
17743 _ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h.  */
17747 $ac_includes_default
17748 int
17749 main ()
17750 {
17751 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17752 test_array [0] = 0
17753
17754   ;
17755   return 0;
17756 }
17757 _ACEOF
17758 rm -f conftest.$ac_objext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17760   (eval $ac_compile) 2>conftest.er1
17761   ac_status=$?
17762   grep -v '^ *+' conftest.er1 >conftest.err
17763   rm -f conftest.er1
17764   cat conftest.err >&5
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); } &&
17767          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769   (eval $ac_try) 2>&5
17770   ac_status=$?
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); }; } &&
17773          { ac_try='test -s conftest.$ac_objext'
17774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775   (eval $ac_try) 2>&5
17776   ac_status=$?
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); }; }; then
17779   ac_hi=$ac_mid
17780 else
17781   echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17783
17784 ac_lo=`expr '(' $ac_mid ')' + 1`
17785 fi
17786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17787 done
17788 case $ac_lo in
17789 ?*) ac_cv_sizeof_void_p=$ac_lo;;
17790 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17791 See \`config.log' for more details." >&5
17792 echo "$as_me: error: cannot compute sizeof (void *), 77
17793 See \`config.log' for more details." >&2;}
17794    { (exit 1); exit 1; }; } ;;
17795 esac
17796 else
17797   if test "$cross_compiling" = yes; then
17798   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17799 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17800    { (exit 1); exit 1; }; }
17801 else
17802   cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h.  */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h.  */
17808 $ac_includes_default
17809 long longval () { return (long) (sizeof (void *)); }
17810 unsigned long ulongval () { return (long) (sizeof (void *)); }
17811 #include <stdio.h>
17812 #include <stdlib.h>
17813 int
17814 main ()
17815 {
17816
17817   FILE *f = fopen ("conftest.val", "w");
17818   if (! f)
17819     exit (1);
17820   if (((long) (sizeof (void *))) < 0)
17821     {
17822       long i = longval ();
17823       if (i != ((long) (sizeof (void *))))
17824         exit (1);
17825       fprintf (f, "%ld\n", i);
17826     }
17827   else
17828     {
17829       unsigned long i = ulongval ();
17830       if (i != ((long) (sizeof (void *))))
17831         exit (1);
17832       fprintf (f, "%lu\n", i);
17833     }
17834   exit (ferror (f) || fclose (f) != 0);
17835
17836   ;
17837   return 0;
17838 }
17839 _ACEOF
17840 rm -f conftest$ac_exeext
17841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17842   (eval $ac_link) 2>&5
17843   ac_status=$?
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847   (eval $ac_try) 2>&5
17848   ac_status=$?
17849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850   (exit $ac_status); }; }; then
17851   ac_cv_sizeof_void_p=`cat conftest.val`
17852 else
17853   echo "$as_me: program exited with status $ac_status" >&5
17854 echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17856
17857 ( exit $ac_status )
17858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17859 See \`config.log' for more details." >&5
17860 echo "$as_me: error: cannot compute sizeof (void *), 77
17861 See \`config.log' for more details." >&2;}
17862    { (exit 1); exit 1; }; }
17863 fi
17864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17865 fi
17866 fi
17867 rm -f conftest.val
17868 else
17869   ac_cv_sizeof_void_p=0
17870 fi
17871 fi
17872 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17873 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17874 cat >>confdefs.h <<_ACEOF
17875 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17876 _ACEOF
17877
17878
17879 echo "$as_me:$LINENO: checking for int" >&5
17880 echo $ECHO_N "checking for int... $ECHO_C" >&6
17881 if test "${ac_cv_type_int+set}" = set; then
17882   echo $ECHO_N "(cached) $ECHO_C" >&6
17883 else
17884   cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h.  */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h.  */
17890 $ac_includes_default
17891 int
17892 main ()
17893 {
17894 if ((int *) 0)
17895   return 0;
17896 if (sizeof (int))
17897   return 0;
17898   ;
17899   return 0;
17900 }
17901 _ACEOF
17902 rm -f conftest.$ac_objext
17903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17904   (eval $ac_compile) 2>conftest.er1
17905   ac_status=$?
17906   grep -v '^ *+' conftest.er1 >conftest.err
17907   rm -f conftest.er1
17908   cat conftest.err >&5
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); } &&
17911          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913   (eval $ac_try) 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); }; } &&
17917          { ac_try='test -s conftest.$ac_objext'
17918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919   (eval $ac_try) 2>&5
17920   ac_status=$?
17921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922   (exit $ac_status); }; }; then
17923   ac_cv_type_int=yes
17924 else
17925   echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17927
17928 ac_cv_type_int=no
17929 fi
17930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17931 fi
17932 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17933 echo "${ECHO_T}$ac_cv_type_int" >&6
17934
17935 echo "$as_me:$LINENO: checking size of int" >&5
17936 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17937 if test "${ac_cv_sizeof_int+set}" = set; then
17938   echo $ECHO_N "(cached) $ECHO_C" >&6
17939 else
17940   if test "$ac_cv_type_int" = yes; then
17941   # The cast to unsigned long works around a bug in the HP C Compiler
17942   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17943   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17944   # This bug is HP SR number 8606223364.
17945   if test "$cross_compiling" = yes; then
17946   # Depending upon the size, compute the lo and hi bounds.
17947 cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h.  */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h.  */
17953 $ac_includes_default
17954 int
17955 main ()
17956 {
17957 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17958 test_array [0] = 0
17959
17960   ;
17961   return 0;
17962 }
17963 _ACEOF
17964 rm -f conftest.$ac_objext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17966   (eval $ac_compile) 2>conftest.er1
17967   ac_status=$?
17968   grep -v '^ *+' conftest.er1 >conftest.err
17969   rm -f conftest.er1
17970   cat conftest.err >&5
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); } &&
17973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975   (eval $ac_try) 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); }; } &&
17979          { ac_try='test -s conftest.$ac_objext'
17980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981   (eval $ac_try) 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; }; then
17985   ac_lo=0 ac_mid=0
17986   while :; do
17987     cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h.  */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h.  */
17993 $ac_includes_default
17994 int
17995 main ()
17996 {
17997 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17998 test_array [0] = 0
17999
18000   ;
18001   return 0;
18002 }
18003 _ACEOF
18004 rm -f conftest.$ac_objext
18005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18006   (eval $ac_compile) 2>conftest.er1
18007   ac_status=$?
18008   grep -v '^ *+' conftest.er1 >conftest.err
18009   rm -f conftest.er1
18010   cat conftest.err >&5
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); } &&
18013          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015   (eval $ac_try) 2>&5
18016   ac_status=$?
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); }; } &&
18019          { ac_try='test -s conftest.$ac_objext'
18020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021   (eval $ac_try) 2>&5
18022   ac_status=$?
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); }; }; then
18025   ac_hi=$ac_mid; break
18026 else
18027   echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18029
18030 ac_lo=`expr $ac_mid + 1`
18031                     if test $ac_lo -le $ac_mid; then
18032                       ac_lo= ac_hi=
18033                       break
18034                     fi
18035                     ac_mid=`expr 2 '*' $ac_mid + 1`
18036 fi
18037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18038   done
18039 else
18040   echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18042
18043 cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h.  */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h.  */
18049 $ac_includes_default
18050 int
18051 main ()
18052 {
18053 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18054 test_array [0] = 0
18055
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18062   (eval $ac_compile) 2>conftest.er1
18063   ac_status=$?
18064   grep -v '^ *+' conftest.er1 >conftest.err
18065   rm -f conftest.er1
18066   cat conftest.err >&5
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); } &&
18069          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071   (eval $ac_try) 2>&5
18072   ac_status=$?
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); }; } &&
18075          { ac_try='test -s conftest.$ac_objext'
18076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077   (eval $ac_try) 2>&5
18078   ac_status=$?
18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080   (exit $ac_status); }; }; then
18081   ac_hi=-1 ac_mid=-1
18082   while :; do
18083     cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089 $ac_includes_default
18090 int
18091 main ()
18092 {
18093 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18094 test_array [0] = 0
18095
18096   ;
18097   return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest.$ac_objext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18102   (eval $ac_compile) 2>conftest.er1
18103   ac_status=$?
18104   grep -v '^ *+' conftest.er1 >conftest.err
18105   rm -f conftest.er1
18106   cat conftest.err >&5
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); } &&
18109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111   (eval $ac_try) 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; } &&
18115          { ac_try='test -s conftest.$ac_objext'
18116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117   (eval $ac_try) 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; }; then
18121   ac_lo=$ac_mid; break
18122 else
18123   echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18125
18126 ac_hi=`expr '(' $ac_mid ')' - 1`
18127                        if test $ac_mid -le $ac_hi; then
18128                          ac_lo= ac_hi=
18129                          break
18130                        fi
18131                        ac_mid=`expr 2 '*' $ac_mid`
18132 fi
18133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18134   done
18135 else
18136   echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18138
18139 ac_lo= ac_hi=
18140 fi
18141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18142 fi
18143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18144 # Binary search between lo and hi bounds.
18145 while test "x$ac_lo" != "x$ac_hi"; do
18146   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18147   cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h.  */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h.  */
18153 $ac_includes_default
18154 int
18155 main ()
18156 {
18157 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18158 test_array [0] = 0
18159
18160   ;
18161   return 0;
18162 }
18163 _ACEOF
18164 rm -f conftest.$ac_objext
18165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18166   (eval $ac_compile) 2>conftest.er1
18167   ac_status=$?
18168   grep -v '^ *+' conftest.er1 >conftest.err
18169   rm -f conftest.er1
18170   cat conftest.err >&5
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); } &&
18173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175   (eval $ac_try) 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); }; } &&
18179          { ac_try='test -s conftest.$ac_objext'
18180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181   (eval $ac_try) 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; }; then
18185   ac_hi=$ac_mid
18186 else
18187   echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190 ac_lo=`expr '(' $ac_mid ')' + 1`
18191 fi
18192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18193 done
18194 case $ac_lo in
18195 ?*) ac_cv_sizeof_int=$ac_lo;;
18196 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18197 See \`config.log' for more details." >&5
18198 echo "$as_me: error: cannot compute sizeof (int), 77
18199 See \`config.log' for more details." >&2;}
18200    { (exit 1); exit 1; }; } ;;
18201 esac
18202 else
18203   if test "$cross_compiling" = yes; then
18204   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18205 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18206    { (exit 1); exit 1; }; }
18207 else
18208   cat >conftest.$ac_ext <<_ACEOF
18209 /* confdefs.h.  */
18210 _ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h.  */
18214 $ac_includes_default
18215 long longval () { return (long) (sizeof (int)); }
18216 unsigned long ulongval () { return (long) (sizeof (int)); }
18217 #include <stdio.h>
18218 #include <stdlib.h>
18219 int
18220 main ()
18221 {
18222
18223   FILE *f = fopen ("conftest.val", "w");
18224   if (! f)
18225     exit (1);
18226   if (((long) (sizeof (int))) < 0)
18227     {
18228       long i = longval ();
18229       if (i != ((long) (sizeof (int))))
18230         exit (1);
18231       fprintf (f, "%ld\n", i);
18232     }
18233   else
18234     {
18235       unsigned long i = ulongval ();
18236       if (i != ((long) (sizeof (int))))
18237         exit (1);
18238       fprintf (f, "%lu\n", i);
18239     }
18240   exit (ferror (f) || fclose (f) != 0);
18241
18242   ;
18243   return 0;
18244 }
18245 _ACEOF
18246 rm -f conftest$ac_exeext
18247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18248   (eval $ac_link) 2>&5
18249   ac_status=$?
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253   (eval $ac_try) 2>&5
18254   ac_status=$?
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); }; }; then
18257   ac_cv_sizeof_int=`cat conftest.val`
18258 else
18259   echo "$as_me: program exited with status $ac_status" >&5
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263 ( exit $ac_status )
18264 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18265 See \`config.log' for more details." >&5
18266 echo "$as_me: error: cannot compute sizeof (int), 77
18267 See \`config.log' for more details." >&2;}
18268    { (exit 1); exit 1; }; }
18269 fi
18270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18271 fi
18272 fi
18273 rm -f conftest.val
18274 else
18275   ac_cv_sizeof_int=0
18276 fi
18277 fi
18278 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18279 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18280 cat >>confdefs.h <<_ACEOF
18281 #define SIZEOF_INT $ac_cv_sizeof_int
18282 _ACEOF
18283
18284
18285 echo "$as_me:$LINENO: checking for long" >&5
18286 echo $ECHO_N "checking for long... $ECHO_C" >&6
18287 if test "${ac_cv_type_long+set}" = set; then
18288   echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290   cat >conftest.$ac_ext <<_ACEOF
18291 /* confdefs.h.  */
18292 _ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h.  */
18296 $ac_includes_default
18297 int
18298 main ()
18299 {
18300 if ((long *) 0)
18301   return 0;
18302 if (sizeof (long))
18303   return 0;
18304   ;
18305   return 0;
18306 }
18307 _ACEOF
18308 rm -f conftest.$ac_objext
18309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18310   (eval $ac_compile) 2>conftest.er1
18311   ac_status=$?
18312   grep -v '^ *+' conftest.er1 >conftest.err
18313   rm -f conftest.er1
18314   cat conftest.err >&5
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); } &&
18317          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319   (eval $ac_try) 2>&5
18320   ac_status=$?
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); }; } &&
18323          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18329   ac_cv_type_long=yes
18330 else
18331   echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18333
18334 ac_cv_type_long=no
18335 fi
18336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18337 fi
18338 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18339 echo "${ECHO_T}$ac_cv_type_long" >&6
18340
18341 echo "$as_me:$LINENO: checking size of long" >&5
18342 echo $ECHO_N "checking size of long... $ECHO_C" >&6
18343 if test "${ac_cv_sizeof_long+set}" = set; then
18344   echo $ECHO_N "(cached) $ECHO_C" >&6
18345 else
18346   if test "$ac_cv_type_long" = yes; then
18347   # The cast to unsigned long works around a bug in the HP C Compiler
18348   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18349   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18350   # This bug is HP SR number 8606223364.
18351   if test "$cross_compiling" = yes; then
18352   # Depending upon the size, compute the lo and hi bounds.
18353 cat >conftest.$ac_ext <<_ACEOF
18354 /* confdefs.h.  */
18355 _ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h.  */
18359 $ac_includes_default
18360 int
18361 main ()
18362 {
18363 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18364 test_array [0] = 0
18365
18366   ;
18367   return 0;
18368 }
18369 _ACEOF
18370 rm -f conftest.$ac_objext
18371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18372   (eval $ac_compile) 2>conftest.er1
18373   ac_status=$?
18374   grep -v '^ *+' conftest.er1 >conftest.err
18375   rm -f conftest.er1
18376   cat conftest.err >&5
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); } &&
18379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381   (eval $ac_try) 2>&5
18382   ac_status=$?
18383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384   (exit $ac_status); }; } &&
18385          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18391   ac_lo=0 ac_mid=0
18392   while :; do
18393     cat >conftest.$ac_ext <<_ACEOF
18394 /* confdefs.h.  */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h.  */
18399 $ac_includes_default
18400 int
18401 main ()
18402 {
18403 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18404 test_array [0] = 0
18405
18406   ;
18407   return 0;
18408 }
18409 _ACEOF
18410 rm -f conftest.$ac_objext
18411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18412   (eval $ac_compile) 2>conftest.er1
18413   ac_status=$?
18414   grep -v '^ *+' conftest.er1 >conftest.err
18415   rm -f conftest.er1
18416   cat conftest.err >&5
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); } &&
18419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421   (eval $ac_try) 2>&5
18422   ac_status=$?
18423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424   (exit $ac_status); }; } &&
18425          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18431   ac_hi=$ac_mid; break
18432 else
18433   echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18435
18436 ac_lo=`expr $ac_mid + 1`
18437                     if test $ac_lo -le $ac_mid; then
18438                       ac_lo= ac_hi=
18439                       break
18440                     fi
18441                     ac_mid=`expr 2 '*' $ac_mid + 1`
18442 fi
18443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18444   done
18445 else
18446   echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18448
18449 cat >conftest.$ac_ext <<_ACEOF
18450 /* confdefs.h.  */
18451 _ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h.  */
18455 $ac_includes_default
18456 int
18457 main ()
18458 {
18459 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18460 test_array [0] = 0
18461
18462   ;
18463   return 0;
18464 }
18465 _ACEOF
18466 rm -f conftest.$ac_objext
18467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18468   (eval $ac_compile) 2>conftest.er1
18469   ac_status=$?
18470   grep -v '^ *+' conftest.er1 >conftest.err
18471   rm -f conftest.er1
18472   cat conftest.err >&5
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); } &&
18475          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477   (eval $ac_try) 2>&5
18478   ac_status=$?
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); }; } &&
18481          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18487   ac_hi=-1 ac_mid=-1
18488   while :; do
18489     cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h.  */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h.  */
18495 $ac_includes_default
18496 int
18497 main ()
18498 {
18499 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18500 test_array [0] = 0
18501
18502   ;
18503   return 0;
18504 }
18505 _ACEOF
18506 rm -f conftest.$ac_objext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18508   (eval $ac_compile) 2>conftest.er1
18509   ac_status=$?
18510   grep -v '^ *+' conftest.er1 >conftest.err
18511   rm -f conftest.er1
18512   cat conftest.err >&5
18513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514   (exit $ac_status); } &&
18515          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517   (eval $ac_try) 2>&5
18518   ac_status=$?
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); }; } &&
18521          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18527   ac_lo=$ac_mid; break
18528 else
18529   echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18531
18532 ac_hi=`expr '(' $ac_mid ')' - 1`
18533                        if test $ac_mid -le $ac_hi; then
18534                          ac_lo= ac_hi=
18535                          break
18536                        fi
18537                        ac_mid=`expr 2 '*' $ac_mid`
18538 fi
18539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18540   done
18541 else
18542   echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18544
18545 ac_lo= ac_hi=
18546 fi
18547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18548 fi
18549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18550 # Binary search between lo and hi bounds.
18551 while test "x$ac_lo" != "x$ac_hi"; do
18552   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18553   cat >conftest.$ac_ext <<_ACEOF
18554 /* confdefs.h.  */
18555 _ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h.  */
18559 $ac_includes_default
18560 int
18561 main ()
18562 {
18563 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18564 test_array [0] = 0
18565
18566   ;
18567   return 0;
18568 }
18569 _ACEOF
18570 rm -f conftest.$ac_objext
18571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18572   (eval $ac_compile) 2>conftest.er1
18573   ac_status=$?
18574   grep -v '^ *+' conftest.er1 >conftest.err
18575   rm -f conftest.er1
18576   cat conftest.err >&5
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); } &&
18579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581   (eval $ac_try) 2>&5
18582   ac_status=$?
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); }; } &&
18585          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18591   ac_hi=$ac_mid
18592 else
18593   echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596 ac_lo=`expr '(' $ac_mid ')' + 1`
18597 fi
18598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18599 done
18600 case $ac_lo in
18601 ?*) ac_cv_sizeof_long=$ac_lo;;
18602 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18603 See \`config.log' for more details." >&5
18604 echo "$as_me: error: cannot compute sizeof (long), 77
18605 See \`config.log' for more details." >&2;}
18606    { (exit 1); exit 1; }; } ;;
18607 esac
18608 else
18609   if test "$cross_compiling" = yes; then
18610   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18611 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18612    { (exit 1); exit 1; }; }
18613 else
18614   cat >conftest.$ac_ext <<_ACEOF
18615 /* confdefs.h.  */
18616 _ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h.  */
18620 $ac_includes_default
18621 long longval () { return (long) (sizeof (long)); }
18622 unsigned long ulongval () { return (long) (sizeof (long)); }
18623 #include <stdio.h>
18624 #include <stdlib.h>
18625 int
18626 main ()
18627 {
18628
18629   FILE *f = fopen ("conftest.val", "w");
18630   if (! f)
18631     exit (1);
18632   if (((long) (sizeof (long))) < 0)
18633     {
18634       long i = longval ();
18635       if (i != ((long) (sizeof (long))))
18636         exit (1);
18637       fprintf (f, "%ld\n", i);
18638     }
18639   else
18640     {
18641       unsigned long i = ulongval ();
18642       if (i != ((long) (sizeof (long))))
18643         exit (1);
18644       fprintf (f, "%lu\n", i);
18645     }
18646   exit (ferror (f) || fclose (f) != 0);
18647
18648   ;
18649   return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest$ac_exeext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18654   (eval $ac_link) 2>&5
18655   ac_status=$?
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659   (eval $ac_try) 2>&5
18660   ac_status=$?
18661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662   (exit $ac_status); }; }; then
18663   ac_cv_sizeof_long=`cat conftest.val`
18664 else
18665   echo "$as_me: program exited with status $ac_status" >&5
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18668
18669 ( exit $ac_status )
18670 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18671 See \`config.log' for more details." >&5
18672 echo "$as_me: error: cannot compute sizeof (long), 77
18673 See \`config.log' for more details." >&2;}
18674    { (exit 1); exit 1; }; }
18675 fi
18676 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18677 fi
18678 fi
18679 rm -f conftest.val
18680 else
18681   ac_cv_sizeof_long=0
18682 fi
18683 fi
18684 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18685 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18686 cat >>confdefs.h <<_ACEOF
18687 #define SIZEOF_LONG $ac_cv_sizeof_long
18688 _ACEOF
18689
18690
18691 echo "$as_me:$LINENO: checking for size_t" >&5
18692 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18693 if test "${ac_cv_type_size_t+set}" = set; then
18694   echo $ECHO_N "(cached) $ECHO_C" >&6
18695 else
18696   cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h.  */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h.  */
18702 $ac_includes_default
18703 int
18704 main ()
18705 {
18706 if ((size_t *) 0)
18707   return 0;
18708 if (sizeof (size_t))
18709   return 0;
18710   ;
18711   return 0;
18712 }
18713 _ACEOF
18714 rm -f conftest.$ac_objext
18715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18716   (eval $ac_compile) 2>conftest.er1
18717   ac_status=$?
18718   grep -v '^ *+' conftest.er1 >conftest.err
18719   rm -f conftest.er1
18720   cat conftest.err >&5
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); } &&
18723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725   (eval $ac_try) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; } &&
18729          { ac_try='test -s conftest.$ac_objext'
18730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731   (eval $ac_try) 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); }; }; then
18735   ac_cv_type_size_t=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 ac_cv_type_size_t=no
18741 fi
18742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18743 fi
18744 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18745 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18746
18747 echo "$as_me:$LINENO: checking size of size_t" >&5
18748 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18749 if test "${ac_cv_sizeof_size_t+set}" = set; then
18750   echo $ECHO_N "(cached) $ECHO_C" >&6
18751 else
18752   if test "$ac_cv_type_size_t" = yes; then
18753   # The cast to unsigned long works around a bug in the HP C Compiler
18754   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18755   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18756   # This bug is HP SR number 8606223364.
18757   if test "$cross_compiling" = yes; then
18758   # Depending upon the size, compute the lo and hi bounds.
18759 cat >conftest.$ac_ext <<_ACEOF
18760 /* confdefs.h.  */
18761 _ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h.  */
18765 $ac_includes_default
18766 int
18767 main ()
18768 {
18769 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18770 test_array [0] = 0
18771
18772   ;
18773   return 0;
18774 }
18775 _ACEOF
18776 rm -f conftest.$ac_objext
18777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18778   (eval $ac_compile) 2>conftest.er1
18779   ac_status=$?
18780   grep -v '^ *+' conftest.er1 >conftest.err
18781   rm -f conftest.er1
18782   cat conftest.err >&5
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); } &&
18785          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787   (eval $ac_try) 2>&5
18788   ac_status=$?
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); }; } &&
18791          { ac_try='test -s conftest.$ac_objext'
18792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793   (eval $ac_try) 2>&5
18794   ac_status=$?
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); }; }; then
18797   ac_lo=0 ac_mid=0
18798   while :; do
18799     cat >conftest.$ac_ext <<_ACEOF
18800 /* confdefs.h.  */
18801 _ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h.  */
18805 $ac_includes_default
18806 int
18807 main ()
18808 {
18809 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18810 test_array [0] = 0
18811
18812   ;
18813   return 0;
18814 }
18815 _ACEOF
18816 rm -f conftest.$ac_objext
18817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18818   (eval $ac_compile) 2>conftest.er1
18819   ac_status=$?
18820   grep -v '^ *+' conftest.er1 >conftest.err
18821   rm -f conftest.er1
18822   cat conftest.err >&5
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); } &&
18825          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827   (eval $ac_try) 2>&5
18828   ac_status=$?
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); }; } &&
18831          { ac_try='test -s conftest.$ac_objext'
18832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833   (eval $ac_try) 2>&5
18834   ac_status=$?
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); }; }; then
18837   ac_hi=$ac_mid; break
18838 else
18839   echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842 ac_lo=`expr $ac_mid + 1`
18843                     if test $ac_lo -le $ac_mid; then
18844                       ac_lo= ac_hi=
18845                       break
18846                     fi
18847                     ac_mid=`expr 2 '*' $ac_mid + 1`
18848 fi
18849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18850   done
18851 else
18852   echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855 cat >conftest.$ac_ext <<_ACEOF
18856 /* confdefs.h.  */
18857 _ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h.  */
18861 $ac_includes_default
18862 int
18863 main ()
18864 {
18865 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18866 test_array [0] = 0
18867
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest.$ac_objext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18874   (eval $ac_compile) 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } &&
18881          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883   (eval $ac_try) 2>&5
18884   ac_status=$?
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); }; } &&
18887          { ac_try='test -s conftest.$ac_objext'
18888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889   (eval $ac_try) 2>&5
18890   ac_status=$?
18891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892   (exit $ac_status); }; }; then
18893   ac_hi=-1 ac_mid=-1
18894   while :; do
18895     cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h.  */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h.  */
18901 $ac_includes_default
18902 int
18903 main ()
18904 {
18905 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18906 test_array [0] = 0
18907
18908   ;
18909   return 0;
18910 }
18911 _ACEOF
18912 rm -f conftest.$ac_objext
18913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18914   (eval $ac_compile) 2>conftest.er1
18915   ac_status=$?
18916   grep -v '^ *+' conftest.er1 >conftest.err
18917   rm -f conftest.er1
18918   cat conftest.err >&5
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); } &&
18921          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923   (eval $ac_try) 2>&5
18924   ac_status=$?
18925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926   (exit $ac_status); }; } &&
18927          { ac_try='test -s conftest.$ac_objext'
18928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929   (eval $ac_try) 2>&5
18930   ac_status=$?
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); }; }; then
18933   ac_lo=$ac_mid; break
18934 else
18935   echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18937
18938 ac_hi=`expr '(' $ac_mid ')' - 1`
18939                        if test $ac_mid -le $ac_hi; then
18940                          ac_lo= ac_hi=
18941                          break
18942                        fi
18943                        ac_mid=`expr 2 '*' $ac_mid`
18944 fi
18945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18946   done
18947 else
18948   echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18950
18951 ac_lo= ac_hi=
18952 fi
18953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18954 fi
18955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18956 # Binary search between lo and hi bounds.
18957 while test "x$ac_lo" != "x$ac_hi"; do
18958   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18959   cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h.  */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h.  */
18965 $ac_includes_default
18966 int
18967 main ()
18968 {
18969 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18970 test_array [0] = 0
18971
18972   ;
18973   return 0;
18974 }
18975 _ACEOF
18976 rm -f conftest.$ac_objext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18978   (eval $ac_compile) 2>conftest.er1
18979   ac_status=$?
18980   grep -v '^ *+' conftest.er1 >conftest.err
18981   rm -f conftest.er1
18982   cat conftest.err >&5
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); } &&
18985          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987   (eval $ac_try) 2>&5
18988   ac_status=$?
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); }; } &&
18991          { ac_try='test -s conftest.$ac_objext'
18992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993   (eval $ac_try) 2>&5
18994   ac_status=$?
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); }; }; then
18997   ac_hi=$ac_mid
18998 else
18999   echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002 ac_lo=`expr '(' $ac_mid ')' + 1`
19003 fi
19004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19005 done
19006 case $ac_lo in
19007 ?*) ac_cv_sizeof_size_t=$ac_lo;;
19008 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19009 See \`config.log' for more details." >&5
19010 echo "$as_me: error: cannot compute sizeof (size_t), 77
19011 See \`config.log' for more details." >&2;}
19012    { (exit 1); exit 1; }; } ;;
19013 esac
19014 else
19015   if test "$cross_compiling" = yes; then
19016   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19017 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19018    { (exit 1); exit 1; }; }
19019 else
19020   cat >conftest.$ac_ext <<_ACEOF
19021 /* confdefs.h.  */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h.  */
19026 $ac_includes_default
19027 long longval () { return (long) (sizeof (size_t)); }
19028 unsigned long ulongval () { return (long) (sizeof (size_t)); }
19029 #include <stdio.h>
19030 #include <stdlib.h>
19031 int
19032 main ()
19033 {
19034
19035   FILE *f = fopen ("conftest.val", "w");
19036   if (! f)
19037     exit (1);
19038   if (((long) (sizeof (size_t))) < 0)
19039     {
19040       long i = longval ();
19041       if (i != ((long) (sizeof (size_t))))
19042         exit (1);
19043       fprintf (f, "%ld\n", i);
19044     }
19045   else
19046     {
19047       unsigned long i = ulongval ();
19048       if (i != ((long) (sizeof (size_t))))
19049         exit (1);
19050       fprintf (f, "%lu\n", i);
19051     }
19052   exit (ferror (f) || fclose (f) != 0);
19053
19054   ;
19055   return 0;
19056 }
19057 _ACEOF
19058 rm -f conftest$ac_exeext
19059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19060   (eval $ac_link) 2>&5
19061   ac_status=$?
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065   (eval $ac_try) 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; }; then
19069   ac_cv_sizeof_size_t=`cat conftest.val`
19070 else
19071   echo "$as_me: program exited with status $ac_status" >&5
19072 echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19074
19075 ( exit $ac_status )
19076 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19077 See \`config.log' for more details." >&5
19078 echo "$as_me: error: cannot compute sizeof (size_t), 77
19079 See \`config.log' for more details." >&2;}
19080    { (exit 1); exit 1; }; }
19081 fi
19082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19083 fi
19084 fi
19085 rm -f conftest.val
19086 else
19087   ac_cv_sizeof_size_t=0
19088 fi
19089 fi
19090 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19091 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19092 cat >>confdefs.h <<_ACEOF
19093 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19094 _ACEOF
19095
19096
19097
19098 case "${host}" in
19099     arm-*-linux* )
19100         echo "$as_me:$LINENO: checking for long long" >&5
19101 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19102 if test "${ac_cv_type_long_long+set}" = set; then
19103   echo $ECHO_N "(cached) $ECHO_C" >&6
19104 else
19105   cat >conftest.$ac_ext <<_ACEOF
19106 /* confdefs.h.  */
19107 _ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h.  */
19111 $ac_includes_default
19112 int
19113 main ()
19114 {
19115 if ((long long *) 0)
19116   return 0;
19117 if (sizeof (long long))
19118   return 0;
19119   ;
19120   return 0;
19121 }
19122 _ACEOF
19123 rm -f conftest.$ac_objext
19124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19125   (eval $ac_compile) 2>conftest.er1
19126   ac_status=$?
19127   grep -v '^ *+' conftest.er1 >conftest.err
19128   rm -f conftest.er1
19129   cat conftest.err >&5
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); } &&
19132          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134   (eval $ac_try) 2>&5
19135   ac_status=$?
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); }; } &&
19138          { ac_try='test -s conftest.$ac_objext'
19139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140   (eval $ac_try) 2>&5
19141   ac_status=$?
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); }; }; then
19144   ac_cv_type_long_long=yes
19145 else
19146   echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19148
19149 ac_cv_type_long_long=no
19150 fi
19151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19152 fi
19153 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19154 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19155
19156 echo "$as_me:$LINENO: checking size of long long" >&5
19157 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19158 if test "${ac_cv_sizeof_long_long+set}" = set; then
19159   echo $ECHO_N "(cached) $ECHO_C" >&6
19160 else
19161   if test "$ac_cv_type_long_long" = yes; then
19162   # The cast to unsigned long works around a bug in the HP C Compiler
19163   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19164   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19165   # This bug is HP SR number 8606223364.
19166   if test "$cross_compiling" = yes; then
19167   # Depending upon the size, compute the lo and hi bounds.
19168 cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h.  */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h.  */
19174 $ac_includes_default
19175 int
19176 main ()
19177 {
19178 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19179 test_array [0] = 0
19180
19181   ;
19182   return 0;
19183 }
19184 _ACEOF
19185 rm -f conftest.$ac_objext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187   (eval $ac_compile) 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } &&
19194          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196   (eval $ac_try) 2>&5
19197   ac_status=$?
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); }; } &&
19200          { ac_try='test -s conftest.$ac_objext'
19201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202   (eval $ac_try) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; }; then
19206   ac_lo=0 ac_mid=0
19207   while :; do
19208     cat >conftest.$ac_ext <<_ACEOF
19209 /* confdefs.h.  */
19210 _ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h.  */
19214 $ac_includes_default
19215 int
19216 main ()
19217 {
19218 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19219 test_array [0] = 0
19220
19221   ;
19222   return 0;
19223 }
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19227   (eval $ac_compile) 2>conftest.er1
19228   ac_status=$?
19229   grep -v '^ *+' conftest.er1 >conftest.err
19230   rm -f conftest.er1
19231   cat conftest.err >&5
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } &&
19234          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236   (eval $ac_try) 2>&5
19237   ac_status=$?
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); }; } &&
19240          { ac_try='test -s conftest.$ac_objext'
19241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242   (eval $ac_try) 2>&5
19243   ac_status=$?
19244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); }; }; then
19246   ac_hi=$ac_mid; break
19247 else
19248   echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 ac_lo=`expr $ac_mid + 1`
19252                     if test $ac_lo -le $ac_mid; then
19253                       ac_lo= ac_hi=
19254                       break
19255                     fi
19256                     ac_mid=`expr 2 '*' $ac_mid + 1`
19257 fi
19258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19259   done
19260 else
19261   echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 cat >conftest.$ac_ext <<_ACEOF
19265 /* confdefs.h.  */
19266 _ACEOF
19267 cat confdefs.h >>conftest.$ac_ext
19268 cat >>conftest.$ac_ext <<_ACEOF
19269 /* end confdefs.h.  */
19270 $ac_includes_default
19271 int
19272 main ()
19273 {
19274 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19275 test_array [0] = 0
19276
19277   ;
19278   return 0;
19279 }
19280 _ACEOF
19281 rm -f conftest.$ac_objext
19282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19283   (eval $ac_compile) 2>conftest.er1
19284   ac_status=$?
19285   grep -v '^ *+' conftest.er1 >conftest.err
19286   rm -f conftest.er1
19287   cat conftest.err >&5
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } &&
19290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292   (eval $ac_try) 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); }; } &&
19296          { ac_try='test -s conftest.$ac_objext'
19297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298   (eval $ac_try) 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; }; then
19302   ac_hi=-1 ac_mid=-1
19303   while :; do
19304     cat >conftest.$ac_ext <<_ACEOF
19305 /* confdefs.h.  */
19306 _ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h.  */
19310 $ac_includes_default
19311 int
19312 main ()
19313 {
19314 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19315 test_array [0] = 0
19316
19317   ;
19318   return 0;
19319 }
19320 _ACEOF
19321 rm -f conftest.$ac_objext
19322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19323   (eval $ac_compile) 2>conftest.er1
19324   ac_status=$?
19325   grep -v '^ *+' conftest.er1 >conftest.err
19326   rm -f conftest.er1
19327   cat conftest.err >&5
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); } &&
19330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332   (eval $ac_try) 2>&5
19333   ac_status=$?
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); }; } &&
19336          { ac_try='test -s conftest.$ac_objext'
19337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338   (eval $ac_try) 2>&5
19339   ac_status=$?
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); }; }; then
19342   ac_lo=$ac_mid; break
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347 ac_hi=`expr '(' $ac_mid ')' - 1`
19348                        if test $ac_mid -le $ac_hi; then
19349                          ac_lo= ac_hi=
19350                          break
19351                        fi
19352                        ac_mid=`expr 2 '*' $ac_mid`
19353 fi
19354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19355   done
19356 else
19357   echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19359
19360 ac_lo= ac_hi=
19361 fi
19362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19363 fi
19364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19365 # Binary search between lo and hi bounds.
19366 while test "x$ac_lo" != "x$ac_hi"; do
19367   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19368   cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h.  */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h.  */
19374 $ac_includes_default
19375 int
19376 main ()
19377 {
19378 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19379 test_array [0] = 0
19380
19381   ;
19382   return 0;
19383 }
19384 _ACEOF
19385 rm -f conftest.$ac_objext
19386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19387   (eval $ac_compile) 2>conftest.er1
19388   ac_status=$?
19389   grep -v '^ *+' conftest.er1 >conftest.err
19390   rm -f conftest.er1
19391   cat conftest.err >&5
19392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); } &&
19394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396   (eval $ac_try) 2>&5
19397   ac_status=$?
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); }; } &&
19400          { ac_try='test -s conftest.$ac_objext'
19401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402   (eval $ac_try) 2>&5
19403   ac_status=$?
19404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405   (exit $ac_status); }; }; then
19406   ac_hi=$ac_mid
19407 else
19408   echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411 ac_lo=`expr '(' $ac_mid ')' + 1`
19412 fi
19413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19414 done
19415 case $ac_lo in
19416 ?*) ac_cv_sizeof_long_long=$ac_lo;;
19417 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19418 See \`config.log' for more details." >&5
19419 echo "$as_me: error: cannot compute sizeof (long long), 77
19420 See \`config.log' for more details." >&2;}
19421    { (exit 1); exit 1; }; } ;;
19422 esac
19423 else
19424   if test "$cross_compiling" = yes; then
19425   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19426 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19427    { (exit 1); exit 1; }; }
19428 else
19429   cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h.  */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h.  */
19435 $ac_includes_default
19436 long longval () { return (long) (sizeof (long long)); }
19437 unsigned long ulongval () { return (long) (sizeof (long long)); }
19438 #include <stdio.h>
19439 #include <stdlib.h>
19440 int
19441 main ()
19442 {
19443
19444   FILE *f = fopen ("conftest.val", "w");
19445   if (! f)
19446     exit (1);
19447   if (((long) (sizeof (long long))) < 0)
19448     {
19449       long i = longval ();
19450       if (i != ((long) (sizeof (long long))))
19451         exit (1);
19452       fprintf (f, "%ld\n", i);
19453     }
19454   else
19455     {
19456       unsigned long i = ulongval ();
19457       if (i != ((long) (sizeof (long long))))
19458         exit (1);
19459       fprintf (f, "%lu\n", i);
19460     }
19461   exit (ferror (f) || fclose (f) != 0);
19462
19463   ;
19464   return 0;
19465 }
19466 _ACEOF
19467 rm -f conftest$ac_exeext
19468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19469   (eval $ac_link) 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474   (eval $ac_try) 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }; }; then
19478   ac_cv_sizeof_long_long=`cat conftest.val`
19479 else
19480   echo "$as_me: program exited with status $ac_status" >&5
19481 echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19483
19484 ( exit $ac_status )
19485 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19486 See \`config.log' for more details." >&5
19487 echo "$as_me: error: cannot compute sizeof (long long), 77
19488 See \`config.log' for more details." >&2;}
19489    { (exit 1); exit 1; }; }
19490 fi
19491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19492 fi
19493 fi
19494 rm -f conftest.val
19495 else
19496   ac_cv_sizeof_long_long=0
19497 fi
19498 fi
19499 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19500 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19501 cat >>confdefs.h <<_ACEOF
19502 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19503 _ACEOF
19504
19505
19506     ;;
19507     *-hp-hpux* )
19508         echo "$as_me:$LINENO: checking for long long" >&5
19509 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19510 if test "${ac_cv_type_long_long+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519 $ac_includes_default
19520 int
19521 main ()
19522 {
19523 if ((long long *) 0)
19524   return 0;
19525 if (sizeof (long long))
19526   return 0;
19527   ;
19528   return 0;
19529 }
19530 _ACEOF
19531 rm -f conftest.$ac_objext
19532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19533   (eval $ac_compile) 2>conftest.er1
19534   ac_status=$?
19535   grep -v '^ *+' conftest.er1 >conftest.err
19536   rm -f conftest.er1
19537   cat conftest.err >&5
19538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); } &&
19540          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542   (eval $ac_try) 2>&5
19543   ac_status=$?
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); }; } &&
19546          { ac_try='test -s conftest.$ac_objext'
19547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548   (eval $ac_try) 2>&5
19549   ac_status=$?
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); }; }; then
19552   ac_cv_type_long_long=yes
19553 else
19554   echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557 ac_cv_type_long_long=no
19558 fi
19559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19560 fi
19561 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19562 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19563
19564 echo "$as_me:$LINENO: checking size of long long" >&5
19565 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19566 if test "${ac_cv_sizeof_long_long+set}" = set; then
19567   echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569   if test "$ac_cv_type_long_long" = yes; then
19570   # The cast to unsigned long works around a bug in the HP C Compiler
19571   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19572   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19573   # This bug is HP SR number 8606223364.
19574   if test "$cross_compiling" = yes; then
19575   # Depending upon the size, compute the lo and hi bounds.
19576 cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h.  */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h.  */
19582 $ac_includes_default
19583 int
19584 main ()
19585 {
19586 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19587 test_array [0] = 0
19588
19589   ;
19590   return 0;
19591 }
19592 _ACEOF
19593 rm -f conftest.$ac_objext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19595   (eval $ac_compile) 2>conftest.er1
19596   ac_status=$?
19597   grep -v '^ *+' conftest.er1 >conftest.err
19598   rm -f conftest.er1
19599   cat conftest.err >&5
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } &&
19602          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604   (eval $ac_try) 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; } &&
19608          { ac_try='test -s conftest.$ac_objext'
19609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610   (eval $ac_try) 2>&5
19611   ac_status=$?
19612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613   (exit $ac_status); }; }; then
19614   ac_lo=0 ac_mid=0
19615   while :; do
19616     cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h.  */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h.  */
19622 $ac_includes_default
19623 int
19624 main ()
19625 {
19626 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19627 test_array [0] = 0
19628
19629   ;
19630   return 0;
19631 }
19632 _ACEOF
19633 rm -f conftest.$ac_objext
19634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19635   (eval $ac_compile) 2>conftest.er1
19636   ac_status=$?
19637   grep -v '^ *+' conftest.er1 >conftest.err
19638   rm -f conftest.er1
19639   cat conftest.err >&5
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); } &&
19642          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644   (eval $ac_try) 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }; } &&
19648          { ac_try='test -s conftest.$ac_objext'
19649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650   (eval $ac_try) 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; }; then
19654   ac_hi=$ac_mid; break
19655 else
19656   echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19658
19659 ac_lo=`expr $ac_mid + 1`
19660                     if test $ac_lo -le $ac_mid; then
19661                       ac_lo= ac_hi=
19662                       break
19663                     fi
19664                     ac_mid=`expr 2 '*' $ac_mid + 1`
19665 fi
19666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19667   done
19668 else
19669   echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19671
19672 cat >conftest.$ac_ext <<_ACEOF
19673 /* confdefs.h.  */
19674 _ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h.  */
19678 $ac_includes_default
19679 int
19680 main ()
19681 {
19682 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19683 test_array [0] = 0
19684
19685   ;
19686   return 0;
19687 }
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19691   (eval $ac_compile) 2>conftest.er1
19692   ac_status=$?
19693   grep -v '^ *+' conftest.er1 >conftest.err
19694   rm -f conftest.er1
19695   cat conftest.err >&5
19696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); } &&
19698          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700   (eval $ac_try) 2>&5
19701   ac_status=$?
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); }; } &&
19704          { ac_try='test -s conftest.$ac_objext'
19705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706   (eval $ac_try) 2>&5
19707   ac_status=$?
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); }; }; then
19710   ac_hi=-1 ac_mid=-1
19711   while :; do
19712     cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h.  */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h.  */
19718 $ac_includes_default
19719 int
19720 main ()
19721 {
19722 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19723 test_array [0] = 0
19724
19725   ;
19726   return 0;
19727 }
19728 _ACEOF
19729 rm -f conftest.$ac_objext
19730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19731   (eval $ac_compile) 2>conftest.er1
19732   ac_status=$?
19733   grep -v '^ *+' conftest.er1 >conftest.err
19734   rm -f conftest.er1
19735   cat conftest.err >&5
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); } &&
19738          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740   (eval $ac_try) 2>&5
19741   ac_status=$?
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); }; } &&
19744          { ac_try='test -s conftest.$ac_objext'
19745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746   (eval $ac_try) 2>&5
19747   ac_status=$?
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); }; }; then
19750   ac_lo=$ac_mid; break
19751 else
19752   echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 ac_hi=`expr '(' $ac_mid ')' - 1`
19756                        if test $ac_mid -le $ac_hi; then
19757                          ac_lo= ac_hi=
19758                          break
19759                        fi
19760                        ac_mid=`expr 2 '*' $ac_mid`
19761 fi
19762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19763   done
19764 else
19765   echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19767
19768 ac_lo= ac_hi=
19769 fi
19770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19771 fi
19772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19773 # Binary search between lo and hi bounds.
19774 while test "x$ac_lo" != "x$ac_hi"; do
19775   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19776   cat >conftest.$ac_ext <<_ACEOF
19777 /* confdefs.h.  */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h.  */
19782 $ac_includes_default
19783 int
19784 main ()
19785 {
19786 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19787 test_array [0] = 0
19788
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext
19794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19795   (eval $ac_compile) 2>conftest.er1
19796   ac_status=$?
19797   grep -v '^ *+' conftest.er1 >conftest.err
19798   rm -f conftest.er1
19799   cat conftest.err >&5
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } &&
19802          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804   (eval $ac_try) 2>&5
19805   ac_status=$?
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); }; } &&
19808          { ac_try='test -s conftest.$ac_objext'
19809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810   (eval $ac_try) 2>&5
19811   ac_status=$?
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); }; }; then
19814   ac_hi=$ac_mid
19815 else
19816   echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19818
19819 ac_lo=`expr '(' $ac_mid ')' + 1`
19820 fi
19821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19822 done
19823 case $ac_lo in
19824 ?*) ac_cv_sizeof_long_long=$ac_lo;;
19825 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19826 See \`config.log' for more details." >&5
19827 echo "$as_me: error: cannot compute sizeof (long long), 77
19828 See \`config.log' for more details." >&2;}
19829    { (exit 1); exit 1; }; } ;;
19830 esac
19831 else
19832   if test "$cross_compiling" = yes; then
19833   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19834 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19835    { (exit 1); exit 1; }; }
19836 else
19837   cat >conftest.$ac_ext <<_ACEOF
19838 /* confdefs.h.  */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h.  */
19843 $ac_includes_default
19844 long longval () { return (long) (sizeof (long long)); }
19845 unsigned long ulongval () { return (long) (sizeof (long long)); }
19846 #include <stdio.h>
19847 #include <stdlib.h>
19848 int
19849 main ()
19850 {
19851
19852   FILE *f = fopen ("conftest.val", "w");
19853   if (! f)
19854     exit (1);
19855   if (((long) (sizeof (long long))) < 0)
19856     {
19857       long i = longval ();
19858       if (i != ((long) (sizeof (long long))))
19859         exit (1);
19860       fprintf (f, "%ld\n", i);
19861     }
19862   else
19863     {
19864       unsigned long i = ulongval ();
19865       if (i != ((long) (sizeof (long long))))
19866         exit (1);
19867       fprintf (f, "%lu\n", i);
19868     }
19869   exit (ferror (f) || fclose (f) != 0);
19870
19871   ;
19872   return 0;
19873 }
19874 _ACEOF
19875 rm -f conftest$ac_exeext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19877   (eval $ac_link) 2>&5
19878   ac_status=$?
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882   (eval $ac_try) 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); }; }; then
19886   ac_cv_sizeof_long_long=`cat conftest.val`
19887 else
19888   echo "$as_me: program exited with status $ac_status" >&5
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892 ( exit $ac_status )
19893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19894 See \`config.log' for more details." >&5
19895 echo "$as_me: error: cannot compute sizeof (long long), 77
19896 See \`config.log' for more details." >&2;}
19897    { (exit 1); exit 1; }; }
19898 fi
19899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19900 fi
19901 fi
19902 rm -f conftest.val
19903 else
19904   ac_cv_sizeof_long_long=0
19905 fi
19906 fi
19907 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19908 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19909 cat >>confdefs.h <<_ACEOF
19910 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19911 _ACEOF
19912
19913
19914         if test "$ac_cv_sizeof_long_long" != "0"; then
19915                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19916         fi
19917     ;;
19918     * )
19919         echo "$as_me:$LINENO: checking for long long" >&5
19920 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19921 if test "${ac_cv_type_long_long+set}" = set; then
19922   echo $ECHO_N "(cached) $ECHO_C" >&6
19923 else
19924   cat >conftest.$ac_ext <<_ACEOF
19925 /* confdefs.h.  */
19926 _ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h.  */
19930 $ac_includes_default
19931 int
19932 main ()
19933 {
19934 if ((long long *) 0)
19935   return 0;
19936 if (sizeof (long long))
19937   return 0;
19938   ;
19939   return 0;
19940 }
19941 _ACEOF
19942 rm -f conftest.$ac_objext
19943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19944   (eval $ac_compile) 2>conftest.er1
19945   ac_status=$?
19946   grep -v '^ *+' conftest.er1 >conftest.err
19947   rm -f conftest.er1
19948   cat conftest.err >&5
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); } &&
19951          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953   (eval $ac_try) 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }; } &&
19957          { ac_try='test -s conftest.$ac_objext'
19958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959   (eval $ac_try) 2>&5
19960   ac_status=$?
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); }; }; then
19963   ac_cv_type_long_long=yes
19964 else
19965   echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19967
19968 ac_cv_type_long_long=no
19969 fi
19970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19971 fi
19972 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19973 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19974
19975 echo "$as_me:$LINENO: checking size of long long" >&5
19976 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19977 if test "${ac_cv_sizeof_long_long+set}" = set; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980   if test "$ac_cv_type_long_long" = yes; then
19981   # The cast to unsigned long works around a bug in the HP C Compiler
19982   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19983   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19984   # This bug is HP SR number 8606223364.
19985   if test "$cross_compiling" = yes; then
19986   # Depending upon the size, compute the lo and hi bounds.
19987 cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h.  */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h.  */
19993 $ac_includes_default
19994 int
19995 main ()
19996 {
19997 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19998 test_array [0] = 0
19999
20000   ;
20001   return 0;
20002 }
20003 _ACEOF
20004 rm -f conftest.$ac_objext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006   (eval $ac_compile) 2>conftest.er1
20007   ac_status=$?
20008   grep -v '^ *+' conftest.er1 >conftest.err
20009   rm -f conftest.er1
20010   cat conftest.err >&5
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); } &&
20013          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015   (eval $ac_try) 2>&5
20016   ac_status=$?
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); }; } &&
20019          { ac_try='test -s conftest.$ac_objext'
20020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021   (eval $ac_try) 2>&5
20022   ac_status=$?
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); }; }; then
20025   ac_lo=0 ac_mid=0
20026   while :; do
20027     cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033 $ac_includes_default
20034 int
20035 main ()
20036 {
20037 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20038 test_array [0] = 0
20039
20040   ;
20041   return 0;
20042 }
20043 _ACEOF
20044 rm -f conftest.$ac_objext
20045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046   (eval $ac_compile) 2>conftest.er1
20047   ac_status=$?
20048   grep -v '^ *+' conftest.er1 >conftest.err
20049   rm -f conftest.er1
20050   cat conftest.err >&5
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); } &&
20053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055   (eval $ac_try) 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); }; } &&
20059          { ac_try='test -s conftest.$ac_objext'
20060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061   (eval $ac_try) 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); }; }; then
20065   ac_hi=$ac_mid; break
20066 else
20067   echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20069
20070 ac_lo=`expr $ac_mid + 1`
20071                     if test $ac_lo -le $ac_mid; then
20072                       ac_lo= ac_hi=
20073                       break
20074                     fi
20075                     ac_mid=`expr 2 '*' $ac_mid + 1`
20076 fi
20077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078   done
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083 cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089 $ac_includes_default
20090 int
20091 main ()
20092 {
20093 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20094 test_array [0] = 0
20095
20096   ;
20097   return 0;
20098 }
20099 _ACEOF
20100 rm -f conftest.$ac_objext
20101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102   (eval $ac_compile) 2>conftest.er1
20103   ac_status=$?
20104   grep -v '^ *+' conftest.er1 >conftest.err
20105   rm -f conftest.er1
20106   cat conftest.err >&5
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); } &&
20109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111   (eval $ac_try) 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); }; } &&
20115          { ac_try='test -s conftest.$ac_objext'
20116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117   (eval $ac_try) 2>&5
20118   ac_status=$?
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); }; }; then
20121   ac_hi=-1 ac_mid=-1
20122   while :; do
20123     cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h.  */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h.  */
20129 $ac_includes_default
20130 int
20131 main ()
20132 {
20133 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20134 test_array [0] = 0
20135
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142   (eval $ac_compile) 2>conftest.er1
20143   ac_status=$?
20144   grep -v '^ *+' conftest.er1 >conftest.err
20145   rm -f conftest.er1
20146   cat conftest.err >&5
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); } &&
20149          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151   (eval $ac_try) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; } &&
20155          { ac_try='test -s conftest.$ac_objext'
20156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157   (eval $ac_try) 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; }; then
20161   ac_lo=$ac_mid; break
20162 else
20163   echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 ac_hi=`expr '(' $ac_mid ')' - 1`
20167                        if test $ac_mid -le $ac_hi; then
20168                          ac_lo= ac_hi=
20169                          break
20170                        fi
20171                        ac_mid=`expr 2 '*' $ac_mid`
20172 fi
20173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20174   done
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179 ac_lo= ac_hi=
20180 fi
20181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20182 fi
20183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20184 # Binary search between lo and hi bounds.
20185 while test "x$ac_lo" != "x$ac_hi"; do
20186   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20187   cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h.  */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h.  */
20193 $ac_includes_default
20194 int
20195 main ()
20196 {
20197 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20198 test_array [0] = 0
20199
20200   ;
20201   return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest.$ac_objext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206   (eval $ac_compile) 2>conftest.er1
20207   ac_status=$?
20208   grep -v '^ *+' conftest.er1 >conftest.err
20209   rm -f conftest.er1
20210   cat conftest.err >&5
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); } &&
20213          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215   (eval $ac_try) 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); }; } &&
20219          { ac_try='test -s conftest.$ac_objext'
20220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221   (eval $ac_try) 2>&5
20222   ac_status=$?
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); }; }; then
20225   ac_hi=$ac_mid
20226 else
20227   echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20229
20230 ac_lo=`expr '(' $ac_mid ')' + 1`
20231 fi
20232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20233 done
20234 case $ac_lo in
20235 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20236 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20237 See \`config.log' for more details." >&5
20238 echo "$as_me: error: cannot compute sizeof (long long), 77
20239 See \`config.log' for more details." >&2;}
20240    { (exit 1); exit 1; }; } ;;
20241 esac
20242 else
20243   if test "$cross_compiling" = yes; then
20244   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20245 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20246    { (exit 1); exit 1; }; }
20247 else
20248   cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h.  */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h.  */
20254 $ac_includes_default
20255 long longval () { return (long) (sizeof (long long)); }
20256 unsigned long ulongval () { return (long) (sizeof (long long)); }
20257 #include <stdio.h>
20258 #include <stdlib.h>
20259 int
20260 main ()
20261 {
20262
20263   FILE *f = fopen ("conftest.val", "w");
20264   if (! f)
20265     exit (1);
20266   if (((long) (sizeof (long long))) < 0)
20267     {
20268       long i = longval ();
20269       if (i != ((long) (sizeof (long long))))
20270         exit (1);
20271       fprintf (f, "%ld\n", i);
20272     }
20273   else
20274     {
20275       unsigned long i = ulongval ();
20276       if (i != ((long) (sizeof (long long))))
20277         exit (1);
20278       fprintf (f, "%lu\n", i);
20279     }
20280   exit (ferror (f) || fclose (f) != 0);
20281
20282   ;
20283   return 0;
20284 }
20285 _ACEOF
20286 rm -f conftest$ac_exeext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20288   (eval $ac_link) 2>&5
20289   ac_status=$?
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293   (eval $ac_try) 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; }; then
20297   ac_cv_sizeof_long_long=`cat conftest.val`
20298 else
20299   echo "$as_me: program exited with status $ac_status" >&5
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20302
20303 ( exit $ac_status )
20304 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20305 See \`config.log' for more details." >&5
20306 echo "$as_me: error: cannot compute sizeof (long long), 77
20307 See \`config.log' for more details." >&2;}
20308    { (exit 1); exit 1; }; }
20309 fi
20310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20311 fi
20312 fi
20313 rm -f conftest.val
20314 else
20315   ac_cv_sizeof_long_long=0
20316 fi
20317 fi
20318 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20319 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20320 cat >>confdefs.h <<_ACEOF
20321 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20322 _ACEOF
20323
20324
20325 esac
20326
20327 echo "$as_me:$LINENO: checking for wchar_t" >&5
20328 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20329 if test "${ac_cv_type_wchar_t+set}" = set; then
20330   echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332   cat >conftest.$ac_ext <<_ACEOF
20333 /* confdefs.h.  */
20334 _ACEOF
20335 cat confdefs.h >>conftest.$ac_ext
20336 cat >>conftest.$ac_ext <<_ACEOF
20337 /* end confdefs.h.  */
20338
20339         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20340         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20341         #  error "fake wchar_t"
20342         #endif
20343         #ifdef HAVE_WCHAR_H
20344         #  ifdef __CYGWIN__
20345         #    include <stddef.h>
20346         #  endif
20347         #  include <wchar.h>
20348         #endif
20349         #ifdef HAVE_STDLIB_H
20350         #  include <stdlib.h>
20351         #endif
20352         #include <stdio.h>
20353
20354
20355
20356 int
20357 main ()
20358 {
20359 if ((wchar_t *) 0)
20360   return 0;
20361 if (sizeof (wchar_t))
20362   return 0;
20363   ;
20364   return 0;
20365 }
20366 _ACEOF
20367 rm -f conftest.$ac_objext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20369   (eval $ac_compile) 2>conftest.er1
20370   ac_status=$?
20371   grep -v '^ *+' conftest.er1 >conftest.err
20372   rm -f conftest.er1
20373   cat conftest.err >&5
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); } &&
20376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378   (eval $ac_try) 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; } &&
20382          { ac_try='test -s conftest.$ac_objext'
20383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384   (eval $ac_try) 2>&5
20385   ac_status=$?
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); }; }; then
20388   ac_cv_type_wchar_t=yes
20389 else
20390   echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393 ac_cv_type_wchar_t=no
20394 fi
20395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20396 fi
20397 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20398 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20399
20400 echo "$as_me:$LINENO: checking size of wchar_t" >&5
20401 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
20402 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20403   echo $ECHO_N "(cached) $ECHO_C" >&6
20404 else
20405   if test "$ac_cv_type_wchar_t" = yes; then
20406   # The cast to unsigned long works around a bug in the HP C Compiler
20407   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20408   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20409   # This bug is HP SR number 8606223364.
20410   if test "$cross_compiling" = yes; then
20411   # Depending upon the size, compute the lo and hi bounds.
20412 cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h.  */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h.  */
20418
20419         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20420         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20421         #  error "fake wchar_t"
20422         #endif
20423         #ifdef HAVE_WCHAR_H
20424         #  ifdef __CYGWIN__
20425         #    include <stddef.h>
20426         #  endif
20427         #  include <wchar.h>
20428         #endif
20429         #ifdef HAVE_STDLIB_H
20430         #  include <stdlib.h>
20431         #endif
20432         #include <stdio.h>
20433
20434
20435
20436 int
20437 main ()
20438 {
20439 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20440 test_array [0] = 0
20441
20442   ;
20443   return 0;
20444 }
20445 _ACEOF
20446 rm -f conftest.$ac_objext
20447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448   (eval $ac_compile) 2>conftest.er1
20449   ac_status=$?
20450   grep -v '^ *+' conftest.er1 >conftest.err
20451   rm -f conftest.er1
20452   cat conftest.err >&5
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); } &&
20455          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457   (eval $ac_try) 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; } &&
20461          { ac_try='test -s conftest.$ac_objext'
20462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463   (eval $ac_try) 2>&5
20464   ac_status=$?
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); }; }; then
20467   ac_lo=0 ac_mid=0
20468   while :; do
20469     cat >conftest.$ac_ext <<_ACEOF
20470 /* confdefs.h.  */
20471 _ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h.  */
20475
20476         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20477         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20478         #  error "fake wchar_t"
20479         #endif
20480         #ifdef HAVE_WCHAR_H
20481         #  ifdef __CYGWIN__
20482         #    include <stddef.h>
20483         #  endif
20484         #  include <wchar.h>
20485         #endif
20486         #ifdef HAVE_STDLIB_H
20487         #  include <stdlib.h>
20488         #endif
20489         #include <stdio.h>
20490
20491
20492
20493 int
20494 main ()
20495 {
20496 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20497 test_array [0] = 0
20498
20499   ;
20500   return 0;
20501 }
20502 _ACEOF
20503 rm -f conftest.$ac_objext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20505   (eval $ac_compile) 2>conftest.er1
20506   ac_status=$?
20507   grep -v '^ *+' conftest.er1 >conftest.err
20508   rm -f conftest.er1
20509   cat conftest.err >&5
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); } &&
20512          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514   (eval $ac_try) 2>&5
20515   ac_status=$?
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); }; } &&
20518          { ac_try='test -s conftest.$ac_objext'
20519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520   (eval $ac_try) 2>&5
20521   ac_status=$?
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); }; }; then
20524   ac_hi=$ac_mid; break
20525 else
20526   echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529 ac_lo=`expr $ac_mid + 1`
20530                     if test $ac_lo -le $ac_mid; then
20531                       ac_lo= ac_hi=
20532                       break
20533                     fi
20534                     ac_mid=`expr 2 '*' $ac_mid + 1`
20535 fi
20536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20537   done
20538 else
20539   echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20541
20542 cat >conftest.$ac_ext <<_ACEOF
20543 /* confdefs.h.  */
20544 _ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h.  */
20548
20549         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20550         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20551         #  error "fake wchar_t"
20552         #endif
20553         #ifdef HAVE_WCHAR_H
20554         #  ifdef __CYGWIN__
20555         #    include <stddef.h>
20556         #  endif
20557         #  include <wchar.h>
20558         #endif
20559         #ifdef HAVE_STDLIB_H
20560         #  include <stdlib.h>
20561         #endif
20562         #include <stdio.h>
20563
20564
20565
20566 int
20567 main ()
20568 {
20569 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20570 test_array [0] = 0
20571
20572   ;
20573   return 0;
20574 }
20575 _ACEOF
20576 rm -f conftest.$ac_objext
20577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20578   (eval $ac_compile) 2>conftest.er1
20579   ac_status=$?
20580   grep -v '^ *+' conftest.er1 >conftest.err
20581   rm -f conftest.er1
20582   cat conftest.err >&5
20583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584   (exit $ac_status); } &&
20585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587   (eval $ac_try) 2>&5
20588   ac_status=$?
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); }; } &&
20591          { ac_try='test -s conftest.$ac_objext'
20592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593   (eval $ac_try) 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); }; }; then
20597   ac_hi=-1 ac_mid=-1
20598   while :; do
20599     cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h.  */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h.  */
20605
20606         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20607         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20608         #  error "fake wchar_t"
20609         #endif
20610         #ifdef HAVE_WCHAR_H
20611         #  ifdef __CYGWIN__
20612         #    include <stddef.h>
20613         #  endif
20614         #  include <wchar.h>
20615         #endif
20616         #ifdef HAVE_STDLIB_H
20617         #  include <stdlib.h>
20618         #endif
20619         #include <stdio.h>
20620
20621
20622
20623 int
20624 main ()
20625 {
20626 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20627 test_array [0] = 0
20628
20629   ;
20630   return 0;
20631 }
20632 _ACEOF
20633 rm -f conftest.$ac_objext
20634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20635   (eval $ac_compile) 2>conftest.er1
20636   ac_status=$?
20637   grep -v '^ *+' conftest.er1 >conftest.err
20638   rm -f conftest.er1
20639   cat conftest.err >&5
20640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); } &&
20642          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644   (eval $ac_try) 2>&5
20645   ac_status=$?
20646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); }; } &&
20648          { ac_try='test -s conftest.$ac_objext'
20649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650   (eval $ac_try) 2>&5
20651   ac_status=$?
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); }; }; then
20654   ac_lo=$ac_mid; break
20655 else
20656   echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20658
20659 ac_hi=`expr '(' $ac_mid ')' - 1`
20660                        if test $ac_mid -le $ac_hi; then
20661                          ac_lo= ac_hi=
20662                          break
20663                        fi
20664                        ac_mid=`expr 2 '*' $ac_mid`
20665 fi
20666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20667   done
20668 else
20669   echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672 ac_lo= ac_hi=
20673 fi
20674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20675 fi
20676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20677 # Binary search between lo and hi bounds.
20678 while test "x$ac_lo" != "x$ac_hi"; do
20679   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20680   cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20686
20687         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20688         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20689         #  error "fake wchar_t"
20690         #endif
20691         #ifdef HAVE_WCHAR_H
20692         #  ifdef __CYGWIN__
20693         #    include <stddef.h>
20694         #  endif
20695         #  include <wchar.h>
20696         #endif
20697         #ifdef HAVE_STDLIB_H
20698         #  include <stdlib.h>
20699         #endif
20700         #include <stdio.h>
20701
20702
20703
20704 int
20705 main ()
20706 {
20707 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20708 test_array [0] = 0
20709
20710   ;
20711   return 0;
20712 }
20713 _ACEOF
20714 rm -f conftest.$ac_objext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716   (eval $ac_compile) 2>conftest.er1
20717   ac_status=$?
20718   grep -v '^ *+' conftest.er1 >conftest.err
20719   rm -f conftest.er1
20720   cat conftest.err >&5
20721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722   (exit $ac_status); } &&
20723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725   (eval $ac_try) 2>&5
20726   ac_status=$?
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); }; } &&
20729          { ac_try='test -s conftest.$ac_objext'
20730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731   (eval $ac_try) 2>&5
20732   ac_status=$?
20733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734   (exit $ac_status); }; }; then
20735   ac_hi=$ac_mid
20736 else
20737   echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20739
20740 ac_lo=`expr '(' $ac_mid ')' + 1`
20741 fi
20742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20743 done
20744 case $ac_lo in
20745 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20746 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20747 See \`config.log' for more details." >&5
20748 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20749 See \`config.log' for more details." >&2;}
20750    { (exit 1); exit 1; }; } ;;
20751 esac
20752 else
20753   if test "$cross_compiling" = yes; then
20754   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20755 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20756    { (exit 1); exit 1; }; }
20757 else
20758   cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764
20765         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20766         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20767         #  error "fake wchar_t"
20768         #endif
20769         #ifdef HAVE_WCHAR_H
20770         #  ifdef __CYGWIN__
20771         #    include <stddef.h>
20772         #  endif
20773         #  include <wchar.h>
20774         #endif
20775         #ifdef HAVE_STDLIB_H
20776         #  include <stdlib.h>
20777         #endif
20778         #include <stdio.h>
20779
20780
20781
20782 long longval () { return (long) (sizeof (wchar_t)); }
20783 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20784 #include <stdio.h>
20785 #include <stdlib.h>
20786 int
20787 main ()
20788 {
20789
20790   FILE *f = fopen ("conftest.val", "w");
20791   if (! f)
20792     exit (1);
20793   if (((long) (sizeof (wchar_t))) < 0)
20794     {
20795       long i = longval ();
20796       if (i != ((long) (sizeof (wchar_t))))
20797         exit (1);
20798       fprintf (f, "%ld\n", i);
20799     }
20800   else
20801     {
20802       unsigned long i = ulongval ();
20803       if (i != ((long) (sizeof (wchar_t))))
20804         exit (1);
20805       fprintf (f, "%lu\n", i);
20806     }
20807   exit (ferror (f) || fclose (f) != 0);
20808
20809   ;
20810   return 0;
20811 }
20812 _ACEOF
20813 rm -f conftest$ac_exeext
20814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20815   (eval $ac_link) 2>&5
20816   ac_status=$?
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820   (eval $ac_try) 2>&5
20821   ac_status=$?
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); }; }; then
20824   ac_cv_sizeof_wchar_t=`cat conftest.val`
20825 else
20826   echo "$as_me: program exited with status $ac_status" >&5
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830 ( exit $ac_status )
20831 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20832 See \`config.log' for more details." >&5
20833 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20834 See \`config.log' for more details." >&2;}
20835    { (exit 1); exit 1; }; }
20836 fi
20837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20838 fi
20839 fi
20840 rm -f conftest.val
20841 else
20842   ac_cv_sizeof_wchar_t=0
20843 fi
20844 fi
20845 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20846 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20847 cat >>confdefs.h <<_ACEOF
20848 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20849 _ACEOF
20850
20851
20852 if test "$ac_cv_sizeof_wchar_t" != "0"; then
20853     wxUSE_WCHAR_T=yes
20854 else
20855     wxUSE_WCHAR_T=no
20856 fi
20857
20858 echo "$as_me:$LINENO: checking for va_copy" >&5
20859 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20860 if test "${wx_cv_func_va_copy+set}" = set; then
20861   echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
20863
20864         cat >conftest.$ac_ext <<_ACEOF
20865
20866             #include <stdarg.h>
20867             void foo(char *f, ...)
20868             {
20869                 va_list ap1, ap2;
20870                 va_start(ap1, f);
20871                 va_copy(ap2, ap1);
20872                 va_end(ap2);
20873                 va_end(ap1);
20874             }
20875             int main()
20876             {
20877                 foo("hi", 17);
20878                 return 0;
20879             }
20880 _ACEOF
20881 rm -f conftest.$ac_objext conftest$ac_exeext
20882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20883   (eval $ac_link) 2>conftest.er1
20884   ac_status=$?
20885   grep -v '^ *+' conftest.er1 >conftest.err
20886   rm -f conftest.er1
20887   cat conftest.err >&5
20888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889   (exit $ac_status); } &&
20890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892   (eval $ac_try) 2>&5
20893   ac_status=$?
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); }; } &&
20896          { ac_try='test -s conftest$ac_exeext'
20897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898   (eval $ac_try) 2>&5
20899   ac_status=$?
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); }; }; then
20902   wx_cv_func_va_copy=yes
20903 else
20904   echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20906
20907 wx_cv_func_va_copy=no
20908
20909 fi
20910 rm -f conftest.err conftest.$ac_objext \
20911       conftest$ac_exeext conftest.$ac_ext
20912
20913
20914 fi
20915 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20916 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20917
20918 if test $wx_cv_func_va_copy = "yes"; then
20919     cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_VA_COPY 1
20921 _ACEOF
20922
20923 else
20924         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20925 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20926 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20927   echo $ECHO_N "(cached) $ECHO_C" >&6
20928 else
20929
20930             if test "$cross_compiling" = yes; then
20931                   wx_cv_type_va_list_lvalue=yes
20932
20933 else
20934   cat >conftest.$ac_ext <<_ACEOF
20935
20936                 #include <stdarg.h>
20937                 int foo(char *f, ...)
20938                 {
20939                     va_list ap1, ap2;
20940                     va_start(ap1, f);
20941                     ap2 = ap1;
20942                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20943                         return 1;
20944                     va_end(ap2);
20945                     va_end(ap1);
20946                     return 0;
20947                 }
20948                 int main()
20949                 {
20950                     return foo("hi", 17);
20951                 }
20952 _ACEOF
20953 rm -f conftest$ac_exeext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20955   (eval $ac_link) 2>&5
20956   ac_status=$?
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960   (eval $ac_try) 2>&5
20961   ac_status=$?
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); }; }; then
20964   wx_cv_type_va_list_lvalue=yes
20965 else
20966   echo "$as_me: program exited with status $ac_status" >&5
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20969
20970 ( exit $ac_status )
20971 wx_cv_type_va_list_lvalue=no
20972 fi
20973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20974 fi
20975
20976
20977 fi
20978 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20979 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20980
20981     if test $wx_cv_type_va_list_lvalue != "yes"; then
20982                         cat >>confdefs.h <<\_ACEOF
20983 #define VA_LIST_IS_ARRAY 1
20984 _ACEOF
20985
20986     fi
20987 fi
20988
20989 # Check whether --enable-largefile or --disable-largefile was given.
20990 if test "${enable_largefile+set}" = set; then
20991   enableval="$enable_largefile"
20992
20993 fi;
20994 if test "$enable_largefile" != no; then
20995             wx_largefile=no
20996
20997     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20998 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20999 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21000   echo $ECHO_N "(cached) $ECHO_C" >&6
21001 else
21002
21003           cat >conftest.$ac_ext <<_ACEOF
21004 /* confdefs.h.  */
21005 _ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h.  */
21009 #define _FILE_OFFSET_BITS 64
21010                           #include <sys/types.h>
21011 int
21012 main ()
21013 {
21014 typedef struct {
21015     unsigned int field: sizeof(off_t) == 8;
21016 } wxlf;
21017
21018   ;
21019   return 0;
21020 }
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21024   (eval $ac_compile) 2>conftest.er1
21025   ac_status=$?
21026   grep -v '^ *+' conftest.er1 >conftest.err
21027   rm -f conftest.er1
21028   cat conftest.err >&5
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); } &&
21031          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033   (eval $ac_try) 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; } &&
21037          { ac_try='test -s conftest.$ac_objext'
21038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039   (eval $ac_try) 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); }; }; then
21043   ac_cv_sys_file_offset_bits=64
21044 else
21045   echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048 ac_cv_sys_file_offset_bits=no
21049 fi
21050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21051
21052
21053 fi
21054 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21055 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21056
21057     if test "$ac_cv_sys_file_offset_bits" != no; then
21058         wx_largefile=yes
21059         cat >>confdefs.h <<_ACEOF
21060 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21061 _ACEOF
21062
21063     fi
21064
21065     if test "x$wx_largefile" != "xyes"; then
21066
21067     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21068 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21069 if test "${ac_cv_sys_large_files+set}" = set; then
21070   echo $ECHO_N "(cached) $ECHO_C" >&6
21071 else
21072
21073           cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h.  */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h.  */
21079 #define _LARGE_FILES 1
21080                           #include <sys/types.h>
21081 int
21082 main ()
21083 {
21084 typedef struct {
21085     unsigned int field: sizeof(off_t) == 8;
21086 } wxlf;
21087
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest.$ac_objext
21093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21094   (eval $ac_compile) 2>conftest.er1
21095   ac_status=$?
21096   grep -v '^ *+' conftest.er1 >conftest.err
21097   rm -f conftest.er1
21098   cat conftest.err >&5
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); } &&
21101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103   (eval $ac_try) 2>&5
21104   ac_status=$?
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); }; } &&
21107          { ac_try='test -s conftest.$ac_objext'
21108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109   (eval $ac_try) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; }; then
21113   ac_cv_sys_large_files=1
21114 else
21115   echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118 ac_cv_sys_large_files=no
21119 fi
21120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21121
21122
21123 fi
21124 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21125 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21126
21127     if test "$ac_cv_sys_large_files" != no; then
21128         wx_largefile=yes
21129         cat >>confdefs.h <<_ACEOF
21130 #define _LARGE_FILES $ac_cv_sys_large_files
21131 _ACEOF
21132
21133     fi
21134
21135     fi
21136
21137     echo "$as_me:$LINENO: checking if large file support is available" >&5
21138 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21139     if test "x$wx_largefile" = "xyes"; then
21140         cat >>confdefs.h <<\_ACEOF
21141 #define HAVE_LARGEFILE_SUPPORT 1
21142 _ACEOF
21143
21144     fi
21145     echo "$as_me:$LINENO: result: $wx_largefile" >&5
21146 echo "${ECHO_T}$wx_largefile" >&6
21147 fi
21148
21149
21150 if test "x$wx_largefile" = "xyes"; then
21151     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
21152         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
21153
21154                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21155             echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21156 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21157 if test "${wx_cv_STDC_EXT_required+set}" = set; then
21158   echo $ECHO_N "(cached) $ECHO_C" >&6
21159 else
21160
21161
21162
21163                     ac_ext=cc
21164 ac_cpp='$CXXCPP $CPPFLAGS'
21165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21168
21169                     cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h.  */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h.  */
21175
21176 int
21177 main ()
21178 {
21179
21180                             #ifndef __STDC_EXT__
21181                                 choke me
21182                             #endif
21183
21184   ;
21185   return 0;
21186 }
21187 _ACEOF
21188 rm -f conftest.$ac_objext
21189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21190   (eval $ac_compile) 2>conftest.er1
21191   ac_status=$?
21192   grep -v '^ *+' conftest.er1 >conftest.err
21193   rm -f conftest.er1
21194   cat conftest.err >&5
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); } &&
21197          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199   (eval $ac_try) 2>&5
21200   ac_status=$?
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); }; } &&
21203          { ac_try='test -s conftest.$ac_objext'
21204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205   (eval $ac_try) 2>&5
21206   ac_status=$?
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); }; }; then
21209   wx_cv_STDC_EXT_required=no
21210 else
21211   echo "$as_me: failed program was:" >&5
21212 sed 's/^/| /' conftest.$ac_ext >&5
21213
21214 wx_cv_STDC_EXT_required=yes
21215
21216 fi
21217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21218                     ac_ext=c
21219 ac_cpp='$CPP $CPPFLAGS'
21220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21223
21224
21225
21226 fi
21227 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21228 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21229             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
21230                 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
21231             fi
21232         fi
21233     else
21234         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
21235     fi
21236         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21237 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21238 if test "${ac_cv_sys_largefile_source+set}" = set; then
21239   echo $ECHO_N "(cached) $ECHO_C" >&6
21240 else
21241   while :; do
21242   ac_cv_sys_largefile_source=no
21243   cat >conftest.$ac_ext <<_ACEOF
21244 /* confdefs.h.  */
21245 _ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h.  */
21249 #include <stdio.h>
21250 int
21251 main ()
21252 {
21253 return !fseeko;
21254   ;
21255   return 0;
21256 }
21257 _ACEOF
21258 rm -f conftest.$ac_objext
21259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21260   (eval $ac_compile) 2>conftest.er1
21261   ac_status=$?
21262   grep -v '^ *+' conftest.er1 >conftest.err
21263   rm -f conftest.er1
21264   cat conftest.err >&5
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); } &&
21267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269   (eval $ac_try) 2>&5
21270   ac_status=$?
21271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272   (exit $ac_status); }; } &&
21273          { ac_try='test -s conftest.$ac_objext'
21274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275   (eval $ac_try) 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); }; }; then
21279   break
21280 else
21281   echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21283
21284 fi
21285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21286   cat >conftest.$ac_ext <<_ACEOF
21287 /* confdefs.h.  */
21288 _ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h.  */
21292 #define _LARGEFILE_SOURCE 1
21293 #include <stdio.h>
21294 int
21295 main ()
21296 {
21297 return !fseeko;
21298   ;
21299   return 0;
21300 }
21301 _ACEOF
21302 rm -f conftest.$ac_objext
21303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21304   (eval $ac_compile) 2>conftest.er1
21305   ac_status=$?
21306   grep -v '^ *+' conftest.er1 >conftest.err
21307   rm -f conftest.er1
21308   cat conftest.err >&5
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); } &&
21311          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313   (eval $ac_try) 2>&5
21314   ac_status=$?
21315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316   (exit $ac_status); }; } &&
21317          { ac_try='test -s conftest.$ac_objext'
21318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319   (eval $ac_try) 2>&5
21320   ac_status=$?
21321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322   (exit $ac_status); }; }; then
21323   ac_cv_sys_largefile_source=1; break
21324 else
21325   echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328 fi
21329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21330   break
21331 done
21332 fi
21333 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21334 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21335 if test "$ac_cv_sys_largefile_source" != no; then
21336
21337 cat >>confdefs.h <<_ACEOF
21338 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21339 _ACEOF
21340
21341 fi
21342 rm -f conftest*
21343
21344 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21345 # in glibc 2.1.3, but that breaks too many other things.
21346 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21347 echo "$as_me:$LINENO: checking for fseeko" >&5
21348 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21349 if test "${ac_cv_func_fseeko+set}" = set; then
21350   echo $ECHO_N "(cached) $ECHO_C" >&6
21351 else
21352   cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358 #include <stdio.h>
21359 int
21360 main ()
21361 {
21362 return fseeko && fseeko (stdin, 0, 0);
21363   ;
21364   return 0;
21365 }
21366 _ACEOF
21367 rm -f conftest.$ac_objext conftest$ac_exeext
21368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21369   (eval $ac_link) 2>conftest.er1
21370   ac_status=$?
21371   grep -v '^ *+' conftest.er1 >conftest.err
21372   rm -f conftest.er1
21373   cat conftest.err >&5
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); } &&
21376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378   (eval $ac_try) 2>&5
21379   ac_status=$?
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); }; } &&
21382          { ac_try='test -s conftest$ac_exeext'
21383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384   (eval $ac_try) 2>&5
21385   ac_status=$?
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); }; }; then
21388   ac_cv_func_fseeko=yes
21389 else
21390   echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393 ac_cv_func_fseeko=no
21394 fi
21395 rm -f conftest.err conftest.$ac_objext \
21396       conftest$ac_exeext conftest.$ac_ext
21397 fi
21398 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21399 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21400 if test $ac_cv_func_fseeko = yes; then
21401
21402 cat >>confdefs.h <<\_ACEOF
21403 #define HAVE_FSEEKO 1
21404 _ACEOF
21405
21406 fi
21407
21408     if test "$ac_cv_sys_largefile_source" != no; then
21409         WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
21410     fi
21411     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
21412 fi
21413
21414 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21415 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21416 if test "${ac_cv_c_bigendian+set}" = set; then
21417   echo $ECHO_N "(cached) $ECHO_C" >&6
21418 else
21419   ac_cv_c_bigendian=unknown
21420 # See if sys/param.h defines the BYTE_ORDER macro.
21421 cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427 #include <sys/types.h>
21428 #include <sys/param.h>
21429 int
21430 main ()
21431 {
21432
21433 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21434  bogus endian macros
21435 #endif
21436   ;
21437   return 0;
21438 }
21439 _ACEOF
21440 rm -f conftest.$ac_objext
21441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21442   (eval $ac_compile) 2>conftest.er1
21443   ac_status=$?
21444   grep -v '^ *+' conftest.er1 >conftest.err
21445   rm -f conftest.er1
21446   cat conftest.err >&5
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); } &&
21449          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451   (eval $ac_try) 2>&5
21452   ac_status=$?
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); }; } &&
21455          { ac_try='test -s conftest.$ac_objext'
21456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457   (eval $ac_try) 2>&5
21458   ac_status=$?
21459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460   (exit $ac_status); }; }; then
21461   # It does; now see whether it defined to BIG_ENDIAN or not.
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 <sys/types.h>
21469 #include <sys/param.h>
21470 int
21471 main ()
21472 {
21473
21474 #if BYTE_ORDER != BIG_ENDIAN
21475  not big endian
21476 #endif
21477   ;
21478   return 0;
21479 }
21480 _ACEOF
21481 rm -f conftest.$ac_objext
21482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21483   (eval $ac_compile) 2>conftest.er1
21484   ac_status=$?
21485   grep -v '^ *+' conftest.er1 >conftest.err
21486   rm -f conftest.er1
21487   cat conftest.err >&5
21488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489   (exit $ac_status); } &&
21490          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492   (eval $ac_try) 2>&5
21493   ac_status=$?
21494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); }; } &&
21496          { ac_try='test -s conftest.$ac_objext'
21497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498   (eval $ac_try) 2>&5
21499   ac_status=$?
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); }; }; then
21502   ac_cv_c_bigendian=yes
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 ac_cv_c_bigendian=no
21508 fi
21509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21510 else
21511   echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21513
21514 fi
21515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21516 if test $ac_cv_c_bigendian = unknown; then
21517 if test "$cross_compiling" = yes; then
21518   ac_cv_c_bigendian=unknown
21519 else
21520   cat >conftest.$ac_ext <<_ACEOF
21521 /* confdefs.h.  */
21522 _ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h.  */
21526 main () {
21527   /* Are we little or big endian?  From Harbison&Steele.  */
21528   union
21529   {
21530     long l;
21531     char c[sizeof (long)];
21532   } u;
21533   u.l = 1;
21534   exit (u.c[sizeof (long) - 1] == 1);
21535 }
21536 _ACEOF
21537 rm -f conftest$ac_exeext
21538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21539   (eval $ac_link) 2>&5
21540   ac_status=$?
21541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; }; then
21548   ac_cv_c_bigendian=no
21549 else
21550   echo "$as_me: program exited with status $ac_status" >&5
21551 echo "$as_me: failed program was:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21553
21554 ( exit $ac_status )
21555 ac_cv_c_bigendian=yes
21556 fi
21557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21558 fi
21559 fi
21560 fi
21561 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21562 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21563 if test $ac_cv_c_bigendian = unknown; then
21564   { 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
21565 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;}
21566 fi
21567 if test $ac_cv_c_bigendian = yes; then
21568   cat >>confdefs.h <<\_ACEOF
21569 #define WORDS_BIGENDIAN 1
21570 _ACEOF
21571
21572 fi
21573
21574
21575 ac_ext=cc
21576 ac_cpp='$CXXCPP $CPPFLAGS'
21577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21580 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21581 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21582 if test -z "$CXXCPP"; then
21583   if test "${ac_cv_prog_CXXCPP+set}" = set; then
21584   echo $ECHO_N "(cached) $ECHO_C" >&6
21585 else
21586       # Double quotes because CXXCPP needs to be expanded
21587     for CXXCPP in "$CXX -E" "/lib/cpp"
21588     do
21589       ac_preproc_ok=false
21590 for ac_cxx_preproc_warn_flag in '' yes
21591 do
21592   # Use a header file that comes with gcc, so configuring glibc
21593   # with a fresh cross-compiler works.
21594   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21595   # <limits.h> exists even on freestanding compilers.
21596   # On the NeXT, cc -E runs the code through the compiler's parser,
21597   # not just through cpp. "Syntax error" is here to catch this case.
21598   cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h.  */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h.  */
21604 #ifdef __STDC__
21605 # include <limits.h>
21606 #else
21607 # include <assert.h>
21608 #endif
21609                      Syntax error
21610 _ACEOF
21611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21613   ac_status=$?
21614   grep -v '^ *+' conftest.er1 >conftest.err
21615   rm -f conftest.er1
21616   cat conftest.err >&5
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); } >/dev/null; then
21619   if test -s conftest.err; then
21620     ac_cpp_err=$ac_cxx_preproc_warn_flag
21621     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21622   else
21623     ac_cpp_err=
21624   fi
21625 else
21626   ac_cpp_err=yes
21627 fi
21628 if test -z "$ac_cpp_err"; then
21629   :
21630 else
21631   echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21633
21634   # Broken: fails on valid input.
21635 continue
21636 fi
21637 rm -f conftest.err conftest.$ac_ext
21638
21639   # OK, works on sane cases.  Now check whether non-existent headers
21640   # can be detected and how.
21641   cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647 #include <ac_nonexistent.h>
21648 _ACEOF
21649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21651   ac_status=$?
21652   grep -v '^ *+' conftest.er1 >conftest.err
21653   rm -f conftest.er1
21654   cat conftest.err >&5
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); } >/dev/null; then
21657   if test -s conftest.err; then
21658     ac_cpp_err=$ac_cxx_preproc_warn_flag
21659     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21660   else
21661     ac_cpp_err=
21662   fi
21663 else
21664   ac_cpp_err=yes
21665 fi
21666 if test -z "$ac_cpp_err"; then
21667   # Broken: success on invalid input.
21668 continue
21669 else
21670   echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21672
21673   # Passes both tests.
21674 ac_preproc_ok=:
21675 break
21676 fi
21677 rm -f conftest.err conftest.$ac_ext
21678
21679 done
21680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21681 rm -f conftest.err conftest.$ac_ext
21682 if $ac_preproc_ok; then
21683   break
21684 fi
21685
21686     done
21687     ac_cv_prog_CXXCPP=$CXXCPP
21688
21689 fi
21690   CXXCPP=$ac_cv_prog_CXXCPP
21691 else
21692   ac_cv_prog_CXXCPP=$CXXCPP
21693 fi
21694 echo "$as_me:$LINENO: result: $CXXCPP" >&5
21695 echo "${ECHO_T}$CXXCPP" >&6
21696 ac_preproc_ok=false
21697 for ac_cxx_preproc_warn_flag in '' yes
21698 do
21699   # Use a header file that comes with gcc, so configuring glibc
21700   # with a fresh cross-compiler works.
21701   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21702   # <limits.h> exists even on freestanding compilers.
21703   # On the NeXT, cc -E runs the code through the compiler's parser,
21704   # not just through cpp. "Syntax error" is here to catch this case.
21705   cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 #ifdef __STDC__
21712 # include <limits.h>
21713 #else
21714 # include <assert.h>
21715 #endif
21716                      Syntax error
21717 _ACEOF
21718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21720   ac_status=$?
21721   grep -v '^ *+' conftest.er1 >conftest.err
21722   rm -f conftest.er1
21723   cat conftest.err >&5
21724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725   (exit $ac_status); } >/dev/null; then
21726   if test -s conftest.err; then
21727     ac_cpp_err=$ac_cxx_preproc_warn_flag
21728     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21729   else
21730     ac_cpp_err=
21731   fi
21732 else
21733   ac_cpp_err=yes
21734 fi
21735 if test -z "$ac_cpp_err"; then
21736   :
21737 else
21738   echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21740
21741   # Broken: fails on valid input.
21742 continue
21743 fi
21744 rm -f conftest.err conftest.$ac_ext
21745
21746   # OK, works on sane cases.  Now check whether non-existent headers
21747   # can be detected and how.
21748   cat >conftest.$ac_ext <<_ACEOF
21749 /* confdefs.h.  */
21750 _ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h.  */
21754 #include <ac_nonexistent.h>
21755 _ACEOF
21756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21757   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21758   ac_status=$?
21759   grep -v '^ *+' conftest.er1 >conftest.err
21760   rm -f conftest.er1
21761   cat conftest.err >&5
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); } >/dev/null; then
21764   if test -s conftest.err; then
21765     ac_cpp_err=$ac_cxx_preproc_warn_flag
21766     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21767   else
21768     ac_cpp_err=
21769   fi
21770 else
21771   ac_cpp_err=yes
21772 fi
21773 if test -z "$ac_cpp_err"; then
21774   # Broken: success on invalid input.
21775 continue
21776 else
21777   echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21779
21780   # Passes both tests.
21781 ac_preproc_ok=:
21782 break
21783 fi
21784 rm -f conftest.err conftest.$ac_ext
21785
21786 done
21787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21788 rm -f conftest.err conftest.$ac_ext
21789 if $ac_preproc_ok; then
21790   :
21791 else
21792   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21793 See \`config.log' for more details." >&5
21794 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21795 See \`config.log' for more details." >&2;}
21796    { (exit 1); exit 1; }; }
21797 fi
21798
21799 ac_ext=cc
21800 ac_cpp='$CXXCPP $CPPFLAGS'
21801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21804
21805
21806
21807
21808
21809     ac_ext=cc
21810 ac_cpp='$CXXCPP $CPPFLAGS'
21811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21814
21815
21816
21817 for ac_header in iostream
21818 do
21819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21821   echo "$as_me:$LINENO: checking for $ac_header" >&5
21822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21824   echo $ECHO_N "(cached) $ECHO_C" >&6
21825 fi
21826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21828 else
21829   # Is the header compilable?
21830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21832 cat >conftest.$ac_ext <<_ACEOF
21833 /* confdefs.h.  */
21834 _ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h.  */
21838 $ac_includes_default
21839 #include <$ac_header>
21840 _ACEOF
21841 rm -f conftest.$ac_objext
21842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21843   (eval $ac_compile) 2>conftest.er1
21844   ac_status=$?
21845   grep -v '^ *+' conftest.er1 >conftest.err
21846   rm -f conftest.er1
21847   cat conftest.err >&5
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); } &&
21850          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852   (eval $ac_try) 2>&5
21853   ac_status=$?
21854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855   (exit $ac_status); }; } &&
21856          { ac_try='test -s conftest.$ac_objext'
21857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858   (eval $ac_try) 2>&5
21859   ac_status=$?
21860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861   (exit $ac_status); }; }; then
21862   ac_header_compiler=yes
21863 else
21864   echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21866
21867 ac_header_compiler=no
21868 fi
21869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21871 echo "${ECHO_T}$ac_header_compiler" >&6
21872
21873 # Is the header present?
21874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21876 cat >conftest.$ac_ext <<_ACEOF
21877 /* confdefs.h.  */
21878 _ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h.  */
21882 #include <$ac_header>
21883 _ACEOF
21884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21885   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21886   ac_status=$?
21887   grep -v '^ *+' conftest.er1 >conftest.err
21888   rm -f conftest.er1
21889   cat conftest.err >&5
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); } >/dev/null; then
21892   if test -s conftest.err; then
21893     ac_cpp_err=$ac_cxx_preproc_warn_flag
21894     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21895   else
21896     ac_cpp_err=
21897   fi
21898 else
21899   ac_cpp_err=yes
21900 fi
21901 if test -z "$ac_cpp_err"; then
21902   ac_header_preproc=yes
21903 else
21904   echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21906
21907   ac_header_preproc=no
21908 fi
21909 rm -f conftest.err conftest.$ac_ext
21910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21911 echo "${ECHO_T}$ac_header_preproc" >&6
21912
21913 # So?  What about this header?
21914 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21915   yes:no: )
21916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21920     ac_header_preproc=yes
21921     ;;
21922   no:yes:* )
21923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21935     (
21936       cat <<\_ASBOX
21937 ## ----------------------------------------- ##
21938 ## Report this to wx-dev@lists.wxwidgets.org ##
21939 ## ----------------------------------------- ##
21940 _ASBOX
21941     ) |
21942       sed "s/^/$as_me: WARNING:     /" >&2
21943     ;;
21944 esac
21945 echo "$as_me:$LINENO: checking for $ac_header" >&5
21946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21948   echo $ECHO_N "(cached) $ECHO_C" >&6
21949 else
21950   eval "$as_ac_Header=\$ac_header_preproc"
21951 fi
21952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21954
21955 fi
21956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21957   cat >>confdefs.h <<_ACEOF
21958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21959 _ACEOF
21960
21961 fi
21962
21963 done
21964
21965
21966     if test "$ac_cv_header_iostream" = "yes" ; then
21967       :
21968     else
21969       cat >>confdefs.h <<\_ACEOF
21970 #define wxUSE_IOSTREAMH 1
21971 _ACEOF
21972
21973     fi
21974
21975     ac_ext=c
21976 ac_cpp='$CPP $CPPFLAGS'
21977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21980
21981
21982
21983
21984   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21985 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21986 if test "${wx_cv_cpp_bool+set}" = set; then
21987   echo $ECHO_N "(cached) $ECHO_C" >&6
21988 else
21989
21990
21991
21992     ac_ext=cc
21993 ac_cpp='$CXXCPP $CPPFLAGS'
21994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21997
21998
21999     cat >conftest.$ac_ext <<_ACEOF
22000 /* confdefs.h.  */
22001 _ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h.  */
22005
22006
22007 int
22008 main ()
22009 {
22010
22011         bool b = true;
22012
22013         return 0;
22014
22015   ;
22016   return 0;
22017 }
22018 _ACEOF
22019 rm -f conftest.$ac_objext
22020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22021   (eval $ac_compile) 2>conftest.er1
22022   ac_status=$?
22023   grep -v '^ *+' conftest.er1 >conftest.err
22024   rm -f conftest.er1
22025   cat conftest.err >&5
22026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); } &&
22028          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030   (eval $ac_try) 2>&5
22031   ac_status=$?
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); }; } &&
22034          { ac_try='test -s conftest.$ac_objext'
22035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22036   (eval $ac_try) 2>&5
22037   ac_status=$?
22038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); }; }; then
22040
22041         wx_cv_cpp_bool=yes
22042
22043 else
22044   echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22046
22047
22048         wx_cv_cpp_bool=no
22049
22050
22051 fi
22052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22053
22054     ac_ext=c
22055 ac_cpp='$CPP $CPPFLAGS'
22056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22059
22060
22061 fi
22062 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22063 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22064
22065   if test "$wx_cv_cpp_bool" = "yes"; then
22066     cat >>confdefs.h <<\_ACEOF
22067 #define HAVE_BOOL 1
22068 _ACEOF
22069
22070   fi
22071
22072
22073
22074   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22075 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22076 if test "${wx_cv_explicit+set}" = set; then
22077   echo $ECHO_N "(cached) $ECHO_C" >&6
22078 else
22079
22080
22081
22082     ac_ext=cc
22083 ac_cpp='$CXXCPP $CPPFLAGS'
22084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22087
22088
22089             cat >conftest.$ac_ext <<_ACEOF
22090 /* confdefs.h.  */
22091 _ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h.  */
22095
22096         class Foo { public: explicit Foo(int) {} };
22097
22098 int
22099 main ()
22100 {
22101
22102         return 0;
22103
22104   ;
22105   return 0;
22106 }
22107 _ACEOF
22108 rm -f conftest.$ac_objext
22109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22110   (eval $ac_compile) 2>conftest.er1
22111   ac_status=$?
22112   grep -v '^ *+' conftest.er1 >conftest.err
22113   rm -f conftest.er1
22114   cat conftest.err >&5
22115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); } &&
22117          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119   (eval $ac_try) 2>&5
22120   ac_status=$?
22121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); }; } &&
22123          { ac_try='test -s conftest.$ac_objext'
22124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125   (eval $ac_try) 2>&5
22126   ac_status=$?
22127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128   (exit $ac_status); }; }; then
22129
22130         cat >conftest.$ac_ext <<_ACEOF
22131 /* confdefs.h.  */
22132 _ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h.  */
22136
22137                 class Foo { public: explicit Foo(int) {} };
22138                 static void TakeFoo(const Foo& foo) { }
22139
22140 int
22141 main ()
22142 {
22143
22144                 TakeFoo(17);
22145                 return 0;
22146
22147   ;
22148   return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest.$ac_objext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22153   (eval $ac_compile) 2>conftest.er1
22154   ac_status=$?
22155   grep -v '^ *+' conftest.er1 >conftest.err
22156   rm -f conftest.er1
22157   cat conftest.err >&5
22158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159   (exit $ac_status); } &&
22160          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162   (eval $ac_try) 2>&5
22163   ac_status=$?
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); }; } &&
22166          { ac_try='test -s conftest.$ac_objext'
22167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168   (eval $ac_try) 2>&5
22169   ac_status=$?
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); }; }; then
22172   wx_cv_explicit=no
22173 else
22174   echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 wx_cv_explicit=yes
22178
22179 fi
22180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22181
22182 else
22183   echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22185
22186 wx_cv_explicit=no
22187
22188 fi
22189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22190
22191     ac_ext=c
22192 ac_cpp='$CPP $CPPFLAGS'
22193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22196
22197
22198 fi
22199 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22200 echo "${ECHO_T}$wx_cv_explicit" >&6
22201
22202   if test "$wx_cv_explicit" = "yes"; then
22203     cat >>confdefs.h <<\_ACEOF
22204 #define HAVE_EXPLICIT 1
22205 _ACEOF
22206
22207   fi
22208
22209
22210 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22211 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22212 if test "${ac_cv_cxx_const_cast+set}" = set; then
22213   echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215
22216
22217  ac_ext=cc
22218 ac_cpp='$CXXCPP $CPPFLAGS'
22219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22222
22223  cat >conftest.$ac_ext <<_ACEOF
22224 /* confdefs.h.  */
22225 _ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h.  */
22229
22230 int
22231 main ()
22232 {
22233 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22234   ;
22235   return 0;
22236 }
22237 _ACEOF
22238 rm -f conftest.$ac_objext
22239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22240   (eval $ac_compile) 2>conftest.er1
22241   ac_status=$?
22242   grep -v '^ *+' conftest.er1 >conftest.err
22243   rm -f conftest.er1
22244   cat conftest.err >&5
22245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246   (exit $ac_status); } &&
22247          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249   (eval $ac_try) 2>&5
22250   ac_status=$?
22251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252   (exit $ac_status); }; } &&
22253          { ac_try='test -s conftest.$ac_objext'
22254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255   (eval $ac_try) 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); }; }; then
22259   ac_cv_cxx_const_cast=yes
22260 else
22261   echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22263
22264 ac_cv_cxx_const_cast=no
22265 fi
22266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22267  ac_ext=c
22268 ac_cpp='$CPP $CPPFLAGS'
22269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22272
22273
22274 fi
22275 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22276 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22277 if test "$ac_cv_cxx_const_cast" = yes; then
22278
22279 cat >>confdefs.h <<\_ACEOF
22280 #define HAVE_CONST_CAST
22281 _ACEOF
22282
22283 fi
22284
22285 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22286 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22287 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22288   echo $ECHO_N "(cached) $ECHO_C" >&6
22289 else
22290
22291
22292  ac_ext=cc
22293 ac_cpp='$CXXCPP $CPPFLAGS'
22294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22297
22298  cat >conftest.$ac_ext <<_ACEOF
22299 /* confdefs.h.  */
22300 _ACEOF
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h.  */
22304 #include <typeinfo>
22305 class Base { public : Base () {} virtual void f () = 0;};
22306 class Derived : public Base { public : Derived () {} virtual void f () {} };
22307 class Unrelated { public : Unrelated () {} };
22308 int g (Unrelated&) { return 0; }
22309 int
22310 main ()
22311 {
22312
22313 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22314   ;
22315   return 0;
22316 }
22317 _ACEOF
22318 rm -f conftest.$ac_objext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320   (eval $ac_compile) 2>conftest.er1
22321   ac_status=$?
22322   grep -v '^ *+' conftest.er1 >conftest.err
22323   rm -f conftest.er1
22324   cat conftest.err >&5
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); } &&
22327          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329   (eval $ac_try) 2>&5
22330   ac_status=$?
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); }; } &&
22333          { ac_try='test -s conftest.$ac_objext'
22334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335   (eval $ac_try) 2>&5
22336   ac_status=$?
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); }; }; then
22339   ac_cv_cxx_reinterpret_cast=yes
22340 else
22341   echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22343
22344 ac_cv_cxx_reinterpret_cast=no
22345 fi
22346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22347  ac_ext=c
22348 ac_cpp='$CPP $CPPFLAGS'
22349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22352
22353
22354 fi
22355 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22356 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22357 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22358
22359 cat >>confdefs.h <<\_ACEOF
22360 #define HAVE_REINTERPRET_CAST
22361 _ACEOF
22362
22363 fi
22364
22365 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22366 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22367 if test "${ac_cv_cxx_static_cast+set}" = set; then
22368   echo $ECHO_N "(cached) $ECHO_C" >&6
22369 else
22370
22371
22372  ac_ext=cc
22373 ac_cpp='$CXXCPP $CPPFLAGS'
22374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22377
22378  cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 #include <typeinfo>
22385 class Base { public : Base () {} virtual void f () = 0; };
22386 class Derived : public Base { public : Derived () {} virtual void f () {} };
22387 int g (Derived&) { return 0; }
22388 int
22389 main ()
22390 {
22391
22392 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22393   ;
22394   return 0;
22395 }
22396 _ACEOF
22397 rm -f conftest.$ac_objext
22398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22399   (eval $ac_compile) 2>conftest.er1
22400   ac_status=$?
22401   grep -v '^ *+' conftest.er1 >conftest.err
22402   rm -f conftest.er1
22403   cat conftest.err >&5
22404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405   (exit $ac_status); } &&
22406          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22408   (eval $ac_try) 2>&5
22409   ac_status=$?
22410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411   (exit $ac_status); }; } &&
22412          { ac_try='test -s conftest.$ac_objext'
22413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414   (eval $ac_try) 2>&5
22415   ac_status=$?
22416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417   (exit $ac_status); }; }; then
22418   ac_cv_cxx_static_cast=yes
22419 else
22420   echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22422
22423 ac_cv_cxx_static_cast=no
22424 fi
22425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22426  ac_ext=c
22427 ac_cpp='$CPP $CPPFLAGS'
22428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22431
22432
22433 fi
22434 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22435 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22436 if test "$ac_cv_cxx_static_cast" = yes; then
22437
22438 cat >>confdefs.h <<\_ACEOF
22439 #define HAVE_STATIC_CAST
22440 _ACEOF
22441
22442 fi
22443
22444
22445 if test "x$SUNCXX" = xyes; then
22446     CXXFLAGS="$CXXFLAGS -features=tmplife"
22447 fi
22448
22449 if test "x$SUNCC" = xyes; then
22450     CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
22451 fi
22452
22453 if test "x$SGICC" = "xyes"; then
22454     CFLAGS="$CFLAGS -woff 3970"
22455 fi
22456 if test "x$SGICXX" = "xyes"; then
22457     CXXFLAGS="$CXXFLAGS -woff 3970"
22458 fi
22459
22460 if test "x$HPCC" = "xyes"; then
22461                     CFLAGS="$CFLAGS +W 2011,2450"
22462 fi
22463 if test "x$HPCXX" = "xyes"; then
22464             CXXFLAGS="$CXXFLAGS +W 2340"
22465 fi
22466
22467 if test "x$COMPAQCXX" = "xyes"; then
22468                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22469 fi
22470
22471 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
22472     ac_ext=cc
22473 ac_cpp='$CXXCPP $CPPFLAGS'
22474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22477
22478
22479     if test "$wxUSE_UNICODE" = "yes"; then
22480         std_string="std::wstring"
22481         char_type="wchar_t"
22482     else
22483         std_string="std::string"
22484         char_type="char"
22485     fi
22486
22487         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22488 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
22489     cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h.  */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h.  */
22495 #include <string>
22496 int
22497 main ()
22498 {
22499 $std_string foo;
22500   ;
22501   return 0;
22502 }
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506   (eval $ac_compile) 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } &&
22513          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515   (eval $ac_try) 2>&5
22516   ac_status=$?
22517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518   (exit $ac_status); }; } &&
22519          { ac_try='test -s conftest.$ac_objext'
22520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521   (eval $ac_try) 2>&5
22522   ac_status=$?
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); }; }; then
22525   echo "$as_me:$LINENO: result: yes" >&5
22526 echo "${ECHO_T}yes" >&6
22527                     cat >>confdefs.h <<\_ACEOF
22528 #define HAVE_STD_WSTRING 1
22529 _ACEOF
22530
22531 else
22532   echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22534
22535 echo "$as_me:$LINENO: result: no" >&5
22536 echo "${ECHO_T}no" >&6
22537                     echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22538 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
22539                     cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h.  */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h.  */
22545
22546                         #ifdef HAVE_WCHAR_H
22547                         #  ifdef __CYGWIN__
22548                         #    include <stddef.h>
22549                         #  endif
22550                         #  include <wchar.h>
22551                         #endif
22552                         #ifdef HAVE_STDLIB_H
22553                         #  include <stdlib.h>
22554                         #endif
22555                         #include <stdio.h>
22556                         #include <string>
22557
22558 int
22559 main ()
22560 {
22561 std::basic_string<$char_type> foo;
22562                          const $char_type* dummy = foo.c_str();
22563   ;
22564   return 0;
22565 }
22566 _ACEOF
22567 rm -f conftest.$ac_objext
22568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22569   (eval $ac_compile) 2>conftest.er1
22570   ac_status=$?
22571   grep -v '^ *+' conftest.er1 >conftest.err
22572   rm -f conftest.er1
22573   cat conftest.err >&5
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); } &&
22576          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578   (eval $ac_try) 2>&5
22579   ac_status=$?
22580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581   (exit $ac_status); }; } &&
22582          { ac_try='test -s conftest.$ac_objext'
22583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584   (eval $ac_try) 2>&5
22585   ac_status=$?
22586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587   (exit $ac_status); }; }; then
22588   echo "$as_me:$LINENO: result: yes" >&5
22589 echo "${ECHO_T}yes" >&6
22590 else
22591   echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22593
22594 echo "$as_me:$LINENO: result: no" >&5
22595 echo "${ECHO_T}no" >&6
22596                          if test "$wxUSE_STL" = "yes"; then
22597                              { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22598 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22599    { (exit 1); exit 1; }; }
22600                          elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22601                              { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22602 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
22603    { (exit 1); exit 1; }; }
22604                          else
22605                              { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22606 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22607                              wxUSE_STD_STRING=no
22608                          fi
22609
22610
22611 fi
22612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22613
22614 fi
22615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22616
22617     ac_ext=c
22618 ac_cpp='$CPP $CPPFLAGS'
22619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22622
22623 fi
22624
22625 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22626     ac_ext=cc
22627 ac_cpp='$CXXCPP $CPPFLAGS'
22628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22631
22632
22633     echo "$as_me:$LINENO: checking for std::istream" >&5
22634 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22635 if test "${ac_cv_type_std__istream+set}" = set; then
22636   echo $ECHO_N "(cached) $ECHO_C" >&6
22637 else
22638   cat >conftest.$ac_ext <<_ACEOF
22639 /* confdefs.h.  */
22640 _ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h.  */
22644 #include <iostream>
22645
22646 int
22647 main ()
22648 {
22649 if ((std::istream *) 0)
22650   return 0;
22651 if (sizeof (std::istream))
22652   return 0;
22653   ;
22654   return 0;
22655 }
22656 _ACEOF
22657 rm -f conftest.$ac_objext
22658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22659   (eval $ac_compile) 2>conftest.er1
22660   ac_status=$?
22661   grep -v '^ *+' conftest.er1 >conftest.err
22662   rm -f conftest.er1
22663   cat conftest.err >&5
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); } &&
22666          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668   (eval $ac_try) 2>&5
22669   ac_status=$?
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); }; } &&
22672          { ac_try='test -s conftest.$ac_objext'
22673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674   (eval $ac_try) 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); }; }; then
22678   ac_cv_type_std__istream=yes
22679 else
22680   echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22682
22683 ac_cv_type_std__istream=no
22684 fi
22685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22686 fi
22687 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22688 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22689 if test $ac_cv_type_std__istream = yes; then
22690
22691 cat >>confdefs.h <<_ACEOF
22692 #define HAVE_STD__ISTREAM 1
22693 _ACEOF
22694
22695
22696 else
22697   wxUSE_STD_IOSTREAM=no
22698 fi
22699 echo "$as_me:$LINENO: checking for std::ostream" >&5
22700 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22701 if test "${ac_cv_type_std__ostream+set}" = set; then
22702   echo $ECHO_N "(cached) $ECHO_C" >&6
22703 else
22704   cat >conftest.$ac_ext <<_ACEOF
22705 /* confdefs.h.  */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h.  */
22710 #include <iostream>
22711
22712 int
22713 main ()
22714 {
22715 if ((std::ostream *) 0)
22716   return 0;
22717 if (sizeof (std::ostream))
22718   return 0;
22719   ;
22720   return 0;
22721 }
22722 _ACEOF
22723 rm -f conftest.$ac_objext
22724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22725   (eval $ac_compile) 2>conftest.er1
22726   ac_status=$?
22727   grep -v '^ *+' conftest.er1 >conftest.err
22728   rm -f conftest.er1
22729   cat conftest.err >&5
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); } &&
22732          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734   (eval $ac_try) 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); }; } &&
22738          { ac_try='test -s conftest.$ac_objext'
22739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740   (eval $ac_try) 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); }; }; then
22744   ac_cv_type_std__ostream=yes
22745 else
22746   echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749 ac_cv_type_std__ostream=no
22750 fi
22751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22752 fi
22753 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22754 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22755 if test $ac_cv_type_std__ostream = yes; then
22756
22757 cat >>confdefs.h <<_ACEOF
22758 #define HAVE_STD__OSTREAM 1
22759 _ACEOF
22760
22761
22762 else
22763   wxUSE_STD_IOSTREAM=no
22764 fi
22765
22766
22767     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
22768         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22769             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22770 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22771    { (exit 1); exit 1; }; }
22772         else
22773             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
22774 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
22775         fi
22776     fi
22777
22778     ac_ext=c
22779 ac_cpp='$CPP $CPPFLAGS'
22780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22783
22784 fi
22785
22786 if test "$wxUSE_STL" = "yes"; then
22787     ac_ext=cc
22788 ac_cpp='$CXXCPP $CPPFLAGS'
22789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22792
22793
22794         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22795 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
22796     cat >conftest.$ac_ext <<_ACEOF
22797 /* confdefs.h.  */
22798 _ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h.  */
22802 #include <string>
22803                     #include <functional>
22804                     #include <algorithm>
22805                     #include <vector>
22806                     #include <list>
22807 int
22808 main ()
22809 {
22810 std::vector<int> moo;
22811                      std::list<int> foo;
22812                      std::vector<int>::iterator it =
22813                          std::find_if(moo.begin(), moo.end(),
22814                                       std::bind2nd(std::less<int>(), 3));
22815   ;
22816   return 0;
22817 }
22818 _ACEOF
22819 rm -f conftest.$ac_objext
22820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22821   (eval $ac_compile) 2>conftest.er1
22822   ac_status=$?
22823   grep -v '^ *+' conftest.er1 >conftest.err
22824   rm -f conftest.er1
22825   cat conftest.err >&5
22826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827   (exit $ac_status); } &&
22828          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830   (eval $ac_try) 2>&5
22831   ac_status=$?
22832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833   (exit $ac_status); }; } &&
22834          { ac_try='test -s conftest.$ac_objext'
22835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836   (eval $ac_try) 2>&5
22837   ac_status=$?
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); }; }; then
22840   echo "$as_me:$LINENO: result: yes" >&5
22841 echo "${ECHO_T}yes" >&6
22842 else
22843   echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22845
22846 echo "$as_me:$LINENO: result: no" >&5
22847 echo "${ECHO_T}no" >&6
22848                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22849 echo "$as_me: error: Basic STL functionality missing" >&2;}
22850    { (exit 1); exit 1; }; }
22851 fi
22852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22853
22854         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22855 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22856     cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h.  */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h.  */
22862 #include <string>
22863 int
22864 main ()
22865 {
22866 std::string foo, bar;
22867                     foo.compare(bar);
22868                     foo.compare(1, 1, bar);
22869                     foo.compare(1, 1, bar, 1, 1);
22870                     foo.compare("");
22871                     foo.compare(1, 1, "");
22872                     foo.compare(1, 1, "", 2);
22873   ;
22874   return 0;
22875 }
22876 _ACEOF
22877 rm -f conftest.$ac_objext
22878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22879   (eval $ac_compile) 2>conftest.er1
22880   ac_status=$?
22881   grep -v '^ *+' conftest.er1 >conftest.err
22882   rm -f conftest.er1
22883   cat conftest.err >&5
22884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885   (exit $ac_status); } &&
22886          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888   (eval $ac_try) 2>&5
22889   ac_status=$?
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); }; } &&
22892          { ac_try='test -s conftest.$ac_objext'
22893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894   (eval $ac_try) 2>&5
22895   ac_status=$?
22896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897   (exit $ac_status); }; }; then
22898   echo "$as_me:$LINENO: result: yes" >&5
22899 echo "${ECHO_T}yes" >&6
22900                     cat >>confdefs.h <<\_ACEOF
22901 #define HAVE_STD_STRING_COMPARE 1
22902 _ACEOF
22903
22904 else
22905   echo "$as_me: failed program was:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22907
22908 echo "$as_me:$LINENO: result: no" >&5
22909 echo "${ECHO_T}no" >&6
22910 fi
22911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22912
22913         if test "${ac_cv_header_hash_map+set}" = set; then
22914   echo "$as_me:$LINENO: checking for hash_map" >&5
22915 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22916 if test "${ac_cv_header_hash_map+set}" = set; then
22917   echo $ECHO_N "(cached) $ECHO_C" >&6
22918 fi
22919 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22920 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22921 else
22922   # Is the header compilable?
22923 echo "$as_me:$LINENO: checking hash_map usability" >&5
22924 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22925 cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h.  */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h.  */
22931 $ac_includes_default
22932 #include <hash_map>
22933 _ACEOF
22934 rm -f conftest.$ac_objext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22936   (eval $ac_compile) 2>conftest.er1
22937   ac_status=$?
22938   grep -v '^ *+' conftest.er1 >conftest.err
22939   rm -f conftest.er1
22940   cat conftest.err >&5
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); } &&
22943          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945   (eval $ac_try) 2>&5
22946   ac_status=$?
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); }; } &&
22949          { ac_try='test -s conftest.$ac_objext'
22950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951   (eval $ac_try) 2>&5
22952   ac_status=$?
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); }; }; then
22955   ac_header_compiler=yes
22956 else
22957   echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22959
22960 ac_header_compiler=no
22961 fi
22962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22964 echo "${ECHO_T}$ac_header_compiler" >&6
22965
22966 # Is the header present?
22967 echo "$as_me:$LINENO: checking hash_map presence" >&5
22968 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
22969 cat >conftest.$ac_ext <<_ACEOF
22970 /* confdefs.h.  */
22971 _ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h.  */
22975 #include <hash_map>
22976 _ACEOF
22977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22979   ac_status=$?
22980   grep -v '^ *+' conftest.er1 >conftest.err
22981   rm -f conftest.er1
22982   cat conftest.err >&5
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); } >/dev/null; then
22985   if test -s conftest.err; then
22986     ac_cpp_err=$ac_cxx_preproc_warn_flag
22987     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22988   else
22989     ac_cpp_err=
22990   fi
22991 else
22992   ac_cpp_err=yes
22993 fi
22994 if test -z "$ac_cpp_err"; then
22995   ac_header_preproc=yes
22996 else
22997   echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
22999
23000   ac_header_preproc=no
23001 fi
23002 rm -f conftest.err conftest.$ac_ext
23003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23004 echo "${ECHO_T}$ac_header_preproc" >&6
23005
23006 # So?  What about this header?
23007 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23008   yes:no: )
23009     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23010 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23011     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23012 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23013     ac_header_preproc=yes
23014     ;;
23015   no:yes:* )
23016     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23017 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
23018     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
23019 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
23020     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23021 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23022     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23023 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23024     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23025 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
23026     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23027 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
23028     (
23029       cat <<\_ASBOX
23030 ## ----------------------------------------- ##
23031 ## Report this to wx-dev@lists.wxwidgets.org ##
23032 ## ----------------------------------------- ##
23033 _ASBOX
23034     ) |
23035       sed "s/^/$as_me: WARNING:     /" >&2
23036     ;;
23037 esac
23038 echo "$as_me:$LINENO: checking for hash_map" >&5
23039 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23040 if test "${ac_cv_header_hash_map+set}" = set; then
23041   echo $ECHO_N "(cached) $ECHO_C" >&6
23042 else
23043   ac_cv_header_hash_map=$ac_header_preproc
23044 fi
23045 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23046 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23047
23048 fi
23049 if test $ac_cv_header_hash_map = yes; then
23050   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23051 echo $ECHO_N "checking for hash_map and hash_set... $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 <hash_map>
23059                                      #include <hash_set>
23060 int
23061 main ()
23062 {
23063 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23064                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 rm -f conftest.$ac_objext
23070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23071   (eval $ac_compile) 2>conftest.er1
23072   ac_status=$?
23073   grep -v '^ *+' conftest.er1 >conftest.err
23074   rm -f conftest.er1
23075   cat conftest.err >&5
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); } &&
23078          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23080   (eval $ac_try) 2>&5
23081   ac_status=$?
23082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083   (exit $ac_status); }; } &&
23084          { ac_try='test -s conftest.$ac_objext'
23085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086   (eval $ac_try) 2>&5
23087   ac_status=$?
23088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); }; }; then
23090   echo "$as_me:$LINENO: result: yes" >&5
23091 echo "${ECHO_T}yes" >&6
23092                                      cat >>confdefs.h <<\_ACEOF
23093 #define HAVE_HASH_MAP 1
23094 _ACEOF
23095
23096                                      cat >>confdefs.h <<\_ACEOF
23097 #define HAVE_STD_HASH_MAP 1
23098 _ACEOF
23099
23100 else
23101   echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23103
23104 echo "$as_me:$LINENO: result: no" >&5
23105 echo "${ECHO_T}no" >&6
23106 fi
23107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23108
23109 fi
23110
23111
23112
23113     if test "${ac_cv_header_ext_hash_map+set}" = set; then
23114   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23115 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23116 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23117   echo $ECHO_N "(cached) $ECHO_C" >&6
23118 fi
23119 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23120 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23121 else
23122   # Is the header compilable?
23123 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23124 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23125 cat >conftest.$ac_ext <<_ACEOF
23126 /* confdefs.h.  */
23127 _ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h.  */
23131 $ac_includes_default
23132 #include <ext/hash_map>
23133 _ACEOF
23134 rm -f conftest.$ac_objext
23135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23136   (eval $ac_compile) 2>conftest.er1
23137   ac_status=$?
23138   grep -v '^ *+' conftest.er1 >conftest.err
23139   rm -f conftest.er1
23140   cat conftest.err >&5
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); } &&
23143          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145   (eval $ac_try) 2>&5
23146   ac_status=$?
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); }; } &&
23149          { ac_try='test -s conftest.$ac_objext'
23150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151   (eval $ac_try) 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); }; }; then
23155   ac_header_compiler=yes
23156 else
23157   echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23159
23160 ac_header_compiler=no
23161 fi
23162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23164 echo "${ECHO_T}$ac_header_compiler" >&6
23165
23166 # Is the header present?
23167 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23168 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23169 cat >conftest.$ac_ext <<_ACEOF
23170 /* confdefs.h.  */
23171 _ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h.  */
23175 #include <ext/hash_map>
23176 _ACEOF
23177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23179   ac_status=$?
23180   grep -v '^ *+' conftest.er1 >conftest.err
23181   rm -f conftest.er1
23182   cat conftest.err >&5
23183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184   (exit $ac_status); } >/dev/null; then
23185   if test -s conftest.err; then
23186     ac_cpp_err=$ac_cxx_preproc_warn_flag
23187     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23188   else
23189     ac_cpp_err=
23190   fi
23191 else
23192   ac_cpp_err=yes
23193 fi
23194 if test -z "$ac_cpp_err"; then
23195   ac_header_preproc=yes
23196 else
23197   echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23199
23200   ac_header_preproc=no
23201 fi
23202 rm -f conftest.err conftest.$ac_ext
23203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23204 echo "${ECHO_T}$ac_header_preproc" >&6
23205
23206 # So?  What about this header?
23207 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23208   yes:no: )
23209     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23210 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23211     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23212 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23213     ac_header_preproc=yes
23214     ;;
23215   no:yes:* )
23216     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23217 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
23218     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
23219 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
23220     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23221 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23222     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23223 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23224     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23225 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
23226     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23227 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
23228     (
23229       cat <<\_ASBOX
23230 ## ----------------------------------------- ##
23231 ## Report this to wx-dev@lists.wxwidgets.org ##
23232 ## ----------------------------------------- ##
23233 _ASBOX
23234     ) |
23235       sed "s/^/$as_me: WARNING:     /" >&2
23236     ;;
23237 esac
23238 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23239 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23240 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23241   echo $ECHO_N "(cached) $ECHO_C" >&6
23242 else
23243   ac_cv_header_ext_hash_map=$ac_header_preproc
23244 fi
23245 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23246 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23247
23248 fi
23249 if test $ac_cv_header_ext_hash_map = yes; then
23250   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23251 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23252                      cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h.  */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h.  */
23258 #include <ext/hash_map>
23259                                      #include <ext/hash_set>
23260 int
23261 main ()
23262 {
23263 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23264                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23265   ;
23266   return 0;
23267 }
23268 _ACEOF
23269 rm -f conftest.$ac_objext
23270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23271   (eval $ac_compile) 2>conftest.er1
23272   ac_status=$?
23273   grep -v '^ *+' conftest.er1 >conftest.err
23274   rm -f conftest.er1
23275   cat conftest.err >&5
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } &&
23278          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280   (eval $ac_try) 2>&5
23281   ac_status=$?
23282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283   (exit $ac_status); }; } &&
23284          { ac_try='test -s conftest.$ac_objext'
23285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286   (eval $ac_try) 2>&5
23287   ac_status=$?
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); }; }; then
23290   echo "$as_me:$LINENO: result: yes" >&5
23291 echo "${ECHO_T}yes" >&6
23292                                      cat >>confdefs.h <<\_ACEOF
23293 #define HAVE_EXT_HASH_MAP 1
23294 _ACEOF
23295
23296                                      cat >>confdefs.h <<\_ACEOF
23297 #define HAVE_GNU_CXX_HASH_MAP 1
23298 _ACEOF
23299
23300 else
23301   echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23303
23304 echo "$as_me:$LINENO: result: no" >&5
23305 echo "${ECHO_T}no" >&6
23306 fi
23307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23308
23309 fi
23310
23311
23312
23313     ac_ext=c
23314 ac_cpp='$CPP $CPPFLAGS'
23315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23318
23319 fi
23320
23321
23322 SEARCH_INCLUDE="\
23323     /usr/local/include        \
23324                               \
23325     /usr/Motif-2.1/include    \
23326     /usr/Motif-1.2/include    \
23327     /usr/include/Motif1.2     \
23328                               \
23329     /usr/dt/include           \
23330     /usr/openwin/include      \
23331                               \
23332     /usr/include/Xm           \
23333                               \
23334     /usr/X11R6/include        \
23335     /usr/X11R6.4/include      \
23336     /usr/X11R5/include        \
23337     /usr/X11R4/include        \
23338                               \
23339     /usr/include/X11R6        \
23340     /usr/include/X11R5        \
23341     /usr/include/X11R4        \
23342                               \
23343     /usr/local/X11R6/include  \
23344     /usr/local/X11R5/include  \
23345     /usr/local/X11R4/include  \
23346                               \
23347     /usr/local/include/X11R6  \
23348     /usr/local/include/X11R5  \
23349     /usr/local/include/X11R4  \
23350                               \
23351     /usr/X11/include          \
23352     /usr/include/X11          \
23353     /usr/local/X11/include    \
23354     /usr/local/include/X11    \
23355                               \
23356     /usr/XFree86/include/X11  \
23357     /usr/pkg/include          \
23358                               \
23359     /usr/openwin/share/include"
23360
23361 echo "$as_me:$LINENO: checking for libraries directory" >&5
23362 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
23363
23364 case "${host}" in
23365     *-*-irix6* )
23366         if test "${wx_cv_std_libpath+set}" = set; then
23367   echo $ECHO_N "(cached) $ECHO_C" >&6
23368 else
23369
23370                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23371                     for e in a so sl dylib dll.a; do
23372                         libc="$d/libc.$e"
23373                         if test -f $libc; then
23374                             save_LIBS="$LIBS"
23375                             LIBS="$libc"
23376                             cat >conftest.$ac_ext <<_ACEOF
23377 int main() { return 0; }
23378 _ACEOF
23379 rm -f conftest.$ac_objext conftest$ac_exeext
23380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23381   (eval $ac_link) 2>conftest.er1
23382   ac_status=$?
23383   grep -v '^ *+' conftest.er1 >conftest.err
23384   rm -f conftest.er1
23385   cat conftest.err >&5
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); } &&
23388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390   (eval $ac_try) 2>&5
23391   ac_status=$?
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); }; } &&
23394          { ac_try='test -s conftest$ac_exeext'
23395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396   (eval $ac_try) 2>&5
23397   ac_status=$?
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); }; }; then
23400   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23401 else
23402   echo "$as_me: failed program was:" >&5
23403 sed 's/^/| /' conftest.$ac_ext >&5
23404
23405 fi
23406 rm -f conftest.err conftest.$ac_objext \
23407       conftest$ac_exeext conftest.$ac_ext
23408                             LIBS="$save_LIBS"
23409                             if test "x$wx_cv_std_libpath" != "x"; then
23410                                 break 2
23411                             fi
23412                         fi
23413                     done
23414                 done
23415                 if test "x$wx_cv_std_libpath" = "x"; then
23416                     wx_cv_std_libpath="lib"
23417                 fi
23418
23419
23420 fi
23421
23422         ;;
23423
23424     *-*-solaris2* )
23425                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23426             wx_cv_std_libpath="lib/64"
23427         else
23428             wx_cv_std_libpath="lib"
23429         fi
23430         ;;
23431
23432     *-*-linux* )
23433                 if test "$ac_cv_sizeof_void_p" = 8 -a \
23434                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23435             wx_cv_std_libpath="lib64"
23436         else
23437             wx_cv_std_libpath="lib"
23438         fi
23439         ;;
23440
23441     *)
23442         wx_cv_std_libpath="lib";
23443         ;;
23444 esac
23445
23446 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23447 echo "${ECHO_T}$wx_cv_std_libpath" >&6
23448
23449 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
23450
23451 if test "$build" != "$host" -a "$GCC" = yes; then
23452                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23453         cross_root=`dirname $cross_root`
23454         cross_root=`dirname $cross_root`
23455
23456                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23457         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23458
23459                 if test -z "$PKG_CONFIG_PATH"; then
23460             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23461             export PKG_CONFIG_PATH
23462         fi
23463
23464                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
23465
23466 ac_find_includes=
23467 for ac_dir in $SEARCH_INCLUDE /usr/include;
23468   do
23469     if test -f "$ac_dir/X11/Intrinsic.h"; then
23470       ac_find_includes=$ac_dir
23471       break
23472     fi
23473   done
23474
23475             x_includes=$ac_find_includes
23476         fi
23477         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23478
23479   ac_find_libraries=
23480   for ac_dir in $SEARCH_LIB;
23481   do
23482     for ac_extension in a so sl dylib dll.a; do
23483       if test -f "$ac_dir/libXt.$ac_extension"; then
23484         ac_find_libraries=$ac_dir
23485         break 2
23486       fi
23487     done
23488   done
23489
23490             x_libraries=$ac_find_libraries
23491         fi
23492     fi
23493 fi
23494
23495
23496 cat >confcache <<\_ACEOF
23497 # This file is a shell script that caches the results of configure
23498 # tests run on this system so they can be shared between configure
23499 # scripts and configure runs, see configure's option --config-cache.
23500 # It is not useful on other systems.  If it contains results you don't
23501 # want to keep, you may remove or edit it.
23502 #
23503 # config.status only pays attention to the cache file if you give it
23504 # the --recheck option to rerun configure.
23505 #
23506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23508 # following values.
23509
23510 _ACEOF
23511
23512 # The following way of writing the cache mishandles newlines in values,
23513 # but we know of no workaround that is simple, portable, and efficient.
23514 # So, don't put newlines in cache variables' values.
23515 # Ultrix sh set writes to stderr and can't be redirected directly,
23516 # and sets the high bit in the cache file unless we assign to the vars.
23517 {
23518   (set) 2>&1 |
23519     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23520     *ac_space=\ *)
23521       # `set' does not quote correctly, so add quotes (double-quote
23522       # substitution turns \\\\ into \\, and sed turns \\ into \).
23523       sed -n \
23524         "s/'/'\\\\''/g;
23525           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23526       ;;
23527     *)
23528       # `set' quotes correctly as required by POSIX, so do not add quotes.
23529       sed -n \
23530         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23531       ;;
23532     esac;
23533 } |
23534   sed '
23535      t clear
23536      : clear
23537      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23538      t end
23539      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23540      : end' >>confcache
23541 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23542   if test -w $cache_file; then
23543     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23544     cat confcache >$cache_file
23545   else
23546     echo "not updating unwritable cache $cache_file"
23547   fi
23548 fi
23549 rm -f confcache
23550
23551 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23552     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23553 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23554 if test "${wx_cv_lib_glibc21+set}" = set; then
23555   echo $ECHO_N "(cached) $ECHO_C" >&6
23556 else
23557
23558         cat >conftest.$ac_ext <<_ACEOF
23559 /* confdefs.h.  */
23560 _ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h.  */
23564 #include <features.h>
23565 int
23566 main ()
23567 {
23568
23569                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
23570                 not glibc 2.1
23571                 #endif
23572
23573   ;
23574   return 0;
23575 }
23576 _ACEOF
23577 rm -f conftest.$ac_objext
23578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23579   (eval $ac_compile) 2>conftest.er1
23580   ac_status=$?
23581   grep -v '^ *+' conftest.er1 >conftest.err
23582   rm -f conftest.er1
23583   cat conftest.err >&5
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); } &&
23586          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588   (eval $ac_try) 2>&5
23589   ac_status=$?
23590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591   (exit $ac_status); }; } &&
23592          { ac_try='test -s conftest.$ac_objext'
23593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594   (eval $ac_try) 2>&5
23595   ac_status=$?
23596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); }; }; then
23598
23599                 wx_cv_lib_glibc21=yes
23600
23601 else
23602   echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605
23606                 wx_cv_lib_glibc21=no
23607
23608
23609 fi
23610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23611
23612 fi
23613 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23614 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23615     if test "$wx_cv_lib_glibc21" = "yes"; then
23616         cat >>confdefs.h <<\_ACEOF
23617 #define wxHAVE_GLIBC2 1
23618 _ACEOF
23619
23620     fi
23621 fi
23622
23623 if test "x$wx_cv_lib_glibc21" = "xyes"; then
23624     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23625         cat >>confdefs.h <<\_ACEOF
23626 #define _GNU_SOURCE 1
23627 _ACEOF
23628
23629     fi
23630 fi
23631
23632
23633
23634 if test "$wxUSE_REGEX" != "no"; then
23635     cat >>confdefs.h <<\_ACEOF
23636 #define wxUSE_REGEX 1
23637 _ACEOF
23638
23639
23640     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23641         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23642 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23643         wxUSE_REGEX=builtin
23644     fi
23645
23646     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23647                         if test "${ac_cv_header_regex_h+set}" = set; then
23648   echo "$as_me:$LINENO: checking for regex.h" >&5
23649 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23650 if test "${ac_cv_header_regex_h+set}" = set; then
23651   echo $ECHO_N "(cached) $ECHO_C" >&6
23652 fi
23653 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23654 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23655 else
23656   # Is the header compilable?
23657 echo "$as_me:$LINENO: checking regex.h usability" >&5
23658 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23659 cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h.  */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h.  */
23665 $ac_includes_default
23666 #include <regex.h>
23667 _ACEOF
23668 rm -f conftest.$ac_objext
23669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23670   (eval $ac_compile) 2>conftest.er1
23671   ac_status=$?
23672   grep -v '^ *+' conftest.er1 >conftest.err
23673   rm -f conftest.er1
23674   cat conftest.err >&5
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); } &&
23677          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679   (eval $ac_try) 2>&5
23680   ac_status=$?
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); }; } &&
23683          { ac_try='test -s conftest.$ac_objext'
23684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685   (eval $ac_try) 2>&5
23686   ac_status=$?
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); }; }; then
23689   ac_header_compiler=yes
23690 else
23691   echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23693
23694 ac_header_compiler=no
23695 fi
23696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23698 echo "${ECHO_T}$ac_header_compiler" >&6
23699
23700 # Is the header present?
23701 echo "$as_me:$LINENO: checking regex.h presence" >&5
23702 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23703 cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h.  */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h.  */
23709 #include <regex.h>
23710 _ACEOF
23711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23712   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23713   ac_status=$?
23714   grep -v '^ *+' conftest.er1 >conftest.err
23715   rm -f conftest.er1
23716   cat conftest.err >&5
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); } >/dev/null; then
23719   if test -s conftest.err; then
23720     ac_cpp_err=$ac_c_preproc_warn_flag
23721     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23722   else
23723     ac_cpp_err=
23724   fi
23725 else
23726   ac_cpp_err=yes
23727 fi
23728 if test -z "$ac_cpp_err"; then
23729   ac_header_preproc=yes
23730 else
23731   echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23733
23734   ac_header_preproc=no
23735 fi
23736 rm -f conftest.err conftest.$ac_ext
23737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23738 echo "${ECHO_T}$ac_header_preproc" >&6
23739
23740 # So?  What about this header?
23741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23742   yes:no: )
23743     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23744 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23745     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23746 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23747     ac_header_preproc=yes
23748     ;;
23749   no:yes:* )
23750     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23751 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23752     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
23753 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
23754     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23755 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23756     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
23757 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23758     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23759 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23760     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23761 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23762     (
23763       cat <<\_ASBOX
23764 ## ----------------------------------------- ##
23765 ## Report this to wx-dev@lists.wxwidgets.org ##
23766 ## ----------------------------------------- ##
23767 _ASBOX
23768     ) |
23769       sed "s/^/$as_me: WARNING:     /" >&2
23770     ;;
23771 esac
23772 echo "$as_me:$LINENO: checking for regex.h" >&5
23773 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23774 if test "${ac_cv_header_regex_h+set}" = set; then
23775   echo $ECHO_N "(cached) $ECHO_C" >&6
23776 else
23777   ac_cv_header_regex_h=$ac_header_preproc
23778 fi
23779 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23780 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23781
23782 fi
23783 if test $ac_cv_header_regex_h = yes; then
23784
23785 for ac_func in regcomp
23786 do
23787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23788 echo "$as_me:$LINENO: checking for $ac_func" >&5
23789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23790 if eval "test \"\${$as_ac_var+set}\" = set"; then
23791   echo $ECHO_N "(cached) $ECHO_C" >&6
23792 else
23793   cat >conftest.$ac_ext <<_ACEOF
23794 /* confdefs.h.  */
23795 _ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h.  */
23799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23801 #define $ac_func innocuous_$ac_func
23802
23803 /* System header to define __stub macros and hopefully few prototypes,
23804     which can conflict with char $ac_func (); below.
23805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23806     <limits.h> exists even on freestanding compilers.  */
23807
23808 #ifdef __STDC__
23809 # include <limits.h>
23810 #else
23811 # include <assert.h>
23812 #endif
23813
23814 #undef $ac_func
23815
23816 /* Override any gcc2 internal prototype to avoid an error.  */
23817 #ifdef __cplusplus
23818 extern "C"
23819 {
23820 #endif
23821 /* We use char because int might match the return type of a gcc2
23822    builtin and then its argument prototype would still apply.  */
23823 char $ac_func ();
23824 /* The GNU C library defines this for functions which it implements
23825     to always fail with ENOSYS.  Some functions are actually named
23826     something starting with __ and the normal name is an alias.  */
23827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23828 choke me
23829 #else
23830 char (*f) () = $ac_func;
23831 #endif
23832 #ifdef __cplusplus
23833 }
23834 #endif
23835
23836 int
23837 main ()
23838 {
23839 return f != $ac_func;
23840   ;
23841   return 0;
23842 }
23843 _ACEOF
23844 rm -f conftest.$ac_objext conftest$ac_exeext
23845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23846   (eval $ac_link) 2>conftest.er1
23847   ac_status=$?
23848   grep -v '^ *+' conftest.er1 >conftest.err
23849   rm -f conftest.er1
23850   cat conftest.err >&5
23851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852   (exit $ac_status); } &&
23853          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23855   (eval $ac_try) 2>&5
23856   ac_status=$?
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); }; } &&
23859          { ac_try='test -s conftest$ac_exeext'
23860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861   (eval $ac_try) 2>&5
23862   ac_status=$?
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); }; }; then
23865   eval "$as_ac_var=yes"
23866 else
23867   echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23869
23870 eval "$as_ac_var=no"
23871 fi
23872 rm -f conftest.err conftest.$ac_objext \
23873       conftest$ac_exeext conftest.$ac_ext
23874 fi
23875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23877 if test `eval echo '${'$as_ac_var'}'` = yes; then
23878   cat >>confdefs.h <<_ACEOF
23879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23880 _ACEOF
23881
23882 fi
23883 done
23884
23885 fi
23886
23887
23888
23889         if test "x$ac_cv_func_regcomp" != "xyes"; then
23890             if test "$wxUSE_REGEX" = "sys" ; then
23891                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23892 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23893    { (exit 1); exit 1; }; }
23894             else
23895                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23896 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23897                 wxUSE_REGEX=builtin
23898             fi
23899         else
23900                         wxUSE_REGEX=sys
23901                         cat >>confdefs.h <<\_ACEOF
23902 #define WX_NO_REGEX_ADVANCED 1
23903 _ACEOF
23904
23905         fi
23906     fi
23907 fi
23908
23909
23910 ZLIB_LINK=
23911 if test "$wxUSE_ZLIB" != "no" ; then
23912     cat >>confdefs.h <<\_ACEOF
23913 #define wxUSE_ZLIB 1
23914 _ACEOF
23915
23916
23917     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23918                                                 if test "$USE_DARWIN" = 1; then
23919             system_zlib_h_ok="yes"
23920         else
23921                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23922 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23923 if test "${ac_cv_header_zlib_h+set}" = set; then
23924   echo $ECHO_N "(cached) $ECHO_C" >&6
23925 else
23926   if test "$cross_compiling" = yes; then
23927                       unset ac_cv_header_zlib_h
23928
23929 else
23930   cat >conftest.$ac_ext <<_ACEOF
23931 /* confdefs.h.  */
23932 _ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h.  */
23936
23937                         #include <zlib.h>
23938                         #include <stdio.h>
23939
23940                         int main()
23941                         {
23942                             FILE *f=fopen("conftestval", "w");
23943                             if (!f) exit(1);
23944                             fprintf(f, "%s",
23945                                     ZLIB_VERSION[0] == '1' &&
23946                                     (ZLIB_VERSION[2] > '1' ||
23947                                     (ZLIB_VERSION[2] == '1' &&
23948                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23949                             exit(0);
23950                         }
23951
23952 _ACEOF
23953 rm -f conftest$ac_exeext
23954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23955   (eval $ac_link) 2>&5
23956   ac_status=$?
23957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960   (eval $ac_try) 2>&5
23961   ac_status=$?
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); }; }; then
23964   ac_cv_header_zlib_h=`cat conftestval`
23965 else
23966   echo "$as_me: program exited with status $ac_status" >&5
23967 echo "$as_me: failed program was:" >&5
23968 sed 's/^/| /' conftest.$ac_ext >&5
23969
23970 ( exit $ac_status )
23971 ac_cv_header_zlib_h=no
23972 fi
23973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23974 fi
23975
23976 fi
23977 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23978 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23979                                     if test "${ac_cv_header_zlib_h+set}" = set; then
23980   echo "$as_me:$LINENO: checking for zlib.h" >&5
23981 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23982 if test "${ac_cv_header_zlib_h+set}" = set; then
23983   echo $ECHO_N "(cached) $ECHO_C" >&6
23984 fi
23985 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23986 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23987 else
23988   # Is the header compilable?
23989 echo "$as_me:$LINENO: checking zlib.h usability" >&5
23990 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23991 cat >conftest.$ac_ext <<_ACEOF
23992 /* confdefs.h.  */
23993 _ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h.  */
23997 $ac_includes_default
23998 #include <zlib.h>
23999 _ACEOF
24000 rm -f conftest.$ac_objext
24001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24002   (eval $ac_compile) 2>conftest.er1
24003   ac_status=$?
24004   grep -v '^ *+' conftest.er1 >conftest.err
24005   rm -f conftest.er1
24006   cat conftest.err >&5
24007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008   (exit $ac_status); } &&
24009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24011   (eval $ac_try) 2>&5
24012   ac_status=$?
24013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014   (exit $ac_status); }; } &&
24015          { ac_try='test -s conftest.$ac_objext'
24016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017   (eval $ac_try) 2>&5
24018   ac_status=$?
24019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020   (exit $ac_status); }; }; then
24021   ac_header_compiler=yes
24022 else
24023   echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24025
24026 ac_header_compiler=no
24027 fi
24028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24030 echo "${ECHO_T}$ac_header_compiler" >&6
24031
24032 # Is the header present?
24033 echo "$as_me:$LINENO: checking zlib.h presence" >&5
24034 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24035 cat >conftest.$ac_ext <<_ACEOF
24036 /* confdefs.h.  */
24037 _ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h.  */
24041 #include <zlib.h>
24042 _ACEOF
24043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24045   ac_status=$?
24046   grep -v '^ *+' conftest.er1 >conftest.err
24047   rm -f conftest.er1
24048   cat conftest.err >&5
24049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050   (exit $ac_status); } >/dev/null; then
24051   if test -s conftest.err; then
24052     ac_cpp_err=$ac_c_preproc_warn_flag
24053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24054   else
24055     ac_cpp_err=
24056   fi
24057 else
24058   ac_cpp_err=yes
24059 fi
24060 if test -z "$ac_cpp_err"; then
24061   ac_header_preproc=yes
24062 else
24063   echo "$as_me: failed program was:" >&5
24064 sed 's/^/| /' conftest.$ac_ext >&5
24065
24066   ac_header_preproc=no
24067 fi
24068 rm -f conftest.err conftest.$ac_ext
24069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24070 echo "${ECHO_T}$ac_header_preproc" >&6
24071
24072 # So?  What about this header?
24073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24074   yes:no: )
24075     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24076 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24077     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24078 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24079     ac_header_preproc=yes
24080     ;;
24081   no:yes:* )
24082     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24083 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
24084     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
24085 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
24086     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24087 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24088     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
24089 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24090     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24091 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
24092     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24093 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
24094     (
24095       cat <<\_ASBOX
24096 ## ----------------------------------------- ##
24097 ## Report this to wx-dev@lists.wxwidgets.org ##
24098 ## ----------------------------------------- ##
24099 _ASBOX
24100     ) |
24101       sed "s/^/$as_me: WARNING:     /" >&2
24102     ;;
24103 esac
24104 echo "$as_me:$LINENO: checking for zlib.h" >&5
24105 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24106 if test "${ac_cv_header_zlib_h+set}" = set; then
24107   echo $ECHO_N "(cached) $ECHO_C" >&6
24108 else
24109   ac_cv_header_zlib_h=$ac_header_preproc
24110 fi
24111 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24112 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24113
24114 fi
24115
24116
24117
24118             system_zlib_h_ok=$ac_cv_header_zlib_h
24119         fi
24120
24121         if test "$system_zlib_h_ok" = "yes"; then
24122             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24123 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24124 if test "${ac_cv_lib_z_deflate+set}" = set; then
24125   echo $ECHO_N "(cached) $ECHO_C" >&6
24126 else
24127   ac_check_lib_save_LIBS=$LIBS
24128 LIBS="-lz  $LIBS"
24129 cat >conftest.$ac_ext <<_ACEOF
24130 /* confdefs.h.  */
24131 _ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h.  */
24135
24136 /* Override any gcc2 internal prototype to avoid an error.  */
24137 #ifdef __cplusplus
24138 extern "C"
24139 #endif
24140 /* We use char because int might match the return type of a gcc2
24141    builtin and then its argument prototype would still apply.  */
24142 char deflate ();
24143 int
24144 main ()
24145 {
24146 deflate ();
24147   ;
24148   return 0;
24149 }
24150 _ACEOF
24151 rm -f conftest.$ac_objext conftest$ac_exeext
24152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24153   (eval $ac_link) 2>conftest.er1
24154   ac_status=$?
24155   grep -v '^ *+' conftest.er1 >conftest.err
24156   rm -f conftest.er1
24157   cat conftest.err >&5
24158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159   (exit $ac_status); } &&
24160          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162   (eval $ac_try) 2>&5
24163   ac_status=$?
24164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165   (exit $ac_status); }; } &&
24166          { ac_try='test -s conftest$ac_exeext'
24167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168   (eval $ac_try) 2>&5
24169   ac_status=$?
24170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171   (exit $ac_status); }; }; then
24172   ac_cv_lib_z_deflate=yes
24173 else
24174   echo "$as_me: failed program was:" >&5
24175 sed 's/^/| /' conftest.$ac_ext >&5
24176
24177 ac_cv_lib_z_deflate=no
24178 fi
24179 rm -f conftest.err conftest.$ac_objext \
24180       conftest$ac_exeext conftest.$ac_ext
24181 LIBS=$ac_check_lib_save_LIBS
24182 fi
24183 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24184 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24185 if test $ac_cv_lib_z_deflate = yes; then
24186   ZLIB_LINK=" -lz"
24187 fi
24188
24189         fi
24190
24191         if test "x$ZLIB_LINK" = "x" ; then
24192             if test "$wxUSE_ZLIB" = "sys" ; then
24193                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24194 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24195    { (exit 1); exit 1; }; }
24196             else
24197                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24198 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24199                 wxUSE_ZLIB=builtin
24200             fi
24201         else
24202                         wxUSE_ZLIB=sys
24203         fi
24204     fi
24205 fi
24206
24207
24208 PNG_LINK=
24209 if test "$wxUSE_LIBPNG" != "no" ; then
24210     cat >>confdefs.h <<\_ACEOF
24211 #define wxUSE_LIBPNG 1
24212 _ACEOF
24213
24214
24215     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24216         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24217 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24218         wxUSE_LIBPNG=sys
24219     fi
24220
24221                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24222         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24223 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24224         wxUSE_LIBPNG=builtin
24225     fi
24226
24227     if test "$wxUSE_MGL" != 1 ; then
24228                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24229                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24230 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24231 if test "${ac_cv_header_png_h+set}" = set; then
24232   echo $ECHO_N "(cached) $ECHO_C" >&6
24233 else
24234   if test "$cross_compiling" = yes; then
24235                       unset ac_cv_header_png_h
24236
24237 else
24238   cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h.  */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h.  */
24244
24245                         #include <png.h>
24246                         #include <stdio.h>
24247
24248                         int main()
24249                         {
24250                             FILE *f=fopen("conftestval", "w");
24251                             if (!f) exit(1);
24252                             fprintf(f, "%s",
24253                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
24254                             exit(0);
24255                         }
24256
24257 _ACEOF
24258 rm -f conftest$ac_exeext
24259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24260   (eval $ac_link) 2>&5
24261   ac_status=$?
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265   (eval $ac_try) 2>&5
24266   ac_status=$?
24267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268   (exit $ac_status); }; }; then
24269   ac_cv_header_png_h=`cat conftestval`
24270 else
24271   echo "$as_me: program exited with status $ac_status" >&5
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24274
24275 ( exit $ac_status )
24276 ac_cv_header_png_h=no
24277 fi
24278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24279 fi
24280
24281 fi
24282 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24283 echo "${ECHO_T}$ac_cv_header_png_h" >&6
24284             if test "${ac_cv_header_png_h+set}" = set; then
24285   echo "$as_me:$LINENO: checking for png.h" >&5
24286 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24287 if test "${ac_cv_header_png_h+set}" = set; then
24288   echo $ECHO_N "(cached) $ECHO_C" >&6
24289 fi
24290 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24291 echo "${ECHO_T}$ac_cv_header_png_h" >&6
24292 else
24293   # Is the header compilable?
24294 echo "$as_me:$LINENO: checking png.h usability" >&5
24295 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24296 cat >conftest.$ac_ext <<_ACEOF
24297 /* confdefs.h.  */
24298 _ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h.  */
24302 $ac_includes_default
24303 #include <png.h>
24304 _ACEOF
24305 rm -f conftest.$ac_objext
24306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24307   (eval $ac_compile) 2>conftest.er1
24308   ac_status=$?
24309   grep -v '^ *+' conftest.er1 >conftest.err
24310   rm -f conftest.er1
24311   cat conftest.err >&5
24312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313   (exit $ac_status); } &&
24314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24316   (eval $ac_try) 2>&5
24317   ac_status=$?
24318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319   (exit $ac_status); }; } &&
24320          { ac_try='test -s conftest.$ac_objext'
24321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24322   (eval $ac_try) 2>&5
24323   ac_status=$?
24324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325   (exit $ac_status); }; }; then
24326   ac_header_compiler=yes
24327 else
24328   echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24330
24331 ac_header_compiler=no
24332 fi
24333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24335 echo "${ECHO_T}$ac_header_compiler" >&6
24336
24337 # Is the header present?
24338 echo "$as_me:$LINENO: checking png.h presence" >&5
24339 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24340 cat >conftest.$ac_ext <<_ACEOF
24341 /* confdefs.h.  */
24342 _ACEOF
24343 cat confdefs.h >>conftest.$ac_ext
24344 cat >>conftest.$ac_ext <<_ACEOF
24345 /* end confdefs.h.  */
24346 #include <png.h>
24347 _ACEOF
24348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24349   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24350   ac_status=$?
24351   grep -v '^ *+' conftest.er1 >conftest.err
24352   rm -f conftest.er1
24353   cat conftest.err >&5
24354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355   (exit $ac_status); } >/dev/null; then
24356   if test -s conftest.err; then
24357     ac_cpp_err=$ac_c_preproc_warn_flag
24358     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24359   else
24360     ac_cpp_err=
24361   fi
24362 else
24363   ac_cpp_err=yes
24364 fi
24365 if test -z "$ac_cpp_err"; then
24366   ac_header_preproc=yes
24367 else
24368   echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24370
24371   ac_header_preproc=no
24372 fi
24373 rm -f conftest.err conftest.$ac_ext
24374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24375 echo "${ECHO_T}$ac_header_preproc" >&6
24376
24377 # So?  What about this header?
24378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24379   yes:no: )
24380     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24381 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24382     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24383 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24384     ac_header_preproc=yes
24385     ;;
24386   no:yes:* )
24387     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24388 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
24389     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
24390 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
24391     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24392 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24393     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
24394 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24395     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24396 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
24397     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24398 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
24399     (
24400       cat <<\_ASBOX
24401 ## ----------------------------------------- ##
24402 ## Report this to wx-dev@lists.wxwidgets.org ##
24403 ## ----------------------------------------- ##
24404 _ASBOX
24405     ) |
24406       sed "s/^/$as_me: WARNING:     /" >&2
24407     ;;
24408 esac
24409 echo "$as_me:$LINENO: checking for png.h" >&5
24410 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24411 if test "${ac_cv_header_png_h+set}" = set; then
24412   echo $ECHO_N "(cached) $ECHO_C" >&6
24413 else
24414   ac_cv_header_png_h=$ac_header_preproc
24415 fi
24416 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24417 echo "${ECHO_T}$ac_cv_header_png_h" >&6
24418
24419 fi
24420
24421
24422
24423             if test "$ac_cv_header_png_h" = "yes"; then
24424                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24425 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24426 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24427   echo $ECHO_N "(cached) $ECHO_C" >&6
24428 else
24429   ac_check_lib_save_LIBS=$LIBS
24430 LIBS="-lpng -lz -lm $LIBS"
24431 cat >conftest.$ac_ext <<_ACEOF
24432 /* confdefs.h.  */
24433 _ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h.  */
24437
24438 /* Override any gcc2 internal prototype to avoid an error.  */
24439 #ifdef __cplusplus
24440 extern "C"
24441 #endif
24442 /* We use char because int might match the return type of a gcc2
24443    builtin and then its argument prototype would still apply.  */
24444 char png_check_sig ();
24445 int
24446 main ()
24447 {
24448 png_check_sig ();
24449   ;
24450   return 0;
24451 }
24452 _ACEOF
24453 rm -f conftest.$ac_objext conftest$ac_exeext
24454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24455   (eval $ac_link) 2>conftest.er1
24456   ac_status=$?
24457   grep -v '^ *+' conftest.er1 >conftest.err
24458   rm -f conftest.er1
24459   cat conftest.err >&5
24460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); } &&
24462          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464   (eval $ac_try) 2>&5
24465   ac_status=$?
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); }; } &&
24468          { ac_try='test -s conftest$ac_exeext'
24469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470   (eval $ac_try) 2>&5
24471   ac_status=$?
24472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473   (exit $ac_status); }; }; then
24474   ac_cv_lib_png_png_check_sig=yes
24475 else
24476   echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24478
24479 ac_cv_lib_png_png_check_sig=no
24480 fi
24481 rm -f conftest.err conftest.$ac_objext \
24482       conftest$ac_exeext conftest.$ac_ext
24483 LIBS=$ac_check_lib_save_LIBS
24484 fi
24485 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24486 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24487 if test $ac_cv_lib_png_png_check_sig = yes; then
24488   PNG_LINK=" -lpng -lz"
24489 fi
24490
24491             fi
24492
24493             if test "x$PNG_LINK" = "x" ; then
24494                 if test "$wxUSE_LIBPNG" = "sys" ; then
24495                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24496 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24497    { (exit 1); exit 1; }; }
24498                 else
24499                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24500 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24501                     wxUSE_LIBPNG=builtin
24502                 fi
24503             else
24504                                 wxUSE_LIBPNG=sys
24505             fi
24506         fi
24507     fi
24508
24509     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24510 fi
24511
24512
24513 JPEG_LINK=
24514 if test "$wxUSE_LIBJPEG" != "no" ; then
24515     cat >>confdefs.h <<\_ACEOF
24516 #define wxUSE_LIBJPEG 1
24517 _ACEOF
24518
24519
24520     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24521         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24522 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24523         wxUSE_LIBJPEG=sys
24524     fi
24525
24526     if test "$wxUSE_MGL" != 1 ; then
24527                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24528                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24529 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24530             if test "${ac_cv_header_jpeglib_h+set}" = set; then
24531   echo $ECHO_N "(cached) $ECHO_C" >&6
24532 else
24533   cat >conftest.$ac_ext <<_ACEOF
24534 /* confdefs.h.  */
24535 _ACEOF
24536 cat confdefs.h >>conftest.$ac_ext
24537 cat >>conftest.$ac_ext <<_ACEOF
24538 /* end confdefs.h.  */
24539
24540                         #undef HAVE_STDLIB_H
24541                         #include <stdio.h>
24542                         #include <jpeglib.h>
24543
24544 int
24545 main ()
24546 {
24547
24548
24549   ;
24550   return 0;
24551 }
24552 _ACEOF
24553 rm -f conftest.$ac_objext
24554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24555   (eval $ac_compile) 2>conftest.er1
24556   ac_status=$?
24557   grep -v '^ *+' conftest.er1 >conftest.err
24558   rm -f conftest.er1
24559   cat conftest.err >&5
24560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561   (exit $ac_status); } &&
24562          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24564   (eval $ac_try) 2>&5
24565   ac_status=$?
24566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567   (exit $ac_status); }; } &&
24568          { ac_try='test -s conftest.$ac_objext'
24569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570   (eval $ac_try) 2>&5
24571   ac_status=$?
24572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573   (exit $ac_status); }; }; then
24574   ac_cv_header_jpeglib_h=yes
24575 else
24576   echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24578
24579 ac_cv_header_jpeglib_h=no
24580
24581 fi
24582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24583
24584 fi
24585
24586             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24587 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24588
24589             if test "$ac_cv_header_jpeglib_h" = "yes"; then
24590                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24591 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24592 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24593   echo $ECHO_N "(cached) $ECHO_C" >&6
24594 else
24595   ac_check_lib_save_LIBS=$LIBS
24596 LIBS="-ljpeg  $LIBS"
24597 cat >conftest.$ac_ext <<_ACEOF
24598 /* confdefs.h.  */
24599 _ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h.  */
24603
24604 /* Override any gcc2 internal prototype to avoid an error.  */
24605 #ifdef __cplusplus
24606 extern "C"
24607 #endif
24608 /* We use char because int might match the return type of a gcc2
24609    builtin and then its argument prototype would still apply.  */
24610 char jpeg_read_header ();
24611 int
24612 main ()
24613 {
24614 jpeg_read_header ();
24615   ;
24616   return 0;
24617 }
24618 _ACEOF
24619 rm -f conftest.$ac_objext conftest$ac_exeext
24620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24621   (eval $ac_link) 2>conftest.er1
24622   ac_status=$?
24623   grep -v '^ *+' conftest.er1 >conftest.err
24624   rm -f conftest.er1
24625   cat conftest.err >&5
24626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627   (exit $ac_status); } &&
24628          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630   (eval $ac_try) 2>&5
24631   ac_status=$?
24632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633   (exit $ac_status); }; } &&
24634          { ac_try='test -s conftest$ac_exeext'
24635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636   (eval $ac_try) 2>&5
24637   ac_status=$?
24638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639   (exit $ac_status); }; }; then
24640   ac_cv_lib_jpeg_jpeg_read_header=yes
24641 else
24642   echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24644
24645 ac_cv_lib_jpeg_jpeg_read_header=no
24646 fi
24647 rm -f conftest.err conftest.$ac_objext \
24648       conftest$ac_exeext conftest.$ac_ext
24649 LIBS=$ac_check_lib_save_LIBS
24650 fi
24651 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24652 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24653 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24654   JPEG_LINK=" -ljpeg"
24655 fi
24656
24657             fi
24658
24659             if test "x$JPEG_LINK" = "x" ; then
24660                 if test "$wxUSE_LIBJPEG" = "sys" ; then
24661                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24662 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24663    { (exit 1); exit 1; }; }
24664                 else
24665                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24666 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24667                     wxUSE_LIBJPEG=builtin
24668                 fi
24669             else
24670                                 wxUSE_LIBJPEG=sys
24671             fi
24672         fi
24673     fi
24674 fi
24675
24676
24677 TIFF_LINK=
24678 TIFF_PREREQ_LINKS=-lm
24679 if test "$wxUSE_LIBTIFF" != "no" ; then
24680     cat >>confdefs.h <<\_ACEOF
24681 #define wxUSE_LIBTIFF 1
24682 _ACEOF
24683
24684
24685     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24686                         if test "$wxUSE_LIBJPEG" = "sys"; then
24687             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24688         fi
24689         if test "$wxUSE_ZLIB" = "sys"; then
24690             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24691         fi
24692         if test "${ac_cv_header_tiffio_h+set}" = set; then
24693   echo "$as_me:$LINENO: checking for tiffio.h" >&5
24694 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24695 if test "${ac_cv_header_tiffio_h+set}" = set; then
24696   echo $ECHO_N "(cached) $ECHO_C" >&6
24697 fi
24698 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24699 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24700 else
24701   # Is the header compilable?
24702 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24703 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24704 cat >conftest.$ac_ext <<_ACEOF
24705 /* confdefs.h.  */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h.  */
24710 $ac_includes_default
24711 #include <tiffio.h>
24712 _ACEOF
24713 rm -f conftest.$ac_objext
24714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24715   (eval $ac_compile) 2>conftest.er1
24716   ac_status=$?
24717   grep -v '^ *+' conftest.er1 >conftest.err
24718   rm -f conftest.er1
24719   cat conftest.err >&5
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); } &&
24722          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724   (eval $ac_try) 2>&5
24725   ac_status=$?
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); }; } &&
24728          { ac_try='test -s conftest.$ac_objext'
24729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730   (eval $ac_try) 2>&5
24731   ac_status=$?
24732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); }; }; then
24734   ac_header_compiler=yes
24735 else
24736   echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24738
24739 ac_header_compiler=no
24740 fi
24741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24743 echo "${ECHO_T}$ac_header_compiler" >&6
24744
24745 # Is the header present?
24746 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24747 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24748 cat >conftest.$ac_ext <<_ACEOF
24749 /* confdefs.h.  */
24750 _ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h.  */
24754 #include <tiffio.h>
24755 _ACEOF
24756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24757   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24758   ac_status=$?
24759   grep -v '^ *+' conftest.er1 >conftest.err
24760   rm -f conftest.er1
24761   cat conftest.err >&5
24762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763   (exit $ac_status); } >/dev/null; then
24764   if test -s conftest.err; then
24765     ac_cpp_err=$ac_c_preproc_warn_flag
24766     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24767   else
24768     ac_cpp_err=
24769   fi
24770 else
24771   ac_cpp_err=yes
24772 fi
24773 if test -z "$ac_cpp_err"; then
24774   ac_header_preproc=yes
24775 else
24776   echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24778
24779   ac_header_preproc=no
24780 fi
24781 rm -f conftest.err conftest.$ac_ext
24782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24783 echo "${ECHO_T}$ac_header_preproc" >&6
24784
24785 # So?  What about this header?
24786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24787   yes:no: )
24788     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24789 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24790     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24791 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24792     ac_header_preproc=yes
24793     ;;
24794   no:yes:* )
24795     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24796 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
24797     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
24798 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
24799     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24800 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24801     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
24802 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24803     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24804 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
24805     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24806 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
24807     (
24808       cat <<\_ASBOX
24809 ## ----------------------------------------- ##
24810 ## Report this to wx-dev@lists.wxwidgets.org ##
24811 ## ----------------------------------------- ##
24812 _ASBOX
24813     ) |
24814       sed "s/^/$as_me: WARNING:     /" >&2
24815     ;;
24816 esac
24817 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24818 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24819 if test "${ac_cv_header_tiffio_h+set}" = set; then
24820   echo $ECHO_N "(cached) $ECHO_C" >&6
24821 else
24822   ac_cv_header_tiffio_h=$ac_header_preproc
24823 fi
24824 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24825 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24826
24827 fi
24828 if test $ac_cv_header_tiffio_h = yes; then
24829
24830                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24831 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24832 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24833   echo $ECHO_N "(cached) $ECHO_C" >&6
24834 else
24835   ac_check_lib_save_LIBS=$LIBS
24836 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24837 cat >conftest.$ac_ext <<_ACEOF
24838 /* confdefs.h.  */
24839 _ACEOF
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h.  */
24843
24844 /* Override any gcc2 internal prototype to avoid an error.  */
24845 #ifdef __cplusplus
24846 extern "C"
24847 #endif
24848 /* We use char because int might match the return type of a gcc2
24849    builtin and then its argument prototype would still apply.  */
24850 char TIFFError ();
24851 int
24852 main ()
24853 {
24854 TIFFError ();
24855   ;
24856   return 0;
24857 }
24858 _ACEOF
24859 rm -f conftest.$ac_objext conftest$ac_exeext
24860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24861   (eval $ac_link) 2>conftest.er1
24862   ac_status=$?
24863   grep -v '^ *+' conftest.er1 >conftest.err
24864   rm -f conftest.er1
24865   cat conftest.err >&5
24866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867   (exit $ac_status); } &&
24868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24870   (eval $ac_try) 2>&5
24871   ac_status=$?
24872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873   (exit $ac_status); }; } &&
24874          { ac_try='test -s conftest$ac_exeext'
24875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876   (eval $ac_try) 2>&5
24877   ac_status=$?
24878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879   (exit $ac_status); }; }; then
24880   ac_cv_lib_tiff_TIFFError=yes
24881 else
24882   echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24884
24885 ac_cv_lib_tiff_TIFFError=no
24886 fi
24887 rm -f conftest.err conftest.$ac_objext \
24888       conftest$ac_exeext conftest.$ac_ext
24889 LIBS=$ac_check_lib_save_LIBS
24890 fi
24891 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24892 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24893 if test $ac_cv_lib_tiff_TIFFError = yes; then
24894   TIFF_LINK=" -ltiff"
24895 fi
24896
24897
24898
24899 fi
24900
24901
24902
24903         if test "x$TIFF_LINK" = "x" ; then
24904             if test "$wxUSE_LIBTIFF" = "sys" ; then
24905                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24906 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24907    { (exit 1); exit 1; }; }
24908             else
24909                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24910 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24911                 wxUSE_LIBTIFF=builtin
24912             fi
24913         else
24914                         wxUSE_LIBTIFF=sys
24915         fi
24916     fi
24917 fi
24918
24919
24920 if test "$wxUSE_WCHAR_T" != "yes"; then
24921     if test "$wxUSE_EXPAT" != "no"; then
24922         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24923 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24924         wxUSE_EXPAT=no
24925     fi
24926     if test "$wxUSE_XML" != "no"; then
24927         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24928 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24929         wxUSE_XML=no
24930     fi
24931 fi
24932
24933 if test "$wxUSE_EXPAT" != "no"; then
24934     wxUSE_XML=yes
24935     cat >>confdefs.h <<\_ACEOF
24936 #define wxUSE_EXPAT 1
24937 _ACEOF
24938
24939     cat >>confdefs.h <<\_ACEOF
24940 #define wxUSE_XML 1
24941 _ACEOF
24942
24943
24944     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24945         if test "${ac_cv_header_expat_h+set}" = set; then
24946   echo "$as_me:$LINENO: checking for expat.h" >&5
24947 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24948 if test "${ac_cv_header_expat_h+set}" = set; then
24949   echo $ECHO_N "(cached) $ECHO_C" >&6
24950 fi
24951 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24952 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24953 else
24954   # Is the header compilable?
24955 echo "$as_me:$LINENO: checking expat.h usability" >&5
24956 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24957 cat >conftest.$ac_ext <<_ACEOF
24958 /* confdefs.h.  */
24959 _ACEOF
24960 cat confdefs.h >>conftest.$ac_ext
24961 cat >>conftest.$ac_ext <<_ACEOF
24962 /* end confdefs.h.  */
24963 $ac_includes_default
24964 #include <expat.h>
24965 _ACEOF
24966 rm -f conftest.$ac_objext
24967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24968   (eval $ac_compile) 2>conftest.er1
24969   ac_status=$?
24970   grep -v '^ *+' conftest.er1 >conftest.err
24971   rm -f conftest.er1
24972   cat conftest.err >&5
24973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974   (exit $ac_status); } &&
24975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977   (eval $ac_try) 2>&5
24978   ac_status=$?
24979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980   (exit $ac_status); }; } &&
24981          { ac_try='test -s conftest.$ac_objext'
24982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24983   (eval $ac_try) 2>&5
24984   ac_status=$?
24985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986   (exit $ac_status); }; }; then
24987   ac_header_compiler=yes
24988 else
24989   echo "$as_me: failed program was:" >&5
24990 sed 's/^/| /' conftest.$ac_ext >&5
24991
24992 ac_header_compiler=no
24993 fi
24994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24996 echo "${ECHO_T}$ac_header_compiler" >&6
24997
24998 # Is the header present?
24999 echo "$as_me:$LINENO: checking expat.h presence" >&5
25000 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25001 cat >conftest.$ac_ext <<_ACEOF
25002 /* confdefs.h.  */
25003 _ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h.  */
25007 #include <expat.h>
25008 _ACEOF
25009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25011   ac_status=$?
25012   grep -v '^ *+' conftest.er1 >conftest.err
25013   rm -f conftest.er1
25014   cat conftest.err >&5
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); } >/dev/null; then
25017   if test -s conftest.err; then
25018     ac_cpp_err=$ac_c_preproc_warn_flag
25019     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25020   else
25021     ac_cpp_err=
25022   fi
25023 else
25024   ac_cpp_err=yes
25025 fi
25026 if test -z "$ac_cpp_err"; then
25027   ac_header_preproc=yes
25028 else
25029   echo "$as_me: failed program was:" >&5
25030 sed 's/^/| /' conftest.$ac_ext >&5
25031
25032   ac_header_preproc=no
25033 fi
25034 rm -f conftest.err conftest.$ac_ext
25035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25036 echo "${ECHO_T}$ac_header_preproc" >&6
25037
25038 # So?  What about this header?
25039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25040   yes:no: )
25041     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25042 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25043     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25044 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25045     ac_header_preproc=yes
25046     ;;
25047   no:yes:* )
25048     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25049 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
25050     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
25051 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
25052     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25053 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25054     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
25055 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25056     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25057 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
25058     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25059 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
25060     (
25061       cat <<\_ASBOX
25062 ## ----------------------------------------- ##
25063 ## Report this to wx-dev@lists.wxwidgets.org ##
25064 ## ----------------------------------------- ##
25065 _ASBOX
25066     ) |
25067       sed "s/^/$as_me: WARNING:     /" >&2
25068     ;;
25069 esac
25070 echo "$as_me:$LINENO: checking for expat.h" >&5
25071 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25072 if test "${ac_cv_header_expat_h+set}" = set; then
25073   echo $ECHO_N "(cached) $ECHO_C" >&6
25074 else
25075   ac_cv_header_expat_h=$ac_header_preproc
25076 fi
25077 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25078 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25079
25080 fi
25081 if test $ac_cv_header_expat_h = yes; then
25082   found_expat_h=1
25083 fi
25084
25085
25086         if test "x$found_expat_h" = "x1"; then
25087                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25088 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25089 if test "${wx_cv_expat_is_not_broken+set}" = set; then
25090   echo $ECHO_N "(cached) $ECHO_C" >&6
25091 else
25092
25093
25094
25095                 ac_ext=cc
25096 ac_cpp='$CXXCPP $CPPFLAGS'
25097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25100
25101                 cat >conftest.$ac_ext <<_ACEOF
25102 /* confdefs.h.  */
25103 _ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h.  */
25107 #include <expat.h>
25108 int
25109 main ()
25110 {
25111
25112   ;
25113   return 0;
25114 }
25115 _ACEOF
25116 rm -f conftest.$ac_objext
25117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25118   (eval $ac_compile) 2>conftest.er1
25119   ac_status=$?
25120   grep -v '^ *+' conftest.er1 >conftest.err
25121   rm -f conftest.er1
25122   cat conftest.err >&5
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); } &&
25125          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25127   (eval $ac_try) 2>&5
25128   ac_status=$?
25129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130   (exit $ac_status); }; } &&
25131          { ac_try='test -s conftest.$ac_objext'
25132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133   (eval $ac_try) 2>&5
25134   ac_status=$?
25135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136   (exit $ac_status); }; }; then
25137   wx_cv_expat_is_not_broken=yes
25138 else
25139   echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25141
25142 wx_cv_expat_is_not_broken=no
25143
25144 fi
25145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25146                 ac_ext=c
25147 ac_cpp='$CPP $CPPFLAGS'
25148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25151
25152
25153
25154 fi
25155 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25156 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25157             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25158                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25159 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25160 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25161   echo $ECHO_N "(cached) $ECHO_C" >&6
25162 else
25163   ac_check_lib_save_LIBS=$LIBS
25164 LIBS="-lexpat  $LIBS"
25165 cat >conftest.$ac_ext <<_ACEOF
25166 /* confdefs.h.  */
25167 _ACEOF
25168 cat confdefs.h >>conftest.$ac_ext
25169 cat >>conftest.$ac_ext <<_ACEOF
25170 /* end confdefs.h.  */
25171
25172 /* Override any gcc2 internal prototype to avoid an error.  */
25173 #ifdef __cplusplus
25174 extern "C"
25175 #endif
25176 /* We use char because int might match the return type of a gcc2
25177    builtin and then its argument prototype would still apply.  */
25178 char XML_ParserCreate ();
25179 int
25180 main ()
25181 {
25182 XML_ParserCreate ();
25183   ;
25184   return 0;
25185 }
25186 _ACEOF
25187 rm -f conftest.$ac_objext conftest$ac_exeext
25188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25189   (eval $ac_link) 2>conftest.er1
25190   ac_status=$?
25191   grep -v '^ *+' conftest.er1 >conftest.err
25192   rm -f conftest.er1
25193   cat conftest.err >&5
25194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195   (exit $ac_status); } &&
25196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198   (eval $ac_try) 2>&5
25199   ac_status=$?
25200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201   (exit $ac_status); }; } &&
25202          { ac_try='test -s conftest$ac_exeext'
25203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204   (eval $ac_try) 2>&5
25205   ac_status=$?
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); }; }; then
25208   ac_cv_lib_expat_XML_ParserCreate=yes
25209 else
25210   echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25212
25213 ac_cv_lib_expat_XML_ParserCreate=no
25214 fi
25215 rm -f conftest.err conftest.$ac_objext \
25216       conftest$ac_exeext conftest.$ac_ext
25217 LIBS=$ac_check_lib_save_LIBS
25218 fi
25219 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25220 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25221 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25222   EXPAT_LINK=" -lexpat"
25223 fi
25224
25225             fi
25226         fi
25227         if test "x$EXPAT_LINK" = "x" ; then
25228             if test "$wxUSE_EXPAT" = "sys" ; then
25229                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25230 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25231    { (exit 1); exit 1; }; }
25232             else
25233                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25234 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25235                 wxUSE_EXPAT=builtin
25236             fi
25237         else
25238                         wxUSE_EXPAT=sys
25239         fi
25240     fi
25241     if test "$wxUSE_EXPAT" = "builtin" ; then
25242
25243
25244 subdirs="$subdirs src/expat"
25245
25246     fi
25247 fi
25248
25249
25250
25251 if test "$wxUSE_LIBMSPACK" != "no"; then
25252     if test "${ac_cv_header_mspack_h+set}" = set; then
25253   echo "$as_me:$LINENO: checking for mspack.h" >&5
25254 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25255 if test "${ac_cv_header_mspack_h+set}" = set; then
25256   echo $ECHO_N "(cached) $ECHO_C" >&6
25257 fi
25258 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25259 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25260 else
25261   # Is the header compilable?
25262 echo "$as_me:$LINENO: checking mspack.h usability" >&5
25263 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25264 cat >conftest.$ac_ext <<_ACEOF
25265 /* confdefs.h.  */
25266 _ACEOF
25267 cat confdefs.h >>conftest.$ac_ext
25268 cat >>conftest.$ac_ext <<_ACEOF
25269 /* end confdefs.h.  */
25270 $ac_includes_default
25271 #include <mspack.h>
25272 _ACEOF
25273 rm -f conftest.$ac_objext
25274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25275   (eval $ac_compile) 2>conftest.er1
25276   ac_status=$?
25277   grep -v '^ *+' conftest.er1 >conftest.err
25278   rm -f conftest.er1
25279   cat conftest.err >&5
25280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281   (exit $ac_status); } &&
25282          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25284   (eval $ac_try) 2>&5
25285   ac_status=$?
25286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287   (exit $ac_status); }; } &&
25288          { ac_try='test -s conftest.$ac_objext'
25289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290   (eval $ac_try) 2>&5
25291   ac_status=$?
25292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293   (exit $ac_status); }; }; then
25294   ac_header_compiler=yes
25295 else
25296   echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25298
25299 ac_header_compiler=no
25300 fi
25301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25303 echo "${ECHO_T}$ac_header_compiler" >&6
25304
25305 # Is the header present?
25306 echo "$as_me:$LINENO: checking mspack.h presence" >&5
25307 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25308 cat >conftest.$ac_ext <<_ACEOF
25309 /* confdefs.h.  */
25310 _ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h.  */
25314 #include <mspack.h>
25315 _ACEOF
25316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25318   ac_status=$?
25319   grep -v '^ *+' conftest.er1 >conftest.err
25320   rm -f conftest.er1
25321   cat conftest.err >&5
25322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323   (exit $ac_status); } >/dev/null; then
25324   if test -s conftest.err; then
25325     ac_cpp_err=$ac_c_preproc_warn_flag
25326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25327   else
25328     ac_cpp_err=
25329   fi
25330 else
25331   ac_cpp_err=yes
25332 fi
25333 if test -z "$ac_cpp_err"; then
25334   ac_header_preproc=yes
25335 else
25336   echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25338
25339   ac_header_preproc=no
25340 fi
25341 rm -f conftest.err conftest.$ac_ext
25342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25343 echo "${ECHO_T}$ac_header_preproc" >&6
25344
25345 # So?  What about this header?
25346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25347   yes:no: )
25348     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25349 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25350     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25351 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25352     ac_header_preproc=yes
25353     ;;
25354   no:yes:* )
25355     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25356 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
25357     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
25358 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
25359     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25360 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25361     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
25362 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25363     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25364 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
25365     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25366 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
25367     (
25368       cat <<\_ASBOX
25369 ## ----------------------------------------- ##
25370 ## Report this to wx-dev@lists.wxwidgets.org ##
25371 ## ----------------------------------------- ##
25372 _ASBOX
25373     ) |
25374       sed "s/^/$as_me: WARNING:     /" >&2
25375     ;;
25376 esac
25377 echo "$as_me:$LINENO: checking for mspack.h" >&5
25378 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25379 if test "${ac_cv_header_mspack_h+set}" = set; then
25380   echo $ECHO_N "(cached) $ECHO_C" >&6
25381 else
25382   ac_cv_header_mspack_h=$ac_header_preproc
25383 fi
25384 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25385 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25386
25387 fi
25388 if test $ac_cv_header_mspack_h = yes; then
25389   found_mspack_h=1
25390 fi
25391
25392
25393     if test "x$found_mspack_h" = "x1"; then
25394         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25395 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25396 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25397   echo $ECHO_N "(cached) $ECHO_C" >&6
25398 else
25399   ac_check_lib_save_LIBS=$LIBS
25400 LIBS="-lmspack  $LIBS"
25401 cat >conftest.$ac_ext <<_ACEOF
25402 /* confdefs.h.  */
25403 _ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h.  */
25407
25408 /* Override any gcc2 internal prototype to avoid an error.  */
25409 #ifdef __cplusplus
25410 extern "C"
25411 #endif
25412 /* We use char because int might match the return type of a gcc2
25413    builtin and then its argument prototype would still apply.  */
25414 char mspack_create_chm_decompressor ();
25415 int
25416 main ()
25417 {
25418 mspack_create_chm_decompressor ();
25419   ;
25420   return 0;
25421 }
25422 _ACEOF
25423 rm -f conftest.$ac_objext conftest$ac_exeext
25424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25425   (eval $ac_link) 2>conftest.er1
25426   ac_status=$?
25427   grep -v '^ *+' conftest.er1 >conftest.err
25428   rm -f conftest.er1
25429   cat conftest.err >&5
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); } &&
25432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434   (eval $ac_try) 2>&5
25435   ac_status=$?
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); }; } &&
25438          { ac_try='test -s conftest$ac_exeext'
25439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25440   (eval $ac_try) 2>&5
25441   ac_status=$?
25442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443   (exit $ac_status); }; }; then
25444   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25445 else
25446   echo "$as_me: failed program was:" >&5
25447 sed 's/^/| /' conftest.$ac_ext >&5
25448
25449 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25450 fi
25451 rm -f conftest.err conftest.$ac_objext \
25452       conftest$ac_exeext conftest.$ac_ext
25453 LIBS=$ac_check_lib_save_LIBS
25454 fi
25455 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25456 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25457 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25458   MSPACK_LINK=" -lmspack"
25459 fi
25460
25461     fi
25462     if test "x$MSPACK_LINK" = "x" ; then
25463         wxUSE_LIBMSPACK=no
25464     fi
25465 fi
25466
25467 if test "$wxUSE_LIBMSPACK" != "no"; then
25468     cat >>confdefs.h <<\_ACEOF
25469 #define wxUSE_LIBMSPACK 1
25470 _ACEOF
25471
25472 fi
25473
25474
25475
25476 AFMINSTALL=
25477 WIN32INSTALL=
25478
25479 TOOLKIT=
25480 TOOLKIT_INCLUDE=
25481 WIDGET_SET=
25482
25483 if test "$USE_WIN32" = 1 ; then
25484
25485 for ac_header in w32api.h
25486 do
25487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25489   echo "$as_me:$LINENO: checking for $ac_header" >&5
25490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25492   echo $ECHO_N "(cached) $ECHO_C" >&6
25493 fi
25494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25496 else
25497   # Is the header compilable?
25498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25500 cat >conftest.$ac_ext <<_ACEOF
25501 /* confdefs.h.  */
25502 _ACEOF
25503 cat confdefs.h >>conftest.$ac_ext
25504 cat >>conftest.$ac_ext <<_ACEOF
25505 /* end confdefs.h.  */
25506 $ac_includes_default
25507 #include <$ac_header>
25508 _ACEOF
25509 rm -f conftest.$ac_objext
25510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25511   (eval $ac_compile) 2>conftest.er1
25512   ac_status=$?
25513   grep -v '^ *+' conftest.er1 >conftest.err
25514   rm -f conftest.er1
25515   cat conftest.err >&5
25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517   (exit $ac_status); } &&
25518          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520   (eval $ac_try) 2>&5
25521   ac_status=$?
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); }; } &&
25524          { ac_try='test -s conftest.$ac_objext'
25525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526   (eval $ac_try) 2>&5
25527   ac_status=$?
25528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529   (exit $ac_status); }; }; then
25530   ac_header_compiler=yes
25531 else
25532   echo "$as_me: failed program was:" >&5
25533 sed 's/^/| /' conftest.$ac_ext >&5
25534
25535 ac_header_compiler=no
25536 fi
25537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25539 echo "${ECHO_T}$ac_header_compiler" >&6
25540
25541 # Is the header present?
25542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25544 cat >conftest.$ac_ext <<_ACEOF
25545 /* confdefs.h.  */
25546 _ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h.  */
25550 #include <$ac_header>
25551 _ACEOF
25552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25554   ac_status=$?
25555   grep -v '^ *+' conftest.er1 >conftest.err
25556   rm -f conftest.er1
25557   cat conftest.err >&5
25558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559   (exit $ac_status); } >/dev/null; then
25560   if test -s conftest.err; then
25561     ac_cpp_err=$ac_c_preproc_warn_flag
25562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25563   else
25564     ac_cpp_err=
25565   fi
25566 else
25567   ac_cpp_err=yes
25568 fi
25569 if test -z "$ac_cpp_err"; then
25570   ac_header_preproc=yes
25571 else
25572   echo "$as_me: failed program was:" >&5
25573 sed 's/^/| /' conftest.$ac_ext >&5
25574
25575   ac_header_preproc=no
25576 fi
25577 rm -f conftest.err conftest.$ac_ext
25578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25579 echo "${ECHO_T}$ac_header_preproc" >&6
25580
25581 # So?  What about this header?
25582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25583   yes:no: )
25584     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25588     ac_header_preproc=yes
25589     ;;
25590   no:yes:* )
25591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25593     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25594 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25595     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25597     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25598 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25601     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25603     (
25604       cat <<\_ASBOX
25605 ## ----------------------------------------- ##
25606 ## Report this to wx-dev@lists.wxwidgets.org ##
25607 ## ----------------------------------------- ##
25608 _ASBOX
25609     ) |
25610       sed "s/^/$as_me: WARNING:     /" >&2
25611     ;;
25612 esac
25613 echo "$as_me:$LINENO: checking for $ac_header" >&5
25614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25616   echo $ECHO_N "(cached) $ECHO_C" >&6
25617 else
25618   eval "$as_ac_Header=\$ac_header_preproc"
25619 fi
25620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25622
25623 fi
25624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25625   cat >>confdefs.h <<_ACEOF
25626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25627 _ACEOF
25628
25629 fi
25630
25631 done
25632
25633     if test "${ac_cv_header_windows_h+set}" = set; then
25634   echo "$as_me:$LINENO: checking for windows.h" >&5
25635 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25636 if test "${ac_cv_header_windows_h+set}" = set; then
25637   echo $ECHO_N "(cached) $ECHO_C" >&6
25638 fi
25639 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25640 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25641 else
25642   # Is the header compilable?
25643 echo "$as_me:$LINENO: checking windows.h usability" >&5
25644 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25645 cat >conftest.$ac_ext <<_ACEOF
25646 /* confdefs.h.  */
25647 _ACEOF
25648 cat confdefs.h >>conftest.$ac_ext
25649 cat >>conftest.$ac_ext <<_ACEOF
25650 /* end confdefs.h.  */
25651 $ac_includes_default
25652 #include <windows.h>
25653 _ACEOF
25654 rm -f conftest.$ac_objext
25655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25656   (eval $ac_compile) 2>conftest.er1
25657   ac_status=$?
25658   grep -v '^ *+' conftest.er1 >conftest.err
25659   rm -f conftest.er1
25660   cat conftest.err >&5
25661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662   (exit $ac_status); } &&
25663          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665   (eval $ac_try) 2>&5
25666   ac_status=$?
25667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); }; } &&
25669          { ac_try='test -s conftest.$ac_objext'
25670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671   (eval $ac_try) 2>&5
25672   ac_status=$?
25673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674   (exit $ac_status); }; }; then
25675   ac_header_compiler=yes
25676 else
25677   echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25679
25680 ac_header_compiler=no
25681 fi
25682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25684 echo "${ECHO_T}$ac_header_compiler" >&6
25685
25686 # Is the header present?
25687 echo "$as_me:$LINENO: checking windows.h presence" >&5
25688 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25689 cat >conftest.$ac_ext <<_ACEOF
25690 /* confdefs.h.  */
25691 _ACEOF
25692 cat confdefs.h >>conftest.$ac_ext
25693 cat >>conftest.$ac_ext <<_ACEOF
25694 /* end confdefs.h.  */
25695 #include <windows.h>
25696 _ACEOF
25697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25698   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25699   ac_status=$?
25700   grep -v '^ *+' conftest.er1 >conftest.err
25701   rm -f conftest.er1
25702   cat conftest.err >&5
25703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704   (exit $ac_status); } >/dev/null; then
25705   if test -s conftest.err; then
25706     ac_cpp_err=$ac_c_preproc_warn_flag
25707     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25708   else
25709     ac_cpp_err=
25710   fi
25711 else
25712   ac_cpp_err=yes
25713 fi
25714 if test -z "$ac_cpp_err"; then
25715   ac_header_preproc=yes
25716 else
25717   echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25719
25720   ac_header_preproc=no
25721 fi
25722 rm -f conftest.err conftest.$ac_ext
25723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25724 echo "${ECHO_T}$ac_header_preproc" >&6
25725
25726 # So?  What about this header?
25727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25728   yes:no: )
25729     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25730 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25731     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25732 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25733     ac_header_preproc=yes
25734     ;;
25735   no:yes:* )
25736     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25737 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
25738     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
25739 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
25740     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25741 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25742     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
25743 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25744     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25745 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
25746     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25747 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
25748     (
25749       cat <<\_ASBOX
25750 ## ----------------------------------------- ##
25751 ## Report this to wx-dev@lists.wxwidgets.org ##
25752 ## ----------------------------------------- ##
25753 _ASBOX
25754     ) |
25755       sed "s/^/$as_me: WARNING:     /" >&2
25756     ;;
25757 esac
25758 echo "$as_me:$LINENO: checking for windows.h" >&5
25759 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25760 if test "${ac_cv_header_windows_h+set}" = set; then
25761   echo $ECHO_N "(cached) $ECHO_C" >&6
25762 else
25763   ac_cv_header_windows_h=$ac_header_preproc
25764 fi
25765 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25766 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25767
25768 fi
25769 if test $ac_cv_header_windows_h = yes; then
25770   :
25771 else
25772
25773         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25774 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25775    { (exit 1); exit 1; }; }
25776
25777 fi
25778
25779
25780
25781             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25782
25783     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25784         LIBS="$LIBS -loleacc"
25785     fi
25786
25787     case "${host}" in
25788         *-*-cygwin* )
25789                         LIBS="$LIBS -lkernel32 -luser32"
25790             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
25791     esac
25792
25793         if test "$wxUSE_ODBC" = "sys" ; then
25794         wxUSE_ODBC = "yes"
25795     fi
25796     if test "$wxUSE_ODBC" = "yes" ; then
25797         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25798         cat >>confdefs.h <<\_ACEOF
25799 #define wxUSE_ODBC 1
25800 _ACEOF
25801
25802     fi
25803
25804     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25805     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25806
25807         WIN32INSTALL=win32install
25808 fi
25809
25810 if test "$wxUSE_GUI" = "yes"; then
25811     USE_GUI=1
25812
25813     GUI_TK_LIBRARY=
25814
25815     WXGTK12=
25816     WXGTK127=
25817     WXGTK20=
25818     WXGPE=
25819
25820     if test "$wxUSE_COCOA" = 1 ; then
25821         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25822             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25823 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25824             wxUSE_PRINTING_ARCHITECTURE=no
25825         fi
25826         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25827             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25828 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25829             wxUSE_DRAG_AND_DROP=no
25830         fi
25831         if test "$wxUSE_DRAGIMAGE" = "yes"; then
25832             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25833 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25834             wxUSE_DRAGIMAGE=no
25835         fi
25836     fi
25837
25838     if test "$wxUSE_MSW" = 1 ; then
25839         TOOLKIT=MSW
25840         GUIDIST=MSW_DIST
25841
25842                 case "${host}" in
25843             *-*-mingw32* )
25844                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25845         esac
25846     fi
25847
25848     if test "$wxUSE_GTK" = 1; then
25849         echo "$as_me:$LINENO: checking for GTK+ version" >&5
25850 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25851
25852         gtk_version_cached=1
25853         if test "${wx_cv_lib_gtk+set}" = set; then
25854   echo $ECHO_N "(cached) $ECHO_C" >&6
25855 else
25856
25857                                                 gtk_version_cached=0
25858                 echo "$as_me:$LINENO: result: " >&5
25859 echo "${ECHO_T}" >&6
25860
25861                                                 GTK_MODULES=
25862                 if test "$wxUSE_THREADS" = "yes"; then
25863                     GTK_MODULES=gthread
25864                 fi
25865
25866                                 wx_cv_lib_gtk=
25867                 if test "x$wxGTK_VERSION" != "x1"
25868                 then
25869                                                                                 case "${host}" in
25870                         *-*-solaris2* )
25871                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25872                                 enable_gtktest=no
25873                             fi
25874                     esac
25875
25876                     # Check whether --enable-gtktest or --disable-gtktest was given.
25877 if test "${enable_gtktest+set}" = set; then
25878   enableval="$enable_gtktest"
25879
25880 else
25881   enable_gtktest=yes
25882 fi;
25883
25884   pkg_config_args=gtk+-2.0
25885   for module in . $GTK_MODULES
25886   do
25887       case "$module" in
25888          gthread)
25889              pkg_config_args="$pkg_config_args gthread-2.0"
25890          ;;
25891       esac
25892   done
25893
25894   no_gtk=""
25895
25896   # Extract the first word of "pkg-config", so it can be a program name with args.
25897 set dummy pkg-config; ac_word=$2
25898 echo "$as_me:$LINENO: checking for $ac_word" >&5
25899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25900 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25901   echo $ECHO_N "(cached) $ECHO_C" >&6
25902 else
25903   case $PKG_CONFIG in
25904   [\\/]* | ?:[\\/]*)
25905   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25906   ;;
25907   *)
25908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25909 for as_dir in $PATH
25910 do
25911   IFS=$as_save_IFS
25912   test -z "$as_dir" && as_dir=.
25913   for ac_exec_ext in '' $ac_executable_extensions; do
25914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25915     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25917     break 2
25918   fi
25919 done
25920 done
25921
25922   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25923   ;;
25924 esac
25925 fi
25926 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25927
25928 if test -n "$PKG_CONFIG"; then
25929   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25930 echo "${ECHO_T}$PKG_CONFIG" >&6
25931 else
25932   echo "$as_me:$LINENO: result: no" >&5
25933 echo "${ECHO_T}no" >&6
25934 fi
25935
25936
25937   if test x$PKG_CONFIG != xno ; then
25938     if pkg-config --atleast-pkgconfig-version 0.7 ; then
25939       :
25940     else
25941       echo "*** pkg-config too old; version 0.7 or better required."
25942       no_gtk=yes
25943       PKG_CONFIG=no
25944     fi
25945   else
25946     no_gtk=yes
25947   fi
25948
25949   min_gtk_version=2.0.0
25950   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25951 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25952
25953   if test x$PKG_CONFIG != xno ; then
25954     ## don't try to run the test against uninstalled libtool libs
25955     if $PKG_CONFIG --uninstalled $pkg_config_args; then
25956           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25957           enable_gtktest=no
25958     fi
25959
25960     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25961           :
25962     else
25963           no_gtk=yes
25964     fi
25965   fi
25966
25967   if test x"$no_gtk" = x ; then
25968     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25969     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25970     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25971            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25972     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25973            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25974     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25975            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25976     if test "x$enable_gtktest" = "xyes" ; then
25977       ac_save_CFLAGS="$CFLAGS"
25978       ac_save_LIBS="$LIBS"
25979       CFLAGS="$CFLAGS $GTK_CFLAGS"
25980       LIBS="$GTK_LIBS $LIBS"
25981       rm -f conf.gtktest
25982       if test "$cross_compiling" = yes; then
25983   echo $ac_n "cross compiling; assumed OK... $ac_c"
25984 else
25985   cat >conftest.$ac_ext <<_ACEOF
25986 /* confdefs.h.  */
25987 _ACEOF
25988 cat confdefs.h >>conftest.$ac_ext
25989 cat >>conftest.$ac_ext <<_ACEOF
25990 /* end confdefs.h.  */
25991
25992 #include <gtk/gtk.h>
25993 #include <stdio.h>
25994 #include <stdlib.h>
25995
25996 int
25997 main ()
25998 {
25999   int major, minor, micro;
26000   char *tmp_version;
26001
26002   system ("touch conf.gtktest");
26003
26004   /* HP/UX 9 (%@#!) writes to sscanf strings */
26005   tmp_version = g_strdup("$min_gtk_version");
26006   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26007      printf("%s, bad version string\n", "$min_gtk_version");
26008      exit(1);
26009    }
26010
26011   if ((gtk_major_version != $gtk_config_major_version) ||
26012       (gtk_minor_version != $gtk_config_minor_version) ||
26013       (gtk_micro_version != $gtk_config_micro_version))
26014     {
26015       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26016              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26017              gtk_major_version, gtk_minor_version, gtk_micro_version);
26018       printf ("*** was found! If pkg-config was correct, then it is best\n");
26019       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26020       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26021       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26022       printf("*** required on your system.\n");
26023       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26024       printf("*** to point to the correct configuration files\n");
26025     }
26026   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26027            (gtk_minor_version != GTK_MINOR_VERSION) ||
26028            (gtk_micro_version != GTK_MICRO_VERSION))
26029     {
26030       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26031              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26032       printf("*** library (version %d.%d.%d)\n",
26033              gtk_major_version, gtk_minor_version, gtk_micro_version);
26034     }
26035   else
26036     {
26037       if ((gtk_major_version > major) ||
26038         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26039         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26040       {
26041         return 0;
26042        }
26043      else
26044       {
26045         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26046                gtk_major_version, gtk_minor_version, gtk_micro_version);
26047         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26048                major, minor, micro);
26049         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26050         printf("***\n");
26051         printf("*** If you have already installed a sufficiently new version, this error\n");
26052         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26053         printf("*** being found. The easiest way to fix this is to remove the old version\n");
26054         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26055         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26056         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26057         printf("*** so that the correct libraries are found at run-time))\n");
26058       }
26059     }
26060   return 1;
26061 }
26062
26063 _ACEOF
26064 rm -f conftest$ac_exeext
26065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26066   (eval $ac_link) 2>&5
26067   ac_status=$?
26068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26071   (eval $ac_try) 2>&5
26072   ac_status=$?
26073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074   (exit $ac_status); }; }; then
26075   :
26076 else
26077   echo "$as_me: program exited with status $ac_status" >&5
26078 echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26080
26081 ( exit $ac_status )
26082 no_gtk=yes
26083 fi
26084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26085 fi
26086        CFLAGS="$ac_save_CFLAGS"
26087        LIBS="$ac_save_LIBS"
26088      fi
26089   fi
26090   if test "x$no_gtk" = x ; then
26091      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26092 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26093      wx_cv_lib_gtk=2.0
26094   else
26095      echo "$as_me:$LINENO: result: no" >&5
26096 echo "${ECHO_T}no" >&6
26097      if test "$PKG_CONFIG" = "no" ; then
26098        echo "*** A new enough version of pkg-config was not found."
26099        echo "*** See http://pkgconfig.sourceforge.net"
26100      else
26101        if test -f conf.gtktest ; then
26102         :
26103        else
26104           echo "*** Could not run GTK+ test program, checking why..."
26105           ac_save_CFLAGS="$CFLAGS"
26106           ac_save_LIBS="$LIBS"
26107           CFLAGS="$CFLAGS $GTK_CFLAGS"
26108           LIBS="$LIBS $GTK_LIBS"
26109           cat >conftest.$ac_ext <<_ACEOF
26110 /* confdefs.h.  */
26111 _ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h.  */
26115
26116 #include <gtk/gtk.h>
26117 #include <stdio.h>
26118
26119 int
26120 main ()
26121 {
26122  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26123   ;
26124   return 0;
26125 }
26126 _ACEOF
26127 rm -f conftest.$ac_objext conftest$ac_exeext
26128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26129   (eval $ac_link) 2>conftest.er1
26130   ac_status=$?
26131   grep -v '^ *+' conftest.er1 >conftest.err
26132   rm -f conftest.er1
26133   cat conftest.err >&5
26134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135   (exit $ac_status); } &&
26136          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26138   (eval $ac_try) 2>&5
26139   ac_status=$?
26140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141   (exit $ac_status); }; } &&
26142          { ac_try='test -s conftest$ac_exeext'
26143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144   (eval $ac_try) 2>&5
26145   ac_status=$?
26146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147   (exit $ac_status); }; }; then
26148    echo "*** The test program compiled, but did not run. This usually means"
26149           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26150           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26151           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26152           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
26153           echo "*** is required on your system"
26154           echo "***"
26155           echo "*** If you have an old version installed, it is best to remove it, although"
26156           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26157 else
26158   echo "$as_me: failed program was:" >&5
26159 sed 's/^/| /' conftest.$ac_ext >&5
26160
26161  echo "*** The test program failed to compile or link. See the file config.log for the"
26162           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26163 fi
26164 rm -f conftest.err conftest.$ac_objext \
26165       conftest$ac_exeext conftest.$ac_ext
26166           CFLAGS="$ac_save_CFLAGS"
26167           LIBS="$ac_save_LIBS"
26168        fi
26169      fi
26170      GTK_CFLAGS=""
26171      GTK_LIBS=""
26172      :
26173   fi
26174
26175
26176   rm -f conf.gtktest
26177
26178
26179                                         case "${host}" in
26180                         *-*-solaris2* )
26181                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26182                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26183                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26184                             fi
26185                                                         if test "$wxUSE_SHARED" != "yes"; then
26186                                 GTK_LIBS="$GTK_LIBS -lX11"
26187                             fi
26188                     esac
26189                 fi
26190
26191                                 if test -z "$wx_cv_lib_gtk"; then
26192                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
26193
26194 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26195 if test "${with_gtk_prefix+set}" = set; then
26196   withval="$with_gtk_prefix"
26197   gtk_config_prefix="$withval"
26198 else
26199   gtk_config_prefix=""
26200 fi;
26201
26202 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26203 if test "${with_gtk_exec_prefix+set}" = set; then
26204   withval="$with_gtk_exec_prefix"
26205   gtk_config_exec_prefix="$withval"
26206 else
26207   gtk_config_exec_prefix=""
26208 fi;
26209 # Check whether --enable-gtktest or --disable-gtktest was given.
26210 if test "${enable_gtktest+set}" = set; then
26211   enableval="$enable_gtktest"
26212
26213 else
26214   enable_gtktest=yes
26215 fi;
26216
26217   for module in . $GTK_MODULES
26218   do
26219       case "$module" in
26220          gthread)
26221              gtk_config_args="$gtk_config_args gthread"
26222          ;;
26223       esac
26224   done
26225
26226   if test x$gtk_config_exec_prefix != x ; then
26227      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26228      if test x${GTK_CONFIG+set} != xset ; then
26229         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26230      fi
26231   fi
26232   if test x$gtk_config_prefix != x ; then
26233      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26234      if test x${GTK_CONFIG+set} != xset ; then
26235         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26236      fi
26237   fi
26238
26239   # Extract the first word of "gtk-config", so it can be a program name with args.
26240 set dummy gtk-config; ac_word=$2
26241 echo "$as_me:$LINENO: checking for $ac_word" >&5
26242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26243 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26244   echo $ECHO_N "(cached) $ECHO_C" >&6
26245 else
26246   case $GTK_CONFIG in
26247   [\\/]* | ?:[\\/]*)
26248   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26249   ;;
26250   *)
26251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26252 for as_dir in $PATH
26253 do
26254   IFS=$as_save_IFS
26255   test -z "$as_dir" && as_dir=.
26256   for ac_exec_ext in '' $ac_executable_extensions; do
26257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26258     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26260     break 2
26261   fi
26262 done
26263 done
26264
26265   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26266   ;;
26267 esac
26268 fi
26269 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26270
26271 if test -n "$GTK_CONFIG"; then
26272   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26273 echo "${ECHO_T}$GTK_CONFIG" >&6
26274 else
26275   echo "$as_me:$LINENO: result: no" >&5
26276 echo "${ECHO_T}no" >&6
26277 fi
26278
26279   min_gtk_version=1.2.7
26280   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26281 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26282   no_gtk=""
26283   if test "$GTK_CONFIG" = "no" ; then
26284     no_gtk=yes
26285   else
26286     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26287     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26288     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26289            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26290     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26291            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26292     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26293            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26294     if test "x$enable_gtktest" = "xyes" ; then
26295       ac_save_CFLAGS="$CFLAGS"
26296       ac_save_LIBS="$LIBS"
26297       CFLAGS="$CFLAGS $GTK_CFLAGS"
26298       LIBS="$GTK_LIBS $LIBS"
26299       rm -f conf.gtktest
26300       if test "$cross_compiling" = yes; then
26301   echo $ac_n "cross compiling; assumed OK... $ac_c"
26302 else
26303   cat >conftest.$ac_ext <<_ACEOF
26304 /* confdefs.h.  */
26305 _ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h.  */
26309
26310 #include <gtk/gtk.h>
26311 #include <stdio.h>
26312 #include <stdlib.h>
26313
26314 int
26315 main ()
26316 {
26317   int major, minor, micro;
26318   char *tmp_version;
26319
26320   system ("touch conf.gtktest");
26321
26322   /* HP/UX 9 (%@#!) writes to sscanf strings */
26323   tmp_version = g_strdup("$min_gtk_version");
26324   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26325      printf("%s, bad version string\n", "$min_gtk_version");
26326      exit(1);
26327    }
26328
26329   if ((gtk_major_version != $gtk_config_major_version) ||
26330       (gtk_minor_version != $gtk_config_minor_version) ||
26331       (gtk_micro_version != $gtk_config_micro_version))
26332     {
26333       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26334              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26335              gtk_major_version, gtk_minor_version, gtk_micro_version);
26336       printf ("*** was found! If gtk-config was correct, then it is best\n");
26337       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26338       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26339       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26340       printf("*** required on your system.\n");
26341       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26342       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26343       printf("*** before re-running configure\n");
26344     }
26345 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26346   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26347            (gtk_minor_version != GTK_MINOR_VERSION) ||
26348            (gtk_micro_version != GTK_MICRO_VERSION))
26349     {
26350       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26351              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26352       printf("*** library (version %d.%d.%d)\n",
26353              gtk_major_version, gtk_minor_version, gtk_micro_version);
26354     }
26355 #endif /* defined (GTK_MAJOR_VERSION) ... */
26356   else
26357     {
26358       if ((gtk_major_version > major) ||
26359         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26360         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26361       {
26362         return 0;
26363        }
26364      else
26365       {
26366         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26367                gtk_major_version, gtk_minor_version, gtk_micro_version);
26368         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26369                major, minor, micro);
26370         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26371         printf("***\n");
26372         printf("*** If you have already installed a sufficiently new version, this error\n");
26373         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26374         printf("*** being found. The easiest way to fix this is to remove the old version\n");
26375         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26376         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26377         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26378         printf("*** so that the correct libraries are found at run-time))\n");
26379       }
26380     }
26381   return 1;
26382 }
26383
26384 _ACEOF
26385 rm -f conftest$ac_exeext
26386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26387   (eval $ac_link) 2>&5
26388   ac_status=$?
26389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26392   (eval $ac_try) 2>&5
26393   ac_status=$?
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); }; }; then
26396   :
26397 else
26398   echo "$as_me: program exited with status $ac_status" >&5
26399 echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26401
26402 ( exit $ac_status )
26403 no_gtk=yes
26404 fi
26405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26406 fi
26407        CFLAGS="$ac_save_CFLAGS"
26408        LIBS="$ac_save_LIBS"
26409      fi
26410   fi
26411   if test "x$no_gtk" = x ; then
26412      echo "$as_me:$LINENO: result: yes" >&5
26413 echo "${ECHO_T}yes" >&6
26414      wx_cv_lib_gtk=1.2.7
26415   else
26416      echo "$as_me:$LINENO: result: no" >&5
26417 echo "${ECHO_T}no" >&6
26418      if test "$GTK_CONFIG" = "no" ; then
26419        echo "*** The gtk-config script installed by GTK could not be found"
26420        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26421        echo "*** your path, or set the GTK_CONFIG environment variable to the"
26422        echo "*** full path to gtk-config."
26423      else
26424        if test -f conf.gtktest ; then
26425         :
26426        else
26427           echo "*** Could not run GTK test program, checking why..."
26428           CFLAGS="$CFLAGS $GTK_CFLAGS"
26429           LIBS="$LIBS $GTK_LIBS"
26430           cat >conftest.$ac_ext <<_ACEOF
26431 /* confdefs.h.  */
26432 _ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h.  */
26436
26437 #include <gtk/gtk.h>
26438 #include <stdio.h>
26439
26440 int
26441 main ()
26442 {
26443  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26444   ;
26445   return 0;
26446 }
26447 _ACEOF
26448 rm -f conftest.$ac_objext conftest$ac_exeext
26449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26450   (eval $ac_link) 2>conftest.er1
26451   ac_status=$?
26452   grep -v '^ *+' conftest.er1 >conftest.err
26453   rm -f conftest.er1
26454   cat conftest.err >&5
26455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); } &&
26457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26459   (eval $ac_try) 2>&5
26460   ac_status=$?
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); }; } &&
26463          { ac_try='test -s conftest$ac_exeext'
26464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465   (eval $ac_try) 2>&5
26466   ac_status=$?
26467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468   (exit $ac_status); }; }; then
26469    echo "*** The test program compiled, but did not run. This usually means"
26470           echo "*** that the run-time linker is not finding GTK or finding the wrong"
26471           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26472           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26473           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
26474           echo "*** is required on your system"
26475           echo "***"
26476           echo "*** If you have an old version installed, it is best to remove it, although"
26477           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26478           echo "***"
26479           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26480           echo "*** came with the system with the command"
26481           echo "***"
26482           echo "***    rpm --erase --nodeps gtk gtk-devel"
26483 else
26484   echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26486
26487  echo "*** The test program failed to compile or link. See the file config.log for the"
26488           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26489           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26490           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26491 fi
26492 rm -f conftest.err conftest.$ac_objext \
26493       conftest$ac_exeext conftest.$ac_ext
26494           CFLAGS="$ac_save_CFLAGS"
26495           LIBS="$ac_save_LIBS"
26496        fi
26497      fi
26498      GTK_CFLAGS=""
26499      GTK_LIBS=""
26500      :
26501   fi
26502
26503
26504   rm -f conf.gtktest
26505
26506
26507                         if test -z "$wx_cv_lib_gtk"; then
26508
26509 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26510 if test "${with_gtk_prefix+set}" = set; then
26511   withval="$with_gtk_prefix"
26512   gtk_config_prefix="$withval"
26513 else
26514   gtk_config_prefix=""
26515 fi;
26516
26517 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26518 if test "${with_gtk_exec_prefix+set}" = set; then
26519   withval="$with_gtk_exec_prefix"
26520   gtk_config_exec_prefix="$withval"
26521 else
26522   gtk_config_exec_prefix=""
26523 fi;
26524 # Check whether --enable-gtktest or --disable-gtktest was given.
26525 if test "${enable_gtktest+set}" = set; then
26526   enableval="$enable_gtktest"
26527
26528 else
26529   enable_gtktest=yes
26530 fi;
26531
26532   for module in . $GTK_MODULES
26533   do
26534       case "$module" in
26535          gthread)
26536              gtk_config_args="$gtk_config_args gthread"
26537          ;;
26538       esac
26539   done
26540
26541   if test x$gtk_config_exec_prefix != x ; then
26542      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26543      if test x${GTK_CONFIG+set} != xset ; then
26544         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26545      fi
26546   fi
26547   if test x$gtk_config_prefix != x ; then
26548      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26549      if test x${GTK_CONFIG+set} != xset ; then
26550         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26551      fi
26552   fi
26553
26554   # Extract the first word of "gtk-config", so it can be a program name with args.
26555 set dummy gtk-config; ac_word=$2
26556 echo "$as_me:$LINENO: checking for $ac_word" >&5
26557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26558 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26559   echo $ECHO_N "(cached) $ECHO_C" >&6
26560 else
26561   case $GTK_CONFIG in
26562   [\\/]* | ?:[\\/]*)
26563   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26564   ;;
26565   *)
26566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26567 for as_dir in $PATH
26568 do
26569   IFS=$as_save_IFS
26570   test -z "$as_dir" && as_dir=.
26571   for ac_exec_ext in '' $ac_executable_extensions; do
26572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26573     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26575     break 2
26576   fi
26577 done
26578 done
26579
26580   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26581   ;;
26582 esac
26583 fi
26584 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26585
26586 if test -n "$GTK_CONFIG"; then
26587   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26588 echo "${ECHO_T}$GTK_CONFIG" >&6
26589 else
26590   echo "$as_me:$LINENO: result: no" >&5
26591 echo "${ECHO_T}no" >&6
26592 fi
26593
26594   min_gtk_version=1.2.3
26595   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26596 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26597   no_gtk=""
26598   if test "$GTK_CONFIG" = "no" ; then
26599     no_gtk=yes
26600   else
26601     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26602     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26603     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26604            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26605     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26606            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26607     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26608            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26609     if test "x$enable_gtktest" = "xyes" ; then
26610       ac_save_CFLAGS="$CFLAGS"
26611       ac_save_LIBS="$LIBS"
26612       CFLAGS="$CFLAGS $GTK_CFLAGS"
26613       LIBS="$GTK_LIBS $LIBS"
26614       rm -f conf.gtktest
26615       if test "$cross_compiling" = yes; then
26616   echo $ac_n "cross compiling; assumed OK... $ac_c"
26617 else
26618   cat >conftest.$ac_ext <<_ACEOF
26619 /* confdefs.h.  */
26620 _ACEOF
26621 cat confdefs.h >>conftest.$ac_ext
26622 cat >>conftest.$ac_ext <<_ACEOF
26623 /* end confdefs.h.  */
26624
26625 #include <gtk/gtk.h>
26626 #include <stdio.h>
26627 #include <stdlib.h>
26628
26629 int
26630 main ()
26631 {
26632   int major, minor, micro;
26633   char *tmp_version;
26634
26635   system ("touch conf.gtktest");
26636
26637   /* HP/UX 9 (%@#!) writes to sscanf strings */
26638   tmp_version = g_strdup("$min_gtk_version");
26639   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26640      printf("%s, bad version string\n", "$min_gtk_version");
26641      exit(1);
26642    }
26643
26644   if ((gtk_major_version != $gtk_config_major_version) ||
26645       (gtk_minor_version != $gtk_config_minor_version) ||
26646       (gtk_micro_version != $gtk_config_micro_version))
26647     {
26648       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26649              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26650              gtk_major_version, gtk_minor_version, gtk_micro_version);
26651       printf ("*** was found! If gtk-config was correct, then it is best\n");
26652       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26653       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26654       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26655       printf("*** required on your system.\n");
26656       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26657       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26658       printf("*** before re-running configure\n");
26659     }
26660 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26661   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26662            (gtk_minor_version != GTK_MINOR_VERSION) ||
26663            (gtk_micro_version != GTK_MICRO_VERSION))
26664     {
26665       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26666              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26667       printf("*** library (version %d.%d.%d)\n",
26668              gtk_major_version, gtk_minor_version, gtk_micro_version);
26669     }
26670 #endif /* defined (GTK_MAJOR_VERSION) ... */
26671   else
26672     {
26673       if ((gtk_major_version > major) ||
26674         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26675         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26676       {
26677         return 0;
26678        }
26679      else
26680       {
26681         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26682                gtk_major_version, gtk_minor_version, gtk_micro_version);
26683         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26684                major, minor, micro);
26685         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26686         printf("***\n");
26687         printf("*** If you have already installed a sufficiently new version, this error\n");
26688         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26689         printf("*** being found. The easiest way to fix this is to remove the old version\n");
26690         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26691         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26692         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26693         printf("*** so that the correct libraries are found at run-time))\n");
26694       }
26695     }
26696   return 1;
26697 }
26698
26699 _ACEOF
26700 rm -f conftest$ac_exeext
26701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26702   (eval $ac_link) 2>&5
26703   ac_status=$?
26704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26707   (eval $ac_try) 2>&5
26708   ac_status=$?
26709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710   (exit $ac_status); }; }; then
26711   :
26712 else
26713   echo "$as_me: program exited with status $ac_status" >&5
26714 echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26716
26717 ( exit $ac_status )
26718 no_gtk=yes
26719 fi
26720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26721 fi
26722        CFLAGS="$ac_save_CFLAGS"
26723        LIBS="$ac_save_LIBS"
26724      fi
26725   fi
26726   if test "x$no_gtk" = x ; then
26727      echo "$as_me:$LINENO: result: yes" >&5
26728 echo "${ECHO_T}yes" >&6
26729      wx_cv_lib_gtk=1.2.3
26730   else
26731      echo "$as_me:$LINENO: result: no" >&5
26732 echo "${ECHO_T}no" >&6
26733      if test "$GTK_CONFIG" = "no" ; then
26734        echo "*** The gtk-config script installed by GTK could not be found"
26735        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26736        echo "*** your path, or set the GTK_CONFIG environment variable to the"
26737        echo "*** full path to gtk-config."
26738      else
26739        if test -f conf.gtktest ; then
26740         :
26741        else
26742           echo "*** Could not run GTK test program, checking why..."
26743           CFLAGS="$CFLAGS $GTK_CFLAGS"
26744           LIBS="$LIBS $GTK_LIBS"
26745           cat >conftest.$ac_ext <<_ACEOF
26746 /* confdefs.h.  */
26747 _ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h.  */
26751
26752 #include <gtk/gtk.h>
26753 #include <stdio.h>
26754
26755 int
26756 main ()
26757 {
26758  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26759   ;
26760   return 0;
26761 }
26762 _ACEOF
26763 rm -f conftest.$ac_objext conftest$ac_exeext
26764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26765   (eval $ac_link) 2>conftest.er1
26766   ac_status=$?
26767   grep -v '^ *+' conftest.er1 >conftest.err
26768   rm -f conftest.er1
26769   cat conftest.err >&5
26770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771   (exit $ac_status); } &&
26772          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26774   (eval $ac_try) 2>&5
26775   ac_status=$?
26776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777   (exit $ac_status); }; } &&
26778          { ac_try='test -s conftest$ac_exeext'
26779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26780   (eval $ac_try) 2>&5
26781   ac_status=$?
26782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); }; }; then
26784    echo "*** The test program compiled, but did not run. This usually means"
26785           echo "*** that the run-time linker is not finding GTK or finding the wrong"
26786           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26787           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26788           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
26789           echo "*** is required on your system"
26790           echo "***"
26791           echo "*** If you have an old version installed, it is best to remove it, although"
26792           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26793           echo "***"
26794           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26795           echo "*** came with the system with the command"
26796           echo "***"
26797           echo "***    rpm --erase --nodeps gtk gtk-devel"
26798 else
26799   echo "$as_me: failed program was:" >&5
26800 sed 's/^/| /' conftest.$ac_ext >&5
26801
26802  echo "*** The test program failed to compile or link. See the file config.log for the"
26803           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26804           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26805           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26806 fi
26807 rm -f conftest.err conftest.$ac_objext \
26808       conftest$ac_exeext conftest.$ac_ext
26809           CFLAGS="$ac_save_CFLAGS"
26810           LIBS="$ac_save_LIBS"
26811        fi
26812      fi
26813      GTK_CFLAGS=""
26814      GTK_LIBS=""
26815      :
26816   fi
26817
26818
26819   rm -f conf.gtktest
26820
26821                         fi
26822                     fi
26823                 fi
26824
26825                 if test -z "$wx_cv_lib_gtk"; then
26826                                         wx_cv_lib_gtk=none
26827                 else
26828                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
26829                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
26830                 fi
26831
26832
26833 fi
26834
26835
26836                         if test "$gtk_version_cached" = 1; then
26837             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26838 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26839         fi
26840
26841         case "$wx_cv_lib_gtk" in
26842             2.0)    WXGTK20=1
26843                     TOOLKIT_VERSION=2
26844                     ;;
26845             1.2.7)  WXGTK127=1
26846                     WXGTK12=1
26847                     ;;
26848             1.2.3)  WXGTK12=1
26849                     ;;
26850             *)      { { echo "$as_me:$LINENO: error:
26851 The development files for GTK+ were not found. For GTK+ 2, please
26852 ensure that pkg-config is in the path and that gtk+-2.0.pc is
26853 installed. For GTK+ 1.2 please check that gtk-config is in the path,
26854 and that the version is 1.2.3 or above. Also check that the
26855 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26856 --libs' are in the LD_LIBRARY_PATH or equivalent.
26857                             " >&5
26858 echo "$as_me: error:
26859 The development files for GTK+ were not found. For GTK+ 2, please
26860 ensure that pkg-config is in the path and that gtk+-2.0.pc is
26861 installed. For GTK+ 1.2 please check that gtk-config is in the path,
26862 and that the version is 1.2.3 or above. Also check that the
26863 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26864 --libs' are in the LD_LIBRARY_PATH or equivalent.
26865                             " >&2;}
26866    { (exit 1); exit 1; }; }
26867                     ;;
26868         esac
26869
26870         if test "$WXGTK20" = 1; then
26871             save_CFLAGS="$CFLAGS"
26872             save_LIBS="$LIBS"
26873             CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
26874             LIBS="$LIBS $wx_cv_libs_gtk"
26875
26876                                                             echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26877 echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26878             cat >conftest.$ac_ext <<_ACEOF
26879 /* confdefs.h.  */
26880 _ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h.  */
26884
26885                             #include <gtk/gtk.h>
26886
26887 int
26888 main ()
26889 {
26890
26891                             void *f = gtk_icon_size_lookup;
26892
26893   ;
26894   return 0;
26895 }
26896 _ACEOF
26897 rm -f conftest.$ac_objext
26898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26899   (eval $ac_compile) 2>conftest.er1
26900   ac_status=$?
26901   grep -v '^ *+' conftest.er1 >conftest.err
26902   rm -f conftest.er1
26903   cat conftest.err >&5
26904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905   (exit $ac_status); } &&
26906          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908   (eval $ac_try) 2>&5
26909   ac_status=$?
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); }; } &&
26912          { ac_try='test -s conftest.$ac_objext'
26913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914   (eval $ac_try) 2>&5
26915   ac_status=$?
26916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); }; }; then
26918
26919                             echo "$as_me:$LINENO: result: no" >&5
26920 echo "${ECHO_T}no" >&6
26921
26922 else
26923   echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26925
26926
26927                             cat >>confdefs.h <<\_ACEOF
26928 #define NEED_GTK_ICON_SIZE_LOOKUP 1
26929 _ACEOF
26930
26931                             echo "$as_me:$LINENO: result: yes" >&5
26932 echo "${ECHO_T}yes" >&6
26933
26934 fi
26935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26936
26937                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26938 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26939             cat >conftest.$ac_ext <<_ACEOF
26940 /* confdefs.h.  */
26941 _ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h.  */
26945
26946                             #include <gtk/gtk.h>
26947
26948 int
26949 main ()
26950 {
26951
26952                             #if !GTK_CHECK_VERSION(2,4,0)
26953                             Not GTK+ 2.4
26954                             #endif
26955
26956   ;
26957   return 0;
26958 }
26959 _ACEOF
26960 rm -f conftest.$ac_objext
26961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26962   (eval $ac_compile) 2>conftest.er1
26963   ac_status=$?
26964   grep -v '^ *+' conftest.er1 >conftest.err
26965   rm -f conftest.er1
26966   cat conftest.err >&5
26967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968   (exit $ac_status); } &&
26969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26971   (eval $ac_try) 2>&5
26972   ac_status=$?
26973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974   (exit $ac_status); }; } &&
26975          { ac_try='test -s conftest.$ac_objext'
26976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977   (eval $ac_try) 2>&5
26978   ac_status=$?
26979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980   (exit $ac_status); }; }; then
26981
26982                             cat >>confdefs.h <<\_ACEOF
26983 #define __WXGTK24__ 1
26984 _ACEOF
26985
26986                             echo "$as_me:$LINENO: result: yes" >&5
26987 echo "${ECHO_T}yes" >&6
26988
26989 else
26990   echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26992
26993
26994                             echo "$as_me:$LINENO: result: no" >&5
26995 echo "${ECHO_T}no" >&6
26996
26997 fi
26998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26999
27000             CFLAGS="$save_CFLAGS"
27001             LIBS="$save_LIBS"
27002         else
27003             if test "$wxUSE_UNICODE" = "yes"; then
27004                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27005 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27006                 wxUSE_UNICODE=no
27007             fi
27008         fi
27009
27010                         if test "$USE_DARWIN" != 1; then
27011
27012 for ac_func in poll
27013 do
27014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27015 echo "$as_me:$LINENO: checking for $ac_func" >&5
27016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27017 if eval "test \"\${$as_ac_var+set}\" = set"; then
27018   echo $ECHO_N "(cached) $ECHO_C" >&6
27019 else
27020   cat >conftest.$ac_ext <<_ACEOF
27021 /* confdefs.h.  */
27022 _ACEOF
27023 cat confdefs.h >>conftest.$ac_ext
27024 cat >>conftest.$ac_ext <<_ACEOF
27025 /* end confdefs.h.  */
27026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27028 #define $ac_func innocuous_$ac_func
27029
27030 /* System header to define __stub macros and hopefully few prototypes,
27031     which can conflict with char $ac_func (); below.
27032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27033     <limits.h> exists even on freestanding compilers.  */
27034
27035 #ifdef __STDC__
27036 # include <limits.h>
27037 #else
27038 # include <assert.h>
27039 #endif
27040
27041 #undef $ac_func
27042
27043 /* Override any gcc2 internal prototype to avoid an error.  */
27044 #ifdef __cplusplus
27045 extern "C"
27046 {
27047 #endif
27048 /* We use char because int might match the return type of a gcc2
27049    builtin and then its argument prototype would still apply.  */
27050 char $ac_func ();
27051 /* The GNU C library defines this for functions which it implements
27052     to always fail with ENOSYS.  Some functions are actually named
27053     something starting with __ and the normal name is an alias.  */
27054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27055 choke me
27056 #else
27057 char (*f) () = $ac_func;
27058 #endif
27059 #ifdef __cplusplus
27060 }
27061 #endif
27062
27063 int
27064 main ()
27065 {
27066 return f != $ac_func;
27067   ;
27068   return 0;
27069 }
27070 _ACEOF
27071 rm -f conftest.$ac_objext conftest$ac_exeext
27072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27073   (eval $ac_link) 2>conftest.er1
27074   ac_status=$?
27075   grep -v '^ *+' conftest.er1 >conftest.err
27076   rm -f conftest.er1
27077   cat conftest.err >&5
27078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079   (exit $ac_status); } &&
27080          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082   (eval $ac_try) 2>&5
27083   ac_status=$?
27084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085   (exit $ac_status); }; } &&
27086          { ac_try='test -s conftest$ac_exeext'
27087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088   (eval $ac_try) 2>&5
27089   ac_status=$?
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); }; }; then
27092   eval "$as_ac_var=yes"
27093 else
27094   echo "$as_me: failed program was:" >&5
27095 sed 's/^/| /' conftest.$ac_ext >&5
27096
27097 eval "$as_ac_var=no"
27098 fi
27099 rm -f conftest.err conftest.$ac_objext \
27100       conftest$ac_exeext conftest.$ac_ext
27101 fi
27102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27104 if test `eval echo '${'$as_ac_var'}'` = yes; then
27105   cat >>confdefs.h <<_ACEOF
27106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27107 _ACEOF
27108
27109 fi
27110 done
27111
27112         fi
27113
27114         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27115         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27116
27117         AFMINSTALL=afminstall
27118         TOOLKIT=GTK
27119         GUIDIST=GTK_DIST
27120
27121                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27122 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27123 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27124   echo $ECHO_N "(cached) $ECHO_C" >&6
27125 else
27126   ac_check_lib_save_LIBS=$LIBS
27127 LIBS="-lgdk  $LIBS"
27128 cat >conftest.$ac_ext <<_ACEOF
27129 /* confdefs.h.  */
27130 _ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h.  */
27134
27135 /* Override any gcc2 internal prototype to avoid an error.  */
27136 #ifdef __cplusplus
27137 extern "C"
27138 #endif
27139 /* We use char because int might match the return type of a gcc2
27140    builtin and then its argument prototype would still apply.  */
27141 char gdk_im_open ();
27142 int
27143 main ()
27144 {
27145 gdk_im_open ();
27146   ;
27147   return 0;
27148 }
27149 _ACEOF
27150 rm -f conftest.$ac_objext conftest$ac_exeext
27151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27152   (eval $ac_link) 2>conftest.er1
27153   ac_status=$?
27154   grep -v '^ *+' conftest.er1 >conftest.err
27155   rm -f conftest.er1
27156   cat conftest.err >&5
27157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158   (exit $ac_status); } &&
27159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27161   (eval $ac_try) 2>&5
27162   ac_status=$?
27163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164   (exit $ac_status); }; } &&
27165          { ac_try='test -s conftest$ac_exeext'
27166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27167   (eval $ac_try) 2>&5
27168   ac_status=$?
27169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); }; }; then
27171   ac_cv_lib_gdk_gdk_im_open=yes
27172 else
27173   echo "$as_me: failed program was:" >&5
27174 sed 's/^/| /' conftest.$ac_ext >&5
27175
27176 ac_cv_lib_gdk_gdk_im_open=no
27177 fi
27178 rm -f conftest.err conftest.$ac_objext \
27179       conftest$ac_exeext conftest.$ac_ext
27180 LIBS=$ac_check_lib_save_LIBS
27181 fi
27182 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27183 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27184 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27185   cat >>confdefs.h <<\_ACEOF
27186 #define HAVE_XIM 1
27187 _ACEOF
27188
27189 fi
27190
27191
27192
27193                 if test "$wxUSE_GPE" = "yes"; then
27194             echo "$as_me:$LINENO: checking for gpewidget library" >&5
27195 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27196
27197   ac_find_libraries=
27198   for ac_dir in $SEARCH_LIB;
27199   do
27200     for ac_extension in a so sl dylib dll.a; do
27201       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27202         ac_find_libraries=$ac_dir
27203         break 2
27204       fi
27205     done
27206   done
27207
27208             if test "$ac_find_libraries" != "" ; then
27209
27210     if test "$ac_find_libraries" = "default location"; then
27211     ac_path_to_link=""
27212   else
27213     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27214     result=$?
27215     if test $result = 0; then
27216       ac_path_to_link=""
27217     else
27218       ac_path_to_link=" -L$ac_find_libraries"
27219     fi
27220   fi
27221
27222                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27223                 WXGPE=1
27224                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27225 echo "${ECHO_T}found in $ac_find_libraries" >&6
27226             else
27227                 echo "$as_me:$LINENO: result: not found" >&5
27228 echo "${ECHO_T}not found" >&6
27229             fi
27230
27231                                                                                                                     fi
27232     fi
27233
27234     if test "$wxUSE_MGL" = 1; then
27235        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27236 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27237         if test "x$MGL_ROOT" = x ; then
27238             echo "$as_me:$LINENO: result: not found" >&5
27239 echo "${ECHO_T}not found" >&6
27240             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27241 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27242    { (exit 1); exit 1; }; }
27243         else
27244             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27245 echo "${ECHO_T}$MGL_ROOT" >&6
27246         fi
27247
27248         echo "$as_me:$LINENO: checking for libmgl location" >&5
27249 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27250                                 case "${host}" in
27251             *-*-linux* )
27252                                           if test "x$wxUSE_SHARED" = xyes ; then
27253                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27254               else
27255                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27256               fi
27257               ;;
27258             *-pc-msdosdjgpp )
27259               mgl_os_candidates="dos32/dj2"
27260               ;;
27261             *)
27262               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27263 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27264    { (exit 1); exit 1; }; }
27265         esac
27266
27267         mgl_lib_type=""
27268         mgl_os=""
27269
27270         for mgl_os_i in $mgl_os_candidates ; do
27271             if test "x$mgl_os" = x ; then
27272                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27273                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27274                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27275                         mgl_lib_type=debug
27276                         mgl_os=$mgl_os_i
27277                     fi
27278                 fi
27279                 if test "x$mgl_lib_type" = x ; then
27280                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27281                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27282                         mgl_lib_type=release
27283                         mgl_os=$mgl_os_i
27284                     fi
27285                 fi
27286             fi
27287         done
27288
27289         if test "x$mgl_os" = x ; then
27290             echo "$as_me:$LINENO: result: not found" >&5
27291 echo "${ECHO_T}not found" >&6
27292             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27293 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27294    { (exit 1); exit 1; }; }
27295         fi
27296         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27297 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27298
27299         wxUSE_UNIVERSAL="yes"
27300
27301         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27302         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27303
27304         AFMINSTALL=afminstall
27305         TOOLKIT=MGL
27306         GUIDIST=MGL_DIST
27307     fi
27308
27309     if test "$wxUSE_MICROWIN" = 1; then
27310         echo "$as_me:$LINENO: checking for MicroWindows" >&5
27311 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27312         if test "x$MICROWINDOWS" = x ; then
27313             echo "$as_me:$LINENO: result: not found" >&5
27314 echo "${ECHO_T}not found" >&6
27315             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27316 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27317    { (exit 1); exit 1; }; }
27318         else
27319             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27320 echo "${ECHO_T}$MICROWINDOWS" >&6
27321         fi
27322
27323         if test -f $MICROWINDOWS/lib/libmwin.a; then
27324             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27325 echo "${ECHO_T}MicroWindows' libraries found." >&6
27326         else
27327             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27328 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27329    { (exit 1); exit 1; }; }
27330         fi
27331
27332         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27333         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27334
27335         wxUSE_UNIVERSAL="yes"
27336
27337         AFMINSTALL=afminstall
27338         TOOLKIT=MICROWIN
27339         GUIDIST=MICROWIN_DIST
27340
27341         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27342     fi
27343
27344         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
27345
27346 if test "x$ac_path_x_has_been_run" != xyes; then
27347   echo "$as_me:$LINENO: checking for X" >&5
27348 echo $ECHO_N "checking for X... $ECHO_C" >&6
27349
27350 ac_path_x_has_been_run=yes
27351
27352 # Check whether --with-x or --without-x was given.
27353 if test "${with_x+set}" = set; then
27354   withval="$with_x"
27355
27356 fi;
27357 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27358 if test "x$with_x" = xno; then
27359   # The user explicitly disabled X.
27360   have_x=disabled
27361 else
27362   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27363     # Both variables are already set.
27364     have_x=yes
27365   else
27366     if test "${ac_cv_have_x+set}" = set; then
27367   echo $ECHO_N "(cached) $ECHO_C" >&6
27368 else
27369   # One or both of the vars are not set, and there is no cached value.
27370 ac_x_includes=no ac_x_libraries=no
27371 rm -fr conftest.dir
27372 if mkdir conftest.dir; then
27373   cd conftest.dir
27374   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27375   cat >Imakefile <<'_ACEOF'
27376 acfindx:
27377         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27378 _ACEOF
27379   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27380     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27381     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27382     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27383     for ac_extension in a so sl; do
27384       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
27385          test -f $ac_im_libdir/libX11.$ac_extension; then
27386         ac_im_usrlibdir=$ac_im_libdir; break
27387       fi
27388     done
27389     # Screen out bogus values from the imake configuration.  They are
27390     # bogus both because they are the default anyway, and because
27391     # using them would break gcc on systems where it needs fixed includes.
27392     case $ac_im_incroot in
27393         /usr/include) ;;
27394         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27395     esac
27396     case $ac_im_usrlibdir in
27397         /usr/lib | /lib) ;;
27398         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27399     esac
27400   fi
27401   cd ..
27402   rm -fr conftest.dir
27403 fi
27404
27405 # Standard set of common directories for X headers.
27406 # Check X11 before X11Rn because it is often a symlink to the current release.
27407 ac_x_header_dirs='
27408 /usr/X11/include
27409 /usr/X11R6/include
27410 /usr/X11R5/include
27411 /usr/X11R4/include
27412
27413 /usr/include/X11
27414 /usr/include/X11R6
27415 /usr/include/X11R5
27416 /usr/include/X11R4
27417
27418 /usr/local/X11/include
27419 /usr/local/X11R6/include
27420 /usr/local/X11R5/include
27421 /usr/local/X11R4/include
27422
27423 /usr/local/include/X11
27424 /usr/local/include/X11R6
27425 /usr/local/include/X11R5
27426 /usr/local/include/X11R4
27427
27428 /usr/X386/include
27429 /usr/x386/include
27430 /usr/XFree86/include/X11
27431
27432 /usr/include
27433 /usr/local/include
27434 /usr/unsupported/include
27435 /usr/athena/include
27436 /usr/local/x11r5/include
27437 /usr/lpp/Xamples/include
27438
27439 /usr/openwin/include
27440 /usr/openwin/share/include'
27441
27442 if test "$ac_x_includes" = no; then
27443   # Guess where to find include files, by looking for a specified header file.
27444   # First, try using that file with no special directory specified.
27445   cat >conftest.$ac_ext <<_ACEOF
27446 /* confdefs.h.  */
27447 _ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h.  */
27451 #include <X11/Intrinsic.h>
27452 _ACEOF
27453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27454   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27455   ac_status=$?
27456   grep -v '^ *+' conftest.er1 >conftest.err
27457   rm -f conftest.er1
27458   cat conftest.err >&5
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); } >/dev/null; then
27461   if test -s conftest.err; then
27462     ac_cpp_err=$ac_c_preproc_warn_flag
27463     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27464   else
27465     ac_cpp_err=
27466   fi
27467 else
27468   ac_cpp_err=yes
27469 fi
27470 if test -z "$ac_cpp_err"; then
27471   # We can compile using X headers with no special include directory.
27472 ac_x_includes=
27473 else
27474   echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27476
27477   for ac_dir in $ac_x_header_dirs; do
27478   if test -r "$ac_dir/X11/Intrinsic.h"; then
27479     ac_x_includes=$ac_dir
27480     break
27481   fi
27482 done
27483 fi
27484 rm -f conftest.err conftest.$ac_ext
27485 fi # $ac_x_includes = no
27486
27487 if test "$ac_x_libraries" = no; then
27488   # Check for the libraries.
27489   # See if we find them without any special options.
27490   # Don't add to $LIBS permanently.
27491   ac_save_LIBS=$LIBS
27492   LIBS="-lXt $LIBS"
27493   cat >conftest.$ac_ext <<_ACEOF
27494 /* confdefs.h.  */
27495 _ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h.  */
27499 #include <X11/Intrinsic.h>
27500 int
27501 main ()
27502 {
27503 XtMalloc (0)
27504   ;
27505   return 0;
27506 }
27507 _ACEOF
27508 rm -f conftest.$ac_objext conftest$ac_exeext
27509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27510   (eval $ac_link) 2>conftest.er1
27511   ac_status=$?
27512   grep -v '^ *+' conftest.er1 >conftest.err
27513   rm -f conftest.er1
27514   cat conftest.err >&5
27515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516   (exit $ac_status); } &&
27517          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519   (eval $ac_try) 2>&5
27520   ac_status=$?
27521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); }; } &&
27523          { ac_try='test -s conftest$ac_exeext'
27524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525   (eval $ac_try) 2>&5
27526   ac_status=$?
27527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); }; }; then
27529   LIBS=$ac_save_LIBS
27530 # We can link X programs with no special library path.
27531 ac_x_libraries=
27532 else
27533   echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27535
27536 LIBS=$ac_save_LIBS
27537 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27538 do
27539   # Don't even attempt the hair of trying to link an X program!
27540   for ac_extension in a so sl; do
27541     if test -r $ac_dir/libXt.$ac_extension; then
27542       ac_x_libraries=$ac_dir
27543       break 2
27544     fi
27545   done
27546 done
27547 fi
27548 rm -f conftest.err conftest.$ac_objext \
27549       conftest$ac_exeext conftest.$ac_ext
27550 fi # $ac_x_libraries = no
27551
27552 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27553   # Didn't find X anywhere.  Cache the known absence of X.
27554   ac_cv_have_x="have_x=no"
27555 else
27556   # Record where we found X for the cache.
27557   ac_cv_have_x="have_x=yes \
27558                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
27559 fi
27560 fi
27561
27562   fi
27563   eval "$ac_cv_have_x"
27564 fi # $with_x != no
27565
27566 if test "$have_x" != yes; then
27567   echo "$as_me:$LINENO: result: $have_x" >&5
27568 echo "${ECHO_T}$have_x" >&6
27569   no_x=yes
27570 else
27571   # If each of the values was on the command line, it overrides each guess.
27572   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27573   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27574   # Update the cache value to reflect the command line values.
27575   ac_cv_have_x="have_x=yes \
27576                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
27577   # It might be that x_includes is empty (headers are found in the
27578   # standard search path. Then output the corresponding message
27579   ac_out_x_includes=$x_includes
27580   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
27581   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
27582 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
27583 fi
27584
27585 fi
27586 if test "$no_x" = yes; then
27587   # Not all programs may use this symbol, but it does not hurt to define it.
27588
27589 cat >>confdefs.h <<\_ACEOF
27590 #define X_DISPLAY_MISSING 1
27591 _ACEOF
27592
27593   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27594 else
27595   if test -n "$x_includes"; then
27596     X_CFLAGS="$X_CFLAGS -I$x_includes"
27597   fi
27598
27599   # It would also be nice to do this for all -L options, not just this one.
27600   if test -n "$x_libraries"; then
27601     X_LIBS="$X_LIBS -L$x_libraries"
27602     # For Solaris; some versions of Sun CC require a space after -R and
27603     # others require no space.  Words are not sufficient . . . .
27604     case `(uname -sr) 2>/dev/null` in
27605     "SunOS 5"*)
27606       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27607 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27608       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27609       cat >conftest.$ac_ext <<_ACEOF
27610 /* confdefs.h.  */
27611 _ACEOF
27612 cat confdefs.h >>conftest.$ac_ext
27613 cat >>conftest.$ac_ext <<_ACEOF
27614 /* end confdefs.h.  */
27615
27616 int
27617 main ()
27618 {
27619
27620   ;
27621   return 0;
27622 }
27623 _ACEOF
27624 rm -f conftest.$ac_objext conftest$ac_exeext
27625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27626   (eval $ac_link) 2>conftest.er1
27627   ac_status=$?
27628   grep -v '^ *+' conftest.er1 >conftest.err
27629   rm -f conftest.er1
27630   cat conftest.err >&5
27631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632   (exit $ac_status); } &&
27633          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635   (eval $ac_try) 2>&5
27636   ac_status=$?
27637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638   (exit $ac_status); }; } &&
27639          { ac_try='test -s conftest$ac_exeext'
27640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27641   (eval $ac_try) 2>&5
27642   ac_status=$?
27643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644   (exit $ac_status); }; }; then
27645   ac_R_nospace=yes
27646 else
27647   echo "$as_me: failed program was:" >&5
27648 sed 's/^/| /' conftest.$ac_ext >&5
27649
27650 ac_R_nospace=no
27651 fi
27652 rm -f conftest.err conftest.$ac_objext \
27653       conftest$ac_exeext conftest.$ac_ext
27654       if test $ac_R_nospace = yes; then
27655         echo "$as_me:$LINENO: result: no" >&5
27656 echo "${ECHO_T}no" >&6
27657         X_LIBS="$X_LIBS -R$x_libraries"
27658       else
27659         LIBS="$ac_xsave_LIBS -R $x_libraries"
27660         cat >conftest.$ac_ext <<_ACEOF
27661 /* confdefs.h.  */
27662 _ACEOF
27663 cat confdefs.h >>conftest.$ac_ext
27664 cat >>conftest.$ac_ext <<_ACEOF
27665 /* end confdefs.h.  */
27666
27667 int
27668 main ()
27669 {
27670
27671   ;
27672   return 0;
27673 }
27674 _ACEOF
27675 rm -f conftest.$ac_objext conftest$ac_exeext
27676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27677   (eval $ac_link) 2>conftest.er1
27678   ac_status=$?
27679   grep -v '^ *+' conftest.er1 >conftest.err
27680   rm -f conftest.er1
27681   cat conftest.err >&5
27682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683   (exit $ac_status); } &&
27684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27686   (eval $ac_try) 2>&5
27687   ac_status=$?
27688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689   (exit $ac_status); }; } &&
27690          { ac_try='test -s conftest$ac_exeext'
27691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27692   (eval $ac_try) 2>&5
27693   ac_status=$?
27694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); }; }; then
27696   ac_R_space=yes
27697 else
27698   echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27700
27701 ac_R_space=no
27702 fi
27703 rm -f conftest.err conftest.$ac_objext \
27704       conftest$ac_exeext conftest.$ac_ext
27705         if test $ac_R_space = yes; then
27706           echo "$as_me:$LINENO: result: yes" >&5
27707 echo "${ECHO_T}yes" >&6
27708           X_LIBS="$X_LIBS -R $x_libraries"
27709         else
27710           echo "$as_me:$LINENO: result: neither works" >&5
27711 echo "${ECHO_T}neither works" >&6
27712         fi
27713       fi
27714       LIBS=$ac_xsave_LIBS
27715     esac
27716   fi
27717
27718   # Check for system-dependent libraries X programs must link with.
27719   # Do this before checking for the system-independent R6 libraries
27720   # (-lICE), since we may need -lsocket or whatever for X linking.
27721
27722   if test "$ISC" = yes; then
27723     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27724   else
27725     # Martyn Johnson says this is needed for Ultrix, if the X
27726     # libraries were built with DECnet support.  And Karl Berry says
27727     # the Alpha needs dnet_stub (dnet does not exist).
27728     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27729     cat >conftest.$ac_ext <<_ACEOF
27730 /* confdefs.h.  */
27731 _ACEOF
27732 cat confdefs.h >>conftest.$ac_ext
27733 cat >>conftest.$ac_ext <<_ACEOF
27734 /* end confdefs.h.  */
27735
27736 /* Override any gcc2 internal prototype to avoid an error.  */
27737 #ifdef __cplusplus
27738 extern "C"
27739 #endif
27740 /* We use char because int might match the return type of a gcc2
27741    builtin and then its argument prototype would still apply.  */
27742 char XOpenDisplay ();
27743 int
27744 main ()
27745 {
27746 XOpenDisplay ();
27747   ;
27748   return 0;
27749 }
27750 _ACEOF
27751 rm -f conftest.$ac_objext conftest$ac_exeext
27752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27753   (eval $ac_link) 2>conftest.er1
27754   ac_status=$?
27755   grep -v '^ *+' conftest.er1 >conftest.err
27756   rm -f conftest.er1
27757   cat conftest.err >&5
27758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759   (exit $ac_status); } &&
27760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762   (eval $ac_try) 2>&5
27763   ac_status=$?
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); }; } &&
27766          { ac_try='test -s conftest$ac_exeext'
27767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27768   (eval $ac_try) 2>&5
27769   ac_status=$?
27770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771   (exit $ac_status); }; }; then
27772   :
27773 else
27774   echo "$as_me: failed program was:" >&5
27775 sed 's/^/| /' conftest.$ac_ext >&5
27776
27777 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27778 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27779 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27780   echo $ECHO_N "(cached) $ECHO_C" >&6
27781 else
27782   ac_check_lib_save_LIBS=$LIBS
27783 LIBS="-ldnet  $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error.  */
27792 #ifdef __cplusplus
27793 extern "C"
27794 #endif
27795 /* We use char because int might match the return type of a gcc2
27796    builtin and then its argument prototype would still apply.  */
27797 char dnet_ntoa ();
27798 int
27799 main ()
27800 {
27801 dnet_ntoa ();
27802   ;
27803   return 0;
27804 }
27805 _ACEOF
27806 rm -f conftest.$ac_objext conftest$ac_exeext
27807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27808   (eval $ac_link) 2>conftest.er1
27809   ac_status=$?
27810   grep -v '^ *+' conftest.er1 >conftest.err
27811   rm -f conftest.er1
27812   cat conftest.err >&5
27813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814   (exit $ac_status); } &&
27815          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817   (eval $ac_try) 2>&5
27818   ac_status=$?
27819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820   (exit $ac_status); }; } &&
27821          { ac_try='test -s conftest$ac_exeext'
27822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27823   (eval $ac_try) 2>&5
27824   ac_status=$?
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); }; }; then
27827   ac_cv_lib_dnet_dnet_ntoa=yes
27828 else
27829   echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27831
27832 ac_cv_lib_dnet_dnet_ntoa=no
27833 fi
27834 rm -f conftest.err conftest.$ac_objext \
27835       conftest$ac_exeext conftest.$ac_ext
27836 LIBS=$ac_check_lib_save_LIBS
27837 fi
27838 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27839 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27840 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27841   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27842 fi
27843
27844     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27845       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27846 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27847 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27848   echo $ECHO_N "(cached) $ECHO_C" >&6
27849 else
27850   ac_check_lib_save_LIBS=$LIBS
27851 LIBS="-ldnet_stub  $LIBS"
27852 cat >conftest.$ac_ext <<_ACEOF
27853 /* confdefs.h.  */
27854 _ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h.  */
27858
27859 /* Override any gcc2 internal prototype to avoid an error.  */
27860 #ifdef __cplusplus
27861 extern "C"
27862 #endif
27863 /* We use char because int might match the return type of a gcc2
27864    builtin and then its argument prototype would still apply.  */
27865 char dnet_ntoa ();
27866 int
27867 main ()
27868 {
27869 dnet_ntoa ();
27870   ;
27871   return 0;
27872 }
27873 _ACEOF
27874 rm -f conftest.$ac_objext conftest$ac_exeext
27875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27876   (eval $ac_link) 2>conftest.er1
27877   ac_status=$?
27878   grep -v '^ *+' conftest.er1 >conftest.err
27879   rm -f conftest.er1
27880   cat conftest.err >&5
27881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882   (exit $ac_status); } &&
27883          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885   (eval $ac_try) 2>&5
27886   ac_status=$?
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); }; } &&
27889          { ac_try='test -s conftest$ac_exeext'
27890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27891   (eval $ac_try) 2>&5
27892   ac_status=$?
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); }; }; then
27895   ac_cv_lib_dnet_stub_dnet_ntoa=yes
27896 else
27897   echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27899
27900 ac_cv_lib_dnet_stub_dnet_ntoa=no
27901 fi
27902 rm -f conftest.err conftest.$ac_objext \
27903       conftest$ac_exeext conftest.$ac_ext
27904 LIBS=$ac_check_lib_save_LIBS
27905 fi
27906 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27907 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27908 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27909   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27910 fi
27911
27912     fi
27913 fi
27914 rm -f conftest.err conftest.$ac_objext \
27915       conftest$ac_exeext conftest.$ac_ext
27916     LIBS="$ac_xsave_LIBS"
27917
27918     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27919     # to get the SysV transport functions.
27920     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27921     # needs -lnsl.
27922     # The nsl library prevents programs from opening the X display
27923     # on Irix 5.2, according to T.E. Dickey.
27924     # The functions gethostbyname, getservbyname, and inet_addr are
27925     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27926     echo "$as_me:$LINENO: checking for gethostbyname" >&5
27927 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27928 if test "${ac_cv_func_gethostbyname+set}" = set; then
27929   echo $ECHO_N "(cached) $ECHO_C" >&6
27930 else
27931   cat >conftest.$ac_ext <<_ACEOF
27932 /* confdefs.h.  */
27933 _ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h.  */
27937 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27939 #define gethostbyname innocuous_gethostbyname
27940
27941 /* System header to define __stub macros and hopefully few prototypes,
27942     which can conflict with char gethostbyname (); below.
27943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27944     <limits.h> exists even on freestanding compilers.  */
27945
27946 #ifdef __STDC__
27947 # include <limits.h>
27948 #else
27949 # include <assert.h>
27950 #endif
27951
27952 #undef gethostbyname
27953
27954 /* Override any gcc2 internal prototype to avoid an error.  */
27955 #ifdef __cplusplus
27956 extern "C"
27957 {
27958 #endif
27959 /* We use char because int might match the return type of a gcc2
27960    builtin and then its argument prototype would still apply.  */
27961 char gethostbyname ();
27962 /* The GNU C library defines this for functions which it implements
27963     to always fail with ENOSYS.  Some functions are actually named
27964     something starting with __ and the normal name is an alias.  */
27965 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27966 choke me
27967 #else
27968 char (*f) () = gethostbyname;
27969 #endif
27970 #ifdef __cplusplus
27971 }
27972 #endif
27973
27974 int
27975 main ()
27976 {
27977 return f != gethostbyname;
27978   ;
27979   return 0;
27980 }
27981 _ACEOF
27982 rm -f conftest.$ac_objext conftest$ac_exeext
27983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27984   (eval $ac_link) 2>conftest.er1
27985   ac_status=$?
27986   grep -v '^ *+' conftest.er1 >conftest.err
27987   rm -f conftest.er1
27988   cat conftest.err >&5
27989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990   (exit $ac_status); } &&
27991          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993   (eval $ac_try) 2>&5
27994   ac_status=$?
27995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996   (exit $ac_status); }; } &&
27997          { ac_try='test -s conftest$ac_exeext'
27998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27999   (eval $ac_try) 2>&5
28000   ac_status=$?
28001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002   (exit $ac_status); }; }; then
28003   ac_cv_func_gethostbyname=yes
28004 else
28005   echo "$as_me: failed program was:" >&5
28006 sed 's/^/| /' conftest.$ac_ext >&5
28007
28008 ac_cv_func_gethostbyname=no
28009 fi
28010 rm -f conftest.err conftest.$ac_objext \
28011       conftest$ac_exeext conftest.$ac_ext
28012 fi
28013 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28014 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28015
28016     if test $ac_cv_func_gethostbyname = no; then
28017       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28018 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28019 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28020   echo $ECHO_N "(cached) $ECHO_C" >&6
28021 else
28022   ac_check_lib_save_LIBS=$LIBS
28023 LIBS="-lnsl  $LIBS"
28024 cat >conftest.$ac_ext <<_ACEOF
28025 /* confdefs.h.  */
28026 _ACEOF
28027 cat confdefs.h >>conftest.$ac_ext
28028 cat >>conftest.$ac_ext <<_ACEOF
28029 /* end confdefs.h.  */
28030
28031 /* Override any gcc2 internal prototype to avoid an error.  */
28032 #ifdef __cplusplus
28033 extern "C"
28034 #endif
28035 /* We use char because int might match the return type of a gcc2
28036    builtin and then its argument prototype would still apply.  */
28037 char gethostbyname ();
28038 int
28039 main ()
28040 {
28041 gethostbyname ();
28042   ;
28043   return 0;
28044 }
28045 _ACEOF
28046 rm -f conftest.$ac_objext conftest$ac_exeext
28047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28048   (eval $ac_link) 2>conftest.er1
28049   ac_status=$?
28050   grep -v '^ *+' conftest.er1 >conftest.err
28051   rm -f conftest.er1
28052   cat conftest.err >&5
28053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054   (exit $ac_status); } &&
28055          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28057   (eval $ac_try) 2>&5
28058   ac_status=$?
28059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060   (exit $ac_status); }; } &&
28061          { ac_try='test -s conftest$ac_exeext'
28062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28063   (eval $ac_try) 2>&5
28064   ac_status=$?
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); }; }; then
28067   ac_cv_lib_nsl_gethostbyname=yes
28068 else
28069   echo "$as_me: failed program was:" >&5
28070 sed 's/^/| /' conftest.$ac_ext >&5
28071
28072 ac_cv_lib_nsl_gethostbyname=no
28073 fi
28074 rm -f conftest.err conftest.$ac_objext \
28075       conftest$ac_exeext conftest.$ac_ext
28076 LIBS=$ac_check_lib_save_LIBS
28077 fi
28078 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28079 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28080 if test $ac_cv_lib_nsl_gethostbyname = yes; then
28081   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28082 fi
28083
28084       if test $ac_cv_lib_nsl_gethostbyname = no; then
28085         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28086 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28087 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28088   echo $ECHO_N "(cached) $ECHO_C" >&6
28089 else
28090   ac_check_lib_save_LIBS=$LIBS
28091 LIBS="-lbsd  $LIBS"
28092 cat >conftest.$ac_ext <<_ACEOF
28093 /* confdefs.h.  */
28094 _ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h.  */
28098
28099 /* Override any gcc2 internal prototype to avoid an error.  */
28100 #ifdef __cplusplus
28101 extern "C"
28102 #endif
28103 /* We use char because int might match the return type of a gcc2
28104    builtin and then its argument prototype would still apply.  */
28105 char gethostbyname ();
28106 int
28107 main ()
28108 {
28109 gethostbyname ();
28110   ;
28111   return 0;
28112 }
28113 _ACEOF
28114 rm -f conftest.$ac_objext conftest$ac_exeext
28115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28116   (eval $ac_link) 2>conftest.er1
28117   ac_status=$?
28118   grep -v '^ *+' conftest.er1 >conftest.err
28119   rm -f conftest.er1
28120   cat conftest.err >&5
28121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122   (exit $ac_status); } &&
28123          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28125   (eval $ac_try) 2>&5
28126   ac_status=$?
28127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128   (exit $ac_status); }; } &&
28129          { ac_try='test -s conftest$ac_exeext'
28130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28131   (eval $ac_try) 2>&5
28132   ac_status=$?
28133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134   (exit $ac_status); }; }; then
28135   ac_cv_lib_bsd_gethostbyname=yes
28136 else
28137   echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28139
28140 ac_cv_lib_bsd_gethostbyname=no
28141 fi
28142 rm -f conftest.err conftest.$ac_objext \
28143       conftest$ac_exeext conftest.$ac_ext
28144 LIBS=$ac_check_lib_save_LIBS
28145 fi
28146 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28147 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28148 if test $ac_cv_lib_bsd_gethostbyname = yes; then
28149   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28150 fi
28151
28152       fi
28153     fi
28154
28155     # lieder@skyler.mavd.honeywell.com says without -lsocket,
28156     # socket/setsockopt and other routines are undefined under SCO ODT
28157     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
28158     # on later versions), says Simon Leinen: it contains gethostby*
28159     # variants that don't use the name server (or something).  -lsocket
28160     # must be given before -lnsl if both are needed.  We assume that
28161     # if connect needs -lnsl, so does gethostbyname.
28162     echo "$as_me:$LINENO: checking for connect" >&5
28163 echo $ECHO_N "checking for connect... $ECHO_C" >&6
28164 if test "${ac_cv_func_connect+set}" = set; then
28165   echo $ECHO_N "(cached) $ECHO_C" >&6
28166 else
28167   cat >conftest.$ac_ext <<_ACEOF
28168 /* confdefs.h.  */
28169 _ACEOF
28170 cat confdefs.h >>conftest.$ac_ext
28171 cat >>conftest.$ac_ext <<_ACEOF
28172 /* end confdefs.h.  */
28173 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
28174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28175 #define connect innocuous_connect
28176
28177 /* System header to define __stub macros and hopefully few prototypes,
28178     which can conflict with char connect (); below.
28179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28180     <limits.h> exists even on freestanding compilers.  */
28181
28182 #ifdef __STDC__
28183 # include <limits.h>
28184 #else
28185 # include <assert.h>
28186 #endif
28187
28188 #undef connect
28189
28190 /* Override any gcc2 internal prototype to avoid an error.  */
28191 #ifdef __cplusplus
28192 extern "C"
28193 {
28194 #endif
28195 /* We use char because int might match the return type of a gcc2
28196    builtin and then its argument prototype would still apply.  */
28197 char connect ();
28198 /* The GNU C library defines this for functions which it implements
28199     to always fail with ENOSYS.  Some functions are actually named
28200     something starting with __ and the normal name is an alias.  */
28201 #if defined (__stub_connect) || defined (__stub___connect)
28202 choke me
28203 #else
28204 char (*f) () = connect;
28205 #endif
28206 #ifdef __cplusplus
28207 }
28208 #endif
28209
28210 int
28211 main ()
28212 {
28213 return f != connect;
28214   ;
28215   return 0;
28216 }
28217 _ACEOF
28218 rm -f conftest.$ac_objext conftest$ac_exeext
28219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28220   (eval $ac_link) 2>conftest.er1
28221   ac_status=$?
28222   grep -v '^ *+' conftest.er1 >conftest.err
28223   rm -f conftest.er1
28224   cat conftest.err >&5
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); } &&
28227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229   (eval $ac_try) 2>&5
28230   ac_status=$?
28231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232   (exit $ac_status); }; } &&
28233          { ac_try='test -s conftest$ac_exeext'
28234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235   (eval $ac_try) 2>&5
28236   ac_status=$?
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); }; }; then
28239   ac_cv_func_connect=yes
28240 else
28241   echo "$as_me: failed program was:" >&5
28242 sed 's/^/| /' conftest.$ac_ext >&5
28243
28244 ac_cv_func_connect=no
28245 fi
28246 rm -f conftest.err conftest.$ac_objext \
28247       conftest$ac_exeext conftest.$ac_ext
28248 fi
28249 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28250 echo "${ECHO_T}$ac_cv_func_connect" >&6
28251
28252     if test $ac_cv_func_connect = no; then
28253       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28254 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28255 if test "${ac_cv_lib_socket_connect+set}" = set; then
28256   echo $ECHO_N "(cached) $ECHO_C" >&6
28257 else
28258   ac_check_lib_save_LIBS=$LIBS
28259 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28260 cat >conftest.$ac_ext <<_ACEOF
28261 /* confdefs.h.  */
28262 _ACEOF
28263 cat confdefs.h >>conftest.$ac_ext
28264 cat >>conftest.$ac_ext <<_ACEOF
28265 /* end confdefs.h.  */
28266
28267 /* Override any gcc2 internal prototype to avoid an error.  */
28268 #ifdef __cplusplus
28269 extern "C"
28270 #endif
28271 /* We use char because int might match the return type of a gcc2
28272    builtin and then its argument prototype would still apply.  */
28273 char connect ();
28274 int
28275 main ()
28276 {
28277 connect ();
28278   ;
28279   return 0;
28280 }
28281 _ACEOF
28282 rm -f conftest.$ac_objext conftest$ac_exeext
28283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28284   (eval $ac_link) 2>conftest.er1
28285   ac_status=$?
28286   grep -v '^ *+' conftest.er1 >conftest.err
28287   rm -f conftest.er1
28288   cat conftest.err >&5
28289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); } &&
28291          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293   (eval $ac_try) 2>&5
28294   ac_status=$?
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); }; } &&
28297          { ac_try='test -s conftest$ac_exeext'
28298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28299   (eval $ac_try) 2>&5
28300   ac_status=$?
28301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302   (exit $ac_status); }; }; then
28303   ac_cv_lib_socket_connect=yes
28304 else
28305   echo "$as_me: failed program was:" >&5
28306 sed 's/^/| /' conftest.$ac_ext >&5
28307
28308 ac_cv_lib_socket_connect=no
28309 fi
28310 rm -f conftest.err conftest.$ac_objext \
28311       conftest$ac_exeext conftest.$ac_ext
28312 LIBS=$ac_check_lib_save_LIBS
28313 fi
28314 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28315 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28316 if test $ac_cv_lib_socket_connect = yes; then
28317   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28318 fi
28319
28320     fi
28321
28322     # Guillermo Gomez says -lposix is necessary on A/UX.
28323     echo "$as_me:$LINENO: checking for remove" >&5
28324 echo $ECHO_N "checking for remove... $ECHO_C" >&6
28325 if test "${ac_cv_func_remove+set}" = set; then
28326   echo $ECHO_N "(cached) $ECHO_C" >&6
28327 else
28328   cat >conftest.$ac_ext <<_ACEOF
28329 /* confdefs.h.  */
28330 _ACEOF
28331 cat confdefs.h >>conftest.$ac_ext
28332 cat >>conftest.$ac_ext <<_ACEOF
28333 /* end confdefs.h.  */
28334 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
28335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28336 #define remove innocuous_remove
28337
28338 /* System header to define __stub macros and hopefully few prototypes,
28339     which can conflict with char remove (); below.
28340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28341     <limits.h> exists even on freestanding compilers.  */
28342
28343 #ifdef __STDC__
28344 # include <limits.h>
28345 #else
28346 # include <assert.h>
28347 #endif
28348
28349 #undef remove
28350
28351 /* Override any gcc2 internal prototype to avoid an error.  */
28352 #ifdef __cplusplus
28353 extern "C"
28354 {
28355 #endif
28356 /* We use char because int might match the return type of a gcc2
28357    builtin and then its argument prototype would still apply.  */
28358 char remove ();
28359 /* The GNU C library defines this for functions which it implements
28360     to always fail with ENOSYS.  Some functions are actually named
28361     something starting with __ and the normal name is an alias.  */
28362 #if defined (__stub_remove) || defined (__stub___remove)
28363 choke me
28364 #else
28365 char (*f) () = remove;
28366 #endif
28367 #ifdef __cplusplus
28368 }
28369 #endif
28370
28371 int
28372 main ()
28373 {
28374 return f != remove;
28375   ;
28376   return 0;
28377 }
28378 _ACEOF
28379 rm -f conftest.$ac_objext conftest$ac_exeext
28380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28381   (eval $ac_link) 2>conftest.er1
28382   ac_status=$?
28383   grep -v '^ *+' conftest.er1 >conftest.err
28384   rm -f conftest.er1
28385   cat conftest.err >&5
28386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387   (exit $ac_status); } &&
28388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390   (eval $ac_try) 2>&5
28391   ac_status=$?
28392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393   (exit $ac_status); }; } &&
28394          { ac_try='test -s conftest$ac_exeext'
28395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396   (eval $ac_try) 2>&5
28397   ac_status=$?
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); }; }; then
28400   ac_cv_func_remove=yes
28401 else
28402   echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.$ac_ext >&5
28404
28405 ac_cv_func_remove=no
28406 fi
28407 rm -f conftest.err conftest.$ac_objext \
28408       conftest$ac_exeext conftest.$ac_ext
28409 fi
28410 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28411 echo "${ECHO_T}$ac_cv_func_remove" >&6
28412
28413     if test $ac_cv_func_remove = no; then
28414       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28415 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28416 if test "${ac_cv_lib_posix_remove+set}" = set; then
28417   echo $ECHO_N "(cached) $ECHO_C" >&6
28418 else
28419   ac_check_lib_save_LIBS=$LIBS
28420 LIBS="-lposix  $LIBS"
28421 cat >conftest.$ac_ext <<_ACEOF
28422 /* confdefs.h.  */
28423 _ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h.  */
28427
28428 /* Override any gcc2 internal prototype to avoid an error.  */
28429 #ifdef __cplusplus
28430 extern "C"
28431 #endif
28432 /* We use char because int might match the return type of a gcc2
28433    builtin and then its argument prototype would still apply.  */
28434 char remove ();
28435 int
28436 main ()
28437 {
28438 remove ();
28439   ;
28440   return 0;
28441 }
28442 _ACEOF
28443 rm -f conftest.$ac_objext conftest$ac_exeext
28444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28445   (eval $ac_link) 2>conftest.er1
28446   ac_status=$?
28447   grep -v '^ *+' conftest.er1 >conftest.err
28448   rm -f conftest.er1
28449   cat conftest.err >&5
28450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451   (exit $ac_status); } &&
28452          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454   (eval $ac_try) 2>&5
28455   ac_status=$?
28456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457   (exit $ac_status); }; } &&
28458          { ac_try='test -s conftest$ac_exeext'
28459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28460   (eval $ac_try) 2>&5
28461   ac_status=$?
28462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463   (exit $ac_status); }; }; then
28464   ac_cv_lib_posix_remove=yes
28465 else
28466   echo "$as_me: failed program was:" >&5
28467 sed 's/^/| /' conftest.$ac_ext >&5
28468
28469 ac_cv_lib_posix_remove=no
28470 fi
28471 rm -f conftest.err conftest.$ac_objext \
28472       conftest$ac_exeext conftest.$ac_ext
28473 LIBS=$ac_check_lib_save_LIBS
28474 fi
28475 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28476 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28477 if test $ac_cv_lib_posix_remove = yes; then
28478   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28479 fi
28480
28481     fi
28482
28483     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28484     echo "$as_me:$LINENO: checking for shmat" >&5
28485 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28486 if test "${ac_cv_func_shmat+set}" = set; then
28487   echo $ECHO_N "(cached) $ECHO_C" >&6
28488 else
28489   cat >conftest.$ac_ext <<_ACEOF
28490 /* confdefs.h.  */
28491 _ACEOF
28492 cat confdefs.h >>conftest.$ac_ext
28493 cat >>conftest.$ac_ext <<_ACEOF
28494 /* end confdefs.h.  */
28495 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28497 #define shmat innocuous_shmat
28498
28499 /* System header to define __stub macros and hopefully few prototypes,
28500     which can conflict with char shmat (); below.
28501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28502     <limits.h> exists even on freestanding compilers.  */
28503
28504 #ifdef __STDC__
28505 # include <limits.h>
28506 #else
28507 # include <assert.h>
28508 #endif
28509
28510 #undef shmat
28511
28512 /* Override any gcc2 internal prototype to avoid an error.  */
28513 #ifdef __cplusplus
28514 extern "C"
28515 {
28516 #endif
28517 /* We use char because int might match the return type of a gcc2
28518    builtin and then its argument prototype would still apply.  */
28519 char shmat ();
28520 /* The GNU C library defines this for functions which it implements
28521     to always fail with ENOSYS.  Some functions are actually named
28522     something starting with __ and the normal name is an alias.  */
28523 #if defined (__stub_shmat) || defined (__stub___shmat)
28524 choke me
28525 #else
28526 char (*f) () = shmat;
28527 #endif
28528 #ifdef __cplusplus
28529 }
28530 #endif
28531
28532 int
28533 main ()
28534 {
28535 return f != shmat;
28536   ;
28537   return 0;
28538 }
28539 _ACEOF
28540 rm -f conftest.$ac_objext conftest$ac_exeext
28541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28542   (eval $ac_link) 2>conftest.er1
28543   ac_status=$?
28544   grep -v '^ *+' conftest.er1 >conftest.err
28545   rm -f conftest.er1
28546   cat conftest.err >&5
28547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548   (exit $ac_status); } &&
28549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551   (eval $ac_try) 2>&5
28552   ac_status=$?
28553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554   (exit $ac_status); }; } &&
28555          { ac_try='test -s conftest$ac_exeext'
28556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557   (eval $ac_try) 2>&5
28558   ac_status=$?
28559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560   (exit $ac_status); }; }; then
28561   ac_cv_func_shmat=yes
28562 else
28563   echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28565
28566 ac_cv_func_shmat=no
28567 fi
28568 rm -f conftest.err conftest.$ac_objext \
28569       conftest$ac_exeext conftest.$ac_ext
28570 fi
28571 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28572 echo "${ECHO_T}$ac_cv_func_shmat" >&6
28573
28574     if test $ac_cv_func_shmat = no; then
28575       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28576 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28577 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28578   echo $ECHO_N "(cached) $ECHO_C" >&6
28579 else
28580   ac_check_lib_save_LIBS=$LIBS
28581 LIBS="-lipc  $LIBS"
28582 cat >conftest.$ac_ext <<_ACEOF
28583 /* confdefs.h.  */
28584 _ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h.  */
28588
28589 /* Override any gcc2 internal prototype to avoid an error.  */
28590 #ifdef __cplusplus
28591 extern "C"
28592 #endif
28593 /* We use char because int might match the return type of a gcc2
28594    builtin and then its argument prototype would still apply.  */
28595 char shmat ();
28596 int
28597 main ()
28598 {
28599 shmat ();
28600   ;
28601   return 0;
28602 }
28603 _ACEOF
28604 rm -f conftest.$ac_objext conftest$ac_exeext
28605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28606   (eval $ac_link) 2>conftest.er1
28607   ac_status=$?
28608   grep -v '^ *+' conftest.er1 >conftest.err
28609   rm -f conftest.er1
28610   cat conftest.err >&5
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); } &&
28613          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615   (eval $ac_try) 2>&5
28616   ac_status=$?
28617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618   (exit $ac_status); }; } &&
28619          { ac_try='test -s conftest$ac_exeext'
28620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28621   (eval $ac_try) 2>&5
28622   ac_status=$?
28623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624   (exit $ac_status); }; }; then
28625   ac_cv_lib_ipc_shmat=yes
28626 else
28627   echo "$as_me: failed program was:" >&5
28628 sed 's/^/| /' conftest.$ac_ext >&5
28629
28630 ac_cv_lib_ipc_shmat=no
28631 fi
28632 rm -f conftest.err conftest.$ac_objext \
28633       conftest$ac_exeext conftest.$ac_ext
28634 LIBS=$ac_check_lib_save_LIBS
28635 fi
28636 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28637 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28638 if test $ac_cv_lib_ipc_shmat = yes; then
28639   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28640 fi
28641
28642     fi
28643   fi
28644
28645   # Check for libraries that X11R6 Xt/Xaw programs need.
28646   ac_save_LDFLAGS=$LDFLAGS
28647   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28648   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28649   # check for ICE first), but we must link in the order -lSM -lICE or
28650   # we get undefined symbols.  So assume we have SM if we have ICE.
28651   # These have to be linked with before -lX11, unlike the other
28652   # libraries we check for below, so use a different variable.
28653   # John Interrante, Karl Berry
28654   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28655 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28656 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28657   echo $ECHO_N "(cached) $ECHO_C" >&6
28658 else
28659   ac_check_lib_save_LIBS=$LIBS
28660 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28661 cat >conftest.$ac_ext <<_ACEOF
28662 /* confdefs.h.  */
28663 _ACEOF
28664 cat confdefs.h >>conftest.$ac_ext
28665 cat >>conftest.$ac_ext <<_ACEOF
28666 /* end confdefs.h.  */
28667
28668 /* Override any gcc2 internal prototype to avoid an error.  */
28669 #ifdef __cplusplus
28670 extern "C"
28671 #endif
28672 /* We use char because int might match the return type of a gcc2
28673    builtin and then its argument prototype would still apply.  */
28674 char IceConnectionNumber ();
28675 int
28676 main ()
28677 {
28678 IceConnectionNumber ();
28679   ;
28680   return 0;
28681 }
28682 _ACEOF
28683 rm -f conftest.$ac_objext conftest$ac_exeext
28684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28685   (eval $ac_link) 2>conftest.er1
28686   ac_status=$?
28687   grep -v '^ *+' conftest.er1 >conftest.err
28688   rm -f conftest.er1
28689   cat conftest.err >&5
28690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691   (exit $ac_status); } &&
28692          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694   (eval $ac_try) 2>&5
28695   ac_status=$?
28696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697   (exit $ac_status); }; } &&
28698          { ac_try='test -s conftest$ac_exeext'
28699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28700   (eval $ac_try) 2>&5
28701   ac_status=$?
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); }; }; then
28704   ac_cv_lib_ICE_IceConnectionNumber=yes
28705 else
28706   echo "$as_me: failed program was:" >&5
28707 sed 's/^/| /' conftest.$ac_ext >&5
28708
28709 ac_cv_lib_ICE_IceConnectionNumber=no
28710 fi
28711 rm -f conftest.err conftest.$ac_objext \
28712       conftest$ac_exeext conftest.$ac_ext
28713 LIBS=$ac_check_lib_save_LIBS
28714 fi
28715 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28716 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28717 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28718   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28719 fi
28720
28721   LDFLAGS=$ac_save_LDFLAGS
28722
28723 fi
28724
28725
28726         if test "$no_x" = "yes"; then
28727           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28728 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28729    { (exit 1); exit 1; }; }
28730         fi
28731
28732                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28733         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
28734         AFMINSTALL=afminstall
28735         COMPILED_X_PROGRAM=0
28736
28737     fi
28738
28739     if test "$wxUSE_X11" = 1; then
28740         if test "$wxUSE_NANOX" = "yes"; then
28741             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28742 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28743             if test "x$MICROWIN" = x ; then
28744                 echo "$as_me:$LINENO: result: not found" >&5
28745 echo "${ECHO_T}not found" >&6
28746                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28747 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28748    { (exit 1); exit 1; }; }
28749             else
28750                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28751 echo "${ECHO_T}$MICROWIN" >&6
28752                 cat >>confdefs.h <<\_ACEOF
28753 #define wxUSE_NANOX 1
28754 _ACEOF
28755
28756             fi
28757         fi
28758
28759         if test "$wxUSE_UNICODE" = "yes"; then
28760
28761   succeeded=no
28762
28763   if test -z "$PKG_CONFIG"; then
28764     # Extract the first word of "pkg-config", so it can be a program name with args.
28765 set dummy pkg-config; ac_word=$2
28766 echo "$as_me:$LINENO: checking for $ac_word" >&5
28767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28768 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28769   echo $ECHO_N "(cached) $ECHO_C" >&6
28770 else
28771   case $PKG_CONFIG in
28772   [\\/]* | ?:[\\/]*)
28773   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28774   ;;
28775   *)
28776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28777 for as_dir in $PATH
28778 do
28779   IFS=$as_save_IFS
28780   test -z "$as_dir" && as_dir=.
28781   for ac_exec_ext in '' $ac_executable_extensions; do
28782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28783     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28785     break 2
28786   fi
28787 done
28788 done
28789
28790   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28791   ;;
28792 esac
28793 fi
28794 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28795
28796 if test -n "$PKG_CONFIG"; then
28797   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28798 echo "${ECHO_T}$PKG_CONFIG" >&6
28799 else
28800   echo "$as_me:$LINENO: result: no" >&5
28801 echo "${ECHO_T}no" >&6
28802 fi
28803
28804   fi
28805
28806   if test "$PKG_CONFIG" = "no" ; then
28807      echo "*** The pkg-config script could not be found. Make sure it is"
28808      echo "*** in your path, or set the PKG_CONFIG environment variable"
28809      echo "*** to the full path to pkg-config."
28810      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28811   else
28812      PKG_CONFIG_MIN_VERSION=0.9.0
28813      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28814         echo "$as_me:$LINENO: checking for pangox" >&5
28815 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28816
28817         if $PKG_CONFIG --exists "pangox" ; then
28818             echo "$as_me:$LINENO: result: yes" >&5
28819 echo "${ECHO_T}yes" >&6
28820             succeeded=yes
28821
28822             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28823 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28824             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28825             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28826 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28827
28828             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28829 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28830             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28831             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28832 echo "${ECHO_T}$PANGOX_LIBS" >&6
28833         else
28834             PANGOX_CFLAGS=""
28835             PANGOX_LIBS=""
28836             ## If we have a custom action on failure, don't print errors, but
28837             ## do set a variable so people can do so.
28838             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28839
28840         fi
28841
28842
28843
28844      else
28845         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28846         echo "*** See http://www.freedesktop.org/software/pkgconfig"
28847      fi
28848   fi
28849
28850   if test $succeeded = yes; then
28851
28852                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28853                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28854
28855   else
28856
28857                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28858 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28859    { (exit 1); exit 1; }; }
28860
28861
28862   fi
28863
28864
28865   succeeded=no
28866
28867   if test -z "$PKG_CONFIG"; then
28868     # Extract the first word of "pkg-config", so it can be a program name with args.
28869 set dummy pkg-config; ac_word=$2
28870 echo "$as_me:$LINENO: checking for $ac_word" >&5
28871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28872 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28873   echo $ECHO_N "(cached) $ECHO_C" >&6
28874 else
28875   case $PKG_CONFIG in
28876   [\\/]* | ?:[\\/]*)
28877   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28878   ;;
28879   *)
28880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28881 for as_dir in $PATH
28882 do
28883   IFS=$as_save_IFS
28884   test -z "$as_dir" && as_dir=.
28885   for ac_exec_ext in '' $ac_executable_extensions; do
28886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28887     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28889     break 2
28890   fi
28891 done
28892 done
28893
28894   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28895   ;;
28896 esac
28897 fi
28898 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28899
28900 if test -n "$PKG_CONFIG"; then
28901   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28902 echo "${ECHO_T}$PKG_CONFIG" >&6
28903 else
28904   echo "$as_me:$LINENO: result: no" >&5
28905 echo "${ECHO_T}no" >&6
28906 fi
28907
28908   fi
28909
28910   if test "$PKG_CONFIG" = "no" ; then
28911      echo "*** The pkg-config script could not be found. Make sure it is"
28912      echo "*** in your path, or set the PKG_CONFIG environment variable"
28913      echo "*** to the full path to pkg-config."
28914      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28915   else
28916      PKG_CONFIG_MIN_VERSION=0.9.0
28917      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28918         echo "$as_me:$LINENO: checking for pangoft2" >&5
28919 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28920
28921         if $PKG_CONFIG --exists "pangoft2" ; then
28922             echo "$as_me:$LINENO: result: yes" >&5
28923 echo "${ECHO_T}yes" >&6
28924             succeeded=yes
28925
28926             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28927 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28928             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28929             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28930 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28931
28932             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28933 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28934             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28935             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28936 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28937         else
28938             PANGOFT2_CFLAGS=""
28939             PANGOFT2_LIBS=""
28940             ## If we have a custom action on failure, don't print errors, but
28941             ## do set a variable so people can do so.
28942             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28943
28944         fi
28945
28946
28947
28948      else
28949         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28950         echo "*** See http://www.freedesktop.org/software/pkgconfig"
28951      fi
28952   fi
28953
28954   if test $succeeded = yes; then
28955
28956                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28957                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28958
28959   else
28960
28961                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28962 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28963                         wxUSE_PRINTING_ARCHITECTURE="no"
28964
28965
28966   fi
28967
28968
28969   succeeded=no
28970
28971   if test -z "$PKG_CONFIG"; then
28972     # Extract the first word of "pkg-config", so it can be a program name with args.
28973 set dummy pkg-config; ac_word=$2
28974 echo "$as_me:$LINENO: checking for $ac_word" >&5
28975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28976 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28977   echo $ECHO_N "(cached) $ECHO_C" >&6
28978 else
28979   case $PKG_CONFIG in
28980   [\\/]* | ?:[\\/]*)
28981   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28982   ;;
28983   *)
28984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28985 for as_dir in $PATH
28986 do
28987   IFS=$as_save_IFS
28988   test -z "$as_dir" && as_dir=.
28989   for ac_exec_ext in '' $ac_executable_extensions; do
28990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28991     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28993     break 2
28994   fi
28995 done
28996 done
28997
28998   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28999   ;;
29000 esac
29001 fi
29002 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29003
29004 if test -n "$PKG_CONFIG"; then
29005   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29006 echo "${ECHO_T}$PKG_CONFIG" >&6
29007 else
29008   echo "$as_me:$LINENO: result: no" >&5
29009 echo "${ECHO_T}no" >&6
29010 fi
29011
29012   fi
29013
29014   if test "$PKG_CONFIG" = "no" ; then
29015      echo "*** The pkg-config script could not be found. Make sure it is"
29016      echo "*** in your path, or set the PKG_CONFIG environment variable"
29017      echo "*** to the full path to pkg-config."
29018      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29019   else
29020      PKG_CONFIG_MIN_VERSION=0.9.0
29021      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29022         echo "$as_me:$LINENO: checking for pangoxft" >&5
29023 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29024
29025         if $PKG_CONFIG --exists "pangoxft" ; then
29026             echo "$as_me:$LINENO: result: yes" >&5
29027 echo "${ECHO_T}yes" >&6
29028             succeeded=yes
29029
29030             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29031 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29032             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29033             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29034 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29035
29036             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29037 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29038             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29039             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29040 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29041         else
29042             PANGOXFT_CFLAGS=""
29043             PANGOXFT_LIBS=""
29044             ## If we have a custom action on failure, don't print errors, but
29045             ## do set a variable so people can do so.
29046             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29047
29048         fi
29049
29050
29051
29052      else
29053         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29054         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29055      fi
29056   fi
29057
29058   if test $succeeded = yes; then
29059
29060                         cat >>confdefs.h <<\_ACEOF
29061 #define HAVE_PANGO_XFT 1
29062 _ACEOF
29063
29064                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
29065                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29066
29067   else
29068
29069                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29070 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29071
29072
29073   fi
29074
29075                 save_CFLAGS="$CFLAGS"
29076                 save_LIBS="$LIBS"
29077                 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
29078                 LIBS="$LIBS $PANGOX_LIBS"
29079
29080 for ac_func in pango_font_family_is_monospace
29081 do
29082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29083 echo "$as_me:$LINENO: checking for $ac_func" >&5
29084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29085 if eval "test \"\${$as_ac_var+set}\" = set"; then
29086   echo $ECHO_N "(cached) $ECHO_C" >&6
29087 else
29088   cat >conftest.$ac_ext <<_ACEOF
29089 /* confdefs.h.  */
29090 _ACEOF
29091 cat confdefs.h >>conftest.$ac_ext
29092 cat >>conftest.$ac_ext <<_ACEOF
29093 /* end confdefs.h.  */
29094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29096 #define $ac_func innocuous_$ac_func
29097
29098 /* System header to define __stub macros and hopefully few prototypes,
29099     which can conflict with char $ac_func (); below.
29100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29101     <limits.h> exists even on freestanding compilers.  */
29102
29103 #ifdef __STDC__
29104 # include <limits.h>
29105 #else
29106 # include <assert.h>
29107 #endif
29108
29109 #undef $ac_func
29110
29111 /* Override any gcc2 internal prototype to avoid an error.  */
29112 #ifdef __cplusplus
29113 extern "C"
29114 {
29115 #endif
29116 /* We use char because int might match the return type of a gcc2
29117    builtin and then its argument prototype would still apply.  */
29118 char $ac_func ();
29119 /* The GNU C library defines this for functions which it implements
29120     to always fail with ENOSYS.  Some functions are actually named
29121     something starting with __ and the normal name is an alias.  */
29122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29123 choke me
29124 #else
29125 char (*f) () = $ac_func;
29126 #endif
29127 #ifdef __cplusplus
29128 }
29129 #endif
29130
29131 int
29132 main ()
29133 {
29134 return f != $ac_func;
29135   ;
29136   return 0;
29137 }
29138 _ACEOF
29139 rm -f conftest.$ac_objext conftest$ac_exeext
29140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29141   (eval $ac_link) 2>conftest.er1
29142   ac_status=$?
29143   grep -v '^ *+' conftest.er1 >conftest.err
29144   rm -f conftest.er1
29145   cat conftest.err >&5
29146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147   (exit $ac_status); } &&
29148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29150   (eval $ac_try) 2>&5
29151   ac_status=$?
29152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153   (exit $ac_status); }; } &&
29154          { ac_try='test -s conftest$ac_exeext'
29155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29156   (eval $ac_try) 2>&5
29157   ac_status=$?
29158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159   (exit $ac_status); }; }; then
29160   eval "$as_ac_var=yes"
29161 else
29162   echo "$as_me: failed program was:" >&5
29163 sed 's/^/| /' conftest.$ac_ext >&5
29164
29165 eval "$as_ac_var=no"
29166 fi
29167 rm -f conftest.err conftest.$ac_objext \
29168       conftest$ac_exeext conftest.$ac_ext
29169 fi
29170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29172 if test `eval echo '${'$as_ac_var'}'` = yes; then
29173   cat >>confdefs.h <<_ACEOF
29174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29175 _ACEOF
29176
29177 fi
29178 done
29179
29180                 CFLAGS="$save_CFLAGS"
29181                 LIBS="$save_LIBS"
29182         fi
29183
29184         wxUSE_UNIVERSAL="yes"
29185
29186         if test "$wxUSE_NANOX" = "yes"; then
29187             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29188             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"
29189             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29190         else
29191             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29192         fi
29193
29194         TOOLKIT=X11
29195         GUIDIST=X11_DIST
29196     fi
29197
29198     if test "$wxUSE_MOTIF" = 1; then
29199         if test "$wxUSE_UNICODE" = "yes"; then
29200             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29201 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29202    { (exit 1); exit 1; }; }
29203         fi
29204
29205         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29206 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
29207
29208 ac_find_includes=
29209 for ac_dir in $SEARCH_INCLUDE /usr/include;
29210   do
29211     if test -f "$ac_dir/Xm/Xm.h"; then
29212       ac_find_includes=$ac_dir
29213       break
29214     fi
29215   done
29216
29217         if test "$ac_find_includes" != "" ; then
29218             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29219 echo "${ECHO_T}found in $ac_find_includes" >&6
29220
29221     if test "x$ac_find_includes" = "x/usr/include"; then
29222     ac_path_to_include=""
29223   else
29224     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29225     result=$?
29226     if test $result = 0; then
29227       ac_path_to_include=""
29228     else
29229       ac_path_to_include=" -I$ac_find_includes"
29230     fi
29231   fi
29232
29233             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29234         else
29235             save_CFLAGS=$CFLAGS
29236             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29237
29238             cat >conftest.$ac_ext <<_ACEOF
29239 /* confdefs.h.  */
29240 _ACEOF
29241 cat confdefs.h >>conftest.$ac_ext
29242 cat >>conftest.$ac_ext <<_ACEOF
29243 /* end confdefs.h.  */
29244
29245                     #include <Xm/Xm.h>
29246
29247 int
29248 main ()
29249 {
29250
29251                     int version;
29252                     version = xmUseVersion;
29253
29254   ;
29255   return 0;
29256 }
29257 _ACEOF
29258 rm -f conftest.$ac_objext
29259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29260   (eval $ac_compile) 2>conftest.er1
29261   ac_status=$?
29262   grep -v '^ *+' conftest.er1 >conftest.err
29263   rm -f conftest.er1
29264   cat conftest.err >&5
29265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266   (exit $ac_status); } &&
29267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29269   (eval $ac_try) 2>&5
29270   ac_status=$?
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); }; } &&
29273          { ac_try='test -s conftest.$ac_objext'
29274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29275   (eval $ac_try) 2>&5
29276   ac_status=$?
29277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278   (exit $ac_status); }; }; then
29279
29280                     echo "$as_me:$LINENO: result: found in default search path" >&5
29281 echo "${ECHO_T}found in default search path" >&6
29282                     COMPILED_X_PROGRAM=1
29283
29284 else
29285   echo "$as_me: failed program was:" >&5
29286 sed 's/^/| /' conftest.$ac_ext >&5
29287
29288
29289                     echo "$as_me:$LINENO: result: no" >&5
29290 echo "${ECHO_T}no" >&6
29291                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29292 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
29293    { (exit 1); exit 1; }; }
29294
29295
29296 fi
29297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29298
29299             CFLAGS=$save_CFLAGS
29300         fi
29301
29302
29303         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
29304 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29305
29306   ac_find_libraries=
29307   for ac_dir in $SEARCH_LIB;
29308   do
29309     for ac_extension in a so sl dylib dll.a; do
29310       if test -f "$ac_dir/libXm.$ac_extension"; then
29311         ac_find_libraries=$ac_dir
29312         break 2
29313       fi
29314     done
29315   done
29316
29317
29318         if test "x$ac_find_libraries" != "x" ; then
29319             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29320 echo "${ECHO_T}found in $ac_find_libraries" >&6
29321
29322
29323     if test "$ac_find_libraries" = "default location"; then
29324     ac_path_to_link=""
29325   else
29326     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29327     result=$?
29328     if test $result = 0; then
29329       ac_path_to_link=""
29330     else
29331       ac_path_to_link=" -L$ac_find_libraries"
29332     fi
29333   fi
29334
29335             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29336         else
29337                                                 save_CFLAGS=$CFLAGS
29338             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29339             save_LIBS="$LIBS"
29340             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
29341
29342             cat >conftest.$ac_ext <<_ACEOF
29343 /* confdefs.h.  */
29344 _ACEOF
29345 cat confdefs.h >>conftest.$ac_ext
29346 cat >>conftest.$ac_ext <<_ACEOF
29347 /* end confdefs.h.  */
29348
29349                     #include <Xm/Xm.h>
29350
29351 int
29352 main ()
29353 {
29354
29355                     int version;
29356                     version = xmUseVersion;
29357
29358   ;
29359   return 0;
29360 }
29361 _ACEOF
29362 rm -f conftest.$ac_objext conftest$ac_exeext
29363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29364   (eval $ac_link) 2>conftest.er1
29365   ac_status=$?
29366   grep -v '^ *+' conftest.er1 >conftest.err
29367   rm -f conftest.er1
29368   cat conftest.err >&5
29369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370   (exit $ac_status); } &&
29371          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29373   (eval $ac_try) 2>&5
29374   ac_status=$?
29375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376   (exit $ac_status); }; } &&
29377          { ac_try='test -s conftest$ac_exeext'
29378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29379   (eval $ac_try) 2>&5
29380   ac_status=$?
29381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382   (exit $ac_status); }; }; then
29383
29384                     echo "$as_me:$LINENO: result: found in default search path" >&5
29385 echo "${ECHO_T}found in default search path" >&6
29386                     COMPILED_X_PROGRAM=1
29387
29388 else
29389   echo "$as_me: failed program was:" >&5
29390 sed 's/^/| /' conftest.$ac_ext >&5
29391
29392
29393                     echo "$as_me:$LINENO: result: no" >&5
29394 echo "${ECHO_T}no" >&6
29395                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
29396 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29397    { (exit 1); exit 1; }; }
29398
29399
29400 fi
29401 rm -f conftest.err conftest.$ac_objext \
29402       conftest$ac_exeext conftest.$ac_ext
29403
29404             CFLAGS=$save_CFLAGS
29405             LIBS="$save_LIBS"
29406         fi
29407
29408         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29409 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29410         libp_link=""
29411         libsm_ice_link=""
29412         libs_found=0
29413         for libp in "" " -lXp"; do
29414             if test "$libs_found" = "0"; then
29415                 for libsm_ice in "" " -lSM -lICE"; do
29416                     if test "$libs_found" = "0"; then
29417                         save_LIBS="$LIBS"
29418                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29419                         save_CFLAGS=$CFLAGS
29420                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29421
29422                         cat >conftest.$ac_ext <<_ACEOF
29423 /* confdefs.h.  */
29424 _ACEOF
29425 cat confdefs.h >>conftest.$ac_ext
29426 cat >>conftest.$ac_ext <<_ACEOF
29427 /* end confdefs.h.  */
29428
29429                                 #include <Xm/Xm.h>
29430                                 #include <Xm/List.h>
29431
29432 int
29433 main ()
29434 {
29435
29436                                 XmString string = NULL;
29437                                 Widget w = NULL;
29438                                 int position = 0;
29439                                 XmListAddItem(w, string, position);
29440
29441   ;
29442   return 0;
29443 }
29444 _ACEOF
29445 rm -f conftest.$ac_objext conftest$ac_exeext
29446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29447   (eval $ac_link) 2>conftest.er1
29448   ac_status=$?
29449   grep -v '^ *+' conftest.er1 >conftest.err
29450   rm -f conftest.er1
29451   cat conftest.err >&5
29452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453   (exit $ac_status); } &&
29454          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29456   (eval $ac_try) 2>&5
29457   ac_status=$?
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); }; } &&
29460          { ac_try='test -s conftest$ac_exeext'
29461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29462   (eval $ac_try) 2>&5
29463   ac_status=$?
29464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465   (exit $ac_status); }; }; then
29466
29467                                 libp_link="$libp"
29468                                 libsm_ice_link="$libsm_ice"
29469                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29470 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29471                                 libs_found=1
29472
29473 else
29474   echo "$as_me: failed program was:" >&5
29475 sed 's/^/| /' conftest.$ac_ext >&5
29476
29477
29478
29479 fi
29480 rm -f conftest.err conftest.$ac_objext \
29481       conftest$ac_exeext conftest.$ac_ext
29482
29483                         LIBS="$save_LIBS"
29484                         CFLAGS=$save_CFLAGS
29485                     fi
29486                 done
29487             fi
29488         done
29489
29490         if test "$libs_found" = "0"; then
29491             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29492 echo "${ECHO_T}can't find the right libraries" >&6
29493             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29494 echo "$as_me: error: can't link a simple motif program" >&2;}
29495    { (exit 1); exit 1; }; }
29496         fi
29497
29498                         echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29499 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29500 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29501   echo $ECHO_N "(cached) $ECHO_C" >&6
29502 else
29503   ac_check_lib_save_LIBS=$LIBS
29504 LIBS="-lSgm  $LIBS"
29505 cat >conftest.$ac_ext <<_ACEOF
29506 /* confdefs.h.  */
29507 _ACEOF
29508 cat confdefs.h >>conftest.$ac_ext
29509 cat >>conftest.$ac_ext <<_ACEOF
29510 /* end confdefs.h.  */
29511
29512 /* Override any gcc2 internal prototype to avoid an error.  */
29513 #ifdef __cplusplus
29514 extern "C"
29515 #endif
29516 /* We use char because int might match the return type of a gcc2
29517    builtin and then its argument prototype would still apply.  */
29518 char SgCreateList ();
29519 int
29520 main ()
29521 {
29522 SgCreateList ();
29523   ;
29524   return 0;
29525 }
29526 _ACEOF
29527 rm -f conftest.$ac_objext conftest$ac_exeext
29528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29529   (eval $ac_link) 2>conftest.er1
29530   ac_status=$?
29531   grep -v '^ *+' conftest.er1 >conftest.err
29532   rm -f conftest.er1
29533   cat conftest.err >&5
29534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535   (exit $ac_status); } &&
29536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538   (eval $ac_try) 2>&5
29539   ac_status=$?
29540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541   (exit $ac_status); }; } &&
29542          { ac_try='test -s conftest$ac_exeext'
29543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544   (eval $ac_try) 2>&5
29545   ac_status=$?
29546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547   (exit $ac_status); }; }; then
29548   ac_cv_lib_Sgm_SgCreateList=yes
29549 else
29550   echo "$as_me: failed program was:" >&5
29551 sed 's/^/| /' conftest.$ac_ext >&5
29552
29553 ac_cv_lib_Sgm_SgCreateList=no
29554 fi
29555 rm -f conftest.err conftest.$ac_objext \
29556       conftest$ac_exeext conftest.$ac_ext
29557 LIBS=$ac_check_lib_save_LIBS
29558 fi
29559 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29560 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29561 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29562   libsgm_link=" -lSgm"
29563 fi
29564
29565
29566         save_CFLAGS=$CFLAGS
29567         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29568
29569         echo "$as_me:$LINENO: checking for Motif 2" >&5
29570 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
29571 if test "${wx_cv_lib_motif2+set}" = set; then
29572   echo $ECHO_N "(cached) $ECHO_C" >&6
29573 else
29574   cat >conftest.$ac_ext <<_ACEOF
29575 /* confdefs.h.  */
29576 _ACEOF
29577 cat confdefs.h >>conftest.$ac_ext
29578 cat >>conftest.$ac_ext <<_ACEOF
29579 /* end confdefs.h.  */
29580
29581                             #include <Xm/Xm.h>
29582
29583 int
29584 main ()
29585 {
29586
29587                             #if XmVersion < 2000
29588                             Not Motif 2
29589                             #endif
29590
29591   ;
29592   return 0;
29593 }
29594 _ACEOF
29595 rm -f conftest.$ac_objext
29596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29597   (eval $ac_compile) 2>conftest.er1
29598   ac_status=$?
29599   grep -v '^ *+' conftest.er1 >conftest.err
29600   rm -f conftest.er1
29601   cat conftest.err >&5
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); } &&
29604          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29606   (eval $ac_try) 2>&5
29607   ac_status=$?
29608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609   (exit $ac_status); }; } &&
29610          { ac_try='test -s conftest.$ac_objext'
29611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29612   (eval $ac_try) 2>&5
29613   ac_status=$?
29614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615   (exit $ac_status); }; }; then
29616   wx_cv_lib_motif2="yes"
29617 else
29618   echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29620
29621 wx_cv_lib_motif2="no"
29622 fi
29623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29624 fi
29625 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29626 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29627         if test "$wx_cv_lib_motif2" = "yes"; then
29628             cat >>confdefs.h <<\_ACEOF
29629 #define __WXMOTIF20__ 1
29630 _ACEOF
29631
29632         else
29633             cat >>confdefs.h <<\_ACEOF
29634 #define __WXMOTIF20__ 0
29635 _ACEOF
29636
29637         fi
29638
29639         echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29640 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
29641 if test "${wx_cv_lib_lesstif+set}" = set; then
29642   echo $ECHO_N "(cached) $ECHO_C" >&6
29643 else
29644   cat >conftest.$ac_ext <<_ACEOF
29645 /* confdefs.h.  */
29646 _ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h.  */
29650
29651                             #include <Xm/Xm.h>
29652
29653 int
29654 main ()
29655 {
29656
29657                             #if !defined(LesstifVersion) || LesstifVersion <= 0
29658                             Not Lesstif
29659                             #endif
29660
29661   ;
29662   return 0;
29663 }
29664 _ACEOF
29665 rm -f conftest.$ac_objext
29666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29667   (eval $ac_compile) 2>conftest.er1
29668   ac_status=$?
29669   grep -v '^ *+' conftest.er1 >conftest.err
29670   rm -f conftest.er1
29671   cat conftest.err >&5
29672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673   (exit $ac_status); } &&
29674          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29676   (eval $ac_try) 2>&5
29677   ac_status=$?
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); }; } &&
29680          { ac_try='test -s conftest.$ac_objext'
29681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682   (eval $ac_try) 2>&5
29683   ac_status=$?
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); }; }; then
29686   wx_cv_lib_lesstif="yes"
29687 else
29688   echo "$as_me: failed program was:" >&5
29689 sed 's/^/| /' conftest.$ac_ext >&5
29690
29691 wx_cv_lib_lesstif="no"
29692 fi
29693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29694
29695 fi
29696 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29697 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29698         if test "$wx_cv_lib_lesstif" = "yes"; then
29699             cat >>confdefs.h <<\_ACEOF
29700 #define __WXLESSTIF__ 1
29701 _ACEOF
29702
29703         else
29704             cat >>confdefs.h <<\_ACEOF
29705 #define __WXLESSTIF__ 0
29706 _ACEOF
29707
29708         fi
29709
29710         CFLAGS=$save_CFLAGS
29711
29712         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
29713         TOOLKIT=MOTIF
29714         GUIDIST=MOTIF_DIST
29715     fi
29716
29717         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29718                 if test "$wxUSE_LIBXPM" = "sys"; then
29719             echo "$as_me:$LINENO: checking for Xpm library" >&5
29720 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29721
29722   ac_find_libraries=
29723   for ac_dir in $SEARCH_LIB;
29724   do
29725     for ac_extension in a so sl dylib dll.a; do
29726       if test -f "$ac_dir/libXpm.$ac_extension"; then
29727         ac_find_libraries=$ac_dir
29728         break 2
29729       fi
29730     done
29731   done
29732
29733             if test "$ac_find_libraries" != "" ; then
29734
29735     if test "$ac_find_libraries" = "default location"; then
29736     ac_path_to_link=""
29737   else
29738     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29739     result=$?
29740     if test $result = 0; then
29741       ac_path_to_link=""
29742     else
29743       ac_path_to_link=" -L$ac_find_libraries"
29744     fi
29745   fi
29746
29747                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29748                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29749 echo "${ECHO_T}found in $ac_find_libraries" >&6
29750
29751                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29752 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29753 if test "${wx_cv_x11_xpm_h+set}" = set; then
29754   echo $ECHO_N "(cached) $ECHO_C" >&6
29755 else
29756
29757                         save_CFLAGS=$CFLAGS
29758                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29759
29760                         cat >conftest.$ac_ext <<_ACEOF
29761 /* confdefs.h.  */
29762 _ACEOF
29763 cat confdefs.h >>conftest.$ac_ext
29764 cat >>conftest.$ac_ext <<_ACEOF
29765 /* end confdefs.h.  */
29766
29767                                 #include <X11/xpm.h>
29768
29769 int
29770 main ()
29771 {
29772
29773                                 int version;
29774                                 version = XpmLibraryVersion();
29775
29776   ;
29777   return 0;
29778 }
29779 _ACEOF
29780 rm -f conftest.$ac_objext
29781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29782   (eval $ac_compile) 2>conftest.er1
29783   ac_status=$?
29784   grep -v '^ *+' conftest.er1 >conftest.err
29785   rm -f conftest.er1
29786   cat conftest.err >&5
29787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788   (exit $ac_status); } &&
29789          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
29795          { ac_try='test -s conftest.$ac_objext'
29796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29797   (eval $ac_try) 2>&5
29798   ac_status=$?
29799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800   (exit $ac_status); }; }; then
29801   wx_cv_x11_xpm_h=yes
29802 else
29803   echo "$as_me: failed program was:" >&5
29804 sed 's/^/| /' conftest.$ac_ext >&5
29805
29806 wx_cv_x11_xpm_h=no
29807
29808 fi
29809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29810
29811                         CFLAGS=$save_CFLAGS
29812
29813
29814 fi
29815 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29816 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29817
29818                 if test $wx_cv_x11_xpm_h = "yes"; then
29819                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29820                     cat >>confdefs.h <<\_ACEOF
29821 #define wxHAVE_LIB_XPM 1
29822 _ACEOF
29823
29824                 else
29825                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29826 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29827                 fi
29828             fi
29829
29830         fi
29831
29832                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29833 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29834 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29835   echo $ECHO_N "(cached) $ECHO_C" >&6
29836 else
29837   ac_check_lib_save_LIBS=$LIBS
29838 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29839 cat >conftest.$ac_ext <<_ACEOF
29840 /* confdefs.h.  */
29841 _ACEOF
29842 cat confdefs.h >>conftest.$ac_ext
29843 cat >>conftest.$ac_ext <<_ACEOF
29844 /* end confdefs.h.  */
29845
29846 /* Override any gcc2 internal prototype to avoid an error.  */
29847 #ifdef __cplusplus
29848 extern "C"
29849 #endif
29850 /* We use char because int might match the return type of a gcc2
29851    builtin and then its argument prototype would still apply.  */
29852 char XShapeQueryExtension ();
29853 int
29854 main ()
29855 {
29856 XShapeQueryExtension ();
29857   ;
29858   return 0;
29859 }
29860 _ACEOF
29861 rm -f conftest.$ac_objext conftest$ac_exeext
29862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29863   (eval $ac_link) 2>conftest.er1
29864   ac_status=$?
29865   grep -v '^ *+' conftest.er1 >conftest.err
29866   rm -f conftest.er1
29867   cat conftest.err >&5
29868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869   (exit $ac_status); } &&
29870          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872   (eval $ac_try) 2>&5
29873   ac_status=$?
29874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875   (exit $ac_status); }; } &&
29876          { ac_try='test -s conftest$ac_exeext'
29877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878   (eval $ac_try) 2>&5
29879   ac_status=$?
29880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881   (exit $ac_status); }; }; then
29882   ac_cv_lib_Xext_XShapeQueryExtension=yes
29883 else
29884   echo "$as_me: failed program was:" >&5
29885 sed 's/^/| /' conftest.$ac_ext >&5
29886
29887 ac_cv_lib_Xext_XShapeQueryExtension=no
29888 fi
29889 rm -f conftest.err conftest.$ac_objext \
29890       conftest$ac_exeext conftest.$ac_ext
29891 LIBS=$ac_check_lib_save_LIBS
29892 fi
29893 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29894 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29895 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29896
29897                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29898                       wxHAVE_XEXT_LIB=1
29899
29900 fi
29901
29902
29903         if test "$wxHAVE_XEXT_LIB" = 1; then
29904             save_CFLAGS="$CFLAGS"
29905             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29906
29907             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29908 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29909             cat >conftest.$ac_ext <<_ACEOF
29910 /* confdefs.h.  */
29911 _ACEOF
29912 cat confdefs.h >>conftest.$ac_ext
29913 cat >>conftest.$ac_ext <<_ACEOF
29914 /* end confdefs.h.  */
29915
29916                             #include <X11/Xlib.h>
29917                             #include <X11/extensions/shape.h>
29918
29919 int
29920 main ()
29921 {
29922
29923                             int dummy1, dummy2;
29924                             XShapeQueryExtension((Display*)NULL,
29925                                                  (int*)NULL, (int*)NULL);
29926
29927   ;
29928   return 0;
29929 }
29930 _ACEOF
29931 rm -f conftest.$ac_objext
29932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29933   (eval $ac_compile) 2>conftest.er1
29934   ac_status=$?
29935   grep -v '^ *+' conftest.er1 >conftest.err
29936   rm -f conftest.er1
29937   cat conftest.err >&5
29938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939   (exit $ac_status); } &&
29940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942   (eval $ac_try) 2>&5
29943   ac_status=$?
29944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945   (exit $ac_status); }; } &&
29946          { ac_try='test -s conftest.$ac_objext'
29947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948   (eval $ac_try) 2>&5
29949   ac_status=$?
29950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951   (exit $ac_status); }; }; then
29952
29953                             cat >>confdefs.h <<\_ACEOF
29954 #define HAVE_XSHAPE 1
29955 _ACEOF
29956
29957                             echo "$as_me:$LINENO: result: found" >&5
29958 echo "${ECHO_T}found" >&6
29959
29960 else
29961   echo "$as_me: failed program was:" >&5
29962 sed 's/^/| /' conftest.$ac_ext >&5
29963
29964
29965                             echo "$as_me:$LINENO: result: not found" >&5
29966 echo "${ECHO_T}not found" >&6
29967
29968 fi
29969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29970             CFLAGS="$save_CFLAGS"
29971
29972         fi
29973     fi
29974
29975     if test "$wxUSE_MAC" = 1; then
29976         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29977 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29978         if test "$GCC" = yes; then
29979             echo "$as_me:$LINENO: result: gcc" >&5
29980 echo "${ECHO_T}gcc" >&6
29981             CPPFLAGS_PASCAL="-fpascal-strings"
29982         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29983             echo "$as_me:$LINENO: result: xlc" >&5
29984 echo "${ECHO_T}xlc" >&6
29985             CPPFLAGS_PASCAL="-qmacpstr"
29986         else
29987             echo "$as_me:$LINENO: result: none" >&5
29988 echo "${ECHO_T}none" >&6
29989         fi
29990
29991         if test "x$wxUSE_UNIX" = "xyes"; then
29992             CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29993         else
29994                         CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29995         fi
29996
29997         TOOLKIT=MAC
29998                 GUIDIST=MACX_DIST
29999                         WXBASEPORT="_carbon"
30000     fi
30001
30002     if test "$wxUSE_COCOA" = 1; then
30003         TOOLKIT=COCOA
30004         GUIDIST=COCOA_DIST
30005     fi
30006
30007     if test "$wxUSE_PM" = 1; then
30008         TOOLKIT=PM
30009         GUIDIST=PM_DIST
30010         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30011 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30012 if test "${wx_cv_spbcdata+set}" = set; then
30013   echo $ECHO_N "(cached) $ECHO_C" >&6
30014 else
30015
30016                 cat >conftest.$ac_ext <<_ACEOF
30017 /* confdefs.h.  */
30018 _ACEOF
30019 cat confdefs.h >>conftest.$ac_ext
30020 cat >>conftest.$ac_ext <<_ACEOF
30021 /* end confdefs.h.  */
30022
30023                         #define INCL_PM
30024                         #include <os2.h>
30025
30026 int
30027 main ()
30028 {
30029
30030                         SPBCDATA test;
30031
30032   ;
30033   return 0;
30034 }
30035 _ACEOF
30036 rm -f conftest.$ac_objext
30037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30038   (eval $ac_compile) 2>conftest.er1
30039   ac_status=$?
30040   grep -v '^ *+' conftest.er1 >conftest.err
30041   rm -f conftest.er1
30042   cat conftest.err >&5
30043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); } &&
30045          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30047   (eval $ac_try) 2>&5
30048   ac_status=$?
30049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050   (exit $ac_status); }; } &&
30051          { ac_try='test -s conftest.$ac_objext'
30052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30053   (eval $ac_try) 2>&5
30054   ac_status=$?
30055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); }; }; then
30057   wx_cv_spbcdata=yes
30058 else
30059   echo "$as_me: failed program was:" >&5
30060 sed 's/^/| /' conftest.$ac_ext >&5
30061
30062 wx_cv_spbcdata=no
30063
30064 fi
30065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30066
30067
30068 fi
30069 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30070 echo "${ECHO_T}$wx_cv_spbcdata" >&6
30071
30072         if test $wx_cv_spbcdata = "yes"; then
30073             cat >>confdefs.h <<\_ACEOF
30074 #define HAVE_SPBCDATA 1
30075 _ACEOF
30076
30077         fi
30078     fi
30079
30080         if test "$TOOLKIT" = "PM" ; then
30081         TOOLKIT_DIR="os2"
30082     else
30083         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30084     fi
30085
30086     if test "$wxUSE_UNIVERSAL" = "yes"; then
30087         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30088         WIDGET_SET=univ
30089     fi
30090
30091         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30092     DISTDIR="wx\$(TOOLKIT)"
30093 else
30094     USE_GUI=0
30095
30096             TOOLKIT_DIR="base"
30097
30098         if test "$USE_WIN32" = 1 ; then
30099                         TOOLKIT="MSW"
30100     fi
30101
30102         GUIDIST="BASE_DIST"
30103     DISTDIR="wxBase"
30104 fi
30105
30106
30107 if test "$wxUSE_GUI" = "yes"; then
30108     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30109
30110 for ac_header in X11/Xlib.h
30111 do
30112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30114   echo "$as_me:$LINENO: checking for $ac_header" >&5
30115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30117   echo $ECHO_N "(cached) $ECHO_C" >&6
30118 fi
30119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30121 else
30122   # Is the header compilable?
30123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30125 cat >conftest.$ac_ext <<_ACEOF
30126 /* confdefs.h.  */
30127 _ACEOF
30128 cat confdefs.h >>conftest.$ac_ext
30129 cat >>conftest.$ac_ext <<_ACEOF
30130 /* end confdefs.h.  */
30131 $ac_includes_default
30132 #include <$ac_header>
30133 _ACEOF
30134 rm -f conftest.$ac_objext
30135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30136   (eval $ac_compile) 2>conftest.er1
30137   ac_status=$?
30138   grep -v '^ *+' conftest.er1 >conftest.err
30139   rm -f conftest.er1
30140   cat conftest.err >&5
30141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142   (exit $ac_status); } &&
30143          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30145   (eval $ac_try) 2>&5
30146   ac_status=$?
30147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148   (exit $ac_status); }; } &&
30149          { ac_try='test -s conftest.$ac_objext'
30150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30151   (eval $ac_try) 2>&5
30152   ac_status=$?
30153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154   (exit $ac_status); }; }; then
30155   ac_header_compiler=yes
30156 else
30157   echo "$as_me: failed program was:" >&5
30158 sed 's/^/| /' conftest.$ac_ext >&5
30159
30160 ac_header_compiler=no
30161 fi
30162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30164 echo "${ECHO_T}$ac_header_compiler" >&6
30165
30166 # Is the header present?
30167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30169 cat >conftest.$ac_ext <<_ACEOF
30170 /* confdefs.h.  */
30171 _ACEOF
30172 cat confdefs.h >>conftest.$ac_ext
30173 cat >>conftest.$ac_ext <<_ACEOF
30174 /* end confdefs.h.  */
30175 #include <$ac_header>
30176 _ACEOF
30177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30179   ac_status=$?
30180   grep -v '^ *+' conftest.er1 >conftest.err
30181   rm -f conftest.er1
30182   cat conftest.err >&5
30183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184   (exit $ac_status); } >/dev/null; then
30185   if test -s conftest.err; then
30186     ac_cpp_err=$ac_c_preproc_warn_flag
30187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30188   else
30189     ac_cpp_err=
30190   fi
30191 else
30192   ac_cpp_err=yes
30193 fi
30194 if test -z "$ac_cpp_err"; then
30195   ac_header_preproc=yes
30196 else
30197   echo "$as_me: failed program was:" >&5
30198 sed 's/^/| /' conftest.$ac_ext >&5
30199
30200   ac_header_preproc=no
30201 fi
30202 rm -f conftest.err conftest.$ac_ext
30203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30204 echo "${ECHO_T}$ac_header_preproc" >&6
30205
30206 # So?  What about this header?
30207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30208   yes:no: )
30209     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30213     ac_header_preproc=yes
30214     ;;
30215   no:yes:* )
30216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30218     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30219 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30220     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30222     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30223 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30226     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30228     (
30229       cat <<\_ASBOX
30230 ## ----------------------------------------- ##
30231 ## Report this to wx-dev@lists.wxwidgets.org ##
30232 ## ----------------------------------------- ##
30233 _ASBOX
30234     ) |
30235       sed "s/^/$as_me: WARNING:     /" >&2
30236     ;;
30237 esac
30238 echo "$as_me:$LINENO: checking for $ac_header" >&5
30239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30241   echo $ECHO_N "(cached) $ECHO_C" >&6
30242 else
30243   eval "$as_ac_Header=\$ac_header_preproc"
30244 fi
30245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30247
30248 fi
30249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30250   cat >>confdefs.h <<_ACEOF
30251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30252 _ACEOF
30253
30254 fi
30255
30256 done
30257
30258
30259 for ac_header in X11/XKBlib.h
30260 do
30261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30262 echo "$as_me:$LINENO: checking for $ac_header" >&5
30263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30265   echo $ECHO_N "(cached) $ECHO_C" >&6
30266 else
30267   cat >conftest.$ac_ext <<_ACEOF
30268 /* confdefs.h.  */
30269 _ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h.  */
30273
30274                           #if HAVE_X11_XLIB_H
30275                             #include <X11/Xlib.h>
30276                           #endif
30277
30278
30279 #include <$ac_header>
30280 _ACEOF
30281 rm -f conftest.$ac_objext
30282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30283   (eval $ac_compile) 2>conftest.er1
30284   ac_status=$?
30285   grep -v '^ *+' conftest.er1 >conftest.err
30286   rm -f conftest.er1
30287   cat conftest.err >&5
30288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289   (exit $ac_status); } &&
30290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30292   (eval $ac_try) 2>&5
30293   ac_status=$?
30294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295   (exit $ac_status); }; } &&
30296          { ac_try='test -s conftest.$ac_objext'
30297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30298   (eval $ac_try) 2>&5
30299   ac_status=$?
30300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301   (exit $ac_status); }; }; then
30302   eval "$as_ac_Header=yes"
30303 else
30304   echo "$as_me: failed program was:" >&5
30305 sed 's/^/| /' conftest.$ac_ext >&5
30306
30307 eval "$as_ac_Header=no"
30308 fi
30309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30310 fi
30311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30314   cat >>confdefs.h <<_ACEOF
30315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30316 _ACEOF
30317
30318 fi
30319
30320 done
30321
30322     fi
30323 fi
30324
30325
30326
30327 IODBC_C_SRC=""
30328
30329
30330 if test "$TOOLKIT" != "MSW" ; then
30331
30332     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30333
30334         if test "${ac_cv_header_sql_h+set}" = set; then
30335   echo "$as_me:$LINENO: checking for sql.h" >&5
30336 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30337 if test "${ac_cv_header_sql_h+set}" = set; then
30338   echo $ECHO_N "(cached) $ECHO_C" >&6
30339 fi
30340 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30341 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30342 else
30343   # Is the header compilable?
30344 echo "$as_me:$LINENO: checking sql.h usability" >&5
30345 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30346 cat >conftest.$ac_ext <<_ACEOF
30347 /* confdefs.h.  */
30348 _ACEOF
30349 cat confdefs.h >>conftest.$ac_ext
30350 cat >>conftest.$ac_ext <<_ACEOF
30351 /* end confdefs.h.  */
30352 $ac_includes_default
30353 #include <sql.h>
30354 _ACEOF
30355 rm -f conftest.$ac_objext
30356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30357   (eval $ac_compile) 2>conftest.er1
30358   ac_status=$?
30359   grep -v '^ *+' conftest.er1 >conftest.err
30360   rm -f conftest.er1
30361   cat conftest.err >&5
30362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363   (exit $ac_status); } &&
30364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30366   (eval $ac_try) 2>&5
30367   ac_status=$?
30368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369   (exit $ac_status); }; } &&
30370          { ac_try='test -s conftest.$ac_objext'
30371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30372   (eval $ac_try) 2>&5
30373   ac_status=$?
30374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375   (exit $ac_status); }; }; then
30376   ac_header_compiler=yes
30377 else
30378   echo "$as_me: failed program was:" >&5
30379 sed 's/^/| /' conftest.$ac_ext >&5
30380
30381 ac_header_compiler=no
30382 fi
30383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30385 echo "${ECHO_T}$ac_header_compiler" >&6
30386
30387 # Is the header present?
30388 echo "$as_me:$LINENO: checking sql.h presence" >&5
30389 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30390 cat >conftest.$ac_ext <<_ACEOF
30391 /* confdefs.h.  */
30392 _ACEOF
30393 cat confdefs.h >>conftest.$ac_ext
30394 cat >>conftest.$ac_ext <<_ACEOF
30395 /* end confdefs.h.  */
30396 #include <sql.h>
30397 _ACEOF
30398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30400   ac_status=$?
30401   grep -v '^ *+' conftest.er1 >conftest.err
30402   rm -f conftest.er1
30403   cat conftest.err >&5
30404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405   (exit $ac_status); } >/dev/null; then
30406   if test -s conftest.err; then
30407     ac_cpp_err=$ac_c_preproc_warn_flag
30408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30409   else
30410     ac_cpp_err=
30411   fi
30412 else
30413   ac_cpp_err=yes
30414 fi
30415 if test -z "$ac_cpp_err"; then
30416   ac_header_preproc=yes
30417 else
30418   echo "$as_me: failed program was:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30420
30421   ac_header_preproc=no
30422 fi
30423 rm -f conftest.err conftest.$ac_ext
30424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30425 echo "${ECHO_T}$ac_header_preproc" >&6
30426
30427 # So?  What about this header?
30428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30429   yes:no: )
30430     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30431 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30432     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30433 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30434     ac_header_preproc=yes
30435     ;;
30436   no:yes:* )
30437     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30438 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
30439     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
30440 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
30441     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30442 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30443     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
30444 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30445     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30446 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
30447     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30448 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
30449     (
30450       cat <<\_ASBOX
30451 ## ----------------------------------------- ##
30452 ## Report this to wx-dev@lists.wxwidgets.org ##
30453 ## ----------------------------------------- ##
30454 _ASBOX
30455     ) |
30456       sed "s/^/$as_me: WARNING:     /" >&2
30457     ;;
30458 esac
30459 echo "$as_me:$LINENO: checking for sql.h" >&5
30460 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30461 if test "${ac_cv_header_sql_h+set}" = set; then
30462   echo $ECHO_N "(cached) $ECHO_C" >&6
30463 else
30464   ac_cv_header_sql_h=$ac_header_preproc
30465 fi
30466 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30467 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30468
30469 fi
30470 if test $ac_cv_header_sql_h = yes; then
30471   found_sql_h=1
30472 fi
30473
30474
30475         if test "x$found_sql_h" = "x1" ; then
30476             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30477 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30478 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30479   echo $ECHO_N "(cached) $ECHO_C" >&6
30480 else
30481   ac_check_lib_save_LIBS=$LIBS
30482 LIBS="-liodbc  $LIBS"
30483 cat >conftest.$ac_ext <<_ACEOF
30484 /* confdefs.h.  */
30485 _ACEOF
30486 cat confdefs.h >>conftest.$ac_ext
30487 cat >>conftest.$ac_ext <<_ACEOF
30488 /* end confdefs.h.  */
30489
30490 /* Override any gcc2 internal prototype to avoid an error.  */
30491 #ifdef __cplusplus
30492 extern "C"
30493 #endif
30494 /* We use char because int might match the return type of a gcc2
30495    builtin and then its argument prototype would still apply.  */
30496 char SQLAllocEnv ();
30497 int
30498 main ()
30499 {
30500 SQLAllocEnv ();
30501   ;
30502   return 0;
30503 }
30504 _ACEOF
30505 rm -f conftest.$ac_objext conftest$ac_exeext
30506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30507   (eval $ac_link) 2>conftest.er1
30508   ac_status=$?
30509   grep -v '^ *+' conftest.er1 >conftest.err
30510   rm -f conftest.er1
30511   cat conftest.err >&5
30512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513   (exit $ac_status); } &&
30514          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30516   (eval $ac_try) 2>&5
30517   ac_status=$?
30518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519   (exit $ac_status); }; } &&
30520          { ac_try='test -s conftest$ac_exeext'
30521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522   (eval $ac_try) 2>&5
30523   ac_status=$?
30524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525   (exit $ac_status); }; }; then
30526   ac_cv_lib_iodbc_SQLAllocEnv=yes
30527 else
30528   echo "$as_me: failed program was:" >&5
30529 sed 's/^/| /' conftest.$ac_ext >&5
30530
30531 ac_cv_lib_iodbc_SQLAllocEnv=no
30532 fi
30533 rm -f conftest.err conftest.$ac_objext \
30534       conftest$ac_exeext conftest.$ac_ext
30535 LIBS=$ac_check_lib_save_LIBS
30536 fi
30537 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30538 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30539 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30540   ODBC_LINK=" -liodbc"
30541 else
30542
30543                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30544 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30545 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30546   echo $ECHO_N "(cached) $ECHO_C" >&6
30547 else
30548   ac_check_lib_save_LIBS=$LIBS
30549 LIBS="-lunixodbc  $LIBS"
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
30557 /* Override any gcc2 internal prototype to avoid an error.  */
30558 #ifdef __cplusplus
30559 extern "C"
30560 #endif
30561 /* We use char because int might match the return type of a gcc2
30562    builtin and then its argument prototype would still apply.  */
30563 char SQLAllocEnv ();
30564 int
30565 main ()
30566 {
30567 SQLAllocEnv ();
30568   ;
30569   return 0;
30570 }
30571 _ACEOF
30572 rm -f conftest.$ac_objext conftest$ac_exeext
30573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30574   (eval $ac_link) 2>conftest.er1
30575   ac_status=$?
30576   grep -v '^ *+' conftest.er1 >conftest.err
30577   rm -f conftest.er1
30578   cat conftest.err >&5
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); } &&
30581          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30583   (eval $ac_try) 2>&5
30584   ac_status=$?
30585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586   (exit $ac_status); }; } &&
30587          { ac_try='test -s conftest$ac_exeext'
30588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30589   (eval $ac_try) 2>&5
30590   ac_status=$?
30591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592   (exit $ac_status); }; }; then
30593   ac_cv_lib_unixodbc_SQLAllocEnv=yes
30594 else
30595   echo "$as_me: failed program was:" >&5
30596 sed 's/^/| /' conftest.$ac_ext >&5
30597
30598 ac_cv_lib_unixodbc_SQLAllocEnv=no
30599 fi
30600 rm -f conftest.err conftest.$ac_objext \
30601       conftest$ac_exeext conftest.$ac_ext
30602 LIBS=$ac_check_lib_save_LIBS
30603 fi
30604 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30605 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30606 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30607   ODBC_LINK=" -lunixodbc"
30608 else
30609
30610                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30611 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30612 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30613   echo $ECHO_N "(cached) $ECHO_C" >&6
30614 else
30615   ac_check_lib_save_LIBS=$LIBS
30616 LIBS="-lodbc  $LIBS"
30617 cat >conftest.$ac_ext <<_ACEOF
30618 /* confdefs.h.  */
30619 _ACEOF
30620 cat confdefs.h >>conftest.$ac_ext
30621 cat >>conftest.$ac_ext <<_ACEOF
30622 /* end confdefs.h.  */
30623
30624 /* Override any gcc2 internal prototype to avoid an error.  */
30625 #ifdef __cplusplus
30626 extern "C"
30627 #endif
30628 /* We use char because int might match the return type of a gcc2
30629    builtin and then its argument prototype would still apply.  */
30630 char SQLAllocEnv ();
30631 int
30632 main ()
30633 {
30634 SQLAllocEnv ();
30635   ;
30636   return 0;
30637 }
30638 _ACEOF
30639 rm -f conftest.$ac_objext conftest$ac_exeext
30640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30641   (eval $ac_link) 2>conftest.er1
30642   ac_status=$?
30643   grep -v '^ *+' conftest.er1 >conftest.err
30644   rm -f conftest.er1
30645   cat conftest.err >&5
30646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647   (exit $ac_status); } &&
30648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30650   (eval $ac_try) 2>&5
30651   ac_status=$?
30652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653   (exit $ac_status); }; } &&
30654          { ac_try='test -s conftest$ac_exeext'
30655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656   (eval $ac_try) 2>&5
30657   ac_status=$?
30658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659   (exit $ac_status); }; }; then
30660   ac_cv_lib_odbc_SQLAllocEnv=yes
30661 else
30662   echo "$as_me: failed program was:" >&5
30663 sed 's/^/| /' conftest.$ac_ext >&5
30664
30665 ac_cv_lib_odbc_SQLAllocEnv=no
30666 fi
30667 rm -f conftest.err conftest.$ac_objext \
30668       conftest$ac_exeext conftest.$ac_ext
30669 LIBS=$ac_check_lib_save_LIBS
30670 fi
30671 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30672 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30673 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30674   ODBC_LINK=" -lodbc"
30675 fi
30676
30677
30678 fi
30679
30680
30681 fi
30682
30683         fi
30684         if test "x$ODBC_LINK" = "x" ; then
30685             if test "$wxUSE_ODBC" = "sys" ; then
30686                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30687 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30688    { (exit 1); exit 1; }; }
30689             else
30690                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30691 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30692                 wxUSE_ODBC=builtin
30693             fi
30694         else
30695                         wxUSE_ODBC=sys
30696         fi
30697     fi
30698
30699     if test "$wxUSE_ODBC" = "builtin" ; then
30700         cat >>confdefs.h <<\_ACEOF
30701 #define wxUSE_BUILTIN_IODBC 1
30702 _ACEOF
30703
30704     fi
30705 fi
30706
30707 if test "$wxUSE_ODBC" != "no" ; then
30708     cat >>confdefs.h <<\_ACEOF
30709 #define wxUSE_ODBC 1
30710 _ACEOF
30711
30712     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30713
30714         WXODBCFLAG="-D_IODBC_"
30715 fi
30716
30717
30718 if test "$wxUSE_DISPLAY" = "yes"; then
30719     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
30720         echo "$as_me:$LINENO: checking for Xinerama" >&5
30721 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30722
30723   ac_find_libraries=
30724   for ac_dir in $SEARCH_LIB;
30725   do
30726     for ac_extension in a so sl dylib dll.a; do
30727       if test -f "$ac_dir/libXinerama.$ac_extension"; then
30728         ac_find_libraries=$ac_dir
30729         break 2
30730       fi
30731     done
30732   done
30733
30734         if test "$ac_find_libraries" != "" ; then
30735
30736     if test "$ac_find_libraries" = "default location"; then
30737     ac_path_to_link=""
30738   else
30739     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30740     result=$?
30741     if test $result = 0; then
30742       ac_path_to_link=""
30743     else
30744       ac_path_to_link=" -L$ac_find_libraries"
30745     fi
30746   fi
30747
30748             if test "$ac_path_to_link" != " -L/usr/lib" ; then
30749                 LDFLAGS="$LDFLAGS $ac_path_to_link"
30750             fi
30751             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30752             echo "$as_me:$LINENO: result: yes" >&5
30753 echo "${ECHO_T}yes" >&6
30754
30755             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30756 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30757
30758   ac_find_libraries=
30759   for ac_dir in $SEARCH_LIB;
30760   do
30761     for ac_extension in a so sl dylib dll.a; do
30762       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30763         ac_find_libraries=$ac_dir
30764         break 2
30765       fi
30766     done
30767   done
30768
30769             if test "$ac_find_libraries" != "" ; then
30770                 echo "$as_me:$LINENO: result: yes" >&5
30771 echo "${ECHO_T}yes" >&6
30772
30773 for ac_header in X11/extensions/xf86vmode.h
30774 do
30775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30776 echo "$as_me:$LINENO: checking for $ac_header" >&5
30777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30779   echo $ECHO_N "(cached) $ECHO_C" >&6
30780 else
30781   cat >conftest.$ac_ext <<_ACEOF
30782 /* confdefs.h.  */
30783 _ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h.  */
30787
30788                                       #if HAVE_X11_XLIB_H
30789                                         #include <X11/Xlib.h>
30790                                       #endif
30791
30792
30793 #include <$ac_header>
30794 _ACEOF
30795 rm -f conftest.$ac_objext
30796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30797   (eval $ac_compile) 2>conftest.er1
30798   ac_status=$?
30799   grep -v '^ *+' conftest.er1 >conftest.err
30800   rm -f conftest.er1
30801   cat conftest.err >&5
30802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803   (exit $ac_status); } &&
30804          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30806   (eval $ac_try) 2>&5
30807   ac_status=$?
30808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809   (exit $ac_status); }; } &&
30810          { ac_try='test -s conftest.$ac_objext'
30811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30812   (eval $ac_try) 2>&5
30813   ac_status=$?
30814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815   (exit $ac_status); }; }; then
30816   eval "$as_ac_Header=yes"
30817 else
30818   echo "$as_me: failed program was:" >&5
30819 sed 's/^/| /' conftest.$ac_ext >&5
30820
30821 eval "$as_ac_Header=no"
30822 fi
30823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30824 fi
30825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30828   cat >>confdefs.h <<_ACEOF
30829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30830 _ACEOF
30831
30832                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30833
30834 fi
30835
30836 done
30837
30838             else
30839                 echo "$as_me:$LINENO: result: no" >&5
30840 echo "${ECHO_T}no" >&6
30841             fi
30842
30843         else
30844             echo "$as_me:$LINENO: result: no" >&5
30845 echo "${ECHO_T}no" >&6
30846             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30847 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
30848             wxUSE_DISPLAY="no"
30849         fi
30850     elif test "$wxUSE_MSW" = 1; then
30851
30852
30853 for ac_header in multimon.h ddraw.h
30854 do
30855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30856 echo "$as_me:$LINENO: checking for $ac_header" >&5
30857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30859   echo $ECHO_N "(cached) $ECHO_C" >&6
30860 else
30861   cat >conftest.$ac_ext <<_ACEOF
30862 /* confdefs.h.  */
30863 _ACEOF
30864 cat confdefs.h >>conftest.$ac_ext
30865 cat >>conftest.$ac_ext <<_ACEOF
30866 /* end confdefs.h.  */
30867 #include <windows.h>
30868
30869 #include <$ac_header>
30870 _ACEOF
30871 rm -f conftest.$ac_objext
30872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30873   (eval $ac_compile) 2>conftest.er1
30874   ac_status=$?
30875   grep -v '^ *+' conftest.er1 >conftest.err
30876   rm -f conftest.er1
30877   cat conftest.err >&5
30878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879   (exit $ac_status); } &&
30880          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882   (eval $ac_try) 2>&5
30883   ac_status=$?
30884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885   (exit $ac_status); }; } &&
30886          { ac_try='test -s conftest.$ac_objext'
30887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888   (eval $ac_try) 2>&5
30889   ac_status=$?
30890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891   (exit $ac_status); }; }; then
30892   eval "$as_ac_Header=yes"
30893 else
30894   echo "$as_me: failed program was:" >&5
30895 sed 's/^/| /' conftest.$ac_ext >&5
30896
30897 eval "$as_ac_Header=no"
30898 fi
30899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30900 fi
30901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30904   cat >>confdefs.h <<_ACEOF
30905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30906 _ACEOF
30907
30908 else
30909
30910                 wxUSE_DISPLAY="no"
30911                 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
30912 echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
30913
30914 fi
30915
30916 done
30917
30918     fi
30919 fi
30920
30921
30922 USE_OPENGL=0
30923 if test "$wxUSE_OPENGL" = "yes"; then
30924     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30925         OPENGL_LIBS="-framework OpenGL -framework AGL"
30926     elif test "$wxUSE_MSW" = 1; then
30927         OPENGL_LIBS="-lopengl32 -lglu32"
30928     else
30929
30930
30931 ac_find_includes=
30932 for ac_dir in $SEARCH_INCLUDE /usr/include;
30933   do
30934     if test -f "$ac_dir/GL/gl.h"; then
30935       ac_find_includes=$ac_dir
30936       break
30937     fi
30938   done
30939
30940         if test "$ac_find_includes" != "" ; then
30941             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30942 echo "${ECHO_T}found in $ac_find_includes" >&6
30943
30944     if test "x$ac_find_includes" = "x/usr/include"; then
30945     ac_path_to_include=""
30946   else
30947     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30948     result=$?
30949     if test $result = 0; then
30950       ac_path_to_include=""
30951     else
30952       ac_path_to_include=" -I$ac_find_includes"
30953     fi
30954   fi
30955
30956             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30957         fi
30958
30959         if test "${ac_cv_header_GL_gl_h+set}" = set; then
30960   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30961 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30962 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30963   echo $ECHO_N "(cached) $ECHO_C" >&6
30964 fi
30965 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30966 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30967 else
30968   # Is the header compilable?
30969 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30970 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30971 cat >conftest.$ac_ext <<_ACEOF
30972 /* confdefs.h.  */
30973 _ACEOF
30974 cat confdefs.h >>conftest.$ac_ext
30975 cat >>conftest.$ac_ext <<_ACEOF
30976 /* end confdefs.h.  */
30977 $ac_includes_default
30978 #include <GL/gl.h>
30979 _ACEOF
30980 rm -f conftest.$ac_objext
30981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30982   (eval $ac_compile) 2>conftest.er1
30983   ac_status=$?
30984   grep -v '^ *+' conftest.er1 >conftest.err
30985   rm -f conftest.er1
30986   cat conftest.err >&5
30987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988   (exit $ac_status); } &&
30989          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991   (eval $ac_try) 2>&5
30992   ac_status=$?
30993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994   (exit $ac_status); }; } &&
30995          { ac_try='test -s conftest.$ac_objext'
30996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30997   (eval $ac_try) 2>&5
30998   ac_status=$?
30999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000   (exit $ac_status); }; }; then
31001   ac_header_compiler=yes
31002 else
31003   echo "$as_me: failed program was:" >&5
31004 sed 's/^/| /' conftest.$ac_ext >&5
31005
31006 ac_header_compiler=no
31007 fi
31008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31010 echo "${ECHO_T}$ac_header_compiler" >&6
31011
31012 # Is the header present?
31013 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31014 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31015 cat >conftest.$ac_ext <<_ACEOF
31016 /* confdefs.h.  */
31017 _ACEOF
31018 cat confdefs.h >>conftest.$ac_ext
31019 cat >>conftest.$ac_ext <<_ACEOF
31020 /* end confdefs.h.  */
31021 #include <GL/gl.h>
31022 _ACEOF
31023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31025   ac_status=$?
31026   grep -v '^ *+' conftest.er1 >conftest.err
31027   rm -f conftest.er1
31028   cat conftest.err >&5
31029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030   (exit $ac_status); } >/dev/null; then
31031   if test -s conftest.err; then
31032     ac_cpp_err=$ac_c_preproc_warn_flag
31033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31034   else
31035     ac_cpp_err=
31036   fi
31037 else
31038   ac_cpp_err=yes
31039 fi
31040 if test -z "$ac_cpp_err"; then
31041   ac_header_preproc=yes
31042 else
31043   echo "$as_me: failed program was:" >&5
31044 sed 's/^/| /' conftest.$ac_ext >&5
31045
31046   ac_header_preproc=no
31047 fi
31048 rm -f conftest.err conftest.$ac_ext
31049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31050 echo "${ECHO_T}$ac_header_preproc" >&6
31051
31052 # So?  What about this header?
31053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31054   yes:no: )
31055     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31056 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31057     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31058 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31059     ac_header_preproc=yes
31060     ;;
31061   no:yes:* )
31062     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31063 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
31064     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
31065 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
31066     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31067 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31068     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
31069 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31070     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31071 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
31072     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31073 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
31074     (
31075       cat <<\_ASBOX
31076 ## ----------------------------------------- ##
31077 ## Report this to wx-dev@lists.wxwidgets.org ##
31078 ## ----------------------------------------- ##
31079 _ASBOX
31080     ) |
31081       sed "s/^/$as_me: WARNING:     /" >&2
31082     ;;
31083 esac
31084 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31085 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31086 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31087   echo $ECHO_N "(cached) $ECHO_C" >&6
31088 else
31089   ac_cv_header_GL_gl_h=$ac_header_preproc
31090 fi
31091 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31092 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31093
31094 fi
31095 if test $ac_cv_header_GL_gl_h = yes; then
31096
31097                 found_gl=0
31098
31099                 echo "$as_me:$LINENO: checking for -lGL" >&5
31100 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31101
31102   ac_find_libraries=
31103   for ac_dir in $SEARCH_LIB;
31104   do
31105     for ac_extension in a so sl dylib dll.a; do
31106       if test -f "$ac_dir/libGL.$ac_extension"; then
31107         ac_find_libraries=$ac_dir
31108         break 2
31109       fi
31110     done
31111   done
31112
31113                 if test "$ac_find_libraries" != "" ; then
31114                     echo "$as_me:$LINENO: result: yes" >&5
31115 echo "${ECHO_T}yes" >&6
31116
31117
31118     if test "$ac_find_libraries" = "default location"; then
31119     ac_path_to_link=""
31120   else
31121     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31122     result=$?
31123     if test $result = 0; then
31124       ac_path_to_link=""
31125     else
31126       ac_path_to_link=" -L$ac_find_libraries"
31127     fi
31128   fi
31129
31130                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
31131                         LDFLAGS_GL="$ac_path_to_link"
31132                     fi
31133
31134                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
31135 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
31136
31137   ac_find_libraries=
31138   for ac_dir in $SEARCH_LIB;
31139   do
31140     for ac_extension in a so sl dylib dll.a; do
31141       if test -f "$ac_dir/libGLU.$ac_extension"; then
31142         ac_find_libraries=$ac_dir
31143         break 2
31144       fi
31145     done
31146   done
31147
31148                     if test "$ac_find_libraries" != "" ; then
31149
31150     if test "$ac_find_libraries" = "default location"; then
31151     ac_path_to_link=""
31152   else
31153     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31154     result=$?
31155     if test $result = 0; then
31156       ac_path_to_link=""
31157     else
31158       ac_path_to_link=" -L$ac_find_libraries"
31159     fi
31160   fi
31161
31162                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
31163                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
31164                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31165                         fi
31166
31167                         found_gl=1
31168                         OPENGL_LIBS="-lGL -lGLU"
31169                         echo "$as_me:$LINENO: result: yes" >&5
31170 echo "${ECHO_T}yes" >&6
31171                     else
31172                         echo "$as_me:$LINENO: result: no" >&5
31173 echo "${ECHO_T}no" >&6
31174                     fi
31175                 else
31176                     echo "$as_me:$LINENO: result: no" >&5
31177 echo "${ECHO_T}no" >&6
31178                 fi
31179
31180                 if test "$found_gl" != 1; then
31181                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31182 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31183
31184   ac_find_libraries=
31185   for ac_dir in $SEARCH_LIB;
31186   do
31187     for ac_extension in a so sl dylib dll.a; do
31188       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31189         ac_find_libraries=$ac_dir
31190         break 2
31191       fi
31192     done
31193   done
31194
31195                     if test "$ac_find_libraries" != "" ; then
31196
31197     if test "$ac_find_libraries" = "default location"; then
31198     ac_path_to_link=""
31199   else
31200     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31201     result=$?
31202     if test $result = 0; then
31203       ac_path_to_link=""
31204     else
31205       ac_path_to_link=" -L$ac_find_libraries"
31206     fi
31207   fi
31208
31209                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31210                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
31211                         echo "$as_me:$LINENO: result: yes" >&5
31212 echo "${ECHO_T}yes" >&6
31213                     else
31214                         echo "$as_me:$LINENO: result: no" >&5
31215 echo "${ECHO_T}no" >&6
31216                     fi
31217                 fi
31218
31219 fi
31220
31221
31222
31223         if test "x$OPENGL_LIBS" = "x"; then
31224                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31225 echo "$as_me: error: OpenGL libraries not available" >&2;}
31226    { (exit 1); exit 1; }; }
31227         fi
31228     fi
31229
31230     if test "$wxUSE_OPENGL" = "yes"; then
31231         USE_OPENGL=1
31232         cat >>confdefs.h <<\_ACEOF
31233 #define wxUSE_OPENGL 1
31234 _ACEOF
31235
31236         cat >>confdefs.h <<\_ACEOF
31237 #define wxUSE_GLCANVAS 1
31238 _ACEOF
31239
31240         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31241     fi
31242 fi
31243
31244
31245 if test -n "$TOOLKIT" ; then
31246     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31247 fi
31248
31249
31250
31251 if test "$wxUSE_SHARED" = "yes"; then
31252     case "${host}" in
31253       *-pc-msdosdjgpp )
31254                 wxUSE_SHARED=no
31255         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31256 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31257       ;;
31258     esac
31259 fi
31260
31261 if test "$wxUSE_SHARED" = "yes"; then
31262
31263
31264   found_versioning=no
31265
31266
31267     if test $found_versioning = no ; then
31268       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31269 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31270 if test "${wx_cv_version_script+set}" = set; then
31271   echo $ECHO_N "(cached) $ECHO_C" >&6
31272 else
31273
31274         echo "VER_1 { *; };" >conftest.sym
31275         echo "int main() { return 0; }" >conftest.cpp
31276
31277         if { ac_try='
31278                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31279                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31281   (eval $ac_try) 2>&5
31282   ac_status=$?
31283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284   (exit $ac_status); }; } ; then
31285           if test -s conftest.stderr ; then
31286               wx_cv_version_script=no
31287           else
31288               wx_cv_version_script=yes
31289           fi
31290         else
31291           wx_cv_version_script=no
31292         fi
31293
31294                                                                                                 if test $wx_cv_version_script = yes
31295         then
31296           echo "struct B { virtual ~B() { } }; \
31297                 struct D : public B { }; \
31298                 void F() { D d; }" > conftest.cpp
31299
31300           if { ac_try='
31301                 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31302                 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31304   (eval $ac_try) 2>&5
31305   ac_status=$?
31306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307   (exit $ac_status); }; } &&
31308              { ac_try='
31309                 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31310                 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31312   (eval $ac_try) 2>&5
31313   ac_status=$?
31314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315   (exit $ac_status); }; }
31316           then
31317             if { ac_try='
31318                   $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31319                   -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31321   (eval $ac_try) 2>&5
31322   ac_status=$?
31323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324   (exit $ac_status); }; }
31325             then
31326               wx_cv_version_script=yes
31327             else
31328               wx_cv_version_script=no
31329             fi
31330           fi
31331         fi
31332
31333         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
31334         rm -f conftest1.output conftest2.output conftest3.output
31335
31336 fi
31337 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31338 echo "${ECHO_T}$wx_cv_version_script" >&6
31339       if test $wx_cv_version_script = yes ; then
31340         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31341       fi
31342   fi
31343
31344
31345     case "${host}" in
31346       *-*-linux* | *-*-gnu* )
31347         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
31348         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
31349         ;;
31350
31351       *-*-solaris2* )
31352         if test "$GCC" = yes ; then
31353                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
31354
31355                                     saveLdflags="$LDFLAGS"
31356             LDFLAGS="$saveLdflags -Wl,-rpath,/"
31357             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31358 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31359             cat >conftest.$ac_ext <<_ACEOF
31360 /* confdefs.h.  */
31361 _ACEOF
31362 cat confdefs.h >>conftest.$ac_ext
31363 cat >>conftest.$ac_ext <<_ACEOF
31364 /* end confdefs.h.  */
31365
31366 int
31367 main ()
31368 {
31369
31370   ;
31371   return 0;
31372 }
31373 _ACEOF
31374 rm -f conftest.$ac_objext conftest$ac_exeext
31375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31376   (eval $ac_link) 2>conftest.er1
31377   ac_status=$?
31378   grep -v '^ *+' conftest.er1 >conftest.err
31379   rm -f conftest.er1
31380   cat conftest.err >&5
31381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382   (exit $ac_status); } &&
31383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31385   (eval $ac_try) 2>&5
31386   ac_status=$?
31387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388   (exit $ac_status); }; } &&
31389          { ac_try='test -s conftest$ac_exeext'
31390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31391   (eval $ac_try) 2>&5
31392   ac_status=$?
31393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394   (exit $ac_status); }; }; then
31395
31396                     echo "$as_me:$LINENO: result: yes" >&5
31397 echo "${ECHO_T}yes" >&6
31398                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
31399                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
31400
31401 else
31402   echo "$as_me: failed program was:" >&5
31403 sed 's/^/| /' conftest.$ac_ext >&5
31404
31405
31406                     echo "$as_me:$LINENO: result: no" >&5
31407 echo "${ECHO_T}no" >&6
31408                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31409 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31410                     LDFLAGS="$saveLdflags -Wl,-R,/"
31411                     cat >conftest.$ac_ext <<_ACEOF
31412 /* confdefs.h.  */
31413 _ACEOF
31414 cat confdefs.h >>conftest.$ac_ext
31415 cat >>conftest.$ac_ext <<_ACEOF
31416 /* end confdefs.h.  */
31417
31418 int
31419 main ()
31420 {
31421
31422   ;
31423   return 0;
31424 }
31425 _ACEOF
31426 rm -f conftest.$ac_objext conftest$ac_exeext
31427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31428   (eval $ac_link) 2>conftest.er1
31429   ac_status=$?
31430   grep -v '^ *+' conftest.er1 >conftest.err
31431   rm -f conftest.er1
31432   cat conftest.err >&5
31433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434   (exit $ac_status); } &&
31435          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31437   (eval $ac_try) 2>&5
31438   ac_status=$?
31439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440   (exit $ac_status); }; } &&
31441          { ac_try='test -s conftest$ac_exeext'
31442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31443   (eval $ac_try) 2>&5
31444   ac_status=$?
31445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446   (exit $ac_status); }; }; then
31447
31448                             echo "$as_me:$LINENO: result: yes" >&5
31449 echo "${ECHO_T}yes" >&6
31450                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31451                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
31452
31453 else
31454   echo "$as_me: failed program was:" >&5
31455 sed 's/^/| /' conftest.$ac_ext >&5
31456
31457
31458                             echo "$as_me:$LINENO: result: no" >&5
31459 echo "${ECHO_T}no" >&6
31460
31461 fi
31462 rm -f conftest.err conftest.$ac_objext \
31463       conftest$ac_exeext conftest.$ac_ext
31464
31465 fi
31466 rm -f conftest.err conftest.$ac_objext \
31467       conftest$ac_exeext conftest.$ac_ext
31468             LDFLAGS="$saveLdflags"
31469         else
31470             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
31471             WXCONFIG_RPATH="-R\$libdir"
31472         fi
31473       ;;
31474
31475       *-*-darwin* )
31476         install_name_tool=`which install_name_tool`
31477         if test "$install_name_tool" -a -x "$install_name_tool"; then
31478             SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31479             cat <<EOF >change-install-names
31480 #!/bin/sh
31481 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31482 inst_cmd="install_name_tool "
31483 for i in \${libnames} ; do
31484     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31485 done
31486 \${inst_cmd} \${3}
31487 EOF
31488             chmod +x change-install-names
31489         fi
31490       ;;
31491
31492       *-*-cygwin* | *-*-mingw32* )
31493         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
31494         ;;
31495
31496       *-*-hpux* )
31497         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31498         WXCONFIG_RPATH="-Wl,+b,\$libdir"
31499         ;;
31500
31501     esac
31502
31503     if test $wxUSE_RPATH = "no"; then
31504         SAMPLES_RPATH_FLAG=''
31505         SAMPLES_RPATH_POSTLINK=''
31506         WXCONFIG_RPATH=''
31507     fi
31508
31509     SHARED=1
31510
31511 else
31512
31513     config_linkage_component="-static"
31514     SHARED=0
31515
31516 fi
31517
31518
31519 UNICODE=0
31520 lib_unicode_suffix=
31521 WX_CHARTYPE="ansi"
31522 if test "$wxUSE_UNICODE" = "yes"; then
31523     lib_unicode_suffix=u
31524     WX_CHARTYPE="unicode"
31525     UNICODE=1
31526 fi
31527
31528 lib_debug_suffix=
31529 WX_DEBUGTYPE="release"
31530 DEBUG_FLAG=0
31531 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31532     lib_debug_suffix=d
31533     WX_DEBUGTYPE="debug"
31534     DEBUG_FLAG=1
31535 fi
31536
31537 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31538 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
31539
31540 DEBUG_INFO=0
31541 if test "$wxUSE_DEBUG_INFO" = "yes"; then
31542     DEBUG_INFO=1
31543 fi
31544
31545 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
31546
31547 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
31548
31549 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
31550
31551 if test "$cross_compiling" = "yes"; then
31552     HOST_SUFFIX="-$host_alias"
31553     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31554     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
31555 fi
31556
31557 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31558 if test "${TOOLKIT_DIR}" = "os2"; then
31559     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31560 else
31561     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31562 fi
31563
31564
31565
31566 if test "$wxUSE_COCOA" = 1; then
31567
31568
31569     ac_ext=c
31570 ac_cpp='$CPP $CPPFLAGS'
31571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31574
31575 ac_ext=m
31576
31577     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31578 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31579     cat >conftest.$ac_ext <<_ACEOF
31580 /* confdefs.h.  */
31581 _ACEOF
31582 cat confdefs.h >>conftest.$ac_ext
31583 cat >>conftest.$ac_ext <<_ACEOF
31584 /* end confdefs.h.  */
31585 #include <AppKit/NSEvent.h>
31586 #include <CoreFoundation/CoreFoundation.h>
31587
31588 int
31589 main ()
31590 {
31591
31592   ;
31593   return 0;
31594 }
31595 _ACEOF
31596 rm -f conftest.$ac_objext
31597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31598   (eval $ac_compile) 2>conftest.er1
31599   ac_status=$?
31600   grep -v '^ *+' conftest.er1 >conftest.err
31601   rm -f conftest.er1
31602   cat conftest.err >&5
31603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604   (exit $ac_status); } &&
31605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31607   (eval $ac_try) 2>&5
31608   ac_status=$?
31609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610   (exit $ac_status); }; } &&
31611          { ac_try='test -s conftest.$ac_objext'
31612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31613   (eval $ac_try) 2>&5
31614   ac_status=$?
31615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616   (exit $ac_status); }; }; then
31617   echo "$as_me:$LINENO: result: no" >&5
31618 echo "${ECHO_T}no" >&6
31619 else
31620   echo "$as_me: failed program was:" >&5
31621 sed 's/^/| /' conftest.$ac_ext >&5
31622
31623 echo "$as_me:$LINENO: result: yes" >&5
31624 echo "${ECHO_T}yes" >&6
31625         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31626 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31627         cat >conftest.$ac_ext <<_ACEOF
31628 /* confdefs.h.  */
31629 _ACEOF
31630 cat confdefs.h >>conftest.$ac_ext
31631 cat >>conftest.$ac_ext <<_ACEOF
31632 /* end confdefs.h.  */
31633 #define __Point__ 1
31634 #include <AppKit/NSEvent.h>
31635 #include <CoreFoundation/CoreFoundation.h>
31636
31637 int
31638 main ()
31639 {
31640
31641   ;
31642   return 0;
31643 }
31644 _ACEOF
31645 rm -f conftest.$ac_objext
31646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31647   (eval $ac_compile) 2>conftest.er1
31648   ac_status=$?
31649   grep -v '^ *+' conftest.er1 >conftest.err
31650   rm -f conftest.er1
31651   cat conftest.err >&5
31652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653   (exit $ac_status); } &&
31654          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31656   (eval $ac_try) 2>&5
31657   ac_status=$?
31658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659   (exit $ac_status); }; } &&
31660          { ac_try='test -s conftest.$ac_objext'
31661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31662   (eval $ac_try) 2>&5
31663   ac_status=$?
31664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665   (exit $ac_status); }; }; then
31666   echo "$as_me:$LINENO: result: yes" >&5
31667 echo "${ECHO_T}yes" >&6
31668             cat >>confdefs.h <<\_ACEOF
31669 #define __Point__ 1
31670 _ACEOF
31671
31672
31673 else
31674   echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.$ac_ext >&5
31676
31677 { { echo "$as_me:$LINENO: error: no
31678 See \`config.log' for more details." >&5
31679 echo "$as_me: error: no
31680 See \`config.log' for more details." >&2;}
31681    { (exit 1); exit 1; }; }
31682
31683 fi
31684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31685
31686 fi
31687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31688     ac_ext=c
31689 ac_cpp='$CPP $CPPFLAGS'
31690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31693
31694 fi
31695
31696 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
31697             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31698     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
31699
31700         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
31701
31702     # Extract the first word of "Rez", so it can be a program name with args.
31703 set dummy Rez; ac_word=$2
31704 echo "$as_me:$LINENO: checking for $ac_word" >&5
31705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31706 if test "${ac_cv_prog_RESCOMP+set}" = set; then
31707   echo $ECHO_N "(cached) $ECHO_C" >&6
31708 else
31709   if test -n "$RESCOMP"; then
31710   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31711 else
31712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31713 for as_dir in $PATH
31714 do
31715   IFS=$as_save_IFS
31716   test -z "$as_dir" && as_dir=.
31717   for ac_exec_ext in '' $ac_executable_extensions; do
31718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31719     ac_cv_prog_RESCOMP="Rez"
31720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31721     break 2
31722   fi
31723 done
31724 done
31725
31726   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31727 fi
31728 fi
31729 RESCOMP=$ac_cv_prog_RESCOMP
31730 if test -n "$RESCOMP"; then
31731   echo "$as_me:$LINENO: result: $RESCOMP" >&5
31732 echo "${ECHO_T}$RESCOMP" >&6
31733 else
31734   echo "$as_me:$LINENO: result: no" >&5
31735 echo "${ECHO_T}no" >&6
31736 fi
31737
31738     # Extract the first word of "DeRez", so it can be a program name with args.
31739 set dummy DeRez; ac_word=$2
31740 echo "$as_me:$LINENO: checking for $ac_word" >&5
31741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31742 if test "${ac_cv_prog_DEREZ+set}" = set; then
31743   echo $ECHO_N "(cached) $ECHO_C" >&6
31744 else
31745   if test -n "$DEREZ"; then
31746   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31747 else
31748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31749 for as_dir in $PATH
31750 do
31751   IFS=$as_save_IFS
31752   test -z "$as_dir" && as_dir=.
31753   for ac_exec_ext in '' $ac_executable_extensions; do
31754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31755     ac_cv_prog_DEREZ="DeRez"
31756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31757     break 2
31758   fi
31759 done
31760 done
31761
31762   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31763 fi
31764 fi
31765 DEREZ=$ac_cv_prog_DEREZ
31766 if test -n "$DEREZ"; then
31767   echo "$as_me:$LINENO: result: $DEREZ" >&5
31768 echo "${ECHO_T}$DEREZ" >&6
31769 else
31770   echo "$as_me:$LINENO: result: no" >&5
31771 echo "${ECHO_T}no" >&6
31772 fi
31773
31774     # Extract the first word of "SetFile", so it can be a program name with args.
31775 set dummy SetFile; ac_word=$2
31776 echo "$as_me:$LINENO: checking for $ac_word" >&5
31777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31778 if test "${ac_cv_prog_SETFILE+set}" = set; then
31779   echo $ECHO_N "(cached) $ECHO_C" >&6
31780 else
31781   if test -n "$SETFILE"; then
31782   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31783 else
31784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31785 for as_dir in $PATH
31786 do
31787   IFS=$as_save_IFS
31788   test -z "$as_dir" && as_dir=.
31789   for ac_exec_ext in '' $ac_executable_extensions; do
31790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31791     ac_cv_prog_SETFILE="SetFile"
31792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31793     break 2
31794   fi
31795 done
31796 done
31797
31798   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31799 fi
31800 fi
31801 SETFILE=$ac_cv_prog_SETFILE
31802 if test -n "$SETFILE"; then
31803   echo "$as_me:$LINENO: result: $SETFILE" >&5
31804 echo "${ECHO_T}$SETFILE" >&6
31805 else
31806   echo "$as_me:$LINENO: result: no" >&5
31807 echo "${ECHO_T}no" >&6
31808 fi
31809
31810
31811     MACSETFILE="\$(SETFILE)"
31812
31813             if test "$wxUSE_MAC" = 1; then
31814         MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
31815
31816                         MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
31817     else
31818         MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31819         MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31820     fi
31821 else
31822         MACSETFILE="@true"
31823     MACRESWXCONFIG="@true"
31824
31825         if test "$wxUSE_PM" = 1; then
31826         MACRESCOMP="emxbind -ep"
31827     else
31828         MACRESCOMP="@true"
31829     fi
31830 fi
31831
31832
31833
31834 echo "$as_me:$LINENO: checking for mode_t" >&5
31835 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31836 if test "${ac_cv_type_mode_t+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 $ac_includes_default
31846 int
31847 main ()
31848 {
31849 if ((mode_t *) 0)
31850   return 0;
31851 if (sizeof (mode_t))
31852   return 0;
31853   ;
31854   return 0;
31855 }
31856 _ACEOF
31857 rm -f conftest.$ac_objext
31858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31859   (eval $ac_compile) 2>conftest.er1
31860   ac_status=$?
31861   grep -v '^ *+' conftest.er1 >conftest.err
31862   rm -f conftest.er1
31863   cat conftest.err >&5
31864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865   (exit $ac_status); } &&
31866          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31868   (eval $ac_try) 2>&5
31869   ac_status=$?
31870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871   (exit $ac_status); }; } &&
31872          { ac_try='test -s conftest.$ac_objext'
31873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31874   (eval $ac_try) 2>&5
31875   ac_status=$?
31876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877   (exit $ac_status); }; }; then
31878   ac_cv_type_mode_t=yes
31879 else
31880   echo "$as_me: failed program was:" >&5
31881 sed 's/^/| /' conftest.$ac_ext >&5
31882
31883 ac_cv_type_mode_t=no
31884 fi
31885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31886 fi
31887 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31888 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31889 if test $ac_cv_type_mode_t = yes; then
31890   :
31891 else
31892
31893 cat >>confdefs.h <<_ACEOF
31894 #define mode_t int
31895 _ACEOF
31896
31897 fi
31898
31899 echo "$as_me:$LINENO: checking for off_t" >&5
31900 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31901 if test "${ac_cv_type_off_t+set}" = set; then
31902   echo $ECHO_N "(cached) $ECHO_C" >&6
31903 else
31904   cat >conftest.$ac_ext <<_ACEOF
31905 /* confdefs.h.  */
31906 _ACEOF
31907 cat confdefs.h >>conftest.$ac_ext
31908 cat >>conftest.$ac_ext <<_ACEOF
31909 /* end confdefs.h.  */
31910 $ac_includes_default
31911 int
31912 main ()
31913 {
31914 if ((off_t *) 0)
31915   return 0;
31916 if (sizeof (off_t))
31917   return 0;
31918   ;
31919   return 0;
31920 }
31921 _ACEOF
31922 rm -f conftest.$ac_objext
31923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31924   (eval $ac_compile) 2>conftest.er1
31925   ac_status=$?
31926   grep -v '^ *+' conftest.er1 >conftest.err
31927   rm -f conftest.er1
31928   cat conftest.err >&5
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); } &&
31931          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31933   (eval $ac_try) 2>&5
31934   ac_status=$?
31935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936   (exit $ac_status); }; } &&
31937          { ac_try='test -s conftest.$ac_objext'
31938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31939   (eval $ac_try) 2>&5
31940   ac_status=$?
31941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942   (exit $ac_status); }; }; then
31943   ac_cv_type_off_t=yes
31944 else
31945   echo "$as_me: failed program was:" >&5
31946 sed 's/^/| /' conftest.$ac_ext >&5
31947
31948 ac_cv_type_off_t=no
31949 fi
31950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31951 fi
31952 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31953 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31954 if test $ac_cv_type_off_t = yes; then
31955   :
31956 else
31957
31958 cat >>confdefs.h <<_ACEOF
31959 #define off_t long
31960 _ACEOF
31961
31962 fi
31963
31964 echo "$as_me:$LINENO: checking for pid_t" >&5
31965 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31966 if test "${ac_cv_type_pid_t+set}" = set; then
31967   echo $ECHO_N "(cached) $ECHO_C" >&6
31968 else
31969   cat >conftest.$ac_ext <<_ACEOF
31970 /* confdefs.h.  */
31971 _ACEOF
31972 cat confdefs.h >>conftest.$ac_ext
31973 cat >>conftest.$ac_ext <<_ACEOF
31974 /* end confdefs.h.  */
31975 $ac_includes_default
31976 int
31977 main ()
31978 {
31979 if ((pid_t *) 0)
31980   return 0;
31981 if (sizeof (pid_t))
31982   return 0;
31983   ;
31984   return 0;
31985 }
31986 _ACEOF
31987 rm -f conftest.$ac_objext
31988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31989   (eval $ac_compile) 2>conftest.er1
31990   ac_status=$?
31991   grep -v '^ *+' conftest.er1 >conftest.err
31992   rm -f conftest.er1
31993   cat conftest.err >&5
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); } &&
31996          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31998   (eval $ac_try) 2>&5
31999   ac_status=$?
32000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001   (exit $ac_status); }; } &&
32002          { ac_try='test -s conftest.$ac_objext'
32003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32004   (eval $ac_try) 2>&5
32005   ac_status=$?
32006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007   (exit $ac_status); }; }; then
32008   ac_cv_type_pid_t=yes
32009 else
32010   echo "$as_me: failed program was:" >&5
32011 sed 's/^/| /' conftest.$ac_ext >&5
32012
32013 ac_cv_type_pid_t=no
32014 fi
32015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32016 fi
32017 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32018 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32019 if test $ac_cv_type_pid_t = yes; then
32020   :
32021 else
32022
32023 cat >>confdefs.h <<_ACEOF
32024 #define pid_t int
32025 _ACEOF
32026
32027 fi
32028
32029 echo "$as_me:$LINENO: checking for size_t" >&5
32030 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32031 if test "${ac_cv_type_size_t+set}" = set; then
32032   echo $ECHO_N "(cached) $ECHO_C" >&6
32033 else
32034   cat >conftest.$ac_ext <<_ACEOF
32035 /* confdefs.h.  */
32036 _ACEOF
32037 cat confdefs.h >>conftest.$ac_ext
32038 cat >>conftest.$ac_ext <<_ACEOF
32039 /* end confdefs.h.  */
32040 $ac_includes_default
32041 int
32042 main ()
32043 {
32044 if ((size_t *) 0)
32045   return 0;
32046 if (sizeof (size_t))
32047   return 0;
32048   ;
32049   return 0;
32050 }
32051 _ACEOF
32052 rm -f conftest.$ac_objext
32053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32054   (eval $ac_compile) 2>conftest.er1
32055   ac_status=$?
32056   grep -v '^ *+' conftest.er1 >conftest.err
32057   rm -f conftest.er1
32058   cat conftest.err >&5
32059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060   (exit $ac_status); } &&
32061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32063   (eval $ac_try) 2>&5
32064   ac_status=$?
32065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066   (exit $ac_status); }; } &&
32067          { ac_try='test -s conftest.$ac_objext'
32068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32069   (eval $ac_try) 2>&5
32070   ac_status=$?
32071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072   (exit $ac_status); }; }; then
32073   ac_cv_type_size_t=yes
32074 else
32075   echo "$as_me: failed program was:" >&5
32076 sed 's/^/| /' conftest.$ac_ext >&5
32077
32078 ac_cv_type_size_t=no
32079 fi
32080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32081 fi
32082 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32083 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32084 if test $ac_cv_type_size_t = yes; then
32085   :
32086 else
32087
32088 cat >>confdefs.h <<_ACEOF
32089 #define size_t unsigned
32090 _ACEOF
32091
32092 fi
32093
32094 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32095 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32096 if test "${ac_cv_type_uid_t+set}" = set; then
32097   echo $ECHO_N "(cached) $ECHO_C" >&6
32098 else
32099   cat >conftest.$ac_ext <<_ACEOF
32100 /* confdefs.h.  */
32101 _ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h.  */
32105 #include <sys/types.h>
32106
32107 _ACEOF
32108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32109   $EGREP "uid_t" >/dev/null 2>&1; then
32110   ac_cv_type_uid_t=yes
32111 else
32112   ac_cv_type_uid_t=no
32113 fi
32114 rm -f conftest*
32115
32116 fi
32117 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32118 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32119 if test $ac_cv_type_uid_t = no; then
32120
32121 cat >>confdefs.h <<\_ACEOF
32122 #define uid_t int
32123 _ACEOF
32124
32125
32126 cat >>confdefs.h <<\_ACEOF
32127 #define gid_t int
32128 _ACEOF
32129
32130 fi
32131
32132
32133 echo "$as_me:$LINENO: checking for ssize_t" >&5
32134 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32135 if test "${ac_cv_type_ssize_t+set}" = set; then
32136   echo $ECHO_N "(cached) $ECHO_C" >&6
32137 else
32138   cat >conftest.$ac_ext <<_ACEOF
32139 /* confdefs.h.  */
32140 _ACEOF
32141 cat confdefs.h >>conftest.$ac_ext
32142 cat >>conftest.$ac_ext <<_ACEOF
32143 /* end confdefs.h.  */
32144 $ac_includes_default
32145 int
32146 main ()
32147 {
32148 if ((ssize_t *) 0)
32149   return 0;
32150 if (sizeof (ssize_t))
32151   return 0;
32152   ;
32153   return 0;
32154 }
32155 _ACEOF
32156 rm -f conftest.$ac_objext
32157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32158   (eval $ac_compile) 2>conftest.er1
32159   ac_status=$?
32160   grep -v '^ *+' conftest.er1 >conftest.err
32161   rm -f conftest.er1
32162   cat conftest.err >&5
32163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164   (exit $ac_status); } &&
32165          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32167   (eval $ac_try) 2>&5
32168   ac_status=$?
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); }; } &&
32171          { ac_try='test -s conftest.$ac_objext'
32172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32173   (eval $ac_try) 2>&5
32174   ac_status=$?
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); }; }; then
32177   ac_cv_type_ssize_t=yes
32178 else
32179   echo "$as_me: failed program was:" >&5
32180 sed 's/^/| /' conftest.$ac_ext >&5
32181
32182 ac_cv_type_ssize_t=no
32183 fi
32184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32185 fi
32186 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32187 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32188 if test $ac_cv_type_ssize_t = yes; then
32189
32190 cat >>confdefs.h <<_ACEOF
32191 #define HAVE_SSIZE_T 1
32192 _ACEOF
32193
32194
32195 fi
32196
32197
32198
32199
32200 ac_ext=cc
32201 ac_cpp='$CXXCPP $CPPFLAGS'
32202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32205
32206 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32207 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32208 if test "${wx_cv_size_t_is_uint+set}" = set; then
32209   echo $ECHO_N "(cached) $ECHO_C" >&6
32210 else
32211
32212                             cat >conftest.$ac_ext <<_ACEOF
32213 /* confdefs.h.  */
32214 _ACEOF
32215 cat confdefs.h >>conftest.$ac_ext
32216 cat >>conftest.$ac_ext <<_ACEOF
32217 /* end confdefs.h.  */
32218 #include <stddef.h>
32219 int
32220 main ()
32221 {
32222
32223             return 0; }
32224
32225             struct Foo { void foo(size_t); void foo(unsigned int); };
32226
32227             int bar() {
32228
32229   ;
32230   return 0;
32231 }
32232 _ACEOF
32233 rm -f conftest.$ac_objext
32234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32235   (eval $ac_compile) 2>conftest.er1
32236   ac_status=$?
32237   grep -v '^ *+' conftest.er1 >conftest.err
32238   rm -f conftest.er1
32239   cat conftest.err >&5
32240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241   (exit $ac_status); } &&
32242          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32244   (eval $ac_try) 2>&5
32245   ac_status=$?
32246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247   (exit $ac_status); }; } &&
32248          { ac_try='test -s conftest.$ac_objext'
32249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32250   (eval $ac_try) 2>&5
32251   ac_status=$?
32252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32253   (exit $ac_status); }; }; then
32254   wx_cv_size_t_is_uint=no
32255 else
32256   echo "$as_me: failed program was:" >&5
32257 sed 's/^/| /' conftest.$ac_ext >&5
32258
32259 wx_cv_size_t_is_uint=yes
32260
32261 fi
32262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32263
32264
32265 fi
32266 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32267 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32268
32269 if test "$wx_cv_size_t_is_uint" = "yes"; then
32270     cat >>confdefs.h <<\_ACEOF
32271 #define wxSIZE_T_IS_UINT 1
32272 _ACEOF
32273
32274 else
32275     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32276 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32277 if test "${wx_cv_size_t_is_ulong+set}" = set; then
32278   echo $ECHO_N "(cached) $ECHO_C" >&6
32279 else
32280   cat >conftest.$ac_ext <<_ACEOF
32281 /* confdefs.h.  */
32282 _ACEOF
32283 cat confdefs.h >>conftest.$ac_ext
32284 cat >>conftest.$ac_ext <<_ACEOF
32285 /* end confdefs.h.  */
32286 #include <stddef.h>
32287 int
32288 main ()
32289 {
32290
32291                 return 0; }
32292
32293                 struct Foo { void foo(size_t); void foo(unsigned long); };
32294
32295                 int bar() {
32296
32297   ;
32298   return 0;
32299 }
32300 _ACEOF
32301 rm -f conftest.$ac_objext
32302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32303   (eval $ac_compile) 2>conftest.er1
32304   ac_status=$?
32305   grep -v '^ *+' conftest.er1 >conftest.err
32306   rm -f conftest.er1
32307   cat conftest.err >&5
32308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); } &&
32310          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32312   (eval $ac_try) 2>&5
32313   ac_status=$?
32314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315   (exit $ac_status); }; } &&
32316          { ac_try='test -s conftest.$ac_objext'
32317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318   (eval $ac_try) 2>&5
32319   ac_status=$?
32320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321   (exit $ac_status); }; }; then
32322   wx_cv_size_t_is_ulong=no
32323 else
32324   echo "$as_me: failed program was:" >&5
32325 sed 's/^/| /' conftest.$ac_ext >&5
32326
32327 wx_cv_size_t_is_ulong=yes
32328
32329 fi
32330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32331
32332 fi
32333 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32334 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32335
32336     if test "$wx_cv_size_t_is_ulong" = "yes"; then
32337         cat >>confdefs.h <<\_ACEOF
32338 #define wxSIZE_T_IS_ULONG 1
32339 _ACEOF
32340
32341     fi
32342 fi
32343
32344 ac_ext=c
32345 ac_cpp='$CPP $CPPFLAGS'
32346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32349
32350
32351
32352 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32353 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32354 if test "${wx_cv_struct_pw_gecos+set}" = set; then
32355   echo $ECHO_N "(cached) $ECHO_C" >&6
32356 else
32357
32358         cat >conftest.$ac_ext <<_ACEOF
32359 /* confdefs.h.  */
32360 _ACEOF
32361 cat confdefs.h >>conftest.$ac_ext
32362 cat >>conftest.$ac_ext <<_ACEOF
32363 /* end confdefs.h.  */
32364 #include <pwd.h>
32365 int
32366 main ()
32367 {
32368
32369                 char *p;
32370                 struct passwd *pw;
32371                 p = pw->pw_gecos;
32372
32373   ;
32374   return 0;
32375 }
32376 _ACEOF
32377 rm -f conftest.$ac_objext
32378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32379   (eval $ac_compile) 2>conftest.er1
32380   ac_status=$?
32381   grep -v '^ *+' conftest.er1 >conftest.err
32382   rm -f conftest.er1
32383   cat conftest.err >&5
32384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32385   (exit $ac_status); } &&
32386          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32388   (eval $ac_try) 2>&5
32389   ac_status=$?
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); }; } &&
32392          { ac_try='test -s conftest.$ac_objext'
32393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32394   (eval $ac_try) 2>&5
32395   ac_status=$?
32396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397   (exit $ac_status); }; }; then
32398
32399                 wx_cv_struct_pw_gecos=yes
32400
32401 else
32402   echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32404
32405
32406                 wx_cv_struct_pw_gecos=no
32407
32408
32409 fi
32410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32411
32412
32413 fi
32414 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32415 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32416
32417 if test "$wx_cv_struct_pw_gecos" = "yes"; then
32418     cat >>confdefs.h <<\_ACEOF
32419 #define HAVE_PW_GECOS 1
32420 _ACEOF
32421
32422 fi
32423
32424
32425 if test "$wxUSE_WCHAR_T" = "yes"; then
32426     cat >>confdefs.h <<\_ACEOF
32427 #define wxUSE_WCHAR_T 1
32428 _ACEOF
32429
32430
32431         WCSLEN_FOUND=0
32432     WCHAR_LINK=
32433
32434 for ac_func in wcslen
32435 do
32436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32437 echo "$as_me:$LINENO: checking for $ac_func" >&5
32438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32439 if eval "test \"\${$as_ac_var+set}\" = set"; then
32440   echo $ECHO_N "(cached) $ECHO_C" >&6
32441 else
32442   cat >conftest.$ac_ext <<_ACEOF
32443 /* confdefs.h.  */
32444 _ACEOF
32445 cat confdefs.h >>conftest.$ac_ext
32446 cat >>conftest.$ac_ext <<_ACEOF
32447 /* end confdefs.h.  */
32448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32450 #define $ac_func innocuous_$ac_func
32451
32452 /* System header to define __stub macros and hopefully few prototypes,
32453     which can conflict with char $ac_func (); below.
32454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32455     <limits.h> exists even on freestanding compilers.  */
32456
32457 #ifdef __STDC__
32458 # include <limits.h>
32459 #else
32460 # include <assert.h>
32461 #endif
32462
32463 #undef $ac_func
32464
32465 /* Override any gcc2 internal prototype to avoid an error.  */
32466 #ifdef __cplusplus
32467 extern "C"
32468 {
32469 #endif
32470 /* We use char because int might match the return type of a gcc2
32471    builtin and then its argument prototype would still apply.  */
32472 char $ac_func ();
32473 /* The GNU C library defines this for functions which it implements
32474     to always fail with ENOSYS.  Some functions are actually named
32475     something starting with __ and the normal name is an alias.  */
32476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32477 choke me
32478 #else
32479 char (*f) () = $ac_func;
32480 #endif
32481 #ifdef __cplusplus
32482 }
32483 #endif
32484
32485 int
32486 main ()
32487 {
32488 return f != $ac_func;
32489   ;
32490   return 0;
32491 }
32492 _ACEOF
32493 rm -f conftest.$ac_objext conftest$ac_exeext
32494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32495   (eval $ac_link) 2>conftest.er1
32496   ac_status=$?
32497   grep -v '^ *+' conftest.er1 >conftest.err
32498   rm -f conftest.er1
32499   cat conftest.err >&5
32500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501   (exit $ac_status); } &&
32502          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32504   (eval $ac_try) 2>&5
32505   ac_status=$?
32506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507   (exit $ac_status); }; } &&
32508          { ac_try='test -s conftest$ac_exeext'
32509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32510   (eval $ac_try) 2>&5
32511   ac_status=$?
32512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513   (exit $ac_status); }; }; then
32514   eval "$as_ac_var=yes"
32515 else
32516   echo "$as_me: failed program was:" >&5
32517 sed 's/^/| /' conftest.$ac_ext >&5
32518
32519 eval "$as_ac_var=no"
32520 fi
32521 rm -f conftest.err conftest.$ac_objext \
32522       conftest$ac_exeext conftest.$ac_ext
32523 fi
32524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32526 if test `eval echo '${'$as_ac_var'}'` = yes; then
32527   cat >>confdefs.h <<_ACEOF
32528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32529 _ACEOF
32530  WCSLEN_FOUND=1
32531 fi
32532 done
32533
32534
32535     if test "$WCSLEN_FOUND" = 0; then
32536         if test "$TOOLKIT" = "MSW"; then
32537             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32538 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32539 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32540   echo $ECHO_N "(cached) $ECHO_C" >&6
32541 else
32542   ac_check_lib_save_LIBS=$LIBS
32543 LIBS="-lmsvcrt  $LIBS"
32544 cat >conftest.$ac_ext <<_ACEOF
32545 /* confdefs.h.  */
32546 _ACEOF
32547 cat confdefs.h >>conftest.$ac_ext
32548 cat >>conftest.$ac_ext <<_ACEOF
32549 /* end confdefs.h.  */
32550
32551 /* Override any gcc2 internal prototype to avoid an error.  */
32552 #ifdef __cplusplus
32553 extern "C"
32554 #endif
32555 /* We use char because int might match the return type of a gcc2
32556    builtin and then its argument prototype would still apply.  */
32557 char wcslen ();
32558 int
32559 main ()
32560 {
32561 wcslen ();
32562   ;
32563   return 0;
32564 }
32565 _ACEOF
32566 rm -f conftest.$ac_objext conftest$ac_exeext
32567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32568   (eval $ac_link) 2>conftest.er1
32569   ac_status=$?
32570   grep -v '^ *+' conftest.er1 >conftest.err
32571   rm -f conftest.er1
32572   cat conftest.err >&5
32573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574   (exit $ac_status); } &&
32575          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32577   (eval $ac_try) 2>&5
32578   ac_status=$?
32579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580   (exit $ac_status); }; } &&
32581          { ac_try='test -s conftest$ac_exeext'
32582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32583   (eval $ac_try) 2>&5
32584   ac_status=$?
32585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586   (exit $ac_status); }; }; then
32587   ac_cv_lib_msvcrt_wcslen=yes
32588 else
32589   echo "$as_me: failed program was:" >&5
32590 sed 's/^/| /' conftest.$ac_ext >&5
32591
32592 ac_cv_lib_msvcrt_wcslen=no
32593 fi
32594 rm -f conftest.err conftest.$ac_objext \
32595       conftest$ac_exeext conftest.$ac_ext
32596 LIBS=$ac_check_lib_save_LIBS
32597 fi
32598 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32599 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32600 if test $ac_cv_lib_msvcrt_wcslen = yes; then
32601   WCHAR_OK=1
32602 fi
32603
32604         else
32605             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32606 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32607 if test "${ac_cv_lib_w_wcslen+set}" = set; then
32608   echo $ECHO_N "(cached) $ECHO_C" >&6
32609 else
32610   ac_check_lib_save_LIBS=$LIBS
32611 LIBS="-lw  $LIBS"
32612 cat >conftest.$ac_ext <<_ACEOF
32613 /* confdefs.h.  */
32614 _ACEOF
32615 cat confdefs.h >>conftest.$ac_ext
32616 cat >>conftest.$ac_ext <<_ACEOF
32617 /* end confdefs.h.  */
32618
32619 /* Override any gcc2 internal prototype to avoid an error.  */
32620 #ifdef __cplusplus
32621 extern "C"
32622 #endif
32623 /* We use char because int might match the return type of a gcc2
32624    builtin and then its argument prototype would still apply.  */
32625 char wcslen ();
32626 int
32627 main ()
32628 {
32629 wcslen ();
32630   ;
32631   return 0;
32632 }
32633 _ACEOF
32634 rm -f conftest.$ac_objext conftest$ac_exeext
32635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32636   (eval $ac_link) 2>conftest.er1
32637   ac_status=$?
32638   grep -v '^ *+' conftest.er1 >conftest.err
32639   rm -f conftest.er1
32640   cat conftest.err >&5
32641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642   (exit $ac_status); } &&
32643          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645   (eval $ac_try) 2>&5
32646   ac_status=$?
32647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648   (exit $ac_status); }; } &&
32649          { ac_try='test -s conftest$ac_exeext'
32650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651   (eval $ac_try) 2>&5
32652   ac_status=$?
32653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654   (exit $ac_status); }; }; then
32655   ac_cv_lib_w_wcslen=yes
32656 else
32657   echo "$as_me: failed program was:" >&5
32658 sed 's/^/| /' conftest.$ac_ext >&5
32659
32660 ac_cv_lib_w_wcslen=no
32661 fi
32662 rm -f conftest.err conftest.$ac_objext \
32663       conftest$ac_exeext conftest.$ac_ext
32664 LIBS=$ac_check_lib_save_LIBS
32665 fi
32666 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32667 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32668 if test $ac_cv_lib_w_wcslen = yes; then
32669
32670                             WCHAR_LINK=" -lw"
32671                             WCSLEN_FOUND=1
32672
32673 fi
32674
32675         fi
32676     fi
32677
32678     if test "$WCSLEN_FOUND" = 1; then
32679         cat >>confdefs.h <<\_ACEOF
32680 #define HAVE_WCSLEN 1
32681 _ACEOF
32682
32683     fi
32684
32685                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
32686         CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32687     fi
32688
32689                 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32690 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32691 if test "${ac_cv_type_mbstate_t+set}" = set; then
32692   echo $ECHO_N "(cached) $ECHO_C" >&6
32693 else
32694   cat >conftest.$ac_ext <<_ACEOF
32695 /* confdefs.h.  */
32696 _ACEOF
32697 cat confdefs.h >>conftest.$ac_ext
32698 cat >>conftest.$ac_ext <<_ACEOF
32699 /* end confdefs.h.  */
32700 #include <wchar.h>
32701
32702 int
32703 main ()
32704 {
32705 if ((mbstate_t *) 0)
32706   return 0;
32707 if (sizeof (mbstate_t))
32708   return 0;
32709   ;
32710   return 0;
32711 }
32712 _ACEOF
32713 rm -f conftest.$ac_objext
32714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32715   (eval $ac_compile) 2>conftest.er1
32716   ac_status=$?
32717   grep -v '^ *+' conftest.er1 >conftest.err
32718   rm -f conftest.er1
32719   cat conftest.err >&5
32720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721   (exit $ac_status); } &&
32722          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32724   (eval $ac_try) 2>&5
32725   ac_status=$?
32726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727   (exit $ac_status); }; } &&
32728          { ac_try='test -s conftest.$ac_objext'
32729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32730   (eval $ac_try) 2>&5
32731   ac_status=$?
32732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733   (exit $ac_status); }; }; then
32734   ac_cv_type_mbstate_t=yes
32735 else
32736   echo "$as_me: failed program was:" >&5
32737 sed 's/^/| /' conftest.$ac_ext >&5
32738
32739 ac_cv_type_mbstate_t=no
32740 fi
32741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32742 fi
32743 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32744 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32745 if test $ac_cv_type_mbstate_t = yes; then
32746
32747 cat >>confdefs.h <<_ACEOF
32748 #define HAVE_MBSTATE_T 1
32749 _ACEOF
32750
32751
32752 for ac_func in wcsrtombs
32753 do
32754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32755 echo "$as_me:$LINENO: checking for $ac_func" >&5
32756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32757 if eval "test \"\${$as_ac_var+set}\" = set"; then
32758   echo $ECHO_N "(cached) $ECHO_C" >&6
32759 else
32760   cat >conftest.$ac_ext <<_ACEOF
32761 /* confdefs.h.  */
32762 _ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h.  */
32766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32768 #define $ac_func innocuous_$ac_func
32769
32770 /* System header to define __stub macros and hopefully few prototypes,
32771     which can conflict with char $ac_func (); below.
32772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32773     <limits.h> exists even on freestanding compilers.  */
32774
32775 #ifdef __STDC__
32776 # include <limits.h>
32777 #else
32778 # include <assert.h>
32779 #endif
32780
32781 #undef $ac_func
32782
32783 /* Override any gcc2 internal prototype to avoid an error.  */
32784 #ifdef __cplusplus
32785 extern "C"
32786 {
32787 #endif
32788 /* We use char because int might match the return type of a gcc2
32789    builtin and then its argument prototype would still apply.  */
32790 char $ac_func ();
32791 /* The GNU C library defines this for functions which it implements
32792     to always fail with ENOSYS.  Some functions are actually named
32793     something starting with __ and the normal name is an alias.  */
32794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32795 choke me
32796 #else
32797 char (*f) () = $ac_func;
32798 #endif
32799 #ifdef __cplusplus
32800 }
32801 #endif
32802
32803 int
32804 main ()
32805 {
32806 return f != $ac_func;
32807   ;
32808   return 0;
32809 }
32810 _ACEOF
32811 rm -f conftest.$ac_objext conftest$ac_exeext
32812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32813   (eval $ac_link) 2>conftest.er1
32814   ac_status=$?
32815   grep -v '^ *+' conftest.er1 >conftest.err
32816   rm -f conftest.er1
32817   cat conftest.err >&5
32818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819   (exit $ac_status); } &&
32820          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32822   (eval $ac_try) 2>&5
32823   ac_status=$?
32824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825   (exit $ac_status); }; } &&
32826          { ac_try='test -s conftest$ac_exeext'
32827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32828   (eval $ac_try) 2>&5
32829   ac_status=$?
32830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831   (exit $ac_status); }; }; then
32832   eval "$as_ac_var=yes"
32833 else
32834   echo "$as_me: failed program was:" >&5
32835 sed 's/^/| /' conftest.$ac_ext >&5
32836
32837 eval "$as_ac_var=no"
32838 fi
32839 rm -f conftest.err conftest.$ac_objext \
32840       conftest$ac_exeext conftest.$ac_ext
32841 fi
32842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32844 if test `eval echo '${'$as_ac_var'}'` = yes; then
32845   cat >>confdefs.h <<_ACEOF
32846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32847 _ACEOF
32848
32849 fi
32850 done
32851
32852 fi
32853
32854 else
32855     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32856 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32857 fi
32858
32859
32860
32861 ac_ext=cc
32862 ac_cpp='$CXXCPP $CPPFLAGS'
32863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32866
32867
32868
32869
32870 for ac_func in snprintf vsnprintf
32871 do
32872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32873 echo "$as_me:$LINENO: checking for $ac_func" >&5
32874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32875 if eval "test \"\${$as_ac_var+set}\" = set"; then
32876   echo $ECHO_N "(cached) $ECHO_C" >&6
32877 else
32878   cat >conftest.$ac_ext <<_ACEOF
32879 /* confdefs.h.  */
32880 _ACEOF
32881 cat confdefs.h >>conftest.$ac_ext
32882 cat >>conftest.$ac_ext <<_ACEOF
32883 /* end confdefs.h.  */
32884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32886 #define $ac_func innocuous_$ac_func
32887
32888 /* System header to define __stub macros and hopefully few prototypes,
32889     which can conflict with char $ac_func (); below.
32890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32891     <limits.h> exists even on freestanding compilers.  */
32892
32893 #ifdef __STDC__
32894 # include <limits.h>
32895 #else
32896 # include <assert.h>
32897 #endif
32898
32899 #undef $ac_func
32900
32901 /* Override any gcc2 internal prototype to avoid an error.  */
32902 #ifdef __cplusplus
32903 extern "C"
32904 {
32905 #endif
32906 /* We use char because int might match the return type of a gcc2
32907    builtin and then its argument prototype would still apply.  */
32908 char $ac_func ();
32909 /* The GNU C library defines this for functions which it implements
32910     to always fail with ENOSYS.  Some functions are actually named
32911     something starting with __ and the normal name is an alias.  */
32912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32913 choke me
32914 #else
32915 char (*f) () = $ac_func;
32916 #endif
32917 #ifdef __cplusplus
32918 }
32919 #endif
32920
32921 int
32922 main ()
32923 {
32924 return f != $ac_func;
32925   ;
32926   return 0;
32927 }
32928 _ACEOF
32929 rm -f conftest.$ac_objext conftest$ac_exeext
32930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32931   (eval $ac_link) 2>conftest.er1
32932   ac_status=$?
32933   grep -v '^ *+' conftest.er1 >conftest.err
32934   rm -f conftest.er1
32935   cat conftest.err >&5
32936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32937   (exit $ac_status); } &&
32938          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32940   (eval $ac_try) 2>&5
32941   ac_status=$?
32942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943   (exit $ac_status); }; } &&
32944          { ac_try='test -s conftest$ac_exeext'
32945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32946   (eval $ac_try) 2>&5
32947   ac_status=$?
32948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949   (exit $ac_status); }; }; then
32950   eval "$as_ac_var=yes"
32951 else
32952   echo "$as_me: failed program was:" >&5
32953 sed 's/^/| /' conftest.$ac_ext >&5
32954
32955 eval "$as_ac_var=no"
32956 fi
32957 rm -f conftest.err conftest.$ac_objext \
32958       conftest$ac_exeext conftest.$ac_ext
32959 fi
32960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32962 if test `eval echo '${'$as_ac_var'}'` = yes; then
32963   cat >>confdefs.h <<_ACEOF
32964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32965 _ACEOF
32966
32967 fi
32968 done
32969
32970
32971 if test "$ac_cv_func_vsnprintf" = "yes"; then
32972         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32973 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32974 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32975   echo $ECHO_N "(cached) $ECHO_C" >&6
32976 else
32977
32978                                                             cat >conftest.$ac_ext <<_ACEOF
32979 /* confdefs.h.  */
32980 _ACEOF
32981 cat confdefs.h >>conftest.$ac_ext
32982 cat >>conftest.$ac_ext <<_ACEOF
32983 /* end confdefs.h.  */
32984
32985                     #include <stdio.h>
32986                     #include <stdarg.h>
32987                     #ifdef __MSL__
32988                     #if __MSL__ >= 0x6000
32989                     namespace std {}
32990                     using namespace std;
32991                     #endif
32992                     #endif
32993
32994 int
32995 main ()
32996 {
32997
32998                     char *buf;
32999                     va_list ap;
33000                     vsnprintf(buf, 10u, "%s", ap);
33001
33002   ;
33003   return 0;
33004 }
33005 _ACEOF
33006 rm -f conftest.$ac_objext
33007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33008   (eval $ac_compile) 2>conftest.er1
33009   ac_status=$?
33010   grep -v '^ *+' conftest.er1 >conftest.err
33011   rm -f conftest.er1
33012   cat conftest.err >&5
33013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014   (exit $ac_status); } &&
33015          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33017   (eval $ac_try) 2>&5
33018   ac_status=$?
33019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020   (exit $ac_status); }; } &&
33021          { ac_try='test -s conftest.$ac_objext'
33022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33023   (eval $ac_try) 2>&5
33024   ac_status=$?
33025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026   (exit $ac_status); }; }; then
33027   wx_cv_func_vsnprintf_decl=yes
33028 else
33029   echo "$as_me: failed program was:" >&5
33030 sed 's/^/| /' conftest.$ac_ext >&5
33031
33032 wx_cv_func_vsnprintf_decl=no
33033
33034 fi
33035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33036
33037
33038 fi
33039 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33040 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33041
33042     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33043         cat >>confdefs.h <<\_ACEOF
33044 #define HAVE_VSNPRINTF_DECL 1
33045 _ACEOF
33046
33047
33048                         echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33049 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33050 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33051   echo $ECHO_N "(cached) $ECHO_C" >&6
33052 else
33053
33054                 cat >conftest.$ac_ext <<_ACEOF
33055 /* confdefs.h.  */
33056 _ACEOF
33057 cat confdefs.h >>conftest.$ac_ext
33058 cat >>conftest.$ac_ext <<_ACEOF
33059 /* end confdefs.h.  */
33060
33061                         #include <stdio.h>
33062                         #include <stdarg.h>
33063                         #ifdef __MSL__
33064                         #if __MSL__ >= 0x6000
33065                         namespace std {}
33066                         using namespace std;
33067                         #endif
33068                         #endif
33069
33070 int
33071 main ()
33072 {
33073
33074                         char *buf;
33075                         va_list ap;
33076                         const char *fmt = "%s";
33077                         vsnprintf(buf, 10u, fmt, ap);
33078
33079   ;
33080   return 0;
33081 }
33082 _ACEOF
33083 rm -f conftest.$ac_objext
33084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33085   (eval $ac_compile) 2>conftest.er1
33086   ac_status=$?
33087   grep -v '^ *+' conftest.er1 >conftest.err
33088   rm -f conftest.er1
33089   cat conftest.err >&5
33090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091   (exit $ac_status); } &&
33092          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33094   (eval $ac_try) 2>&5
33095   ac_status=$?
33096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097   (exit $ac_status); }; } &&
33098          { ac_try='test -s conftest.$ac_objext'
33099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33100   (eval $ac_try) 2>&5
33101   ac_status=$?
33102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103   (exit $ac_status); }; }; then
33104   wx_cv_func_broken_vsnprintf_decl=no
33105 else
33106   echo "$as_me: failed program was:" >&5
33107 sed 's/^/| /' conftest.$ac_ext >&5
33108
33109 wx_cv_func_broken_vsnprintf_decl=yes
33110
33111 fi
33112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33113
33114
33115 fi
33116 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33117 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33118
33119         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33120             cat >>confdefs.h <<\_ACEOF
33121 #define HAVE_BROKEN_VSNPRINTF_DECL 1
33122 _ACEOF
33123
33124         fi
33125     fi
33126 fi
33127
33128 if test "$ac_cv_func_snprintf" = "yes"; then
33129     echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33130 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33131 if test "${wx_cv_func_snprintf_decl+set}" = set; then
33132   echo $ECHO_N "(cached) $ECHO_C" >&6
33133 else
33134
33135             cat >conftest.$ac_ext <<_ACEOF
33136 /* confdefs.h.  */
33137 _ACEOF
33138 cat confdefs.h >>conftest.$ac_ext
33139 cat >>conftest.$ac_ext <<_ACEOF
33140 /* end confdefs.h.  */
33141
33142                     #include <stdio.h>
33143                     #include <stdarg.h>
33144                     #ifdef __MSL__
33145                     #if __MSL__ >= 0x6000
33146                     namespace std {}
33147                     using namespace std;
33148                     #endif
33149                     #endif
33150
33151 int
33152 main ()
33153 {
33154
33155                     char *buf;
33156                     snprintf(buf, 10u, "%s", "wx");
33157
33158   ;
33159   return 0;
33160 }
33161 _ACEOF
33162 rm -f conftest.$ac_objext
33163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33164   (eval $ac_compile) 2>conftest.er1
33165   ac_status=$?
33166   grep -v '^ *+' conftest.er1 >conftest.err
33167   rm -f conftest.er1
33168   cat conftest.err >&5
33169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170   (exit $ac_status); } &&
33171          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33173   (eval $ac_try) 2>&5
33174   ac_status=$?
33175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176   (exit $ac_status); }; } &&
33177          { ac_try='test -s conftest.$ac_objext'
33178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33179   (eval $ac_try) 2>&5
33180   ac_status=$?
33181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182   (exit $ac_status); }; }; then
33183   wx_cv_func_snprintf_decl=yes
33184 else
33185   echo "$as_me: failed program was:" >&5
33186 sed 's/^/| /' conftest.$ac_ext >&5
33187
33188 wx_cv_func_snprintf_decl=no
33189
33190 fi
33191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33192
33193
33194 fi
33195 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33196 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33197
33198     if test "$wx_cv_func_snprintf_decl" = "yes"; then
33199         cat >>confdefs.h <<\_ACEOF
33200 #define HAVE_SNPRINTF_DECL 1
33201 _ACEOF
33202
33203
33204                         echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33205 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33206 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33207   echo $ECHO_N "(cached) $ECHO_C" >&6
33208 else
33209
33210                 cat >conftest.$ac_ext <<_ACEOF
33211 /* confdefs.h.  */
33212 _ACEOF
33213 cat confdefs.h >>conftest.$ac_ext
33214 cat >>conftest.$ac_ext <<_ACEOF
33215 /* end confdefs.h.  */
33216
33217                         #include <stdio.h>
33218                         #include <stdarg.h>
33219                         #ifdef __MSL__
33220                         #if __MSL__ >= 0x6000
33221                         namespace std {}
33222                         using namespace std;
33223                         #endif
33224                         #endif
33225
33226 int
33227 main ()
33228 {
33229
33230                         char *buf;
33231                         const char *fmt = "%s";
33232                         snprintf(buf, 10u, fmt, "wx");
33233
33234   ;
33235   return 0;
33236 }
33237 _ACEOF
33238 rm -f conftest.$ac_objext
33239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33240   (eval $ac_compile) 2>conftest.er1
33241   ac_status=$?
33242   grep -v '^ *+' conftest.er1 >conftest.err
33243   rm -f conftest.er1
33244   cat conftest.err >&5
33245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246   (exit $ac_status); } &&
33247          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249   (eval $ac_try) 2>&5
33250   ac_status=$?
33251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252   (exit $ac_status); }; } &&
33253          { ac_try='test -s conftest.$ac_objext'
33254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33255   (eval $ac_try) 2>&5
33256   ac_status=$?
33257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258   (exit $ac_status); }; }; then
33259   wx_cv_func_broken_snprintf_decl=no
33260 else
33261   echo "$as_me: failed program was:" >&5
33262 sed 's/^/| /' conftest.$ac_ext >&5
33263
33264 wx_cv_func_broken_snprintf_decl=yes
33265
33266 fi
33267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33268
33269
33270 fi
33271 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33272 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33273
33274         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33275             cat >>confdefs.h <<\_ACEOF
33276 #define HAVE_BROKEN_SNPRINTF_DECL 1
33277 _ACEOF
33278
33279         fi
33280     fi
33281 fi
33282
33283 if test "$wxUSE_UNICODE" = yes; then
33284
33285
33286
33287
33288
33289
33290 for ac_func in wputc wputchar putws fputws wprintf vswprintf
33291 do
33292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33293 echo "$as_me:$LINENO: checking for $ac_func" >&5
33294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33295 if eval "test \"\${$as_ac_var+set}\" = set"; then
33296   echo $ECHO_N "(cached) $ECHO_C" >&6
33297 else
33298   cat >conftest.$ac_ext <<_ACEOF
33299 /* confdefs.h.  */
33300 _ACEOF
33301 cat confdefs.h >>conftest.$ac_ext
33302 cat >>conftest.$ac_ext <<_ACEOF
33303 /* end confdefs.h.  */
33304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33306 #define $ac_func innocuous_$ac_func
33307
33308 /* System header to define __stub macros and hopefully few prototypes,
33309     which can conflict with char $ac_func (); below.
33310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33311     <limits.h> exists even on freestanding compilers.  */
33312
33313 #ifdef __STDC__
33314 # include <limits.h>
33315 #else
33316 # include <assert.h>
33317 #endif
33318
33319 #undef $ac_func
33320
33321 /* Override any gcc2 internal prototype to avoid an error.  */
33322 #ifdef __cplusplus
33323 extern "C"
33324 {
33325 #endif
33326 /* We use char because int might match the return type of a gcc2
33327    builtin and then its argument prototype would still apply.  */
33328 char $ac_func ();
33329 /* The GNU C library defines this for functions which it implements
33330     to always fail with ENOSYS.  Some functions are actually named
33331     something starting with __ and the normal name is an alias.  */
33332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33333 choke me
33334 #else
33335 char (*f) () = $ac_func;
33336 #endif
33337 #ifdef __cplusplus
33338 }
33339 #endif
33340
33341 int
33342 main ()
33343 {
33344 return f != $ac_func;
33345   ;
33346   return 0;
33347 }
33348 _ACEOF
33349 rm -f conftest.$ac_objext conftest$ac_exeext
33350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33351   (eval $ac_link) 2>conftest.er1
33352   ac_status=$?
33353   grep -v '^ *+' conftest.er1 >conftest.err
33354   rm -f conftest.er1
33355   cat conftest.err >&5
33356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357   (exit $ac_status); } &&
33358          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33360   (eval $ac_try) 2>&5
33361   ac_status=$?
33362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363   (exit $ac_status); }; } &&
33364          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
33370   eval "$as_ac_var=yes"
33371 else
33372   echo "$as_me: failed program was:" >&5
33373 sed 's/^/| /' conftest.$ac_ext >&5
33374
33375 eval "$as_ac_var=no"
33376 fi
33377 rm -f conftest.err conftest.$ac_objext \
33378       conftest$ac_exeext conftest.$ac_ext
33379 fi
33380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33382 if test `eval echo '${'$as_ac_var'}'` = yes; then
33383   cat >>confdefs.h <<_ACEOF
33384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33385 _ACEOF
33386
33387 fi
33388 done
33389
33390
33391                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33392 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33393     cat >conftest.$ac_ext <<_ACEOF
33394 /* confdefs.h.  */
33395 _ACEOF
33396 cat confdefs.h >>conftest.$ac_ext
33397 cat >>conftest.$ac_ext <<_ACEOF
33398 /* end confdefs.h.  */
33399 #include <wchar.h>
33400 int
33401 main ()
33402 {
33403 &_vsnwprintf;
33404   ;
33405   return 0;
33406 }
33407 _ACEOF
33408 rm -f conftest.$ac_objext
33409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33410   (eval $ac_compile) 2>conftest.er1
33411   ac_status=$?
33412   grep -v '^ *+' conftest.er1 >conftest.err
33413   rm -f conftest.er1
33414   cat conftest.err >&5
33415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416   (exit $ac_status); } &&
33417          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33419   (eval $ac_try) 2>&5
33420   ac_status=$?
33421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422   (exit $ac_status); }; } &&
33423          { ac_try='test -s conftest.$ac_objext'
33424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33425   (eval $ac_try) 2>&5
33426   ac_status=$?
33427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428   (exit $ac_status); }; }; then
33429   echo "$as_me:$LINENO: result: yes" >&5
33430 echo "${ECHO_T}yes" >&6
33431                     cat >>confdefs.h <<\_ACEOF
33432 #define HAVE__VSNWPRINTF 1
33433 _ACEOF
33434
33435 else
33436   echo "$as_me: failed program was:" >&5
33437 sed 's/^/| /' conftest.$ac_ext >&5
33438
33439 echo "$as_me:$LINENO: result: no" >&5
33440 echo "${ECHO_T}no" >&6
33441 fi
33442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
33443 fi
33444
33445 ac_ext=c
33446 ac_cpp='$CPP $CPPFLAGS'
33447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33450
33451
33452 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33453
33454 for ac_func in fnmatch
33455 do
33456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33457 echo "$as_me:$LINENO: checking for $ac_func" >&5
33458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33459 if eval "test \"\${$as_ac_var+set}\" = set"; then
33460   echo $ECHO_N "(cached) $ECHO_C" >&6
33461 else
33462   cat >conftest.$ac_ext <<_ACEOF
33463 /* confdefs.h.  */
33464 _ACEOF
33465 cat confdefs.h >>conftest.$ac_ext
33466 cat >>conftest.$ac_ext <<_ACEOF
33467 /* end confdefs.h.  */
33468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33470 #define $ac_func innocuous_$ac_func
33471
33472 /* System header to define __stub macros and hopefully few prototypes,
33473     which can conflict with char $ac_func (); below.
33474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33475     <limits.h> exists even on freestanding compilers.  */
33476
33477 #ifdef __STDC__
33478 # include <limits.h>
33479 #else
33480 # include <assert.h>
33481 #endif
33482
33483 #undef $ac_func
33484
33485 /* Override any gcc2 internal prototype to avoid an error.  */
33486 #ifdef __cplusplus
33487 extern "C"
33488 {
33489 #endif
33490 /* We use char because int might match the return type of a gcc2
33491    builtin and then its argument prototype would still apply.  */
33492 char $ac_func ();
33493 /* The GNU C library defines this for functions which it implements
33494     to always fail with ENOSYS.  Some functions are actually named
33495     something starting with __ and the normal name is an alias.  */
33496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33497 choke me
33498 #else
33499 char (*f) () = $ac_func;
33500 #endif
33501 #ifdef __cplusplus
33502 }
33503 #endif
33504
33505 int
33506 main ()
33507 {
33508 return f != $ac_func;
33509   ;
33510   return 0;
33511 }
33512 _ACEOF
33513 rm -f conftest.$ac_objext conftest$ac_exeext
33514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33515   (eval $ac_link) 2>conftest.er1
33516   ac_status=$?
33517   grep -v '^ *+' conftest.er1 >conftest.err
33518   rm -f conftest.er1
33519   cat conftest.err >&5
33520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521   (exit $ac_status); } &&
33522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33524   (eval $ac_try) 2>&5
33525   ac_status=$?
33526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527   (exit $ac_status); }; } &&
33528          { ac_try='test -s conftest$ac_exeext'
33529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33530   (eval $ac_try) 2>&5
33531   ac_status=$?
33532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533   (exit $ac_status); }; }; then
33534   eval "$as_ac_var=yes"
33535 else
33536   echo "$as_me: failed program was:" >&5
33537 sed 's/^/| /' conftest.$ac_ext >&5
33538
33539 eval "$as_ac_var=no"
33540 fi
33541 rm -f conftest.err conftest.$ac_objext \
33542       conftest$ac_exeext conftest.$ac_ext
33543 fi
33544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33546 if test `eval echo '${'$as_ac_var'}'` = yes; then
33547   cat >>confdefs.h <<_ACEOF
33548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33549 _ACEOF
33550
33551 fi
33552 done
33553
33554 fi
33555
33556 if test "$wxUSE_FILE" = "yes"; then
33557
33558 for ac_func in fsync
33559 do
33560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33561 echo "$as_me:$LINENO: checking for $ac_func" >&5
33562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33563 if eval "test \"\${$as_ac_var+set}\" = set"; then
33564   echo $ECHO_N "(cached) $ECHO_C" >&6
33565 else
33566   cat >conftest.$ac_ext <<_ACEOF
33567 /* confdefs.h.  */
33568 _ACEOF
33569 cat confdefs.h >>conftest.$ac_ext
33570 cat >>conftest.$ac_ext <<_ACEOF
33571 /* end confdefs.h.  */
33572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33574 #define $ac_func innocuous_$ac_func
33575
33576 /* System header to define __stub macros and hopefully few prototypes,
33577     which can conflict with char $ac_func (); below.
33578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33579     <limits.h> exists even on freestanding compilers.  */
33580
33581 #ifdef __STDC__
33582 # include <limits.h>
33583 #else
33584 # include <assert.h>
33585 #endif
33586
33587 #undef $ac_func
33588
33589 /* Override any gcc2 internal prototype to avoid an error.  */
33590 #ifdef __cplusplus
33591 extern "C"
33592 {
33593 #endif
33594 /* We use char because int might match the return type of a gcc2
33595    builtin and then its argument prototype would still apply.  */
33596 char $ac_func ();
33597 /* The GNU C library defines this for functions which it implements
33598     to always fail with ENOSYS.  Some functions are actually named
33599     something starting with __ and the normal name is an alias.  */
33600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33601 choke me
33602 #else
33603 char (*f) () = $ac_func;
33604 #endif
33605 #ifdef __cplusplus
33606 }
33607 #endif
33608
33609 int
33610 main ()
33611 {
33612 return f != $ac_func;
33613   ;
33614   return 0;
33615 }
33616 _ACEOF
33617 rm -f conftest.$ac_objext conftest$ac_exeext
33618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33619   (eval $ac_link) 2>conftest.er1
33620   ac_status=$?
33621   grep -v '^ *+' conftest.er1 >conftest.err
33622   rm -f conftest.er1
33623   cat conftest.err >&5
33624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625   (exit $ac_status); } &&
33626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33628   (eval $ac_try) 2>&5
33629   ac_status=$?
33630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631   (exit $ac_status); }; } &&
33632          { ac_try='test -s conftest$ac_exeext'
33633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33634   (eval $ac_try) 2>&5
33635   ac_status=$?
33636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33637   (exit $ac_status); }; }; then
33638   eval "$as_ac_var=yes"
33639 else
33640   echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33642
33643 eval "$as_ac_var=no"
33644 fi
33645 rm -f conftest.err conftest.$ac_objext \
33646       conftest$ac_exeext conftest.$ac_ext
33647 fi
33648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33650 if test `eval echo '${'$as_ac_var'}'` = yes; then
33651   cat >>confdefs.h <<_ACEOF
33652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33653 _ACEOF
33654
33655 fi
33656 done
33657
33658 fi
33659
33660
33661 if test "$TOOLKIT" != "MSW"; then
33662
33663
33664
33665
33666 ac_ext=cc
33667 ac_cpp='$CXXCPP $CPPFLAGS'
33668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33671
33672
33673
33674
33675 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33676 if test "${with_libiconv_prefix+set}" = set; then
33677   withval="$with_libiconv_prefix"
33678
33679     for dir in `echo "$withval" | tr : ' '`; do
33680       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33681       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33682     done
33683
33684 fi;
33685
33686   echo "$as_me:$LINENO: checking for iconv" >&5
33687 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33688 if test "${am_cv_func_iconv+set}" = set; then
33689   echo $ECHO_N "(cached) $ECHO_C" >&6
33690 else
33691
33692     am_cv_func_iconv="no, consider installing GNU libiconv"
33693     am_cv_lib_iconv=no
33694     cat >conftest.$ac_ext <<_ACEOF
33695 /* confdefs.h.  */
33696 _ACEOF
33697 cat confdefs.h >>conftest.$ac_ext
33698 cat >>conftest.$ac_ext <<_ACEOF
33699 /* end confdefs.h.  */
33700 #include <stdlib.h>
33701 #include <iconv.h>
33702 int
33703 main ()
33704 {
33705 iconv_t cd = iconv_open("","");
33706        iconv(cd,NULL,NULL,NULL,NULL);
33707        iconv_close(cd);
33708   ;
33709   return 0;
33710 }
33711 _ACEOF
33712 rm -f conftest.$ac_objext conftest$ac_exeext
33713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33714   (eval $ac_link) 2>conftest.er1
33715   ac_status=$?
33716   grep -v '^ *+' conftest.er1 >conftest.err
33717   rm -f conftest.er1
33718   cat conftest.err >&5
33719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720   (exit $ac_status); } &&
33721          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723   (eval $ac_try) 2>&5
33724   ac_status=$?
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); }; } &&
33727          { ac_try='test -s conftest$ac_exeext'
33728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33729   (eval $ac_try) 2>&5
33730   ac_status=$?
33731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33732   (exit $ac_status); }; }; then
33733   am_cv_func_iconv=yes
33734 else
33735   echo "$as_me: failed program was:" >&5
33736 sed 's/^/| /' conftest.$ac_ext >&5
33737
33738 fi
33739 rm -f conftest.err conftest.$ac_objext \
33740       conftest$ac_exeext conftest.$ac_ext
33741     if test "$am_cv_func_iconv" != yes; then
33742       am_save_LIBS="$LIBS"
33743       LIBS="$LIBS -liconv"
33744       cat >conftest.$ac_ext <<_ACEOF
33745 /* confdefs.h.  */
33746 _ACEOF
33747 cat confdefs.h >>conftest.$ac_ext
33748 cat >>conftest.$ac_ext <<_ACEOF
33749 /* end confdefs.h.  */
33750 #include <stdlib.h>
33751 #include <iconv.h>
33752 int
33753 main ()
33754 {
33755 iconv_t cd = iconv_open("","");
33756          iconv(cd,NULL,NULL,NULL,NULL);
33757          iconv_close(cd);
33758   ;
33759   return 0;
33760 }
33761 _ACEOF
33762 rm -f conftest.$ac_objext conftest$ac_exeext
33763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33764   (eval $ac_link) 2>conftest.er1
33765   ac_status=$?
33766   grep -v '^ *+' conftest.er1 >conftest.err
33767   rm -f conftest.er1
33768   cat conftest.err >&5
33769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770   (exit $ac_status); } &&
33771          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33773   (eval $ac_try) 2>&5
33774   ac_status=$?
33775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776   (exit $ac_status); }; } &&
33777          { ac_try='test -s conftest$ac_exeext'
33778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33779   (eval $ac_try) 2>&5
33780   ac_status=$?
33781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782   (exit $ac_status); }; }; then
33783   am_cv_lib_iconv=yes
33784         am_cv_func_iconv=yes
33785 else
33786   echo "$as_me: failed program was:" >&5
33787 sed 's/^/| /' conftest.$ac_ext >&5
33788
33789 fi
33790 rm -f conftest.err conftest.$ac_objext \
33791       conftest$ac_exeext conftest.$ac_ext
33792       LIBS="$am_save_LIBS"
33793     fi
33794
33795 fi
33796 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33797 echo "${ECHO_T}$am_cv_func_iconv" >&6
33798   if test "$am_cv_func_iconv" = yes; then
33799
33800 cat >>confdefs.h <<\_ACEOF
33801 #define HAVE_ICONV 1
33802 _ACEOF
33803
33804     echo "$as_me:$LINENO: checking if iconv needs const" >&5
33805 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33806 if test "${wx_cv_func_iconv_const+set}" = set; then
33807   echo $ECHO_N "(cached) $ECHO_C" >&6
33808 else
33809   cat >conftest.$ac_ext <<_ACEOF
33810 /* confdefs.h.  */
33811 _ACEOF
33812 cat confdefs.h >>conftest.$ac_ext
33813 cat >>conftest.$ac_ext <<_ACEOF
33814 /* end confdefs.h.  */
33815
33816 #include <stdlib.h>
33817 #include <iconv.h>
33818 extern
33819 #ifdef __cplusplus
33820 "C"
33821 #endif
33822 #if defined(__STDC__) || defined(__cplusplus)
33823 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33824 #else
33825 size_t iconv();
33826 #endif
33827
33828 int
33829 main ()
33830 {
33831
33832   ;
33833   return 0;
33834 }
33835 _ACEOF
33836 rm -f conftest.$ac_objext
33837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33838   (eval $ac_compile) 2>conftest.er1
33839   ac_status=$?
33840   grep -v '^ *+' conftest.er1 >conftest.err
33841   rm -f conftest.er1
33842   cat conftest.err >&5
33843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844   (exit $ac_status); } &&
33845          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33847   (eval $ac_try) 2>&5
33848   ac_status=$?
33849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850   (exit $ac_status); }; } &&
33851          { ac_try='test -s conftest.$ac_objext'
33852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33853   (eval $ac_try) 2>&5
33854   ac_status=$?
33855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856   (exit $ac_status); }; }; then
33857   wx_cv_func_iconv_const="no"
33858 else
33859   echo "$as_me: failed program was:" >&5
33860 sed 's/^/| /' conftest.$ac_ext >&5
33861
33862 wx_cv_func_iconv_const="yes"
33863
33864 fi
33865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33866
33867 fi
33868 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33869 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33870
33871     iconv_const=
33872     if test "x$wx_cv_func_iconv_const" = "xyes"; then
33873         iconv_const="const"
33874     fi
33875
33876
33877 cat >>confdefs.h <<_ACEOF
33878 #define ICONV_CONST $iconv_const
33879 _ACEOF
33880
33881   fi
33882   LIBICONV=
33883   if test "$am_cv_lib_iconv" = yes; then
33884     LIBICONV="-liconv"
33885   fi
33886
33887
33888 LIBS="$LIBICONV $LIBS"
33889 ac_ext=c
33890 ac_cpp='$CPP $CPPFLAGS'
33891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33894
33895
33896 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33897
33898 for ac_func in sigaction
33899 do
33900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33901 echo "$as_me:$LINENO: checking for $ac_func" >&5
33902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33903 if eval "test \"\${$as_ac_var+set}\" = set"; then
33904   echo $ECHO_N "(cached) $ECHO_C" >&6
33905 else
33906   cat >conftest.$ac_ext <<_ACEOF
33907 /* confdefs.h.  */
33908 _ACEOF
33909 cat confdefs.h >>conftest.$ac_ext
33910 cat >>conftest.$ac_ext <<_ACEOF
33911 /* end confdefs.h.  */
33912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33914 #define $ac_func innocuous_$ac_func
33915
33916 /* System header to define __stub macros and hopefully few prototypes,
33917     which can conflict with char $ac_func (); below.
33918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33919     <limits.h> exists even on freestanding compilers.  */
33920
33921 #ifdef __STDC__
33922 # include <limits.h>
33923 #else
33924 # include <assert.h>
33925 #endif
33926
33927 #undef $ac_func
33928
33929 /* Override any gcc2 internal prototype to avoid an error.  */
33930 #ifdef __cplusplus
33931 extern "C"
33932 {
33933 #endif
33934 /* We use char because int might match the return type of a gcc2
33935    builtin and then its argument prototype would still apply.  */
33936 char $ac_func ();
33937 /* The GNU C library defines this for functions which it implements
33938     to always fail with ENOSYS.  Some functions are actually named
33939     something starting with __ and the normal name is an alias.  */
33940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33941 choke me
33942 #else
33943 char (*f) () = $ac_func;
33944 #endif
33945 #ifdef __cplusplus
33946 }
33947 #endif
33948
33949 int
33950 main ()
33951 {
33952 return f != $ac_func;
33953   ;
33954   return 0;
33955 }
33956 _ACEOF
33957 rm -f conftest.$ac_objext conftest$ac_exeext
33958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33959   (eval $ac_link) 2>conftest.er1
33960   ac_status=$?
33961   grep -v '^ *+' conftest.er1 >conftest.err
33962   rm -f conftest.er1
33963   cat conftest.err >&5
33964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965   (exit $ac_status); } &&
33966          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968   (eval $ac_try) 2>&5
33969   ac_status=$?
33970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971   (exit $ac_status); }; } &&
33972          { ac_try='test -s conftest$ac_exeext'
33973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33974   (eval $ac_try) 2>&5
33975   ac_status=$?
33976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977   (exit $ac_status); }; }; then
33978   eval "$as_ac_var=yes"
33979 else
33980   echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33982
33983 eval "$as_ac_var=no"
33984 fi
33985 rm -f conftest.err conftest.$ac_objext \
33986       conftest$ac_exeext conftest.$ac_ext
33987 fi
33988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33990 if test `eval echo '${'$as_ac_var'}'` = yes; then
33991   cat >>confdefs.h <<_ACEOF
33992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33993 _ACEOF
33994
33995 fi
33996 done
33997
33998
33999     if test "$ac_cv_func_sigaction" = "no"; then
34000         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34001 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34002         wxUSE_ON_FATAL_EXCEPTION=no
34003     fi
34004
34005     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34006
34007
34008       ac_ext=cc
34009 ac_cpp='$CXXCPP $CPPFLAGS'
34010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34013
34014
34015       echo "$as_me:$LINENO: checking for sa_handler type" >&5
34016 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34017 if test "${wx_cv_type_sa_handler+set}" = set; then
34018   echo $ECHO_N "(cached) $ECHO_C" >&6
34019 else
34020
34021         cat >conftest.$ac_ext <<_ACEOF
34022 /* confdefs.h.  */
34023 _ACEOF
34024 cat confdefs.h >>conftest.$ac_ext
34025 cat >>conftest.$ac_ext <<_ACEOF
34026 /* end confdefs.h.  */
34027 #include <signal.h>
34028 int
34029 main ()
34030 {
34031
34032                         extern void testSigHandler(int);
34033
34034                         struct sigaction sa;
34035                         sa.sa_handler = testSigHandler;
34036
34037   ;
34038   return 0;
34039 }
34040 _ACEOF
34041 rm -f conftest.$ac_objext
34042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34043   (eval $ac_compile) 2>conftest.er1
34044   ac_status=$?
34045   grep -v '^ *+' conftest.er1 >conftest.err
34046   rm -f conftest.er1
34047   cat conftest.err >&5
34048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049   (exit $ac_status); } &&
34050          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34052   (eval $ac_try) 2>&5
34053   ac_status=$?
34054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055   (exit $ac_status); }; } &&
34056          { ac_try='test -s conftest.$ac_objext'
34057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34058   (eval $ac_try) 2>&5
34059   ac_status=$?
34060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061   (exit $ac_status); }; }; then
34062
34063                         wx_cv_type_sa_handler=int
34064
34065 else
34066   echo "$as_me: failed program was:" >&5
34067 sed 's/^/| /' conftest.$ac_ext >&5
34068
34069
34070                         wx_cv_type_sa_handler=void
34071
34072 fi
34073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34074
34075 fi
34076 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34077 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34078
34079       ac_ext=c
34080 ac_cpp='$CPP $CPPFLAGS'
34081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34084
34085
34086       cat >>confdefs.h <<_ACEOF
34087 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34088 _ACEOF
34089
34090     fi
34091 fi
34092
34093 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34094
34095
34096     ac_ext=cc
34097 ac_cpp='$CXXCPP $CPPFLAGS'
34098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34101
34102
34103     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34104 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34105 if test "${wx_cv_func_backtrace+set}" = set; then
34106   echo $ECHO_N "(cached) $ECHO_C" >&6
34107 else
34108
34109             cat >conftest.$ac_ext <<_ACEOF
34110 /* confdefs.h.  */
34111 _ACEOF
34112 cat confdefs.h >>conftest.$ac_ext
34113 cat >>conftest.$ac_ext <<_ACEOF
34114 /* end confdefs.h.  */
34115 #include <execinfo.h>
34116 int
34117 main ()
34118 {
34119
34120                     void *trace[1];
34121                     char **messages;
34122
34123                     backtrace(trace, 1);
34124                     messages = backtrace_symbols(trace, 1);
34125
34126   ;
34127   return 0;
34128 }
34129 _ACEOF
34130 rm -f conftest.$ac_objext
34131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34132   (eval $ac_compile) 2>conftest.er1
34133   ac_status=$?
34134   grep -v '^ *+' conftest.er1 >conftest.err
34135   rm -f conftest.er1
34136   cat conftest.err >&5
34137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138   (exit $ac_status); } &&
34139          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34141   (eval $ac_try) 2>&5
34142   ac_status=$?
34143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144   (exit $ac_status); }; } &&
34145          { ac_try='test -s conftest.$ac_objext'
34146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34147   (eval $ac_try) 2>&5
34148   ac_status=$?
34149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150   (exit $ac_status); }; }; then
34151   wx_cv_func_backtrace=yes
34152 else
34153   echo "$as_me: failed program was:" >&5
34154 sed 's/^/| /' conftest.$ac_ext >&5
34155
34156 wx_cv_func_backtrace=no
34157
34158 fi
34159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34160
34161
34162 fi
34163 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34164 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34165
34166
34167     if test "$wx_cv_func_backtrace" = "no"; then
34168         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34169 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34170         wxUSE_STACKWALKER=no
34171     else
34172         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34173 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34174 if test "${wx_cv_func_cxa_demangle+set}" = set; then
34175   echo $ECHO_N "(cached) $ECHO_C" >&6
34176 else
34177
34178                 cat >conftest.$ac_ext <<_ACEOF
34179 /* confdefs.h.  */
34180 _ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h.  */
34184 #include <cxxabi.h>
34185 int
34186 main ()
34187 {
34188
34189                         int rc;
34190                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34191
34192   ;
34193   return 0;
34194 }
34195 _ACEOF
34196 rm -f conftest.$ac_objext conftest$ac_exeext
34197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34198   (eval $ac_link) 2>conftest.er1
34199   ac_status=$?
34200   grep -v '^ *+' conftest.er1 >conftest.err
34201   rm -f conftest.er1
34202   cat conftest.err >&5
34203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204   (exit $ac_status); } &&
34205          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34207   (eval $ac_try) 2>&5
34208   ac_status=$?
34209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210   (exit $ac_status); }; } &&
34211          { ac_try='test -s conftest$ac_exeext'
34212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34213   (eval $ac_try) 2>&5
34214   ac_status=$?
34215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216   (exit $ac_status); }; }; then
34217   wx_cv_func_cxa_demangle=yes
34218 else
34219   echo "$as_me: failed program was:" >&5
34220 sed 's/^/| /' conftest.$ac_ext >&5
34221
34222 wx_cv_func_cxa_demangle=no
34223
34224 fi
34225 rm -f conftest.err conftest.$ac_objext \
34226       conftest$ac_exeext conftest.$ac_ext
34227
34228
34229 fi
34230 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34231 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34232
34233         if test "$wx_cv_func_cxa_demangle" = "yes"; then
34234             cat >>confdefs.h <<\_ACEOF
34235 #define HAVE_CXA_DEMANGLE 1
34236 _ACEOF
34237
34238         fi
34239     fi
34240
34241     ac_ext=c
34242 ac_cpp='$CPP $CPPFLAGS'
34243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34246
34247 fi
34248
34249 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34250     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34251 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34252     wxUSE_STACKWALKER=no
34253 fi
34254
34255
34256
34257
34258 for ac_func in mkstemp mktemp
34259 do
34260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34261 echo "$as_me:$LINENO: checking for $ac_func" >&5
34262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34263 if eval "test \"\${$as_ac_var+set}\" = set"; then
34264   echo $ECHO_N "(cached) $ECHO_C" >&6
34265 else
34266   cat >conftest.$ac_ext <<_ACEOF
34267 /* confdefs.h.  */
34268 _ACEOF
34269 cat confdefs.h >>conftest.$ac_ext
34270 cat >>conftest.$ac_ext <<_ACEOF
34271 /* end confdefs.h.  */
34272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34274 #define $ac_func innocuous_$ac_func
34275
34276 /* System header to define __stub macros and hopefully few prototypes,
34277     which can conflict with char $ac_func (); below.
34278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34279     <limits.h> exists even on freestanding compilers.  */
34280
34281 #ifdef __STDC__
34282 # include <limits.h>
34283 #else
34284 # include <assert.h>
34285 #endif
34286
34287 #undef $ac_func
34288
34289 /* Override any gcc2 internal prototype to avoid an error.  */
34290 #ifdef __cplusplus
34291 extern "C"
34292 {
34293 #endif
34294 /* We use char because int might match the return type of a gcc2
34295    builtin and then its argument prototype would still apply.  */
34296 char $ac_func ();
34297 /* The GNU C library defines this for functions which it implements
34298     to always fail with ENOSYS.  Some functions are actually named
34299     something starting with __ and the normal name is an alias.  */
34300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34301 choke me
34302 #else
34303 char (*f) () = $ac_func;
34304 #endif
34305 #ifdef __cplusplus
34306 }
34307 #endif
34308
34309 int
34310 main ()
34311 {
34312 return f != $ac_func;
34313   ;
34314   return 0;
34315 }
34316 _ACEOF
34317 rm -f conftest.$ac_objext conftest$ac_exeext
34318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34319   (eval $ac_link) 2>conftest.er1
34320   ac_status=$?
34321   grep -v '^ *+' conftest.er1 >conftest.err
34322   rm -f conftest.er1
34323   cat conftest.err >&5
34324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325   (exit $ac_status); } &&
34326          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328   (eval $ac_try) 2>&5
34329   ac_status=$?
34330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331   (exit $ac_status); }; } &&
34332          { ac_try='test -s conftest$ac_exeext'
34333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334   (eval $ac_try) 2>&5
34335   ac_status=$?
34336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337   (exit $ac_status); }; }; then
34338   eval "$as_ac_var=yes"
34339 else
34340   echo "$as_me: failed program was:" >&5
34341 sed 's/^/| /' conftest.$ac_ext >&5
34342
34343 eval "$as_ac_var=no"
34344 fi
34345 rm -f conftest.err conftest.$ac_objext \
34346       conftest$ac_exeext conftest.$ac_ext
34347 fi
34348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34350 if test `eval echo '${'$as_ac_var'}'` = yes; then
34351   cat >>confdefs.h <<_ACEOF
34352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34353 _ACEOF
34354  break
34355 fi
34356 done
34357
34358
34359 echo "$as_me:$LINENO: checking for statfs" >&5
34360 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34361 if test "${wx_cv_func_statfs+set}" = set; then
34362   echo $ECHO_N "(cached) $ECHO_C" >&6
34363 else
34364   cat >conftest.$ac_ext <<_ACEOF
34365 /* confdefs.h.  */
34366 _ACEOF
34367 cat confdefs.h >>conftest.$ac_ext
34368 cat >>conftest.$ac_ext <<_ACEOF
34369 /* end confdefs.h.  */
34370
34371              #if defined(__BSD__)
34372              #include <sys/param.h>
34373              #include <sys/mount.h>
34374              #else
34375              #include <sys/vfs.h>
34376              #endif
34377
34378 int
34379 main ()
34380 {
34381
34382              long l;
34383              struct statfs fs;
34384              statfs("/", &fs);
34385              l = fs.f_bsize;
34386              l += fs.f_blocks;
34387              l += fs.f_bavail;
34388
34389   ;
34390   return 0;
34391 }
34392 _ACEOF
34393 rm -f conftest.$ac_objext
34394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34395   (eval $ac_compile) 2>conftest.er1
34396   ac_status=$?
34397   grep -v '^ *+' conftest.er1 >conftest.err
34398   rm -f conftest.er1
34399   cat conftest.err >&5
34400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401   (exit $ac_status); } &&
34402          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34404   (eval $ac_try) 2>&5
34405   ac_status=$?
34406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407   (exit $ac_status); }; } &&
34408          { ac_try='test -s conftest.$ac_objext'
34409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34410   (eval $ac_try) 2>&5
34411   ac_status=$?
34412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413   (exit $ac_status); }; }; then
34414   wx_cv_func_statfs=yes
34415 else
34416   echo "$as_me: failed program was:" >&5
34417 sed 's/^/| /' conftest.$ac_ext >&5
34418
34419 wx_cv_func_statfs=no
34420
34421 fi
34422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34423
34424 fi
34425 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34426 echo "${ECHO_T}$wx_cv_func_statfs" >&6
34427
34428 if test "$wx_cv_func_statfs" = "yes"; then
34429
34430
34431     ac_ext=cc
34432 ac_cpp='$CXXCPP $CPPFLAGS'
34433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34436
34437     echo "$as_me:$LINENO: checking for statfs declaration" >&5
34438 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34439 if test "${wx_cv_func_statfs_decl+set}" = set; then
34440   echo $ECHO_N "(cached) $ECHO_C" >&6
34441 else
34442   cat >conftest.$ac_ext <<_ACEOF
34443 /* confdefs.h.  */
34444 _ACEOF
34445 cat confdefs.h >>conftest.$ac_ext
34446 cat >>conftest.$ac_ext <<_ACEOF
34447 /* end confdefs.h.  */
34448
34449                  #if defined(__BSD__)
34450                  #include <sys/param.h>
34451                  #include <sys/mount.h>
34452                  #else
34453                  #include <sys/vfs.h>
34454                  #endif
34455
34456 int
34457 main ()
34458 {
34459
34460                 struct statfs fs;
34461                 statfs("", &fs);
34462
34463   ;
34464   return 0;
34465 }
34466 _ACEOF
34467 rm -f conftest.$ac_objext
34468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34469   (eval $ac_compile) 2>conftest.er1
34470   ac_status=$?
34471   grep -v '^ *+' conftest.er1 >conftest.err
34472   rm -f conftest.er1
34473   cat conftest.err >&5
34474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475   (exit $ac_status); } &&
34476          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34478   (eval $ac_try) 2>&5
34479   ac_status=$?
34480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481   (exit $ac_status); }; } &&
34482          { ac_try='test -s conftest.$ac_objext'
34483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34484   (eval $ac_try) 2>&5
34485   ac_status=$?
34486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487   (exit $ac_status); }; }; then
34488   wx_cv_func_statfs_decl=yes
34489 else
34490   echo "$as_me: failed program was:" >&5
34491 sed 's/^/| /' conftest.$ac_ext >&5
34492
34493 wx_cv_func_statfs_decl=no
34494
34495 fi
34496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34497
34498 fi
34499 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34500 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34501     ac_ext=c
34502 ac_cpp='$CPP $CPPFLAGS'
34503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34506
34507
34508     if test "$wx_cv_func_statfs_decl" = "yes"; then
34509         cat >>confdefs.h <<\_ACEOF
34510 #define HAVE_STATFS_DECL 1
34511 _ACEOF
34512
34513     fi
34514
34515     wx_cv_type_statvfs_t="struct statfs"
34516     cat >>confdefs.h <<\_ACEOF
34517 #define HAVE_STATFS 1
34518 _ACEOF
34519
34520 else
34521     echo "$as_me:$LINENO: checking for statvfs" >&5
34522 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34523 if test "${wx_cv_func_statvfs+set}" = set; then
34524   echo $ECHO_N "(cached) $ECHO_C" >&6
34525 else
34526   cat >conftest.$ac_ext <<_ACEOF
34527 /* confdefs.h.  */
34528 _ACEOF
34529 cat confdefs.h >>conftest.$ac_ext
34530 cat >>conftest.$ac_ext <<_ACEOF
34531 /* end confdefs.h.  */
34532
34533                 #include <stddef.h>
34534                 #include <sys/statvfs.h>
34535
34536 int
34537 main ()
34538 {
34539
34540                 statvfs("/", NULL);
34541
34542   ;
34543   return 0;
34544 }
34545 _ACEOF
34546 rm -f conftest.$ac_objext
34547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34548   (eval $ac_compile) 2>conftest.er1
34549   ac_status=$?
34550   grep -v '^ *+' conftest.er1 >conftest.err
34551   rm -f conftest.er1
34552   cat conftest.err >&5
34553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554   (exit $ac_status); } &&
34555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34557   (eval $ac_try) 2>&5
34558   ac_status=$?
34559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560   (exit $ac_status); }; } &&
34561          { ac_try='test -s conftest.$ac_objext'
34562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34563   (eval $ac_try) 2>&5
34564   ac_status=$?
34565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566   (exit $ac_status); }; }; then
34567   wx_cv_func_statvfs=yes
34568 else
34569   echo "$as_me: failed program was:" >&5
34570 sed 's/^/| /' conftest.$ac_ext >&5
34571
34572 wx_cv_func_statvfs=no
34573
34574 fi
34575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34576
34577 fi
34578 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34579 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34580
34581     if test "$wx_cv_func_statvfs" = "yes"; then
34582
34583
34584         ac_ext=cc
34585 ac_cpp='$CXXCPP $CPPFLAGS'
34586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34589
34590
34591         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34592 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34593 if test "${wx_cv_type_statvfs_t+set}" = set; then
34594   echo $ECHO_N "(cached) $ECHO_C" >&6
34595 else
34596   cat >conftest.$ac_ext <<_ACEOF
34597 /* confdefs.h.  */
34598 _ACEOF
34599 cat confdefs.h >>conftest.$ac_ext
34600 cat >>conftest.$ac_ext <<_ACEOF
34601 /* end confdefs.h.  */
34602
34603                     #include <sys/statvfs.h>
34604
34605 int
34606 main ()
34607 {
34608
34609                     long l;
34610                     statvfs_t fs;
34611                     statvfs("/", &fs);
34612                     l = fs.f_bsize;
34613                     l += fs.f_blocks;
34614                     l += fs.f_bavail;
34615
34616   ;
34617   return 0;
34618 }
34619 _ACEOF
34620 rm -f conftest.$ac_objext
34621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34622   (eval $ac_compile) 2>conftest.er1
34623   ac_status=$?
34624   grep -v '^ *+' conftest.er1 >conftest.err
34625   rm -f conftest.er1
34626   cat conftest.err >&5
34627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628   (exit $ac_status); } &&
34629          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34631   (eval $ac_try) 2>&5
34632   ac_status=$?
34633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634   (exit $ac_status); }; } &&
34635          { ac_try='test -s conftest.$ac_objext'
34636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34637   (eval $ac_try) 2>&5
34638   ac_status=$?
34639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640   (exit $ac_status); }; }; then
34641   wx_cv_type_statvfs_t=statvfs_t
34642 else
34643   echo "$as_me: failed program was:" >&5
34644 sed 's/^/| /' conftest.$ac_ext >&5
34645
34646
34647                     cat >conftest.$ac_ext <<_ACEOF
34648 /* confdefs.h.  */
34649 _ACEOF
34650 cat confdefs.h >>conftest.$ac_ext
34651 cat >>conftest.$ac_ext <<_ACEOF
34652 /* end confdefs.h.  */
34653
34654                             #include <sys/statvfs.h>
34655
34656 int
34657 main ()
34658 {
34659
34660                             long l;
34661                             struct statvfs fs;
34662                             statvfs("/", &fs);
34663                             l = fs.f_bsize;
34664                             l += fs.f_blocks;
34665                             l += fs.f_bavail;
34666
34667   ;
34668   return 0;
34669 }
34670 _ACEOF
34671 rm -f conftest.$ac_objext
34672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34673   (eval $ac_compile) 2>conftest.er1
34674   ac_status=$?
34675   grep -v '^ *+' conftest.er1 >conftest.err
34676   rm -f conftest.er1
34677   cat conftest.err >&5
34678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679   (exit $ac_status); } &&
34680          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
34686          { ac_try='test -s conftest.$ac_objext'
34687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34688   (eval $ac_try) 2>&5
34689   ac_status=$?
34690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691   (exit $ac_status); }; }; then
34692   wx_cv_type_statvfs_t="struct statvfs"
34693 else
34694   echo "$as_me: failed program was:" >&5
34695 sed 's/^/| /' conftest.$ac_ext >&5
34696
34697 wx_cv_type_statvfs_t="unknown"
34698
34699 fi
34700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34701
34702
34703 fi
34704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34705
34706 fi
34707 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34708 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34709
34710         ac_ext=c
34711 ac_cpp='$CPP $CPPFLAGS'
34712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34715
34716
34717         if test "$wx_cv_type_statvfs_t" != "unknown"; then
34718             cat >>confdefs.h <<\_ACEOF
34719 #define HAVE_STATVFS 1
34720 _ACEOF
34721
34722         fi
34723     else
34724                 wx_cv_type_statvfs_t="unknown"
34725     fi
34726 fi
34727
34728 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34729     cat >>confdefs.h <<_ACEOF
34730 #define WX_STATFS_T $wx_cv_type_statvfs_t
34731 _ACEOF
34732
34733 else
34734     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34735 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34736 fi
34737
34738 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34739
34740
34741 for ac_func in fcntl flock
34742 do
34743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34744 echo "$as_me:$LINENO: checking for $ac_func" >&5
34745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34746 if eval "test \"\${$as_ac_var+set}\" = set"; then
34747   echo $ECHO_N "(cached) $ECHO_C" >&6
34748 else
34749   cat >conftest.$ac_ext <<_ACEOF
34750 /* confdefs.h.  */
34751 _ACEOF
34752 cat confdefs.h >>conftest.$ac_ext
34753 cat >>conftest.$ac_ext <<_ACEOF
34754 /* end confdefs.h.  */
34755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34757 #define $ac_func innocuous_$ac_func
34758
34759 /* System header to define __stub macros and hopefully few prototypes,
34760     which can conflict with char $ac_func (); below.
34761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34762     <limits.h> exists even on freestanding compilers.  */
34763
34764 #ifdef __STDC__
34765 # include <limits.h>
34766 #else
34767 # include <assert.h>
34768 #endif
34769
34770 #undef $ac_func
34771
34772 /* Override any gcc2 internal prototype to avoid an error.  */
34773 #ifdef __cplusplus
34774 extern "C"
34775 {
34776 #endif
34777 /* We use char because int might match the return type of a gcc2
34778    builtin and then its argument prototype would still apply.  */
34779 char $ac_func ();
34780 /* The GNU C library defines this for functions which it implements
34781     to always fail with ENOSYS.  Some functions are actually named
34782     something starting with __ and the normal name is an alias.  */
34783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34784 choke me
34785 #else
34786 char (*f) () = $ac_func;
34787 #endif
34788 #ifdef __cplusplus
34789 }
34790 #endif
34791
34792 int
34793 main ()
34794 {
34795 return f != $ac_func;
34796   ;
34797   return 0;
34798 }
34799 _ACEOF
34800 rm -f conftest.$ac_objext conftest$ac_exeext
34801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34802   (eval $ac_link) 2>conftest.er1
34803   ac_status=$?
34804   grep -v '^ *+' conftest.er1 >conftest.err
34805   rm -f conftest.er1
34806   cat conftest.err >&5
34807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808   (exit $ac_status); } &&
34809          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34811   (eval $ac_try) 2>&5
34812   ac_status=$?
34813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814   (exit $ac_status); }; } &&
34815          { ac_try='test -s conftest$ac_exeext'
34816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34817   (eval $ac_try) 2>&5
34818   ac_status=$?
34819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820   (exit $ac_status); }; }; then
34821   eval "$as_ac_var=yes"
34822 else
34823   echo "$as_me: failed program was:" >&5
34824 sed 's/^/| /' conftest.$ac_ext >&5
34825
34826 eval "$as_ac_var=no"
34827 fi
34828 rm -f conftest.err conftest.$ac_objext \
34829       conftest$ac_exeext conftest.$ac_ext
34830 fi
34831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34833 if test `eval echo '${'$as_ac_var'}'` = yes; then
34834   cat >>confdefs.h <<_ACEOF
34835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34836 _ACEOF
34837  break
34838 fi
34839 done
34840
34841
34842     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34843         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34844 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34845         wxUSE_SNGLINST_CHECKER=no
34846     fi
34847 fi
34848
34849
34850 for ac_func in timegm
34851 do
34852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34853 echo "$as_me:$LINENO: checking for $ac_func" >&5
34854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34855 if eval "test \"\${$as_ac_var+set}\" = set"; then
34856   echo $ECHO_N "(cached) $ECHO_C" >&6
34857 else
34858   cat >conftest.$ac_ext <<_ACEOF
34859 /* confdefs.h.  */
34860 _ACEOF
34861 cat confdefs.h >>conftest.$ac_ext
34862 cat >>conftest.$ac_ext <<_ACEOF
34863 /* end confdefs.h.  */
34864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34866 #define $ac_func innocuous_$ac_func
34867
34868 /* System header to define __stub macros and hopefully few prototypes,
34869     which can conflict with char $ac_func (); below.
34870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34871     <limits.h> exists even on freestanding compilers.  */
34872
34873 #ifdef __STDC__
34874 # include <limits.h>
34875 #else
34876 # include <assert.h>
34877 #endif
34878
34879 #undef $ac_func
34880
34881 /* Override any gcc2 internal prototype to avoid an error.  */
34882 #ifdef __cplusplus
34883 extern "C"
34884 {
34885 #endif
34886 /* We use char because int might match the return type of a gcc2
34887    builtin and then its argument prototype would still apply.  */
34888 char $ac_func ();
34889 /* The GNU C library defines this for functions which it implements
34890     to always fail with ENOSYS.  Some functions are actually named
34891     something starting with __ and the normal name is an alias.  */
34892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34893 choke me
34894 #else
34895 char (*f) () = $ac_func;
34896 #endif
34897 #ifdef __cplusplus
34898 }
34899 #endif
34900
34901 int
34902 main ()
34903 {
34904 return f != $ac_func;
34905   ;
34906   return 0;
34907 }
34908 _ACEOF
34909 rm -f conftest.$ac_objext conftest$ac_exeext
34910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34911   (eval $ac_link) 2>conftest.er1
34912   ac_status=$?
34913   grep -v '^ *+' conftest.er1 >conftest.err
34914   rm -f conftest.er1
34915   cat conftest.err >&5
34916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917   (exit $ac_status); } &&
34918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34920   (eval $ac_try) 2>&5
34921   ac_status=$?
34922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923   (exit $ac_status); }; } &&
34924          { ac_try='test -s conftest$ac_exeext'
34925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34926   (eval $ac_try) 2>&5
34927   ac_status=$?
34928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929   (exit $ac_status); }; }; then
34930   eval "$as_ac_var=yes"
34931 else
34932   echo "$as_me: failed program was:" >&5
34933 sed 's/^/| /' conftest.$ac_ext >&5
34934
34935 eval "$as_ac_var=no"
34936 fi
34937 rm -f conftest.err conftest.$ac_objext \
34938       conftest$ac_exeext conftest.$ac_ext
34939 fi
34940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34942 if test `eval echo '${'$as_ac_var'}'` = yes; then
34943   cat >>confdefs.h <<_ACEOF
34944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34945 _ACEOF
34946
34947 fi
34948 done
34949
34950
34951
34952
34953 for ac_func in putenv setenv
34954 do
34955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34956 echo "$as_me:$LINENO: checking for $ac_func" >&5
34957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34958 if eval "test \"\${$as_ac_var+set}\" = set"; then
34959   echo $ECHO_N "(cached) $ECHO_C" >&6
34960 else
34961   cat >conftest.$ac_ext <<_ACEOF
34962 /* confdefs.h.  */
34963 _ACEOF
34964 cat confdefs.h >>conftest.$ac_ext
34965 cat >>conftest.$ac_ext <<_ACEOF
34966 /* end confdefs.h.  */
34967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34969 #define $ac_func innocuous_$ac_func
34970
34971 /* System header to define __stub macros and hopefully few prototypes,
34972     which can conflict with char $ac_func (); below.
34973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34974     <limits.h> exists even on freestanding compilers.  */
34975
34976 #ifdef __STDC__
34977 # include <limits.h>
34978 #else
34979 # include <assert.h>
34980 #endif
34981
34982 #undef $ac_func
34983
34984 /* Override any gcc2 internal prototype to avoid an error.  */
34985 #ifdef __cplusplus
34986 extern "C"
34987 {
34988 #endif
34989 /* We use char because int might match the return type of a gcc2
34990    builtin and then its argument prototype would still apply.  */
34991 char $ac_func ();
34992 /* The GNU C library defines this for functions which it implements
34993     to always fail with ENOSYS.  Some functions are actually named
34994     something starting with __ and the normal name is an alias.  */
34995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34996 choke me
34997 #else
34998 char (*f) () = $ac_func;
34999 #endif
35000 #ifdef __cplusplus
35001 }
35002 #endif
35003
35004 int
35005 main ()
35006 {
35007 return f != $ac_func;
35008   ;
35009   return 0;
35010 }
35011 _ACEOF
35012 rm -f conftest.$ac_objext conftest$ac_exeext
35013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35014   (eval $ac_link) 2>conftest.er1
35015   ac_status=$?
35016   grep -v '^ *+' conftest.er1 >conftest.err
35017   rm -f conftest.er1
35018   cat conftest.err >&5
35019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020   (exit $ac_status); } &&
35021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35023   (eval $ac_try) 2>&5
35024   ac_status=$?
35025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026   (exit $ac_status); }; } &&
35027          { ac_try='test -s conftest$ac_exeext'
35028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35029   (eval $ac_try) 2>&5
35030   ac_status=$?
35031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032   (exit $ac_status); }; }; then
35033   eval "$as_ac_var=yes"
35034 else
35035   echo "$as_me: failed program was:" >&5
35036 sed 's/^/| /' conftest.$ac_ext >&5
35037
35038 eval "$as_ac_var=no"
35039 fi
35040 rm -f conftest.err conftest.$ac_objext \
35041       conftest$ac_exeext conftest.$ac_ext
35042 fi
35043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35045 if test `eval echo '${'$as_ac_var'}'` = yes; then
35046   cat >>confdefs.h <<_ACEOF
35047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35048 _ACEOF
35049  break
35050 fi
35051 done
35052
35053
35054 HAVE_SOME_SLEEP_FUNC=0
35055 if test "$USE_BEOS" = 1; then
35056             cat >>confdefs.h <<\_ACEOF
35057 #define HAVE_SLEEP 1
35058 _ACEOF
35059
35060     HAVE_SOME_SLEEP_FUNC=1
35061 fi
35062
35063 if test "$USE_DARWIN" = 1; then
35064             cat >>confdefs.h <<\_ACEOF
35065 #define HAVE_USLEEP 1
35066 _ACEOF
35067
35068     HAVE_SOME_SLEEP_FUNC=1
35069 fi
35070
35071 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35072         POSIX4_LINK=
35073
35074 for ac_func in nanosleep
35075 do
35076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35077 echo "$as_me:$LINENO: checking for $ac_func" >&5
35078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35079 if eval "test \"\${$as_ac_var+set}\" = set"; then
35080   echo $ECHO_N "(cached) $ECHO_C" >&6
35081 else
35082   cat >conftest.$ac_ext <<_ACEOF
35083 /* confdefs.h.  */
35084 _ACEOF
35085 cat confdefs.h >>conftest.$ac_ext
35086 cat >>conftest.$ac_ext <<_ACEOF
35087 /* end confdefs.h.  */
35088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35090 #define $ac_func innocuous_$ac_func
35091
35092 /* System header to define __stub macros and hopefully few prototypes,
35093     which can conflict with char $ac_func (); below.
35094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35095     <limits.h> exists even on freestanding compilers.  */
35096
35097 #ifdef __STDC__
35098 # include <limits.h>
35099 #else
35100 # include <assert.h>
35101 #endif
35102
35103 #undef $ac_func
35104
35105 /* Override any gcc2 internal prototype to avoid an error.  */
35106 #ifdef __cplusplus
35107 extern "C"
35108 {
35109 #endif
35110 /* We use char because int might match the return type of a gcc2
35111    builtin and then its argument prototype would still apply.  */
35112 char $ac_func ();
35113 /* The GNU C library defines this for functions which it implements
35114     to always fail with ENOSYS.  Some functions are actually named
35115     something starting with __ and the normal name is an alias.  */
35116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35117 choke me
35118 #else
35119 char (*f) () = $ac_func;
35120 #endif
35121 #ifdef __cplusplus
35122 }
35123 #endif
35124
35125 int
35126 main ()
35127 {
35128 return f != $ac_func;
35129   ;
35130   return 0;
35131 }
35132 _ACEOF
35133 rm -f conftest.$ac_objext conftest$ac_exeext
35134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35135   (eval $ac_link) 2>conftest.er1
35136   ac_status=$?
35137   grep -v '^ *+' conftest.er1 >conftest.err
35138   rm -f conftest.er1
35139   cat conftest.err >&5
35140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35141   (exit $ac_status); } &&
35142          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35144   (eval $ac_try) 2>&5
35145   ac_status=$?
35146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35147   (exit $ac_status); }; } &&
35148          { ac_try='test -s conftest$ac_exeext'
35149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35150   (eval $ac_try) 2>&5
35151   ac_status=$?
35152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153   (exit $ac_status); }; }; then
35154   eval "$as_ac_var=yes"
35155 else
35156   echo "$as_me: failed program was:" >&5
35157 sed 's/^/| /' conftest.$ac_ext >&5
35158
35159 eval "$as_ac_var=no"
35160 fi
35161 rm -f conftest.err conftest.$ac_objext \
35162       conftest$ac_exeext conftest.$ac_ext
35163 fi
35164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35166 if test `eval echo '${'$as_ac_var'}'` = yes; then
35167   cat >>confdefs.h <<_ACEOF
35168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35169 _ACEOF
35170  cat >>confdefs.h <<\_ACEOF
35171 #define HAVE_NANOSLEEP 1
35172 _ACEOF
35173
35174 else
35175
35176             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35177 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35178 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35179   echo $ECHO_N "(cached) $ECHO_C" >&6
35180 else
35181   ac_check_lib_save_LIBS=$LIBS
35182 LIBS="-lposix4  $LIBS"
35183 cat >conftest.$ac_ext <<_ACEOF
35184 /* confdefs.h.  */
35185 _ACEOF
35186 cat confdefs.h >>conftest.$ac_ext
35187 cat >>conftest.$ac_ext <<_ACEOF
35188 /* end confdefs.h.  */
35189
35190 /* Override any gcc2 internal prototype to avoid an error.  */
35191 #ifdef __cplusplus
35192 extern "C"
35193 #endif
35194 /* We use char because int might match the return type of a gcc2
35195    builtin and then its argument prototype would still apply.  */
35196 char nanosleep ();
35197 int
35198 main ()
35199 {
35200 nanosleep ();
35201   ;
35202   return 0;
35203 }
35204 _ACEOF
35205 rm -f conftest.$ac_objext conftest$ac_exeext
35206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35207   (eval $ac_link) 2>conftest.er1
35208   ac_status=$?
35209   grep -v '^ *+' conftest.er1 >conftest.err
35210   rm -f conftest.er1
35211   cat conftest.err >&5
35212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213   (exit $ac_status); } &&
35214          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216   (eval $ac_try) 2>&5
35217   ac_status=$?
35218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219   (exit $ac_status); }; } &&
35220          { ac_try='test -s conftest$ac_exeext'
35221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35222   (eval $ac_try) 2>&5
35223   ac_status=$?
35224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35225   (exit $ac_status); }; }; then
35226   ac_cv_lib_posix4_nanosleep=yes
35227 else
35228   echo "$as_me: failed program was:" >&5
35229 sed 's/^/| /' conftest.$ac_ext >&5
35230
35231 ac_cv_lib_posix4_nanosleep=no
35232 fi
35233 rm -f conftest.err conftest.$ac_objext \
35234       conftest$ac_exeext conftest.$ac_ext
35235 LIBS=$ac_check_lib_save_LIBS
35236 fi
35237 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35238 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35239 if test $ac_cv_lib_posix4_nanosleep = yes; then
35240
35241                     cat >>confdefs.h <<\_ACEOF
35242 #define HAVE_NANOSLEEP 1
35243 _ACEOF
35244
35245                     POSIX4_LINK=" -lposix4"
35246
35247 else
35248
35249
35250 for ac_func in usleep
35251 do
35252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35253 echo "$as_me:$LINENO: checking for $ac_func" >&5
35254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35255 if eval "test \"\${$as_ac_var+set}\" = set"; then
35256   echo $ECHO_N "(cached) $ECHO_C" >&6
35257 else
35258   cat >conftest.$ac_ext <<_ACEOF
35259 /* confdefs.h.  */
35260 _ACEOF
35261 cat confdefs.h >>conftest.$ac_ext
35262 cat >>conftest.$ac_ext <<_ACEOF
35263 /* end confdefs.h.  */
35264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35266 #define $ac_func innocuous_$ac_func
35267
35268 /* System header to define __stub macros and hopefully few prototypes,
35269     which can conflict with char $ac_func (); below.
35270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35271     <limits.h> exists even on freestanding compilers.  */
35272
35273 #ifdef __STDC__
35274 # include <limits.h>
35275 #else
35276 # include <assert.h>
35277 #endif
35278
35279 #undef $ac_func
35280
35281 /* Override any gcc2 internal prototype to avoid an error.  */
35282 #ifdef __cplusplus
35283 extern "C"
35284 {
35285 #endif
35286 /* We use char because int might match the return type of a gcc2
35287    builtin and then its argument prototype would still apply.  */
35288 char $ac_func ();
35289 /* The GNU C library defines this for functions which it implements
35290     to always fail with ENOSYS.  Some functions are actually named
35291     something starting with __ and the normal name is an alias.  */
35292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35293 choke me
35294 #else
35295 char (*f) () = $ac_func;
35296 #endif
35297 #ifdef __cplusplus
35298 }
35299 #endif
35300
35301 int
35302 main ()
35303 {
35304 return f != $ac_func;
35305   ;
35306   return 0;
35307 }
35308 _ACEOF
35309 rm -f conftest.$ac_objext conftest$ac_exeext
35310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35311   (eval $ac_link) 2>conftest.er1
35312   ac_status=$?
35313   grep -v '^ *+' conftest.er1 >conftest.err
35314   rm -f conftest.er1
35315   cat conftest.err >&5
35316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317   (exit $ac_status); } &&
35318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320   (eval $ac_try) 2>&5
35321   ac_status=$?
35322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323   (exit $ac_status); }; } &&
35324          { ac_try='test -s conftest$ac_exeext'
35325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35326   (eval $ac_try) 2>&5
35327   ac_status=$?
35328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329   (exit $ac_status); }; }; then
35330   eval "$as_ac_var=yes"
35331 else
35332   echo "$as_me: failed program was:" >&5
35333 sed 's/^/| /' conftest.$ac_ext >&5
35334
35335 eval "$as_ac_var=no"
35336 fi
35337 rm -f conftest.err conftest.$ac_objext \
35338       conftest$ac_exeext conftest.$ac_ext
35339 fi
35340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35342 if test `eval echo '${'$as_ac_var'}'` = yes; then
35343   cat >>confdefs.h <<_ACEOF
35344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35345 _ACEOF
35346  cat >>confdefs.h <<\_ACEOF
35347 #define HAVE_USLEEP 1
35348 _ACEOF
35349
35350 else
35351   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35352 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35353
35354 fi
35355 done
35356
35357
35358
35359 fi
35360
35361
35362
35363 fi
35364 done
35365
35366 fi
35367
35368
35369
35370 for ac_func in uname gethostname
35371 do
35372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35373 echo "$as_me:$LINENO: checking for $ac_func" >&5
35374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35375 if eval "test \"\${$as_ac_var+set}\" = set"; then
35376   echo $ECHO_N "(cached) $ECHO_C" >&6
35377 else
35378   cat >conftest.$ac_ext <<_ACEOF
35379 /* confdefs.h.  */
35380 _ACEOF
35381 cat confdefs.h >>conftest.$ac_ext
35382 cat >>conftest.$ac_ext <<_ACEOF
35383 /* end confdefs.h.  */
35384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35386 #define $ac_func innocuous_$ac_func
35387
35388 /* System header to define __stub macros and hopefully few prototypes,
35389     which can conflict with char $ac_func (); below.
35390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35391     <limits.h> exists even on freestanding compilers.  */
35392
35393 #ifdef __STDC__
35394 # include <limits.h>
35395 #else
35396 # include <assert.h>
35397 #endif
35398
35399 #undef $ac_func
35400
35401 /* Override any gcc2 internal prototype to avoid an error.  */
35402 #ifdef __cplusplus
35403 extern "C"
35404 {
35405 #endif
35406 /* We use char because int might match the return type of a gcc2
35407    builtin and then its argument prototype would still apply.  */
35408 char $ac_func ();
35409 /* The GNU C library defines this for functions which it implements
35410     to always fail with ENOSYS.  Some functions are actually named
35411     something starting with __ and the normal name is an alias.  */
35412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35413 choke me
35414 #else
35415 char (*f) () = $ac_func;
35416 #endif
35417 #ifdef __cplusplus
35418 }
35419 #endif
35420
35421 int
35422 main ()
35423 {
35424 return f != $ac_func;
35425   ;
35426   return 0;
35427 }
35428 _ACEOF
35429 rm -f conftest.$ac_objext conftest$ac_exeext
35430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35431   (eval $ac_link) 2>conftest.er1
35432   ac_status=$?
35433   grep -v '^ *+' conftest.er1 >conftest.err
35434   rm -f conftest.er1
35435   cat conftest.err >&5
35436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437   (exit $ac_status); } &&
35438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35440   (eval $ac_try) 2>&5
35441   ac_status=$?
35442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443   (exit $ac_status); }; } &&
35444          { ac_try='test -s conftest$ac_exeext'
35445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35446   (eval $ac_try) 2>&5
35447   ac_status=$?
35448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449   (exit $ac_status); }; }; then
35450   eval "$as_ac_var=yes"
35451 else
35452   echo "$as_me: failed program was:" >&5
35453 sed 's/^/| /' conftest.$ac_ext >&5
35454
35455 eval "$as_ac_var=no"
35456 fi
35457 rm -f conftest.err conftest.$ac_objext \
35458       conftest$ac_exeext conftest.$ac_ext
35459 fi
35460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35462 if test `eval echo '${'$as_ac_var'}'` = yes; then
35463   cat >>confdefs.h <<_ACEOF
35464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35465 _ACEOF
35466  break
35467 fi
35468 done
35469
35470
35471
35472
35473 ac_ext=cc
35474 ac_cpp='$CXXCPP $CPPFLAGS'
35475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35478
35479
35480
35481 for ac_func in strtok_r
35482 do
35483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35484 echo "$as_me:$LINENO: checking for $ac_func" >&5
35485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35486 if eval "test \"\${$as_ac_var+set}\" = set"; then
35487   echo $ECHO_N "(cached) $ECHO_C" >&6
35488 else
35489   cat >conftest.$ac_ext <<_ACEOF
35490 /* confdefs.h.  */
35491 _ACEOF
35492 cat confdefs.h >>conftest.$ac_ext
35493 cat >>conftest.$ac_ext <<_ACEOF
35494 /* end confdefs.h.  */
35495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35497 #define $ac_func innocuous_$ac_func
35498
35499 /* System header to define __stub macros and hopefully few prototypes,
35500     which can conflict with char $ac_func (); below.
35501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35502     <limits.h> exists even on freestanding compilers.  */
35503
35504 #ifdef __STDC__
35505 # include <limits.h>
35506 #else
35507 # include <assert.h>
35508 #endif
35509
35510 #undef $ac_func
35511
35512 /* Override any gcc2 internal prototype to avoid an error.  */
35513 #ifdef __cplusplus
35514 extern "C"
35515 {
35516 #endif
35517 /* We use char because int might match the return type of a gcc2
35518    builtin and then its argument prototype would still apply.  */
35519 char $ac_func ();
35520 /* The GNU C library defines this for functions which it implements
35521     to always fail with ENOSYS.  Some functions are actually named
35522     something starting with __ and the normal name is an alias.  */
35523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35524 choke me
35525 #else
35526 char (*f) () = $ac_func;
35527 #endif
35528 #ifdef __cplusplus
35529 }
35530 #endif
35531
35532 int
35533 main ()
35534 {
35535 return f != $ac_func;
35536   ;
35537   return 0;
35538 }
35539 _ACEOF
35540 rm -f conftest.$ac_objext conftest$ac_exeext
35541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35542   (eval $ac_link) 2>conftest.er1
35543   ac_status=$?
35544   grep -v '^ *+' conftest.er1 >conftest.err
35545   rm -f conftest.er1
35546   cat conftest.err >&5
35547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548   (exit $ac_status); } &&
35549          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35551   (eval $ac_try) 2>&5
35552   ac_status=$?
35553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554   (exit $ac_status); }; } &&
35555          { ac_try='test -s conftest$ac_exeext'
35556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35557   (eval $ac_try) 2>&5
35558   ac_status=$?
35559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35560   (exit $ac_status); }; }; then
35561   eval "$as_ac_var=yes"
35562 else
35563   echo "$as_me: failed program was:" >&5
35564 sed 's/^/| /' conftest.$ac_ext >&5
35565
35566 eval "$as_ac_var=no"
35567 fi
35568 rm -f conftest.err conftest.$ac_objext \
35569       conftest$ac_exeext conftest.$ac_ext
35570 fi
35571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35573 if test `eval echo '${'$as_ac_var'}'` = yes; then
35574   cat >>confdefs.h <<_ACEOF
35575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35576 _ACEOF
35577
35578 fi
35579 done
35580
35581
35582 ac_ext=c
35583 ac_cpp='$CPP $CPPFLAGS'
35584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35587
35588
35589 INET_LINK=
35590
35591 for ac_func in inet_addr
35592 do
35593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35594 echo "$as_me:$LINENO: checking for $ac_func" >&5
35595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35596 if eval "test \"\${$as_ac_var+set}\" = set"; then
35597   echo $ECHO_N "(cached) $ECHO_C" >&6
35598 else
35599   cat >conftest.$ac_ext <<_ACEOF
35600 /* confdefs.h.  */
35601 _ACEOF
35602 cat confdefs.h >>conftest.$ac_ext
35603 cat >>conftest.$ac_ext <<_ACEOF
35604 /* end confdefs.h.  */
35605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35607 #define $ac_func innocuous_$ac_func
35608
35609 /* System header to define __stub macros and hopefully few prototypes,
35610     which can conflict with char $ac_func (); below.
35611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35612     <limits.h> exists even on freestanding compilers.  */
35613
35614 #ifdef __STDC__
35615 # include <limits.h>
35616 #else
35617 # include <assert.h>
35618 #endif
35619
35620 #undef $ac_func
35621
35622 /* Override any gcc2 internal prototype to avoid an error.  */
35623 #ifdef __cplusplus
35624 extern "C"
35625 {
35626 #endif
35627 /* We use char because int might match the return type of a gcc2
35628    builtin and then its argument prototype would still apply.  */
35629 char $ac_func ();
35630 /* The GNU C library defines this for functions which it implements
35631     to always fail with ENOSYS.  Some functions are actually named
35632     something starting with __ and the normal name is an alias.  */
35633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35634 choke me
35635 #else
35636 char (*f) () = $ac_func;
35637 #endif
35638 #ifdef __cplusplus
35639 }
35640 #endif
35641
35642 int
35643 main ()
35644 {
35645 return f != $ac_func;
35646   ;
35647   return 0;
35648 }
35649 _ACEOF
35650 rm -f conftest.$ac_objext conftest$ac_exeext
35651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35652   (eval $ac_link) 2>conftest.er1
35653   ac_status=$?
35654   grep -v '^ *+' conftest.er1 >conftest.err
35655   rm -f conftest.er1
35656   cat conftest.err >&5
35657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658   (exit $ac_status); } &&
35659          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661   (eval $ac_try) 2>&5
35662   ac_status=$?
35663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664   (exit $ac_status); }; } &&
35665          { ac_try='test -s conftest$ac_exeext'
35666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35667   (eval $ac_try) 2>&5
35668   ac_status=$?
35669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35670   (exit $ac_status); }; }; then
35671   eval "$as_ac_var=yes"
35672 else
35673   echo "$as_me: failed program was:" >&5
35674 sed 's/^/| /' conftest.$ac_ext >&5
35675
35676 eval "$as_ac_var=no"
35677 fi
35678 rm -f conftest.err conftest.$ac_objext \
35679       conftest$ac_exeext conftest.$ac_ext
35680 fi
35681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35683 if test `eval echo '${'$as_ac_var'}'` = yes; then
35684   cat >>confdefs.h <<_ACEOF
35685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35686 _ACEOF
35687  cat >>confdefs.h <<\_ACEOF
35688 #define HAVE_INET_ADDR 1
35689 _ACEOF
35690
35691 else
35692
35693         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35694 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35695 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35696   echo $ECHO_N "(cached) $ECHO_C" >&6
35697 else
35698   ac_check_lib_save_LIBS=$LIBS
35699 LIBS="-lnsl  $LIBS"
35700 cat >conftest.$ac_ext <<_ACEOF
35701 /* confdefs.h.  */
35702 _ACEOF
35703 cat confdefs.h >>conftest.$ac_ext
35704 cat >>conftest.$ac_ext <<_ACEOF
35705 /* end confdefs.h.  */
35706
35707 /* Override any gcc2 internal prototype to avoid an error.  */
35708 #ifdef __cplusplus
35709 extern "C"
35710 #endif
35711 /* We use char because int might match the return type of a gcc2
35712    builtin and then its argument prototype would still apply.  */
35713 char inet_addr ();
35714 int
35715 main ()
35716 {
35717 inet_addr ();
35718   ;
35719   return 0;
35720 }
35721 _ACEOF
35722 rm -f conftest.$ac_objext conftest$ac_exeext
35723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35724   (eval $ac_link) 2>conftest.er1
35725   ac_status=$?
35726   grep -v '^ *+' conftest.er1 >conftest.err
35727   rm -f conftest.er1
35728   cat conftest.err >&5
35729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730   (exit $ac_status); } &&
35731          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35733   (eval $ac_try) 2>&5
35734   ac_status=$?
35735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35736   (exit $ac_status); }; } &&
35737          { ac_try='test -s conftest$ac_exeext'
35738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35739   (eval $ac_try) 2>&5
35740   ac_status=$?
35741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742   (exit $ac_status); }; }; then
35743   ac_cv_lib_nsl_inet_addr=yes
35744 else
35745   echo "$as_me: failed program was:" >&5
35746 sed 's/^/| /' conftest.$ac_ext >&5
35747
35748 ac_cv_lib_nsl_inet_addr=no
35749 fi
35750 rm -f conftest.err conftest.$ac_objext \
35751       conftest$ac_exeext conftest.$ac_ext
35752 LIBS=$ac_check_lib_save_LIBS
35753 fi
35754 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35755 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35756 if test $ac_cv_lib_nsl_inet_addr = yes; then
35757   INET_LINK="nsl"
35758 else
35759
35760                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35761 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35762 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35763   echo $ECHO_N "(cached) $ECHO_C" >&6
35764 else
35765   ac_check_lib_save_LIBS=$LIBS
35766 LIBS="-lresolv  $LIBS"
35767 cat >conftest.$ac_ext <<_ACEOF
35768 /* confdefs.h.  */
35769 _ACEOF
35770 cat confdefs.h >>conftest.$ac_ext
35771 cat >>conftest.$ac_ext <<_ACEOF
35772 /* end confdefs.h.  */
35773
35774 /* Override any gcc2 internal prototype to avoid an error.  */
35775 #ifdef __cplusplus
35776 extern "C"
35777 #endif
35778 /* We use char because int might match the return type of a gcc2
35779    builtin and then its argument prototype would still apply.  */
35780 char inet_addr ();
35781 int
35782 main ()
35783 {
35784 inet_addr ();
35785   ;
35786   return 0;
35787 }
35788 _ACEOF
35789 rm -f conftest.$ac_objext conftest$ac_exeext
35790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35791   (eval $ac_link) 2>conftest.er1
35792   ac_status=$?
35793   grep -v '^ *+' conftest.er1 >conftest.err
35794   rm -f conftest.er1
35795   cat conftest.err >&5
35796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797   (exit $ac_status); } &&
35798          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35800   (eval $ac_try) 2>&5
35801   ac_status=$?
35802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803   (exit $ac_status); }; } &&
35804          { ac_try='test -s conftest$ac_exeext'
35805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35806   (eval $ac_try) 2>&5
35807   ac_status=$?
35808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809   (exit $ac_status); }; }; then
35810   ac_cv_lib_resolv_inet_addr=yes
35811 else
35812   echo "$as_me: failed program was:" >&5
35813 sed 's/^/| /' conftest.$ac_ext >&5
35814
35815 ac_cv_lib_resolv_inet_addr=no
35816 fi
35817 rm -f conftest.err conftest.$ac_objext \
35818       conftest$ac_exeext conftest.$ac_ext
35819 LIBS=$ac_check_lib_save_LIBS
35820 fi
35821 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35822 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35823 if test $ac_cv_lib_resolv_inet_addr = yes; then
35824   INET_LINK="resolv"
35825 else
35826
35827                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35828 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35829 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35830   echo $ECHO_N "(cached) $ECHO_C" >&6
35831 else
35832   ac_check_lib_save_LIBS=$LIBS
35833 LIBS="-lsocket  $LIBS"
35834 cat >conftest.$ac_ext <<_ACEOF
35835 /* confdefs.h.  */
35836 _ACEOF
35837 cat confdefs.h >>conftest.$ac_ext
35838 cat >>conftest.$ac_ext <<_ACEOF
35839 /* end confdefs.h.  */
35840
35841 /* Override any gcc2 internal prototype to avoid an error.  */
35842 #ifdef __cplusplus
35843 extern "C"
35844 #endif
35845 /* We use char because int might match the return type of a gcc2
35846    builtin and then its argument prototype would still apply.  */
35847 char inet_addr ();
35848 int
35849 main ()
35850 {
35851 inet_addr ();
35852   ;
35853   return 0;
35854 }
35855 _ACEOF
35856 rm -f conftest.$ac_objext conftest$ac_exeext
35857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35858   (eval $ac_link) 2>conftest.er1
35859   ac_status=$?
35860   grep -v '^ *+' conftest.er1 >conftest.err
35861   rm -f conftest.er1
35862   cat conftest.err >&5
35863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864   (exit $ac_status); } &&
35865          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35867   (eval $ac_try) 2>&5
35868   ac_status=$?
35869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870   (exit $ac_status); }; } &&
35871          { ac_try='test -s conftest$ac_exeext'
35872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35873   (eval $ac_try) 2>&5
35874   ac_status=$?
35875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876   (exit $ac_status); }; }; then
35877   ac_cv_lib_socket_inet_addr=yes
35878 else
35879   echo "$as_me: failed program was:" >&5
35880 sed 's/^/| /' conftest.$ac_ext >&5
35881
35882 ac_cv_lib_socket_inet_addr=no
35883 fi
35884 rm -f conftest.err conftest.$ac_objext \
35885       conftest$ac_exeext conftest.$ac_ext
35886 LIBS=$ac_check_lib_save_LIBS
35887 fi
35888 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35889 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35890 if test $ac_cv_lib_socket_inet_addr = yes; then
35891   INET_LINK="socket"
35892
35893 fi
35894
35895
35896
35897 fi
35898
35899
35900
35901 fi
35902
35903
35904
35905 fi
35906 done
35907
35908
35909
35910 for ac_func in inet_aton
35911 do
35912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35913 echo "$as_me:$LINENO: checking for $ac_func" >&5
35914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35915 if eval "test \"\${$as_ac_var+set}\" = set"; then
35916   echo $ECHO_N "(cached) $ECHO_C" >&6
35917 else
35918   cat >conftest.$ac_ext <<_ACEOF
35919 /* confdefs.h.  */
35920 _ACEOF
35921 cat confdefs.h >>conftest.$ac_ext
35922 cat >>conftest.$ac_ext <<_ACEOF
35923 /* end confdefs.h.  */
35924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35926 #define $ac_func innocuous_$ac_func
35927
35928 /* System header to define __stub macros and hopefully few prototypes,
35929     which can conflict with char $ac_func (); below.
35930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35931     <limits.h> exists even on freestanding compilers.  */
35932
35933 #ifdef __STDC__
35934 # include <limits.h>
35935 #else
35936 # include <assert.h>
35937 #endif
35938
35939 #undef $ac_func
35940
35941 /* Override any gcc2 internal prototype to avoid an error.  */
35942 #ifdef __cplusplus
35943 extern "C"
35944 {
35945 #endif
35946 /* We use char because int might match the return type of a gcc2
35947    builtin and then its argument prototype would still apply.  */
35948 char $ac_func ();
35949 /* The GNU C library defines this for functions which it implements
35950     to always fail with ENOSYS.  Some functions are actually named
35951     something starting with __ and the normal name is an alias.  */
35952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35953 choke me
35954 #else
35955 char (*f) () = $ac_func;
35956 #endif
35957 #ifdef __cplusplus
35958 }
35959 #endif
35960
35961 int
35962 main ()
35963 {
35964 return f != $ac_func;
35965   ;
35966   return 0;
35967 }
35968 _ACEOF
35969 rm -f conftest.$ac_objext conftest$ac_exeext
35970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35971   (eval $ac_link) 2>conftest.er1
35972   ac_status=$?
35973   grep -v '^ *+' conftest.er1 >conftest.err
35974   rm -f conftest.er1
35975   cat conftest.err >&5
35976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977   (exit $ac_status); } &&
35978          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35980   (eval $ac_try) 2>&5
35981   ac_status=$?
35982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983   (exit $ac_status); }; } &&
35984          { ac_try='test -s conftest$ac_exeext'
35985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35986   (eval $ac_try) 2>&5
35987   ac_status=$?
35988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35989   (exit $ac_status); }; }; then
35990   eval "$as_ac_var=yes"
35991 else
35992   echo "$as_me: failed program was:" >&5
35993 sed 's/^/| /' conftest.$ac_ext >&5
35994
35995 eval "$as_ac_var=no"
35996 fi
35997 rm -f conftest.err conftest.$ac_objext \
35998       conftest$ac_exeext conftest.$ac_ext
35999 fi
36000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36002 if test `eval echo '${'$as_ac_var'}'` = yes; then
36003   cat >>confdefs.h <<_ACEOF
36004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36005 _ACEOF
36006  cat >>confdefs.h <<\_ACEOF
36007 #define HAVE_INET_ATON 1
36008 _ACEOF
36009
36010 else
36011
36012                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36013 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36014 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36015 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36016   echo $ECHO_N "(cached) $ECHO_C" >&6
36017 else
36018   ac_check_lib_save_LIBS=$LIBS
36019 LIBS="-l$INET_LINK  $LIBS"
36020 cat >conftest.$ac_ext <<_ACEOF
36021 /* confdefs.h.  */
36022 _ACEOF
36023 cat confdefs.h >>conftest.$ac_ext
36024 cat >>conftest.$ac_ext <<_ACEOF
36025 /* end confdefs.h.  */
36026
36027 /* Override any gcc2 internal prototype to avoid an error.  */
36028 #ifdef __cplusplus
36029 extern "C"
36030 #endif
36031 /* We use char because int might match the return type of a gcc2
36032    builtin and then its argument prototype would still apply.  */
36033 char inet_aton ();
36034 int
36035 main ()
36036 {
36037 inet_aton ();
36038   ;
36039   return 0;
36040 }
36041 _ACEOF
36042 rm -f conftest.$ac_objext conftest$ac_exeext
36043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36044   (eval $ac_link) 2>conftest.er1
36045   ac_status=$?
36046   grep -v '^ *+' conftest.er1 >conftest.err
36047   rm -f conftest.er1
36048   cat conftest.err >&5
36049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050   (exit $ac_status); } &&
36051          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36053   (eval $ac_try) 2>&5
36054   ac_status=$?
36055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056   (exit $ac_status); }; } &&
36057          { ac_try='test -s conftest$ac_exeext'
36058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36059   (eval $ac_try) 2>&5
36060   ac_status=$?
36061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062   (exit $ac_status); }; }; then
36063   eval "$as_ac_Lib=yes"
36064 else
36065   echo "$as_me: failed program was:" >&5
36066 sed 's/^/| /' conftest.$ac_ext >&5
36067
36068 eval "$as_ac_Lib=no"
36069 fi
36070 rm -f conftest.err conftest.$ac_objext \
36071       conftest$ac_exeext conftest.$ac_ext
36072 LIBS=$ac_check_lib_save_LIBS
36073 fi
36074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36075 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36076 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36077   cat >>confdefs.h <<\_ACEOF
36078 #define HAVE_INET_ATON 1
36079 _ACEOF
36080
36081 fi
36082
36083
36084 fi
36085 done
36086
36087
36088 if test "x$INET_LINK" != "x"; then
36089     cat >>confdefs.h <<\_ACEOF
36090 #define HAVE_INET_ADDR 1
36091 _ACEOF
36092
36093     INET_LINK=" -l$INET_LINK"
36094 fi
36095
36096 fi
36097
36098
36099
36100 EXTRALIBS_ESD=
36101 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36102 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36103 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36104   echo $ECHO_N "(cached) $ECHO_C" >&6
36105 else
36106   ac_check_lib_save_LIBS=$LIBS
36107 LIBS="-lesd  $LIBS"
36108 cat >conftest.$ac_ext <<_ACEOF
36109 /* confdefs.h.  */
36110 _ACEOF
36111 cat confdefs.h >>conftest.$ac_ext
36112 cat >>conftest.$ac_ext <<_ACEOF
36113 /* end confdefs.h.  */
36114
36115 /* Override any gcc2 internal prototype to avoid an error.  */
36116 #ifdef __cplusplus
36117 extern "C"
36118 #endif
36119 /* We use char because int might match the return type of a gcc2
36120    builtin and then its argument prototype would still apply.  */
36121 char esd_close ();
36122 int
36123 main ()
36124 {
36125 esd_close ();
36126   ;
36127   return 0;
36128 }
36129 _ACEOF
36130 rm -f conftest.$ac_objext conftest$ac_exeext
36131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36132   (eval $ac_link) 2>conftest.er1
36133   ac_status=$?
36134   grep -v '^ *+' conftest.er1 >conftest.err
36135   rm -f conftest.er1
36136   cat conftest.err >&5
36137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138   (exit $ac_status); } &&
36139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36141   (eval $ac_try) 2>&5
36142   ac_status=$?
36143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36144   (exit $ac_status); }; } &&
36145          { ac_try='test -s conftest$ac_exeext'
36146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36147   (eval $ac_try) 2>&5
36148   ac_status=$?
36149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150   (exit $ac_status); }; }; then
36151   ac_cv_lib_esd_esd_close=yes
36152 else
36153   echo "$as_me: failed program was:" >&5
36154 sed 's/^/| /' conftest.$ac_ext >&5
36155
36156 ac_cv_lib_esd_esd_close=no
36157 fi
36158 rm -f conftest.err conftest.$ac_objext \
36159       conftest$ac_exeext conftest.$ac_ext
36160 LIBS=$ac_check_lib_save_LIBS
36161 fi
36162 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36163 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36164 if test $ac_cv_lib_esd_esd_close = yes; then
36165
36166
36167 for ac_header in esd.h
36168 do
36169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36171   echo "$as_me:$LINENO: checking for $ac_header" >&5
36172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36174   echo $ECHO_N "(cached) $ECHO_C" >&6
36175 fi
36176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36178 else
36179   # Is the header compilable?
36180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36182 cat >conftest.$ac_ext <<_ACEOF
36183 /* confdefs.h.  */
36184 _ACEOF
36185 cat confdefs.h >>conftest.$ac_ext
36186 cat >>conftest.$ac_ext <<_ACEOF
36187 /* end confdefs.h.  */
36188 $ac_includes_default
36189 #include <$ac_header>
36190 _ACEOF
36191 rm -f conftest.$ac_objext
36192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36193   (eval $ac_compile) 2>conftest.er1
36194   ac_status=$?
36195   grep -v '^ *+' conftest.er1 >conftest.err
36196   rm -f conftest.er1
36197   cat conftest.err >&5
36198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36199   (exit $ac_status); } &&
36200          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36202   (eval $ac_try) 2>&5
36203   ac_status=$?
36204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205   (exit $ac_status); }; } &&
36206          { ac_try='test -s conftest.$ac_objext'
36207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36208   (eval $ac_try) 2>&5
36209   ac_status=$?
36210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211   (exit $ac_status); }; }; then
36212   ac_header_compiler=yes
36213 else
36214   echo "$as_me: failed program was:" >&5
36215 sed 's/^/| /' conftest.$ac_ext >&5
36216
36217 ac_header_compiler=no
36218 fi
36219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36221 echo "${ECHO_T}$ac_header_compiler" >&6
36222
36223 # Is the header present?
36224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36226 cat >conftest.$ac_ext <<_ACEOF
36227 /* confdefs.h.  */
36228 _ACEOF
36229 cat confdefs.h >>conftest.$ac_ext
36230 cat >>conftest.$ac_ext <<_ACEOF
36231 /* end confdefs.h.  */
36232 #include <$ac_header>
36233 _ACEOF
36234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36236   ac_status=$?
36237   grep -v '^ *+' conftest.er1 >conftest.err
36238   rm -f conftest.er1
36239   cat conftest.err >&5
36240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241   (exit $ac_status); } >/dev/null; then
36242   if test -s conftest.err; then
36243     ac_cpp_err=$ac_c_preproc_warn_flag
36244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36245   else
36246     ac_cpp_err=
36247   fi
36248 else
36249   ac_cpp_err=yes
36250 fi
36251 if test -z "$ac_cpp_err"; then
36252   ac_header_preproc=yes
36253 else
36254   echo "$as_me: failed program was:" >&5
36255 sed 's/^/| /' conftest.$ac_ext >&5
36256
36257   ac_header_preproc=no
36258 fi
36259 rm -f conftest.err conftest.$ac_ext
36260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36261 echo "${ECHO_T}$ac_header_preproc" >&6
36262
36263 # So?  What about this header?
36264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36265   yes:no: )
36266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36270     ac_header_preproc=yes
36271     ;;
36272   no:yes:* )
36273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36285     (
36286       cat <<\_ASBOX
36287 ## ----------------------------------------- ##
36288 ## Report this to wx-dev@lists.wxwidgets.org ##
36289 ## ----------------------------------------- ##
36290 _ASBOX
36291     ) |
36292       sed "s/^/$as_me: WARNING:     /" >&2
36293     ;;
36294 esac
36295 echo "$as_me:$LINENO: checking for $ac_header" >&5
36296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36298   echo $ECHO_N "(cached) $ECHO_C" >&6
36299 else
36300   eval "$as_ac_Header=\$ac_header_preproc"
36301 fi
36302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36304
36305 fi
36306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36307   cat >>confdefs.h <<_ACEOF
36308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36309 _ACEOF
36310
36311     EXTRALIBS_ESD="-lesd"
36312
36313 fi
36314
36315 done
36316
36317
36318 fi
36319
36320
36321
36322 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36323 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36324 cat >conftest.$ac_ext <<_ACEOF
36325 /* confdefs.h.  */
36326 _ACEOF
36327 cat confdefs.h >>conftest.$ac_ext
36328 cat >>conftest.$ac_ext <<_ACEOF
36329 /* end confdefs.h.  */
36330 #ifdef __linux__
36331                 #include <linux/cdrom.h>
36332                 #else
36333                 /* For Solaris */
36334                 #include <sys/cdio.h>
36335                 #endif
36336
36337 int
36338 main ()
36339 {
36340 struct cdrom_tocentry entry, old_entry;
36341   ;
36342   return 0;
36343 }
36344 _ACEOF
36345 rm -f conftest.$ac_objext
36346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36347   (eval $ac_compile) 2>conftest.er1
36348   ac_status=$?
36349   grep -v '^ *+' conftest.er1 >conftest.err
36350   rm -f conftest.er1
36351   cat conftest.err >&5
36352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353   (exit $ac_status); } &&
36354          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356   (eval $ac_try) 2>&5
36357   ac_status=$?
36358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359   (exit $ac_status); }; } &&
36360          { ac_try='test -s conftest.$ac_objext'
36361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362   (eval $ac_try) 2>&5
36363   ac_status=$?
36364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365   (exit $ac_status); }; }; then
36366   echo "$as_me:$LINENO: result: yes" >&5
36367 echo "${ECHO_T}yes" >&6
36368                 cat >>confdefs.h <<\_ACEOF
36369 #define HAVE_KNOWN_CDROM_INTERFACE 1
36370 _ACEOF
36371
36372 else
36373   echo "$as_me: failed program was:" >&5
36374 sed 's/^/| /' conftest.$ac_ext >&5
36375
36376 echo "$as_me:$LINENO: result: no" >&5
36377 echo "${ECHO_T}no" >&6
36378 fi
36379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36380
36381
36382 cat >confcache <<\_ACEOF
36383 # This file is a shell script that caches the results of configure
36384 # tests run on this system so they can be shared between configure
36385 # scripts and configure runs, see configure's option --config-cache.
36386 # It is not useful on other systems.  If it contains results you don't
36387 # want to keep, you may remove or edit it.
36388 #
36389 # config.status only pays attention to the cache file if you give it
36390 # the --recheck option to rerun configure.
36391 #
36392 # `ac_cv_env_foo' variables (set or unset) will be overridden when
36393 # loading this file, other *unset* `ac_cv_foo' will be assigned the
36394 # following values.
36395
36396 _ACEOF
36397
36398 # The following way of writing the cache mishandles newlines in values,
36399 # but we know of no workaround that is simple, portable, and efficient.
36400 # So, don't put newlines in cache variables' values.
36401 # Ultrix sh set writes to stderr and can't be redirected directly,
36402 # and sets the high bit in the cache file unless we assign to the vars.
36403 {
36404   (set) 2>&1 |
36405     case `(ac_space=' '; set | grep ac_space) 2>&1` in
36406     *ac_space=\ *)
36407       # `set' does not quote correctly, so add quotes (double-quote
36408       # substitution turns \\\\ into \\, and sed turns \\ into \).
36409       sed -n \
36410         "s/'/'\\\\''/g;
36411           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36412       ;;
36413     *)
36414       # `set' quotes correctly as required by POSIX, so do not add quotes.
36415       sed -n \
36416         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
36417       ;;
36418     esac;
36419 } |
36420   sed '
36421      t clear
36422      : clear
36423      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36424      t end
36425      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36426      : end' >>confcache
36427 if diff $cache_file confcache >/dev/null 2>&1; then :; else
36428   if test -w $cache_file; then
36429     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36430     cat confcache >$cache_file
36431   else
36432     echo "not updating unwritable cache $cache_file"
36433   fi
36434 fi
36435 rm -f confcache
36436
36437
36438 CPP_MT_FLAG=
36439 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36440
36441
36442     THREADS_LINK=
36443     THREADS_CFLAGS=
36444
36445     if test "$wxUSE_THREADS" = "yes" ; then
36446         if test "$USE_BEOS" = 1; then
36447             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36448 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36449             wxUSE_THREADS="no"
36450         fi
36451     fi
36452
36453     if test "$wxUSE_THREADS" = "yes" ; then
36454
36455
36456                                 THREAD_OPTS="-pthread"
36457         case "${host}" in
36458           *-*-solaris2* | *-*-sunos4* )
36459                 if test "x$GCC" = "xyes"; then
36460                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
36461                 else
36462                     THREAD_OPTS="-mt $THREAD_OPTS"
36463                 fi
36464                 ;;
36465           *-*-freebsd*)
36466                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36467                 ;;
36468           *-*-darwin* | *-*-cygwin* )
36469                                                 THREAD_OPTS=""
36470                 ;;
36471           *-*-aix*)
36472                                 THREAD_OPTS="pthreads"
36473                 ;;
36474           *-hp-hpux* )
36475                 if test "x$GCC" = "xyes"; then
36476                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36477                         THREAD_OPTS=""
36478                 else
36479                                                             THREAD_OPTS="-mt"
36480                 fi
36481                 ;;
36482
36483           *-*-irix* )
36484                                                                 if test "x$GCC" = "xyes"; then
36485                     THREAD_OPTS=""
36486                 fi
36487                 ;;
36488
36489           *-*-*UnixWare*)
36490                                 if test "x$GCC" != "xyes"; then
36491                     THREAD_OPTS="-Ethread"
36492                 fi
36493                 ;;
36494         esac
36495
36496                                 THREAD_OPTS="$THREAD_OPTS pthread none"
36497
36498                 THREADS_OK=no
36499         for flag in $THREAD_OPTS; do
36500             case $flag in
36501                 none)
36502                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36503 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36504                     ;;
36505
36506                 -*)
36507                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36508 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36509                     THREADS_CFLAGS="$flag"
36510                     ;;
36511
36512                 *)
36513                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36514 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36515                     THREADS_LINK="-l$flag"
36516                     ;;
36517               esac
36518
36519               save_LIBS="$LIBS"
36520               save_CFLAGS="$CFLAGS"
36521               LIBS="$THREADS_LINK $LIBS"
36522               CFLAGS="$THREADS_CFLAGS $CFLAGS"
36523
36524               cat >conftest.$ac_ext <<_ACEOF
36525 /* confdefs.h.  */
36526 _ACEOF
36527 cat confdefs.h >>conftest.$ac_ext
36528 cat >>conftest.$ac_ext <<_ACEOF
36529 /* end confdefs.h.  */
36530 #include <pthread.h>
36531 int
36532 main ()
36533 {
36534 pthread_create(0,0,0,0);
36535   ;
36536   return 0;
36537 }
36538 _ACEOF
36539 rm -f conftest.$ac_objext conftest$ac_exeext
36540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36541   (eval $ac_link) 2>conftest.er1
36542   ac_status=$?
36543   grep -v '^ *+' conftest.er1 >conftest.err
36544   rm -f conftest.er1
36545   cat conftest.err >&5
36546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547   (exit $ac_status); } &&
36548          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36550   (eval $ac_try) 2>&5
36551   ac_status=$?
36552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553   (exit $ac_status); }; } &&
36554          { ac_try='test -s conftest$ac_exeext'
36555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36556   (eval $ac_try) 2>&5
36557   ac_status=$?
36558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559   (exit $ac_status); }; }; then
36560   THREADS_OK=yes
36561 else
36562   echo "$as_me: failed program was:" >&5
36563 sed 's/^/| /' conftest.$ac_ext >&5
36564
36565 fi
36566 rm -f conftest.err conftest.$ac_objext \
36567       conftest$ac_exeext conftest.$ac_ext
36568
36569               LIBS="$save_LIBS"
36570               CFLAGS="$save_CFLAGS"
36571
36572               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36573 echo "${ECHO_T}$THREADS_OK" >&6
36574               if test "x$THREADS_OK" = "xyes"; then
36575                       break;
36576               fi
36577
36578               THREADS_LINK=""
36579               THREADS_CFLAGS=""
36580       done
36581
36582       if test "x$THREADS_OK" != "xyes"; then
36583           wxUSE_THREADS=no
36584           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36585 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36586       else
36587                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36588           LIBS="$THREADS_LINK $LIBS"
36589
36590           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36591 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36592           flag=no
36593           case "${host}" in
36594             *-aix*)
36595                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36596                 flag="-D_THREAD_SAFE"
36597                 ;;
36598             *-freebsd*)
36599                 flag="-D_THREAD_SAFE"
36600                 ;;
36601             *-hp-hpux* )
36602                 flag="-D_REENTRANT"
36603                 if test "x$GCC" != "xyes"; then
36604                                         flag="$flag -D_RWSTD_MULTI_THREAD"
36605                 fi
36606                 ;;
36607             *solaris* | alpha*-osf*)
36608                 flag="-D_REENTRANT"
36609                 ;;
36610           esac
36611           echo "$as_me:$LINENO: result: ${flag}" >&5
36612 echo "${ECHO_T}${flag}" >&6
36613           if test "x$flag" != xno; then
36614               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36615           fi
36616
36617           if test "x$THREADS_CFLAGS" != "x"; then
36618                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
36619             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
36620           fi
36621       fi
36622     fi
36623
36624         if test "$wxUSE_THREADS" = "yes" ; then
36625
36626 for ac_func in thr_setconcurrency
36627 do
36628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36629 echo "$as_me:$LINENO: checking for $ac_func" >&5
36630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36631 if eval "test \"\${$as_ac_var+set}\" = set"; then
36632   echo $ECHO_N "(cached) $ECHO_C" >&6
36633 else
36634   cat >conftest.$ac_ext <<_ACEOF
36635 /* confdefs.h.  */
36636 _ACEOF
36637 cat confdefs.h >>conftest.$ac_ext
36638 cat >>conftest.$ac_ext <<_ACEOF
36639 /* end confdefs.h.  */
36640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36642 #define $ac_func innocuous_$ac_func
36643
36644 /* System header to define __stub macros and hopefully few prototypes,
36645     which can conflict with char $ac_func (); below.
36646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36647     <limits.h> exists even on freestanding compilers.  */
36648
36649 #ifdef __STDC__
36650 # include <limits.h>
36651 #else
36652 # include <assert.h>
36653 #endif
36654
36655 #undef $ac_func
36656
36657 /* Override any gcc2 internal prototype to avoid an error.  */
36658 #ifdef __cplusplus
36659 extern "C"
36660 {
36661 #endif
36662 /* We use char because int might match the return type of a gcc2
36663    builtin and then its argument prototype would still apply.  */
36664 char $ac_func ();
36665 /* The GNU C library defines this for functions which it implements
36666     to always fail with ENOSYS.  Some functions are actually named
36667     something starting with __ and the normal name is an alias.  */
36668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36669 choke me
36670 #else
36671 char (*f) () = $ac_func;
36672 #endif
36673 #ifdef __cplusplus
36674 }
36675 #endif
36676
36677 int
36678 main ()
36679 {
36680 return f != $ac_func;
36681   ;
36682   return 0;
36683 }
36684 _ACEOF
36685 rm -f conftest.$ac_objext conftest$ac_exeext
36686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36687   (eval $ac_link) 2>conftest.er1
36688   ac_status=$?
36689   grep -v '^ *+' conftest.er1 >conftest.err
36690   rm -f conftest.er1
36691   cat conftest.err >&5
36692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693   (exit $ac_status); } &&
36694          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36696   (eval $ac_try) 2>&5
36697   ac_status=$?
36698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36699   (exit $ac_status); }; } &&
36700          { ac_try='test -s conftest$ac_exeext'
36701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36702   (eval $ac_try) 2>&5
36703   ac_status=$?
36704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36705   (exit $ac_status); }; }; then
36706   eval "$as_ac_var=yes"
36707 else
36708   echo "$as_me: failed program was:" >&5
36709 sed 's/^/| /' conftest.$ac_ext >&5
36710
36711 eval "$as_ac_var=no"
36712 fi
36713 rm -f conftest.err conftest.$ac_objext \
36714       conftest$ac_exeext conftest.$ac_ext
36715 fi
36716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36718 if test `eval echo '${'$as_ac_var'}'` = yes; then
36719   cat >>confdefs.h <<_ACEOF
36720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36721 _ACEOF
36722
36723 fi
36724 done
36725
36726
36727                   echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36728 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36729 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36730   echo $ECHO_N "(cached) $ECHO_C" >&6
36731 else
36732
36733         cat >conftest.$ac_ext <<_ACEOF
36734 /* confdefs.h.  */
36735 _ACEOF
36736 cat confdefs.h >>conftest.$ac_ext
36737 cat >>conftest.$ac_ext <<_ACEOF
36738 /* end confdefs.h.  */
36739 #include <pthread.h>
36740                void ThreadCleanupFunc(void *p);
36741
36742 int
36743 main ()
36744 {
36745
36746                 void *p;
36747                 pthread_cleanup_push(ThreadCleanupFunc, p);
36748                 pthread_cleanup_pop(0);
36749
36750   ;
36751   return 0;
36752 }
36753 _ACEOF
36754 rm -f conftest.$ac_objext
36755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36756   (eval $ac_compile) 2>conftest.er1
36757   ac_status=$?
36758   grep -v '^ *+' conftest.er1 >conftest.err
36759   rm -f conftest.er1
36760   cat conftest.err >&5
36761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36762   (exit $ac_status); } &&
36763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36765   (eval $ac_try) 2>&5
36766   ac_status=$?
36767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768   (exit $ac_status); }; } &&
36769          { ac_try='test -s conftest.$ac_objext'
36770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36771   (eval $ac_try) 2>&5
36772   ac_status=$?
36773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36774   (exit $ac_status); }; }; then
36775
36776                wx_cv_func_pthread_cleanup=yes
36777
36778 else
36779   echo "$as_me: failed program was:" >&5
36780 sed 's/^/| /' conftest.$ac_ext >&5
36781
36782
36783                wx_cv_func_pthread_cleanup=no
36784
36785
36786 fi
36787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36788
36789 fi
36790 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36791 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36792       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36793         cat >>confdefs.h <<\_ACEOF
36794 #define wxHAVE_PTHREAD_CLEANUP 1
36795 _ACEOF
36796
36797       fi
36798
36799
36800 for ac_header in sched.h
36801 do
36802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36804   echo "$as_me:$LINENO: checking for $ac_header" >&5
36805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36807   echo $ECHO_N "(cached) $ECHO_C" >&6
36808 fi
36809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36811 else
36812   # Is the header compilable?
36813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36815 cat >conftest.$ac_ext <<_ACEOF
36816 /* confdefs.h.  */
36817 _ACEOF
36818 cat confdefs.h >>conftest.$ac_ext
36819 cat >>conftest.$ac_ext <<_ACEOF
36820 /* end confdefs.h.  */
36821 $ac_includes_default
36822 #include <$ac_header>
36823 _ACEOF
36824 rm -f conftest.$ac_objext
36825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36826   (eval $ac_compile) 2>conftest.er1
36827   ac_status=$?
36828   grep -v '^ *+' conftest.er1 >conftest.err
36829   rm -f conftest.er1
36830   cat conftest.err >&5
36831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36832   (exit $ac_status); } &&
36833          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36835   (eval $ac_try) 2>&5
36836   ac_status=$?
36837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36838   (exit $ac_status); }; } &&
36839          { ac_try='test -s conftest.$ac_objext'
36840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36841   (eval $ac_try) 2>&5
36842   ac_status=$?
36843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36844   (exit $ac_status); }; }; then
36845   ac_header_compiler=yes
36846 else
36847   echo "$as_me: failed program was:" >&5
36848 sed 's/^/| /' conftest.$ac_ext >&5
36849
36850 ac_header_compiler=no
36851 fi
36852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36854 echo "${ECHO_T}$ac_header_compiler" >&6
36855
36856 # Is the header present?
36857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36859 cat >conftest.$ac_ext <<_ACEOF
36860 /* confdefs.h.  */
36861 _ACEOF
36862 cat confdefs.h >>conftest.$ac_ext
36863 cat >>conftest.$ac_ext <<_ACEOF
36864 /* end confdefs.h.  */
36865 #include <$ac_header>
36866 _ACEOF
36867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36868   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36869   ac_status=$?
36870   grep -v '^ *+' conftest.er1 >conftest.err
36871   rm -f conftest.er1
36872   cat conftest.err >&5
36873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874   (exit $ac_status); } >/dev/null; then
36875   if test -s conftest.err; then
36876     ac_cpp_err=$ac_c_preproc_warn_flag
36877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36878   else
36879     ac_cpp_err=
36880   fi
36881 else
36882   ac_cpp_err=yes
36883 fi
36884 if test -z "$ac_cpp_err"; then
36885   ac_header_preproc=yes
36886 else
36887   echo "$as_me: failed program was:" >&5
36888 sed 's/^/| /' conftest.$ac_ext >&5
36889
36890   ac_header_preproc=no
36891 fi
36892 rm -f conftest.err conftest.$ac_ext
36893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36894 echo "${ECHO_T}$ac_header_preproc" >&6
36895
36896 # So?  What about this header?
36897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36898   yes:no: )
36899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36903     ac_header_preproc=yes
36904     ;;
36905   no:yes:* )
36906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36908     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36909 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36910     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36912     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36913 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36916     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36918     (
36919       cat <<\_ASBOX
36920 ## ----------------------------------------- ##
36921 ## Report this to wx-dev@lists.wxwidgets.org ##
36922 ## ----------------------------------------- ##
36923 _ASBOX
36924     ) |
36925       sed "s/^/$as_me: WARNING:     /" >&2
36926     ;;
36927 esac
36928 echo "$as_me:$LINENO: checking for $ac_header" >&5
36929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36931   echo $ECHO_N "(cached) $ECHO_C" >&6
36932 else
36933   eval "$as_ac_Header=\$ac_header_preproc"
36934 fi
36935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36937
36938 fi
36939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36940   cat >>confdefs.h <<_ACEOF
36941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36942 _ACEOF
36943
36944 fi
36945
36946 done
36947
36948       if test "$ac_cv_header_sched_h" = "yes"; then
36949           echo "$as_me:$LINENO: checking for sched_yield" >&5
36950 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36951 if test "${ac_cv_func_sched_yield+set}" = set; then
36952   echo $ECHO_N "(cached) $ECHO_C" >&6
36953 else
36954   cat >conftest.$ac_ext <<_ACEOF
36955 /* confdefs.h.  */
36956 _ACEOF
36957 cat confdefs.h >>conftest.$ac_ext
36958 cat >>conftest.$ac_ext <<_ACEOF
36959 /* end confdefs.h.  */
36960 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36962 #define sched_yield innocuous_sched_yield
36963
36964 /* System header to define __stub macros and hopefully few prototypes,
36965     which can conflict with char sched_yield (); below.
36966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36967     <limits.h> exists even on freestanding compilers.  */
36968
36969 #ifdef __STDC__
36970 # include <limits.h>
36971 #else
36972 # include <assert.h>
36973 #endif
36974
36975 #undef sched_yield
36976
36977 /* Override any gcc2 internal prototype to avoid an error.  */
36978 #ifdef __cplusplus
36979 extern "C"
36980 {
36981 #endif
36982 /* We use char because int might match the return type of a gcc2
36983    builtin and then its argument prototype would still apply.  */
36984 char sched_yield ();
36985 /* The GNU C library defines this for functions which it implements
36986     to always fail with ENOSYS.  Some functions are actually named
36987     something starting with __ and the normal name is an alias.  */
36988 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36989 choke me
36990 #else
36991 char (*f) () = sched_yield;
36992 #endif
36993 #ifdef __cplusplus
36994 }
36995 #endif
36996
36997 int
36998 main ()
36999 {
37000 return f != sched_yield;
37001   ;
37002   return 0;
37003 }
37004 _ACEOF
37005 rm -f conftest.$ac_objext conftest$ac_exeext
37006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37007   (eval $ac_link) 2>conftest.er1
37008   ac_status=$?
37009   grep -v '^ *+' conftest.er1 >conftest.err
37010   rm -f conftest.er1
37011   cat conftest.err >&5
37012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013   (exit $ac_status); } &&
37014          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37016   (eval $ac_try) 2>&5
37017   ac_status=$?
37018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019   (exit $ac_status); }; } &&
37020          { ac_try='test -s conftest$ac_exeext'
37021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37022   (eval $ac_try) 2>&5
37023   ac_status=$?
37024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37025   (exit $ac_status); }; }; then
37026   ac_cv_func_sched_yield=yes
37027 else
37028   echo "$as_me: failed program was:" >&5
37029 sed 's/^/| /' conftest.$ac_ext >&5
37030
37031 ac_cv_func_sched_yield=no
37032 fi
37033 rm -f conftest.err conftest.$ac_objext \
37034       conftest$ac_exeext conftest.$ac_ext
37035 fi
37036 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37037 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37038 if test $ac_cv_func_sched_yield = yes; then
37039   cat >>confdefs.h <<\_ACEOF
37040 #define HAVE_SCHED_YIELD 1
37041 _ACEOF
37042
37043 else
37044
37045                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37046 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37047 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37048   echo $ECHO_N "(cached) $ECHO_C" >&6
37049 else
37050   ac_check_lib_save_LIBS=$LIBS
37051 LIBS="-lposix4  $LIBS"
37052 cat >conftest.$ac_ext <<_ACEOF
37053 /* confdefs.h.  */
37054 _ACEOF
37055 cat confdefs.h >>conftest.$ac_ext
37056 cat >>conftest.$ac_ext <<_ACEOF
37057 /* end confdefs.h.  */
37058
37059 /* Override any gcc2 internal prototype to avoid an error.  */
37060 #ifdef __cplusplus
37061 extern "C"
37062 #endif
37063 /* We use char because int might match the return type of a gcc2
37064    builtin and then its argument prototype would still apply.  */
37065 char sched_yield ();
37066 int
37067 main ()
37068 {
37069 sched_yield ();
37070   ;
37071   return 0;
37072 }
37073 _ACEOF
37074 rm -f conftest.$ac_objext conftest$ac_exeext
37075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37076   (eval $ac_link) 2>conftest.er1
37077   ac_status=$?
37078   grep -v '^ *+' conftest.er1 >conftest.err
37079   rm -f conftest.er1
37080   cat conftest.err >&5
37081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082   (exit $ac_status); } &&
37083          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37085   (eval $ac_try) 2>&5
37086   ac_status=$?
37087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37088   (exit $ac_status); }; } &&
37089          { ac_try='test -s conftest$ac_exeext'
37090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37091   (eval $ac_try) 2>&5
37092   ac_status=$?
37093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37094   (exit $ac_status); }; }; then
37095   ac_cv_lib_posix4_sched_yield=yes
37096 else
37097   echo "$as_me: failed program was:" >&5
37098 sed 's/^/| /' conftest.$ac_ext >&5
37099
37100 ac_cv_lib_posix4_sched_yield=no
37101 fi
37102 rm -f conftest.err conftest.$ac_objext \
37103       conftest$ac_exeext conftest.$ac_ext
37104 LIBS=$ac_check_lib_save_LIBS
37105 fi
37106 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37107 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37108 if test $ac_cv_lib_posix4_sched_yield = yes; then
37109   cat >>confdefs.h <<\_ACEOF
37110 #define HAVE_SCHED_YIELD 1
37111 _ACEOF
37112  POSIX4_LINK=" -lposix4"
37113 else
37114   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37115 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37116
37117 fi
37118
37119
37120
37121 fi
37122
37123       fi
37124
37125                                           HAVE_PRIOR_FUNCS=0
37126       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37127 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37128 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37129   echo $ECHO_N "(cached) $ECHO_C" >&6
37130 else
37131   cat >conftest.$ac_ext <<_ACEOF
37132 /* confdefs.h.  */
37133 _ACEOF
37134 cat confdefs.h >>conftest.$ac_ext
37135 cat >>conftest.$ac_ext <<_ACEOF
37136 /* end confdefs.h.  */
37137 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37139 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37140
37141 /* System header to define __stub macros and hopefully few prototypes,
37142     which can conflict with char pthread_attr_getschedpolicy (); below.
37143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37144     <limits.h> exists even on freestanding compilers.  */
37145
37146 #ifdef __STDC__
37147 # include <limits.h>
37148 #else
37149 # include <assert.h>
37150 #endif
37151
37152 #undef pthread_attr_getschedpolicy
37153
37154 /* Override any gcc2 internal prototype to avoid an error.  */
37155 #ifdef __cplusplus
37156 extern "C"
37157 {
37158 #endif
37159 /* We use char because int might match the return type of a gcc2
37160    builtin and then its argument prototype would still apply.  */
37161 char pthread_attr_getschedpolicy ();
37162 /* The GNU C library defines this for functions which it implements
37163     to always fail with ENOSYS.  Some functions are actually named
37164     something starting with __ and the normal name is an alias.  */
37165 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37166 choke me
37167 #else
37168 char (*f) () = pthread_attr_getschedpolicy;
37169 #endif
37170 #ifdef __cplusplus
37171 }
37172 #endif
37173
37174 int
37175 main ()
37176 {
37177 return f != pthread_attr_getschedpolicy;
37178   ;
37179   return 0;
37180 }
37181 _ACEOF
37182 rm -f conftest.$ac_objext conftest$ac_exeext
37183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37184   (eval $ac_link) 2>conftest.er1
37185   ac_status=$?
37186   grep -v '^ *+' conftest.er1 >conftest.err
37187   rm -f conftest.er1
37188   cat conftest.err >&5
37189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190   (exit $ac_status); } &&
37191          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37193   (eval $ac_try) 2>&5
37194   ac_status=$?
37195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37196   (exit $ac_status); }; } &&
37197          { ac_try='test -s conftest$ac_exeext'
37198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37199   (eval $ac_try) 2>&5
37200   ac_status=$?
37201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37202   (exit $ac_status); }; }; then
37203   ac_cv_func_pthread_attr_getschedpolicy=yes
37204 else
37205   echo "$as_me: failed program was:" >&5
37206 sed 's/^/| /' conftest.$ac_ext >&5
37207
37208 ac_cv_func_pthread_attr_getschedpolicy=no
37209 fi
37210 rm -f conftest.err conftest.$ac_objext \
37211       conftest$ac_exeext conftest.$ac_ext
37212 fi
37213 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37214 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37215 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37216   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37217 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37218 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37219   echo $ECHO_N "(cached) $ECHO_C" >&6
37220 else
37221   cat >conftest.$ac_ext <<_ACEOF
37222 /* confdefs.h.  */
37223 _ACEOF
37224 cat confdefs.h >>conftest.$ac_ext
37225 cat >>conftest.$ac_ext <<_ACEOF
37226 /* end confdefs.h.  */
37227 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37229 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37230
37231 /* System header to define __stub macros and hopefully few prototypes,
37232     which can conflict with char pthread_attr_setschedparam (); below.
37233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37234     <limits.h> exists even on freestanding compilers.  */
37235
37236 #ifdef __STDC__
37237 # include <limits.h>
37238 #else
37239 # include <assert.h>
37240 #endif
37241
37242 #undef pthread_attr_setschedparam
37243
37244 /* Override any gcc2 internal prototype to avoid an error.  */
37245 #ifdef __cplusplus
37246 extern "C"
37247 {
37248 #endif
37249 /* We use char because int might match the return type of a gcc2
37250    builtin and then its argument prototype would still apply.  */
37251 char pthread_attr_setschedparam ();
37252 /* The GNU C library defines this for functions which it implements
37253     to always fail with ENOSYS.  Some functions are actually named
37254     something starting with __ and the normal name is an alias.  */
37255 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37256 choke me
37257 #else
37258 char (*f) () = pthread_attr_setschedparam;
37259 #endif
37260 #ifdef __cplusplus
37261 }
37262 #endif
37263
37264 int
37265 main ()
37266 {
37267 return f != pthread_attr_setschedparam;
37268   ;
37269   return 0;
37270 }
37271 _ACEOF
37272 rm -f conftest.$ac_objext conftest$ac_exeext
37273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37274   (eval $ac_link) 2>conftest.er1
37275   ac_status=$?
37276   grep -v '^ *+' conftest.er1 >conftest.err
37277   rm -f conftest.er1
37278   cat conftest.err >&5
37279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280   (exit $ac_status); } &&
37281          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37283   (eval $ac_try) 2>&5
37284   ac_status=$?
37285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286   (exit $ac_status); }; } &&
37287          { ac_try='test -s conftest$ac_exeext'
37288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37289   (eval $ac_try) 2>&5
37290   ac_status=$?
37291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37292   (exit $ac_status); }; }; then
37293   ac_cv_func_pthread_attr_setschedparam=yes
37294 else
37295   echo "$as_me: failed program was:" >&5
37296 sed 's/^/| /' conftest.$ac_ext >&5
37297
37298 ac_cv_func_pthread_attr_setschedparam=no
37299 fi
37300 rm -f conftest.err conftest.$ac_objext \
37301       conftest$ac_exeext conftest.$ac_ext
37302 fi
37303 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37304 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37305 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37306   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37307 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37308 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37309   echo $ECHO_N "(cached) $ECHO_C" >&6
37310 else
37311   cat >conftest.$ac_ext <<_ACEOF
37312 /* confdefs.h.  */
37313 _ACEOF
37314 cat confdefs.h >>conftest.$ac_ext
37315 cat >>conftest.$ac_ext <<_ACEOF
37316 /* end confdefs.h.  */
37317 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37319 #define sched_get_priority_max innocuous_sched_get_priority_max
37320
37321 /* System header to define __stub macros and hopefully few prototypes,
37322     which can conflict with char sched_get_priority_max (); below.
37323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37324     <limits.h> exists even on freestanding compilers.  */
37325
37326 #ifdef __STDC__
37327 # include <limits.h>
37328 #else
37329 # include <assert.h>
37330 #endif
37331
37332 #undef sched_get_priority_max
37333
37334 /* Override any gcc2 internal prototype to avoid an error.  */
37335 #ifdef __cplusplus
37336 extern "C"
37337 {
37338 #endif
37339 /* We use char because int might match the return type of a gcc2
37340    builtin and then its argument prototype would still apply.  */
37341 char sched_get_priority_max ();
37342 /* The GNU C library defines this for functions which it implements
37343     to always fail with ENOSYS.  Some functions are actually named
37344     something starting with __ and the normal name is an alias.  */
37345 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37346 choke me
37347 #else
37348 char (*f) () = sched_get_priority_max;
37349 #endif
37350 #ifdef __cplusplus
37351 }
37352 #endif
37353
37354 int
37355 main ()
37356 {
37357 return f != sched_get_priority_max;
37358   ;
37359   return 0;
37360 }
37361 _ACEOF
37362 rm -f conftest.$ac_objext conftest$ac_exeext
37363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37364   (eval $ac_link) 2>conftest.er1
37365   ac_status=$?
37366   grep -v '^ *+' conftest.er1 >conftest.err
37367   rm -f conftest.er1
37368   cat conftest.err >&5
37369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37370   (exit $ac_status); } &&
37371          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37373   (eval $ac_try) 2>&5
37374   ac_status=$?
37375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37376   (exit $ac_status); }; } &&
37377          { ac_try='test -s conftest$ac_exeext'
37378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37379   (eval $ac_try) 2>&5
37380   ac_status=$?
37381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382   (exit $ac_status); }; }; then
37383   ac_cv_func_sched_get_priority_max=yes
37384 else
37385   echo "$as_me: failed program was:" >&5
37386 sed 's/^/| /' conftest.$ac_ext >&5
37387
37388 ac_cv_func_sched_get_priority_max=no
37389 fi
37390 rm -f conftest.err conftest.$ac_objext \
37391       conftest$ac_exeext conftest.$ac_ext
37392 fi
37393 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37394 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37395 if test $ac_cv_func_sched_get_priority_max = yes; then
37396   HAVE_PRIOR_FUNCS=1
37397 else
37398   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37399 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37400 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37401   echo $ECHO_N "(cached) $ECHO_C" >&6
37402 else
37403   ac_check_lib_save_LIBS=$LIBS
37404 LIBS="-lposix4  $LIBS"
37405 cat >conftest.$ac_ext <<_ACEOF
37406 /* confdefs.h.  */
37407 _ACEOF
37408 cat confdefs.h >>conftest.$ac_ext
37409 cat >>conftest.$ac_ext <<_ACEOF
37410 /* end confdefs.h.  */
37411
37412 /* Override any gcc2 internal prototype to avoid an error.  */
37413 #ifdef __cplusplus
37414 extern "C"
37415 #endif
37416 /* We use char because int might match the return type of a gcc2
37417    builtin and then its argument prototype would still apply.  */
37418 char sched_get_priority_max ();
37419 int
37420 main ()
37421 {
37422 sched_get_priority_max ();
37423   ;
37424   return 0;
37425 }
37426 _ACEOF
37427 rm -f conftest.$ac_objext conftest$ac_exeext
37428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37429   (eval $ac_link) 2>conftest.er1
37430   ac_status=$?
37431   grep -v '^ *+' conftest.er1 >conftest.err
37432   rm -f conftest.er1
37433   cat conftest.err >&5
37434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435   (exit $ac_status); } &&
37436          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37438   (eval $ac_try) 2>&5
37439   ac_status=$?
37440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37441   (exit $ac_status); }; } &&
37442          { ac_try='test -s conftest$ac_exeext'
37443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37444   (eval $ac_try) 2>&5
37445   ac_status=$?
37446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447   (exit $ac_status); }; }; then
37448   ac_cv_lib_posix4_sched_get_priority_max=yes
37449 else
37450   echo "$as_me: failed program was:" >&5
37451 sed 's/^/| /' conftest.$ac_ext >&5
37452
37453 ac_cv_lib_posix4_sched_get_priority_max=no
37454 fi
37455 rm -f conftest.err conftest.$ac_objext \
37456       conftest$ac_exeext conftest.$ac_ext
37457 LIBS=$ac_check_lib_save_LIBS
37458 fi
37459 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37460 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37461 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37462
37463                                 HAVE_PRIOR_FUNCS=1
37464                                 POSIX4_LINK=" -lposix4"
37465
37466 fi
37467
37468
37469 fi
37470
37471
37472 fi
37473
37474
37475 fi
37476
37477
37478       if test "$HAVE_PRIOR_FUNCS" = 1; then
37479         cat >>confdefs.h <<\_ACEOF
37480 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37481 _ACEOF
37482
37483       else
37484         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37485 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37486       fi
37487
37488       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37489 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37490 if test "${ac_cv_func_pthread_cancel+set}" = set; then
37491   echo $ECHO_N "(cached) $ECHO_C" >&6
37492 else
37493   cat >conftest.$ac_ext <<_ACEOF
37494 /* confdefs.h.  */
37495 _ACEOF
37496 cat confdefs.h >>conftest.$ac_ext
37497 cat >>conftest.$ac_ext <<_ACEOF
37498 /* end confdefs.h.  */
37499 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37501 #define pthread_cancel innocuous_pthread_cancel
37502
37503 /* System header to define __stub macros and hopefully few prototypes,
37504     which can conflict with char pthread_cancel (); below.
37505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37506     <limits.h> exists even on freestanding compilers.  */
37507
37508 #ifdef __STDC__
37509 # include <limits.h>
37510 #else
37511 # include <assert.h>
37512 #endif
37513
37514 #undef pthread_cancel
37515
37516 /* Override any gcc2 internal prototype to avoid an error.  */
37517 #ifdef __cplusplus
37518 extern "C"
37519 {
37520 #endif
37521 /* We use char because int might match the return type of a gcc2
37522    builtin and then its argument prototype would still apply.  */
37523 char pthread_cancel ();
37524 /* The GNU C library defines this for functions which it implements
37525     to always fail with ENOSYS.  Some functions are actually named
37526     something starting with __ and the normal name is an alias.  */
37527 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37528 choke me
37529 #else
37530 char (*f) () = pthread_cancel;
37531 #endif
37532 #ifdef __cplusplus
37533 }
37534 #endif
37535
37536 int
37537 main ()
37538 {
37539 return f != pthread_cancel;
37540   ;
37541   return 0;
37542 }
37543 _ACEOF
37544 rm -f conftest.$ac_objext conftest$ac_exeext
37545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37546   (eval $ac_link) 2>conftest.er1
37547   ac_status=$?
37548   grep -v '^ *+' conftest.er1 >conftest.err
37549   rm -f conftest.er1
37550   cat conftest.err >&5
37551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552   (exit $ac_status); } &&
37553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37555   (eval $ac_try) 2>&5
37556   ac_status=$?
37557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558   (exit $ac_status); }; } &&
37559          { ac_try='test -s conftest$ac_exeext'
37560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37561   (eval $ac_try) 2>&5
37562   ac_status=$?
37563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564   (exit $ac_status); }; }; then
37565   ac_cv_func_pthread_cancel=yes
37566 else
37567   echo "$as_me: failed program was:" >&5
37568 sed 's/^/| /' conftest.$ac_ext >&5
37569
37570 ac_cv_func_pthread_cancel=no
37571 fi
37572 rm -f conftest.err conftest.$ac_objext \
37573       conftest$ac_exeext conftest.$ac_ext
37574 fi
37575 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37576 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37577 if test $ac_cv_func_pthread_cancel = yes; then
37578   cat >>confdefs.h <<\_ACEOF
37579 #define HAVE_PTHREAD_CANCEL 1
37580 _ACEOF
37581
37582 else
37583   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37584 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37585 fi
37586
37587
37588       echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37589 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37590 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37591   echo $ECHO_N "(cached) $ECHO_C" >&6
37592 else
37593   cat >conftest.$ac_ext <<_ACEOF
37594 /* confdefs.h.  */
37595 _ACEOF
37596 cat confdefs.h >>conftest.$ac_ext
37597 cat >>conftest.$ac_ext <<_ACEOF
37598 /* end confdefs.h.  */
37599 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37601 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37602
37603 /* System header to define __stub macros and hopefully few prototypes,
37604     which can conflict with char pthread_attr_setstacksize (); below.
37605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37606     <limits.h> exists even on freestanding compilers.  */
37607
37608 #ifdef __STDC__
37609 # include <limits.h>
37610 #else
37611 # include <assert.h>
37612 #endif
37613
37614 #undef pthread_attr_setstacksize
37615
37616 /* Override any gcc2 internal prototype to avoid an error.  */
37617 #ifdef __cplusplus
37618 extern "C"
37619 {
37620 #endif
37621 /* We use char because int might match the return type of a gcc2
37622    builtin and then its argument prototype would still apply.  */
37623 char pthread_attr_setstacksize ();
37624 /* The GNU C library defines this for functions which it implements
37625     to always fail with ENOSYS.  Some functions are actually named
37626     something starting with __ and the normal name is an alias.  */
37627 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37628 choke me
37629 #else
37630 char (*f) () = pthread_attr_setstacksize;
37631 #endif
37632 #ifdef __cplusplus
37633 }
37634 #endif
37635
37636 int
37637 main ()
37638 {
37639 return f != pthread_attr_setstacksize;
37640   ;
37641   return 0;
37642 }
37643 _ACEOF
37644 rm -f conftest.$ac_objext conftest$ac_exeext
37645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37646   (eval $ac_link) 2>conftest.er1
37647   ac_status=$?
37648   grep -v '^ *+' conftest.er1 >conftest.err
37649   rm -f conftest.er1
37650   cat conftest.err >&5
37651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652   (exit $ac_status); } &&
37653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37655   (eval $ac_try) 2>&5
37656   ac_status=$?
37657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658   (exit $ac_status); }; } &&
37659          { ac_try='test -s conftest$ac_exeext'
37660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37661   (eval $ac_try) 2>&5
37662   ac_status=$?
37663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37664   (exit $ac_status); }; }; then
37665   ac_cv_func_pthread_attr_setstacksize=yes
37666 else
37667   echo "$as_me: failed program was:" >&5
37668 sed 's/^/| /' conftest.$ac_ext >&5
37669
37670 ac_cv_func_pthread_attr_setstacksize=no
37671 fi
37672 rm -f conftest.err conftest.$ac_objext \
37673       conftest$ac_exeext conftest.$ac_ext
37674 fi
37675 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37676 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37677 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37678   cat >>confdefs.h <<\_ACEOF
37679 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37680 _ACEOF
37681
37682 fi
37683
37684
37685
37686       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37687 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37688 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37689   echo $ECHO_N "(cached) $ECHO_C" >&6
37690 else
37691
37692         cat >conftest.$ac_ext <<_ACEOF
37693 /* confdefs.h.  */
37694 _ACEOF
37695 cat confdefs.h >>conftest.$ac_ext
37696 cat >>conftest.$ac_ext <<_ACEOF
37697 /* end confdefs.h.  */
37698 #include <pthread.h>
37699 int
37700 main ()
37701 {
37702
37703                pthread_mutexattr_t attr;
37704                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
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_c_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_pthread_mutexattr_t=yes
37732 else
37733   echo "$as_me: failed program was:" >&5
37734 sed 's/^/| /' conftest.$ac_ext >&5
37735
37736 wx_cv_type_pthread_mutexattr_t=no
37737
37738 fi
37739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37740
37741 fi
37742 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37743 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37744
37745       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37746         cat >>confdefs.h <<\_ACEOF
37747 #define HAVE_PTHREAD_MUTEXATTR_T 1
37748 _ACEOF
37749
37750
37751                         echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37752 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37753 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37754   echo $ECHO_N "(cached) $ECHO_C" >&6
37755 else
37756
37757                        cat >conftest.$ac_ext <<_ACEOF
37758 /* confdefs.h.  */
37759 _ACEOF
37760 cat confdefs.h >>conftest.$ac_ext
37761 cat >>conftest.$ac_ext <<_ACEOF
37762 /* end confdefs.h.  */
37763 #include <pthread.h>
37764 int
37765 main ()
37766 {
37767
37768                                pthread_mutexattr_t attr;
37769                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37770
37771   ;
37772   return 0;
37773 }
37774 _ACEOF
37775 rm -f conftest.$ac_objext
37776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37777   (eval $ac_compile) 2>conftest.er1
37778   ac_status=$?
37779   grep -v '^ *+' conftest.er1 >conftest.err
37780   rm -f conftest.er1
37781   cat conftest.err >&5
37782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37783   (exit $ac_status); } &&
37784          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37786   (eval $ac_try) 2>&5
37787   ac_status=$?
37788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789   (exit $ac_status); }; } &&
37790          { ac_try='test -s conftest.$ac_objext'
37791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37792   (eval $ac_try) 2>&5
37793   ac_status=$?
37794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37795   (exit $ac_status); }; }; then
37796   wx_cv_func_pthread_mutexattr_settype_decl=yes
37797 else
37798   echo "$as_me: failed program was:" >&5
37799 sed 's/^/| /' conftest.$ac_ext >&5
37800
37801 wx_cv_func_pthread_mutexattr_settype_decl=no
37802
37803 fi
37804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37805
37806 fi
37807 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37808 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37809         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37810             cat >>confdefs.h <<\_ACEOF
37811 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37812 _ACEOF
37813
37814         fi
37815       else
37816                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37817 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37818 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37819   echo $ECHO_N "(cached) $ECHO_C" >&6
37820 else
37821
37822             cat >conftest.$ac_ext <<_ACEOF
37823 /* confdefs.h.  */
37824 _ACEOF
37825 cat confdefs.h >>conftest.$ac_ext
37826 cat >>conftest.$ac_ext <<_ACEOF
37827 /* end confdefs.h.  */
37828 #include <pthread.h>
37829 int
37830 main ()
37831 {
37832
37833                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37834
37835   ;
37836   return 0;
37837 }
37838 _ACEOF
37839 rm -f conftest.$ac_objext
37840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37841   (eval $ac_compile) 2>conftest.er1
37842   ac_status=$?
37843   grep -v '^ *+' conftest.er1 >conftest.err
37844   rm -f conftest.er1
37845   cat conftest.err >&5
37846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847   (exit $ac_status); } &&
37848          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37850   (eval $ac_try) 2>&5
37851   ac_status=$?
37852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37853   (exit $ac_status); }; } &&
37854          { ac_try='test -s conftest.$ac_objext'
37855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37856   (eval $ac_try) 2>&5
37857   ac_status=$?
37858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37859   (exit $ac_status); }; }; then
37860
37861                     wx_cv_type_pthread_rec_mutex_init=yes
37862
37863 else
37864   echo "$as_me: failed program was:" >&5
37865 sed 's/^/| /' conftest.$ac_ext >&5
37866
37867
37868                     wx_cv_type_pthread_rec_mutex_init=no
37869
37870
37871 fi
37872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37873
37874 fi
37875 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37876 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37877         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37878           cat >>confdefs.h <<\_ACEOF
37879 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37880 _ACEOF
37881
37882         else
37883                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37884 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37885         fi
37886       fi
37887     fi
37888
37889 else
37890     if test "$wxUSE_THREADS" = "yes" ; then
37891       case "${host}" in
37892         *-*-mingw32* )
37893                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37894 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37895 if test "${wx_cv_cflags_mthread+set}" = set; then
37896   echo $ECHO_N "(cached) $ECHO_C" >&6
37897 else
37898
37899                     CFLAGS_OLD="$CFLAGS"
37900                     CFLAGS="$CFLAGS -mthreads"
37901                     cat >conftest.$ac_ext <<_ACEOF
37902 /* confdefs.h.  */
37903 _ACEOF
37904 cat confdefs.h >>conftest.$ac_ext
37905 cat >>conftest.$ac_ext <<_ACEOF
37906 /* end confdefs.h.  */
37907
37908 int
37909 main ()
37910 {
37911
37912   ;
37913   return 0;
37914 }
37915 _ACEOF
37916 rm -f conftest.$ac_objext
37917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37918   (eval $ac_compile) 2>conftest.er1
37919   ac_status=$?
37920   grep -v '^ *+' conftest.er1 >conftest.err
37921   rm -f conftest.er1
37922   cat conftest.err >&5
37923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924   (exit $ac_status); } &&
37925          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37927   (eval $ac_try) 2>&5
37928   ac_status=$?
37929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930   (exit $ac_status); }; } &&
37931          { ac_try='test -s conftest.$ac_objext'
37932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37933   (eval $ac_try) 2>&5
37934   ac_status=$?
37935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936   (exit $ac_status); }; }; then
37937   wx_cv_cflags_mthread=yes
37938 else
37939   echo "$as_me: failed program was:" >&5
37940 sed 's/^/| /' conftest.$ac_ext >&5
37941
37942 wx_cv_cflags_mthread=no
37943
37944 fi
37945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37946
37947
37948 fi
37949 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37950 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37951
37952             if test "$wx_cv_cflags_mthread" = "yes"; then
37953                                 CXXFLAGS="$CXXFLAGS -mthreads"
37954                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37955                 LDFLAGS="$LDFLAGS -mthreads"
37956             else
37957                                 CFLAGS="$CFLAGS_OLD"
37958             fi
37959         ;;
37960         *-pc-os2*emx )
37961             CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37962             CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37963             LDFLAGS="$LDFLAGS -Zmt"
37964         ;;
37965       esac
37966     fi
37967 fi
37968
37969 if test "$wxUSE_THREADS" = "yes"; then
37970   cat >>confdefs.h <<\_ACEOF
37971 #define wxUSE_THREADS 1
37972 _ACEOF
37973
37974
37975   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37976 else
37977       if test "$ac_cv_func_strtok_r" = "yes"; then
37978     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37979 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37980     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37981         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
37982         echo "$as_me:$LINENO: result: yes" >&5
37983 echo "${ECHO_T}yes" >&6
37984     else
37985         echo "$as_me:$LINENO: result: no" >&5
37986 echo "${ECHO_T}no" >&6
37987     fi
37988   fi
37989 fi
37990
37991 if test "$WXGTK20" = 1 ; then
37992   cat >>confdefs.h <<_ACEOF
37993 #define __WXGTK20__ $WXGTK20
37994 _ACEOF
37995
37996   WXGTK12=1
37997 fi
37998
37999 if test "$WXGTK12" = 1 ; then
38000   cat >>confdefs.h <<_ACEOF
38001 #define __WXGTK12__ $WXGTK12
38002 _ACEOF
38003
38004 fi
38005
38006 if test "$WXGTK127" = 1 ; then
38007   cat >>confdefs.h <<_ACEOF
38008 #define __WXGTK127__ $WXGTK127
38009 _ACEOF
38010
38011 fi
38012
38013 if test "$WXGPE" = 1 ; then
38014   cat >>confdefs.h <<_ACEOF
38015 #define __WXGPE__ $WXGPE
38016 _ACEOF
38017
38018 fi
38019
38020 WXDEBUG=
38021
38022 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
38023     WXDEBUG="-g"
38024     wxUSE_OPTIMISE=no
38025 fi
38026
38027 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
38028     wxUSE_DEBUG_INFO=yes
38029     if test "$GCC" = yes; then
38030         WXDEBUG="-ggdb"
38031     fi
38032 fi
38033
38034 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
38035     cat >>confdefs.h <<\_ACEOF
38036 #define WXDEBUG 1
38037 _ACEOF
38038
38039     WXDEBUG_DEFINE="-D__WXDEBUG__"
38040 else
38041     if test "$wxUSE_GTK" = 1 ; then
38042         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
38043     fi
38044 fi
38045
38046 if test "$wxUSE_MEM_TRACING" = "yes" ; then
38047     cat >>confdefs.h <<\_ACEOF
38048 #define wxUSE_MEMORY_TRACING 1
38049 _ACEOF
38050
38051     cat >>confdefs.h <<\_ACEOF
38052 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
38053 _ACEOF
38054
38055     cat >>confdefs.h <<\_ACEOF
38056 #define wxUSE_DEBUG_NEW_ALWAYS 1
38057 _ACEOF
38058
38059     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
38060 fi
38061
38062 if test "$wxUSE_DMALLOC" = "yes" ; then
38063     DMALLOC_LIBS="-ldmallocthcxx"
38064 fi
38065
38066 PROFILE=
38067 if test "$wxUSE_PROFILE" = "yes" ; then
38068     PROFILE=" -pg"
38069 fi
38070
38071 CODE_GEN_FLAGS=
38072 CODE_GEN_FLAGS_CXX=
38073 if test "$GCC" = "yes" ; then
38074     if test "$wxUSE_NO_RTTI" = "yes" ; then
38075         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
38076     fi
38077     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38078         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
38079     fi
38080     if test "$wxUSE_PERMISSIVE" = "yes" ; then
38081         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
38082     fi
38083
38084                                                 case "${host}" in
38085       powerpc*-*-aix* )
38086         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
38087         ;;
38088       *-hppa* )
38089         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
38090         ;;
38091     esac
38092 fi
38093
38094 OPTIMISE=
38095 if test "$wxUSE_OPTIMISE" = "no" ; then
38096     if test "$GCC" = yes ; then
38097                         OPTIMISE="-O0"
38098     fi
38099 else
38100     if test "$GCC" = yes ; then
38101         OPTIMISE="-O2"
38102
38103                 case "${host}" in
38104             i586-*-*|i686-*-* )
38105             OPTIMISE="${OPTIMISE} "
38106         ;;
38107         esac
38108     else
38109         OPTIMISE="-O"
38110     fi
38111 fi
38112
38113
38114 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
38115     cat >>confdefs.h <<\_ACEOF
38116 #define WXWIN_COMPATIBILITY_2_4 1
38117 _ACEOF
38118
38119
38120     WXWIN_COMPATIBILITY_2_6="yes"
38121 fi
38122
38123 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
38124     cat >>confdefs.h <<\_ACEOF
38125 #define WXWIN_COMPATIBILITY_2_6 1
38126 _ACEOF
38127
38128 fi
38129
38130
38131 if test "$wxUSE_GUI" = "yes"; then
38132     cat >>confdefs.h <<\_ACEOF
38133 #define wxUSE_GUI 1
38134 _ACEOF
38135
38136
38137                                             fi
38138
38139
38140 if test "$wxUSE_UNIX" = "yes"; then
38141   cat >>confdefs.h <<\_ACEOF
38142 #define wxUSE_UNIX 1
38143 _ACEOF
38144
38145 fi
38146
38147
38148 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38149
38150     HAVE_DL_FUNCS=0
38151     HAVE_SHL_FUNCS=0
38152     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38153         if test "$USE_DARWIN" = 1; then
38154                         HAVE_DL_FUNCS=1
38155         elif test "$USE_DOS" = 1; then
38156             HAVE_DL_FUNCS=0
38157         else
38158
38159 for ac_func in dlopen
38160 do
38161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38162 echo "$as_me:$LINENO: checking for $ac_func" >&5
38163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38164 if eval "test \"\${$as_ac_var+set}\" = set"; then
38165   echo $ECHO_N "(cached) $ECHO_C" >&6
38166 else
38167   cat >conftest.$ac_ext <<_ACEOF
38168 /* confdefs.h.  */
38169 _ACEOF
38170 cat confdefs.h >>conftest.$ac_ext
38171 cat >>conftest.$ac_ext <<_ACEOF
38172 /* end confdefs.h.  */
38173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38175 #define $ac_func innocuous_$ac_func
38176
38177 /* System header to define __stub macros and hopefully few prototypes,
38178     which can conflict with char $ac_func (); below.
38179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38180     <limits.h> exists even on freestanding compilers.  */
38181
38182 #ifdef __STDC__
38183 # include <limits.h>
38184 #else
38185 # include <assert.h>
38186 #endif
38187
38188 #undef $ac_func
38189
38190 /* Override any gcc2 internal prototype to avoid an error.  */
38191 #ifdef __cplusplus
38192 extern "C"
38193 {
38194 #endif
38195 /* We use char because int might match the return type of a gcc2
38196    builtin and then its argument prototype would still apply.  */
38197 char $ac_func ();
38198 /* The GNU C library defines this for functions which it implements
38199     to always fail with ENOSYS.  Some functions are actually named
38200     something starting with __ and the normal name is an alias.  */
38201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38202 choke me
38203 #else
38204 char (*f) () = $ac_func;
38205 #endif
38206 #ifdef __cplusplus
38207 }
38208 #endif
38209
38210 int
38211 main ()
38212 {
38213 return f != $ac_func;
38214   ;
38215   return 0;
38216 }
38217 _ACEOF
38218 rm -f conftest.$ac_objext conftest$ac_exeext
38219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38220   (eval $ac_link) 2>conftest.er1
38221   ac_status=$?
38222   grep -v '^ *+' conftest.er1 >conftest.err
38223   rm -f conftest.er1
38224   cat conftest.err >&5
38225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38226   (exit $ac_status); } &&
38227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38229   (eval $ac_try) 2>&5
38230   ac_status=$?
38231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38232   (exit $ac_status); }; } &&
38233          { ac_try='test -s conftest$ac_exeext'
38234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38235   (eval $ac_try) 2>&5
38236   ac_status=$?
38237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238   (exit $ac_status); }; }; then
38239   eval "$as_ac_var=yes"
38240 else
38241   echo "$as_me: failed program was:" >&5
38242 sed 's/^/| /' conftest.$ac_ext >&5
38243
38244 eval "$as_ac_var=no"
38245 fi
38246 rm -f conftest.err conftest.$ac_objext \
38247       conftest$ac_exeext conftest.$ac_ext
38248 fi
38249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38251 if test `eval echo '${'$as_ac_var'}'` = yes; then
38252   cat >>confdefs.h <<_ACEOF
38253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38254 _ACEOF
38255
38256                 cat >>confdefs.h <<\_ACEOF
38257 #define HAVE_DLOPEN 1
38258 _ACEOF
38259
38260                 HAVE_DL_FUNCS=1
38261
38262 else
38263
38264                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
38266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38267   echo $ECHO_N "(cached) $ECHO_C" >&6
38268 else
38269   ac_check_lib_save_LIBS=$LIBS
38270 LIBS="-ldl  $LIBS"
38271 cat >conftest.$ac_ext <<_ACEOF
38272 /* confdefs.h.  */
38273 _ACEOF
38274 cat confdefs.h >>conftest.$ac_ext
38275 cat >>conftest.$ac_ext <<_ACEOF
38276 /* end confdefs.h.  */
38277
38278 /* Override any gcc2 internal prototype to avoid an error.  */
38279 #ifdef __cplusplus
38280 extern "C"
38281 #endif
38282 /* We use char because int might match the return type of a gcc2
38283    builtin and then its argument prototype would still apply.  */
38284 char dlopen ();
38285 int
38286 main ()
38287 {
38288 dlopen ();
38289   ;
38290   return 0;
38291 }
38292 _ACEOF
38293 rm -f conftest.$ac_objext conftest$ac_exeext
38294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38295   (eval $ac_link) 2>conftest.er1
38296   ac_status=$?
38297   grep -v '^ *+' conftest.er1 >conftest.err
38298   rm -f conftest.er1
38299   cat conftest.err >&5
38300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301   (exit $ac_status); } &&
38302          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38304   (eval $ac_try) 2>&5
38305   ac_status=$?
38306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38307   (exit $ac_status); }; } &&
38308          { ac_try='test -s conftest$ac_exeext'
38309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38310   (eval $ac_try) 2>&5
38311   ac_status=$?
38312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38313   (exit $ac_status); }; }; then
38314   ac_cv_lib_dl_dlopen=yes
38315 else
38316   echo "$as_me: failed program was:" >&5
38317 sed 's/^/| /' conftest.$ac_ext >&5
38318
38319 ac_cv_lib_dl_dlopen=no
38320 fi
38321 rm -f conftest.err conftest.$ac_objext \
38322       conftest$ac_exeext conftest.$ac_ext
38323 LIBS=$ac_check_lib_save_LIBS
38324 fi
38325 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38326 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
38327 if test $ac_cv_lib_dl_dlopen = yes; then
38328
38329                                 cat >>confdefs.h <<\_ACEOF
38330 #define HAVE_DLOPEN 1
38331 _ACEOF
38332
38333                                 HAVE_DL_FUNCS=1
38334                                 DL_LINK=" -ldl$DL_LINK"
38335
38336 else
38337
38338
38339 for ac_func in shl_load
38340 do
38341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38342 echo "$as_me:$LINENO: checking for $ac_func" >&5
38343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38344 if eval "test \"\${$as_ac_var+set}\" = set"; then
38345   echo $ECHO_N "(cached) $ECHO_C" >&6
38346 else
38347   cat >conftest.$ac_ext <<_ACEOF
38348 /* confdefs.h.  */
38349 _ACEOF
38350 cat confdefs.h >>conftest.$ac_ext
38351 cat >>conftest.$ac_ext <<_ACEOF
38352 /* end confdefs.h.  */
38353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38355 #define $ac_func innocuous_$ac_func
38356
38357 /* System header to define __stub macros and hopefully few prototypes,
38358     which can conflict with char $ac_func (); below.
38359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38360     <limits.h> exists even on freestanding compilers.  */
38361
38362 #ifdef __STDC__
38363 # include <limits.h>
38364 #else
38365 # include <assert.h>
38366 #endif
38367
38368 #undef $ac_func
38369
38370 /* Override any gcc2 internal prototype to avoid an error.  */
38371 #ifdef __cplusplus
38372 extern "C"
38373 {
38374 #endif
38375 /* We use char because int might match the return type of a gcc2
38376    builtin and then its argument prototype would still apply.  */
38377 char $ac_func ();
38378 /* The GNU C library defines this for functions which it implements
38379     to always fail with ENOSYS.  Some functions are actually named
38380     something starting with __ and the normal name is an alias.  */
38381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38382 choke me
38383 #else
38384 char (*f) () = $ac_func;
38385 #endif
38386 #ifdef __cplusplus
38387 }
38388 #endif
38389
38390 int
38391 main ()
38392 {
38393 return f != $ac_func;
38394   ;
38395   return 0;
38396 }
38397 _ACEOF
38398 rm -f conftest.$ac_objext conftest$ac_exeext
38399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38400   (eval $ac_link) 2>conftest.er1
38401   ac_status=$?
38402   grep -v '^ *+' conftest.er1 >conftest.err
38403   rm -f conftest.er1
38404   cat conftest.err >&5
38405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406   (exit $ac_status); } &&
38407          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38409   (eval $ac_try) 2>&5
38410   ac_status=$?
38411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412   (exit $ac_status); }; } &&
38413          { ac_try='test -s conftest$ac_exeext'
38414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38415   (eval $ac_try) 2>&5
38416   ac_status=$?
38417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418   (exit $ac_status); }; }; then
38419   eval "$as_ac_var=yes"
38420 else
38421   echo "$as_me: failed program was:" >&5
38422 sed 's/^/| /' conftest.$ac_ext >&5
38423
38424 eval "$as_ac_var=no"
38425 fi
38426 rm -f conftest.err conftest.$ac_objext \
38427       conftest$ac_exeext conftest.$ac_ext
38428 fi
38429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38431 if test `eval echo '${'$as_ac_var'}'` = yes; then
38432   cat >>confdefs.h <<_ACEOF
38433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38434 _ACEOF
38435
38436                                                 cat >>confdefs.h <<\_ACEOF
38437 #define HAVE_SHL_LOAD 1
38438 _ACEOF
38439
38440                                                 HAVE_SHL_FUNCS=1
38441
38442 else
38443
38444                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
38445 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
38446 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
38447   echo $ECHO_N "(cached) $ECHO_C" >&6
38448 else
38449   ac_check_lib_save_LIBS=$LIBS
38450 LIBS="-lshl_load  $LIBS"
38451 cat >conftest.$ac_ext <<_ACEOF
38452 /* confdefs.h.  */
38453 _ACEOF
38454 cat confdefs.h >>conftest.$ac_ext
38455 cat >>conftest.$ac_ext <<_ACEOF
38456 /* end confdefs.h.  */
38457
38458 /* Override any gcc2 internal prototype to avoid an error.  */
38459 #ifdef __cplusplus
38460 extern "C"
38461 #endif
38462 /* We use char because int might match the return type of a gcc2
38463    builtin and then its argument prototype would still apply.  */
38464 char dld ();
38465 int
38466 main ()
38467 {
38468 dld ();
38469   ;
38470   return 0;
38471 }
38472 _ACEOF
38473 rm -f conftest.$ac_objext conftest$ac_exeext
38474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38475   (eval $ac_link) 2>conftest.er1
38476   ac_status=$?
38477   grep -v '^ *+' conftest.er1 >conftest.err
38478   rm -f conftest.er1
38479   cat conftest.err >&5
38480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481   (exit $ac_status); } &&
38482          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38484   (eval $ac_try) 2>&5
38485   ac_status=$?
38486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487   (exit $ac_status); }; } &&
38488          { ac_try='test -s conftest$ac_exeext'
38489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38490   (eval $ac_try) 2>&5
38491   ac_status=$?
38492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493   (exit $ac_status); }; }; then
38494   ac_cv_lib_shl_load_dld=yes
38495 else
38496   echo "$as_me: failed program was:" >&5
38497 sed 's/^/| /' conftest.$ac_ext >&5
38498
38499 ac_cv_lib_shl_load_dld=no
38500 fi
38501 rm -f conftest.err conftest.$ac_objext \
38502       conftest$ac_exeext conftest.$ac_ext
38503 LIBS=$ac_check_lib_save_LIBS
38504 fi
38505 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
38506 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
38507 if test $ac_cv_lib_shl_load_dld = yes; then
38508
38509                                                                 HAVE_SHL_FUNCS=1
38510                                                                 DL_LINK=" -ldld$DL_LINK"
38511
38512 fi
38513
38514
38515 fi
38516 done
38517
38518
38519 fi
38520
38521
38522 fi
38523 done
38524
38525
38526                 if test "$HAVE_DL_FUNCS" = 1; then
38527
38528 for ac_func in dlerror
38529 do
38530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38531 echo "$as_me:$LINENO: checking for $ac_func" >&5
38532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38533 if eval "test \"\${$as_ac_var+set}\" = set"; then
38534   echo $ECHO_N "(cached) $ECHO_C" >&6
38535 else
38536   cat >conftest.$ac_ext <<_ACEOF
38537 /* confdefs.h.  */
38538 _ACEOF
38539 cat confdefs.h >>conftest.$ac_ext
38540 cat >>conftest.$ac_ext <<_ACEOF
38541 /* end confdefs.h.  */
38542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38544 #define $ac_func innocuous_$ac_func
38545
38546 /* System header to define __stub macros and hopefully few prototypes,
38547     which can conflict with char $ac_func (); below.
38548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38549     <limits.h> exists even on freestanding compilers.  */
38550
38551 #ifdef __STDC__
38552 # include <limits.h>
38553 #else
38554 # include <assert.h>
38555 #endif
38556
38557 #undef $ac_func
38558
38559 /* Override any gcc2 internal prototype to avoid an error.  */
38560 #ifdef __cplusplus
38561 extern "C"
38562 {
38563 #endif
38564 /* We use char because int might match the return type of a gcc2
38565    builtin and then its argument prototype would still apply.  */
38566 char $ac_func ();
38567 /* The GNU C library defines this for functions which it implements
38568     to always fail with ENOSYS.  Some functions are actually named
38569     something starting with __ and the normal name is an alias.  */
38570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38571 choke me
38572 #else
38573 char (*f) () = $ac_func;
38574 #endif
38575 #ifdef __cplusplus
38576 }
38577 #endif
38578
38579 int
38580 main ()
38581 {
38582 return f != $ac_func;
38583   ;
38584   return 0;
38585 }
38586 _ACEOF
38587 rm -f conftest.$ac_objext conftest$ac_exeext
38588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38589   (eval $ac_link) 2>conftest.er1
38590   ac_status=$?
38591   grep -v '^ *+' conftest.er1 >conftest.err
38592   rm -f conftest.er1
38593   cat conftest.err >&5
38594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595   (exit $ac_status); } &&
38596          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38598   (eval $ac_try) 2>&5
38599   ac_status=$?
38600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601   (exit $ac_status); }; } &&
38602          { ac_try='test -s conftest$ac_exeext'
38603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38604   (eval $ac_try) 2>&5
38605   ac_status=$?
38606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38607   (exit $ac_status); }; }; then
38608   eval "$as_ac_var=yes"
38609 else
38610   echo "$as_me: failed program was:" >&5
38611 sed 's/^/| /' conftest.$ac_ext >&5
38612
38613 eval "$as_ac_var=no"
38614 fi
38615 rm -f conftest.err conftest.$ac_objext \
38616       conftest$ac_exeext conftest.$ac_ext
38617 fi
38618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38620 if test `eval echo '${'$as_ac_var'}'` = yes; then
38621   cat >>confdefs.h <<_ACEOF
38622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38623 _ACEOF
38624  cat >>confdefs.h <<\_ACEOF
38625 #define HAVE_DLERROR 1
38626 _ACEOF
38627
38628 else
38629
38630                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
38631 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
38632 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
38633   echo $ECHO_N "(cached) $ECHO_C" >&6
38634 else
38635   ac_check_lib_save_LIBS=$LIBS
38636 LIBS="-ldl  $LIBS"
38637 cat >conftest.$ac_ext <<_ACEOF
38638 /* confdefs.h.  */
38639 _ACEOF
38640 cat confdefs.h >>conftest.$ac_ext
38641 cat >>conftest.$ac_ext <<_ACEOF
38642 /* end confdefs.h.  */
38643
38644 /* Override any gcc2 internal prototype to avoid an error.  */
38645 #ifdef __cplusplus
38646 extern "C"
38647 #endif
38648 /* We use char because int might match the return type of a gcc2
38649    builtin and then its argument prototype would still apply.  */
38650 char dlerror ();
38651 int
38652 main ()
38653 {
38654 dlerror ();
38655   ;
38656   return 0;
38657 }
38658 _ACEOF
38659 rm -f conftest.$ac_objext conftest$ac_exeext
38660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38661   (eval $ac_link) 2>conftest.er1
38662   ac_status=$?
38663   grep -v '^ *+' conftest.er1 >conftest.err
38664   rm -f conftest.er1
38665   cat conftest.err >&5
38666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38667   (exit $ac_status); } &&
38668          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38670   (eval $ac_try) 2>&5
38671   ac_status=$?
38672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673   (exit $ac_status); }; } &&
38674          { ac_try='test -s conftest$ac_exeext'
38675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38676   (eval $ac_try) 2>&5
38677   ac_status=$?
38678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679   (exit $ac_status); }; }; then
38680   ac_cv_lib_dl_dlerror=yes
38681 else
38682   echo "$as_me: failed program was:" >&5
38683 sed 's/^/| /' conftest.$ac_ext >&5
38684
38685 ac_cv_lib_dl_dlerror=no
38686 fi
38687 rm -f conftest.err conftest.$ac_objext \
38688       conftest$ac_exeext conftest.$ac_ext
38689 LIBS=$ac_check_lib_save_LIBS
38690 fi
38691 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
38692 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
38693 if test $ac_cv_lib_dl_dlerror = yes; then
38694   cat >>confdefs.h <<\_ACEOF
38695 #define HAVE_DLERROR 1
38696 _ACEOF
38697
38698 fi
38699
38700
38701
38702 fi
38703 done
38704
38705         fi
38706         fi
38707
38708         if test "$HAVE_DL_FUNCS" = 0; then
38709             if test "$HAVE_SHL_FUNCS" = 0; then
38710               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
38711                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
38712 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
38713                   wxUSE_DYNAMIC_LOADER=no
38714                   wxUSE_DYNLIB_CLASS=no
38715               else
38716                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
38717 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
38718               fi
38719             fi
38720         fi
38721     fi
38722 fi
38723
38724 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38725     cat >>confdefs.h <<\_ACEOF
38726 #define wxUSE_DYNAMIC_LOADER 1
38727 _ACEOF
38728
38729 fi
38730 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38731     cat >>confdefs.h <<\_ACEOF
38732 #define wxUSE_DYNLIB_CLASS 1
38733 _ACEOF
38734
38735 fi
38736
38737
38738
38739 if test "$wxUSE_PLUGINS" = "yes" ; then
38740     if test "$wxUSE_SHARED" = "no" ; then
38741         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38742 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38743         wxUSE_PLUGINS=no
38744     fi
38745     if test "$wxUSE_MONOLITHIC" = "yes" ; then
38746         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38747 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38748         wxUSE_PLUGINS=no
38749     fi
38750     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38751         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38752 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38753         wxUSE_PLUGINS=no
38754     fi
38755     if test "$wxUSE_PLUGINS" = "yes" ; then
38756         cat >>confdefs.h <<\_ACEOF
38757 #define wxUSE_PLUGINS 1
38758 _ACEOF
38759
38760     fi
38761 fi
38762
38763
38764 if test "$wxUSE_STL" = "yes"; then
38765   cat >>confdefs.h <<\_ACEOF
38766 #define wxUSE_STL 1
38767 _ACEOF
38768
38769 fi
38770
38771 if test "$wxUSE_APPLE_IEEE" = "yes"; then
38772   cat >>confdefs.h <<\_ACEOF
38773 #define wxUSE_APPLE_IEEE 1
38774 _ACEOF
38775
38776 fi
38777
38778 if test "$wxUSE_TIMER" = "yes"; then
38779   cat >>confdefs.h <<\_ACEOF
38780 #define wxUSE_TIMER 1
38781 _ACEOF
38782
38783 fi
38784
38785 if test "$USE_UNIX" = "1" ; then
38786                 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38787 echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38788 if test "${ac_cv_header_sys_soundcard+set}" = set; then
38789   echo $ECHO_N "(cached) $ECHO_C" >&6
38790 else
38791
38792         cat >conftest.$ac_ext <<_ACEOF
38793 /* confdefs.h.  */
38794 _ACEOF
38795 cat confdefs.h >>conftest.$ac_ext
38796 cat >>conftest.$ac_ext <<_ACEOF
38797 /* end confdefs.h.  */
38798
38799                 #include <sys/soundcard.h>
38800
38801 int
38802 main ()
38803 {
38804
38805                 ioctl(0, SNDCTL_DSP_SYNC, 0);
38806
38807   ;
38808   return 0;
38809 }
38810 _ACEOF
38811 rm -f conftest.$ac_objext conftest$ac_exeext
38812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38813   (eval $ac_link) 2>conftest.er1
38814   ac_status=$?
38815   grep -v '^ *+' conftest.er1 >conftest.err
38816   rm -f conftest.er1
38817   cat conftest.err >&5
38818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38819   (exit $ac_status); } &&
38820          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38822   (eval $ac_try) 2>&5
38823   ac_status=$?
38824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38825   (exit $ac_status); }; } &&
38826          { ac_try='test -s conftest$ac_exeext'
38827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38828   (eval $ac_try) 2>&5
38829   ac_status=$?
38830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38831   (exit $ac_status); }; }; then
38832   ac_cv_header_sys_soundcard=yes
38833 else
38834   echo "$as_me: failed program was:" >&5
38835 sed 's/^/| /' conftest.$ac_ext >&5
38836
38837
38838                 saveLibs="$LIBS"
38839                 LIBS="$saveLibs -lossaudio"
38840                 cat >conftest.$ac_ext <<_ACEOF
38841 /* confdefs.h.  */
38842 _ACEOF
38843 cat confdefs.h >>conftest.$ac_ext
38844 cat >>conftest.$ac_ext <<_ACEOF
38845 /* end confdefs.h.  */
38846
38847                         #include <sys/soundcard.h>
38848
38849 int
38850 main ()
38851 {
38852
38853                         ioctl(0, SNDCTL_DSP_SYNC, 0);
38854
38855   ;
38856   return 0;
38857 }
38858 _ACEOF
38859 rm -f conftest.$ac_objext conftest$ac_exeext
38860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38861   (eval $ac_link) 2>conftest.er1
38862   ac_status=$?
38863   grep -v '^ *+' conftest.er1 >conftest.err
38864   rm -f conftest.er1
38865   cat conftest.err >&5
38866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38867   (exit $ac_status); } &&
38868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38870   (eval $ac_try) 2>&5
38871   ac_status=$?
38872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38873   (exit $ac_status); }; } &&
38874          { ac_try='test -s conftest$ac_exeext'
38875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38876   (eval $ac_try) 2>&5
38877   ac_status=$?
38878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879   (exit $ac_status); }; }; then
38880   ac_cv_header_sys_soundcard=yes
38881 else
38882   echo "$as_me: failed program was:" >&5
38883 sed 's/^/| /' conftest.$ac_ext >&5
38884
38885
38886                         LIBS="$saveLibs"
38887                         ac_cv_header_sys_soundcard=no
38888
38889
38890 fi
38891 rm -f conftest.err conftest.$ac_objext \
38892       conftest$ac_exeext conftest.$ac_ext
38893
38894
38895 fi
38896 rm -f conftest.err conftest.$ac_objext \
38897       conftest$ac_exeext conftest.$ac_ext
38898
38899 fi
38900 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38901 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
38902
38903     if test "$ac_cv_header_sys_soundcard" = "yes"; then
38904         cat >>confdefs.h <<\_ACEOF
38905 #define HAVE_SYS_SOUNDCARD_H 1
38906 _ACEOF
38907
38908     else
38909         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38910     fi
38911 fi
38912 WITH_PLUGIN_SDL=0
38913 if test "$wxUSE_SOUND" = "yes"; then
38914   if test "$USE_UNIX" = "1" ; then
38915     if test "$wxUSE_LIBSDL" != "no"; then
38916
38917 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38918 if test "${with_sdl_prefix+set}" = set; then
38919   withval="$with_sdl_prefix"
38920   sdl_prefix="$withval"
38921 else
38922   sdl_prefix=""
38923 fi;
38924
38925 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38926 if test "${with_sdl_exec_prefix+set}" = set; then
38927   withval="$with_sdl_exec_prefix"
38928   sdl_exec_prefix="$withval"
38929 else
38930   sdl_exec_prefix=""
38931 fi;
38932 # Check whether --enable-sdltest or --disable-sdltest was given.
38933 if test "${enable_sdltest+set}" = set; then
38934   enableval="$enable_sdltest"
38935
38936 else
38937   enable_sdltest=yes
38938 fi;
38939
38940   if test x$sdl_exec_prefix != x ; then
38941      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38942      if test x${SDL_CONFIG+set} != xset ; then
38943         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38944      fi
38945   fi
38946   if test x$sdl_prefix != x ; then
38947      sdl_args="$sdl_args --prefix=$sdl_prefix"
38948      if test x${SDL_CONFIG+set} != xset ; then
38949         SDL_CONFIG=$sdl_prefix/bin/sdl-config
38950      fi
38951   fi
38952
38953
38954   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38955   # Extract the first word of "sdl-config", so it can be a program name with args.
38956 set dummy sdl-config; ac_word=$2
38957 echo "$as_me:$LINENO: checking for $ac_word" >&5
38958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38959 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38960   echo $ECHO_N "(cached) $ECHO_C" >&6
38961 else
38962   case $SDL_CONFIG in
38963   [\\/]* | ?:[\\/]*)
38964   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38965   ;;
38966   *)
38967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38968 for as_dir in $PATH
38969 do
38970   IFS=$as_save_IFS
38971   test -z "$as_dir" && as_dir=.
38972   for ac_exec_ext in '' $ac_executable_extensions; do
38973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38974     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38976     break 2
38977   fi
38978 done
38979 done
38980
38981   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38982   ;;
38983 esac
38984 fi
38985 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38986
38987 if test -n "$SDL_CONFIG"; then
38988   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38989 echo "${ECHO_T}$SDL_CONFIG" >&6
38990 else
38991   echo "$as_me:$LINENO: result: no" >&5
38992 echo "${ECHO_T}no" >&6
38993 fi
38994
38995   min_sdl_version=1.2.0
38996   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38997 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38998   no_sdl=""
38999   if test "$SDL_CONFIG" = "no" ; then
39000     no_sdl=yes
39001   else
39002     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
39003     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
39004
39005     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
39006            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
39007     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
39008            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
39009     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
39010            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
39011     if test "x$enable_sdltest" = "xyes" ; then
39012       ac_save_CFLAGS="$CFLAGS"
39013       ac_save_CXXFLAGS="$CXXFLAGS"
39014       ac_save_LIBS="$LIBS"
39015       CFLAGS="$CFLAGS $SDL_CFLAGS"
39016       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39017       LIBS="$LIBS $SDL_LIBS"
39018       rm -f conf.sdltest
39019       if test "$cross_compiling" = yes; then
39020   echo $ac_n "cross compiling; assumed OK... $ac_c"
39021 else
39022   cat >conftest.$ac_ext <<_ACEOF
39023 /* confdefs.h.  */
39024 _ACEOF
39025 cat confdefs.h >>conftest.$ac_ext
39026 cat >>conftest.$ac_ext <<_ACEOF
39027 /* end confdefs.h.  */
39028
39029 #include <stdio.h>
39030 #include <stdlib.h>
39031 #include <string.h>
39032 #include "SDL.h"
39033
39034 char*
39035 my_strdup (char *str)
39036 {
39037   char *new_str;
39038
39039   if (str)
39040     {
39041       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
39042       strcpy (new_str, str);
39043     }
39044   else
39045     new_str = NULL;
39046
39047   return new_str;
39048 }
39049
39050 int main (int argc, char *argv[])
39051 {
39052   int major, minor, micro;
39053   char *tmp_version;
39054
39055   /* This hangs on some systems (?)
39056   system ("touch conf.sdltest");
39057   */
39058   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
39059
39060   /* HP/UX 9 (%@#!) writes to sscanf strings */
39061   tmp_version = my_strdup("$min_sdl_version");
39062   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
39063      printf("%s, bad version string\n", "$min_sdl_version");
39064      exit(1);
39065    }
39066
39067    if (($sdl_major_version > major) ||
39068       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
39069       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
39070     {
39071       return 0;
39072     }
39073   else
39074     {
39075       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
39076       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
39077       printf("*** best to upgrade to the required version.\n");
39078       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
39079       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
39080       printf("*** config.cache before re-running configure\n");
39081       return 1;
39082     }
39083 }
39084
39085
39086 _ACEOF
39087 rm -f conftest$ac_exeext
39088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39089   (eval $ac_link) 2>&5
39090   ac_status=$?
39091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39094   (eval $ac_try) 2>&5
39095   ac_status=$?
39096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39097   (exit $ac_status); }; }; then
39098   :
39099 else
39100   echo "$as_me: program exited with status $ac_status" >&5
39101 echo "$as_me: failed program was:" >&5
39102 sed 's/^/| /' conftest.$ac_ext >&5
39103
39104 ( exit $ac_status )
39105 no_sdl=yes
39106 fi
39107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39108 fi
39109        CFLAGS="$ac_save_CFLAGS"
39110        CXXFLAGS="$ac_save_CXXFLAGS"
39111        LIBS="$ac_save_LIBS"
39112      fi
39113   fi
39114   if test "x$no_sdl" = x ; then
39115      echo "$as_me:$LINENO: result: yes" >&5
39116 echo "${ECHO_T}yes" >&6
39117
39118                     EXTRALIBS_SDL="$SDL_LIBS"
39119                     CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39120                     cat >>confdefs.h <<\_ACEOF
39121 #define wxUSE_LIBSDL 1
39122 _ACEOF
39123
39124
39125   else
39126      echo "$as_me:$LINENO: result: no" >&5
39127 echo "${ECHO_T}no" >&6
39128      if test "$SDL_CONFIG" = "no" ; then
39129        echo "*** The sdl-config script installed by SDL could not be found"
39130        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
39131        echo "*** your path, or set the SDL_CONFIG environment variable to the"
39132        echo "*** full path to sdl-config."
39133      else
39134        if test -f conf.sdltest ; then
39135         :
39136        else
39137           echo "*** Could not run SDL test program, checking why..."
39138           CFLAGS="$CFLAGS $SDL_CFLAGS"
39139           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39140           LIBS="$LIBS $SDL_LIBS"
39141           cat >conftest.$ac_ext <<_ACEOF
39142 /* confdefs.h.  */
39143 _ACEOF
39144 cat confdefs.h >>conftest.$ac_ext
39145 cat >>conftest.$ac_ext <<_ACEOF
39146 /* end confdefs.h.  */
39147
39148 #include <stdio.h>
39149 #include "SDL.h"
39150
39151 int main(int argc, char *argv[])
39152 { return 0; }
39153 #undef  main
39154 #define main K_and_R_C_main
39155
39156 int
39157 main ()
39158 {
39159  return 0;
39160   ;
39161   return 0;
39162 }
39163 _ACEOF
39164 rm -f conftest.$ac_objext conftest$ac_exeext
39165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39166   (eval $ac_link) 2>conftest.er1
39167   ac_status=$?
39168   grep -v '^ *+' conftest.er1 >conftest.err
39169   rm -f conftest.er1
39170   cat conftest.err >&5
39171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172   (exit $ac_status); } &&
39173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39175   (eval $ac_try) 2>&5
39176   ac_status=$?
39177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178   (exit $ac_status); }; } &&
39179          { ac_try='test -s conftest$ac_exeext'
39180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39181   (eval $ac_try) 2>&5
39182   ac_status=$?
39183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39184   (exit $ac_status); }; }; then
39185    echo "*** The test program compiled, but did not run. This usually means"
39186           echo "*** that the run-time linker is not finding SDL or finding the wrong"
39187           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
39188           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
39189           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
39190           echo "*** is required on your system"
39191           echo "***"
39192           echo "*** If you have an old version installed, it is best to remove it, although"
39193           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
39194 else
39195   echo "$as_me: failed program was:" >&5
39196 sed 's/^/| /' conftest.$ac_ext >&5
39197
39198  echo "*** The test program failed to compile or link. See the file config.log for the"
39199           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
39200           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
39201           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
39202 fi
39203 rm -f conftest.err conftest.$ac_objext \
39204       conftest$ac_exeext conftest.$ac_ext
39205           CFLAGS="$ac_save_CFLAGS"
39206           CXXFLAGS="$ac_save_CXXFLAGS"
39207           LIBS="$ac_save_LIBS"
39208        fi
39209      fi
39210      SDL_CFLAGS=""
39211      SDL_LIBS=""
39212      wxUSE_LIBSDL="no"
39213   fi
39214
39215
39216   rm -f conf.sdltest
39217
39218       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
39219         WITH_PLUGIN_SDL=1
39220       fi
39221     fi
39222   fi
39223
39224   cat >>confdefs.h <<\_ACEOF
39225 #define wxUSE_SOUND 1
39226 _ACEOF
39227
39228   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
39229 fi
39230
39231 if test "$WXGTK20" = 1; then
39232     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39233         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
39234
39235
39236   succeeded=no
39237
39238   if test -z "$PKG_CONFIG"; then
39239     # Extract the first word of "pkg-config", so it can be a program name with args.
39240 set dummy pkg-config; ac_word=$2
39241 echo "$as_me:$LINENO: checking for $ac_word" >&5
39242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39243 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39244   echo $ECHO_N "(cached) $ECHO_C" >&6
39245 else
39246   case $PKG_CONFIG in
39247   [\\/]* | ?:[\\/]*)
39248   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39249   ;;
39250   *)
39251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39252 for as_dir in $PATH
39253 do
39254   IFS=$as_save_IFS
39255   test -z "$as_dir" && as_dir=.
39256   for ac_exec_ext in '' $ac_executable_extensions; do
39257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39258     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39260     break 2
39261   fi
39262 done
39263 done
39264
39265   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39266   ;;
39267 esac
39268 fi
39269 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39270
39271 if test -n "$PKG_CONFIG"; then
39272   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39273 echo "${ECHO_T}$PKG_CONFIG" >&6
39274 else
39275   echo "$as_me:$LINENO: result: no" >&5
39276 echo "${ECHO_T}no" >&6
39277 fi
39278
39279   fi
39280
39281   if test "$PKG_CONFIG" = "no" ; then
39282      echo "*** The pkg-config script could not be found. Make sure it is"
39283      echo "*** in your path, or set the PKG_CONFIG environment variable"
39284      echo "*** to the full path to pkg-config."
39285      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39286   else
39287      PKG_CONFIG_MIN_VERSION=0.9.0
39288      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39289         echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
39290 echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
39291
39292         if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
39293             echo "$as_me:$LINENO: result: yes" >&5
39294 echo "${ECHO_T}yes" >&6
39295             succeeded=yes
39296
39297             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
39298 echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
39299             LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
39300             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
39301 echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
39302
39303             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
39304 echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
39305             LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
39306             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
39307 echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
39308         else
39309             LIBGNOMEPRINTUI_CFLAGS=""
39310             LIBGNOMEPRINTUI_LIBS=""
39311             ## If we have a custom action on failure, don't print errors, but
39312             ## do set a variable so people can do so.
39313             LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
39314
39315         fi
39316
39317
39318
39319      else
39320         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39321         echo "*** See http://www.freedesktop.org/software/pkgconfig"
39322      fi
39323   fi
39324
39325   if test $succeeded = yes; then
39326
39327                         CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
39328                         cat >>confdefs.h <<\_ACEOF
39329 #define wxUSE_LIBGNOMEPRINT 1
39330 _ACEOF
39331
39332
39333   else
39334
39335                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
39336 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
39337                         wxUSE_LIBGNOMEPRINT="no"
39338
39339
39340   fi
39341
39342         fi
39343     fi
39344 fi
39345
39346
39347 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
39348   cat >>confdefs.h <<\_ACEOF
39349 #define wxUSE_CMDLINE_PARSER 1
39350 _ACEOF
39351
39352 fi
39353
39354 if test "$wxUSE_STOPWATCH" = "yes"; then
39355   cat >>confdefs.h <<\_ACEOF
39356 #define wxUSE_STOPWATCH 1
39357 _ACEOF
39358
39359 fi
39360
39361 if test "$wxUSE_DATETIME" = "yes"; then
39362   cat >>confdefs.h <<\_ACEOF
39363 #define wxUSE_DATETIME 1
39364 _ACEOF
39365
39366 fi
39367
39368 if test "$wxUSE_FILE" = "yes"; then
39369   cat >>confdefs.h <<\_ACEOF
39370 #define wxUSE_FILE 1
39371 _ACEOF
39372
39373 fi
39374
39375 if test "$wxUSE_FFILE" = "yes"; then
39376   cat >>confdefs.h <<\_ACEOF
39377 #define wxUSE_FFILE 1
39378 _ACEOF
39379
39380 fi
39381
39382 if test "$wxUSE_FILESYSTEM" = "yes"; then
39383   cat >>confdefs.h <<\_ACEOF
39384 #define wxUSE_FILESYSTEM 1
39385 _ACEOF
39386
39387 fi
39388
39389 if test "$wxUSE_FS_ZIP" = "yes"; then
39390   cat >>confdefs.h <<\_ACEOF
39391 #define wxUSE_FS_ZIP 1
39392 _ACEOF
39393
39394 fi
39395
39396 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
39397   cat >>confdefs.h <<\_ACEOF
39398 #define wxUSE_ARCHIVE_STREAMS 1
39399 _ACEOF
39400
39401 fi
39402
39403 if test "$wxUSE_ZIPSTREAM" = "yes"; then
39404   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
39405     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
39406 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
39407   elif test "$wxUSE_ZLIB" = "no"; then
39408     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
39409 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
39410   else
39411     cat >>confdefs.h <<\_ACEOF
39412 #define wxUSE_ZIPSTREAM 1
39413 _ACEOF
39414
39415   fi
39416 fi
39417
39418 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39419   if test "$USE_UNIX" != 1; then
39420     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
39421 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
39422     wxUSE_ON_FATAL_EXCEPTION=no
39423   else
39424     cat >>confdefs.h <<\_ACEOF
39425 #define wxUSE_ON_FATAL_EXCEPTION 1
39426 _ACEOF
39427
39428   fi
39429 fi
39430
39431 if test "$wxUSE_STACKWALKER" = "yes"; then
39432     cat >>confdefs.h <<\_ACEOF
39433 #define wxUSE_STACKWALKER 1
39434 _ACEOF
39435
39436 fi
39437
39438 if test "$wxUSE_DEBUGREPORT" = "yes"; then
39439     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
39440         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
39441 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
39442         wxUSE_DEBUGREPORT=no
39443     else
39444         cat >>confdefs.h <<\_ACEOF
39445 #define wxUSE_DEBUGREPORT 1
39446 _ACEOF
39447
39448         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39449             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
39450         fi
39451     fi
39452 fi
39453
39454 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39455   cat >>confdefs.h <<\_ACEOF
39456 #define wxUSE_SNGLINST_CHECKER 1
39457 _ACEOF
39458
39459 fi
39460
39461 if test "$wxUSE_BUSYINFO" = "yes"; then
39462   cat >>confdefs.h <<\_ACEOF
39463 #define wxUSE_BUSYINFO 1
39464 _ACEOF
39465
39466 fi
39467
39468 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
39469   cat >>confdefs.h <<\_ACEOF
39470 #define wxUSE_STD_IOSTREAM 1
39471 _ACEOF
39472
39473 fi
39474
39475 if test "$wxUSE_STD_STRING" = "yes"; then
39476   cat >>confdefs.h <<\_ACEOF
39477 #define wxUSE_STD_STRING 1
39478 _ACEOF
39479
39480 fi
39481
39482 if test "$wxUSE_STDPATHS" = "yes"; then
39483   cat >>confdefs.h <<\_ACEOF
39484 #define wxUSE_STDPATHS 1
39485 _ACEOF
39486
39487 fi
39488
39489 if test "$wxUSE_TEXTBUFFER" = "yes"; then
39490     cat >>confdefs.h <<\_ACEOF
39491 #define wxUSE_TEXTBUFFER 1
39492 _ACEOF
39493
39494 fi
39495
39496 if test "$wxUSE_TEXTFILE" = "yes"; then
39497   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
39498     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
39499 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
39500   else
39501     cat >>confdefs.h <<\_ACEOF
39502 #define wxUSE_TEXTFILE 1
39503 _ACEOF
39504
39505   fi
39506 fi
39507
39508 if test "$wxUSE_CONFIG" = "yes" ; then
39509   if test "$wxUSE_TEXTFILE" != "yes"; then
39510     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
39511 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
39512   else
39513     cat >>confdefs.h <<\_ACEOF
39514 #define wxUSE_CONFIG 1
39515 _ACEOF
39516
39517     cat >>confdefs.h <<\_ACEOF
39518 #define wxUSE_CONFIG_NATIVE 1
39519 _ACEOF
39520
39521     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
39522   fi
39523 fi
39524
39525 if test "$wxUSE_INTL" = "yes" ; then
39526   if test "$wxUSE_FILE" != "yes"; then
39527     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
39528 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
39529   else
39530     cat >>confdefs.h <<\_ACEOF
39531 #define wxUSE_INTL 1
39532 _ACEOF
39533
39534     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
39535     GUIDIST="$GUIDIST INTL_DIST"
39536   fi
39537 fi
39538
39539 if test "$wxUSE_LOG" = "yes"; then
39540   cat >>confdefs.h <<\_ACEOF
39541 #define wxUSE_LOG 1
39542 _ACEOF
39543
39544
39545     if test "$wxUSE_LOGGUI" = "yes"; then
39546       cat >>confdefs.h <<\_ACEOF
39547 #define wxUSE_LOGGUI 1
39548 _ACEOF
39549
39550     fi
39551
39552     if test "$wxUSE_LOGWINDOW" = "yes"; then
39553       cat >>confdefs.h <<\_ACEOF
39554 #define wxUSE_LOGWINDOW 1
39555 _ACEOF
39556
39557     fi
39558
39559     if test "$wxUSE_LOGDIALOG" = "yes"; then
39560       cat >>confdefs.h <<\_ACEOF
39561 #define wxUSE_LOG_DIALOG 1
39562 _ACEOF
39563
39564     fi
39565
39566         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
39567 fi
39568
39569 if test "$wxUSE_LONGLONG" = "yes"; then
39570   cat >>confdefs.h <<\_ACEOF
39571 #define wxUSE_LONGLONG 1
39572 _ACEOF
39573
39574 fi
39575
39576 if test "$wxUSE_GEOMETRY" = "yes"; then
39577   cat >>confdefs.h <<\_ACEOF
39578 #define wxUSE_GEOMETRY 1
39579 _ACEOF
39580
39581 fi
39582
39583 if test "$wxUSE_STREAMS" = "yes" ; then
39584   cat >>confdefs.h <<\_ACEOF
39585 #define wxUSE_STREAMS 1
39586 _ACEOF
39587
39588 fi
39589
39590
39591 if test "$wxUSE_DATETIME" = "yes"; then
39592
39593 for ac_func in strptime
39594 do
39595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39596 echo "$as_me:$LINENO: checking for $ac_func" >&5
39597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39598 if eval "test \"\${$as_ac_var+set}\" = set"; then
39599   echo $ECHO_N "(cached) $ECHO_C" >&6
39600 else
39601   cat >conftest.$ac_ext <<_ACEOF
39602 /* confdefs.h.  */
39603 _ACEOF
39604 cat confdefs.h >>conftest.$ac_ext
39605 cat >>conftest.$ac_ext <<_ACEOF
39606 /* end confdefs.h.  */
39607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39609 #define $ac_func innocuous_$ac_func
39610
39611 /* System header to define __stub macros and hopefully few prototypes,
39612     which can conflict with char $ac_func (); below.
39613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39614     <limits.h> exists even on freestanding compilers.  */
39615
39616 #ifdef __STDC__
39617 # include <limits.h>
39618 #else
39619 # include <assert.h>
39620 #endif
39621
39622 #undef $ac_func
39623
39624 /* Override any gcc2 internal prototype to avoid an error.  */
39625 #ifdef __cplusplus
39626 extern "C"
39627 {
39628 #endif
39629 /* We use char because int might match the return type of a gcc2
39630    builtin and then its argument prototype would still apply.  */
39631 char $ac_func ();
39632 /* The GNU C library defines this for functions which it implements
39633     to always fail with ENOSYS.  Some functions are actually named
39634     something starting with __ and the normal name is an alias.  */
39635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39636 choke me
39637 #else
39638 char (*f) () = $ac_func;
39639 #endif
39640 #ifdef __cplusplus
39641 }
39642 #endif
39643
39644 int
39645 main ()
39646 {
39647 return f != $ac_func;
39648   ;
39649   return 0;
39650 }
39651 _ACEOF
39652 rm -f conftest.$ac_objext conftest$ac_exeext
39653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39654   (eval $ac_link) 2>conftest.er1
39655   ac_status=$?
39656   grep -v '^ *+' conftest.er1 >conftest.err
39657   rm -f conftest.er1
39658   cat conftest.err >&5
39659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660   (exit $ac_status); } &&
39661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39663   (eval $ac_try) 2>&5
39664   ac_status=$?
39665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666   (exit $ac_status); }; } &&
39667          { ac_try='test -s conftest$ac_exeext'
39668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39669   (eval $ac_try) 2>&5
39670   ac_status=$?
39671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39672   (exit $ac_status); }; }; then
39673   eval "$as_ac_var=yes"
39674 else
39675   echo "$as_me: failed program was:" >&5
39676 sed 's/^/| /' conftest.$ac_ext >&5
39677
39678 eval "$as_ac_var=no"
39679 fi
39680 rm -f conftest.err conftest.$ac_objext \
39681       conftest$ac_exeext conftest.$ac_ext
39682 fi
39683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39685 if test `eval echo '${'$as_ac_var'}'` = yes; then
39686   cat >>confdefs.h <<_ACEOF
39687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39688 _ACEOF
39689
39690 fi
39691 done
39692
39693     if test "$ac_cv_func_strptime" = "yes"; then
39694         echo "$as_me:$LINENO: checking for strptime declaration" >&5
39695 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
39696 if test "${wx_cv_func_strptime_decl+set}" = set; then
39697   echo $ECHO_N "(cached) $ECHO_C" >&6
39698 else
39699
39700
39701
39702                 ac_ext=cc
39703 ac_cpp='$CXXCPP $CPPFLAGS'
39704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39707
39708                 cat >conftest.$ac_ext <<_ACEOF
39709 /* confdefs.h.  */
39710 _ACEOF
39711 cat confdefs.h >>conftest.$ac_ext
39712 cat >>conftest.$ac_ext <<_ACEOF
39713 /* end confdefs.h.  */
39714
39715                         #include <time.h>
39716
39717 int
39718 main ()
39719 {
39720
39721                         struct tm t;
39722                         strptime("foo", "bar", &t);
39723
39724   ;
39725   return 0;
39726 }
39727 _ACEOF
39728 rm -f conftest.$ac_objext
39729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39730   (eval $ac_compile) 2>conftest.er1
39731   ac_status=$?
39732   grep -v '^ *+' conftest.er1 >conftest.err
39733   rm -f conftest.er1
39734   cat conftest.err >&5
39735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736   (exit $ac_status); } &&
39737          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39739   (eval $ac_try) 2>&5
39740   ac_status=$?
39741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39742   (exit $ac_status); }; } &&
39743          { ac_try='test -s conftest.$ac_objext'
39744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39745   (eval $ac_try) 2>&5
39746   ac_status=$?
39747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39748   (exit $ac_status); }; }; then
39749   wx_cv_func_strptime_decl=yes
39750 else
39751   echo "$as_me: failed program was:" >&5
39752 sed 's/^/| /' conftest.$ac_ext >&5
39753
39754 wx_cv_func_strptime_decl=no
39755
39756 fi
39757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39758                 ac_ext=c
39759 ac_cpp='$CPP $CPPFLAGS'
39760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39763
39764
39765
39766 fi
39767 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
39768 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
39769     fi
39770     if test "$wx_cv_func_strptime_decl" = "yes"; then
39771         cat >>confdefs.h <<\_ACEOF
39772 #define HAVE_STRPTIME_DECL 1
39773 _ACEOF
39774
39775     fi
39776
39777             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
39778 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
39779 if test "${wx_cv_var_timezone+set}" = set; then
39780   echo $ECHO_N "(cached) $ECHO_C" >&6
39781 else
39782
39783                         cat >conftest.$ac_ext <<_ACEOF
39784 /* confdefs.h.  */
39785 _ACEOF
39786 cat confdefs.h >>conftest.$ac_ext
39787 cat >>conftest.$ac_ext <<_ACEOF
39788 /* end confdefs.h.  */
39789
39790                                 #include <time.h>
39791
39792 int
39793 main ()
39794 {
39795
39796                                 int tz;
39797                                 tz = timezone;
39798
39799   ;
39800   return 0;
39801 }
39802 _ACEOF
39803 rm -f conftest.$ac_objext
39804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39805   (eval $ac_compile) 2>conftest.er1
39806   ac_status=$?
39807   grep -v '^ *+' conftest.er1 >conftest.err
39808   rm -f conftest.er1
39809   cat conftest.err >&5
39810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39811   (exit $ac_status); } &&
39812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39814   (eval $ac_try) 2>&5
39815   ac_status=$?
39816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817   (exit $ac_status); }; } &&
39818          { ac_try='test -s conftest.$ac_objext'
39819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39820   (eval $ac_try) 2>&5
39821   ac_status=$?
39822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39823   (exit $ac_status); }; }; then
39824
39825                                 wx_cv_var_timezone=timezone
39826
39827 else
39828   echo "$as_me: failed program was:" >&5
39829 sed 's/^/| /' conftest.$ac_ext >&5
39830
39831
39832                                 cat >conftest.$ac_ext <<_ACEOF
39833 /* confdefs.h.  */
39834 _ACEOF
39835 cat confdefs.h >>conftest.$ac_ext
39836 cat >>conftest.$ac_ext <<_ACEOF
39837 /* end confdefs.h.  */
39838
39839                                         #include <time.h>
39840
39841 int
39842 main ()
39843 {
39844
39845                                         int tz;
39846                                         tz = _timezone;
39847
39848   ;
39849   return 0;
39850 }
39851 _ACEOF
39852 rm -f conftest.$ac_objext
39853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39854   (eval $ac_compile) 2>conftest.er1
39855   ac_status=$?
39856   grep -v '^ *+' conftest.er1 >conftest.err
39857   rm -f conftest.er1
39858   cat conftest.err >&5
39859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39860   (exit $ac_status); } &&
39861          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39863   (eval $ac_try) 2>&5
39864   ac_status=$?
39865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39866   (exit $ac_status); }; } &&
39867          { ac_try='test -s conftest.$ac_objext'
39868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39869   (eval $ac_try) 2>&5
39870   ac_status=$?
39871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39872   (exit $ac_status); }; }; then
39873
39874                                         wx_cv_var_timezone=_timezone
39875
39876 else
39877   echo "$as_me: failed program was:" >&5
39878 sed 's/^/| /' conftest.$ac_ext >&5
39879
39880
39881                                         cat >conftest.$ac_ext <<_ACEOF
39882 /* confdefs.h.  */
39883 _ACEOF
39884 cat confdefs.h >>conftest.$ac_ext
39885 cat >>conftest.$ac_ext <<_ACEOF
39886 /* end confdefs.h.  */
39887
39888                                                 #include <time.h>
39889
39890 int
39891 main ()
39892 {
39893
39894                                                 int tz;
39895                                                 tz = __timezone;
39896
39897   ;
39898   return 0;
39899 }
39900 _ACEOF
39901 rm -f conftest.$ac_objext
39902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39903   (eval $ac_compile) 2>conftest.er1
39904   ac_status=$?
39905   grep -v '^ *+' conftest.er1 >conftest.err
39906   rm -f conftest.er1
39907   cat conftest.err >&5
39908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39909   (exit $ac_status); } &&
39910          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39912   (eval $ac_try) 2>&5
39913   ac_status=$?
39914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39915   (exit $ac_status); }; } &&
39916          { ac_try='test -s conftest.$ac_objext'
39917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39918   (eval $ac_try) 2>&5
39919   ac_status=$?
39920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39921   (exit $ac_status); }; }; then
39922
39923                                                 wx_cv_var_timezone=__timezone
39924
39925 else
39926   echo "$as_me: failed program was:" >&5
39927 sed 's/^/| /' conftest.$ac_ext >&5
39928
39929
39930                                                 if test "$USE_DOS" = 0 ; then
39931                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39932 echo "$as_me: WARNING: no timezone variable" >&2;}
39933                                                 fi
39934
39935
39936 fi
39937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39938
39939
39940 fi
39941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39942
39943
39944 fi
39945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39946
39947
39948 fi
39949 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39950 echo "${ECHO_T}$wx_cv_var_timezone" >&6
39951
39952         if test "x$wx_cv_var_timezone" != x ; then
39953         cat >>confdefs.h <<_ACEOF
39954 #define WX_TIMEZONE $wx_cv_var_timezone
39955 _ACEOF
39956
39957     fi
39958
39959
39960 for ac_func in localtime
39961 do
39962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39963 echo "$as_me:$LINENO: checking for $ac_func" >&5
39964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39965 if eval "test \"\${$as_ac_var+set}\" = set"; then
39966   echo $ECHO_N "(cached) $ECHO_C" >&6
39967 else
39968   cat >conftest.$ac_ext <<_ACEOF
39969 /* confdefs.h.  */
39970 _ACEOF
39971 cat confdefs.h >>conftest.$ac_ext
39972 cat >>conftest.$ac_ext <<_ACEOF
39973 /* end confdefs.h.  */
39974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39976 #define $ac_func innocuous_$ac_func
39977
39978 /* System header to define __stub macros and hopefully few prototypes,
39979     which can conflict with char $ac_func (); below.
39980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39981     <limits.h> exists even on freestanding compilers.  */
39982
39983 #ifdef __STDC__
39984 # include <limits.h>
39985 #else
39986 # include <assert.h>
39987 #endif
39988
39989 #undef $ac_func
39990
39991 /* Override any gcc2 internal prototype to avoid an error.  */
39992 #ifdef __cplusplus
39993 extern "C"
39994 {
39995 #endif
39996 /* We use char because int might match the return type of a gcc2
39997    builtin and then its argument prototype would still apply.  */
39998 char $ac_func ();
39999 /* The GNU C library defines this for functions which it implements
40000     to always fail with ENOSYS.  Some functions are actually named
40001     something starting with __ and the normal name is an alias.  */
40002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40003 choke me
40004 #else
40005 char (*f) () = $ac_func;
40006 #endif
40007 #ifdef __cplusplus
40008 }
40009 #endif
40010
40011 int
40012 main ()
40013 {
40014 return f != $ac_func;
40015   ;
40016   return 0;
40017 }
40018 _ACEOF
40019 rm -f conftest.$ac_objext conftest$ac_exeext
40020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40021   (eval $ac_link) 2>conftest.er1
40022   ac_status=$?
40023   grep -v '^ *+' conftest.er1 >conftest.err
40024   rm -f conftest.er1
40025   cat conftest.err >&5
40026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40027   (exit $ac_status); } &&
40028          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40030   (eval $ac_try) 2>&5
40031   ac_status=$?
40032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40033   (exit $ac_status); }; } &&
40034          { ac_try='test -s conftest$ac_exeext'
40035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036   (eval $ac_try) 2>&5
40037   ac_status=$?
40038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039   (exit $ac_status); }; }; then
40040   eval "$as_ac_var=yes"
40041 else
40042   echo "$as_me: failed program was:" >&5
40043 sed 's/^/| /' conftest.$ac_ext >&5
40044
40045 eval "$as_ac_var=no"
40046 fi
40047 rm -f conftest.err conftest.$ac_objext \
40048       conftest$ac_exeext conftest.$ac_ext
40049 fi
40050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40052 if test `eval echo '${'$as_ac_var'}'` = yes; then
40053   cat >>confdefs.h <<_ACEOF
40054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40055 _ACEOF
40056
40057 fi
40058 done
40059
40060
40061     if test "$ac_cv_func_localtime" = "yes"; then
40062         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
40063 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
40064 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
40065   echo $ECHO_N "(cached) $ECHO_C" >&6
40066 else
40067
40068             cat >conftest.$ac_ext <<_ACEOF
40069 /* confdefs.h.  */
40070 _ACEOF
40071 cat confdefs.h >>conftest.$ac_ext
40072 cat >>conftest.$ac_ext <<_ACEOF
40073 /* end confdefs.h.  */
40074
40075                     #include <time.h>
40076
40077 int
40078 main ()
40079 {
40080
40081                     struct tm tm;
40082                     tm.tm_gmtoff++;
40083
40084   ;
40085   return 0;
40086 }
40087 _ACEOF
40088 rm -f conftest.$ac_objext
40089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40090   (eval $ac_compile) 2>conftest.er1
40091   ac_status=$?
40092   grep -v '^ *+' conftest.er1 >conftest.err
40093   rm -f conftest.er1
40094   cat conftest.err >&5
40095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096   (exit $ac_status); } &&
40097          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40099   (eval $ac_try) 2>&5
40100   ac_status=$?
40101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40102   (exit $ac_status); }; } &&
40103          { ac_try='test -s conftest.$ac_objext'
40104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40105   (eval $ac_try) 2>&5
40106   ac_status=$?
40107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40108   (exit $ac_status); }; }; then
40109
40110                     wx_cv_struct_tm_has_gmtoff=yes
40111
40112 else
40113   echo "$as_me: failed program was:" >&5
40114 sed 's/^/| /' conftest.$ac_ext >&5
40115
40116 wx_cv_struct_tm_has_gmtoff=no
40117
40118 fi
40119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40120
40121 fi
40122 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
40123 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
40124     fi
40125
40126     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
40127         cat >>confdefs.h <<\_ACEOF
40128 #define WX_GMTOFF_IN_TM 1
40129 _ACEOF
40130
40131     fi
40132
40133
40134
40135 for ac_func in gettimeofday ftime
40136 do
40137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40138 echo "$as_me:$LINENO: checking for $ac_func" >&5
40139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40140 if eval "test \"\${$as_ac_var+set}\" = set"; then
40141   echo $ECHO_N "(cached) $ECHO_C" >&6
40142 else
40143   cat >conftest.$ac_ext <<_ACEOF
40144 /* confdefs.h.  */
40145 _ACEOF
40146 cat confdefs.h >>conftest.$ac_ext
40147 cat >>conftest.$ac_ext <<_ACEOF
40148 /* end confdefs.h.  */
40149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40151 #define $ac_func innocuous_$ac_func
40152
40153 /* System header to define __stub macros and hopefully few prototypes,
40154     which can conflict with char $ac_func (); below.
40155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40156     <limits.h> exists even on freestanding compilers.  */
40157
40158 #ifdef __STDC__
40159 # include <limits.h>
40160 #else
40161 # include <assert.h>
40162 #endif
40163
40164 #undef $ac_func
40165
40166 /* Override any gcc2 internal prototype to avoid an error.  */
40167 #ifdef __cplusplus
40168 extern "C"
40169 {
40170 #endif
40171 /* We use char because int might match the return type of a gcc2
40172    builtin and then its argument prototype would still apply.  */
40173 char $ac_func ();
40174 /* The GNU C library defines this for functions which it implements
40175     to always fail with ENOSYS.  Some functions are actually named
40176     something starting with __ and the normal name is an alias.  */
40177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40178 choke me
40179 #else
40180 char (*f) () = $ac_func;
40181 #endif
40182 #ifdef __cplusplus
40183 }
40184 #endif
40185
40186 int
40187 main ()
40188 {
40189 return f != $ac_func;
40190   ;
40191   return 0;
40192 }
40193 _ACEOF
40194 rm -f conftest.$ac_objext conftest$ac_exeext
40195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40196   (eval $ac_link) 2>conftest.er1
40197   ac_status=$?
40198   grep -v '^ *+' conftest.er1 >conftest.err
40199   rm -f conftest.er1
40200   cat conftest.err >&5
40201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202   (exit $ac_status); } &&
40203          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40205   (eval $ac_try) 2>&5
40206   ac_status=$?
40207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40208   (exit $ac_status); }; } &&
40209          { ac_try='test -s conftest$ac_exeext'
40210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40211   (eval $ac_try) 2>&5
40212   ac_status=$?
40213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40214   (exit $ac_status); }; }; then
40215   eval "$as_ac_var=yes"
40216 else
40217   echo "$as_me: failed program was:" >&5
40218 sed 's/^/| /' conftest.$ac_ext >&5
40219
40220 eval "$as_ac_var=no"
40221 fi
40222 rm -f conftest.err conftest.$ac_objext \
40223       conftest$ac_exeext conftest.$ac_ext
40224 fi
40225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40227 if test `eval echo '${'$as_ac_var'}'` = yes; then
40228   cat >>confdefs.h <<_ACEOF
40229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40230 _ACEOF
40231  break
40232 fi
40233 done
40234
40235
40236     if test "$ac_cv_func_gettimeofday" = "yes"; then
40237         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
40238 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
40239 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
40240   echo $ECHO_N "(cached) $ECHO_C" >&6
40241 else
40242
40243
40244
40245             ac_ext=cc
40246 ac_cpp='$CXXCPP $CPPFLAGS'
40247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40250
40251
40252             cat >conftest.$ac_ext <<_ACEOF
40253 /* confdefs.h.  */
40254 _ACEOF
40255 cat confdefs.h >>conftest.$ac_ext
40256 cat >>conftest.$ac_ext <<_ACEOF
40257 /* end confdefs.h.  */
40258
40259                     #include <sys/time.h>
40260                     #include <unistd.h>
40261
40262 int
40263 main ()
40264 {
40265
40266                     struct timeval tv;
40267                     gettimeofday(&tv, NULL);
40268
40269   ;
40270   return 0;
40271 }
40272 _ACEOF
40273 rm -f conftest.$ac_objext
40274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40275   (eval $ac_compile) 2>conftest.er1
40276   ac_status=$?
40277   grep -v '^ *+' conftest.er1 >conftest.err
40278   rm -f conftest.er1
40279   cat conftest.err >&5
40280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281   (exit $ac_status); } &&
40282          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40284   (eval $ac_try) 2>&5
40285   ac_status=$?
40286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40287   (exit $ac_status); }; } &&
40288          { ac_try='test -s conftest.$ac_objext'
40289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40290   (eval $ac_try) 2>&5
40291   ac_status=$?
40292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40293   (exit $ac_status); }; }; then
40294   wx_cv_func_gettimeofday_has_2_args=yes
40295 else
40296   echo "$as_me: failed program was:" >&5
40297 sed 's/^/| /' conftest.$ac_ext >&5
40298
40299 cat >conftest.$ac_ext <<_ACEOF
40300 /* confdefs.h.  */
40301 _ACEOF
40302 cat confdefs.h >>conftest.$ac_ext
40303 cat >>conftest.$ac_ext <<_ACEOF
40304 /* end confdefs.h.  */
40305
40306                         #include <sys/time.h>
40307                         #include <unistd.h>
40308
40309 int
40310 main ()
40311 {
40312
40313                         struct timeval tv;
40314                         gettimeofday(&tv);
40315
40316   ;
40317   return 0;
40318 }
40319 _ACEOF
40320 rm -f conftest.$ac_objext
40321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40322   (eval $ac_compile) 2>conftest.er1
40323   ac_status=$?
40324   grep -v '^ *+' conftest.er1 >conftest.err
40325   rm -f conftest.er1
40326   cat conftest.err >&5
40327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40328   (exit $ac_status); } &&
40329          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40331   (eval $ac_try) 2>&5
40332   ac_status=$?
40333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40334   (exit $ac_status); }; } &&
40335          { ac_try='test -s conftest.$ac_objext'
40336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40337   (eval $ac_try) 2>&5
40338   ac_status=$?
40339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340   (exit $ac_status); }; }; then
40341   wx_cv_func_gettimeofday_has_2_args=no
40342 else
40343   echo "$as_me: failed program was:" >&5
40344 sed 's/^/| /' conftest.$ac_ext >&5
40345
40346
40347                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
40348 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
40349                         wx_cv_func_gettimeofday_has_2_args=unknown
40350
40351
40352 fi
40353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40354
40355 fi
40356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40357             ac_ext=c
40358 ac_cpp='$CPP $CPPFLAGS'
40359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40362
40363
40364 fi
40365 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
40366 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
40367
40368         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
40369             cat >>confdefs.h <<\_ACEOF
40370 #define WX_GETTIMEOFDAY_NO_TZ 1
40371 _ACEOF
40372
40373         fi
40374     fi
40375
40376     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
40377 fi
40378
40379
40380 if test "$wxUSE_SOCKETS" = "yes"; then
40381     if test "$wxUSE_MGL" = "1"; then
40382         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
40383 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
40384         wxUSE_SOCKETS="no"
40385     fi
40386 fi
40387
40388 if test "$wxUSE_SOCKETS" = "yes"; then
40389         if test "$TOOLKIT" != "MSW"; then
40390                 echo "$as_me:$LINENO: checking for socket" >&5
40391 echo $ECHO_N "checking for socket... $ECHO_C" >&6
40392 if test "${ac_cv_func_socket+set}" = set; then
40393   echo $ECHO_N "(cached) $ECHO_C" >&6
40394 else
40395   cat >conftest.$ac_ext <<_ACEOF
40396 /* confdefs.h.  */
40397 _ACEOF
40398 cat confdefs.h >>conftest.$ac_ext
40399 cat >>conftest.$ac_ext <<_ACEOF
40400 /* end confdefs.h.  */
40401 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
40402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40403 #define socket innocuous_socket
40404
40405 /* System header to define __stub macros and hopefully few prototypes,
40406     which can conflict with char socket (); below.
40407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40408     <limits.h> exists even on freestanding compilers.  */
40409
40410 #ifdef __STDC__
40411 # include <limits.h>
40412 #else
40413 # include <assert.h>
40414 #endif
40415
40416 #undef socket
40417
40418 /* Override any gcc2 internal prototype to avoid an error.  */
40419 #ifdef __cplusplus
40420 extern "C"
40421 {
40422 #endif
40423 /* We use char because int might match the return type of a gcc2
40424    builtin and then its argument prototype would still apply.  */
40425 char socket ();
40426 /* The GNU C library defines this for functions which it implements
40427     to always fail with ENOSYS.  Some functions are actually named
40428     something starting with __ and the normal name is an alias.  */
40429 #if defined (__stub_socket) || defined (__stub___socket)
40430 choke me
40431 #else
40432 char (*f) () = socket;
40433 #endif
40434 #ifdef __cplusplus
40435 }
40436 #endif
40437
40438 int
40439 main ()
40440 {
40441 return f != socket;
40442   ;
40443   return 0;
40444 }
40445 _ACEOF
40446 rm -f conftest.$ac_objext conftest$ac_exeext
40447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40448   (eval $ac_link) 2>conftest.er1
40449   ac_status=$?
40450   grep -v '^ *+' conftest.er1 >conftest.err
40451   rm -f conftest.er1
40452   cat conftest.err >&5
40453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40454   (exit $ac_status); } &&
40455          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40457   (eval $ac_try) 2>&5
40458   ac_status=$?
40459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40460   (exit $ac_status); }; } &&
40461          { ac_try='test -s conftest$ac_exeext'
40462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40463   (eval $ac_try) 2>&5
40464   ac_status=$?
40465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466   (exit $ac_status); }; }; then
40467   ac_cv_func_socket=yes
40468 else
40469   echo "$as_me: failed program was:" >&5
40470 sed 's/^/| /' conftest.$ac_ext >&5
40471
40472 ac_cv_func_socket=no
40473 fi
40474 rm -f conftest.err conftest.$ac_objext \
40475       conftest$ac_exeext conftest.$ac_ext
40476 fi
40477 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
40478 echo "${ECHO_T}$ac_cv_func_socket" >&6
40479 if test $ac_cv_func_socket = yes; then
40480   :
40481 else
40482
40483                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
40484 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
40485 if test "${ac_cv_lib_socket_socket+set}" = set; then
40486   echo $ECHO_N "(cached) $ECHO_C" >&6
40487 else
40488   ac_check_lib_save_LIBS=$LIBS
40489 LIBS="-lsocket  $LIBS"
40490 cat >conftest.$ac_ext <<_ACEOF
40491 /* confdefs.h.  */
40492 _ACEOF
40493 cat confdefs.h >>conftest.$ac_ext
40494 cat >>conftest.$ac_ext <<_ACEOF
40495 /* end confdefs.h.  */
40496
40497 /* Override any gcc2 internal prototype to avoid an error.  */
40498 #ifdef __cplusplus
40499 extern "C"
40500 #endif
40501 /* We use char because int might match the return type of a gcc2
40502    builtin and then its argument prototype would still apply.  */
40503 char socket ();
40504 int
40505 main ()
40506 {
40507 socket ();
40508   ;
40509   return 0;
40510 }
40511 _ACEOF
40512 rm -f conftest.$ac_objext conftest$ac_exeext
40513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40514   (eval $ac_link) 2>conftest.er1
40515   ac_status=$?
40516   grep -v '^ *+' conftest.er1 >conftest.err
40517   rm -f conftest.er1
40518   cat conftest.err >&5
40519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40520   (exit $ac_status); } &&
40521          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40523   (eval $ac_try) 2>&5
40524   ac_status=$?
40525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526   (exit $ac_status); }; } &&
40527          { ac_try='test -s conftest$ac_exeext'
40528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40529   (eval $ac_try) 2>&5
40530   ac_status=$?
40531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40532   (exit $ac_status); }; }; then
40533   ac_cv_lib_socket_socket=yes
40534 else
40535   echo "$as_me: failed program was:" >&5
40536 sed 's/^/| /' conftest.$ac_ext >&5
40537
40538 ac_cv_lib_socket_socket=no
40539 fi
40540 rm -f conftest.err conftest.$ac_objext \
40541       conftest$ac_exeext conftest.$ac_ext
40542 LIBS=$ac_check_lib_save_LIBS
40543 fi
40544 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
40545 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
40546 if test $ac_cv_lib_socket_socket = yes; then
40547   if test "$INET_LINK" != " -lsocket"; then
40548                         INET_LINK="$INET_LINK -lsocket"
40549                     fi
40550 else
40551
40552                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
40553 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
40554                         wxUSE_SOCKETS=no
40555
40556
40557 fi
40558
40559
40560
40561 fi
40562
40563     fi
40564 fi
40565
40566 if test "$wxUSE_SOCKETS" = "yes" ; then
40567                 if test "$TOOLKIT" != "MSW"; then
40568                                         ac_ext=cc
40569 ac_cpp='$CXXCPP $CPPFLAGS'
40570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40573
40574         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
40575 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
40576 if test "${wx_cv_type_getsockname3+set}" = set; then
40577   echo $ECHO_N "(cached) $ECHO_C" >&6
40578 else
40579
40580                 cat >conftest.$ac_ext <<_ACEOF
40581 /* confdefs.h.  */
40582 _ACEOF
40583 cat confdefs.h >>conftest.$ac_ext
40584 cat >>conftest.$ac_ext <<_ACEOF
40585 /* end confdefs.h.  */
40586
40587                         #include <sys/types.h>
40588                         #include <sys/socket.h>
40589
40590 int
40591 main ()
40592 {
40593
40594                         socklen_t len;
40595                         getsockname(0, 0, &len);
40596
40597   ;
40598   return 0;
40599 }
40600 _ACEOF
40601 rm -f conftest.$ac_objext
40602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40603   (eval $ac_compile) 2>conftest.er1
40604   ac_status=$?
40605   grep -v '^ *+' conftest.er1 >conftest.err
40606   rm -f conftest.er1
40607   cat conftest.err >&5
40608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40609   (exit $ac_status); } &&
40610          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40612   (eval $ac_try) 2>&5
40613   ac_status=$?
40614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40615   (exit $ac_status); }; } &&
40616          { ac_try='test -s conftest.$ac_objext'
40617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40618   (eval $ac_try) 2>&5
40619   ac_status=$?
40620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40621   (exit $ac_status); }; }; then
40622   wx_cv_type_getsockname3=socklen_t
40623 else
40624   echo "$as_me: failed program was:" >&5
40625 sed 's/^/| /' conftest.$ac_ext >&5
40626
40627
40628                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
40629                         if test "$GCC" = yes ; then
40630                             CXXFLAGS="$CXXFLAGS -Werror"
40631                         fi
40632
40633                         cat >conftest.$ac_ext <<_ACEOF
40634 /* confdefs.h.  */
40635 _ACEOF
40636 cat confdefs.h >>conftest.$ac_ext
40637 cat >>conftest.$ac_ext <<_ACEOF
40638 /* end confdefs.h.  */
40639
40640                                 #include <sys/types.h>
40641                                 #include <sys/socket.h>
40642
40643 int
40644 main ()
40645 {
40646
40647                                 size_t len;
40648                                 getsockname(0, 0, &len);
40649
40650   ;
40651   return 0;
40652 }
40653 _ACEOF
40654 rm -f conftest.$ac_objext
40655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40656   (eval $ac_compile) 2>conftest.er1
40657   ac_status=$?
40658   grep -v '^ *+' conftest.er1 >conftest.err
40659   rm -f conftest.er1
40660   cat conftest.err >&5
40661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40662   (exit $ac_status); } &&
40663          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40665   (eval $ac_try) 2>&5
40666   ac_status=$?
40667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40668   (exit $ac_status); }; } &&
40669          { ac_try='test -s conftest.$ac_objext'
40670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40671   (eval $ac_try) 2>&5
40672   ac_status=$?
40673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40674   (exit $ac_status); }; }; then
40675   wx_cv_type_getsockname3=size_t
40676 else
40677   echo "$as_me: failed program was:" >&5
40678 sed 's/^/| /' conftest.$ac_ext >&5
40679
40680 cat >conftest.$ac_ext <<_ACEOF
40681 /* confdefs.h.  */
40682 _ACEOF
40683 cat confdefs.h >>conftest.$ac_ext
40684 cat >>conftest.$ac_ext <<_ACEOF
40685 /* end confdefs.h.  */
40686
40687                                     #include <sys/types.h>
40688                                     #include <sys/socket.h>
40689
40690 int
40691 main ()
40692 {
40693
40694                                     int len;
40695                                     getsockname(0, 0, &len);
40696
40697   ;
40698   return 0;
40699 }
40700 _ACEOF
40701 rm -f conftest.$ac_objext
40702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40703   (eval $ac_compile) 2>conftest.er1
40704   ac_status=$?
40705   grep -v '^ *+' conftest.er1 >conftest.err
40706   rm -f conftest.er1
40707   cat conftest.err >&5
40708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709   (exit $ac_status); } &&
40710          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40712   (eval $ac_try) 2>&5
40713   ac_status=$?
40714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40715   (exit $ac_status); }; } &&
40716          { ac_try='test -s conftest.$ac_objext'
40717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40718   (eval $ac_try) 2>&5
40719   ac_status=$?
40720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40721   (exit $ac_status); }; }; then
40722   wx_cv_type_getsockname3=int
40723 else
40724   echo "$as_me: failed program was:" >&5
40725 sed 's/^/| /' conftest.$ac_ext >&5
40726
40727 wx_cv_type_getsockname3=unknown
40728
40729 fi
40730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40731
40732 fi
40733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40734
40735                         CXXFLAGS="$CXXFLAGS_OLD"
40736
40737
40738 fi
40739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40740
40741 fi
40742 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
40743 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
40744
40745         if test "$wx_cv_type_getsockname3" = "unknown"; then
40746             wxUSE_SOCKETS=no
40747             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40748 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40749         else
40750             cat >>confdefs.h <<_ACEOF
40751 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
40752 _ACEOF
40753
40754         fi
40755                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
40756 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
40757 if test "${wx_cv_type_getsockopt5+set}" = set; then
40758   echo $ECHO_N "(cached) $ECHO_C" >&6
40759 else
40760
40761                 cat >conftest.$ac_ext <<_ACEOF
40762 /* confdefs.h.  */
40763 _ACEOF
40764 cat confdefs.h >>conftest.$ac_ext
40765 cat >>conftest.$ac_ext <<_ACEOF
40766 /* end confdefs.h.  */
40767
40768                         #include <sys/types.h>
40769                         #include <sys/socket.h>
40770
40771 int
40772 main ()
40773 {
40774
40775                         socklen_t len;
40776                         getsockopt(0, 0, 0, 0, &len);
40777
40778   ;
40779   return 0;
40780 }
40781 _ACEOF
40782 rm -f conftest.$ac_objext
40783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40784   (eval $ac_compile) 2>conftest.er1
40785   ac_status=$?
40786   grep -v '^ *+' conftest.er1 >conftest.err
40787   rm -f conftest.er1
40788   cat conftest.err >&5
40789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40790   (exit $ac_status); } &&
40791          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40793   (eval $ac_try) 2>&5
40794   ac_status=$?
40795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796   (exit $ac_status); }; } &&
40797          { ac_try='test -s conftest.$ac_objext'
40798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40799   (eval $ac_try) 2>&5
40800   ac_status=$?
40801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802   (exit $ac_status); }; }; then
40803   wx_cv_type_getsockopt5=socklen_t
40804 else
40805   echo "$as_me: failed program was:" >&5
40806 sed 's/^/| /' conftest.$ac_ext >&5
40807
40808
40809                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
40810                         if test "$GCC" = yes ; then
40811                             CXXFLAGS="$CXXFLAGS -Werror"
40812                         fi
40813
40814                         cat >conftest.$ac_ext <<_ACEOF
40815 /* confdefs.h.  */
40816 _ACEOF
40817 cat confdefs.h >>conftest.$ac_ext
40818 cat >>conftest.$ac_ext <<_ACEOF
40819 /* end confdefs.h.  */
40820
40821                                 #include <sys/types.h>
40822                                 #include <sys/socket.h>
40823
40824 int
40825 main ()
40826 {
40827
40828                                 size_t len;
40829                                 getsockopt(0, 0, 0, 0, &len);
40830
40831   ;
40832   return 0;
40833 }
40834 _ACEOF
40835 rm -f conftest.$ac_objext
40836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40837   (eval $ac_compile) 2>conftest.er1
40838   ac_status=$?
40839   grep -v '^ *+' conftest.er1 >conftest.err
40840   rm -f conftest.er1
40841   cat conftest.err >&5
40842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843   (exit $ac_status); } &&
40844          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40846   (eval $ac_try) 2>&5
40847   ac_status=$?
40848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40849   (exit $ac_status); }; } &&
40850          { ac_try='test -s conftest.$ac_objext'
40851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40852   (eval $ac_try) 2>&5
40853   ac_status=$?
40854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40855   (exit $ac_status); }; }; then
40856   wx_cv_type_getsockopt5=size_t
40857 else
40858   echo "$as_me: failed program was:" >&5
40859 sed 's/^/| /' conftest.$ac_ext >&5
40860
40861 cat >conftest.$ac_ext <<_ACEOF
40862 /* confdefs.h.  */
40863 _ACEOF
40864 cat confdefs.h >>conftest.$ac_ext
40865 cat >>conftest.$ac_ext <<_ACEOF
40866 /* end confdefs.h.  */
40867
40868                                     #include <sys/types.h>
40869                                     #include <sys/socket.h>
40870
40871 int
40872 main ()
40873 {
40874
40875                                     int len;
40876                                     getsockopt(0, 0, 0, 0, &len);
40877
40878   ;
40879   return 0;
40880 }
40881 _ACEOF
40882 rm -f conftest.$ac_objext
40883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40884   (eval $ac_compile) 2>conftest.er1
40885   ac_status=$?
40886   grep -v '^ *+' conftest.er1 >conftest.err
40887   rm -f conftest.er1
40888   cat conftest.err >&5
40889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890   (exit $ac_status); } &&
40891          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40893   (eval $ac_try) 2>&5
40894   ac_status=$?
40895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896   (exit $ac_status); }; } &&
40897          { ac_try='test -s conftest.$ac_objext'
40898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40899   (eval $ac_try) 2>&5
40900   ac_status=$?
40901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40902   (exit $ac_status); }; }; then
40903   wx_cv_type_getsockopt5=int
40904 else
40905   echo "$as_me: failed program was:" >&5
40906 sed 's/^/| /' conftest.$ac_ext >&5
40907
40908 wx_cv_type_getsockopt5=unknown
40909
40910 fi
40911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40912
40913 fi
40914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40915
40916                         CXXFLAGS="$CXXFLAGS_OLD"
40917
40918
40919 fi
40920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40921
40922 fi
40923 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40924 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40925
40926         if test "$wx_cv_type_getsockopt5" = "unknown"; then
40927             wxUSE_SOCKETS=no
40928             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40929 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40930         else
40931             cat >>confdefs.h <<_ACEOF
40932 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
40933 _ACEOF
40934
40935         fi
40936         ac_ext=c
40937 ac_cpp='$CPP $CPPFLAGS'
40938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40941
40942     fi
40943 fi
40944
40945 if test "$wxUSE_SOCKETS" = "yes" ; then
40946     cat >>confdefs.h <<\_ACEOF
40947 #define wxUSE_SOCKETS 1
40948 _ACEOF
40949
40950     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40951 fi
40952
40953 if test "$wxUSE_PROTOCOL" = "yes"; then
40954     if test "$wxUSE_SOCKETS" != "yes"; then
40955         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40956 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40957         wxUSE_PROTOCOL=no
40958     fi
40959 fi
40960
40961 if test "$wxUSE_PROTOCOL" = "yes"; then
40962     cat >>confdefs.h <<\_ACEOF
40963 #define wxUSE_PROTOCOL 1
40964 _ACEOF
40965
40966
40967     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40968         cat >>confdefs.h <<\_ACEOF
40969 #define wxUSE_PROTOCOL_HTTP 1
40970 _ACEOF
40971
40972     fi
40973     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40974         cat >>confdefs.h <<\_ACEOF
40975 #define wxUSE_PROTOCOL_FTP 1
40976 _ACEOF
40977
40978     fi
40979     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40980         cat >>confdefs.h <<\_ACEOF
40981 #define wxUSE_PROTOCOL_FILE 1
40982 _ACEOF
40983
40984     fi
40985 else
40986     if test "$wxUSE_FS_INET" = "yes"; then
40987         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40988 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40989         wxUSE_FS_INET="no"
40990     fi
40991 fi
40992
40993 if test "$wxUSE_URL" = "yes"; then
40994     if test "$wxUSE_PROTOCOL" != "yes"; then
40995         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40996 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40997         wxUSE_URL=no
40998     fi
40999     if test "$wxUSE_URL" = "yes"; then
41000         cat >>confdefs.h <<\_ACEOF
41001 #define wxUSE_URL 1
41002 _ACEOF
41003
41004     fi
41005 fi
41006
41007 if test "$wxUSE_FS_INET" = "yes"; then
41008   cat >>confdefs.h <<\_ACEOF
41009 #define wxUSE_FS_INET 1
41010 _ACEOF
41011
41012 fi
41013
41014
41015 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
41016     wxUSE_JOYSTICK=no
41017
41018         if test "$TOOLKIT" = "MSW"; then
41019         wxUSE_JOYSTICK=yes
41020
41021         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
41022         if test "$USE_DARWIN" = 1; then
41023                         echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
41024 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
41025             ac_ext=cc
41026 ac_cpp='$CXXCPP $CPPFLAGS'
41027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41030
41031             cat >conftest.$ac_ext <<_ACEOF
41032 /* confdefs.h.  */
41033 _ACEOF
41034 cat confdefs.h >>conftest.$ac_ext
41035 cat >>conftest.$ac_ext <<_ACEOF
41036 /* end confdefs.h.  */
41037  #include <IOKit/hid/IOHIDLib.h>
41038 int
41039 main ()
41040 {
41041  IOHIDQueueInterface *qi = NULL;
41042                               IOHIDCallbackFunction cb = NULL;
41043                               qi->setEventCallout(NULL, cb, NULL, NULL);
41044   ;
41045   return 0;
41046 }
41047 _ACEOF
41048 rm -f conftest.$ac_objext
41049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41050   (eval $ac_compile) 2>conftest.er1
41051   ac_status=$?
41052   grep -v '^ *+' conftest.er1 >conftest.err
41053   rm -f conftest.er1
41054   cat conftest.err >&5
41055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056   (exit $ac_status); } &&
41057          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41059   (eval $ac_try) 2>&5
41060   ac_status=$?
41061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41062   (exit $ac_status); }; } &&
41063          { ac_try='test -s conftest.$ac_objext'
41064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41065   (eval $ac_try) 2>&5
41066   ac_status=$?
41067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068   (exit $ac_status); }; }; then
41069    wxUSE_JOYSTICK=yes
41070
41071 else
41072   echo "$as_me: failed program was:" >&5
41073 sed 's/^/| /' conftest.$ac_ext >&5
41074
41075 fi
41076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41077             ac_ext=c
41078 ac_cpp='$CPP $CPPFLAGS'
41079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41082
41083             echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
41084 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
41085         fi
41086
41087         else
41088
41089 for ac_header in linux/joystick.h
41090 do
41091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41093   echo "$as_me:$LINENO: checking for $ac_header" >&5
41094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41096   echo $ECHO_N "(cached) $ECHO_C" >&6
41097 fi
41098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41100 else
41101   # Is the header compilable?
41102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41104 cat >conftest.$ac_ext <<_ACEOF
41105 /* confdefs.h.  */
41106 _ACEOF
41107 cat confdefs.h >>conftest.$ac_ext
41108 cat >>conftest.$ac_ext <<_ACEOF
41109 /* end confdefs.h.  */
41110 $ac_includes_default
41111 #include <$ac_header>
41112 _ACEOF
41113 rm -f conftest.$ac_objext
41114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41115   (eval $ac_compile) 2>conftest.er1
41116   ac_status=$?
41117   grep -v '^ *+' conftest.er1 >conftest.err
41118   rm -f conftest.er1
41119   cat conftest.err >&5
41120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41121   (exit $ac_status); } &&
41122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41124   (eval $ac_try) 2>&5
41125   ac_status=$?
41126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127   (exit $ac_status); }; } &&
41128          { ac_try='test -s conftest.$ac_objext'
41129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41130   (eval $ac_try) 2>&5
41131   ac_status=$?
41132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41133   (exit $ac_status); }; }; then
41134   ac_header_compiler=yes
41135 else
41136   echo "$as_me: failed program was:" >&5
41137 sed 's/^/| /' conftest.$ac_ext >&5
41138
41139 ac_header_compiler=no
41140 fi
41141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41143 echo "${ECHO_T}$ac_header_compiler" >&6
41144
41145 # Is the header present?
41146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41148 cat >conftest.$ac_ext <<_ACEOF
41149 /* confdefs.h.  */
41150 _ACEOF
41151 cat confdefs.h >>conftest.$ac_ext
41152 cat >>conftest.$ac_ext <<_ACEOF
41153 /* end confdefs.h.  */
41154 #include <$ac_header>
41155 _ACEOF
41156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41158   ac_status=$?
41159   grep -v '^ *+' conftest.er1 >conftest.err
41160   rm -f conftest.er1
41161   cat conftest.err >&5
41162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41163   (exit $ac_status); } >/dev/null; then
41164   if test -s conftest.err; then
41165     ac_cpp_err=$ac_c_preproc_warn_flag
41166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41167   else
41168     ac_cpp_err=
41169   fi
41170 else
41171   ac_cpp_err=yes
41172 fi
41173 if test -z "$ac_cpp_err"; then
41174   ac_header_preproc=yes
41175 else
41176   echo "$as_me: failed program was:" >&5
41177 sed 's/^/| /' conftest.$ac_ext >&5
41178
41179   ac_header_preproc=no
41180 fi
41181 rm -f conftest.err conftest.$ac_ext
41182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41183 echo "${ECHO_T}$ac_header_preproc" >&6
41184
41185 # So?  What about this header?
41186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41187   yes:no: )
41188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41192     ac_header_preproc=yes
41193     ;;
41194   no:yes:* )
41195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41197     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41198 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41199     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41201     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41202 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41205     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41207     (
41208       cat <<\_ASBOX
41209 ## ----------------------------------------- ##
41210 ## Report this to wx-dev@lists.wxwidgets.org ##
41211 ## ----------------------------------------- ##
41212 _ASBOX
41213     ) |
41214       sed "s/^/$as_me: WARNING:     /" >&2
41215     ;;
41216 esac
41217 echo "$as_me:$LINENO: checking for $ac_header" >&5
41218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41220   echo $ECHO_N "(cached) $ECHO_C" >&6
41221 else
41222   eval "$as_ac_Header=\$ac_header_preproc"
41223 fi
41224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41226
41227 fi
41228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41229   cat >>confdefs.h <<_ACEOF
41230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41231 _ACEOF
41232  wxUSE_JOYSTICK=yes
41233 fi
41234
41235 done
41236
41237     fi
41238
41239     if test "$wxUSE_JOYSTICK" = "yes"; then
41240         cat >>confdefs.h <<\_ACEOF
41241 #define wxUSE_JOYSTICK 1
41242 _ACEOF
41243
41244         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
41245     else
41246         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
41247 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
41248     fi
41249 fi
41250
41251
41252
41253 if test "$wxUSE_FONTMAP" = "yes" ; then
41254   cat >>confdefs.h <<\_ACEOF
41255 #define wxUSE_FONTMAP 1
41256 _ACEOF
41257
41258 fi
41259
41260 if test "$wxUSE_UNICODE" = "yes" ; then
41261   cat >>confdefs.h <<\_ACEOF
41262 #define wxUSE_UNICODE 1
41263 _ACEOF
41264
41265
41266   if test "$USE_WIN32" != 1; then
41267       wxUSE_UNICODE_MSLU=no
41268   fi
41269
41270   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
41271         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
41272 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
41273 if test "${ac_cv_lib_unicows_main+set}" = set; then
41274   echo $ECHO_N "(cached) $ECHO_C" >&6
41275 else
41276   ac_check_lib_save_LIBS=$LIBS
41277 LIBS="-lunicows  $LIBS"
41278 cat >conftest.$ac_ext <<_ACEOF
41279 /* confdefs.h.  */
41280 _ACEOF
41281 cat confdefs.h >>conftest.$ac_ext
41282 cat >>conftest.$ac_ext <<_ACEOF
41283 /* end confdefs.h.  */
41284
41285
41286 int
41287 main ()
41288 {
41289 main ();
41290   ;
41291   return 0;
41292 }
41293 _ACEOF
41294 rm -f conftest.$ac_objext conftest$ac_exeext
41295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41296   (eval $ac_link) 2>conftest.er1
41297   ac_status=$?
41298   grep -v '^ *+' conftest.er1 >conftest.err
41299   rm -f conftest.er1
41300   cat conftest.err >&5
41301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41302   (exit $ac_status); } &&
41303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41305   (eval $ac_try) 2>&5
41306   ac_status=$?
41307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41308   (exit $ac_status); }; } &&
41309          { ac_try='test -s conftest$ac_exeext'
41310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41311   (eval $ac_try) 2>&5
41312   ac_status=$?
41313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41314   (exit $ac_status); }; }; then
41315   ac_cv_lib_unicows_main=yes
41316 else
41317   echo "$as_me: failed program was:" >&5
41318 sed 's/^/| /' conftest.$ac_ext >&5
41319
41320 ac_cv_lib_unicows_main=no
41321 fi
41322 rm -f conftest.err conftest.$ac_objext \
41323       conftest$ac_exeext conftest.$ac_ext
41324 LIBS=$ac_check_lib_save_LIBS
41325 fi
41326 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
41327 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
41328 if test $ac_cv_lib_unicows_main = yes; then
41329
41330                 cat >>confdefs.h <<\_ACEOF
41331 #define wxUSE_UNICODE_MSLU 1
41332 _ACEOF
41333
41334
41335 else
41336
41337                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41338                              Applications will only run on Windows NT/2000/XP!" >&5
41339 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41340                              Applications will only run on Windows NT/2000/XP!" >&2;}
41341                 wxUSE_UNICODE_MSLU=no
41342
41343 fi
41344
41345     fi
41346 fi
41347
41348 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
41349   cat >>confdefs.h <<\_ACEOF
41350 #define wxUSE_EXPERIMENTAL_PRINTF 1
41351 _ACEOF
41352
41353 fi
41354
41355
41356 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
41357   cat >>confdefs.h <<\_ACEOF
41358 #define wxUSE_POSTSCRIPT 1
41359 _ACEOF
41360
41361 fi
41362
41363 cat >>confdefs.h <<\_ACEOF
41364 #define wxUSE_AFM_FOR_POSTSCRIPT 1
41365 _ACEOF
41366
41367
41368 cat >>confdefs.h <<\_ACEOF
41369 #define wxUSE_NORMALIZED_PS_FONTS 1
41370 _ACEOF
41371
41372
41373
41374 if test "$wxUSE_CONSTRAINTS" = "yes"; then
41375     cat >>confdefs.h <<\_ACEOF
41376 #define wxUSE_CONSTRAINTS 1
41377 _ACEOF
41378
41379     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
41380 fi
41381
41382 if test "$wxUSE_MDI" = "yes"; then
41383     cat >>confdefs.h <<\_ACEOF
41384 #define wxUSE_MDI 1
41385 _ACEOF
41386
41387
41388     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41389         cat >>confdefs.h <<\_ACEOF
41390 #define wxUSE_MDI_ARCHITECTURE 1
41391 _ACEOF
41392
41393         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
41394     fi
41395 fi
41396
41397 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
41398     cat >>confdefs.h <<\_ACEOF
41399 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
41400 _ACEOF
41401
41402     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
41403     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41404         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
41405     fi
41406 fi
41407
41408 if test "$wxUSE_HELP" = "yes"; then
41409     cat >>confdefs.h <<\_ACEOF
41410 #define wxUSE_HELP 1
41411 _ACEOF
41412
41413     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
41414
41415     if test "$wxUSE_MSW" = 1; then
41416       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
41417         cat >>confdefs.h <<\_ACEOF
41418 #define wxUSE_MS_HTML_HELP 1
41419 _ACEOF
41420
41421       fi
41422     fi
41423
41424     if test "$wxUSE_WXHTML_HELP" = "yes"; then
41425       if test "$wxUSE_HTML" = "yes"; then
41426         cat >>confdefs.h <<\_ACEOF
41427 #define wxUSE_WXHTML_HELP 1
41428 _ACEOF
41429
41430       else
41431         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
41432 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
41433         wxUSE_WXHTML_HELP=no
41434       fi
41435     fi
41436 fi
41437
41438 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41439     if test "$wxUSE_CONSTRAINTS" != "yes"; then
41440         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
41441 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
41442     else
41443         cat >>confdefs.h <<\_ACEOF
41444 #define wxUSE_PRINTING_ARCHITECTURE 1
41445 _ACEOF
41446
41447     fi
41448     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
41449 fi
41450
41451 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
41452     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
41453 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
41454    { (exit 1); exit 1; }; }
41455 fi
41456
41457
41458 if test "$wxUSE_METAFILE" = "yes"; then
41459     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
41460         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
41461 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
41462         wxUSE_METAFILE=no
41463     fi
41464 fi
41465
41466
41467 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
41468                           -o "$wxUSE_CLIPBOARD"     = "yes" \
41469                           -o "$wxUSE_OLE"     = "yes" \
41470                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
41471
41472 for ac_header in ole2.h
41473 do
41474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41476   echo "$as_me:$LINENO: checking for $ac_header" >&5
41477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41479   echo $ECHO_N "(cached) $ECHO_C" >&6
41480 fi
41481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41483 else
41484   # Is the header compilable?
41485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41487 cat >conftest.$ac_ext <<_ACEOF
41488 /* confdefs.h.  */
41489 _ACEOF
41490 cat confdefs.h >>conftest.$ac_ext
41491 cat >>conftest.$ac_ext <<_ACEOF
41492 /* end confdefs.h.  */
41493 $ac_includes_default
41494 #include <$ac_header>
41495 _ACEOF
41496 rm -f conftest.$ac_objext
41497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41498   (eval $ac_compile) 2>conftest.er1
41499   ac_status=$?
41500   grep -v '^ *+' conftest.er1 >conftest.err
41501   rm -f conftest.er1
41502   cat conftest.err >&5
41503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504   (exit $ac_status); } &&
41505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41507   (eval $ac_try) 2>&5
41508   ac_status=$?
41509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510   (exit $ac_status); }; } &&
41511          { ac_try='test -s conftest.$ac_objext'
41512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41513   (eval $ac_try) 2>&5
41514   ac_status=$?
41515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516   (exit $ac_status); }; }; then
41517   ac_header_compiler=yes
41518 else
41519   echo "$as_me: failed program was:" >&5
41520 sed 's/^/| /' conftest.$ac_ext >&5
41521
41522 ac_header_compiler=no
41523 fi
41524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41526 echo "${ECHO_T}$ac_header_compiler" >&6
41527
41528 # Is the header present?
41529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41531 cat >conftest.$ac_ext <<_ACEOF
41532 /* confdefs.h.  */
41533 _ACEOF
41534 cat confdefs.h >>conftest.$ac_ext
41535 cat >>conftest.$ac_ext <<_ACEOF
41536 /* end confdefs.h.  */
41537 #include <$ac_header>
41538 _ACEOF
41539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41541   ac_status=$?
41542   grep -v '^ *+' conftest.er1 >conftest.err
41543   rm -f conftest.er1
41544   cat conftest.err >&5
41545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41546   (exit $ac_status); } >/dev/null; then
41547   if test -s conftest.err; then
41548     ac_cpp_err=$ac_c_preproc_warn_flag
41549     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41550   else
41551     ac_cpp_err=
41552   fi
41553 else
41554   ac_cpp_err=yes
41555 fi
41556 if test -z "$ac_cpp_err"; then
41557   ac_header_preproc=yes
41558 else
41559   echo "$as_me: failed program was:" >&5
41560 sed 's/^/| /' conftest.$ac_ext >&5
41561
41562   ac_header_preproc=no
41563 fi
41564 rm -f conftest.err conftest.$ac_ext
41565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41566 echo "${ECHO_T}$ac_header_preproc" >&6
41567
41568 # So?  What about this header?
41569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41570   yes:no: )
41571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41575     ac_header_preproc=yes
41576     ;;
41577   no:yes:* )
41578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41580     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41581 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41582     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41584     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41585 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41588     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41590     (
41591       cat <<\_ASBOX
41592 ## ----------------------------------------- ##
41593 ## Report this to wx-dev@lists.wxwidgets.org ##
41594 ## ----------------------------------------- ##
41595 _ASBOX
41596     ) |
41597       sed "s/^/$as_me: WARNING:     /" >&2
41598     ;;
41599 esac
41600 echo "$as_me:$LINENO: checking for $ac_header" >&5
41601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41603   echo $ECHO_N "(cached) $ECHO_C" >&6
41604 else
41605   eval "$as_ac_Header=\$ac_header_preproc"
41606 fi
41607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41609
41610 fi
41611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41612   cat >>confdefs.h <<_ACEOF
41613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41614 _ACEOF
41615
41616 fi
41617
41618 done
41619
41620
41621     if test "$ac_cv_header_ole2_h" = "yes" ; then
41622         if test "$GCC" = yes ; then
41623
41624
41625             ac_ext=cc
41626 ac_cpp='$CXXCPP $CPPFLAGS'
41627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41630
41631
41632             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
41633 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
41634             cat >conftest.$ac_ext <<_ACEOF
41635 /* confdefs.h.  */
41636 _ACEOF
41637 cat confdefs.h >>conftest.$ac_ext
41638 cat >>conftest.$ac_ext <<_ACEOF
41639 /* end confdefs.h.  */
41640 #include <windows.h>
41641                             #include <ole2.h>
41642 int
41643 main ()
41644 {
41645
41646   ;
41647   return 0;
41648 }
41649 _ACEOF
41650 rm -f conftest.$ac_objext
41651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41652   (eval $ac_compile) 2>conftest.er1
41653   ac_status=$?
41654   grep -v '^ *+' conftest.er1 >conftest.err
41655   rm -f conftest.er1
41656   cat conftest.err >&5
41657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41658   (exit $ac_status); } &&
41659          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41661   (eval $ac_try) 2>&5
41662   ac_status=$?
41663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41664   (exit $ac_status); }; } &&
41665          { ac_try='test -s conftest.$ac_objext'
41666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41667   (eval $ac_try) 2>&5
41668   ac_status=$?
41669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41670   (exit $ac_status); }; }; then
41671   echo "$as_me:$LINENO: result: no" >&5
41672 echo "${ECHO_T}no" >&6
41673 else
41674   echo "$as_me: failed program was:" >&5
41675 sed 's/^/| /' conftest.$ac_ext >&5
41676
41677 echo "$as_me:$LINENO: result: yes" >&5
41678 echo "${ECHO_T}yes" >&6
41679                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
41680 fi
41681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41682             ac_ext=c
41683 ac_cpp='$CPP $CPPFLAGS'
41684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41687
41688             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
41689             if test "$wxUSE_OLE" = "yes" ; then
41690                 cat >>confdefs.h <<\_ACEOF
41691 #define wxUSE_OLE 1
41692 _ACEOF
41693
41694                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
41695             fi
41696         fi
41697
41698                 if test "$wxUSE_DATAOBJ" = "yes" ; then
41699             cat >>confdefs.h <<\_ACEOF
41700 #define wxUSE_DATAOBJ 1
41701 _ACEOF
41702
41703         fi
41704     else
41705         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
41706 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
41707
41708         wxUSE_CLIPBOARD=no
41709         wxUSE_DRAG_AND_DROP=no
41710         wxUSE_DATAOBJ=no
41711         wxUSE_OLE=no
41712     fi
41713
41714     if test "$wxUSE_METAFILE" = "yes"; then
41715         cat >>confdefs.h <<\_ACEOF
41716 #define wxUSE_METAFILE 1
41717 _ACEOF
41718
41719
41720                 cat >>confdefs.h <<\_ACEOF
41721 #define wxUSE_ENH_METAFILE 1
41722 _ACEOF
41723
41724     fi
41725 fi
41726
41727 if test "$wxUSE_IPC" = "yes"; then
41728     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
41729         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
41730 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
41731         wxUSE_IPC=no
41732     fi
41733
41734     if test "$wxUSE_IPC" = "yes"; then
41735         cat >>confdefs.h <<\_ACEOF
41736 #define wxUSE_IPC 1
41737 _ACEOF
41738
41739         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
41740     fi
41741 fi
41742
41743 if test "$wxUSE_DATAOBJ" = "yes"; then
41744     if test "$wxUSE_MGL" = 1; then
41745         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
41746 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
41747         wxUSE_DATAOBJ=no
41748     else
41749         cat >>confdefs.h <<\_ACEOF
41750 #define wxUSE_DATAOBJ 1
41751 _ACEOF
41752
41753     fi
41754 else
41755     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
41756 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
41757     wxUSE_CLIPBOARD=no
41758     wxUSE_DRAG_AND_DROP=no
41759 fi
41760
41761 if test "$wxUSE_CLIPBOARD" = "yes"; then
41762     if test "$wxUSE_MGL" = 1; then
41763         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
41764 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
41765         wxUSE_CLIPBOARD=no
41766     fi
41767
41768     if test "$wxUSE_CLIPBOARD" = "yes"; then
41769         cat >>confdefs.h <<\_ACEOF
41770 #define wxUSE_CLIPBOARD 1
41771 _ACEOF
41772
41773     fi
41774 fi
41775
41776 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
41777     if test "$wxUSE_GTK" = 1; then
41778         if test "$WXGTK12" != 1; then
41779             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
41780 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
41781             wxUSE_DRAG_AND_DROP=no
41782         fi
41783     fi
41784
41785     if test "$wxUSE_MOTIF" = 1; then
41786         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
41787 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
41788         wxUSE_DRAG_AND_DROP=no
41789     fi
41790
41791     if test "$wxUSE_X11" = 1; then
41792         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
41793 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
41794         wxUSE_DRAG_AND_DROP=no
41795     fi
41796
41797     if test "$wxUSE_MGL" = 1; then
41798         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
41799 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
41800         wxUSE_DRAG_AND_DROP=no
41801     fi
41802
41803     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
41804         cat >>confdefs.h <<\_ACEOF
41805 #define wxUSE_DRAG_AND_DROP 1
41806 _ACEOF
41807
41808     fi
41809
41810 fi
41811
41812 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41813     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41814 fi
41815
41816 if test "$wxUSE_SPLINES" = "yes" ; then
41817   cat >>confdefs.h <<\_ACEOF
41818 #define wxUSE_SPLINES 1
41819 _ACEOF
41820
41821 fi
41822
41823 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41824   cat >>confdefs.h <<\_ACEOF
41825 #define wxUSE_MOUSEWHEEL 1
41826 _ACEOF
41827
41828 fi
41829
41830
41831 USES_CONTROLS=0
41832 if test "$wxUSE_CONTROLS" = "yes"; then
41833   USES_CONTROLS=1
41834 fi
41835
41836 if test "$wxUSE_ACCEL" = "yes"; then
41837   cat >>confdefs.h <<\_ACEOF
41838 #define wxUSE_ACCEL 1
41839 _ACEOF
41840
41841   USES_CONTROLS=1
41842 fi
41843
41844 if test "$wxUSE_BUTTON" = "yes"; then
41845   cat >>confdefs.h <<\_ACEOF
41846 #define wxUSE_BUTTON 1
41847 _ACEOF
41848
41849   USES_CONTROLS=1
41850 fi
41851
41852 if test "$wxUSE_BMPBUTTON" = "yes"; then
41853   cat >>confdefs.h <<\_ACEOF
41854 #define wxUSE_BMPBUTTON 1
41855 _ACEOF
41856
41857   USES_CONTROLS=1
41858 fi
41859
41860 if test "$wxUSE_CALCTRL" = "yes"; then
41861   cat >>confdefs.h <<\_ACEOF
41862 #define wxUSE_CALENDARCTRL 1
41863 _ACEOF
41864
41865   USES_CONTROLS=1
41866   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41867 fi
41868
41869 if test "$wxUSE_CARET" = "yes"; then
41870   cat >>confdefs.h <<\_ACEOF
41871 #define wxUSE_CARET 1
41872 _ACEOF
41873
41874   USES_CONTROLS=1
41875   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41876 fi
41877
41878 if test "$wxUSE_COMBOBOX" = "yes"; then
41879   cat >>confdefs.h <<\_ACEOF
41880 #define wxUSE_COMBOBOX 1
41881 _ACEOF
41882
41883   USES_CONTROLS=1
41884 fi
41885
41886 if test "$wxUSE_CHOICE" = "yes"; then
41887   cat >>confdefs.h <<\_ACEOF
41888 #define wxUSE_CHOICE 1
41889 _ACEOF
41890
41891   USES_CONTROLS=1
41892 fi
41893
41894 if test "$wxUSE_CHOICEBOOK" = "yes"; then
41895     cat >>confdefs.h <<\_ACEOF
41896 #define wxUSE_CHOICEBOOK 1
41897 _ACEOF
41898
41899     USES_CONTROLS=1
41900 fi
41901
41902 if test "$wxUSE_CHECKBOX" = "yes"; then
41903   cat >>confdefs.h <<\_ACEOF
41904 #define wxUSE_CHECKBOX 1
41905 _ACEOF
41906
41907   USES_CONTROLS=1
41908 fi
41909
41910 if test "$wxUSE_CHECKLST" = "yes"; then
41911   cat >>confdefs.h <<\_ACEOF
41912 #define wxUSE_CHECKLISTBOX 1
41913 _ACEOF
41914
41915   USES_CONTROLS=1
41916   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41917 fi
41918
41919 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41920   cat >>confdefs.h <<\_ACEOF
41921 #define wxUSE_DATEPICKCTRL 1
41922 _ACEOF
41923
41924   USES_CONTROLS=1
41925 fi
41926
41927 if test "$wxUSE_DISPLAY" = "yes"; then
41928     cat >>confdefs.h <<\_ACEOF
41929 #define wxUSE_DISPLAY 1
41930 _ACEOF
41931
41932     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
41933 fi
41934
41935 if test "$wxUSE_GAUGE" = "yes"; then
41936   cat >>confdefs.h <<\_ACEOF
41937 #define wxUSE_GAUGE 1
41938 _ACEOF
41939
41940   USES_CONTROLS=1
41941 fi
41942
41943 if test "$wxUSE_GRID" = "yes"; then
41944   cat >>confdefs.h <<\_ACEOF
41945 #define wxUSE_GRID 1
41946 _ACEOF
41947
41948   USES_CONTROLS=1
41949   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41950 fi
41951
41952 if test "$wxUSE_IMAGLIST" = "yes"; then
41953     cat >>confdefs.h <<\_ACEOF
41954 #define wxUSE_IMAGLIST 1
41955 _ACEOF
41956
41957 fi
41958
41959 if test "$wxUSE_LISTBOOK" = "yes"; then
41960     cat >>confdefs.h <<\_ACEOF
41961 #define wxUSE_LISTBOOK 1
41962 _ACEOF
41963
41964     USES_CONTROLS=1
41965 fi
41966
41967 if test "$wxUSE_LISTBOX" = "yes"; then
41968     cat >>confdefs.h <<\_ACEOF
41969 #define wxUSE_LISTBOX 1
41970 _ACEOF
41971
41972     USES_CONTROLS=1
41973     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
41974 fi
41975
41976 if test "$wxUSE_LISTCTRL" = "yes"; then
41977     if test "$wxUSE_IMAGLIST" = "yes"; then
41978         cat >>confdefs.h <<\_ACEOF
41979 #define wxUSE_LISTCTRL 1
41980 _ACEOF
41981
41982         USES_CONTROLS=1
41983         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41984     else
41985         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41986 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41987     fi
41988 fi
41989
41990 if test "$wxUSE_NOTEBOOK" = "yes"; then
41991     cat >>confdefs.h <<\_ACEOF
41992 #define wxUSE_NOTEBOOK 1
41993 _ACEOF
41994
41995     USES_CONTROLS=1
41996     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41997 fi
41998
41999
42000 if test "$wxUSE_RADIOBOX" = "yes"; then
42001     cat >>confdefs.h <<\_ACEOF
42002 #define wxUSE_RADIOBOX 1
42003 _ACEOF
42004
42005     USES_CONTROLS=1
42006 fi
42007
42008 if test "$wxUSE_RADIOBTN" = "yes"; then
42009     cat >>confdefs.h <<\_ACEOF
42010 #define wxUSE_RADIOBTN 1
42011 _ACEOF
42012
42013     USES_CONTROLS=1
42014 fi
42015
42016 if test "$wxUSE_SASH" = "yes"; then
42017     cat >>confdefs.h <<\_ACEOF
42018 #define wxUSE_SASH 1
42019 _ACEOF
42020
42021     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
42022 fi
42023
42024 if test "$wxUSE_SCROLLBAR" = "yes"; then
42025     cat >>confdefs.h <<\_ACEOF
42026 #define wxUSE_SCROLLBAR 1
42027 _ACEOF
42028
42029     USES_CONTROLS=1
42030     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
42031 fi
42032
42033 if test "$wxUSE_SLIDER" = "yes"; then
42034     cat >>confdefs.h <<\_ACEOF
42035 #define wxUSE_SLIDER 1
42036 _ACEOF
42037
42038     USES_CONTROLS=1
42039 fi
42040
42041 if test "$wxUSE_SPINBTN" = "yes"; then
42042     cat >>confdefs.h <<\_ACEOF
42043 #define wxUSE_SPINBTN 1
42044 _ACEOF
42045
42046     USES_CONTROLS=1
42047 fi
42048
42049 if test "$wxUSE_SPINCTRL" = "yes"; then
42050     cat >>confdefs.h <<\_ACEOF
42051 #define wxUSE_SPINCTRL 1
42052 _ACEOF
42053
42054     USES_CONTROLS=1
42055 fi
42056
42057 if test "$wxUSE_SPLITTER" = "yes"; then
42058     cat >>confdefs.h <<\_ACEOF
42059 #define wxUSE_SPLITTER 1
42060 _ACEOF
42061
42062     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
42063 fi
42064
42065 if test "$wxUSE_STATBMP" = "yes"; then
42066     cat >>confdefs.h <<\_ACEOF
42067 #define wxUSE_STATBMP 1
42068 _ACEOF
42069
42070     USES_CONTROLS=1
42071 fi
42072
42073 if test "$wxUSE_STATBOX" = "yes"; then
42074     cat >>confdefs.h <<\_ACEOF
42075 #define wxUSE_STATBOX 1
42076 _ACEOF
42077
42078     USES_CONTROLS=1
42079 fi
42080
42081 if test "$wxUSE_STATTEXT" = "yes"; then
42082     cat >>confdefs.h <<\_ACEOF
42083 #define wxUSE_STATTEXT 1
42084 _ACEOF
42085
42086     USES_CONTROLS=1
42087 fi
42088
42089 if test "$wxUSE_STATLINE" = "yes"; then
42090     cat >>confdefs.h <<\_ACEOF
42091 #define wxUSE_STATLINE 1
42092 _ACEOF
42093
42094     USES_CONTROLS=1
42095 fi
42096
42097 if test "$wxUSE_STATUSBAR" = "yes"; then
42098         cat >>confdefs.h <<\_ACEOF
42099 #define wxUSE_NATIVE_STATUSBAR 1
42100 _ACEOF
42101
42102     cat >>confdefs.h <<\_ACEOF
42103 #define wxUSE_STATUSBAR 1
42104 _ACEOF
42105
42106     USES_CONTROLS=1
42107
42108     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
42109 fi
42110
42111 if test "$wxUSE_TABDIALOG" = "yes"; then
42112     cat >>confdefs.h <<\_ACEOF
42113 #define wxUSE_TAB_DIALOG 1
42114 _ACEOF
42115
42116 fi
42117
42118 if test "$wxUSE_TEXTCTRL" = "yes"; then
42119     cat >>confdefs.h <<\_ACEOF
42120 #define wxUSE_TEXTCTRL 1
42121 _ACEOF
42122
42123     USES_CONTROLS=1
42124     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
42125 fi
42126
42127 if test "$wxUSE_TOGGLEBTN" = "yes"; then
42128     if test "$wxUSE_COCOA" = 1 ; then
42129         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
42130 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
42131         wxUSE_TOGGLEBTN=no
42132     fi
42133     if test "$wxUSE_UNIVERSAL" = "yes"; then
42134         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
42135 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
42136         wxUSE_TOGGLEBTN=no
42137     fi
42138
42139     if test "$wxUSE_TOGGLEBTN" = "yes"; then
42140         cat >>confdefs.h <<\_ACEOF
42141 #define wxUSE_TOGGLEBTN 1
42142 _ACEOF
42143
42144         USES_CONTROLS=1
42145     fi
42146 fi
42147
42148 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
42149     cat >>confdefs.h <<\_ACEOF
42150 #define wxUSE_TOOLBAR_SIMPLE 1
42151 _ACEOF
42152
42153     wxUSE_TOOLBAR="yes"
42154     USES_CONTROLS=1
42155 fi
42156
42157 if test "$wxUSE_TOOLBAR" = "yes"; then
42158     cat >>confdefs.h <<\_ACEOF
42159 #define wxUSE_TOOLBAR 1
42160 _ACEOF
42161
42162     USES_CONTROLS=1
42163
42164         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
42165         wxUSE_TOOLBAR_NATIVE="yes"
42166     fi
42167
42168     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
42169         cat >>confdefs.h <<\_ACEOF
42170 #define wxUSE_TOOLBAR_NATIVE 1
42171 _ACEOF
42172
42173         USES_CONTROLS=1
42174     fi
42175
42176     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
42177 fi
42178
42179 if test "$wxUSE_TOOLTIPS" = "yes"; then
42180     if test "$wxUSE_MOTIF" = 1; then
42181         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
42182 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
42183     else
42184         if test "$wxUSE_UNIVERSAL" = "yes"; then
42185             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
42186 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
42187         else
42188             cat >>confdefs.h <<\_ACEOF
42189 #define wxUSE_TOOLTIPS 1
42190 _ACEOF
42191
42192         fi
42193     fi
42194 fi
42195
42196 if test "$wxUSE_TREEBOOK" = "yes"; then
42197     cat >>confdefs.h <<\_ACEOF
42198 #define wxUSE_TREEBOOK 1
42199 _ACEOF
42200
42201     USES_CONTROLS=1
42202 fi
42203
42204 if test "$wxUSE_TREECTRL" = "yes"; then
42205     if test "$wxUSE_IMAGLIST" = "yes"; then
42206         cat >>confdefs.h <<\_ACEOF
42207 #define wxUSE_TREECTRL 1
42208 _ACEOF
42209
42210         USES_CONTROLS=1
42211         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
42212     else
42213         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
42214 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
42215     fi
42216 fi
42217
42218 if test "$wxUSE_POPUPWIN" = "yes"; then
42219     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42220         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
42221 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
42222     else
42223         if test "$wxUSE_PM" = 1; then
42224             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
42225 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
42226         else
42227             cat >>confdefs.h <<\_ACEOF
42228 #define wxUSE_POPUPWIN 1
42229 _ACEOF
42230
42231             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
42232
42233             USES_CONTROLS=1
42234         fi
42235     fi
42236 fi
42237
42238 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
42239     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42240         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
42241 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
42242     else
42243         cat >>confdefs.h <<\_ACEOF
42244 #define wxUSE_DIALUP_MANAGER 1
42245 _ACEOF
42246
42247         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
42248     fi
42249 fi
42250
42251 if test "$wxUSE_TIPWINDOW" = "yes"; then
42252     if test "$wxUSE_PM" = 1; then
42253         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
42254 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
42255     else
42256         cat >>confdefs.h <<\_ACEOF
42257 #define wxUSE_TIPWINDOW 1
42258 _ACEOF
42259
42260     fi
42261 fi
42262
42263 if test "$USES_CONTROLS" = 1; then
42264     cat >>confdefs.h <<\_ACEOF
42265 #define wxUSE_CONTROLS 1
42266 _ACEOF
42267
42268 fi
42269
42270
42271 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
42272     cat >>confdefs.h <<\_ACEOF
42273 #define wxUSE_ACCESSIBILITY 1
42274 _ACEOF
42275
42276     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
42277 fi
42278
42279 if test "$wxUSE_DC_CACHEING" = "yes"; then
42280     cat >>confdefs.h <<\_ACEOF
42281 #define wxUSE_DC_CACHEING 1
42282 _ACEOF
42283
42284 fi
42285
42286 if test "$wxUSE_DRAGIMAGE" = "yes"; then
42287     cat >>confdefs.h <<\_ACEOF
42288 #define wxUSE_DRAGIMAGE 1
42289 _ACEOF
42290
42291     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
42292 fi
42293
42294 if test "$wxUSE_EXCEPTIONS" = "yes"; then
42295     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42296         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
42297 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
42298     else
42299         cat >>confdefs.h <<\_ACEOF
42300 #define wxUSE_EXCEPTIONS 1
42301 _ACEOF
42302
42303         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
42304     fi
42305 fi
42306
42307 USE_HTML=0
42308 if test "$wxUSE_HTML" = "yes"; then
42309     cat >>confdefs.h <<\_ACEOF
42310 #define wxUSE_HTML 1
42311 _ACEOF
42312
42313     USE_HTML=1
42314     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
42315     if test "$wxUSE_MAC" = 1; then
42316         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
42317     fi
42318 fi
42319 if test "$wxUSE_WEBKIT" = "yes"; then
42320     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
42321         old_CPPFLAGS="$CPPFLAGS"
42322         CPPFLAGS="$CPPFLAGS -x objective-c++"
42323         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
42324 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
42325 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
42326   echo $ECHO_N "(cached) $ECHO_C" >&6
42327 else
42328   cat >conftest.$ac_ext <<_ACEOF
42329 /* confdefs.h.  */
42330 _ACEOF
42331 cat confdefs.h >>conftest.$ac_ext
42332 cat >>conftest.$ac_ext <<_ACEOF
42333 /* end confdefs.h.  */
42334 #include <Carbon/Carbon.h>
42335
42336 #include <WebKit/HIWebView.h>
42337 _ACEOF
42338 rm -f conftest.$ac_objext
42339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42340   (eval $ac_compile) 2>conftest.er1
42341   ac_status=$?
42342   grep -v '^ *+' conftest.er1 >conftest.err
42343   rm -f conftest.er1
42344   cat conftest.err >&5
42345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42346   (exit $ac_status); } &&
42347          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42349   (eval $ac_try) 2>&5
42350   ac_status=$?
42351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42352   (exit $ac_status); }; } &&
42353          { ac_try='test -s conftest.$ac_objext'
42354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42355   (eval $ac_try) 2>&5
42356   ac_status=$?
42357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42358   (exit $ac_status); }; }; then
42359   ac_cv_header_WebKit_HIWebView_h=yes
42360 else
42361   echo "$as_me: failed program was:" >&5
42362 sed 's/^/| /' conftest.$ac_ext >&5
42363
42364 ac_cv_header_WebKit_HIWebView_h=no
42365 fi
42366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42367 fi
42368 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
42369 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
42370 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
42371
42372                            cat >>confdefs.h <<\_ACEOF
42373 #define wxUSE_WEBKIT 1
42374 _ACEOF
42375
42376                            WEBKIT_LINK="-framework WebKit"
42377
42378 else
42379
42380                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
42381 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
42382                            wxUSE_WEBKIT=no
42383
42384 fi
42385
42386
42387         CPPFLAGS="$old_CPPFLAGS"
42388     elif test "$wxUSE_COCOA" = 1; then
42389         cat >>confdefs.h <<\_ACEOF
42390 #define wxUSE_WEBKIT 1
42391 _ACEOF
42392
42393     else
42394         wxUSE_WEBKIT=no
42395     fi
42396 fi
42397
42398 USE_XRC=0
42399 if test "$wxUSE_XRC" = "yes"; then
42400     if test "$wxUSE_XML" != "yes"; then
42401         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
42402 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
42403         wxUSE_XRC=no
42404     else
42405         cat >>confdefs.h <<\_ACEOF
42406 #define wxUSE_XRC 1
42407 _ACEOF
42408
42409         USE_XRC=1
42410         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
42411     fi
42412 fi
42413
42414 if test "$wxUSE_MENUS" = "yes"; then
42415     cat >>confdefs.h <<\_ACEOF
42416 #define wxUSE_MENUS 1
42417 _ACEOF
42418
42419     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
42420 fi
42421
42422 if test "$wxUSE_METAFILE" = "yes"; then
42423     cat >>confdefs.h <<\_ACEOF
42424 #define wxUSE_METAFILE 1
42425 _ACEOF
42426
42427 fi
42428
42429 if test "$wxUSE_MIMETYPE" = "yes"; then
42430     cat >>confdefs.h <<\_ACEOF
42431 #define wxUSE_MIMETYPE 1
42432 _ACEOF
42433
42434 fi
42435
42436 if test "$wxUSE_MINIFRAME" = "yes"; then
42437     cat >>confdefs.h <<\_ACEOF
42438 #define wxUSE_MINIFRAME 1
42439 _ACEOF
42440
42441     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
42442 fi
42443
42444 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
42445     cat >>confdefs.h <<\_ACEOF
42446 #define wxUSE_SYSTEM_OPTIONS 1
42447 _ACEOF
42448
42449     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
42450         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
42451         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
42452     fi
42453 fi
42454
42455
42456 if test "$wxUSE_VALIDATORS" = "yes"; then
42457     cat >>confdefs.h <<\_ACEOF
42458 #define wxUSE_VALIDATORS 1
42459 _ACEOF
42460
42461     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
42462 fi
42463
42464 if test "$wxUSE_PALETTE" = "yes" ; then
42465   cat >>confdefs.h <<\_ACEOF
42466 #define wxUSE_PALETTE 1
42467 _ACEOF
42468
42469 fi
42470
42471 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
42472     LIBS=" -lunicows $LIBS"
42473 fi
42474
42475
42476 if test "$wxUSE_IMAGE" = "yes" ; then
42477     cat >>confdefs.h <<\_ACEOF
42478 #define wxUSE_IMAGE 1
42479 _ACEOF
42480
42481
42482     if test "$wxUSE_GIF" = "yes" ; then
42483       cat >>confdefs.h <<\_ACEOF
42484 #define wxUSE_GIF 1
42485 _ACEOF
42486
42487     fi
42488
42489     if test "$wxUSE_PCX" = "yes" ; then
42490       cat >>confdefs.h <<\_ACEOF
42491 #define wxUSE_PCX 1
42492 _ACEOF
42493
42494     fi
42495
42496     if test "$wxUSE_IFF" = "yes" ; then
42497       cat >>confdefs.h <<\_ACEOF
42498 #define wxUSE_IFF 1
42499 _ACEOF
42500
42501     fi
42502
42503     if test "$wxUSE_PNM" = "yes" ; then
42504       cat >>confdefs.h <<\_ACEOF
42505 #define wxUSE_PNM 1
42506 _ACEOF
42507
42508     fi
42509
42510     if test "$wxUSE_XPM" = "yes" ; then
42511       cat >>confdefs.h <<\_ACEOF
42512 #define wxUSE_XPM 1
42513 _ACEOF
42514
42515     fi
42516
42517     if test "$wxUSE_ICO_CUR" = "yes" ; then
42518       cat >>confdefs.h <<\_ACEOF
42519 #define wxUSE_ICO_CUR 1
42520 _ACEOF
42521
42522     fi
42523 fi
42524
42525
42526 if test "$wxUSE_CHOICEDLG" = "yes"; then
42527     cat >>confdefs.h <<\_ACEOF
42528 #define wxUSE_CHOICEDLG 1
42529 _ACEOF
42530
42531 fi
42532
42533 if test "$wxUSE_COLOURDLG" = "yes"; then
42534     cat >>confdefs.h <<\_ACEOF
42535 #define wxUSE_COLOURDLG 1
42536 _ACEOF
42537
42538 fi
42539
42540 if test "$wxUSE_FILEDLG" = "yes"; then
42541     cat >>confdefs.h <<\_ACEOF
42542 #define wxUSE_FILEDLG 1
42543 _ACEOF
42544
42545 fi
42546
42547 if test "$wxUSE_FINDREPLDLG" = "yes"; then
42548     cat >>confdefs.h <<\_ACEOF
42549 #define wxUSE_FINDREPLDLG 1
42550 _ACEOF
42551
42552 fi
42553
42554 if test "$wxUSE_FONTDLG" = "yes"; then
42555     cat >>confdefs.h <<\_ACEOF
42556 #define wxUSE_FONTDLG 1
42557 _ACEOF
42558
42559 fi
42560
42561 if test "$wxUSE_DIRDLG" = "yes"; then
42562     if test "$wxUSE_TREECTRL" != "yes"; then
42563         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
42564 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
42565     else
42566         cat >>confdefs.h <<\_ACEOF
42567 #define wxUSE_DIRDLG 1
42568 _ACEOF
42569
42570     fi
42571 fi
42572
42573 if test "$wxUSE_MSGDLG" = "yes"; then
42574     cat >>confdefs.h <<\_ACEOF
42575 #define wxUSE_MSGDLG 1
42576 _ACEOF
42577
42578 fi
42579
42580 if test "$wxUSE_NUMBERDLG" = "yes"; then
42581     cat >>confdefs.h <<\_ACEOF
42582 #define wxUSE_NUMBERDLG 1
42583 _ACEOF
42584
42585 fi
42586
42587 if test "$wxUSE_PROGRESSDLG" = "yes"; then
42588     if test "$wxUSE_CONSTRAINTS" != "yes"; then
42589        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
42590 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
42591     else
42592         cat >>confdefs.h <<\_ACEOF
42593 #define wxUSE_PROGRESSDLG 1
42594 _ACEOF
42595
42596     fi
42597 fi
42598
42599 if test "$wxUSE_SPLASH" = "yes"; then
42600     cat >>confdefs.h <<\_ACEOF
42601 #define wxUSE_SPLASH 1
42602 _ACEOF
42603
42604     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
42605 fi
42606
42607 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
42608     if test "$wxUSE_CONSTRAINTS" != "yes"; then
42609        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
42610 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
42611     else
42612         cat >>confdefs.h <<\_ACEOF
42613 #define wxUSE_STARTUP_TIPS 1
42614 _ACEOF
42615
42616     fi
42617 fi
42618
42619 if test "$wxUSE_TEXTDLG" = "yes"; then
42620     cat >>confdefs.h <<\_ACEOF
42621 #define wxUSE_TEXTDLG 1
42622 _ACEOF
42623
42624 fi
42625
42626 if test "$wxUSE_WIZARDDLG" = "yes"; then
42627     cat >>confdefs.h <<\_ACEOF
42628 #define wxUSE_WIZARDDLG 1
42629 _ACEOF
42630
42631     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
42632 fi
42633
42634
42635 if test "$wxUSE_MEDIACTRL" = "yes"; then
42636                 if test "$wxUSE_GTK" = 1; then
42637         wxUSE_GSTREAMER="yes"
42638
42639
42640   succeeded=no
42641
42642   if test -z "$PKG_CONFIG"; then
42643     # Extract the first word of "pkg-config", so it can be a program name with args.
42644 set dummy pkg-config; ac_word=$2
42645 echo "$as_me:$LINENO: checking for $ac_word" >&5
42646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42647 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42648   echo $ECHO_N "(cached) $ECHO_C" >&6
42649 else
42650   case $PKG_CONFIG in
42651   [\\/]* | ?:[\\/]*)
42652   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42653   ;;
42654   *)
42655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42656 for as_dir in $PATH
42657 do
42658   IFS=$as_save_IFS
42659   test -z "$as_dir" && as_dir=.
42660   for ac_exec_ext in '' $ac_executable_extensions; do
42661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42662     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42664     break 2
42665   fi
42666 done
42667 done
42668
42669   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
42670   ;;
42671 esac
42672 fi
42673 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42674
42675 if test -n "$PKG_CONFIG"; then
42676   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42677 echo "${ECHO_T}$PKG_CONFIG" >&6
42678 else
42679   echo "$as_me:$LINENO: result: no" >&5
42680 echo "${ECHO_T}no" >&6
42681 fi
42682
42683   fi
42684
42685   if test "$PKG_CONFIG" = "no" ; then
42686      echo "*** The pkg-config script could not be found. Make sure it is"
42687      echo "*** in your path, or set the PKG_CONFIG environment variable"
42688      echo "*** to the full path to pkg-config."
42689      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
42690   else
42691      PKG_CONFIG_MIN_VERSION=0.9.0
42692      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
42693         echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
42694 echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
42695
42696         if $PKG_CONFIG --exists "gstreamer-0.8" ; then
42697             echo "$as_me:$LINENO: result: yes" >&5
42698 echo "${ECHO_T}yes" >&6
42699             succeeded=yes
42700
42701             echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
42702 echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
42703             GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
42704             echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
42705 echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
42706
42707             echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
42708 echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
42709             GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
42710             echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
42711 echo "${ECHO_T}$GSTREAMER_LIBS" >&6
42712         else
42713             GSTREAMER_CFLAGS=""
42714             GSTREAMER_LIBS=""
42715             ## If we have a custom action on failure, don't print errors, but
42716             ## do set a variable so people can do so.
42717             GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
42718
42719         fi
42720
42721
42722
42723      else
42724         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
42725         echo "*** See http://www.freedesktop.org/software/pkgconfig"
42726      fi
42727   fi
42728
42729   if test $succeeded = yes; then
42730
42731             CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
42732             LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
42733
42734   else
42735
42736             { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
42737 echo "$as_me: WARNING: GStreamer installation not found" >&2;}
42738             wxUSE_GSTREAMER="no"
42739
42740   fi
42741
42742
42743
42744
42745
42746         if test "x$GST_INSPECT" == "x"; then
42747             # Extract the first word of "gst-inspect", so it can be a program name with args.
42748 set dummy gst-inspect; ac_word=$2
42749 echo "$as_me:$LINENO: checking for $ac_word" >&5
42750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42751 if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
42752   echo $ECHO_N "(cached) $ECHO_C" >&6
42753 else
42754   if test -n "$GST_INSPECT"; then
42755   ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
42756 else
42757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42758 for as_dir in $PATH
42759 do
42760   IFS=$as_save_IFS
42761   test -z "$as_dir" && as_dir=.
42762   for ac_exec_ext in '' $ac_executable_extensions; do
42763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42764     ac_cv_prog_GST_INSPECT="gst-inspect"
42765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42766     break 2
42767   fi
42768 done
42769 done
42770
42771 fi
42772 fi
42773 GST_INSPECT=$ac_cv_prog_GST_INSPECT
42774 if test -n "$GST_INSPECT"; then
42775   echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
42776 echo "${ECHO_T}$GST_INSPECT" >&6
42777 else
42778   echo "$as_me:$LINENO: result: no" >&5
42779 echo "${ECHO_T}no" >&6
42780 fi
42781
42782         fi
42783
42784         if test "x$GST_INSPECT" != "x"; then
42785             echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
42786 echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
42787             if  $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
42788             echo "$as_me:$LINENO: result: found." >&5
42789 echo "${ECHO_T}found." >&6
42790
42791             else
42792             echo "$as_me:$LINENO: result: not found." >&5
42793 echo "${ECHO_T}not found." >&6
42794
42795                             wxUSE_GSTREAMER="no"
42796                             { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
42797 echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
42798
42799             fi
42800         fi
42801
42802
42803                                 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
42804 echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
42805 if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
42806   echo $ECHO_N "(cached) $ECHO_C" >&6
42807 else
42808   cat >conftest.$ac_ext <<_ACEOF
42809 /* confdefs.h.  */
42810 _ACEOF
42811 cat confdefs.h >>conftest.$ac_ext
42812 cat >>conftest.$ac_ext <<_ACEOF
42813 /* end confdefs.h.  */
42814 #include <gst/gst.h>
42815
42816 #include <gst/xoverlay/xoverlay.h>
42817 _ACEOF
42818 rm -f conftest.$ac_objext
42819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42820   (eval $ac_compile) 2>conftest.er1
42821   ac_status=$?
42822   grep -v '^ *+' conftest.er1 >conftest.err
42823   rm -f conftest.er1
42824   cat conftest.err >&5
42825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42826   (exit $ac_status); } &&
42827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42829   (eval $ac_try) 2>&5
42830   ac_status=$?
42831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42832   (exit $ac_status); }; } &&
42833          { ac_try='test -s conftest.$ac_objext'
42834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42835   (eval $ac_try) 2>&5
42836   ac_status=$?
42837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42838   (exit $ac_status); }; }; then
42839   ac_cv_header_gst_xoverlay_xoverlay_h=yes
42840 else
42841   echo "$as_me: failed program was:" >&5
42842 sed 's/^/| /' conftest.$ac_ext >&5
42843
42844 ac_cv_header_gst_xoverlay_xoverlay_h=no
42845 fi
42846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42847 fi
42848 echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42849 echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42850 if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42851   :
42852 else
42853
42854                             wxUSE_GSTREAMER="no"
42855                             { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42856 echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
42857
42858 fi
42859
42860
42861
42862         echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
42863 echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42864
42865   ac_find_libraries=
42866   for ac_dir in $SEARCH_LIB;
42867   do
42868     for ac_extension in a so sl dylib dll.a; do
42869       if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42870         ac_find_libraries=$ac_dir
42871         break 2
42872       fi
42873     done
42874   done
42875
42876
42877         if test "$ac_find_libraries" = "" ; then
42878             echo "$as_me:$LINENO: result: no" >&5
42879 echo "${ECHO_T}no" >&6
42880             wxUSE_GSTREAMER="no"
42881         else
42882             echo "$as_me:$LINENO: result: yes" >&5
42883 echo "${ECHO_T}yes" >&6
42884         fi
42885
42886         if test "$wxUSE_GSTREAMER" = "yes"; then
42887             cat >>confdefs.h <<\_ACEOF
42888 #define wxUSE_GSTREAMER 1
42889 _ACEOF
42890
42891             echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42892 echo "${ECHO_T}GStreamer detection successful" >&6
42893         fi
42894     fi
42895     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42896     cat >>confdefs.h <<\_ACEOF
42897 #define wxUSE_MEDIACTRL 1
42898 _ACEOF
42899
42900 fi
42901
42902
42903 if test "$cross_compiling" = "yes"; then
42904         OSINFO="\"$host\""
42905 else
42906         OSINFO=`uname -s -r -m`
42907     OSINFO="\"$OSINFO\""
42908 fi
42909
42910 cat >>confdefs.h <<_ACEOF
42911 #define WXWIN_OS_DESCRIPTION $OSINFO
42912 _ACEOF
42913
42914
42915
42916 if test "x$prefix" != "xNONE"; then
42917     wxPREFIX=$prefix
42918 else
42919     wxPREFIX=$ac_default_prefix
42920 fi
42921
42922 cat >>confdefs.h <<_ACEOF
42923 #define wxINSTALL_PREFIX "$wxPREFIX"
42924 _ACEOF
42925
42926
42927
42928
42929 CORE_BASE_LIBS="net base"
42930 CORE_GUI_LIBS="adv core"
42931
42932 if test "$wxUSE_XML" = "yes" ; then
42933     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42934 fi
42935 if test "$wxUSE_ODBC" != "no" ; then
42936     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42937     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42938 fi
42939 if test "$wxUSE_HTML" = "yes" ; then
42940     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42941 fi
42942 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42943     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42944 fi
42945 if test "$wxUSE_XRC" = "yes" ; then
42946     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42947 fi
42948
42949 if test "$wxUSE_GUI" != "yes"; then
42950     CORE_GUI_LIBS=""
42951 fi
42952
42953
42954
42955
42956
42957
42958
42959
42960 if test "$wxUSE_MAC" = 1 ; then
42961     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
42962         if test "$USE_DARWIN" = 1; then
42963             LDFLAGS="$LDFLAGS -framework QuickTime"
42964         else
42965             LDFLAGS="$LDFLAGS -lQuickTimeLib"
42966         fi
42967     fi
42968     if test "$USE_DARWIN" = 1; then
42969         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42970     else
42971         LDFLAGS="$LDFLAGS -lCarbonLib"
42972     fi
42973 fi
42974 if test "$wxUSE_COCOA" = 1 ; then
42975     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
42976     if test "$wxUSE_MEDIACTRL" = "yes"; then
42977         LDFLAGS="$LDFLAGS -framework QuickTime"
42978     fi
42979 fi
42980 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42981     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42982 fi
42983
42984
42985 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42986
42987 have_cos=0
42988 have_floor=0
42989
42990 for ac_func in cos
42991 do
42992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42993 echo "$as_me:$LINENO: checking for $ac_func" >&5
42994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42995 if eval "test \"\${$as_ac_var+set}\" = set"; then
42996   echo $ECHO_N "(cached) $ECHO_C" >&6
42997 else
42998   cat >conftest.$ac_ext <<_ACEOF
42999 /* confdefs.h.  */
43000 _ACEOF
43001 cat confdefs.h >>conftest.$ac_ext
43002 cat >>conftest.$ac_ext <<_ACEOF
43003 /* end confdefs.h.  */
43004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43006 #define $ac_func innocuous_$ac_func
43007
43008 /* System header to define __stub macros and hopefully few prototypes,
43009     which can conflict with char $ac_func (); below.
43010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43011     <limits.h> exists even on freestanding compilers.  */
43012
43013 #ifdef __STDC__
43014 # include <limits.h>
43015 #else
43016 # include <assert.h>
43017 #endif
43018
43019 #undef $ac_func
43020
43021 /* Override any gcc2 internal prototype to avoid an error.  */
43022 #ifdef __cplusplus
43023 extern "C"
43024 {
43025 #endif
43026 /* We use char because int might match the return type of a gcc2
43027    builtin and then its argument prototype would still apply.  */
43028 char $ac_func ();
43029 /* The GNU C library defines this for functions which it implements
43030     to always fail with ENOSYS.  Some functions are actually named
43031     something starting with __ and the normal name is an alias.  */
43032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43033 choke me
43034 #else
43035 char (*f) () = $ac_func;
43036 #endif
43037 #ifdef __cplusplus
43038 }
43039 #endif
43040
43041 int
43042 main ()
43043 {
43044 return f != $ac_func;
43045   ;
43046   return 0;
43047 }
43048 _ACEOF
43049 rm -f conftest.$ac_objext conftest$ac_exeext
43050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43051   (eval $ac_link) 2>conftest.er1
43052   ac_status=$?
43053   grep -v '^ *+' conftest.er1 >conftest.err
43054   rm -f conftest.er1
43055   cat conftest.err >&5
43056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43057   (exit $ac_status); } &&
43058          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43060   (eval $ac_try) 2>&5
43061   ac_status=$?
43062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43063   (exit $ac_status); }; } &&
43064          { ac_try='test -s conftest$ac_exeext'
43065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43066   (eval $ac_try) 2>&5
43067   ac_status=$?
43068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43069   (exit $ac_status); }; }; then
43070   eval "$as_ac_var=yes"
43071 else
43072   echo "$as_me: failed program was:" >&5
43073 sed 's/^/| /' conftest.$ac_ext >&5
43074
43075 eval "$as_ac_var=no"
43076 fi
43077 rm -f conftest.err conftest.$ac_objext \
43078       conftest$ac_exeext conftest.$ac_ext
43079 fi
43080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43082 if test `eval echo '${'$as_ac_var'}'` = yes; then
43083   cat >>confdefs.h <<_ACEOF
43084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43085 _ACEOF
43086  have_cos=1
43087 fi
43088 done
43089
43090
43091 for ac_func in floor
43092 do
43093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43094 echo "$as_me:$LINENO: checking for $ac_func" >&5
43095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43096 if eval "test \"\${$as_ac_var+set}\" = set"; then
43097   echo $ECHO_N "(cached) $ECHO_C" >&6
43098 else
43099   cat >conftest.$ac_ext <<_ACEOF
43100 /* confdefs.h.  */
43101 _ACEOF
43102 cat confdefs.h >>conftest.$ac_ext
43103 cat >>conftest.$ac_ext <<_ACEOF
43104 /* end confdefs.h.  */
43105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43107 #define $ac_func innocuous_$ac_func
43108
43109 /* System header to define __stub macros and hopefully few prototypes,
43110     which can conflict with char $ac_func (); below.
43111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43112     <limits.h> exists even on freestanding compilers.  */
43113
43114 #ifdef __STDC__
43115 # include <limits.h>
43116 #else
43117 # include <assert.h>
43118 #endif
43119
43120 #undef $ac_func
43121
43122 /* Override any gcc2 internal prototype to avoid an error.  */
43123 #ifdef __cplusplus
43124 extern "C"
43125 {
43126 #endif
43127 /* We use char because int might match the return type of a gcc2
43128    builtin and then its argument prototype would still apply.  */
43129 char $ac_func ();
43130 /* The GNU C library defines this for functions which it implements
43131     to always fail with ENOSYS.  Some functions are actually named
43132     something starting with __ and the normal name is an alias.  */
43133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43134 choke me
43135 #else
43136 char (*f) () = $ac_func;
43137 #endif
43138 #ifdef __cplusplus
43139 }
43140 #endif
43141
43142 int
43143 main ()
43144 {
43145 return f != $ac_func;
43146   ;
43147   return 0;
43148 }
43149 _ACEOF
43150 rm -f conftest.$ac_objext conftest$ac_exeext
43151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43152   (eval $ac_link) 2>conftest.er1
43153   ac_status=$?
43154   grep -v '^ *+' conftest.er1 >conftest.err
43155   rm -f conftest.er1
43156   cat conftest.err >&5
43157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43158   (exit $ac_status); } &&
43159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43161   (eval $ac_try) 2>&5
43162   ac_status=$?
43163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43164   (exit $ac_status); }; } &&
43165          { ac_try='test -s conftest$ac_exeext'
43166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43167   (eval $ac_try) 2>&5
43168   ac_status=$?
43169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43170   (exit $ac_status); }; }; then
43171   eval "$as_ac_var=yes"
43172 else
43173   echo "$as_me: failed program was:" >&5
43174 sed 's/^/| /' conftest.$ac_ext >&5
43175
43176 eval "$as_ac_var=no"
43177 fi
43178 rm -f conftest.err conftest.$ac_objext \
43179       conftest$ac_exeext conftest.$ac_ext
43180 fi
43181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43183 if test `eval echo '${'$as_ac_var'}'` = yes; then
43184   cat >>confdefs.h <<_ACEOF
43185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43186 _ACEOF
43187  have_floor=1
43188 fi
43189 done
43190
43191 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
43192 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
43193 if test "$have_cos" = 1 -a "$have_floor" = 1; then
43194     echo "$as_me:$LINENO: result: yes" >&5
43195 echo "${ECHO_T}yes" >&6
43196 else
43197     echo "$as_me:$LINENO: result: no" >&5
43198 echo "${ECHO_T}no" >&6
43199     LIBS="$LIBS -lm"
43200     # use different functions to avoid configure caching
43201     have_sin=0
43202     have_ceil=0
43203
43204 for ac_func in sin
43205 do
43206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43207 echo "$as_me:$LINENO: checking for $ac_func" >&5
43208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43209 if eval "test \"\${$as_ac_var+set}\" = set"; then
43210   echo $ECHO_N "(cached) $ECHO_C" >&6
43211 else
43212   cat >conftest.$ac_ext <<_ACEOF
43213 /* confdefs.h.  */
43214 _ACEOF
43215 cat confdefs.h >>conftest.$ac_ext
43216 cat >>conftest.$ac_ext <<_ACEOF
43217 /* end confdefs.h.  */
43218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43220 #define $ac_func innocuous_$ac_func
43221
43222 /* System header to define __stub macros and hopefully few prototypes,
43223     which can conflict with char $ac_func (); below.
43224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43225     <limits.h> exists even on freestanding compilers.  */
43226
43227 #ifdef __STDC__
43228 # include <limits.h>
43229 #else
43230 # include <assert.h>
43231 #endif
43232
43233 #undef $ac_func
43234
43235 /* Override any gcc2 internal prototype to avoid an error.  */
43236 #ifdef __cplusplus
43237 extern "C"
43238 {
43239 #endif
43240 /* We use char because int might match the return type of a gcc2
43241    builtin and then its argument prototype would still apply.  */
43242 char $ac_func ();
43243 /* The GNU C library defines this for functions which it implements
43244     to always fail with ENOSYS.  Some functions are actually named
43245     something starting with __ and the normal name is an alias.  */
43246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43247 choke me
43248 #else
43249 char (*f) () = $ac_func;
43250 #endif
43251 #ifdef __cplusplus
43252 }
43253 #endif
43254
43255 int
43256 main ()
43257 {
43258 return f != $ac_func;
43259   ;
43260   return 0;
43261 }
43262 _ACEOF
43263 rm -f conftest.$ac_objext conftest$ac_exeext
43264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43265   (eval $ac_link) 2>conftest.er1
43266   ac_status=$?
43267   grep -v '^ *+' conftest.er1 >conftest.err
43268   rm -f conftest.er1
43269   cat conftest.err >&5
43270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43271   (exit $ac_status); } &&
43272          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43274   (eval $ac_try) 2>&5
43275   ac_status=$?
43276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43277   (exit $ac_status); }; } &&
43278          { ac_try='test -s conftest$ac_exeext'
43279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43280   (eval $ac_try) 2>&5
43281   ac_status=$?
43282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43283   (exit $ac_status); }; }; then
43284   eval "$as_ac_var=yes"
43285 else
43286   echo "$as_me: failed program was:" >&5
43287 sed 's/^/| /' conftest.$ac_ext >&5
43288
43289 eval "$as_ac_var=no"
43290 fi
43291 rm -f conftest.err conftest.$ac_objext \
43292       conftest$ac_exeext conftest.$ac_ext
43293 fi
43294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43296 if test `eval echo '${'$as_ac_var'}'` = yes; then
43297   cat >>confdefs.h <<_ACEOF
43298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43299 _ACEOF
43300  have_sin=1
43301 fi
43302 done
43303
43304
43305 for ac_func in ceil
43306 do
43307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43308 echo "$as_me:$LINENO: checking for $ac_func" >&5
43309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43310 if eval "test \"\${$as_ac_var+set}\" = set"; then
43311   echo $ECHO_N "(cached) $ECHO_C" >&6
43312 else
43313   cat >conftest.$ac_ext <<_ACEOF
43314 /* confdefs.h.  */
43315 _ACEOF
43316 cat confdefs.h >>conftest.$ac_ext
43317 cat >>conftest.$ac_ext <<_ACEOF
43318 /* end confdefs.h.  */
43319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43321 #define $ac_func innocuous_$ac_func
43322
43323 /* System header to define __stub macros and hopefully few prototypes,
43324     which can conflict with char $ac_func (); below.
43325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43326     <limits.h> exists even on freestanding compilers.  */
43327
43328 #ifdef __STDC__
43329 # include <limits.h>
43330 #else
43331 # include <assert.h>
43332 #endif
43333
43334 #undef $ac_func
43335
43336 /* Override any gcc2 internal prototype to avoid an error.  */
43337 #ifdef __cplusplus
43338 extern "C"
43339 {
43340 #endif
43341 /* We use char because int might match the return type of a gcc2
43342    builtin and then its argument prototype would still apply.  */
43343 char $ac_func ();
43344 /* The GNU C library defines this for functions which it implements
43345     to always fail with ENOSYS.  Some functions are actually named
43346     something starting with __ and the normal name is an alias.  */
43347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43348 choke me
43349 #else
43350 char (*f) () = $ac_func;
43351 #endif
43352 #ifdef __cplusplus
43353 }
43354 #endif
43355
43356 int
43357 main ()
43358 {
43359 return f != $ac_func;
43360   ;
43361   return 0;
43362 }
43363 _ACEOF
43364 rm -f conftest.$ac_objext conftest$ac_exeext
43365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43366   (eval $ac_link) 2>conftest.er1
43367   ac_status=$?
43368   grep -v '^ *+' conftest.er1 >conftest.err
43369   rm -f conftest.er1
43370   cat conftest.err >&5
43371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43372   (exit $ac_status); } &&
43373          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43375   (eval $ac_try) 2>&5
43376   ac_status=$?
43377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43378   (exit $ac_status); }; } &&
43379          { ac_try='test -s conftest$ac_exeext'
43380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43381   (eval $ac_try) 2>&5
43382   ac_status=$?
43383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43384   (exit $ac_status); }; }; then
43385   eval "$as_ac_var=yes"
43386 else
43387   echo "$as_me: failed program was:" >&5
43388 sed 's/^/| /' conftest.$ac_ext >&5
43389
43390 eval "$as_ac_var=no"
43391 fi
43392 rm -f conftest.err conftest.$ac_objext \
43393       conftest$ac_exeext conftest.$ac_ext
43394 fi
43395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43397 if test `eval echo '${'$as_ac_var'}'` = yes; then
43398   cat >>confdefs.h <<_ACEOF
43399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43400 _ACEOF
43401  have_ceil=1
43402 fi
43403 done
43404
43405     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
43406 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
43407     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
43408         echo "$as_me:$LINENO: result: yes" >&5
43409 echo "${ECHO_T}yes" >&6
43410     else
43411         echo "$as_me:$LINENO: result: no" >&5
43412 echo "${ECHO_T}no" >&6
43413         # not sure we should warn the user, crash, etc.
43414     fi
43415 fi
43416
43417 if test "$wxUSE_GUI" = "yes"; then
43418
43419
43420         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
43421                      dynamic erase event exec font image minimal mobile \
43422                      mobile/wxedit mobile/styles propsize render \
43423                      richedit rotate shaped vscroll widgets"
43424
43425     if test "$wxUSE_MONOLITHIC" != "yes"; then
43426         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
43427     fi
43428     if test "$TOOLKIT" = "MSW"; then
43429         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
43430         if test "$wxUSE_UNIVERSAL" != "yes"; then
43431             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
43432         fi
43433     fi
43434     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
43435         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
43436     fi
43437 else
43438     SAMPLES_SUBDIRS="console"
43439 fi
43440
43441
43442 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
43443 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
43444
43445 if test "x$INTELCC" = "xyes" ; then
43446                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
43447 elif test "$GCC" = yes ; then
43448     CWARNINGS="-Wall -Wundef"
43449 fi
43450
43451 if test "x$INTELCXX" = "xyes" ; then
43452                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
43453 elif test "$GXX" = yes ; then
43454         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
43455
43456                     case "${host}" in
43457         *-*-cygwin* | *-*-mingw32* )
43458             CXXWARNINGS="$CXXWARNINGS -Wno-format"
43459     esac
43460 fi
43461
43462 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
43463
43464 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
43465 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
43466 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
43467
43468 if test "x$MWCC" = "xyes"; then
43469
43470             CC="$CC -cwd source -I-"
43471     CXX="$CXX -cwd source -I-"
43472 fi
43473
43474
43475 LIBS=`echo $LIBS`
43476 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
43477 EXTRALIBS_XML="$EXPAT_LINK"
43478 EXTRALIBS_HTML="$MSPACK_LINK"
43479 EXTRALIBS_ODBC="$ODBC_LINK"
43480 if test "$wxUSE_GUI" = "yes"; then
43481     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
43482 fi
43483 if test "$wxUSE_OPENGL" = "yes"; then
43484     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
43485 fi
43486
43487 LDFLAGS="$LDFLAGS $PROFILE"
43488
43489 if test "$wxUSE_GTK" = 1; then
43490     WXCONFIG_INCLUDE=
43491 else
43492     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
43493 fi
43494
43495 WXCONFIG_EXTRALIBS="$LIBS"
43496
43497 if test "$wxUSE_REGEX" = "builtin" ; then
43498     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
43499 fi
43500 if test "$wxUSE_EXPAT" = "builtin" ; then
43501     wxconfig_3rdparty="expat $wxconfig_3rdparty"
43502 fi
43503 if test "$wxUSE_ODBC" = "builtin" ; then
43504     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
43505 fi
43506 if test "$wxUSE_LIBTIFF" = "builtin" ; then
43507     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
43508 fi
43509 if test "$wxUSE_LIBJPEG" = "builtin" ; then
43510     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
43511 fi
43512 if test "$wxUSE_LIBPNG" = "builtin" ; then
43513     wxconfig_3rdparty="png $wxconfig_3rdparty"
43514 fi
43515 if test "$wxUSE_ZLIB" = "builtin" ; then
43516     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
43517 fi
43518
43519 for i in $wxconfig_3rdparty ; do
43520     WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
43521 done
43522
43523
43524 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
43525     WXUNIV=1
43526 else
43527     WXUNIV=0
43528 fi
43529
43530
43531
43532
43533
43534
43535
43536
43537
43538 if test $wxUSE_MONOLITHIC = "yes" ; then
43539     MONOLITHIC=1
43540 else
43541     MONOLITHIC=0
43542 fi
43543
43544 if test $wxUSE_PLUGINS = "yes" ; then
43545     USE_PLUGINS=1
43546 else
43547     USE_PLUGINS=0
43548 fi
43549
43550 if test $wxUSE_ODBC != "no" ; then
43551     USE_ODBC=1
43552 else
43553     USE_ODBC=0
43554 fi
43555
43556 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
43557     USE_QA=1
43558 else
43559     USE_QA=0
43560 fi
43561
43562 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
43563     OFFICIAL_BUILD=1
43564 else
43565     OFFICIAL_BUILD=0
43566 fi
43567
43568
43569
43570
43571
43572
43573
43574
43575
43576
43577
43578
43579
43580
43581
43582
43583
43584
43585
43586
43587
43588
43589
43590 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
43591
43592
43593
43594
43595
43596
43597
43598
43599 case "$TOOLKIT" in
43600     GTK)
43601         TOOLKIT_USER="GTK+"
43602         if test "$WXGTK20" = 1; then
43603             TOOLKIT_USER="$TOOLKIT_USER 2"
43604         fi
43605         ;;
43606
43607     *)
43608         TOOLKIT_USER=$TOOLKIT_LOWERCASE
43609         ;;
43610 esac
43611
43612 if test "$wxUSE_WINE" = "yes"; then
43613     BAKEFILE_FORCE_PLATFORM=win32
43614 fi
43615
43616
43617
43618
43619     if test "x$BAKEFILE_HOST" = "x"; then
43620         BAKEFILE_HOST="${host}"
43621     fi
43622
43623     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
43624
43625     if test -n "$ac_tool_prefix"; then
43626   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
43627 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
43628 echo "$as_me:$LINENO: checking for $ac_word" >&5
43629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43630 if test "${ac_cv_prog_RANLIB+set}" = set; then
43631   echo $ECHO_N "(cached) $ECHO_C" >&6
43632 else
43633   if test -n "$RANLIB"; then
43634   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43635 else
43636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43637 for as_dir in $PATH
43638 do
43639   IFS=$as_save_IFS
43640   test -z "$as_dir" && as_dir=.
43641   for ac_exec_ext in '' $ac_executable_extensions; do
43642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43643     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
43644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43645     break 2
43646   fi
43647 done
43648 done
43649
43650 fi
43651 fi
43652 RANLIB=$ac_cv_prog_RANLIB
43653 if test -n "$RANLIB"; then
43654   echo "$as_me:$LINENO: result: $RANLIB" >&5
43655 echo "${ECHO_T}$RANLIB" >&6
43656 else
43657   echo "$as_me:$LINENO: result: no" >&5
43658 echo "${ECHO_T}no" >&6
43659 fi
43660
43661 fi
43662 if test -z "$ac_cv_prog_RANLIB"; then
43663   ac_ct_RANLIB=$RANLIB
43664   # Extract the first word of "ranlib", so it can be a program name with args.
43665 set dummy ranlib; ac_word=$2
43666 echo "$as_me:$LINENO: checking for $ac_word" >&5
43667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43668 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
43669   echo $ECHO_N "(cached) $ECHO_C" >&6
43670 else
43671   if test -n "$ac_ct_RANLIB"; then
43672   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
43673 else
43674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43675 for as_dir in $PATH
43676 do
43677   IFS=$as_save_IFS
43678   test -z "$as_dir" && as_dir=.
43679   for ac_exec_ext in '' $ac_executable_extensions; do
43680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43681     ac_cv_prog_ac_ct_RANLIB="ranlib"
43682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43683     break 2
43684   fi
43685 done
43686 done
43687
43688   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
43689 fi
43690 fi
43691 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43692 if test -n "$ac_ct_RANLIB"; then
43693   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43694 echo "${ECHO_T}$ac_ct_RANLIB" >&6
43695 else
43696   echo "$as_me:$LINENO: result: no" >&5
43697 echo "${ECHO_T}no" >&6
43698 fi
43699
43700   RANLIB=$ac_ct_RANLIB
43701 else
43702   RANLIB="$ac_cv_prog_RANLIB"
43703 fi
43704
43705     # Find a good install program.  We prefer a C program (faster),
43706 # so one script is as good as another.  But avoid the broken or
43707 # incompatible versions:
43708 # SysV /etc/install, /usr/sbin/install
43709 # SunOS /usr/etc/install
43710 # IRIX /sbin/install
43711 # AIX /bin/install
43712 # AmigaOS /C/install, which installs bootblocks on floppy discs
43713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
43714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
43715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
43716 # OS/2's system install, which has a completely different semantic
43717 # ./install, which can be erroneously created by make from ./install.sh.
43718 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
43719 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
43720 if test -z "$INSTALL"; then
43721 if test "${ac_cv_path_install+set}" = set; then
43722   echo $ECHO_N "(cached) $ECHO_C" >&6
43723 else
43724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43725 for as_dir in $PATH
43726 do
43727   IFS=$as_save_IFS
43728   test -z "$as_dir" && as_dir=.
43729   # Account for people who put trailing slashes in PATH elements.
43730 case $as_dir/ in
43731   ./ | .// | /cC/* | \
43732   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
43733   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
43734   /usr/ucb/* ) ;;
43735   *)
43736     # OSF1 and SCO ODT 3.0 have their own names for install.
43737     # Don't use installbsd from OSF since it installs stuff as root
43738     # by default.
43739     for ac_prog in ginstall scoinst install; do
43740       for ac_exec_ext in '' $ac_executable_extensions; do
43741         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
43742           if test $ac_prog = install &&
43743             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43744             # AIX install.  It has an incompatible calling convention.
43745             :
43746           elif test $ac_prog = install &&
43747             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43748             # program-specific install script used by HP pwplus--don't use.
43749             :
43750           else
43751             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
43752             break 3
43753           fi
43754         fi
43755       done
43756     done
43757     ;;
43758 esac
43759 done
43760
43761
43762 fi
43763   if test "${ac_cv_path_install+set}" = set; then
43764     INSTALL=$ac_cv_path_install
43765   else
43766     # As a last resort, use the slow shell script.  We don't cache a
43767     # path for INSTALL within a source directory, because that will
43768     # break other packages using the cache if that directory is
43769     # removed, or if the path is relative.
43770     INSTALL=$ac_install_sh
43771   fi
43772 fi
43773 echo "$as_me:$LINENO: result: $INSTALL" >&5
43774 echo "${ECHO_T}$INSTALL" >&6
43775
43776 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
43777 # It thinks the first close brace ends the variable substitution.
43778 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
43779
43780 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
43781
43782 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
43783
43784     echo "$as_me:$LINENO: checking whether ln -s works" >&5
43785 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
43786 LN_S=$as_ln_s
43787 if test "$LN_S" = "ln -s"; then
43788   echo "$as_me:$LINENO: result: yes" >&5
43789 echo "${ECHO_T}yes" >&6
43790 else
43791   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43792 echo "${ECHO_T}no, using $LN_S" >&6
43793 fi
43794
43795
43796     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43797 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
43798 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
43799 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43800   echo $ECHO_N "(cached) $ECHO_C" >&6
43801 else
43802   cat >conftest.make <<\_ACEOF
43803 all:
43804         @echo 'ac_maketemp="$(MAKE)"'
43805 _ACEOF
43806 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43807 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43808 if test -n "$ac_maketemp"; then
43809   eval ac_cv_prog_make_${ac_make}_set=yes
43810 else
43811   eval ac_cv_prog_make_${ac_make}_set=no
43812 fi
43813 rm -f conftest.make
43814 fi
43815 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43816   echo "$as_me:$LINENO: result: yes" >&5
43817 echo "${ECHO_T}yes" >&6
43818   SET_MAKE=
43819 else
43820   echo "$as_me:$LINENO: result: no" >&5
43821 echo "${ECHO_T}no" >&6
43822   SET_MAKE="MAKE=${MAKE-make}"
43823 fi
43824
43825
43826
43827     if test -n "$ac_tool_prefix"; then
43828   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43829 set dummy ${ac_tool_prefix}ar; ac_word=$2
43830 echo "$as_me:$LINENO: checking for $ac_word" >&5
43831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43832 if test "${ac_cv_prog_AR+set}" = set; then
43833   echo $ECHO_N "(cached) $ECHO_C" >&6
43834 else
43835   if test -n "$AR"; then
43836   ac_cv_prog_AR="$AR" # Let the user override the test.
43837 else
43838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43839 for as_dir in $PATH
43840 do
43841   IFS=$as_save_IFS
43842   test -z "$as_dir" && as_dir=.
43843   for ac_exec_ext in '' $ac_executable_extensions; do
43844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43845     ac_cv_prog_AR="${ac_tool_prefix}ar"
43846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43847     break 2
43848   fi
43849 done
43850 done
43851
43852 fi
43853 fi
43854 AR=$ac_cv_prog_AR
43855 if test -n "$AR"; then
43856   echo "$as_me:$LINENO: result: $AR" >&5
43857 echo "${ECHO_T}$AR" >&6
43858 else
43859   echo "$as_me:$LINENO: result: no" >&5
43860 echo "${ECHO_T}no" >&6
43861 fi
43862
43863 fi
43864 if test -z "$ac_cv_prog_AR"; then
43865   ac_ct_AR=$AR
43866   # Extract the first word of "ar", so it can be a program name with args.
43867 set dummy ar; ac_word=$2
43868 echo "$as_me:$LINENO: checking for $ac_word" >&5
43869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43870 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43871   echo $ECHO_N "(cached) $ECHO_C" >&6
43872 else
43873   if test -n "$ac_ct_AR"; then
43874   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43875 else
43876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43877 for as_dir in $PATH
43878 do
43879   IFS=$as_save_IFS
43880   test -z "$as_dir" && as_dir=.
43881   for ac_exec_ext in '' $ac_executable_extensions; do
43882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43883     ac_cv_prog_ac_ct_AR="ar"
43884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43885     break 2
43886   fi
43887 done
43888 done
43889
43890   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43891 fi
43892 fi
43893 ac_ct_AR=$ac_cv_prog_ac_ct_AR
43894 if test -n "$ac_ct_AR"; then
43895   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43896 echo "${ECHO_T}$ac_ct_AR" >&6
43897 else
43898   echo "$as_me:$LINENO: result: no" >&5
43899 echo "${ECHO_T}no" >&6
43900 fi
43901
43902   AR=$ac_ct_AR
43903 else
43904   AR="$ac_cv_prog_AR"
43905 fi
43906
43907     if test -n "$ac_tool_prefix"; then
43908   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43909 set dummy ${ac_tool_prefix}strip; ac_word=$2
43910 echo "$as_me:$LINENO: checking for $ac_word" >&5
43911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43912 if test "${ac_cv_prog_STRIP+set}" = set; then
43913   echo $ECHO_N "(cached) $ECHO_C" >&6
43914 else
43915   if test -n "$STRIP"; then
43916   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43917 else
43918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43919 for as_dir in $PATH
43920 do
43921   IFS=$as_save_IFS
43922   test -z "$as_dir" && as_dir=.
43923   for ac_exec_ext in '' $ac_executable_extensions; do
43924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43925     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43927     break 2
43928   fi
43929 done
43930 done
43931
43932 fi
43933 fi
43934 STRIP=$ac_cv_prog_STRIP
43935 if test -n "$STRIP"; then
43936   echo "$as_me:$LINENO: result: $STRIP" >&5
43937 echo "${ECHO_T}$STRIP" >&6
43938 else
43939   echo "$as_me:$LINENO: result: no" >&5
43940 echo "${ECHO_T}no" >&6
43941 fi
43942
43943 fi
43944 if test -z "$ac_cv_prog_STRIP"; then
43945   ac_ct_STRIP=$STRIP
43946   # Extract the first word of "strip", so it can be a program name with args.
43947 set dummy strip; ac_word=$2
43948 echo "$as_me:$LINENO: checking for $ac_word" >&5
43949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43950 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43951   echo $ECHO_N "(cached) $ECHO_C" >&6
43952 else
43953   if test -n "$ac_ct_STRIP"; then
43954   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43955 else
43956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43957 for as_dir in $PATH
43958 do
43959   IFS=$as_save_IFS
43960   test -z "$as_dir" && as_dir=.
43961   for ac_exec_ext in '' $ac_executable_extensions; do
43962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43963     ac_cv_prog_ac_ct_STRIP="strip"
43964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43965     break 2
43966   fi
43967 done
43968 done
43969
43970   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43971 fi
43972 fi
43973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43974 if test -n "$ac_ct_STRIP"; then
43975   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43976 echo "${ECHO_T}$ac_ct_STRIP" >&6
43977 else
43978   echo "$as_me:$LINENO: result: no" >&5
43979 echo "${ECHO_T}no" >&6
43980 fi
43981
43982   STRIP=$ac_ct_STRIP
43983 else
43984   STRIP="$ac_cv_prog_STRIP"
43985 fi
43986
43987     if test -n "$ac_tool_prefix"; then
43988   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43989 set dummy ${ac_tool_prefix}nm; ac_word=$2
43990 echo "$as_me:$LINENO: checking for $ac_word" >&5
43991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43992 if test "${ac_cv_prog_NM+set}" = set; then
43993   echo $ECHO_N "(cached) $ECHO_C" >&6
43994 else
43995   if test -n "$NM"; then
43996   ac_cv_prog_NM="$NM" # Let the user override the test.
43997 else
43998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43999 for as_dir in $PATH
44000 do
44001   IFS=$as_save_IFS
44002   test -z "$as_dir" && as_dir=.
44003   for ac_exec_ext in '' $ac_executable_extensions; do
44004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44005     ac_cv_prog_NM="${ac_tool_prefix}nm"
44006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44007     break 2
44008   fi
44009 done
44010 done
44011
44012 fi
44013 fi
44014 NM=$ac_cv_prog_NM
44015 if test -n "$NM"; then
44016   echo "$as_me:$LINENO: result: $NM" >&5
44017 echo "${ECHO_T}$NM" >&6
44018 else
44019   echo "$as_me:$LINENO: result: no" >&5
44020 echo "${ECHO_T}no" >&6
44021 fi
44022
44023 fi
44024 if test -z "$ac_cv_prog_NM"; then
44025   ac_ct_NM=$NM
44026   # Extract the first word of "nm", so it can be a program name with args.
44027 set dummy nm; ac_word=$2
44028 echo "$as_me:$LINENO: checking for $ac_word" >&5
44029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44030 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
44031   echo $ECHO_N "(cached) $ECHO_C" >&6
44032 else
44033   if test -n "$ac_ct_NM"; then
44034   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
44035 else
44036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44037 for as_dir in $PATH
44038 do
44039   IFS=$as_save_IFS
44040   test -z "$as_dir" && as_dir=.
44041   for ac_exec_ext in '' $ac_executable_extensions; do
44042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44043     ac_cv_prog_ac_ct_NM="nm"
44044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44045     break 2
44046   fi
44047 done
44048 done
44049
44050   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
44051 fi
44052 fi
44053 ac_ct_NM=$ac_cv_prog_ac_ct_NM
44054 if test -n "$ac_ct_NM"; then
44055   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
44056 echo "${ECHO_T}$ac_ct_NM" >&6
44057 else
44058   echo "$as_me:$LINENO: result: no" >&5
44059 echo "${ECHO_T}no" >&6
44060 fi
44061
44062   NM=$ac_ct_NM
44063 else
44064   NM="$ac_cv_prog_NM"
44065 fi
44066
44067
44068     case ${BAKEFILE_HOST} in
44069         *-hp-hpux* )
44070                                     INSTALL_DIR="mkdir -p"
44071             ;;
44072         *)  INSTALL_DIR="$INSTALL -d"
44073             ;;
44074     esac
44075
44076
44077     LDFLAGS_GUI=
44078     case ${BAKEFILE_HOST} in
44079         *-*-cygwin* | *-*-mingw32* )
44080         LDFLAGS_GUI="-mwindows"
44081     esac
44082
44083
44084     fi
44085
44086         echo "$as_me:$LINENO: checking if make is GNU make" >&5
44087 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
44088 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
44089   echo $ECHO_N "(cached) $ECHO_C" >&6
44090 else
44091
44092         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
44093                 egrep -s GNU > /dev/null); then
44094             bakefile_cv_prog_makeisgnu="yes"
44095         else
44096             bakefile_cv_prog_makeisgnu="no"
44097         fi
44098
44099 fi
44100 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
44101 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
44102
44103     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
44104         IF_GNU_MAKE=""
44105     else
44106         IF_GNU_MAKE="#"
44107     fi
44108
44109
44110
44111     PLATFORM_UNIX=0
44112     PLATFORM_WIN32=0
44113     PLATFORM_MSDOS=0
44114     PLATFORM_MAC=0
44115     PLATFORM_MACOS=0
44116     PLATFORM_MACOSX=0
44117     PLATFORM_OS2=0
44118     PLATFORM_BEOS=0
44119
44120     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
44121         case "${BAKEFILE_HOST}" in
44122             *-*-mingw32* )
44123                 PLATFORM_WIN32=1
44124             ;;
44125             *-pc-msdosdjgpp )
44126                 PLATFORM_MSDOS=1
44127             ;;
44128             *-pc-os2_emx | *-pc-os2-emx )
44129                 PLATFORM_OS2=1
44130             ;;
44131             *-*-darwin* )
44132                 PLATFORM_MAC=1
44133                 PLATFORM_MACOSX=1
44134             ;;
44135             *-*-beos* )
44136                 PLATFORM_BEOS=1
44137             ;;
44138             powerpc-apple-macos* )
44139                 PLATFORM_MAC=1
44140                 PLATFORM_MACOS=1
44141             ;;
44142             * )
44143                 PLATFORM_UNIX=1
44144             ;;
44145         esac
44146     else
44147         case "$BAKEFILE_FORCE_PLATFORM" in
44148             win32 )
44149                 PLATFORM_WIN32=1
44150             ;;
44151             msdos )
44152                 PLATFORM_MSDOS=1
44153             ;;
44154             os2 )
44155                 PLATFORM_OS2=1
44156             ;;
44157             darwin )
44158                 PLATFORM_MAC=1
44159                 PLATFORM_MACOSX=1
44160             ;;
44161             unix )
44162                 PLATFORM_UNIX=1
44163             ;;
44164             beos )
44165                 PLATFORM_BEOS=1
44166             ;;
44167             * )
44168                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
44169 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
44170    { (exit 1); exit 1; }; }
44171             ;;
44172         esac
44173     fi
44174
44175
44176
44177
44178
44179
44180
44181
44182
44183
44184
44185     # Check whether --enable-omf or --disable-omf was given.
44186 if test "${enable_omf+set}" = set; then
44187   enableval="$enable_omf"
44188   bk_os2_use_omf="$enableval"
44189 fi;
44190
44191     case "${BAKEFILE_HOST}" in
44192       *-*-darwin* )
44193                         if test "x$GCC" = "xyes"; then
44194             CFLAGS="$CFLAGS -fno-common"
44195             CXXFLAGS="$CXXFLAGS -fno-common"
44196         fi
44197         if test "x$XLCC" = "xyes"; then
44198             CFLAGS="$CFLAGS -qnocommon"
44199             CXXFLAGS="$CXXFLAGS -qnocommon"
44200         fi
44201         ;;
44202
44203       *-pc-os2_emx | *-pc-os2-emx )
44204         if test "x$bk_os2_use_omf" = "xyes" ; then
44205             AR=emxomfar
44206             RANLIB=:
44207             LDFLAGS="-Zomf $LDFLAGS"
44208             CFLAGS="-Zomf $CFLAGS"
44209             CXXFLAGS="-Zomf $CXXFLAGS"
44210             OS2_LIBEXT="lib"
44211         else
44212             OS2_LIBEXT="a"
44213         fi
44214         ;;
44215
44216       i*86-*-beos* )
44217         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
44218         ;;
44219     esac
44220
44221
44222     SO_SUFFIX="so"
44223     SO_SUFFIX_MODULE="so"
44224     EXEEXT=""
44225     LIBPREFIX="lib"
44226     LIBEXT=".a"
44227     DLLPREFIX="lib"
44228     DLLPREFIX_MODULE=""
44229     DLLIMP_SUFFIX=""
44230     dlldir="$libdir"
44231
44232     case "${BAKEFILE_HOST}" in
44233         *-hp-hpux* )
44234             SO_SUFFIX="sl"
44235             SO_SUFFIX_MODULE="sl"
44236         ;;
44237         *-*-aix* )
44238                                                                         SO_SUFFIX="a"
44239             SO_SUFFIX_MODULE="a"
44240         ;;
44241         *-*-cygwin* )
44242             SO_SUFFIX="dll"
44243             SO_SUFFIX_MODULE="dll"
44244             DLLIMP_SUFFIX="dll.a"
44245             EXEEXT=".exe"
44246             DLLPREFIX="cyg"
44247             dlldir="$bindir"
44248         ;;
44249         *-*-mingw32* )
44250             SO_SUFFIX="dll"
44251             SO_SUFFIX_MODULE="dll"
44252             DLLIMP_SUFFIX="dll.a"
44253             EXEEXT=".exe"
44254             DLLPREFIX=""
44255             dlldir="$bindir"
44256         ;;
44257         *-pc-msdosdjgpp )
44258             EXEEXT=".exe"
44259             DLLPREFIX=""
44260             dlldir="$bindir"
44261         ;;
44262         *-pc-os2_emx | *-pc-os2-emx )
44263             SO_SUFFIX="dll"
44264             SO_SUFFIX_MODULE="dll"
44265             DLLIMP_SUFFIX=$OS2_LIBEXT
44266             EXEEXT=".exe"
44267             DLLPREFIX=""
44268             LIBPREFIX=""
44269             LIBEXT=".$OS2_LIBEXT"
44270             dlldir="$bindir"
44271         ;;
44272         *-*-darwin* )
44273             SO_SUFFIX="dylib"
44274             SO_SUFFIX_MODULE="bundle"
44275         ;;
44276     esac
44277
44278     if test "x$DLLIMP_SUFFIX" = "x" ; then
44279         DLLIMP_SUFFIX="$SO_SUFFIX"
44280     fi
44281
44282
44283
44284
44285
44286
44287
44288
44289
44290
44291
44292
44293         PIC_FLAG=""
44294     if test "x$GCC" = "xyes"; then
44295                 PIC_FLAG="-fPIC"
44296     fi
44297
44298         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
44299     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
44300     WINDOWS_IMPLIB=0
44301
44302     case "${BAKEFILE_HOST}" in
44303       *-hp-hpux* )
44304                 if test "x$GCC" != "xyes"; then
44305                         LDFLAGS="$LDFLAGS -L/usr/lib"
44306
44307             SHARED_LD_CC="${CC} -b -o"
44308             SHARED_LD_CXX="${CXX} -b -o"
44309             PIC_FLAG="+Z"
44310         fi
44311       ;;
44312
44313       *-*-linux* )
44314         if test "x$GCC" != "xyes"; then
44315             echo "$as_me:$LINENO: checking for Intel compiler" >&5
44316 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
44317 if test "${bakefile_cv_prog_icc+set}" = set; then
44318   echo $ECHO_N "(cached) $ECHO_C" >&6
44319 else
44320
44321                 cat >conftest.$ac_ext <<_ACEOF
44322 /* confdefs.h.  */
44323 _ACEOF
44324 cat confdefs.h >>conftest.$ac_ext
44325 cat >>conftest.$ac_ext <<_ACEOF
44326 /* end confdefs.h.  */
44327
44328 int
44329 main ()
44330 {
44331
44332                         #ifndef __INTEL_COMPILER
44333                         #error Not icc
44334                         #endif
44335
44336   ;
44337   return 0;
44338 }
44339 _ACEOF
44340 rm -f conftest.$ac_objext
44341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44342   (eval $ac_compile) 2>conftest.er1
44343   ac_status=$?
44344   grep -v '^ *+' conftest.er1 >conftest.err
44345   rm -f conftest.er1
44346   cat conftest.err >&5
44347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44348   (exit $ac_status); } &&
44349          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44351   (eval $ac_try) 2>&5
44352   ac_status=$?
44353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44354   (exit $ac_status); }; } &&
44355          { ac_try='test -s conftest.$ac_objext'
44356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44357   (eval $ac_try) 2>&5
44358   ac_status=$?
44359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44360   (exit $ac_status); }; }; then
44361   bakefile_cv_prog_icc=yes
44362 else
44363   echo "$as_me: failed program was:" >&5
44364 sed 's/^/| /' conftest.$ac_ext >&5
44365
44366 bakefile_cv_prog_icc=no
44367
44368 fi
44369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44370
44371 fi
44372 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
44373 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
44374             if test "$bakefile_cv_prog_icc" = "yes"; then
44375                 PIC_FLAG="-KPIC"
44376             fi
44377         fi
44378       ;;
44379
44380       *-*-solaris2* )
44381         if test "x$GCC" != xyes ; then
44382             SHARED_LD_CC="${CC} -G -o"
44383             SHARED_LD_CXX="${CXX} -G -o"
44384             PIC_FLAG="-KPIC"
44385         fi
44386       ;;
44387
44388       *-*-darwin* )
44389
44390 D='$'
44391 cat <<EOF >shared-ld-sh
44392 #!/bin/sh
44393 #-----------------------------------------------------------------------------
44394 #-- Name:        distrib/mac/shared-ld-sh
44395 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
44396 #-- Author:      Gilles Depeyrot
44397 #-- Copyright:   (c) 2002 Gilles Depeyrot
44398 #-- Licence:     any use permitted
44399 #-----------------------------------------------------------------------------
44400
44401 verbose=0
44402 args=""
44403 objects=""
44404 linking_flag="-dynamiclib"
44405 ldargs="-r -keep_private_externs -nostdlib"
44406
44407 while test ${D}# -gt 0; do
44408     case ${D}1 in
44409
44410        -v)
44411         verbose=1
44412         ;;
44413
44414        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
44415         # collect these options and values
44416         args="${D}{args} ${D}1 ${D}2"
44417         shift
44418         ;;
44419
44420        -s|-Wl,*)
44421         # collect these load args
44422         ldargs="${D}{ldargs} ${D}1"
44423         ;;
44424
44425        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
44426         # collect these options
44427         args="${D}{args} ${D}1"
44428         ;;
44429
44430        -dynamiclib|-bundle)
44431         linking_flag="${D}1"
44432         ;;
44433
44434        -*)
44435         echo "shared-ld: unhandled option '${D}1'"
44436         exit 1
44437         ;;
44438
44439         *.o | *.a | *.dylib)
44440         # collect object files
44441         objects="${D}{objects} ${D}1"
44442         ;;
44443
44444         *)
44445         echo "shared-ld: unhandled argument '${D}1'"
44446         exit 1
44447         ;;
44448
44449     esac
44450     shift
44451 done
44452
44453 status=0
44454
44455 #
44456 # Link one module containing all the others
44457 #
44458 if test ${D}{verbose} = 1; then
44459     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
44460 fi
44461 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
44462 status=${D}?
44463
44464 #
44465 # Link the shared library from the single module created, but only if the
44466 # previous command didn't fail:
44467 #
44468 if test ${D}{status} = 0; then
44469     if test ${D}{verbose} = 1; then
44470         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
44471     fi
44472     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
44473     status=${D}?
44474 fi
44475
44476 #
44477 # Remove intermediate module
44478 #
44479 rm -f master.${D}${D}.o
44480
44481 exit ${D}status
44482 EOF
44483
44484         chmod +x shared-ld-sh
44485
44486         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
44487         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
44488
44489
44490                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
44491 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
44492 if test "${bakefile_cv_gcc31+set}" = set; then
44493   echo $ECHO_N "(cached) $ECHO_C" >&6
44494 else
44495
44496            cat >conftest.$ac_ext <<_ACEOF
44497 /* confdefs.h.  */
44498 _ACEOF
44499 cat confdefs.h >>conftest.$ac_ext
44500 cat >>conftest.$ac_ext <<_ACEOF
44501 /* end confdefs.h.  */
44502
44503 int
44504 main ()
44505 {
44506
44507                    #if (__GNUC__ < 3) || \
44508                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
44509                        #error old gcc
44510                    #endif
44511
44512   ;
44513   return 0;
44514 }
44515 _ACEOF
44516 rm -f conftest.$ac_objext
44517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44518   (eval $ac_compile) 2>conftest.er1
44519   ac_status=$?
44520   grep -v '^ *+' conftest.er1 >conftest.err
44521   rm -f conftest.er1
44522   cat conftest.err >&5
44523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44524   (exit $ac_status); } &&
44525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44527   (eval $ac_try) 2>&5
44528   ac_status=$?
44529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44530   (exit $ac_status); }; } &&
44531          { ac_try='test -s conftest.$ac_objext'
44532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44533   (eval $ac_try) 2>&5
44534   ac_status=$?
44535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44536   (exit $ac_status); }; }; then
44537
44538                    bakefile_cv_gcc31=yes
44539
44540 else
44541   echo "$as_me: failed program was:" >&5
44542 sed 's/^/| /' conftest.$ac_ext >&5
44543
44544
44545                    bakefile_cv_gcc31=no
44546
44547
44548 fi
44549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44550
44551 fi
44552 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
44553 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
44554         if test "$bakefile_cv_gcc31" = "no"; then
44555                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
44556             SHARED_LD_CXX="$SHARED_LD_CC"
44557         else
44558                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
44559             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
44560         fi
44561
44562         if test "x$GCC" == "xyes"; then
44563             PIC_FLAG="-dynamic -fPIC"
44564         fi
44565         if test "x$XLCC" = "xyes"; then
44566             PIC_FLAG="-dynamic -DPIC"
44567         fi
44568       ;;
44569
44570       *-*-aix* )
44571         if test "x$GCC" = "xyes"; then
44572                                                             PIC_FLAG=""
44573
44574                                                                                     case "${BAKEFILE_HOST}" in
44575                 *-*-aix5* )
44576                     LD_EXPFULL="-Wl,-bexpfull"
44577                     ;;
44578             esac
44579
44580             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
44581             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
44582         else
44583                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
44584 set dummy makeC++SharedLib; ac_word=$2
44585 echo "$as_me:$LINENO: checking for $ac_word" >&5
44586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44587 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
44588   echo $ECHO_N "(cached) $ECHO_C" >&6
44589 else
44590   if test -n "$AIX_CXX_LD"; then
44591   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
44592 else
44593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44594 for as_dir in $PATH
44595 do
44596   IFS=$as_save_IFS
44597   test -z "$as_dir" && as_dir=.
44598   for ac_exec_ext in '' $ac_executable_extensions; do
44599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44600     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
44601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44602     break 2
44603   fi
44604 done
44605 done
44606
44607   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
44608 fi
44609 fi
44610 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
44611 if test -n "$AIX_CXX_LD"; then
44612   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
44613 echo "${ECHO_T}$AIX_CXX_LD" >&6
44614 else
44615   echo "$as_me:$LINENO: result: no" >&5
44616 echo "${ECHO_T}no" >&6
44617 fi
44618
44619             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
44620             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
44621         fi
44622       ;;
44623
44624       *-*-beos* )
44625                         SHARED_LD_CC="${LD} -nostart -o"
44626         SHARED_LD_CXX="${LD} -nostart -o"
44627       ;;
44628
44629       *-*-irix* )
44630                 if test "x$GCC" != "xyes"; then
44631             PIC_FLAG="-KPIC"
44632         fi
44633       ;;
44634
44635       *-*-cygwin* | *-*-mingw32* )
44636         PIC_FLAG=""
44637         SHARED_LD_CC="\$(CC) -shared -o"
44638         SHARED_LD_CXX="\$(CXX) -shared -o"
44639         WINDOWS_IMPLIB=1
44640       ;;
44641
44642       *-pc-os2_emx | *-pc-os2-emx )
44643         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44644         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44645         PIC_FLAG=""
44646
44647 D='$'
44648 cat <<EOF >dllar.sh
44649 #!/bin/sh
44650 #
44651 # dllar - a tool to build both a .dll and an .a file
44652 # from a set of object (.o) files for EMX/OS2.
44653 #
44654 #  Written by Andrew Zabolotny, bit@freya.etu.ru
44655 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
44656 #
44657 #  This script will accept a set of files on the command line.
44658 #  All the public symbols from the .o files will be exported into
44659 #  a .DEF file, then linker will be run (through gcc) against them to
44660 #  build a shared library consisting of all given .o files. All libraries
44661 #  (.a) will be first decompressed into component .o files then act as
44662 #  described above. You can optionally give a description (-d "description")
44663 #  which will be put into .DLL. To see the list of accepted options (as well
44664 #  as command-line format) simply run this program without options. The .DLL
44665 #  is built to be imported by name (there is no guarantee that new versions
44666 #  of the library you build will have same ordinals for same symbols).
44667 #
44668 #  dllar is free software; you can redistribute it and/or modify
44669 #  it under the terms of the GNU General Public License as published by
44670 #  the Free Software Foundation; either version 2, or (at your option)
44671 #  any later version.
44672 #
44673 #  dllar is distributed in the hope that it will be useful,
44674 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
44675 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44676 #  GNU General Public License for more details.
44677 #
44678 #  You should have received a copy of the GNU General Public License
44679 #  along with dllar; see the file COPYING.  If not, write to the Free
44680 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
44681 #  02111-1307, USA.
44682
44683 # To successfuly run this program you will need:
44684 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
44685 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
44686 #  - gcc
44687 #    (used to build the .dll)
44688 #  - emxexp
44689 #    (used to create .def file from .o files)
44690 #  - emximp
44691 #    (used to create .a file from .def file)
44692 #  - GNU text utilites (cat, sort, uniq)
44693 #    used to process emxexp output
44694 #  - GNU file utilities (mv, rm)
44695 #  - GNU sed
44696 #  - lxlite (optional, see flag below)
44697 #    (used for general .dll cleanup)
44698 #
44699
44700 flag_USE_LXLITE=1;
44701
44702 #
44703 # helper functions
44704 # basnam, variant of basename, which does _not_ remove the path, _iff_
44705 #                              second argument (suffix to remove) is given
44706 basnam(){
44707     case ${D}# in
44708     1)
44709         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
44710         ;;
44711     2)
44712         echo ${D}1 | sed 's/'${D}2'${D}//'
44713         ;;
44714     *)
44715         echo "error in basnam ${D}*"
44716         exit 8
44717         ;;
44718     esac
44719 }
44720
44721 # Cleanup temporary files and output
44722 CleanUp() {
44723     cd ${D}curDir
44724     for i in ${D}inputFiles ; do
44725         case ${D}i in
44726         *!)
44727             rm -rf \`basnam ${D}i !\`
44728             ;;
44729         *)
44730             ;;
44731         esac
44732     done
44733
44734     # Kill result in case of failure as there is just to many stupid make/nmake
44735     # things out there which doesn't do this.
44736     if [ ${D}# -eq 0 ]; then
44737         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
44738     fi
44739 }
44740
44741 # Print usage and exit script with rc=1.
44742 PrintHelp() {
44743  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
44744  echo '       [-name-mangler-script script.sh]'
44745  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
44746  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
44747  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
44748  echo '       [*.o] [*.a]'
44749  echo '*> "output_file" should have no extension.'
44750  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
44751  echo '   The import library name is derived from this and is set to "name".a,'
44752  echo '   unless overridden by -import'
44753  echo '*> "importlib_name" should have no extension.'
44754  echo '   If it has the .o, or .a extension, it is automatically removed.'
44755  echo '   This name is used as the import library name and may be longer and'
44756  echo '   more descriptive than the DLL name which has to follow the old '
44757  echo '   8.3 convention of FAT.'
44758  echo '*> "script.sh may be given to override the output_file name by a'
44759  echo '   different name. It is mainly useful if the regular make process'
44760  echo '   of some package does not take into account OS/2 restriction of'
44761  echo '   DLL name lengths. It takes the importlib name as input and is'
44762  echo '   supposed to procude a shorter name as output. The script should'
44763  echo '   expect to get importlib_name without extension and should produce'
44764  echo '   a (max.) 8 letter name without extension.'
44765  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
44766  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
44767  echo '   These flags will be put at the start of GCC command line.'
44768  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
44769  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
44770  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
44771  echo '   If the last character of a symbol is "*", all symbols beginning'
44772  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
44773  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
44774  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
44775  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
44776  echo '   C runtime DLLs.'
44777  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
44778  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
44779  echo '   unchanged to GCC at the end of command line.'
44780  echo '*> If you create a DLL from a library and you do not specify -o,'
44781  echo '   the basename for DLL and import library will be set to library name,'
44782  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
44783  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
44784  echo '   library will be renamed into gcc_s.a.'
44785  echo '--------'
44786  echo 'Example:'
44787  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
44788  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
44789  CleanUp
44790  exit 1
44791 }
44792
44793 # Execute a command.
44794 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
44795 # @Uses    Whatever CleanUp() uses.
44796 doCommand() {
44797     echo "${D}*"
44798     eval ${D}*
44799     rcCmd=${D}?
44800
44801     if [ ${D}rcCmd -ne 0 ]; then
44802         echo "command failed, exit code="${D}rcCmd
44803         CleanUp
44804         exit ${D}rcCmd
44805     fi
44806 }
44807
44808 # main routine
44809 # setup globals
44810 cmdLine=${D}*
44811 outFile=""
44812 outimpFile=""
44813 inputFiles=""
44814 renameScript=""
44815 description=""
44816 CC=gcc.exe
44817 CFLAGS="-s -Zcrtdll"
44818 EXTRA_CFLAGS=""
44819 EXPORT_BY_ORDINALS=0
44820 exclude_symbols=""
44821 library_flags=""
44822 curDir=\`pwd\`
44823 curDirS=curDir
44824 case ${D}curDirS in
44825 */)
44826   ;;
44827 *)
44828   curDirS=${D}{curDirS}"/"
44829   ;;
44830 esac
44831 # Parse commandline
44832 libsToLink=0
44833 omfLinking=0
44834 while [ ${D}1 ]; do
44835     case ${D}1 in
44836     -ord*)
44837         EXPORT_BY_ORDINALS=1;
44838         ;;
44839     -o*)
44840         shift
44841         outFile=${D}1
44842         ;;
44843     -i*)
44844         shift
44845         outimpFile=${D}1
44846         ;;
44847     -name-mangler-script)
44848         shift
44849         renameScript=${D}1
44850         ;;
44851     -d*)
44852         shift
44853         description=${D}1
44854         ;;
44855     -f*)
44856         shift
44857         CFLAGS=${D}1
44858         ;;
44859     -c*)
44860         shift
44861         CC=${D}1
44862         ;;
44863     -h*)
44864         PrintHelp
44865         ;;
44866     -ex*)
44867         shift
44868         exclude_symbols=${D}{exclude_symbols}${D}1" "
44869         ;;
44870     -libf*)
44871         shift
44872         library_flags=${D}{library_flags}${D}1" "
44873         ;;
44874     -nocrt*)
44875         CFLAGS="-s"
44876         ;;
44877     -nolxl*)
44878         flag_USE_LXLITE=0
44879         ;;
44880     -* | /*)
44881         case ${D}1 in
44882         -L* | -l*)
44883             libsToLink=1
44884             ;;
44885         -Zomf)
44886             omfLinking=1
44887             ;;
44888         *)
44889             ;;
44890         esac
44891         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44892         ;;
44893     *.dll)
44894         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44895         if [ ${D}omfLinking -eq 1 ]; then
44896             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44897         else
44898             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44899         fi
44900         ;;
44901     *)
44902         found=0;
44903         if [ ${D}libsToLink -ne 0 ]; then
44904             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44905         else
44906             for file in ${D}1 ; do
44907                 if [ -f ${D}file ]; then
44908                     inputFiles="${D}{inputFiles} ${D}file"
44909                     found=1
44910                 fi
44911             done
44912             if [ ${D}found -eq 0 ]; then
44913                 echo "ERROR: No file(s) found: "${D}1
44914                 exit 8
44915             fi
44916         fi
44917       ;;
44918     esac
44919     shift
44920 done # iterate cmdline words
44921
44922 #
44923 if [ -z "${D}inputFiles" ]; then
44924     echo "dllar: no input files"
44925     PrintHelp
44926 fi
44927
44928 # Now extract all .o files from .a files
44929 newInputFiles=""
44930 for file in ${D}inputFiles ; do
44931     case ${D}file in
44932     *.a | *.lib)
44933         case ${D}file in
44934         *.a)
44935             suffix=".a"
44936             AR="ar"
44937             ;;
44938         *.lib)
44939             suffix=".lib"
44940             AR="emxomfar"
44941             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44942             ;;
44943         *)
44944             ;;
44945         esac
44946         dirname=\`basnam ${D}file ${D}suffix\`"_%"
44947         mkdir ${D}dirname
44948         if [ ${D}? -ne 0 ]; then
44949             echo "Failed to create subdirectory ./${D}dirname"
44950             CleanUp
44951             exit 8;
44952         fi
44953         # Append '!' to indicate archive
44954         newInputFiles="${D}newInputFiles ${D}{dirname}!"
44955         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44956         cd ${D}curDir
44957         found=0;
44958         for subfile in ${D}dirname/*.o* ; do
44959             if [ -f ${D}subfile ]; then
44960                 found=1
44961                 if [ -s ${D}subfile ]; then
44962                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44963                     newInputFiles="${D}newInputFiles ${D}subfile"
44964                 fi
44965             fi
44966         done
44967         if [ ${D}found -eq 0 ]; then
44968             echo "WARNING: there are no files in archive \\'${D}file\\'"
44969         fi
44970         ;;
44971     *)
44972         newInputFiles="${D}{newInputFiles} ${D}file"
44973         ;;
44974     esac
44975 done
44976 inputFiles="${D}newInputFiles"
44977
44978 # Output filename(s).
44979 do_backup=0;
44980 if [ -z ${D}outFile ]; then
44981     do_backup=1;
44982     set outFile ${D}inputFiles; outFile=${D}2
44983 fi
44984
44985 # If it is an archive, remove the '!' and the '_%' suffixes
44986 case ${D}outFile in
44987 *_%!)
44988     outFile=\`basnam ${D}outFile _%!\`
44989     ;;
44990 *)
44991     ;;
44992 esac
44993 case ${D}outFile in
44994 *.dll)
44995     outFile=\`basnam ${D}outFile .dll\`
44996     ;;
44997 *.DLL)
44998     outFile=\`basnam ${D}outFile .DLL\`
44999     ;;
45000 *.o)
45001     outFile=\`basnam ${D}outFile .o\`
45002     ;;
45003 *.obj)
45004     outFile=\`basnam ${D}outFile .obj\`
45005     ;;
45006 *.a)
45007     outFile=\`basnam ${D}outFile .a\`
45008     ;;
45009 *.lib)
45010     outFile=\`basnam ${D}outFile .lib\`
45011     ;;
45012 *)
45013     ;;
45014 esac
45015 case ${D}outimpFile in
45016 *.a)
45017     outimpFile=\`basnam ${D}outimpFile .a\`
45018     ;;
45019 *.lib)
45020     outimpFile=\`basnam ${D}outimpFile .lib\`
45021     ;;
45022 *)
45023     ;;
45024 esac
45025 if [ -z ${D}outimpFile ]; then
45026     outimpFile=${D}outFile
45027 fi
45028 defFile="${D}{outFile}.def"
45029 arcFile="${D}{outimpFile}.a"
45030 arcFile2="${D}{outimpFile}.lib"
45031
45032 #create ${D}dllFile as something matching 8.3 restrictions,
45033 if [ -z ${D}renameScript ] ; then
45034     dllFile="${D}outFile"
45035 else
45036     dllFile=\`${D}renameScript ${D}outimpFile\`
45037 fi
45038
45039 if [ ${D}do_backup -ne 0 ] ; then
45040     if [ -f ${D}arcFile ] ; then
45041         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
45042     fi
45043     if [ -f ${D}arcFile2 ] ; then
45044         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
45045     fi
45046 fi
45047
45048 # Extract public symbols from all the object files.
45049 tmpdefFile=${D}{defFile}_%
45050 rm -f ${D}tmpdefFile
45051 for file in ${D}inputFiles ; do
45052     case ${D}file in
45053     *!)
45054         ;;
45055     *)
45056         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
45057         ;;
45058     esac
45059 done
45060
45061 # Create the def file.
45062 rm -f ${D}defFile
45063 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
45064 dllFile="${D}{dllFile}.dll"
45065 if [ ! -z ${D}description ]; then
45066     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
45067 fi
45068 echo "EXPORTS" >> ${D}defFile
45069
45070 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
45071 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
45072
45073 # Checks if the export is ok or not.
45074 for word in ${D}exclude_symbols; do
45075     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
45076     mv ${D}{tmpdefFile}% ${D}tmpdefFile
45077 done
45078
45079
45080 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
45081     sed "=" < ${D}tmpdefFile | \\
45082     sed '
45083       N
45084       : loop
45085       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
45086       t loop
45087     ' > ${D}{tmpdefFile}%
45088     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
45089 else
45090     rm -f ${D}{tmpdefFile}%
45091 fi
45092 cat ${D}tmpdefFile >> ${D}defFile
45093 rm -f ${D}tmpdefFile
45094
45095 # Do linking, create implib, and apply lxlite.
45096 gccCmdl="";
45097 for file in ${D}inputFiles ; do
45098     case ${D}file in
45099     *!)
45100         ;;
45101     *)
45102         gccCmdl="${D}gccCmdl ${D}file"
45103         ;;
45104     esac
45105 done
45106 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
45107 touch "${D}{outFile}.dll"
45108
45109 doCommand "emximp -o ${D}arcFile ${D}defFile"
45110 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
45111     add_flags="";
45112     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
45113         add_flags="-ynd"
45114     fi
45115     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
45116 fi
45117 doCommand "emxomf -s -l ${D}arcFile"
45118
45119 # Successful exit.
45120 CleanUp 1
45121 exit 0
45122 EOF
45123
45124         chmod +x dllar.sh
45125       ;;
45126
45127       powerpc-apple-macos* | \
45128       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
45129       *-*-sunos4* | \
45130       *-*-osf* | \
45131       *-*-dgux5* | \
45132       *-*-sysv5* | \
45133       *-pc-msdosdjgpp )
45134               ;;
45135
45136       *)
45137         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
45138 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
45139    { (exit 1); exit 1; }; }
45140     esac
45141
45142     if test "x$PIC_FLAG" != "x" ; then
45143         PIC_FLAG="$PIC_FLAG -DPIC"
45144     fi
45145
45146     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
45147         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
45148     fi
45149     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
45150         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
45151     fi
45152
45153
45154
45155
45156
45157
45158
45159
45160
45161     USE_SOVERSION=0
45162     USE_SOVERLINUX=0
45163     USE_SOVERSOLARIS=0
45164     USE_SOVERCYGWIN=0
45165     USE_SOSYMLINKS=0
45166     USE_MACVERSION=0
45167     SONAME_FLAG=
45168
45169     case "${BAKEFILE_HOST}" in
45170       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
45171         SONAME_FLAG="-Wl,-soname,"
45172         USE_SOVERSION=1
45173         USE_SOVERLINUX=1
45174         USE_SOSYMLINKS=1
45175       ;;
45176
45177       *-*-solaris2* )
45178         SONAME_FLAG="-h "
45179         USE_SOVERSION=1
45180         USE_SOVERSOLARIS=1
45181         USE_SOSYMLINKS=1
45182       ;;
45183
45184       *-*-darwin* )
45185         USE_MACVERSION=1
45186         USE_SOVERSION=1
45187         USE_SOSYMLINKS=1
45188       ;;
45189
45190       *-*-cygwin* )
45191         USE_SOVERSION=1
45192         USE_SOVERCYGWIN=1
45193       ;;
45194     esac
45195
45196
45197
45198
45199
45200
45201
45202
45203
45204
45205     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
45206 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
45207     DEPS_TRACKING=1
45208
45209     if test "x$GCC" = "xyes"; then
45210         DEPSMODE=gcc
45211         case "${BAKEFILE_HOST}" in
45212             *-*-darwin* )
45213                                                 DEPSFLAG="-no-cpp-precomp -MMD"
45214             ;;
45215             * )
45216                 DEPSFLAG="-MMD"
45217             ;;
45218         esac
45219         echo "$as_me:$LINENO: result: gcc" >&5
45220 echo "${ECHO_T}gcc" >&6
45221     elif test "x$MWCC" = "xyes"; then
45222         DEPSMODE=mwcc
45223         DEPSFLAG="-MM"
45224         echo "$as_me:$LINENO: result: mwcc" >&5
45225 echo "${ECHO_T}mwcc" >&6
45226     elif test "x$SUNCC" = "xyes"; then
45227         DEPSMODE=unixcc
45228         DEPSFLAG="-xM1"
45229         echo "$as_me:$LINENO: result: Sun cc" >&5
45230 echo "${ECHO_T}Sun cc" >&6
45231     elif test "x$SGICC" = "xyes"; then
45232         DEPSMODE=unixcc
45233         DEPSFLAG="-M"
45234         echo "$as_me:$LINENO: result: SGI cc" >&5
45235 echo "${ECHO_T}SGI cc" >&6
45236     elif test "x$HPCC" = "xyes"; then
45237         DEPSMODE=unixcc
45238         DEPSFLAG="+make"
45239         echo "$as_me:$LINENO: result: HP cc" >&5
45240 echo "${ECHO_T}HP cc" >&6
45241     elif test "x$COMPAQCC" = "xyes"; then
45242         DEPSMODE=gcc
45243         DEPSFLAG="-MD"
45244         echo "$as_me:$LINENO: result: Compaq cc" >&5
45245 echo "${ECHO_T}Compaq cc" >&6
45246     else
45247         DEPS_TRACKING=0
45248         echo "$as_me:$LINENO: result: none" >&5
45249 echo "${ECHO_T}none" >&6
45250     fi
45251
45252     if test $DEPS_TRACKING = 1 ; then
45253
45254 D='$'
45255 cat <<EOF >bk-deps
45256 #!/bin/sh
45257
45258 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45259 # script. It is used to track C/C++ files dependencies in portable way.
45260 #
45261 # Permission is given to use this file in any way.
45262
45263 DEPSMODE=${DEPSMODE}
45264 DEPSDIR=.deps
45265 DEPSFLAG="${DEPSFLAG}"
45266
45267 mkdir -p ${D}DEPSDIR
45268
45269 if test ${D}DEPSMODE = gcc ; then
45270     ${D}* ${D}{DEPSFLAG}
45271     status=${D}?
45272     if test ${D}{status} != 0 ; then
45273         exit ${D}{status}
45274     fi
45275     # move created file to the location we want it in:
45276     while test ${D}# -gt 0; do
45277         case "${D}1" in
45278             -o )
45279                 shift
45280                 objfile=${D}1
45281             ;;
45282             -* )
45283             ;;
45284             * )
45285                 srcfile=${D}1
45286             ;;
45287         esac
45288         shift
45289     done
45290     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
45291     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
45292     if test -f ${D}depfile ; then
45293         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45294         rm -f ${D}depfile
45295     else
45296         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
45297         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
45298         if test ! -f ${D}depfile ; then
45299             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
45300             depfile="${D}objfile.d"
45301         fi
45302         if test -f ${D}depfile ; then
45303             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45304             rm -f ${D}depfile
45305         fi
45306     fi
45307     exit 0
45308 elif test ${D}DEPSMODE = mwcc ; then
45309     ${D}* || exit ${D}?
45310     # Run mwcc again with -MM and redirect into the dep file we want
45311     # NOTE: We can't use shift here because we need ${D}* to be valid
45312     prevarg=
45313     for arg in ${D}* ; do
45314         if test "${D}prevarg" = "-o"; then
45315             objfile=${D}arg
45316         else
45317             case "${D}arg" in
45318                 -* )
45319                 ;;
45320                 * )
45321                     srcfile=${D}arg
45322                 ;;
45323             esac
45324         fi
45325         prevarg="${D}arg"
45326     done
45327     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
45328     exit 0
45329 elif test ${D}DEPSMODE = unixcc; then
45330     ${D}* || exit ${D}?
45331     # Run compiler again with deps flag and redirect into the dep file.
45332     # It doesn't work if the '-o FILE' option is used, but without it the
45333     # dependency file will contain the wrong name for the object. So it is
45334     # removed from the command line, and the dep file is fixed with sed.
45335     cmd=""
45336     while test ${D}# -gt 0; do
45337         case "${D}1" in
45338             -o )
45339                 shift
45340                 objfile=${D}1
45341             ;;
45342             * )
45343                 eval arg${D}#=\\${D}1
45344                 cmd="${D}cmd \\${D}arg${D}#"
45345             ;;
45346         esac
45347         shift
45348     done
45349     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
45350     exit 0
45351 else
45352     ${D}*
45353     exit ${D}?
45354 fi
45355 EOF
45356
45357         chmod +x bk-deps
45358     fi
45359
45360
45361
45362
45363     RESCOMP=
45364     SETFILE=
45365
45366     case ${BAKEFILE_HOST} in
45367         *-*-cygwin* | *-*-mingw32* )
45368                         if test "$build" != "$host" ; then
45369                 RESCOMP=$host_alias-windres
45370             else
45371                 # Extract the first word of "windres", so it can be a program name with args.
45372 set dummy windres; ac_word=$2
45373 echo "$as_me:$LINENO: checking for $ac_word" >&5
45374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45375 if test "${ac_cv_prog_RESCOMP+set}" = set; then
45376   echo $ECHO_N "(cached) $ECHO_C" >&6
45377 else
45378   if test -n "$RESCOMP"; then
45379   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45380 else
45381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45382 for as_dir in $PATH
45383 do
45384   IFS=$as_save_IFS
45385   test -z "$as_dir" && as_dir=.
45386   for ac_exec_ext in '' $ac_executable_extensions; do
45387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45388     ac_cv_prog_RESCOMP="windres"
45389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45390     break 2
45391   fi
45392 done
45393 done
45394
45395   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
45396 fi
45397 fi
45398 RESCOMP=$ac_cv_prog_RESCOMP
45399 if test -n "$RESCOMP"; then
45400   echo "$as_me:$LINENO: result: $RESCOMP" >&5
45401 echo "${ECHO_T}$RESCOMP" >&6
45402 else
45403   echo "$as_me:$LINENO: result: no" >&5
45404 echo "${ECHO_T}no" >&6
45405 fi
45406
45407             fi
45408          ;;
45409
45410       *-*-darwin* | powerpc-apple-macos* )
45411             # Extract the first word of "Rez", so it can be a program name with args.
45412 set dummy Rez; ac_word=$2
45413 echo "$as_me:$LINENO: checking for $ac_word" >&5
45414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45415 if test "${ac_cv_prog_RESCOMP+set}" = set; then
45416   echo $ECHO_N "(cached) $ECHO_C" >&6
45417 else
45418   if test -n "$RESCOMP"; then
45419   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45420 else
45421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45422 for as_dir in $PATH
45423 do
45424   IFS=$as_save_IFS
45425   test -z "$as_dir" && as_dir=.
45426   for ac_exec_ext in '' $ac_executable_extensions; do
45427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45428     ac_cv_prog_RESCOMP="Rez"
45429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45430     break 2
45431   fi
45432 done
45433 done
45434
45435   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
45436 fi
45437 fi
45438 RESCOMP=$ac_cv_prog_RESCOMP
45439 if test -n "$RESCOMP"; then
45440   echo "$as_me:$LINENO: result: $RESCOMP" >&5
45441 echo "${ECHO_T}$RESCOMP" >&6
45442 else
45443   echo "$as_me:$LINENO: result: no" >&5
45444 echo "${ECHO_T}no" >&6
45445 fi
45446
45447             # Extract the first word of "SetFile", so it can be a program name with args.
45448 set dummy SetFile; ac_word=$2
45449 echo "$as_me:$LINENO: checking for $ac_word" >&5
45450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45451 if test "${ac_cv_prog_SETFILE+set}" = set; then
45452   echo $ECHO_N "(cached) $ECHO_C" >&6
45453 else
45454   if test -n "$SETFILE"; then
45455   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
45456 else
45457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45458 for as_dir in $PATH
45459 do
45460   IFS=$as_save_IFS
45461   test -z "$as_dir" && as_dir=.
45462   for ac_exec_ext in '' $ac_executable_extensions; do
45463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45464     ac_cv_prog_SETFILE="SetFile"
45465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45466     break 2
45467   fi
45468 done
45469 done
45470
45471   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
45472 fi
45473 fi
45474 SETFILE=$ac_cv_prog_SETFILE
45475 if test -n "$SETFILE"; then
45476   echo "$as_me:$LINENO: result: $SETFILE" >&5
45477 echo "${ECHO_T}$SETFILE" >&6
45478 else
45479   echo "$as_me:$LINENO: result: no" >&5
45480 echo "${ECHO_T}no" >&6
45481 fi
45482
45483         ;;
45484     esac
45485
45486
45487
45488
45489
45490     BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
45491
45492
45493 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
45494
45495
45496
45497     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
45498 if test "${enable_precomp_headers+set}" = set; then
45499   enableval="$enable_precomp_headers"
45500   bk_use_pch="$enableval"
45501 fi;
45502
45503     GCC_PCH=0
45504
45505     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
45506         if test "x$GCC" = "xyes"; then
45507                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
45508 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
45509             cat >conftest.$ac_ext <<_ACEOF
45510 /* confdefs.h.  */
45511 _ACEOF
45512 cat confdefs.h >>conftest.$ac_ext
45513 cat >>conftest.$ac_ext <<_ACEOF
45514 /* end confdefs.h.  */
45515
45516 int
45517 main ()
45518 {
45519
45520                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
45521                         #error "no pch support"
45522                     #endif
45523                     #if (__GNUC__ < 3)
45524                         #error "no pch support"
45525                     #endif
45526                     #if (__GNUC__ == 3) && \
45527                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
45528                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
45529                         #error "no pch support"
45530                     #endif
45531
45532   ;
45533   return 0;
45534 }
45535 _ACEOF
45536 rm -f conftest.$ac_objext
45537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45538   (eval $ac_compile) 2>conftest.er1
45539   ac_status=$?
45540   grep -v '^ *+' conftest.er1 >conftest.err
45541   rm -f conftest.er1
45542   cat conftest.err >&5
45543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45544   (exit $ac_status); } &&
45545          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45547   (eval $ac_try) 2>&5
45548   ac_status=$?
45549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45550   (exit $ac_status); }; } &&
45551          { ac_try='test -s conftest.$ac_objext'
45552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45553   (eval $ac_try) 2>&5
45554   ac_status=$?
45555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45556   (exit $ac_status); }; }; then
45557
45558                     echo "$as_me:$LINENO: result: yes" >&5
45559 echo "${ECHO_T}yes" >&6
45560                     GCC_PCH=1
45561
45562 else
45563   echo "$as_me: failed program was:" >&5
45564 sed 's/^/| /' conftest.$ac_ext >&5
45565
45566
45567                     echo "$as_me:$LINENO: result: no" >&5
45568 echo "${ECHO_T}no" >&6
45569
45570 fi
45571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45572             if test $GCC_PCH = 1 ; then
45573
45574 D='$'
45575 cat <<EOF >bk-make-pch
45576 #!/bin/sh
45577
45578 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45579 # script. It is used to generated precompiled headers.
45580 #
45581 # Permission is given to use this file in any way.
45582
45583 outfile="${D}{1}"
45584 header="${D}{2}"
45585 shift
45586 shift
45587
45588 compiler=
45589 headerfile=
45590 while test ${D}{#} -gt 0; do
45591     case "${D}{1}" in
45592         -I* )
45593             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
45594             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
45595                 headerfile="${D}{incdir}/${D}{header}"
45596             fi
45597         ;;
45598     esac
45599     compiler="${D}{compiler} ${D}{1}"
45600     shift
45601 done
45602
45603 if test "x${D}{headerfile}" = "x" ; then
45604     echo "error: can't find header ${D}{header} in include paths" >2
45605 else
45606     if test -f ${D}{outfile} ; then
45607         rm -f ${D}{outfile}
45608     else
45609         mkdir -p \`dirname ${D}{outfile}\`
45610     fi
45611     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
45612     mkdir -p .deps
45613     # can do this because gcc is >= 3.4:
45614     ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
45615     exit ${D}{?}
45616 fi
45617 EOF
45618
45619                 chmod +x bk-make-pch
45620             fi
45621         fi
45622     fi
45623
45624
45625
45626     COND_BUILD_DEBUG="#"
45627     if test "x$BUILD" = "xdebug" ; then
45628         COND_BUILD_DEBUG=""
45629     fi
45630
45631     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
45632     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
45633         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
45634     fi
45635
45636     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
45637     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
45638         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
45639     fi
45640
45641     COND_BUILD_DEBUG_UNICODE_0="#"
45642     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
45643         COND_BUILD_DEBUG_UNICODE_0=""
45644     fi
45645
45646     COND_BUILD_DEBUG_UNICODE_1="#"
45647     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
45648         COND_BUILD_DEBUG_UNICODE_1=""
45649     fi
45650
45651     COND_BUILD_RELEASE="#"
45652     if test "x$BUILD" = "xrelease" ; then
45653         COND_BUILD_RELEASE=""
45654     fi
45655
45656     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
45657     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
45658         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
45659     fi
45660
45661     COND_BUILD_RELEASE_UNICODE_0="#"
45662     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
45663         COND_BUILD_RELEASE_UNICODE_0=""
45664     fi
45665
45666     COND_BUILD_RELEASE_UNICODE_1="#"
45667     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
45668         COND_BUILD_RELEASE_UNICODE_1=""
45669     fi
45670
45671     COND_DEBUG_FLAG_1="#"
45672     if test "x$DEBUG_FLAG" = "x1" ; then
45673         COND_DEBUG_FLAG_1=""
45674     fi
45675
45676     COND_DEBUG_INFO_0="#"
45677     if test "x$DEBUG_INFO" = "x0" ; then
45678         COND_DEBUG_INFO_0=""
45679     fi
45680
45681     COND_DEBUG_INFO_1="#"
45682     if test "x$DEBUG_INFO" = "x1" ; then
45683         COND_DEBUG_INFO_1=""
45684     fi
45685
45686     COND_DEPS_TRACKING_0="#"
45687     if test "x$DEPS_TRACKING" = "x0" ; then
45688         COND_DEPS_TRACKING_0=""
45689     fi
45690
45691     COND_DEPS_TRACKING_1="#"
45692     if test "x$DEPS_TRACKING" = "x1" ; then
45693         COND_DEPS_TRACKING_1=""
45694     fi
45695
45696     COND_GCC_PCH_1="#"
45697     if test "x$GCC_PCH" = "x1" ; then
45698         COND_GCC_PCH_1=""
45699     fi
45700
45701     COND_MONOLITHIC_0="#"
45702     if test "x$MONOLITHIC" = "x0" ; then
45703         COND_MONOLITHIC_0=""
45704     fi
45705
45706     COND_MONOLITHIC_0_SHARED_0="#"
45707     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
45708         COND_MONOLITHIC_0_SHARED_0=""
45709     fi
45710
45711     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
45712     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
45713         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
45714     fi
45715
45716     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
45717     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45718         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
45719     fi
45720
45721     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
45722     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45723         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
45724     fi
45725
45726     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
45727     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45728         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
45729     fi
45730
45731     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
45732     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
45733         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
45734     fi
45735
45736     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
45737     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45738         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
45739     fi
45740
45741     COND_MONOLITHIC_0_SHARED_1="#"
45742     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
45743         COND_MONOLITHIC_0_SHARED_1=""
45744     fi
45745
45746     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
45747     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
45748         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
45749     fi
45750
45751     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
45752     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45753         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
45754     fi
45755
45756     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
45757     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45758         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
45759     fi
45760
45761     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
45762     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45763         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
45764     fi
45765
45766     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
45767     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
45768         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
45769     fi
45770
45771     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
45772     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45773         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
45774     fi
45775
45776     COND_MONOLITHIC_0_USE_ODBC_1="#"
45777     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
45778         COND_MONOLITHIC_0_USE_ODBC_1=""
45779     fi
45780
45781     COND_MONOLITHIC_1="#"
45782     if test "x$MONOLITHIC" = "x1" ; then
45783         COND_MONOLITHIC_1=""
45784     fi
45785
45786     COND_MONOLITHIC_1_SHARED_0="#"
45787     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
45788         COND_MONOLITHIC_1_SHARED_0=""
45789     fi
45790
45791     COND_MONOLITHIC_1_SHARED_1="#"
45792     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
45793         COND_MONOLITHIC_1_SHARED_1=""
45794     fi
45795
45796     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
45797     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
45798         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
45799     fi
45800
45801     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
45802     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
45803         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
45804     fi
45805
45806     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
45807     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45808         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
45809     fi
45810
45811     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
45812     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45813         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
45814     fi
45815
45816     COND_PLATFORM_MACOSX_1="#"
45817     if test "x$PLATFORM_MACOSX" = "x1" ; then
45818         COND_PLATFORM_MACOSX_1=""
45819     fi
45820
45821     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
45822     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
45823         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
45824     fi
45825
45826     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
45827     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
45828         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
45829     fi
45830
45831     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
45832     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
45833         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
45834     fi
45835
45836     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45837     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45838         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45839     fi
45840
45841     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45842     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45843         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45844     fi
45845
45846     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45847     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45848         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45849     fi
45850
45851     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45852     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45853         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45854     fi
45855
45856     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45857     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45858         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45859     fi
45860
45861     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45862     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45863         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45864     fi
45865
45866     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45867     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45868         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45869     fi
45870
45871     COND_PLATFORM_MACOS_1="#"
45872     if test "x$PLATFORM_MACOS" = "x1" ; then
45873         COND_PLATFORM_MACOS_1=""
45874     fi
45875
45876     COND_PLATFORM_MAC_1="#"
45877     if test "x$PLATFORM_MAC" = "x1" ; then
45878         COND_PLATFORM_MAC_1=""
45879     fi
45880
45881     COND_PLATFORM_MSDOS_1="#"
45882     if test "x$PLATFORM_MSDOS" = "x1" ; then
45883         COND_PLATFORM_MSDOS_1=""
45884     fi
45885
45886     COND_PLATFORM_OS2_1="#"
45887     if test "x$PLATFORM_OS2" = "x1" ; then
45888         COND_PLATFORM_OS2_1=""
45889     fi
45890
45891     COND_PLATFORM_UNIX_0="#"
45892     if test "x$PLATFORM_UNIX" = "x0" ; then
45893         COND_PLATFORM_UNIX_0=""
45894     fi
45895
45896     COND_PLATFORM_UNIX_1="#"
45897     if test "x$PLATFORM_UNIX" = "x1" ; then
45898         COND_PLATFORM_UNIX_1=""
45899     fi
45900
45901     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45902     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45903         COND_PLATFORM_UNIX_1_USE_GUI_1=""
45904     fi
45905
45906     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45907     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45908         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45909     fi
45910
45911     COND_PLATFORM_WIN32_0="#"
45912     if test "x$PLATFORM_WIN32" = "x0" ; then
45913         COND_PLATFORM_WIN32_0=""
45914     fi
45915
45916     COND_PLATFORM_WIN32_1="#"
45917     if test "x$PLATFORM_WIN32" = "x1" ; then
45918         COND_PLATFORM_WIN32_1=""
45919     fi
45920
45921     COND_SHARED_0="#"
45922     if test "x$SHARED" = "x0" ; then
45923         COND_SHARED_0=""
45924     fi
45925
45926     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45927     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45928         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45929     fi
45930
45931     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45932     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45933         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45934     fi
45935
45936     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45937     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45938         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45939     fi
45940
45941     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45942     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45943         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45944     fi
45945
45946     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45947     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45948         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45949     fi
45950
45951     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45952     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45953         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45954     fi
45955
45956     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45957     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45958         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45959     fi
45960
45961     COND_SHARED_0_USE_XRC_1="#"
45962     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45963         COND_SHARED_0_USE_XRC_1=""
45964     fi
45965
45966     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45967     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45968         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45969     fi
45970
45971     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45972     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45973         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45974     fi
45975
45976     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45977     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45978         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45979     fi
45980
45981     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45982     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45983         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45984     fi
45985
45986     COND_SHARED_1="#"
45987     if test "x$SHARED" = "x1" ; then
45988         COND_SHARED_1=""
45989     fi
45990
45991     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45992     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45993         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45994     fi
45995
45996     COND_SHARED_1_USE_XRC_1="#"
45997     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45998         COND_SHARED_1_USE_XRC_1=""
45999     fi
46000
46001     COND_TOOLKIT_="#"
46002     if test "x$TOOLKIT" = "x" ; then
46003         COND_TOOLKIT_=""
46004     fi
46005
46006     COND_TOOLKIT_COCOA="#"
46007     if test "x$TOOLKIT" = "xCOCOA" ; then
46008         COND_TOOLKIT_COCOA=""
46009     fi
46010
46011     COND_TOOLKIT_COCOA_USE_GUI_1="#"
46012     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
46013         COND_TOOLKIT_COCOA_USE_GUI_1=""
46014     fi
46015
46016     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
46017     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46018         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
46019     fi
46020
46021     COND_TOOLKIT_GTK="#"
46022     if test "x$TOOLKIT" = "xGTK" ; then
46023         COND_TOOLKIT_GTK=""
46024     fi
46025
46026     COND_TOOLKIT_GTK_USE_GUI_1="#"
46027     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
46028         COND_TOOLKIT_GTK_USE_GUI_1=""
46029     fi
46030
46031     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
46032     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46033         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
46034     fi
46035
46036     COND_TOOLKIT_MAC="#"
46037     if test "x$TOOLKIT" = "xMAC" ; then
46038         COND_TOOLKIT_MAC=""
46039     fi
46040
46041     COND_TOOLKIT_MAC_USE_GUI_1="#"
46042     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
46043         COND_TOOLKIT_MAC_USE_GUI_1=""
46044     fi
46045
46046     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
46047     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46048         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
46049     fi
46050
46051     COND_TOOLKIT_MGL="#"
46052     if test "x$TOOLKIT" = "xMGL" ; then
46053         COND_TOOLKIT_MGL=""
46054     fi
46055
46056     COND_TOOLKIT_MGL_USE_GUI_1="#"
46057     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
46058         COND_TOOLKIT_MGL_USE_GUI_1=""
46059     fi
46060
46061     COND_TOOLKIT_MOTIF="#"
46062     if test "x$TOOLKIT" = "xMOTIF" ; then
46063         COND_TOOLKIT_MOTIF=""
46064     fi
46065
46066     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
46067     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
46068         COND_TOOLKIT_MOTIF_USE_GUI_1=""
46069     fi
46070
46071     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
46072     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46073         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
46074     fi
46075
46076     COND_TOOLKIT_MSW="#"
46077     if test "x$TOOLKIT" = "xMSW" ; then
46078         COND_TOOLKIT_MSW=""
46079     fi
46080
46081     COND_TOOLKIT_MSW_USE_GUI_1="#"
46082     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
46083         COND_TOOLKIT_MSW_USE_GUI_1=""
46084     fi
46085
46086     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
46087     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46088         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
46089     fi
46090
46091     COND_TOOLKIT_MSW_WXUNIV_0="#"
46092     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
46093         COND_TOOLKIT_MSW_WXUNIV_0=""
46094     fi
46095
46096     COND_TOOLKIT_PM="#"
46097     if test "x$TOOLKIT" = "xPM" ; then
46098         COND_TOOLKIT_PM=""
46099     fi
46100
46101     COND_TOOLKIT_PM_USE_GUI_1="#"
46102     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
46103         COND_TOOLKIT_PM_USE_GUI_1=""
46104     fi
46105
46106     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
46107     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46108         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
46109     fi
46110
46111     COND_TOOLKIT_WINCE="#"
46112     if test "x$TOOLKIT" = "xWINCE" ; then
46113         COND_TOOLKIT_WINCE=""
46114     fi
46115
46116     COND_TOOLKIT_WINCE_USE_GUI_1="#"
46117     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
46118         COND_TOOLKIT_WINCE_USE_GUI_1=""
46119     fi
46120
46121     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
46122     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46123         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
46124     fi
46125
46126     COND_TOOLKIT_WINCE_WXUNIV_0="#"
46127     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
46128         COND_TOOLKIT_WINCE_WXUNIV_0=""
46129     fi
46130
46131     COND_TOOLKIT_X11="#"
46132     if test "x$TOOLKIT" = "xX11" ; then
46133         COND_TOOLKIT_X11=""
46134     fi
46135
46136     COND_TOOLKIT_X11_USE_GUI_1="#"
46137     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
46138         COND_TOOLKIT_X11_USE_GUI_1=""
46139     fi
46140
46141     COND_UNICODE_1="#"
46142     if test "x$UNICODE" = "x1" ; then
46143         COND_UNICODE_1=""
46144     fi
46145
46146     COND_USE_EXCEPTIONS_0="#"
46147     if test "x$USE_EXCEPTIONS" = "x0" ; then
46148         COND_USE_EXCEPTIONS_0=""
46149     fi
46150
46151     COND_USE_EXCEPTIONS_1="#"
46152     if test "x$USE_EXCEPTIONS" = "x1" ; then
46153         COND_USE_EXCEPTIONS_1=""
46154     fi
46155
46156     COND_USE_GUI_0="#"
46157     if test "x$USE_GUI" = "x0" ; then
46158         COND_USE_GUI_0=""
46159     fi
46160
46161     COND_USE_GUI_1="#"
46162     if test "x$USE_GUI" = "x1" ; then
46163         COND_USE_GUI_1=""
46164     fi
46165
46166     COND_USE_GUI_1_WXUNIV_0="#"
46167     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46168         COND_USE_GUI_1_WXUNIV_0=""
46169     fi
46170
46171     COND_USE_GUI_1_WXUNIV_1="#"
46172     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
46173         COND_USE_GUI_1_WXUNIV_1=""
46174     fi
46175
46176     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
46177     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46178         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
46179     fi
46180
46181     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
46182     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46183         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
46184     fi
46185
46186     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
46187     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46188         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
46189     fi
46190
46191     COND_USE_ODBC_1="#"
46192     if test "x$USE_ODBC" = "x1" ; then
46193         COND_USE_ODBC_1=""
46194     fi
46195
46196     COND_USE_OPENGL_1="#"
46197     if test "x$USE_OPENGL" = "x1" ; then
46198         COND_USE_OPENGL_1=""
46199     fi
46200
46201     COND_USE_PLUGINS_0="#"
46202     if test "x$USE_PLUGINS" = "x0" ; then
46203         COND_USE_PLUGINS_0=""
46204     fi
46205
46206     COND_USE_RTTI_0="#"
46207     if test "x$USE_RTTI" = "x0" ; then
46208         COND_USE_RTTI_0=""
46209     fi
46210
46211     COND_USE_RTTI_1="#"
46212     if test "x$USE_RTTI" = "x1" ; then
46213         COND_USE_RTTI_1=""
46214     fi
46215
46216     COND_USE_SOSYMLINKS_1="#"
46217     if test "x$USE_SOSYMLINKS" = "x1" ; then
46218         COND_USE_SOSYMLINKS_1=""
46219     fi
46220
46221     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
46222     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
46223         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
46224     fi
46225
46226     COND_USE_SOVERLINUX_1="#"
46227     if test "x$USE_SOVERLINUX" = "x1" ; then
46228         COND_USE_SOVERLINUX_1=""
46229     fi
46230
46231     COND_USE_SOVERSION_0="#"
46232     if test "x$USE_SOVERSION" = "x0" ; then
46233         COND_USE_SOVERSION_0=""
46234     fi
46235
46236     COND_USE_SOVERSOLARIS_1="#"
46237     if test "x$USE_SOVERSOLARIS" = "x1" ; then
46238         COND_USE_SOVERSOLARIS_1=""
46239     fi
46240
46241     COND_USE_THREADS_0="#"
46242     if test "x$USE_THREADS" = "x0" ; then
46243         COND_USE_THREADS_0=""
46244     fi
46245
46246     COND_USE_THREADS_1="#"
46247     if test "x$USE_THREADS" = "x1" ; then
46248         COND_USE_THREADS_1=""
46249     fi
46250
46251     COND_USE_XRC_1="#"
46252     if test "x$USE_XRC" = "x1" ; then
46253         COND_USE_XRC_1=""
46254     fi
46255
46256     COND_WINDOWS_IMPLIB_1="#"
46257     if test "x$WINDOWS_IMPLIB" = "x1" ; then
46258         COND_WINDOWS_IMPLIB_1=""
46259     fi
46260
46261     COND_WITH_PLUGIN_SDL_1="#"
46262     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
46263         COND_WITH_PLUGIN_SDL_1=""
46264     fi
46265
46266     COND_WXUNIV_0="#"
46267     if test "x$WXUNIV" = "x0" ; then
46268         COND_WXUNIV_0=""
46269     fi
46270
46271     COND_WXUNIV_1="#"
46272     if test "x$WXUNIV" = "x1" ; then
46273         COND_WXUNIV_1=""
46274     fi
46275
46276     COND_WXUSE_EXPAT_BUILTIN="#"
46277     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
46278         COND_WXUSE_EXPAT_BUILTIN=""
46279     fi
46280
46281     COND_WXUSE_LIBJPEG_BUILTIN="#"
46282     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46283         COND_WXUSE_LIBJPEG_BUILTIN=""
46284     fi
46285
46286     COND_WXUSE_LIBPNG_BUILTIN="#"
46287     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46288         COND_WXUSE_LIBPNG_BUILTIN=""
46289     fi
46290
46291     COND_WXUSE_LIBTIFF_BUILTIN="#"
46292     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46293         COND_WXUSE_LIBTIFF_BUILTIN=""
46294     fi
46295
46296     COND_WXUSE_ODBC_BUILTIN="#"
46297     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
46298         COND_WXUSE_ODBC_BUILTIN=""
46299     fi
46300
46301     COND_WXUSE_REGEX_BUILTIN="#"
46302     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
46303         COND_WXUSE_REGEX_BUILTIN=""
46304     fi
46305
46306     COND_WXUSE_ZLIB_BUILTIN="#"
46307     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
46308         COND_WXUSE_ZLIB_BUILTIN=""
46309     fi
46310
46311
46312
46313     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
46314         { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
46315 echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
46316    { (exit 1); exit 1; }; }
46317     fi
46318
46319     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
46320         { { 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
46321 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;}
46322    { (exit 1); exit 1; }; }
46323     fi
46324
46325
46326 if test "$wxUSE_SHARED" = "yes"; then
46327
46328                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
46329     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
46330
46331                 case "${host}" in
46332       *-pc-os2_emx | *-pc-os2-emx )
46333         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46334         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46335         cp -p ${srcdir}/src/os2/dllnames.sh .
46336         cp -p ${srcdir}/src/os2/dllar.sh .
46337       ;;
46338     esac
46339 else
46340
46341         EXE_LINKER="$CXX -o"
46342
46343 fi
46344 if test "$wxUSE_OMF" = "yes"; then
46345     case "${host}" in
46346       *-pc-os2_emx | *-pc-os2-emx )
46347         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
46348         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46349         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46350       ;;
46351     esac
46352 fi
46353
46354 if test $GCC_PCH = 1 ; then
46355     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
46356 fi
46357
46358 CPPFLAGS="$CPPFLAGS $TOOLCHAIN_DEFS"
46359
46360 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
46361
46362
46363
46364
46365
46366
46367
46368
46369
46370
46371
46372
46373
46374
46375
46376
46377
46378
46379
46380
46381
46382
46383
46384
46385
46386
46387
46388
46389
46390
46391
46392
46393
46394
46395
46396
46397
46398
46399
46400
46401
46402
46403
46404
46405
46406
46407
46408
46409
46410
46411
46412
46413
46414
46415
46416
46417
46418
46419
46420
46421
46422
46423
46424 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46425 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
46426 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
46427 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46428   echo $ECHO_N "(cached) $ECHO_C" >&6
46429 else
46430   cat >conftest.make <<\_ACEOF
46431 all:
46432         @echo 'ac_maketemp="$(MAKE)"'
46433 _ACEOF
46434 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46435 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46436 if test -n "$ac_maketemp"; then
46437   eval ac_cv_prog_make_${ac_make}_set=yes
46438 else
46439   eval ac_cv_prog_make_${ac_make}_set=no
46440 fi
46441 rm -f conftest.make
46442 fi
46443 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46444   echo "$as_me:$LINENO: result: yes" >&5
46445 echo "${ECHO_T}yes" >&6
46446   SET_MAKE=
46447 else
46448   echo "$as_me:$LINENO: result: no" >&5
46449 echo "${ECHO_T}no" >&6
46450   SET_MAKE="MAKE=${MAKE-make}"
46451 fi
46452
46453
46454
46455           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
46456
46457
46458           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
46459
46460
46461           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
46462
46463
46464                     ac_config_files="$ac_config_files version-script Makefile"
46465
46466
46467           ac_config_commands="$ac_config_commands  wx-config
46468                    "
46469
46470
46471
46472 if test "$wxWITH_SUBDIRS" != "no"; then
46473 if test "$wxUSE_GUI" = "yes"; then
46474     SUBDIRS="samples demos utils contrib"
46475 else         SUBDIRS="samples utils"
46476 fi
46477
46478
46479
46480 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
46481 if test "${with_cppunit_prefix+set}" = set; then
46482   withval="$with_cppunit_prefix"
46483   cppunit_config_prefix="$withval"
46484 else
46485   cppunit_config_prefix=""
46486 fi;
46487
46488 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
46489 if test "${with_cppunit_exec_prefix+set}" = set; then
46490   withval="$with_cppunit_exec_prefix"
46491   cppunit_config_exec_prefix="$withval"
46492 else
46493   cppunit_config_exec_prefix=""
46494 fi;
46495
46496   if test x$cppunit_config_exec_prefix != x ; then
46497      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
46498      if test x${CPPUNIT_CONFIG+set} != xset ; then
46499         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
46500      fi
46501   fi
46502   if test x$cppunit_config_prefix != x ; then
46503      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
46504      if test x${CPPUNIT_CONFIG+set} != xset ; then
46505         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
46506      fi
46507   fi
46508
46509   # Extract the first word of "cppunit-config", so it can be a program name with args.
46510 set dummy cppunit-config; ac_word=$2
46511 echo "$as_me:$LINENO: checking for $ac_word" >&5
46512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46513 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
46514   echo $ECHO_N "(cached) $ECHO_C" >&6
46515 else
46516   case $CPPUNIT_CONFIG in
46517   [\\/]* | ?:[\\/]*)
46518   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
46519   ;;
46520   *)
46521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46522 for as_dir in $PATH
46523 do
46524   IFS=$as_save_IFS
46525   test -z "$as_dir" && as_dir=.
46526   for ac_exec_ext in '' $ac_executable_extensions; do
46527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46528     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46530     break 2
46531   fi
46532 done
46533 done
46534
46535   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
46536   ;;
46537 esac
46538 fi
46539 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
46540
46541 if test -n "$CPPUNIT_CONFIG"; then
46542   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
46543 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
46544 else
46545   echo "$as_me:$LINENO: result: no" >&5
46546 echo "${ECHO_T}no" >&6
46547 fi
46548
46549   cppunit_version_min=1.8.0
46550
46551   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
46552 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
46553   no_cppunit=""
46554   if test "$CPPUNIT_CONFIG" = "no" ; then
46555     no_cppunit=yes
46556   else
46557     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
46558     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
46559     cppunit_version=`$CPPUNIT_CONFIG --version`
46560
46561     cppunit_major_version=`echo $cppunit_version | \
46562            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46563     cppunit_minor_version=`echo $cppunit_version | \
46564            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46565     cppunit_micro_version=`echo $cppunit_version | \
46566            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46567
46568     cppunit_major_min=`echo $cppunit_version_min | \
46569            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46570     cppunit_minor_min=`echo $cppunit_version_min | \
46571            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46572     cppunit_micro_min=`echo $cppunit_version_min | \
46573            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46574
46575     cppunit_version_proper=`expr \
46576         $cppunit_major_version \> $cppunit_major_min \| \
46577         $cppunit_major_version \= $cppunit_major_min \& \
46578         $cppunit_minor_version \> $cppunit_minor_min \| \
46579         $cppunit_major_version \= $cppunit_major_min \& \
46580         $cppunit_minor_version \= $cppunit_minor_min \& \
46581         $cppunit_micro_version \>= $cppunit_micro_min `
46582
46583     if test "$cppunit_version_proper" = "1" ; then
46584       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
46585 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
46586     else
46587       echo "$as_me:$LINENO: result: no" >&5
46588 echo "${ECHO_T}no" >&6
46589       no_cppunit=yes
46590     fi
46591   fi
46592
46593   if test "x$no_cppunit" = x ; then
46594      SUBDIRS="$SUBDIRS tests"
46595   else
46596      CPPUNIT_CFLAGS=""
46597      CPPUNIT_LIBS=""
46598      :
46599   fi
46600
46601
46602
46603
46604
46605 for subdir in `echo $SUBDIRS`; do
46606     if test -d ${srcdir}/${subdir} ; then
46607         if test "$wxUSE_GUI" = "yes"; then
46608             if test ${subdir} = "samples"; then
46609                                                 makefiles="samples/Makefile.in $makefiles"
46610                 for sample in `echo $SAMPLES_SUBDIRS`; do
46611                     if test -d $srcdir/samples/$sample; then
46612                         makefiles="samples/$sample/Makefile.in $makefiles"
46613                     fi
46614                 done
46615             else
46616                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
46617                 eval "disabled=\$$disabled_var"
46618                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
46619                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
46620             fi
46621         else                                     if test ${subdir} = "samples"; then
46622                 makefiles="samples/Makefile.in samples/console/Makefile.in"
46623             elif test ${subdir} = "utils"; then
46624                 makefiles=""
46625                 for util in HelpGen tex2rtf ; do
46626                     if test -d $srcdir/utils/$util ; then
46627                         makefiles="utils/$util/Makefile.in \
46628                                    utils/$util/src/Makefile.in \
46629                                    $makefiles"
46630                     fi
46631                 done
46632             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
46633             fi
46634         fi
46635
46636         for mkin in $makefiles ; do
46637             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
46638                       ac_config_files="$ac_config_files $mk"
46639
46640         done
46641     fi
46642 done
46643 fi
46644 cat >confcache <<\_ACEOF
46645 # This file is a shell script that caches the results of configure
46646 # tests run on this system so they can be shared between configure
46647 # scripts and configure runs, see configure's option --config-cache.
46648 # It is not useful on other systems.  If it contains results you don't
46649 # want to keep, you may remove or edit it.
46650 #
46651 # config.status only pays attention to the cache file if you give it
46652 # the --recheck option to rerun configure.
46653 #
46654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
46655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
46656 # following values.
46657
46658 _ACEOF
46659
46660 # The following way of writing the cache mishandles newlines in values,
46661 # but we know of no workaround that is simple, portable, and efficient.
46662 # So, don't put newlines in cache variables' values.
46663 # Ultrix sh set writes to stderr and can't be redirected directly,
46664 # and sets the high bit in the cache file unless we assign to the vars.
46665 {
46666   (set) 2>&1 |
46667     case `(ac_space=' '; set | grep ac_space) 2>&1` in
46668     *ac_space=\ *)
46669       # `set' does not quote correctly, so add quotes (double-quote
46670       # substitution turns \\\\ into \\, and sed turns \\ into \).
46671       sed -n \
46672         "s/'/'\\\\''/g;
46673           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46674       ;;
46675     *)
46676       # `set' quotes correctly as required by POSIX, so do not add quotes.
46677       sed -n \
46678         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
46679       ;;
46680     esac;
46681 } |
46682   sed '
46683      t clear
46684      : clear
46685      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46686      t end
46687      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46688      : end' >>confcache
46689 if diff $cache_file confcache >/dev/null 2>&1; then :; else
46690   if test -w $cache_file; then
46691     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46692     cat confcache >$cache_file
46693   else
46694     echo "not updating unwritable cache $cache_file"
46695   fi
46696 fi
46697 rm -f confcache
46698
46699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
46700 # Let make expand exec_prefix.
46701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46702
46703 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46704 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46705 # trailing colons and then remove the whole line if VPATH becomes empty
46706 # (actually we leave an empty line to preserve line numbers).
46707 if test "x$srcdir" = x.; then
46708   ac_vpsub='/^[  ]*VPATH[        ]*=/{
46709 s/:*\$(srcdir):*/:/;
46710 s/:*\${srcdir}:*/:/;
46711 s/:*@srcdir@:*/:/;
46712 s/^\([^=]*=[     ]*\):*/\1/;
46713 s/:*$//;
46714 s/^[^=]*=[       ]*$//;
46715 }'
46716 fi
46717
46718 DEFS=-DHAVE_CONFIG_H
46719
46720 ac_libobjs=
46721 ac_ltlibobjs=
46722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46723   # 1. Remove the extension, and $U if already installed.
46724   ac_i=`echo "$ac_i" |
46725          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
46726   # 2. Add them.
46727   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46728   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46729 done
46730 LIBOBJS=$ac_libobjs
46731
46732 LTLIBOBJS=$ac_ltlibobjs
46733
46734
46735
46736 : ${CONFIG_STATUS=./config.status}
46737 ac_clean_files_save=$ac_clean_files
46738 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46739 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46740 echo "$as_me: creating $CONFIG_STATUS" >&6;}
46741 cat >$CONFIG_STATUS <<_ACEOF
46742 #! $SHELL
46743 # Generated by $as_me.
46744 # Run this file to recreate the current configuration.
46745 # Compiler output produced by configure, useful for debugging
46746 # configure, is in config.log if it exists.
46747
46748 debug=false
46749 ac_cs_recheck=false
46750 ac_cs_silent=false
46751 SHELL=\${CONFIG_SHELL-$SHELL}
46752 _ACEOF
46753
46754 cat >>$CONFIG_STATUS <<\_ACEOF
46755 ## --------------------- ##
46756 ## M4sh Initialization.  ##
46757 ## --------------------- ##
46758
46759 # Be Bourne compatible
46760 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46761   emulate sh
46762   NULLCMD=:
46763   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46764   # is contrary to our usage.  Disable this feature.
46765   alias -g '${1+"$@"}'='"$@"'
46766 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46767   set -o posix
46768 fi
46769 DUALCASE=1; export DUALCASE # for MKS sh
46770
46771 # Support unset when possible.
46772 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46773   as_unset=unset
46774 else
46775   as_unset=false
46776 fi
46777
46778
46779 # Work around bugs in pre-3.0 UWIN ksh.
46780 $as_unset ENV MAIL MAILPATH
46781 PS1='$ '
46782 PS2='> '
46783 PS4='+ '
46784
46785 # NLS nuisances.
46786 for as_var in \
46787   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46788   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46789   LC_TELEPHONE LC_TIME
46790 do
46791   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46792     eval $as_var=C; export $as_var
46793   else
46794     $as_unset $as_var
46795   fi
46796 done
46797
46798 # Required to use basename.
46799 if expr a : '\(a\)' >/dev/null 2>&1; then
46800   as_expr=expr
46801 else
46802   as_expr=false
46803 fi
46804
46805 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46806   as_basename=basename
46807 else
46808   as_basename=false
46809 fi
46810
46811
46812 # Name of the executable.
46813 as_me=`$as_basename "$0" ||
46814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46815          X"$0" : 'X\(//\)$' \| \
46816          X"$0" : 'X\(/\)$' \| \
46817          .     : '\(.\)' 2>/dev/null ||
46818 echo X/"$0" |
46819     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46820           /^X\/\(\/\/\)$/{ s//\1/; q; }
46821           /^X\/\(\/\).*/{ s//\1/; q; }
46822           s/.*/./; q'`
46823
46824
46825 # PATH needs CR, and LINENO needs CR and PATH.
46826 # Avoid depending upon Character Ranges.
46827 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46828 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46829 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46830 as_cr_digits='0123456789'
46831 as_cr_alnum=$as_cr_Letters$as_cr_digits
46832
46833 # The user is always right.
46834 if test "${PATH_SEPARATOR+set}" != set; then
46835   echo "#! /bin/sh" >conf$$.sh
46836   echo  "exit 0"   >>conf$$.sh
46837   chmod +x conf$$.sh
46838   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46839     PATH_SEPARATOR=';'
46840   else
46841     PATH_SEPARATOR=:
46842   fi
46843   rm -f conf$$.sh
46844 fi
46845
46846
46847   as_lineno_1=$LINENO
46848   as_lineno_2=$LINENO
46849   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46850   test "x$as_lineno_1" != "x$as_lineno_2" &&
46851   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
46852   # Find who we are.  Look in the path if we contain no path at all
46853   # relative or not.
46854   case $0 in
46855     *[\\/]* ) as_myself=$0 ;;
46856     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46857 for as_dir in $PATH
46858 do
46859   IFS=$as_save_IFS
46860   test -z "$as_dir" && as_dir=.
46861   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46862 done
46863
46864        ;;
46865   esac
46866   # We did not find ourselves, most probably we were run as `sh COMMAND'
46867   # in which case we are not to be found in the path.
46868   if test "x$as_myself" = x; then
46869     as_myself=$0
46870   fi
46871   if test ! -f "$as_myself"; then
46872     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46873 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46874    { (exit 1); exit 1; }; }
46875   fi
46876   case $CONFIG_SHELL in
46877   '')
46878     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46879 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46880 do
46881   IFS=$as_save_IFS
46882   test -z "$as_dir" && as_dir=.
46883   for as_base in sh bash ksh sh5; do
46884          case $as_dir in
46885          /*)
46886            if ("$as_dir/$as_base" -c '
46887   as_lineno_1=$LINENO
46888   as_lineno_2=$LINENO
46889   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46890   test "x$as_lineno_1" != "x$as_lineno_2" &&
46891   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
46892              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46893              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46894              CONFIG_SHELL=$as_dir/$as_base
46895              export CONFIG_SHELL
46896              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46897            fi;;
46898          esac
46899        done
46900 done
46901 ;;
46902   esac
46903
46904   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46905   # uniformly replaced by the line number.  The first 'sed' inserts a
46906   # line-number line before each line; the second 'sed' does the real
46907   # work.  The second script uses 'N' to pair each line-number line
46908   # with the numbered line, and appends trailing '-' during
46909   # substitution so that $LINENO is not a special case at line end.
46910   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46911   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
46912   sed '=' <$as_myself |
46913     sed '
46914       N
46915       s,$,-,
46916       : loop
46917       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46918       t loop
46919       s,-$,,
46920       s,^['$as_cr_digits']*\n,,
46921     ' >$as_me.lineno &&
46922   chmod +x $as_me.lineno ||
46923     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46924 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46925    { (exit 1); exit 1; }; }
46926
46927   # Don't try to exec as it changes $[0], causing all sort of problems
46928   # (the dirname of $[0] is not the place where we might find the
46929   # original and so on.  Autoconf is especially sensible to this).
46930   . ./$as_me.lineno
46931   # Exit status is that of the last command.
46932   exit
46933 }
46934
46935
46936 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46937   *c*,-n*) ECHO_N= ECHO_C='
46938 ' ECHO_T='      ' ;;
46939   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46940   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
46941 esac
46942
46943 if expr a : '\(a\)' >/dev/null 2>&1; then
46944   as_expr=expr
46945 else
46946   as_expr=false
46947 fi
46948
46949 rm -f conf$$ conf$$.exe conf$$.file
46950 echo >conf$$.file
46951 if ln -s conf$$.file conf$$ 2>/dev/null; then
46952   # We could just check for DJGPP; but this test a) works b) is more generic
46953   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46954   if test -f conf$$.exe; then
46955     # Don't use ln at all; we don't have any links
46956     as_ln_s='cp -p'
46957   else
46958     as_ln_s='ln -s'
46959   fi
46960 elif ln conf$$.file conf$$ 2>/dev/null; then
46961   as_ln_s=ln
46962 else
46963   as_ln_s='cp -p'
46964 fi
46965 rm -f conf$$ conf$$.exe conf$$.file
46966
46967 if mkdir -p . 2>/dev/null; then
46968   as_mkdir_p=:
46969 else
46970   test -d ./-p && rmdir ./-p
46971   as_mkdir_p=false
46972 fi
46973
46974 as_executable_p="test -f"
46975
46976 # Sed expression to map a string onto a valid CPP name.
46977 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46978
46979 # Sed expression to map a string onto a valid variable name.
46980 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46981
46982
46983 # IFS
46984 # We need space, tab and new line, in precisely that order.
46985 as_nl='
46986 '
46987 IFS="   $as_nl"
46988
46989 # CDPATH.
46990 $as_unset CDPATH
46991
46992 exec 6>&1
46993
46994 # Open the log real soon, to keep \$[0] and so on meaningful, and to
46995 # report actual input values of CONFIG_FILES etc. instead of their
46996 # values after options handling.  Logging --version etc. is OK.
46997 exec 5>>config.log
46998 {
46999   echo
47000   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47001 ## Running $as_me. ##
47002 _ASBOX
47003 } >&5
47004 cat >&5 <<_CSEOF
47005
47006 This file was extended by wxWidgets $as_me 2.7.0, which was
47007 generated by GNU Autoconf 2.59.  Invocation command line was
47008
47009   CONFIG_FILES    = $CONFIG_FILES
47010   CONFIG_HEADERS  = $CONFIG_HEADERS
47011   CONFIG_LINKS    = $CONFIG_LINKS
47012   CONFIG_COMMANDS = $CONFIG_COMMANDS
47013   $ $0 $@
47014
47015 _CSEOF
47016 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
47017 echo >&5
47018 _ACEOF
47019
47020 # Files that config.status was made for.
47021 if test -n "$ac_config_files"; then
47022   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
47023 fi
47024
47025 if test -n "$ac_config_headers"; then
47026   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
47027 fi
47028
47029 if test -n "$ac_config_links"; then
47030   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
47031 fi
47032
47033 if test -n "$ac_config_commands"; then
47034   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
47035 fi
47036
47037 cat >>$CONFIG_STATUS <<\_ACEOF
47038
47039 ac_cs_usage="\
47040 \`$as_me' instantiates files from templates according to the
47041 current configuration.
47042
47043 Usage: $0 [OPTIONS] [FILE]...
47044
47045   -h, --help       print this help, then exit
47046   -V, --version    print version number, then exit
47047   -q, --quiet      do not print progress messages
47048   -d, --debug      don't remove temporary files
47049       --recheck    update $as_me by reconfiguring in the same conditions
47050   --file=FILE[:TEMPLATE]
47051                    instantiate the configuration file FILE
47052   --header=FILE[:TEMPLATE]
47053                    instantiate the configuration header FILE
47054
47055 Configuration files:
47056 $config_files
47057
47058 Configuration headers:
47059 $config_headers
47060
47061 Configuration commands:
47062 $config_commands
47063
47064 Report bugs to <bug-autoconf@gnu.org>."
47065 _ACEOF
47066
47067 cat >>$CONFIG_STATUS <<_ACEOF
47068 ac_cs_version="\\
47069 wxWidgets config.status 2.7.0
47070 configured by $0, generated by GNU Autoconf 2.59,
47071   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
47072
47073 Copyright (C) 2003 Free Software Foundation, Inc.
47074 This config.status script is free software; the Free Software Foundation
47075 gives unlimited permission to copy, distribute and modify it."
47076 srcdir=$srcdir
47077 INSTALL="$INSTALL"
47078 _ACEOF
47079
47080 cat >>$CONFIG_STATUS <<\_ACEOF
47081 # If no file are specified by the user, then we need to provide default
47082 # value.  By we need to know if files were specified by the user.
47083 ac_need_defaults=:
47084 while test $# != 0
47085 do
47086   case $1 in
47087   --*=*)
47088     ac_option=`expr "x$1" : 'x\([^=]*\)='`
47089     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
47090     ac_shift=:
47091     ;;
47092   -*)
47093     ac_option=$1
47094     ac_optarg=$2
47095     ac_shift=shift
47096     ;;
47097   *) # This is not an option, so the user has probably given explicit
47098      # arguments.
47099      ac_option=$1
47100      ac_need_defaults=false;;
47101   esac
47102
47103   case $ac_option in
47104   # Handling of the options.
47105 _ACEOF
47106 cat >>$CONFIG_STATUS <<\_ACEOF
47107   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47108     ac_cs_recheck=: ;;
47109   --version | --vers* | -V )
47110     echo "$ac_cs_version"; exit 0 ;;
47111   --he | --h)
47112     # Conflict between --help and --header
47113     { { echo "$as_me:$LINENO: error: ambiguous option: $1
47114 Try \`$0 --help' for more information." >&5
47115 echo "$as_me: error: ambiguous option: $1
47116 Try \`$0 --help' for more information." >&2;}
47117    { (exit 1); exit 1; }; };;
47118   --help | --hel | -h )
47119     echo "$ac_cs_usage"; exit 0 ;;
47120   --debug | --d* | -d )
47121     debug=: ;;
47122   --file | --fil | --fi | --f )
47123     $ac_shift
47124     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
47125     ac_need_defaults=false;;
47126   --header | --heade | --head | --hea )
47127     $ac_shift
47128     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
47129     ac_need_defaults=false;;
47130   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47131   | -silent | --silent | --silen | --sile | --sil | --si | --s)
47132     ac_cs_silent=: ;;
47133
47134   # This is an error.
47135   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
47136 Try \`$0 --help' for more information." >&5
47137 echo "$as_me: error: unrecognized option: $1
47138 Try \`$0 --help' for more information." >&2;}
47139    { (exit 1); exit 1; }; } ;;
47140
47141   *) ac_config_targets="$ac_config_targets $1" ;;
47142
47143   esac
47144   shift
47145 done
47146
47147 ac_configure_extra_args=
47148
47149 if $ac_cs_silent; then
47150   exec 6>/dev/null
47151   ac_configure_extra_args="$ac_configure_extra_args --silent"
47152 fi
47153
47154 _ACEOF
47155 cat >>$CONFIG_STATUS <<_ACEOF
47156 if \$ac_cs_recheck; then
47157   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
47158   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47159 fi
47160
47161 _ACEOF
47162
47163 cat >>$CONFIG_STATUS <<_ACEOF
47164 #
47165 # INIT-COMMANDS section.
47166 #
47167
47168  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47169  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47170  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47171                      LN_S="${LN_S}"
47172
47173
47174 _ACEOF
47175
47176
47177
47178 cat >>$CONFIG_STATUS <<\_ACEOF
47179 for ac_config_target in $ac_config_targets
47180 do
47181   case "$ac_config_target" in
47182   # Handling of arguments.
47183   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
47184   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
47185   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
47186   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47187   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
47188   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
47189   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
47190   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47191 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47192    { (exit 1); exit 1; }; };;
47193   esac
47194 done
47195
47196 # If the user did not use the arguments to specify the items to instantiate,
47197 # then the envvar interface is used.  Set only those that are not.
47198 # We use the long form for the default assignment because of an extremely
47199 # bizarre bug on SunOS 4.1.3.
47200 if $ac_need_defaults; then
47201   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47202   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47203   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47204 fi
47205
47206 # Have a temporary directory for convenience.  Make it in the build tree
47207 # simply because there is no reason to put it here, and in addition,
47208 # creating and moving files from /tmp can sometimes cause problems.
47209 # Create a temporary directory, and hook for its removal unless debugging.
47210 $debug ||
47211 {
47212   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
47213   trap '{ (exit 1); exit 1; }' 1 2 13 15
47214 }
47215
47216 # Create a (secure) tmp directory for tmp files.
47217
47218 {
47219   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
47220   test -n "$tmp" && test -d "$tmp"
47221 }  ||
47222 {
47223   tmp=./confstat$$-$RANDOM
47224   (umask 077 && mkdir $tmp)
47225 } ||
47226 {
47227    echo "$me: cannot create a temporary directory in ." >&2
47228    { (exit 1); exit 1; }
47229 }
47230
47231 _ACEOF
47232
47233 cat >>$CONFIG_STATUS <<_ACEOF
47234
47235 #
47236 # CONFIG_FILES section.
47237 #
47238
47239 # No need to generate the scripts if there are no CONFIG_FILES.
47240 # This happens for instance when ./config.status config.h
47241 if test -n "\$CONFIG_FILES"; then
47242   # Protect against being on the right side of a sed subst in config.status.
47243   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
47244    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
47245 s,@SHELL@,$SHELL,;t t
47246 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
47247 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
47248 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
47249 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
47250 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
47251 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
47252 s,@exec_prefix@,$exec_prefix,;t t
47253 s,@prefix@,$prefix,;t t
47254 s,@program_transform_name@,$program_transform_name,;t t
47255 s,@bindir@,$bindir,;t t
47256 s,@sbindir@,$sbindir,;t t
47257 s,@libexecdir@,$libexecdir,;t t
47258 s,@datadir@,$datadir,;t t
47259 s,@sysconfdir@,$sysconfdir,;t t
47260 s,@sharedstatedir@,$sharedstatedir,;t t
47261 s,@localstatedir@,$localstatedir,;t t
47262 s,@libdir@,$libdir,;t t
47263 s,@includedir@,$includedir,;t t
47264 s,@oldincludedir@,$oldincludedir,;t t
47265 s,@infodir@,$infodir,;t t
47266 s,@mandir@,$mandir,;t t
47267 s,@build_alias@,$build_alias,;t t
47268 s,@host_alias@,$host_alias,;t t
47269 s,@target_alias@,$target_alias,;t t
47270 s,@DEFS@,$DEFS,;t t
47271 s,@ECHO_C@,$ECHO_C,;t t
47272 s,@ECHO_N@,$ECHO_N,;t t
47273 s,@ECHO_T@,$ECHO_T,;t t
47274 s,@LIBS@,$LIBS,;t t
47275 s,@build@,$build,;t t
47276 s,@build_cpu@,$build_cpu,;t t
47277 s,@build_vendor@,$build_vendor,;t t
47278 s,@build_os@,$build_os,;t t
47279 s,@host@,$host,;t t
47280 s,@host_cpu@,$host_cpu,;t t
47281 s,@host_vendor@,$host_vendor,;t t
47282 s,@host_os@,$host_os,;t t
47283 s,@target@,$target,;t t
47284 s,@target_cpu@,$target_cpu,;t t
47285 s,@target_vendor@,$target_vendor,;t t
47286 s,@target_os@,$target_os,;t t
47287 s,@CC@,$CC,;t t
47288 s,@CFLAGS@,$CFLAGS,;t t
47289 s,@LDFLAGS@,$LDFLAGS,;t t
47290 s,@CPPFLAGS@,$CPPFLAGS,;t t
47291 s,@ac_ct_CC@,$ac_ct_CC,;t t
47292 s,@EXEEXT@,$EXEEXT,;t t
47293 s,@OBJEXT@,$OBJEXT,;t t
47294 s,@CPP@,$CPP,;t t
47295 s,@EGREP@,$EGREP,;t t
47296 s,@CXX@,$CXX,;t t
47297 s,@CXXFLAGS@,$CXXFLAGS,;t t
47298 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
47299 s,@RANLIB@,$RANLIB,;t t
47300 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
47301 s,@AR@,$AR,;t t
47302 s,@ac_ct_AR@,$ac_ct_AR,;t t
47303 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
47304 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
47305 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
47306 s,@STRIP@,$STRIP,;t t
47307 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
47308 s,@RESCOMP@,$RESCOMP,;t t
47309 s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
47310 s,@DLLTOOL@,$DLLTOOL,;t t
47311 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
47312 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
47313 s,@LN_S@,$LN_S,;t t
47314 s,@LNDIR@,$LNDIR,;t t
47315 s,@CP_PR@,$CP_PR,;t t
47316 s,@CXXCPP@,$CXXCPP,;t t
47317 s,@subdirs@,$subdirs,;t t
47318 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
47319 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
47320 s,@GTK_LIBS@,$GTK_LIBS,;t t
47321 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
47322 s,@X_CFLAGS@,$X_CFLAGS,;t t
47323 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
47324 s,@X_LIBS@,$X_LIBS,;t t
47325 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
47326 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
47327 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
47328 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
47329 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
47330 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
47331 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
47332 s,@DEREZ@,$DEREZ,;t t
47333 s,@SETFILE@,$SETFILE,;t t
47334 s,@LIBICONV@,$LIBICONV,;t t
47335 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
47336 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
47337 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
47338 s,@SDL_LIBS@,$SDL_LIBS,;t t
47339 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
47340 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
47341 s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
47342 s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
47343 s,@GST_INSPECT@,$GST_INSPECT,;t t
47344 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
47345 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
47346 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
47347 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
47348 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
47349 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
47350 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
47351 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
47352 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
47353 s,@VENDOR@,$VENDOR,;t t
47354 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
47355 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
47356 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
47357 s,@WXUNIV@,$WXUNIV,;t t
47358 s,@MONOLITHIC@,$MONOLITHIC,;t t
47359 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
47360 s,@EXTRALIBS@,$EXTRALIBS,;t t
47361 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
47362 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
47363 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
47364 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
47365 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
47366 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
47367 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
47368 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
47369 s,@UNICODE@,$UNICODE,;t t
47370 s,@BUILD@,$BUILD,;t t
47371 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
47372 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
47373 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
47374 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
47375 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
47376 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
47377 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
47378 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
47379 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
47380 s,@SET_MAKE@,$SET_MAKE,;t t
47381 s,@MAKE_SET@,$MAKE_SET,;t t
47382 s,@NM@,$NM,;t t
47383 s,@ac_ct_NM@,$ac_ct_NM,;t t
47384 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
47385 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
47386 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
47387 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
47388 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
47389 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
47390 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
47391 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
47392 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
47393 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
47394 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
47395 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
47396 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
47397 s,@LIBPREFIX@,$LIBPREFIX,;t t
47398 s,@LIBEXT@,$LIBEXT,;t t
47399 s,@DLLPREFIX@,$DLLPREFIX,;t t
47400 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
47401 s,@dlldir@,$dlldir,;t t
47402 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
47403 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
47404 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
47405 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
47406 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
47407 s,@PIC_FLAG@,$PIC_FLAG,;t t
47408 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
47409 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
47410 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
47411 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
47412 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
47413 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
47414 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
47415 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
47416 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
47417 s,@GCC_PCH@,$GCC_PCH,;t t
47418 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
47419 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
47420 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
47421 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
47422 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
47423 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
47424 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
47425 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
47426 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
47427 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
47428 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
47429 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
47430 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
47431 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
47432 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
47433 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
47434 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
47435 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
47436 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
47437 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
47438 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
47439 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
47440 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
47441 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
47442 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
47443 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
47444 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
47445 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
47446 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
47447 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
47448 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
47449 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
47450 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
47451 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
47452 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
47453 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
47454 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
47455 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
47456 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
47457 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
47458 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
47459 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
47460 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
47461 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
47462 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
47463 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
47464 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
47465 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
47466 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
47467 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
47468 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
47469 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
47470 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
47471 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
47472 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
47473 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
47474 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
47475 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
47476 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
47477 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
47478 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
47479 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
47480 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
47481 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
47482 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47483 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47484 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
47485 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
47486 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
47487 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
47488 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
47489 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
47490 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
47491 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
47492 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
47493 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
47494 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
47495 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
47496 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
47497 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
47498 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
47499 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
47500 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
47501 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
47502 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
47503 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
47504 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
47505 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
47506 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
47507 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
47508 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
47509 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
47510 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
47511 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
47512 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
47513 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
47514 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
47515 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
47516 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
47517 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
47518 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
47519 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
47520 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
47521 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
47522 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
47523 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
47524 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
47525 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
47526 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
47527 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
47528 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47529 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47530 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
47531 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
47532 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
47533 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
47534 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
47535 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
47536 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
47537 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
47538 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
47539 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
47540 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
47541 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
47542 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
47543 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
47544 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
47545 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
47546 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
47547 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
47548 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
47549 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
47550 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
47551 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
47552 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
47553 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
47554 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
47555 s,@SHARED@,$SHARED,;t t
47556 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
47557 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
47558 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
47559 s,@USE_GUI@,$USE_GUI,;t t
47560 s,@AFMINSTALL@,$AFMINSTALL,;t t
47561 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
47562 s,@TOOLKIT@,$TOOLKIT,;t t
47563 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
47564 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
47565 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
47566 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
47567 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
47568 s,@cross_compiling@,$cross_compiling,;t t
47569 s,@WIDGET_SET@,$WIDGET_SET,;t t
47570 s,@WX_RELEASE@,$WX_RELEASE,;t t
47571 s,@WX_VERSION@,$WX_VERSION,;t t
47572 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
47573 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
47574 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
47575 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
47576 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
47577 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
47578 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
47579 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
47580 s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
47581 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
47582 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
47583 s,@EXE_LINKER@,$EXE_LINKER,;t t
47584 s,@GUIDIST@,$GUIDIST,;t t
47585 s,@DISTDIR@,$DISTDIR,;t t
47586 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
47587 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
47588 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
47589 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
47590 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
47591 s,@RESFLAGS@,$RESFLAGS,;t t
47592 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
47593 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
47594 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
47595 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
47596 s,@MACRESCOMP@,$MACRESCOMP,;t t
47597 s,@MACSETFILE@,$MACSETFILE,;t t
47598 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
47599 s,@GCC@,$GCC,;t t
47600 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
47601 s,@LIBOBJS@,$LIBOBJS,;t t
47602 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
47603 CEOF
47604
47605 _ACEOF
47606
47607   cat >>$CONFIG_STATUS <<\_ACEOF
47608   # Split the substitutions into bite-sized pieces for seds with
47609   # small command number limits, like on Digital OSF/1 and HP-UX.
47610   ac_max_sed_lines=48
47611   ac_sed_frag=1 # Number of current file.
47612   ac_beg=1 # First line for current file.
47613   ac_end=$ac_max_sed_lines # Line after last line for current file.
47614   ac_more_lines=:
47615   ac_sed_cmds=
47616   while $ac_more_lines; do
47617     if test $ac_beg -gt 1; then
47618       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47619     else
47620       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47621     fi
47622     if test ! -s $tmp/subs.frag; then
47623       ac_more_lines=false
47624     else
47625       # The purpose of the label and of the branching condition is to
47626       # speed up the sed processing (if there are no `@' at all, there
47627       # is no need to browse any of the substitutions).
47628       # These are the two extra sed commands mentioned above.
47629       (echo ':t
47630   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
47631       if test -z "$ac_sed_cmds"; then
47632         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
47633       else
47634         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
47635       fi
47636       ac_sed_frag=`expr $ac_sed_frag + 1`
47637       ac_beg=$ac_end
47638       ac_end=`expr $ac_end + $ac_max_sed_lines`
47639     fi
47640   done
47641   if test -z "$ac_sed_cmds"; then
47642     ac_sed_cmds=cat
47643   fi
47644 fi # test -n "$CONFIG_FILES"
47645
47646 _ACEOF
47647 cat >>$CONFIG_STATUS <<\_ACEOF
47648 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
47649   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47650   case $ac_file in
47651   - | *:- | *:-:* ) # input from stdin
47652         cat >$tmp/stdin
47653         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47654         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47655   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47656         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47657   * )   ac_file_in=$ac_file.in ;;
47658   esac
47659
47660   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
47661   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47662 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47663          X"$ac_file" : 'X\(//\)[^/]' \| \
47664          X"$ac_file" : 'X\(//\)$' \| \
47665          X"$ac_file" : 'X\(/\)' \| \
47666          .     : '\(.\)' 2>/dev/null ||
47667 echo X"$ac_file" |
47668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47669           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47670           /^X\(\/\/\)$/{ s//\1/; q; }
47671           /^X\(\/\).*/{ s//\1/; q; }
47672           s/.*/./; q'`
47673   { if $as_mkdir_p; then
47674     mkdir -p "$ac_dir"
47675   else
47676     as_dir="$ac_dir"
47677     as_dirs=
47678     while test ! -d "$as_dir"; do
47679       as_dirs="$as_dir $as_dirs"
47680       as_dir=`(dirname "$as_dir") 2>/dev/null ||
47681 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47682          X"$as_dir" : 'X\(//\)[^/]' \| \
47683          X"$as_dir" : 'X\(//\)$' \| \
47684          X"$as_dir" : 'X\(/\)' \| \
47685          .     : '\(.\)' 2>/dev/null ||
47686 echo X"$as_dir" |
47687     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47688           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47689           /^X\(\/\/\)$/{ s//\1/; q; }
47690           /^X\(\/\).*/{ s//\1/; q; }
47691           s/.*/./; q'`
47692     done
47693     test ! -n "$as_dirs" || mkdir $as_dirs
47694   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47695 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47696    { (exit 1); exit 1; }; }; }
47697
47698   ac_builddir=.
47699
47700 if test "$ac_dir" != .; then
47701   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47702   # A "../" for each directory in $ac_dir_suffix.
47703   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47704 else
47705   ac_dir_suffix= ac_top_builddir=
47706 fi
47707
47708 case $srcdir in
47709   .)  # No --srcdir option.  We are building in place.
47710     ac_srcdir=.
47711     if test -z "$ac_top_builddir"; then
47712        ac_top_srcdir=.
47713     else
47714        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47715     fi ;;
47716   [\\/]* | ?:[\\/]* )  # Absolute path.
47717     ac_srcdir=$srcdir$ac_dir_suffix;
47718     ac_top_srcdir=$srcdir ;;
47719   *) # Relative path.
47720     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47721     ac_top_srcdir=$ac_top_builddir$srcdir ;;
47722 esac
47723
47724 # Do not use `cd foo && pwd` to compute absolute paths, because
47725 # the directories may not exist.
47726 case `pwd` in
47727 .) ac_abs_builddir="$ac_dir";;
47728 *)
47729   case "$ac_dir" in
47730   .) ac_abs_builddir=`pwd`;;
47731   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47732   *) ac_abs_builddir=`pwd`/"$ac_dir";;
47733   esac;;
47734 esac
47735 case $ac_abs_builddir in
47736 .) ac_abs_top_builddir=${ac_top_builddir}.;;
47737 *)
47738   case ${ac_top_builddir}. in
47739   .) ac_abs_top_builddir=$ac_abs_builddir;;
47740   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47741   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47742   esac;;
47743 esac
47744 case $ac_abs_builddir in
47745 .) ac_abs_srcdir=$ac_srcdir;;
47746 *)
47747   case $ac_srcdir in
47748   .) ac_abs_srcdir=$ac_abs_builddir;;
47749   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47750   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47751   esac;;
47752 esac
47753 case $ac_abs_builddir in
47754 .) ac_abs_top_srcdir=$ac_top_srcdir;;
47755 *)
47756   case $ac_top_srcdir in
47757   .) ac_abs_top_srcdir=$ac_abs_builddir;;
47758   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47759   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47760   esac;;
47761 esac
47762
47763
47764   case $INSTALL in
47765   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47766   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47767   esac
47768
47769   # Let's still pretend it is `configure' which instantiates (i.e., don't
47770   # use $as_me), people would be surprised to read:
47771   #    /* config.h.  Generated by config.status.  */
47772   if test x"$ac_file" = x-; then
47773     configure_input=
47774   else
47775     configure_input="$ac_file.  "
47776   fi
47777   configure_input=$configure_input"Generated from `echo $ac_file_in |
47778                                      sed 's,.*/,,'` by configure."
47779
47780   # First look for the input files in the build tree, otherwise in the
47781   # src tree.
47782   ac_file_inputs=`IFS=:
47783     for f in $ac_file_in; do
47784       case $f in
47785       -) echo $tmp/stdin ;;
47786       [\\/$]*)
47787          # Absolute (can't be DOS-style, as IFS=:)
47788          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47789 echo "$as_me: error: cannot find input file: $f" >&2;}
47790    { (exit 1); exit 1; }; }
47791          echo "$f";;
47792       *) # Relative
47793          if test -f "$f"; then
47794            # Build tree
47795            echo "$f"
47796          elif test -f "$srcdir/$f"; then
47797            # Source tree
47798            echo "$srcdir/$f"
47799          else
47800            # /dev/null tree
47801            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47802 echo "$as_me: error: cannot find input file: $f" >&2;}
47803    { (exit 1); exit 1; }; }
47804          fi;;
47805       esac
47806     done` || { (exit 1); exit 1; }
47807
47808   if test x"$ac_file" != x-; then
47809     { echo "$as_me:$LINENO: creating $ac_file" >&5
47810 echo "$as_me: creating $ac_file" >&6;}
47811     rm -f "$ac_file"
47812   fi
47813 _ACEOF
47814 cat >>$CONFIG_STATUS <<_ACEOF
47815   sed "$ac_vpsub
47816 $extrasub
47817 _ACEOF
47818 cat >>$CONFIG_STATUS <<\_ACEOF
47819 :t
47820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47821 s,@configure_input@,$configure_input,;t t
47822 s,@srcdir@,$ac_srcdir,;t t
47823 s,@abs_srcdir@,$ac_abs_srcdir,;t t
47824 s,@top_srcdir@,$ac_top_srcdir,;t t
47825 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47826 s,@builddir@,$ac_builddir,;t t
47827 s,@abs_builddir@,$ac_abs_builddir,;t t
47828 s,@top_builddir@,$ac_top_builddir,;t t
47829 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47830 s,@INSTALL@,$ac_INSTALL,;t t
47831 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47832   rm -f $tmp/stdin
47833   if test x"$ac_file" != x-; then
47834     mv $tmp/out $ac_file
47835   else
47836     cat $tmp/out
47837     rm -f $tmp/out
47838   fi
47839
47840   # Run the commands associated with the file.
47841   case $ac_file in
47842     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
47843     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
47844   esac
47845 done
47846 _ACEOF
47847 cat >>$CONFIG_STATUS <<\_ACEOF
47848
47849 #
47850 # CONFIG_HEADER section.
47851 #
47852
47853 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47854 # NAME is the cpp macro being defined and VALUE is the value it is being given.
47855 #
47856 # ac_d sets the value in "#define NAME VALUE" lines.
47857 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
47858 ac_dB='[         ].*$,\1#\2'
47859 ac_dC=' '
47860 ac_dD=',;t'
47861 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
47862 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
47863 ac_uB='$,\1#\2define\3'
47864 ac_uC=' '
47865 ac_uD=',;t'
47866
47867 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47868   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47869   case $ac_file in
47870   - | *:- | *:-:* ) # input from stdin
47871         cat >$tmp/stdin
47872         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47873         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47874   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47875         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47876   * )   ac_file_in=$ac_file.in ;;
47877   esac
47878
47879   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47880 echo "$as_me: creating $ac_file" >&6;}
47881
47882   # First look for the input files in the build tree, otherwise in the
47883   # src tree.
47884   ac_file_inputs=`IFS=:
47885     for f in $ac_file_in; do
47886       case $f in
47887       -) echo $tmp/stdin ;;
47888       [\\/$]*)
47889          # Absolute (can't be DOS-style, as IFS=:)
47890          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47891 echo "$as_me: error: cannot find input file: $f" >&2;}
47892    { (exit 1); exit 1; }; }
47893          # Do quote $f, to prevent DOS paths from being IFS'd.
47894          echo "$f";;
47895       *) # Relative
47896          if test -f "$f"; then
47897            # Build tree
47898            echo "$f"
47899          elif test -f "$srcdir/$f"; then
47900            # Source tree
47901            echo "$srcdir/$f"
47902          else
47903            # /dev/null tree
47904            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47905 echo "$as_me: error: cannot find input file: $f" >&2;}
47906    { (exit 1); exit 1; }; }
47907          fi;;
47908       esac
47909     done` || { (exit 1); exit 1; }
47910   # Remove the trailing spaces.
47911   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
47912
47913 _ACEOF
47914
47915 # Transform confdefs.h into two sed scripts, `conftest.defines' and
47916 # `conftest.undefs', that substitutes the proper values into
47917 # config.h.in to produce config.h.  The first handles `#define'
47918 # templates, and the second `#undef' templates.
47919 # And first: Protect against being on the right side of a sed subst in
47920 # config.status.  Protect against being in an unquoted here document
47921 # in config.status.
47922 rm -f conftest.defines conftest.undefs
47923 # Using a here document instead of a string reduces the quoting nightmare.
47924 # Putting comments in sed scripts is not portable.
47925 #
47926 # `end' is used to avoid that the second main sed command (meant for
47927 # 0-ary CPP macros) applies to n-ary macro definitions.
47928 # See the Autoconf documentation for `clear'.
47929 cat >confdef2sed.sed <<\_ACEOF
47930 s/[\\&,]/\\&/g
47931 s,[\\$`],\\&,g
47932 t clear
47933 : clear
47934 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
47935 t end
47936 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
47937 : end
47938 _ACEOF
47939 # If some macros were called several times there might be several times
47940 # the same #defines, which is useless.  Nevertheless, we may not want to
47941 # sort them, since we want the *last* AC-DEFINE to be honored.
47942 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47943 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47944 rm -f confdef2sed.sed
47945
47946 # This sed command replaces #undef with comments.  This is necessary, for
47947 # example, in the case of _POSIX_SOURCE, which is predefined and required
47948 # on some systems where configure will not decide to define it.
47949 cat >>conftest.undefs <<\_ACEOF
47950 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
47951 _ACEOF
47952
47953 # Break up conftest.defines because some shells have a limit on the size
47954 # of here documents, and old seds have small limits too (100 cmds).
47955 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
47956 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
47957 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47958 echo '  :' >>$CONFIG_STATUS
47959 rm -f conftest.tail
47960 while grep . conftest.defines >/dev/null
47961 do
47962   # Write a limited-size here document to $tmp/defines.sed.
47963   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47964   # Speed up: don't consider the non `#define' lines.
47965   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
47966   # Work around the forget-to-reset-the-flag bug.
47967   echo 't clr' >>$CONFIG_STATUS
47968   echo ': clr' >>$CONFIG_STATUS
47969   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47970   echo 'CEOF
47971   sed -f $tmp/defines.sed $tmp/in >$tmp/out
47972   rm -f $tmp/in
47973   mv $tmp/out $tmp/in
47974 ' >>$CONFIG_STATUS
47975   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47976   rm -f conftest.defines
47977   mv conftest.tail conftest.defines
47978 done
47979 rm -f conftest.defines
47980 echo '  fi # grep' >>$CONFIG_STATUS
47981 echo >>$CONFIG_STATUS
47982
47983 # Break up conftest.undefs because some shells have a limit on the size
47984 # of here documents, and old seds have small limits too (100 cmds).
47985 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
47986 rm -f conftest.tail
47987 while grep . conftest.undefs >/dev/null
47988 do
47989   # Write a limited-size here document to $tmp/undefs.sed.
47990   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47991   # Speed up: don't consider the non `#undef'
47992   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
47993   # Work around the forget-to-reset-the-flag bug.
47994   echo 't clr' >>$CONFIG_STATUS
47995   echo ': clr' >>$CONFIG_STATUS
47996   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47997   echo 'CEOF
47998   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47999   rm -f $tmp/in
48000   mv $tmp/out $tmp/in
48001 ' >>$CONFIG_STATUS
48002   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
48003   rm -f conftest.undefs
48004   mv conftest.tail conftest.undefs
48005 done
48006 rm -f conftest.undefs
48007
48008 cat >>$CONFIG_STATUS <<\_ACEOF
48009   # Let's still pretend it is `configure' which instantiates (i.e., don't
48010   # use $as_me), people would be surprised to read:
48011   #    /* config.h.  Generated by config.status.  */
48012   if test x"$ac_file" = x-; then
48013     echo "/* Generated by configure.  */" >$tmp/config.h
48014   else
48015     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
48016   fi
48017   cat $tmp/in >>$tmp/config.h
48018   rm -f $tmp/in
48019   if test x"$ac_file" != x-; then
48020     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
48021       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48022 echo "$as_me: $ac_file is unchanged" >&6;}
48023     else
48024       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
48025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48026          X"$ac_file" : 'X\(//\)[^/]' \| \
48027          X"$ac_file" : 'X\(//\)$' \| \
48028          X"$ac_file" : 'X\(/\)' \| \
48029          .     : '\(.\)' 2>/dev/null ||
48030 echo X"$ac_file" |
48031     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48032           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48033           /^X\(\/\/\)$/{ s//\1/; q; }
48034           /^X\(\/\).*/{ s//\1/; q; }
48035           s/.*/./; q'`
48036       { if $as_mkdir_p; then
48037     mkdir -p "$ac_dir"
48038   else
48039     as_dir="$ac_dir"
48040     as_dirs=
48041     while test ! -d "$as_dir"; do
48042       as_dirs="$as_dir $as_dirs"
48043       as_dir=`(dirname "$as_dir") 2>/dev/null ||
48044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48045          X"$as_dir" : 'X\(//\)[^/]' \| \
48046          X"$as_dir" : 'X\(//\)$' \| \
48047          X"$as_dir" : 'X\(/\)' \| \
48048          .     : '\(.\)' 2>/dev/null ||
48049 echo X"$as_dir" |
48050     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48051           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48052           /^X\(\/\/\)$/{ s//\1/; q; }
48053           /^X\(\/\).*/{ s//\1/; q; }
48054           s/.*/./; q'`
48055     done
48056     test ! -n "$as_dirs" || mkdir $as_dirs
48057   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48059    { (exit 1); exit 1; }; }; }
48060
48061       rm -f $ac_file
48062       mv $tmp/config.h $ac_file
48063     fi
48064   else
48065     cat $tmp/config.h
48066     rm -f $tmp/config.h
48067   fi
48068 done
48069 _ACEOF
48070 cat >>$CONFIG_STATUS <<\_ACEOF
48071
48072 #
48073 # CONFIG_COMMANDS section.
48074 #
48075 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
48076   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
48077   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
48078   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
48079 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48080          X"$ac_dest" : 'X\(//\)[^/]' \| \
48081          X"$ac_dest" : 'X\(//\)$' \| \
48082          X"$ac_dest" : 'X\(/\)' \| \
48083          .     : '\(.\)' 2>/dev/null ||
48084 echo X"$ac_dest" |
48085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48087           /^X\(\/\/\)$/{ s//\1/; q; }
48088           /^X\(\/\).*/{ s//\1/; q; }
48089           s/.*/./; q'`
48090   { if $as_mkdir_p; then
48091     mkdir -p "$ac_dir"
48092   else
48093     as_dir="$ac_dir"
48094     as_dirs=
48095     while test ! -d "$as_dir"; do
48096       as_dirs="$as_dir $as_dirs"
48097       as_dir=`(dirname "$as_dir") 2>/dev/null ||
48098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48099          X"$as_dir" : 'X\(//\)[^/]' \| \
48100          X"$as_dir" : 'X\(//\)$' \| \
48101          X"$as_dir" : 'X\(/\)' \| \
48102          .     : '\(.\)' 2>/dev/null ||
48103 echo X"$as_dir" |
48104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48106           /^X\(\/\/\)$/{ s//\1/; q; }
48107           /^X\(\/\).*/{ s//\1/; q; }
48108           s/.*/./; q'`
48109     done
48110     test ! -n "$as_dirs" || mkdir $as_dirs
48111   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48113    { (exit 1); exit 1; }; }; }
48114
48115   ac_builddir=.
48116
48117 if test "$ac_dir" != .; then
48118   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48119   # A "../" for each directory in $ac_dir_suffix.
48120   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48121 else
48122   ac_dir_suffix= ac_top_builddir=
48123 fi
48124
48125 case $srcdir in
48126   .)  # No --srcdir option.  We are building in place.
48127     ac_srcdir=.
48128     if test -z "$ac_top_builddir"; then
48129        ac_top_srcdir=.
48130     else
48131        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48132     fi ;;
48133   [\\/]* | ?:[\\/]* )  # Absolute path.
48134     ac_srcdir=$srcdir$ac_dir_suffix;
48135     ac_top_srcdir=$srcdir ;;
48136   *) # Relative path.
48137     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48138     ac_top_srcdir=$ac_top_builddir$srcdir ;;
48139 esac
48140
48141 # Do not use `cd foo && pwd` to compute absolute paths, because
48142 # the directories may not exist.
48143 case `pwd` in
48144 .) ac_abs_builddir="$ac_dir";;
48145 *)
48146   case "$ac_dir" in
48147   .) ac_abs_builddir=`pwd`;;
48148   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48149   *) ac_abs_builddir=`pwd`/"$ac_dir";;
48150   esac;;
48151 esac
48152 case $ac_abs_builddir in
48153 .) ac_abs_top_builddir=${ac_top_builddir}.;;
48154 *)
48155   case ${ac_top_builddir}. in
48156   .) ac_abs_top_builddir=$ac_abs_builddir;;
48157   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48158   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48159   esac;;
48160 esac
48161 case $ac_abs_builddir in
48162 .) ac_abs_srcdir=$ac_srcdir;;
48163 *)
48164   case $ac_srcdir in
48165   .) ac_abs_srcdir=$ac_abs_builddir;;
48166   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48167   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48168   esac;;
48169 esac
48170 case $ac_abs_builddir in
48171 .) ac_abs_top_srcdir=$ac_top_srcdir;;
48172 *)
48173   case $ac_top_srcdir in
48174   .) ac_abs_top_srcdir=$ac_abs_builddir;;
48175   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48176   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48177   esac;;
48178 esac
48179
48180
48181   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
48182 echo "$as_me: executing $ac_dest commands" >&6;}
48183   case $ac_dest in
48184     wx-config )  rm -f wx-config
48185                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
48186                     ;;
48187   esac
48188 done
48189 _ACEOF
48190
48191 cat >>$CONFIG_STATUS <<\_ACEOF
48192
48193 { (exit 0); exit 0; }
48194 _ACEOF
48195 chmod +x $CONFIG_STATUS
48196 ac_clean_files=$ac_clean_files_save
48197
48198
48199 # configure is writing to config.log, and then calls config.status.
48200 # config.status does its own redirection, appending to config.log.
48201 # Unfortunately, on DOS this fails, as config.log is still kept open
48202 # by configure, so config.status won't be able to write to it; its
48203 # output is simply discarded.  So we exec the FD to /dev/null,
48204 # effectively closing config.log, so it can be properly (re)opened and
48205 # appended to by config.status.  When coming back to configure, we
48206 # need to make the FD available again.
48207 if test "$no_create" != yes; then
48208   ac_cs_success=:
48209   ac_config_status_args=
48210   test "$silent" = yes &&
48211     ac_config_status_args="$ac_config_status_args --quiet"
48212   exec 5>/dev/null
48213   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48214   exec 5>>config.log
48215   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48216   # would make configure fail if this is the last instruction.
48217   $ac_cs_success || { (exit 1); exit 1; }
48218 fi
48219
48220 #
48221 # CONFIG_SUBDIRS section.
48222 #
48223 if test "$no_recursion" != yes; then
48224
48225   # Remove --cache-file and --srcdir arguments so they do not pile up.
48226   ac_sub_configure_args=
48227   ac_prev=
48228   for ac_arg in $ac_configure_args; do
48229     if test -n "$ac_prev"; then
48230       ac_prev=
48231       continue
48232     fi
48233     case $ac_arg in
48234     -cache-file | --cache-file | --cache-fil | --cache-fi \
48235     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48236       ac_prev=cache_file ;;
48237     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48238     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48239     | --c=*)
48240       ;;
48241     --config-cache | -C)
48242       ;;
48243     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48244       ac_prev=srcdir ;;
48245     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48246       ;;
48247     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48248       ac_prev=prefix ;;
48249     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48250       ;;
48251     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
48252     esac
48253   done
48254
48255   # Always prepend --prefix to ensure using the same prefix
48256   # in subdir configurations.
48257   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
48258
48259   ac_popdir=`pwd`
48260   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48261
48262     # Do not complain, so a configure script can configure whichever
48263     # parts of a large source tree are present.
48264     test -d $srcdir/$ac_dir || continue
48265
48266     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
48267 echo "$as_me: configuring in $ac_dir" >&6;}
48268     { if $as_mkdir_p; then
48269     mkdir -p "$ac_dir"
48270   else
48271     as_dir="$ac_dir"
48272     as_dirs=
48273     while test ! -d "$as_dir"; do
48274       as_dirs="$as_dir $as_dirs"
48275       as_dir=`(dirname "$as_dir") 2>/dev/null ||
48276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48277          X"$as_dir" : 'X\(//\)[^/]' \| \
48278          X"$as_dir" : 'X\(//\)$' \| \
48279          X"$as_dir" : 'X\(/\)' \| \
48280          .     : '\(.\)' 2>/dev/null ||
48281 echo X"$as_dir" |
48282     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48283           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48284           /^X\(\/\/\)$/{ s//\1/; q; }
48285           /^X\(\/\).*/{ s//\1/; q; }
48286           s/.*/./; q'`
48287     done
48288     test ! -n "$as_dirs" || mkdir $as_dirs
48289   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48290 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48291    { (exit 1); exit 1; }; }; }
48292
48293     ac_builddir=.
48294
48295 if test "$ac_dir" != .; then
48296   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48297   # A "../" for each directory in $ac_dir_suffix.
48298   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48299 else
48300   ac_dir_suffix= ac_top_builddir=
48301 fi
48302
48303 case $srcdir in
48304   .)  # No --srcdir option.  We are building in place.
48305     ac_srcdir=.
48306     if test -z "$ac_top_builddir"; then
48307        ac_top_srcdir=.
48308     else
48309        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48310     fi ;;
48311   [\\/]* | ?:[\\/]* )  # Absolute path.
48312     ac_srcdir=$srcdir$ac_dir_suffix;
48313     ac_top_srcdir=$srcdir ;;
48314   *) # Relative path.
48315     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48316     ac_top_srcdir=$ac_top_builddir$srcdir ;;
48317 esac
48318
48319 # Do not use `cd foo && pwd` to compute absolute paths, because
48320 # the directories may not exist.
48321 case `pwd` in
48322 .) ac_abs_builddir="$ac_dir";;
48323 *)
48324   case "$ac_dir" in
48325   .) ac_abs_builddir=`pwd`;;
48326   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48327   *) ac_abs_builddir=`pwd`/"$ac_dir";;
48328   esac;;
48329 esac
48330 case $ac_abs_builddir in
48331 .) ac_abs_top_builddir=${ac_top_builddir}.;;
48332 *)
48333   case ${ac_top_builddir}. in
48334   .) ac_abs_top_builddir=$ac_abs_builddir;;
48335   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48336   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48337   esac;;
48338 esac
48339 case $ac_abs_builddir in
48340 .) ac_abs_srcdir=$ac_srcdir;;
48341 *)
48342   case $ac_srcdir in
48343   .) ac_abs_srcdir=$ac_abs_builddir;;
48344   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48345   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48346   esac;;
48347 esac
48348 case $ac_abs_builddir in
48349 .) ac_abs_top_srcdir=$ac_top_srcdir;;
48350 *)
48351   case $ac_top_srcdir in
48352   .) ac_abs_top_srcdir=$ac_abs_builddir;;
48353   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48354   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48355   esac;;
48356 esac
48357
48358
48359     cd $ac_dir
48360
48361     # Check for guested configure; otherwise get Cygnus style configure.
48362     if test -f $ac_srcdir/configure.gnu; then
48363       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
48364     elif test -f $ac_srcdir/configure; then
48365       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
48366     elif test -f $ac_srcdir/configure.in; then
48367       ac_sub_configure=$ac_configure
48368     else
48369       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48370 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48371       ac_sub_configure=
48372     fi
48373
48374     # The recursion is here.
48375     if test -n "$ac_sub_configure"; then
48376       # Make the cache file name correct relative to the subdirectory.
48377       case $cache_file in
48378       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48379       *) # Relative path.
48380         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
48381       esac
48382
48383       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48384 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48385       # The eval makes quoting arguments work.
48386       eval $ac_sub_configure $ac_sub_configure_args \
48387            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
48388         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
48389 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48390    { (exit 1); exit 1; }; }
48391     fi
48392
48393     cd "$ac_popdir"
48394   done
48395 fi
48396
48397
48398 echo
48399 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
48400 echo ""
48401 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_USER:-base only}"
48402 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
48403
48404 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
48405 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
48406 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
48407
48408 echo "  What level of wxWidgets compatibility should be enabled?"
48409 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
48410 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
48411
48412 echo "  Which libraries should wxWidgets use?"
48413 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
48414 echo "                                       png                ${wxUSE_LIBPNG-none}"
48415 echo "                                       regex              ${wxUSE_REGEX}"
48416 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
48417 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
48418 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
48419 fi
48420 echo "                                       zlib               ${wxUSE_ZLIB}"
48421 echo "                                       odbc               ${wxUSE_ODBC}"
48422 echo "                                       expat              ${wxUSE_EXPAT}"
48423 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
48424 echo "                                       sdl                ${wxUSE_LIBSDL}"
48425 echo "                                       gnomeprint         ${wxUSE_LIBGNOMEPRINT-none}"
48426
48427 echo ""
48428