while gcc 4 works under xcode, 3.3. builds don't, therefore this workaround for sourc...
[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.1.
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.1'
274 PACKAGE_STRING='wxWidgets 2.7.1'
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 WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON 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 ICC_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_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_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_0 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_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 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_PCH_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 USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE 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 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790 ac_env_PKG_CONFIG_value=$PKG_CONFIG
791 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
793 ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794 ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795 ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796 ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797 ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798 ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799 ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800 ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
801 ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802 ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803 ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804 ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805 ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806 ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807 ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808 ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809 ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810 ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811 ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812 ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813 ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814 ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815 ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816 ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817 ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818 ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819 ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820 ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821 ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822 ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823 ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824 ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825 ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826 ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829 ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830 ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831 ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832 ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833 ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834 ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835 ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836 ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837 ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838 ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839 ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840 ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841 ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842 ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843 ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844 ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845 ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846 ac_env_HILDON_LIBS_value=$HILDON_LIBS
847 ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848 ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
849 ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
850 ac_env_GST_CFLAGS_value=$GST_CFLAGS
851 ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
852 ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
853 ac_env_GST_LIBS_set=${GST_LIBS+set}
854 ac_env_GST_LIBS_value=$GST_LIBS
855 ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
856 ac_cv_env_GST_LIBS_value=$GST_LIBS
857
858 #
859 # Report the --help message.
860 #
861 if test "$ac_init_help" = "long"; then
862   # Omit some internal or obsolete options to make the list less imposing.
863   # This message is too long to be a string in the A/UX 3.1 sh.
864   cat <<_ACEOF
865 \`configure' configures wxWidgets 2.7.1 to adapt to many kinds of systems.
866
867 Usage: $0 [OPTION]... [VAR=VALUE]...
868
869 To assign environment variables (e.g., CC, CFLAGS...), specify them as
870 VAR=VALUE.  See below for descriptions of some of the useful variables.
871
872 Defaults for the options are specified in brackets.
873
874 Configuration:
875   -h, --help              display this help and exit
876       --help=short        display options specific to this package
877       --help=recursive    display the short help of all the included packages
878   -V, --version           display version information and exit
879   -q, --quiet, --silent   do not print \`checking...' messages
880       --cache-file=FILE   cache test results in FILE [disabled]
881   -C, --config-cache      alias for \`--cache-file=config.cache'
882   -n, --no-create         do not create output files
883       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
884
885 _ACEOF
886
887   cat <<_ACEOF
888 Installation directories:
889   --prefix=PREFIX         install architecture-independent files in PREFIX
890                           [$ac_default_prefix]
891   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
892                           [PREFIX]
893
894 By default, \`make install' will install all the files in
895 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
896 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
897 for instance \`--prefix=\$HOME'.
898
899 For better control, use the options below.
900
901 Fine tuning of the installation directories:
902   --bindir=DIR           user executables [EPREFIX/bin]
903   --sbindir=DIR          system admin executables [EPREFIX/sbin]
904   --libexecdir=DIR       program executables [EPREFIX/libexec]
905   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
906   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
907   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
908   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
909   --libdir=DIR           object code libraries [EPREFIX/lib]
910   --includedir=DIR       C header files [PREFIX/include]
911   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
912   --infodir=DIR          info documentation [PREFIX/info]
913   --mandir=DIR           man documentation [PREFIX/man]
914 _ACEOF
915
916   cat <<\_ACEOF
917
918 X features:
919   --x-includes=DIR    X include files are in DIR
920   --x-libraries=DIR   X library files are in DIR
921
922 System types:
923   --build=BUILD     configure for building on BUILD [guessed]
924   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
925   --target=TARGET   configure for building compilers for TARGET [HOST]
926 _ACEOF
927 fi
928
929 if test -n "$ac_init_help"; then
930   case $ac_init_help in
931      short | recursive ) echo "Configuration of wxWidgets 2.7.1:";;
932    esac
933   cat <<\_ACEOF
934
935 Optional Features:
936   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
937   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
938   --enable-gui            use GUI classes
939   --enable-monolithic     build wxWidgets as single library
940   --enable-plugins        build parts of wxWidgets as loadable components
941   --enable-universal      use wxWidgets GUI controls instead of native ones
942   --enable-nanox          use NanoX
943   --disable-gtk2          use GTK+ 1.2 instead of 2.0
944   --enable-gpe            use GNOME PDA Environment features if possible
945   --enable-shared         create shared library code
946   --enable-optimise       create optimised code
947   --enable-debug          same as debug_flag and debug_info
948   --enable-stl            use STL for containers
949   --enable-omf            use OMF object format
950   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
951   --enable-debug_info     create code with debugging information
952   --enable-debug_gdb      create code with extra GDB debugging information
953   --enable-debug_cntxt    use wxDebugContext
954   --enable-mem_tracing    create code with memory tracing
955   --enable-profile        create code with profiling information
956   --enable-no_rtti        create code without RTTI information
957   --enable-no_exceptions  create code without C++ exceptions handling
958   --enable-permissive     compile code disregarding strict ANSI
959   --enable-no_deps        create code without dependency information
960   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
961   --enable-compat24       enable wxWidgets 2.4 compatibility
962   --disable-compat26      disable wxWidgets 2.6 compatibility
963   --disable-rpath         disable use of rpath for uninstalled builds
964   --enable-intl           use internationalization system
965   --enable-config         use wxConfig (and derived) classes
966   --enable-protocols      use wxProtocol and derived classes
967   --enable-ftp            use wxFTP (requires wxProtocol
968   --enable-http           use wxHTTP (requires wxProtocol
969   --enable-fileproto      use wxFileProto class (requires wxProtocol
970   --enable-sockets        use socket/network classes
971   --enable-ole            use OLE classes (Win32 only)
972   --enable-dataobj        use data object classes
973   --enable-ipc            use interprocess communication (wxSocket etc.)
974   --enable-apple_ieee     use the Apple IEEE codec
975   --enable-arcstream      use wxArchive streams
976   --enable-backtrace      use wxStackWalker class for getting backtraces
977   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
978   --enable-cmdline        use wxCmdLineParser class
979   --enable-datetime       use wxDateTime class
980   --enable-debugreport    use wxDebugReport class
981   --enable-dialupman      use dialup network classes
982   --enable-dynlib         use wxLibrary class for DLL loading
983   --enable-dynamicloader  use (new) wxDynamicLibrary class
984   --enable-exceptions     build exception-safe library
985   --enable-ffile          use wxFFile class
986   --enable-file           use wxFile class
987   --enable-filesystem     use virtual file systems classes
988   --enable-fontmap        use font encodings conversion classes
989   --enable-fs_inet        use virtual HTTP/FTP filesystems
990   --enable-fs_zip         use virtual ZIP filesystems
991   --enable-geometry       use geometry class
992   --enable-log            use logging system
993   --enable-longlong       use wxLongLong class
994   --enable-mimetype       use wxMimeTypesManager
995   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
996   --enable-snglinst       use wxSingleInstanceChecker class
997   --enable-std_iostreams  use standard C++ stream classes
998   --enable-std_string     use standard C++ string classes
999   --enable-stdpaths       use wxStandardPaths class
1000   --enable-stopwatch      use wxStopWatch class
1001   --enable-streams        use wxStream etc classes
1002   --enable-sysoptions     use wxSystemOptions
1003   --enable-textbuf        use wxTextBuffer class
1004   --enable-textfile       use wxTextFile class
1005   --enable-timer          use wxTimer class
1006   --enable-unicode        compile wxString with Unicode support
1007   --enable-sound          use wxSound class
1008   --enable-mediactrl      use wxMediaCtrl class
1009   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1010   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1011   --enable-zipstream      use wxZip streams
1012   --enable-url            use wxURL class
1013   --enable-variant        use wxVariant class
1014   --enable-protocol       use wxProtocol class
1015   --enable-protocol-http  HTTP support in wxProtocol
1016   --enable-protocol-ftp   FTP support in wxProtocol
1017   --enable-protocol-file  FILE support in wxProtocol
1018   --enable-threads        use threads
1019   --enable-docview        use document view architecture
1020   --enable-help           use help subsystem
1021   --enable-mshtmlhelp     use MS HTML Help (win32)
1022   --enable-html           use wxHTML sub-library
1023   --enable-htmlhelp       use wxHTML-based help
1024   --enable-xrc            use XRC resources sub-library
1025   --enable-aui            use AUI docking library
1026   --enable-constraints    use layout-constraints system
1027   --enable-printarch      use printing architecture
1028   --enable-mdi            use multiple document interface architecture
1029   --enable-mdidoc         use docview architecture with MDI
1030   --enable-loggui         use standard GUI logger
1031   --enable-logwin         use wxLogWindow
1032   --enable-logdialog      use wxLogDialog
1033   --enable-webkit         use wxWebKitCtrl (Mac)
1034   --enable-richtext       use wxRichTextCtrl
1035   --enable-graphics_ctx   use graphics context 2D drawing API
1036   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1037   --enable-prologio       not available; see contrib
1038   --enable-resources      not available; see contrib
1039   --enable-clipboard      use wxClipboard class
1040   --enable-dnd            use Drag'n'Drop classes
1041   --enable-metafile       use win32 metafiles
1042   --enable-controls       use all usual controls
1043   --enable-accel          use accelerators
1044   --enable-animatectrl    use wxAnimationCtrl class
1045   --enable-button         use wxButton class
1046   --enable-bmpbutton      use wxBitmapButton class
1047   --enable-bmpcombobox    use wxBitmapComboBox class
1048   --enable-calendar       use wxCalendarCtrl class
1049   --enable-caret          use wxCaret class
1050   --enable-checkbox       use wxCheckBox class
1051   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1052   --enable-choice         use wxChoice class
1053   --enable-choicebook     use wxChoicebook class
1054   --enable-colourpicker   use wxColourPickerCtrl class
1055   --enable-combobox       use wxComboBox class
1056   --enable-comboctrl      use wxComboCtrl class
1057   --enable-datepick       use wxDatePickerCtrl class
1058   --enable-dirpicker      use wxDirPickerCtrl class
1059   --enable-display        use wxDisplay class
1060   --enable-filepicker     use wxFilePickerCtrl class
1061   --enable-fontpicker     use wxFontPickerCtrl class
1062   --enable-gauge          use wxGauge class
1063   --enable-grid           use wxGrid class
1064   --enable-dataviewctrl,  use wxDataViewCtrl class
1065   --enable-hyperlink      use wxHyperlinkCtrl class
1066   --enable-imaglist       use wxImageList class
1067   --enable-listbook       use wxListbook class
1068   --enable-listbox        use wxListBox class
1069   --enable-listctrl       use wxListCtrl class
1070   --enable-notebook       use wxNotebook class
1071   --enable-odcombobox     use wxOwnerDrawnComboBox class
1072   --enable-radiobox       use wxRadioBox class
1073   --enable-radiobtn       use wxRadioButton class
1074   --enable-sash           use wxSashWindow class
1075   --enable-scrollbar      use wxScrollBar class and scrollable windows
1076   --enable-slider         use wxSlider class
1077   --enable-spinbtn        use wxSpinButton class
1078   --enable-spinctrl       use wxSpinCtrl class
1079   --enable-splitter       use wxSplitterWindow class
1080   --enable-statbmp        use wxStaticBitmap class
1081   --enable-statbox        use wxStaticBox class
1082   --enable-statline       use wxStaticLine class
1083   --enable-stattext       use wxStaticText class
1084   --enable-statusbar      use wxStatusBar class
1085   --enable-tabdialog      use wxTabControl class
1086   --enable-textctrl       use wxTextCtrl class
1087   --enable-togglebtn      use wxToggleButton class
1088   --enable-toolbar        use wxToolBar class
1089   --enable-tbarnative     use native wxToolBar class
1090   --enable-treebook       use wxTreebook class
1091   --enable-toolbook       use wxToolbook class
1092   --enable-treectrl       use wxTreeCtrl class
1093   --enable-tipwindow      use wxTipWindow class
1094   --enable-popupwin       use wxPopUpWindow class
1095   --enable-commondlg      use all common dialogs
1096   --enable-aboutdlg       use wxAboutBox
1097   --enable-choicedlg      use wxChoiceDialog
1098   --enable-coldlg         use wxColourDialog
1099   --enable-filedlg        use wxFileDialog
1100   --enable-finddlg        use wxFindReplaceDialog
1101   --enable-fontdlg        use wxFontDialog
1102   --enable-dirdlg         use wxDirDialog
1103   --enable-msgdlg         use wxMessageDialog
1104   --enable-numberdlg      use wxNumberEntryDialog
1105   --enable-splash         use wxSplashScreen
1106   --enable-textdlg        use wxTextDialog
1107   --enable-tipdlg         use startup tips
1108   --enable-progressdlg    use wxProgressDialog
1109   --enable-wizarddlg      use wxWizard
1110   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1111   --enable-miniframe      use wxMiniFrame class
1112   --enable-tooltips       use wxToolTip class
1113   --enable-splines        use spline drawing code
1114   --enable-mousewheel     use mousewheel
1115   --enable-validators     use wxValidator and derived classes
1116   --enable-busyinfo       use wxBusyInfo
1117   --enable-joystick       use wxJoystick
1118   --enable-metafiles      use wxMetaFile (Win32 only)
1119   --enable-dragimage      use wxDragImage
1120   --enable-accessibility  enable accessibility support
1121   --enable-dccache        cache temporary wxDC objects (Win32 only)
1122   --enable-palette        use wxPalette class
1123   --enable-image          use wxImage class
1124   --enable-gif            use gif images (GIF file format)
1125   --enable-pcx            use pcx images (PCX file format)
1126   --enable-iff            use iff images (IFF file format)
1127   --enable-pnm            use pnm images (PNM file format)
1128   --enable-xpm            use xpm images (XPM file format)
1129   --enable-icocur         use Windows ICO and CUR formats
1130   --enable-official_build official build of wxWidgets (win32 DLL only)
1131   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1132   --disable-largefile     omit support for large files
1133   --disable-gtktest       do not try to compile and run a test GTK+ program
1134   --disable-gtktest       Do not try to compile and run a test GTK program
1135   --disable-sdltest       Do not try to compile and run a test SDL program
1136   --enable-omf            use OMF object format (OS/2)
1137   --disable-dependency-tracking
1138                           don't use dependency tracking even if the compiler
1139                           can
1140   --disable-precomp-headers
1141                           don't use precompiled headers even if compiler can
1142
1143 Optional Packages:
1144   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1145   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1146   --without-subdirs       don't generate makefiles for samples/demos/...
1147   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1148   --with-motif            use Motif/Lesstif
1149   --with-mac              use Mac OS X
1150   --with-cocoa            use Cocoa
1151   --with-wine             use Wine
1152   --with-msw              use MS-Windows
1153   --with-pm               use OS/2 Presentation Manager
1154   --with-mgl              use SciTech MGL
1155   --with-directfb         use DirectFB
1156   --with-microwin         use MicroWindows
1157   --with-x11              use X11
1158   --with-libpng           use libpng (PNG image format)
1159   --with-libjpeg          use libjpeg (JPEG file format)
1160   --with-libtiff          use libtiff (TIFF file format)
1161   --with-libxpm           use libxpm (XPM file format)
1162   --with-libmspack        use libmspack (CHM help files loading)
1163   --with-sdl              use SDL for audio on Unix
1164   --with-gnomeprint       use GNOME print for printing under GNOME
1165   --with-gnomevfs         use GNOME VFS for associating MIME types
1166   --with-hildon           use Hildon framework for Nokia 770
1167   --with-opengl           use OpenGL (or Mesa)
1168   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1169   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1170   --with-regex            enable support for wxRegEx class
1171   --with-zlib             use zlib for LZW compression
1172   --with-odbc             use the IODBC and wxODBC classes
1173   --with-expat            enable XML support using expat parser
1174   --with-flavour=NAME     specify a name to identify this build
1175   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1176   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1177   --with-x                use the X Window System
1178   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1179   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1180   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1181   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1182   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1183
1184 Some influential environment variables:
1185   CC          C compiler command
1186   CFLAGS      C compiler flags
1187   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1188               nonstandard directory <lib dir>
1189   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1190               headers in a nonstandard directory <include dir>
1191   CPP         C preprocessor
1192   CXX         C++ compiler command
1193   CXXFLAGS    C++ compiler flags
1194   CXXCPP      C++ preprocessor
1195   PKG_CONFIG  path to pkg-config utility
1196   DIRECTFB_CFLAGS
1197               C compiler flags for DIRECTFB, overriding pkg-config
1198   DIRECTFB_LIBS
1199               linker flags for DIRECTFB, overriding pkg-config
1200   PANGOX_CFLAGS
1201               C compiler flags for PANGOX, overriding pkg-config
1202   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1203   PANGOFT2_CFLAGS
1204               C compiler flags for PANGOFT2, overriding pkg-config
1205   PANGOFT2_LIBS
1206               linker flags for PANGOFT2, overriding pkg-config
1207   PANGOXFT_CFLAGS
1208               C compiler flags for PANGOXFT, overriding pkg-config
1209   PANGOXFT_LIBS
1210               linker flags for PANGOXFT, overriding pkg-config
1211   LIBGNOMEPRINTUI_CFLAGS
1212               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1213   LIBGNOMEPRINTUI_LIBS
1214               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1215   GNOMEVFS_CFLAGS
1216               C compiler flags for GNOMEVFS, overriding pkg-config
1217   GNOMEVFS_LIBS
1218               linker flags for GNOMEVFS, overriding pkg-config
1219   HILDON_CFLAGS
1220               C compiler flags for HILDON, overriding pkg-config
1221   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1222   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1223   GST_LIBS    linker flags for GST, overriding pkg-config
1224
1225 Use these variables to override the choices made by `configure' or to help
1226 it to find libraries and programs with nonstandard names/locations.
1227
1228 Report bugs to <wx-dev@lists.wxwidgets.org>.
1229 _ACEOF
1230 fi
1231
1232 if test "$ac_init_help" = "recursive"; then
1233   # If there are subdirs, report their specific --help.
1234   ac_popdir=`pwd`
1235   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1236     test -d $ac_dir || continue
1237     ac_builddir=.
1238
1239 if test "$ac_dir" != .; then
1240   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1241   # A "../" for each directory in $ac_dir_suffix.
1242   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1243 else
1244   ac_dir_suffix= ac_top_builddir=
1245 fi
1246
1247 case $srcdir in
1248   .)  # No --srcdir option.  We are building in place.
1249     ac_srcdir=.
1250     if test -z "$ac_top_builddir"; then
1251        ac_top_srcdir=.
1252     else
1253        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1254     fi ;;
1255   [\\/]* | ?:[\\/]* )  # Absolute path.
1256     ac_srcdir=$srcdir$ac_dir_suffix;
1257     ac_top_srcdir=$srcdir ;;
1258   *) # Relative path.
1259     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1260     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1261 esac
1262
1263 # Do not use `cd foo && pwd` to compute absolute paths, because
1264 # the directories may not exist.
1265 case `pwd` in
1266 .) ac_abs_builddir="$ac_dir";;
1267 *)
1268   case "$ac_dir" in
1269   .) ac_abs_builddir=`pwd`;;
1270   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1271   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1272   esac;;
1273 esac
1274 case $ac_abs_builddir in
1275 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1276 *)
1277   case ${ac_top_builddir}. in
1278   .) ac_abs_top_builddir=$ac_abs_builddir;;
1279   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1280   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1281   esac;;
1282 esac
1283 case $ac_abs_builddir in
1284 .) ac_abs_srcdir=$ac_srcdir;;
1285 *)
1286   case $ac_srcdir in
1287   .) ac_abs_srcdir=$ac_abs_builddir;;
1288   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1289   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1290   esac;;
1291 esac
1292 case $ac_abs_builddir in
1293 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1294 *)
1295   case $ac_top_srcdir in
1296   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1297   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1298   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1299   esac;;
1300 esac
1301
1302     cd $ac_dir
1303     # Check for guested configure; otherwise get Cygnus style configure.
1304     if test -f $ac_srcdir/configure.gnu; then
1305       echo
1306       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1307     elif test -f $ac_srcdir/configure; then
1308       echo
1309       $SHELL $ac_srcdir/configure  --help=recursive
1310     elif test -f $ac_srcdir/configure.ac ||
1311            test -f $ac_srcdir/configure.in; then
1312       echo
1313       $ac_configure --help
1314     else
1315       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1316     fi
1317     cd "$ac_popdir"
1318   done
1319 fi
1320
1321 test -n "$ac_init_help" && exit 0
1322 if $ac_init_version; then
1323   cat <<\_ACEOF
1324 wxWidgets configure 2.7.1
1325 generated by GNU Autoconf 2.59
1326
1327 Copyright (C) 2003 Free Software Foundation, Inc.
1328 This configure script is free software; the Free Software Foundation
1329 gives unlimited permission to copy, distribute and modify it.
1330 _ACEOF
1331   exit 0
1332 fi
1333 exec 5>config.log
1334 cat >&5 <<_ACEOF
1335 This file contains any messages produced by compilers while
1336 running configure, to aid debugging if configure makes a mistake.
1337
1338 It was created by wxWidgets $as_me 2.7.1, which was
1339 generated by GNU Autoconf 2.59.  Invocation command line was
1340
1341   $ $0 $@
1342
1343 _ACEOF
1344 {
1345 cat <<_ASUNAME
1346 ## --------- ##
1347 ## Platform. ##
1348 ## --------- ##
1349
1350 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1351 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1352 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1353 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1354 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1355
1356 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1357 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1358
1359 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1360 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1361 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1362 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1363 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1364 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1365 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1366
1367 _ASUNAME
1368
1369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370 for as_dir in $PATH
1371 do
1372   IFS=$as_save_IFS
1373   test -z "$as_dir" && as_dir=.
1374   echo "PATH: $as_dir"
1375 done
1376
1377 } >&5
1378
1379 cat >&5 <<_ACEOF
1380
1381
1382 ## ----------- ##
1383 ## Core tests. ##
1384 ## ----------- ##
1385
1386 _ACEOF
1387
1388
1389 # Keep a trace of the command line.
1390 # Strip out --no-create and --no-recursion so they do not pile up.
1391 # Strip out --silent because we don't want to record it for future runs.
1392 # Also quote any args containing shell meta-characters.
1393 # Make two passes to allow for proper duplicate-argument suppression.
1394 ac_configure_args=
1395 ac_configure_args0=
1396 ac_configure_args1=
1397 ac_sep=
1398 ac_must_keep_next=false
1399 for ac_pass in 1 2
1400 do
1401   for ac_arg
1402   do
1403     case $ac_arg in
1404     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1405     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1406     | -silent | --silent | --silen | --sile | --sil)
1407       continue ;;
1408     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1409       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1410     esac
1411     case $ac_pass in
1412     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1413     2)
1414       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1415       if test $ac_must_keep_next = true; then
1416         ac_must_keep_next=false # Got value, back to normal.
1417       else
1418         case $ac_arg in
1419           *=* | --config-cache | -C | -disable-* | --disable-* \
1420           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1421           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1422           | -with-* | --with-* | -without-* | --without-* | --x)
1423             case "$ac_configure_args0 " in
1424               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1425             esac
1426             ;;
1427           -* ) ac_must_keep_next=true ;;
1428         esac
1429       fi
1430       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1431       # Get rid of the leading space.
1432       ac_sep=" "
1433       ;;
1434     esac
1435   done
1436 done
1437 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1438 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1439
1440 # When interrupted or exit'd, cleanup temporary files, and complete
1441 # config.log.  We remove comments because anyway the quotes in there
1442 # would cause problems or look ugly.
1443 # WARNING: Be sure not to use single quotes in there, as some shells,
1444 # such as our DU 5.0 friend, will then `close' the trap.
1445 trap 'exit_status=$?
1446   # Save into config.log some information that might help in debugging.
1447   {
1448     echo
1449
1450     cat <<\_ASBOX
1451 ## ---------------- ##
1452 ## Cache variables. ##
1453 ## ---------------- ##
1454 _ASBOX
1455     echo
1456     # The following way of writing the cache mishandles newlines in values,
1457 {
1458   (set) 2>&1 |
1459     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1460     *ac_space=\ *)
1461       sed -n \
1462         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1463           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1464       ;;
1465     *)
1466       sed -n \
1467         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1468       ;;
1469     esac;
1470 }
1471     echo
1472
1473     cat <<\_ASBOX
1474 ## ----------------- ##
1475 ## Output variables. ##
1476 ## ----------------- ##
1477 _ASBOX
1478     echo
1479     for ac_var in $ac_subst_vars
1480     do
1481       eval ac_val=$`echo $ac_var`
1482       echo "$ac_var='"'"'$ac_val'"'"'"
1483     done | sort
1484     echo
1485
1486     if test -n "$ac_subst_files"; then
1487       cat <<\_ASBOX
1488 ## ------------- ##
1489 ## Output files. ##
1490 ## ------------- ##
1491 _ASBOX
1492       echo
1493       for ac_var in $ac_subst_files
1494       do
1495         eval ac_val=$`echo $ac_var`
1496         echo "$ac_var='"'"'$ac_val'"'"'"
1497       done | sort
1498       echo
1499     fi
1500
1501     if test -s confdefs.h; then
1502       cat <<\_ASBOX
1503 ## ----------- ##
1504 ## confdefs.h. ##
1505 ## ----------- ##
1506 _ASBOX
1507       echo
1508       sed "/^$/d" confdefs.h | sort
1509       echo
1510     fi
1511     test "$ac_signal" != 0 &&
1512       echo "$as_me: caught signal $ac_signal"
1513     echo "$as_me: exit $exit_status"
1514   } >&5
1515   rm -f core *.core &&
1516   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1517     exit $exit_status
1518      ' 0
1519 for ac_signal in 1 2 13 15; do
1520   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1521 done
1522 ac_signal=0
1523
1524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1525 rm -rf conftest* confdefs.h
1526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1527 echo >confdefs.h
1528
1529 # Predefined preprocessor variables.
1530
1531 cat >>confdefs.h <<_ACEOF
1532 #define PACKAGE_NAME "$PACKAGE_NAME"
1533 _ACEOF
1534
1535
1536 cat >>confdefs.h <<_ACEOF
1537 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1538 _ACEOF
1539
1540
1541 cat >>confdefs.h <<_ACEOF
1542 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1543 _ACEOF
1544
1545
1546 cat >>confdefs.h <<_ACEOF
1547 #define PACKAGE_STRING "$PACKAGE_STRING"
1548 _ACEOF
1549
1550
1551 cat >>confdefs.h <<_ACEOF
1552 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1553 _ACEOF
1554
1555
1556 # Let the site file select an alternate cache file if it wants to.
1557 # Prefer explicitly selected file to automatically selected ones.
1558 if test -z "$CONFIG_SITE"; then
1559   if test "x$prefix" != xNONE; then
1560     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1561   else
1562     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1563   fi
1564 fi
1565 for ac_site_file in $CONFIG_SITE; do
1566   if test -r "$ac_site_file"; then
1567     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1568 echo "$as_me: loading site script $ac_site_file" >&6;}
1569     sed 's/^/| /' "$ac_site_file" >&5
1570     . "$ac_site_file"
1571   fi
1572 done
1573
1574 if test -r "$cache_file"; then
1575   # Some versions of bash will fail to source /dev/null (special
1576   # files actually), so we avoid doing that.
1577   if test -f "$cache_file"; then
1578     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1579 echo "$as_me: loading cache $cache_file" >&6;}
1580     case $cache_file in
1581       [\\/]* | ?:[\\/]* ) . $cache_file;;
1582       *)                      . ./$cache_file;;
1583     esac
1584   fi
1585 else
1586   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1587 echo "$as_me: creating cache $cache_file" >&6;}
1588   >$cache_file
1589 fi
1590
1591 # Check that the precious variables saved in the cache have kept the same
1592 # value.
1593 ac_cache_corrupted=false
1594 for ac_var in `(set) 2>&1 |
1595                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1596   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1597   eval ac_new_set=\$ac_env_${ac_var}_set
1598   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1599   eval ac_new_val="\$ac_env_${ac_var}_value"
1600   case $ac_old_set,$ac_new_set in
1601     set,)
1602       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1603 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1604       ac_cache_corrupted=: ;;
1605     ,set)
1606       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1607 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1608       ac_cache_corrupted=: ;;
1609     ,);;
1610     *)
1611       if test "x$ac_old_val" != "x$ac_new_val"; then
1612         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1613 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1614         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1615 echo "$as_me:   former value:  $ac_old_val" >&2;}
1616         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1617 echo "$as_me:   current value: $ac_new_val" >&2;}
1618         ac_cache_corrupted=:
1619       fi;;
1620   esac
1621   # Pass precious variables to config.status.
1622   if test "$ac_new_set" = set; then
1623     case $ac_new_val in
1624     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1625       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1626     *) ac_arg=$ac_var=$ac_new_val ;;
1627     esac
1628     case " $ac_configure_args " in
1629       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1630       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1631     esac
1632   fi
1633 done
1634 if $ac_cache_corrupted; then
1635   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1636 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1637   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1638 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1639    { (exit 1); exit 1; }; }
1640 fi
1641
1642 ac_ext=c
1643 ac_cpp='$CPP $CPPFLAGS'
1644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677 ac_aux_dir=
1678 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1679   if test -f $ac_dir/install-sh; then
1680     ac_aux_dir=$ac_dir
1681     ac_install_sh="$ac_aux_dir/install-sh -c"
1682     break
1683   elif test -f $ac_dir/install.sh; then
1684     ac_aux_dir=$ac_dir
1685     ac_install_sh="$ac_aux_dir/install.sh -c"
1686     break
1687   elif test -f $ac_dir/shtool; then
1688     ac_aux_dir=$ac_dir
1689     ac_install_sh="$ac_aux_dir/shtool install -c"
1690     break
1691   fi
1692 done
1693 if test -z "$ac_aux_dir"; then
1694   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1695 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1696    { (exit 1); exit 1; }; }
1697 fi
1698 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1699 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1700 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1701
1702 # Make sure we can run config.sub.
1703 $ac_config_sub sun4 >/dev/null 2>&1 ||
1704   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1705 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1706    { (exit 1); exit 1; }; }
1707
1708 echo "$as_me:$LINENO: checking build system type" >&5
1709 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1710 if test "${ac_cv_build+set}" = set; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   ac_cv_build_alias=$build_alias
1714 test -z "$ac_cv_build_alias" &&
1715   ac_cv_build_alias=`$ac_config_guess`
1716 test -z "$ac_cv_build_alias" &&
1717   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1718 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1719    { (exit 1); exit 1; }; }
1720 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1721   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1722 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1723    { (exit 1); exit 1; }; }
1724
1725 fi
1726 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1727 echo "${ECHO_T}$ac_cv_build" >&6
1728 build=$ac_cv_build
1729 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1730 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1731 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1732
1733
1734 echo "$as_me:$LINENO: checking host system type" >&5
1735 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1736 if test "${ac_cv_host+set}" = set; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   ac_cv_host_alias=$host_alias
1740 test -z "$ac_cv_host_alias" &&
1741   ac_cv_host_alias=$ac_cv_build_alias
1742 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1743   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1744 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1745    { (exit 1); exit 1; }; }
1746
1747 fi
1748 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1749 echo "${ECHO_T}$ac_cv_host" >&6
1750 host=$ac_cv_host
1751 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754
1755
1756 echo "$as_me:$LINENO: checking target system type" >&5
1757 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1758 if test "${ac_cv_target+set}" = set; then
1759   echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761   ac_cv_target_alias=$target_alias
1762 test "x$ac_cv_target_alias" = "x" &&
1763   ac_cv_target_alias=$ac_cv_host_alias
1764 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1765   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1766 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1767    { (exit 1); exit 1; }; }
1768
1769 fi
1770 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1771 echo "${ECHO_T}$ac_cv_target" >&6
1772 target=$ac_cv_target
1773 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776
1777
1778 # The aliases save the names the user supplied, while $host etc.
1779 # will get canonicalized.
1780 test -n "$target_alias" &&
1781   test "$program_prefix$program_suffix$program_transform_name" = \
1782     NONENONEs,x,x, &&
1783   program_prefix=${target_alias}-
1784
1785
1786
1787 wx_major_version_number=2
1788 wx_minor_version_number=7
1789 wx_release_number=1
1790 wx_subrelease_number=0
1791
1792 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1793 WX_VERSION=$WX_RELEASE.$wx_release_number
1794 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1795
1796 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1797
1798
1799
1800
1801 USE_UNIX=1
1802 USE_OS2=0
1803 USE_WIN32=0
1804 USE_DOS=0
1805 USE_BEOS=0
1806 USE_MAC=0
1807
1808 USE_AIX=
1809 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1810 USE_GNU=                            USE_HPUX=
1811 USE_LINUX=
1812 USE_NETBSD=
1813 USE_OPENBSD=
1814 USE_OSF=                            USE_SGI=
1815 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1816 USE_ULTRIX=
1817 USE_UNIXWARE=
1818
1819 USE_ALPHA=
1820
1821 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1822
1823 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
1824
1825 DEFAULT_wxUSE_COCOA=0
1826 DEFAULT_wxUSE_GTK=0
1827 DEFAULT_wxUSE_MAC=0
1828 DEFAULT_wxUSE_MGL=0
1829 DEFAULT_wxUSE_MICROWIN=0
1830 DEFAULT_wxUSE_MOTIF=0
1831 DEFAULT_wxUSE_MSW=0
1832 DEFAULT_wxUSE_PM=0
1833 DEFAULT_wxUSE_X11=0
1834 DEFAULT_wxUSE_DFB=0
1835
1836 DEFAULT_DEFAULT_wxUSE_COCOA=0
1837 DEFAULT_DEFAULT_wxUSE_GTK=0
1838 DEFAULT_DEFAULT_wxUSE_MAC=0
1839 DEFAULT_DEFAULT_wxUSE_MGL=0
1840 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1841 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1842 DEFAULT_DEFAULT_wxUSE_MSW=0
1843 DEFAULT_DEFAULT_wxUSE_PM=0
1844 DEFAULT_DEFAULT_wxUSE_X11=0
1845 DEFAULT_DEFAULT_wxUSE_DFB=0
1846
1847 PROGRAM_EXT=
1848 SO_SUFFIX=so
1849 SAMPLES_RPATH_FLAG=
1850 SAMPLES_RPATH_POSTLINK=
1851
1852 DEFAULT_STD_FLAG=yes
1853
1854 case "${host}" in
1855   *-hp-hpux* )
1856     USE_HPUX=1
1857     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1858     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1859     SO_SUFFIX=sl
1860     cat >>confdefs.h <<\_ACEOF
1861 #define __HPUX__ 1
1862 _ACEOF
1863
1864
1865             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
1866   ;;
1867   *-*-linux* )
1868     USE_LINUX=1
1869     cat >>confdefs.h <<\_ACEOF
1870 #define __LINUX__ 1
1871 _ACEOF
1872
1873     TMP=`uname -m`
1874     if test "x$TMP" = "xalpha"; then
1875       USE_ALPHA=1
1876       cat >>confdefs.h <<\_ACEOF
1877 #define __ALPHA__ 1
1878 _ACEOF
1879
1880     fi
1881     DEFAULT_DEFAULT_wxUSE_GTK=1
1882   ;;
1883   *-*-gnu* | *-*-k*bsd*-gnu )
1884     USE_GNU=1
1885     TMP=`uname -m`
1886     if test "x$TMP" = "xalpha"; then
1887       USE_ALPHA=1
1888       cat >>confdefs.h <<\_ACEOF
1889 #define __ALPHA__ 1
1890 _ACEOF
1891
1892     fi
1893     DEFAULT_DEFAULT_wxUSE_GTK=1
1894   ;;
1895   *-*-irix5* | *-*-irix6* )
1896     USE_SGI=1
1897     USE_SVR4=1
1898     cat >>confdefs.h <<\_ACEOF
1899 #define __SGI__ 1
1900 _ACEOF
1901
1902     cat >>confdefs.h <<\_ACEOF
1903 #define __SVR4__ 1
1904 _ACEOF
1905
1906     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1907   ;;
1908   *-*-solaris2* )
1909     USE_SUN=1
1910     USE_SOLARIS=1
1911     USE_SVR4=1
1912     cat >>confdefs.h <<\_ACEOF
1913 #define __SUN__ 1
1914 _ACEOF
1915
1916     cat >>confdefs.h <<\_ACEOF
1917 #define __SOLARIS__ 1
1918 _ACEOF
1919
1920     cat >>confdefs.h <<\_ACEOF
1921 #define __SVR4__ 1
1922 _ACEOF
1923
1924     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1925     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1926   ;;
1927   *-*-sunos4* )
1928     USE_SUN=1
1929     USE_SUNOS=1
1930     USE_BSD=1
1931     cat >>confdefs.h <<\_ACEOF
1932 #define __SUN__ 1
1933 _ACEOF
1934
1935     cat >>confdefs.h <<\_ACEOF
1936 #define __SUNOS__ 1
1937 _ACEOF
1938
1939     cat >>confdefs.h <<\_ACEOF
1940 #define __BSD__ 1
1941 _ACEOF
1942
1943     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1944   ;;
1945   *-*-freebsd*)
1946     USE_BSD=1
1947     USE_FREEBSD=1
1948     cat >>confdefs.h <<\_ACEOF
1949 #define __FREEBSD__ 1
1950 _ACEOF
1951
1952     cat >>confdefs.h <<\_ACEOF
1953 #define __BSD__ 1
1954 _ACEOF
1955
1956     DEFAULT_DEFAULT_wxUSE_GTK=1
1957   ;;
1958   *-*-openbsd*|*-*-mirbsd*)
1959     USE_BSD=1
1960     USE_OPENBSD=1
1961     cat >>confdefs.h <<\_ACEOF
1962 #define __OPENBSD__ 1
1963 _ACEOF
1964
1965     cat >>confdefs.h <<\_ACEOF
1966 #define __BSD__ 1
1967 _ACEOF
1968
1969     DEFAULT_DEFAULT_wxUSE_GTK=1
1970   ;;
1971   *-*-netbsd*)
1972     USE_BSD=1
1973     USE_NETBSD=1
1974     cat >>confdefs.h <<\_ACEOF
1975 #define __NETBSD__ 1
1976 _ACEOF
1977
1978     cat >>confdefs.h <<\_ACEOF
1979 #define __BSD__ 1
1980 _ACEOF
1981
1982     DEFAULT_DEFAULT_wxUSE_GTK=1
1983     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1984
1985             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
1986   ;;
1987   *-*-osf* )
1988     USE_ALPHA=1
1989     USE_OSF=1
1990     cat >>confdefs.h <<\_ACEOF
1991 #define __ALPHA__ 1
1992 _ACEOF
1993
1994     cat >>confdefs.h <<\_ACEOF
1995 #define __OSF__ 1
1996 _ACEOF
1997
1998     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1999     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2000   ;;
2001   *-*-dgux5* )
2002     USE_ALPHA=1
2003     USE_SVR4=1
2004     cat >>confdefs.h <<\_ACEOF
2005 #define __ALPHA__ 1
2006 _ACEOF
2007
2008     cat >>confdefs.h <<\_ACEOF
2009 #define __SVR4__ 1
2010 _ACEOF
2011
2012     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2013   ;;
2014   *-*-sysv5* )
2015     USE_SYSV=1
2016     USE_SVR4=1
2017     cat >>confdefs.h <<\_ACEOF
2018 #define __SYSV__ 1
2019 _ACEOF
2020
2021     cat >>confdefs.h <<\_ACEOF
2022 #define __SVR4__ 1
2023 _ACEOF
2024
2025     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2026   ;;
2027   *-*-aix* )
2028     USE_AIX=1
2029     USE_SYSV=1
2030     USE_SVR4=1
2031                         SO_SUFFIX=a
2032     cat >>confdefs.h <<\_ACEOF
2033 #define __AIX__ 1
2034 _ACEOF
2035
2036     cat >>confdefs.h <<\_ACEOF
2037 #define __SYSV__ 1
2038 _ACEOF
2039
2040     cat >>confdefs.h <<\_ACEOF
2041 #define __SVR4__ 1
2042 _ACEOF
2043
2044     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2045   ;;
2046
2047   *-*-*UnixWare*)
2048     USE_SYSV=1
2049     USE_SVR4=1
2050     USE_UNIXWARE=1
2051     cat >>confdefs.h <<\_ACEOF
2052 #define __UNIXWARE__ 1
2053 _ACEOF
2054
2055   ;;
2056
2057   *-*-cygwin* | *-*-mingw32* )
2058                 SO_SUFFIX=dll
2059     PROGRAM_EXT=".exe"
2060     DEFAULT_DEFAULT_wxUSE_MSW=1
2061     DEFAULT_STD_FLAG=no
2062   ;;
2063
2064   *-pc-msdosdjgpp )
2065     USE_UNIX=0
2066     USE_DOS=1
2067     cat >>confdefs.h <<\_ACEOF
2068 #define __DOS__ 1
2069 _ACEOF
2070
2071     PROGRAM_EXT=".exe"
2072     DEFAULT_DEFAULT_wxUSE_MGL=1
2073   ;;
2074
2075   *-pc-os2_emx | *-pc-os2-emx )
2076     cat >>confdefs.h <<\_ACEOF
2077 #define __EMX__ 1
2078 _ACEOF
2079
2080     USE_OS2=1
2081     cat >>confdefs.h <<\_ACEOF
2082 #define __OS2__ 1
2083 _ACEOF
2084
2085     PROGRAM_EXT=".exe"
2086     DEFAULT_DEFAULT_wxUSE_PM=1
2087         CXX=gcc
2088     LDFLAGS="$LDFLAGS -Zcrtdll"
2089                         ac_executable_extensions=".exe"
2090     export ac_executable_extensions
2091             ac_save_IFS="$IFS"
2092     IFS='\\'
2093     ac_TEMP_PATH=
2094     for ac_dir in $PATH; do
2095       IFS=$ac_save_IFS
2096       if test -z "$ac_TEMP_PATH"; then
2097         ac_TEMP_PATH="$ac_dir"
2098       else
2099         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2100       fi
2101     done
2102     export PATH="$ac_TEMP_PATH"
2103     unset ac_TEMP_PATH
2104     DEFAULT_STD_FLAG=no
2105   ;;
2106
2107   *-*-darwin* )
2108         USE_BSD=1
2109     USE_DARWIN=1
2110     SO_SUFFIX=dylib
2111     cat >>confdefs.h <<\_ACEOF
2112 #define __BSD__ 1
2113 _ACEOF
2114
2115     cat >>confdefs.h <<\_ACEOF
2116 #define __DARWIN__ 1
2117 _ACEOF
2118
2119     cat >>confdefs.h <<\_ACEOF
2120 #define TARGET_CARBON 1
2121 _ACEOF
2122
2123     DEFAULT_DEFAULT_wxUSE_MAC=1
2124     DEFAULT_STD_FLAG=no
2125   ;;
2126   powerpc-apple-macos* )
2127         USE_UNIX=0
2128             ac_cv_c_bigendian=yes
2129     SO_SUFFIX=shlib
2130             DEFAULT_DEFAULT_wxUSE_MAC=1
2131     DEFAULT_STD_FLAG=no
2132   ;;
2133
2134   *-*-beos* )
2135         USE_BEOS=1
2136     cat >>confdefs.h <<\_ACEOF
2137 #define __BEOS__ 1
2138 _ACEOF
2139
2140   ;;
2141
2142   *)
2143     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2144 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2145     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2146 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2147
2148     DEFAULT_DEFAULT_wxUSE_X11=1
2149     DEFAULT_wxUSE_SHARED=no
2150 esac
2151
2152
2153
2154
2155           wx_arg_cache_file="configarg.cache"
2156           echo "loading argument cache $wx_arg_cache_file"
2157           rm -f ${wx_arg_cache_file}.tmp
2158           touch ${wx_arg_cache_file}.tmp
2159           touch ${wx_arg_cache_file}
2160
2161
2162 DEBUG_CONFIGURE=0
2163 if test $DEBUG_CONFIGURE = 1; then
2164   DEFAULT_wxUSE_UNIVERSAL=no
2165   DEFAULT_wxUSE_STL=no
2166
2167   DEFAULT_wxUSE_NANOX=no
2168
2169   DEFAULT_wxUSE_THREADS=yes
2170
2171   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2172   DEFAULT_wxUSE_OPTIMISE=no
2173   DEFAULT_wxUSE_PROFILE=no
2174   DEFAULT_wxUSE_NO_DEPS=no
2175   DEFAULT_wxUSE_NO_RTTI=no
2176   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2177   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2178   DEFAULT_wxUSE_RPATH=yes
2179   DEFAULT_wxUSE_PERMISSIVE=no
2180   DEFAULT_wxUSE_DEBUG_FLAG=yes
2181   DEFAULT_wxUSE_DEBUG_INFO=yes
2182   DEFAULT_wxUSE_DEBUG_GDB=yes
2183   DEFAULT_wxUSE_MEM_TRACING=no
2184   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2185   DEFAULT_wxUSE_DMALLOC=no
2186   DEFAULT_wxUSE_APPLE_IEEE=no
2187
2188   DEFAULT_wxUSE_EXCEPTIONS=no
2189   DEFAULT_wxUSE_LOG=yes
2190   DEFAULT_wxUSE_LOGWINDOW=no
2191   DEFAULT_wxUSE_LOGGUI=no
2192   DEFAULT_wxUSE_LOGDIALOG=no
2193
2194   DEFAULT_wxUSE_GUI=yes
2195   DEFAULT_wxUSE_CONTROLS=no
2196
2197   DEFAULT_wxUSE_REGEX=no
2198   DEFAULT_wxUSE_XML=no
2199   DEFAULT_wxUSE_EXPAT=no
2200   DEFAULT_wxUSE_ZLIB=no
2201   DEFAULT_wxUSE_LIBPNG=no
2202   DEFAULT_wxUSE_LIBJPEG=no
2203   DEFAULT_wxUSE_LIBTIFF=no
2204   DEFAULT_wxUSE_LIBXPM=no
2205   DEFAULT_wxUSE_LIBMSPACK=no
2206   DEFAULT_wxUSE_LIBSDL=no
2207   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2208   DEFAULT_wxUSE_LIBGNOMEVFS=no
2209   DEFAULT_wxUSE_LIBHILDON=no
2210   DEFAULT_wxUSE_ODBC=no
2211   DEFAULT_wxUSE_OPENGL=no
2212
2213   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2214   DEFAULT_wxUSE_STACKWALKER=no
2215   DEFAULT_wxUSE_DEBUGREPORT=no
2216   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2217   DEFAULT_wxUSE_STD_IOSTREAM=no
2218   DEFAULT_wxUSE_STD_STRING=no
2219   DEFAULT_wxUSE_CMDLINE_PARSER=no
2220   DEFAULT_wxUSE_DATETIME=no
2221   DEFAULT_wxUSE_TIMER=no
2222   DEFAULT_wxUSE_STOPWATCH=no
2223   DEFAULT_wxUSE_FILE=no
2224   DEFAULT_wxUSE_FFILE=no
2225   DEFAULT_wxUSE_STDPATHS=no
2226   DEFAULT_wxUSE_TEXTBUFFER=no
2227   DEFAULT_wxUSE_TEXTFILE=no
2228   DEFAULT_wxUSE_SOUND=no
2229   DEFAULT_wxUSE_MEDIACTRL=no
2230   DEFAULT_wxUSE_GSTREAMER8=no
2231   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2232   DEFAULT_wxUSE_INTL=no
2233   DEFAULT_wxUSE_CONFIG=no
2234   DEFAULT_wxUSE_FONTMAP=no
2235   DEFAULT_wxUSE_STREAMS=no
2236   DEFAULT_wxUSE_SOCKETS=no
2237   DEFAULT_wxUSE_OLE=no
2238   DEFAULT_wxUSE_DATAOBJ=no
2239   DEFAULT_wxUSE_DIALUP_MANAGER=no
2240   DEFAULT_wxUSE_JOYSTICK=no
2241   DEFAULT_wxUSE_DYNLIB_CLASS=no
2242   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2243   DEFAULT_wxUSE_LONGLONG=no
2244   DEFAULT_wxUSE_GEOMETRY=no
2245
2246   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2247   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2248   DEFAULT_wxUSE_POSTSCRIPT=no
2249
2250   DEFAULT_wxUSE_CLIPBOARD=no
2251   DEFAULT_wxUSE_TOOLTIPS=no
2252   DEFAULT_wxUSE_DRAG_AND_DROP=no
2253   DEFAULT_wxUSE_DRAGIMAGE=no
2254   DEFAULT_wxUSE_SPLINES=no
2255   DEFAULT_wxUSE_MOUSEWHEEL=no
2256
2257   DEFAULT_wxUSE_MDI=no
2258   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2259   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2260   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2261
2262   DEFAULT_wxUSE_RESOURCES=no
2263   DEFAULT_wxUSE_CONSTRAINTS=no
2264   DEFAULT_wxUSE_IPC=no
2265   DEFAULT_wxUSE_HELP=no
2266   DEFAULT_wxUSE_MS_HTML_HELP=no
2267   DEFAULT_wxUSE_WXHTML_HELP=no
2268   DEFAULT_wxUSE_TREELAYOUT=no
2269   DEFAULT_wxUSE_METAFILE=no
2270   DEFAULT_wxUSE_MIMETYPE=no
2271   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2272   DEFAULT_wxUSE_PROTOCOL=no
2273   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2274   DEFAULT_wxUSE_PROTOCOL_FTP=no
2275   DEFAULT_wxUSE_PROTOCOL_FILE=no
2276   DEFAULT_wxUSE_URL=no
2277   DEFAULT_wxUSE_VARIANT=no
2278
2279   DEFAULT_wxUSE_ABOUTDLG=no
2280   DEFAULT_wxUSE_COMMONDLGS=no
2281   DEFAULT_wxUSE_CHOICEDLG=no
2282   DEFAULT_wxUSE_COLOURDLG=no
2283   DEFAULT_wxUSE_DIRDLG=no
2284   DEFAULT_wxUSE_FILEDLG=no
2285   DEFAULT_wxUSE_FINDREPLDLG=no
2286   DEFAULT_wxUSE_FONTDLG=no
2287   DEFAULT_wxUSE_MSGDLG=no
2288   DEFAULT_wxUSE_NUMBERDLG=no
2289   DEFAULT_wxUSE_TEXTDLG=no
2290   DEFAULT_wxUSE_SPLASH=no
2291   DEFAULT_wxUSE_STARTUP_TIPS=no
2292   DEFAULT_wxUSE_PROGRESSDLG=no
2293   DEFAULT_wxUSE_WIZARDDLG=no
2294
2295   DEFAULT_wxUSE_MENUS=no
2296   DEFAULT_wxUSE_MINIFRAME=no
2297   DEFAULT_wxUSE_HTML=no
2298   DEFAULT_wxUSE_RICHTEXT=no
2299   DEFAULT_wxUSE_XRC=no
2300   DEFAULT_wxUSE_AUI=no
2301   DEFAULT_wxUSE_WEBKIT=no
2302   DEFAULT_wxUSE_FILESYSTEM=no
2303   DEFAULT_wxUSE_FS_INET=no
2304   DEFAULT_wxUSE_FS_ZIP=no
2305   DEFAULT_wxUSE_BUSYINFO=no
2306   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2307   DEFAULT_wxUSE_ZIPSTREAM=no
2308   DEFAULT_wxUSE_VALIDATORS=no
2309
2310   DEFAULT_wxUSE_ACCEL=no
2311   DEFAULT_wxUSE_ANIMATIONCTRL=no
2312   DEFAULT_wxUSE_BUTTON=no
2313   DEFAULT_wxUSE_BMPBUTTON=no
2314   DEFAULT_wxUSE_BITMAPCOMBOBOX=no
2315   DEFAULT_wxUSE_CALCTRL=no
2316   DEFAULT_wxUSE_CARET=no
2317   DEFAULT_wxUSE_CHECKBOX=no
2318   DEFAULT_wxUSE_CHECKLST=no
2319   DEFAULT_wxUSE_CHOICE=no
2320   DEFAULT_wxUSE_CHOICEBOOK=no
2321   DEFAULT_wxUSE_COLOURPICKERCTRL=no
2322   DEFAULT_wxUSE_COMBOBOX=no
2323   DEFAULT_wxUSE_COMBOCTRL=no
2324   DEFAULT_wxUSE_DATEPICKCTRL=no
2325   DEFAULT_wxUSE_DISPLAY=no
2326   DEFAULT_wxUSE_DIRPICKERCTRL=no
2327   DEFAULT_wxUSE_FILEPICKERCTRL=no
2328   DEFAULT_wxUSE_FONTPICKERCTRL=no
2329   DEFAULT_wxUSE_GAUGE=no
2330   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2331   DEFAULT_wxUSE_GRID=no
2332   DEFAULT_wxUSE_HYPERLINKCTRL=no
2333   DEFAULT_wxUSE_DATAVIEWCTRL=no
2334   DEFAULT_wxUSE_IMAGLIST=no
2335   DEFAULT_wxUSE_LISTBOOK=no
2336   DEFAULT_wxUSE_LISTBOX=no
2337   DEFAULT_wxUSE_LISTCTRL=no
2338   DEFAULT_wxUSE_NOTEBOOK=no
2339   DEFAULT_wxUSE_ODCOMBOBOX=no
2340   DEFAULT_wxUSE_RADIOBOX=no
2341   DEFAULT_wxUSE_RADIOBTN=no
2342   DEFAULT_wxUSE_SASH=no
2343   DEFAULT_wxUSE_SCROLLBAR=no
2344   DEFAULT_wxUSE_SLIDER=no
2345   DEFAULT_wxUSE_SPINBTN=no
2346   DEFAULT_wxUSE_SPINCTRL=no
2347   DEFAULT_wxUSE_SPLITTER=no
2348   DEFAULT_wxUSE_STATBMP=no
2349   DEFAULT_wxUSE_STATBOX=no
2350   DEFAULT_wxUSE_STATLINE=no
2351   DEFAULT_wxUSE_STATTEXT=no
2352   DEFAULT_wxUSE_STATUSBAR=yes
2353   DEFAULT_wxUSE_TAB_DIALOG=no
2354   DEFAULT_wxUSE_TEXTCTRL=no
2355   DEFAULT_wxUSE_TOGGLEBTN=no
2356   DEFAULT_wxUSE_TOOLBAR=no
2357   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2358   DEFAULT_wxUSE_TREEBOOK=no
2359   DEFAULT_wxUSE_TOOLBOOK=no
2360   DEFAULT_wxUSE_TREECTRL=no
2361   DEFAULT_wxUSE_POPUPWIN=no
2362   DEFAULT_wxUSE_TIPWINDOW=no
2363
2364   DEFAULT_wxUSE_UNICODE=no
2365   DEFAULT_wxUSE_UNICODE_MSLU=no
2366   DEFAULT_wxUSE_WCSRTOMBS=no
2367
2368   DEFAULT_wxUSE_PALETTE=no
2369   DEFAULT_wxUSE_IMAGE=no
2370   DEFAULT_wxUSE_GIF=no
2371   DEFAULT_wxUSE_PCX=no
2372   DEFAULT_wxUSE_PNM=no
2373   DEFAULT_wxUSE_IFF=no
2374   DEFAULT_wxUSE_XPM=no
2375   DEFAULT_wxUSE_ICO_CUR=no
2376   DEFAULT_wxUSE_ACCESSIBILITY=no
2377
2378   DEFAULT_wxUSE_MONOLITHIC=no
2379   DEFAULT_wxUSE_PLUGINS=no
2380   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2381 else
2382   DEFAULT_wxUSE_UNIVERSAL=no
2383   DEFAULT_wxUSE_STL=no
2384
2385   DEFAULT_wxUSE_NANOX=no
2386
2387   DEFAULT_wxUSE_THREADS=yes
2388
2389   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2390   DEFAULT_wxUSE_OPTIMISE=yes
2391   DEFAULT_wxUSE_PROFILE=no
2392   DEFAULT_wxUSE_NO_DEPS=no
2393   DEFAULT_wxUSE_NO_RTTI=no
2394   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2395   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2396   DEFAULT_wxUSE_RPATH=yes
2397   DEFAULT_wxUSE_PERMISSIVE=no
2398   DEFAULT_wxUSE_DEBUG_FLAG=no
2399   DEFAULT_wxUSE_DEBUG_INFO=no
2400   DEFAULT_wxUSE_DEBUG_GDB=no
2401   DEFAULT_wxUSE_MEM_TRACING=no
2402   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2403   DEFAULT_wxUSE_DMALLOC=no
2404   DEFAULT_wxUSE_APPLE_IEEE=yes
2405
2406   DEFAULT_wxUSE_EXCEPTIONS=yes
2407   DEFAULT_wxUSE_LOG=yes
2408   DEFAULT_wxUSE_LOGWINDOW=yes
2409   DEFAULT_wxUSE_LOGGUI=yes
2410   DEFAULT_wxUSE_LOGDIALOG=yes
2411
2412   DEFAULT_wxUSE_GUI=yes
2413
2414   DEFAULT_wxUSE_REGEX=yes
2415   DEFAULT_wxUSE_XML=yes
2416   DEFAULT_wxUSE_EXPAT=yes
2417   DEFAULT_wxUSE_ZLIB=yes
2418   DEFAULT_wxUSE_LIBPNG=yes
2419   DEFAULT_wxUSE_LIBJPEG=yes
2420   DEFAULT_wxUSE_LIBTIFF=yes
2421   DEFAULT_wxUSE_LIBXPM=yes
2422   DEFAULT_wxUSE_LIBMSPACK=yes
2423   DEFAULT_wxUSE_LIBSDL=no
2424   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2425   DEFAULT_wxUSE_LIBGNOMEVFS=no
2426   DEFAULT_wxUSE_LIBHILDON=no
2427   DEFAULT_wxUSE_ODBC=no
2428   DEFAULT_wxUSE_OPENGL=no
2429
2430   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2431   DEFAULT_wxUSE_STACKWALKER=yes
2432   DEFAULT_wxUSE_DEBUGREPORT=yes
2433   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2434   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2435   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2436   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2437   DEFAULT_wxUSE_DATETIME=yes
2438   DEFAULT_wxUSE_TIMER=yes
2439   DEFAULT_wxUSE_STOPWATCH=yes
2440   DEFAULT_wxUSE_FILE=yes
2441   DEFAULT_wxUSE_FFILE=yes
2442   DEFAULT_wxUSE_STDPATHS=yes
2443   DEFAULT_wxUSE_TEXTBUFFER=yes
2444   DEFAULT_wxUSE_TEXTFILE=yes
2445   DEFAULT_wxUSE_SOUND=yes
2446   DEFAULT_wxUSE_MEDIACTRL=no
2447   DEFAULT_wxUSE_GSTREAMER8=no
2448   DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
2449   DEFAULT_wxUSE_INTL=yes
2450   DEFAULT_wxUSE_CONFIG=yes
2451   DEFAULT_wxUSE_FONTMAP=yes
2452   DEFAULT_wxUSE_STREAMS=yes
2453   DEFAULT_wxUSE_SOCKETS=yes
2454   DEFAULT_wxUSE_OLE=yes
2455   DEFAULT_wxUSE_DATAOBJ=yes
2456   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2457   DEFAULT_wxUSE_JOYSTICK=yes
2458   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2459   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2460   DEFAULT_wxUSE_LONGLONG=yes
2461   DEFAULT_wxUSE_GEOMETRY=yes
2462
2463   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2464   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2465   DEFAULT_wxUSE_POSTSCRIPT=yes
2466
2467   DEFAULT_wxUSE_CLIPBOARD=yes
2468   DEFAULT_wxUSE_TOOLTIPS=yes
2469   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2470   DEFAULT_wxUSE_DRAGIMAGE=yes
2471   DEFAULT_wxUSE_SPLINES=yes
2472   DEFAULT_wxUSE_MOUSEWHEEL=yes
2473
2474   DEFAULT_wxUSE_MDI=yes
2475   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2476   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2477   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2478
2479   DEFAULT_wxUSE_RESOURCES=no
2480   DEFAULT_wxUSE_CONSTRAINTS=yes
2481   DEFAULT_wxUSE_IPC=yes
2482   DEFAULT_wxUSE_HELP=yes
2483   DEFAULT_wxUSE_MS_HTML_HELP=yes
2484   DEFAULT_wxUSE_WXHTML_HELP=yes
2485   DEFAULT_wxUSE_TREELAYOUT=yes
2486   DEFAULT_wxUSE_METAFILE=yes
2487   DEFAULT_wxUSE_MIMETYPE=yes
2488   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2489   DEFAULT_wxUSE_PROTOCOL=yes
2490   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2491   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2492   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2493   DEFAULT_wxUSE_URL=yes
2494   DEFAULT_wxUSE_VARIANT=yes
2495
2496   DEFAULT_wxUSE_ABOUTDLG=yes
2497   DEFAULT_wxUSE_COMMONDLGS=yes
2498   DEFAULT_wxUSE_CHOICEDLG=yes
2499   DEFAULT_wxUSE_COLOURDLG=yes
2500   DEFAULT_wxUSE_DIRDLG=yes
2501   DEFAULT_wxUSE_FILEDLG=yes
2502   DEFAULT_wxUSE_FINDREPLDLG=yes
2503   DEFAULT_wxUSE_FONTDLG=yes
2504   DEFAULT_wxUSE_MSGDLG=yes
2505   DEFAULT_wxUSE_NUMBERDLG=yes
2506   DEFAULT_wxUSE_TEXTDLG=yes
2507   DEFAULT_wxUSE_SPLASH=yes
2508   DEFAULT_wxUSE_STARTUP_TIPS=yes
2509   DEFAULT_wxUSE_PROGRESSDLG=yes
2510   DEFAULT_wxUSE_WIZARDDLG=yes
2511
2512   DEFAULT_wxUSE_MENUS=yes
2513   DEFAULT_wxUSE_MINIFRAME=yes
2514   DEFAULT_wxUSE_HTML=yes
2515   DEFAULT_wxUSE_RICHTEXT=yes
2516   DEFAULT_wxUSE_XRC=yes
2517   DEFAULT_wxUSE_AUI=yes
2518   DEFAULT_wxUSE_WEBKIT=yes
2519   DEFAULT_wxUSE_FILESYSTEM=yes
2520   DEFAULT_wxUSE_FS_INET=yes
2521   DEFAULT_wxUSE_FS_ZIP=yes
2522   DEFAULT_wxUSE_BUSYINFO=yes
2523   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2524   DEFAULT_wxUSE_ZIPSTREAM=yes
2525   DEFAULT_wxUSE_VALIDATORS=yes
2526
2527   DEFAULT_wxUSE_ACCEL=yes
2528   DEFAULT_wxUSE_ANIMATIONCTRL=yes
2529   DEFAULT_wxUSE_BUTTON=yes
2530   DEFAULT_wxUSE_BMPBUTTON=yes
2531   DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
2532   DEFAULT_wxUSE_CALCTRL=yes
2533   DEFAULT_wxUSE_CARET=yes
2534   DEFAULT_wxUSE_CHECKBOX=yes
2535   DEFAULT_wxUSE_CHECKLST=yes
2536   DEFAULT_wxUSE_CHOICE=yes
2537   DEFAULT_wxUSE_CHOICEBOOK=yes
2538   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
2539   DEFAULT_wxUSE_COMBOBOX=yes
2540   DEFAULT_wxUSE_COMBOCTRL=yes
2541   DEFAULT_wxUSE_DATEPICKCTRL=yes
2542   DEFAULT_wxUSE_DISPLAY=yes
2543   DEFAULT_wxUSE_DIRPICKERCTRL=yes
2544   DEFAULT_wxUSE_FILEPICKERCTRL=yes
2545   DEFAULT_wxUSE_FONTPICKERCTRL=yes
2546   DEFAULT_wxUSE_GAUGE=yes
2547   DEFAULT_wxUSE_GRID=yes
2548   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2549   DEFAULT_wxUSE_HYPERLINKCTRL=yes
2550   DEFAULT_wxUSE_DATAVIEWCTRL=no
2551   DEFAULT_wxUSE_IMAGLIST=yes
2552   DEFAULT_wxUSE_LISTBOOK=yes
2553   DEFAULT_wxUSE_LISTBOX=yes
2554   DEFAULT_wxUSE_LISTCTRL=yes
2555   DEFAULT_wxUSE_NOTEBOOK=yes
2556   DEFAULT_wxUSE_ODCOMBOBOX=yes
2557   DEFAULT_wxUSE_RADIOBOX=yes
2558   DEFAULT_wxUSE_RADIOBTN=yes
2559   DEFAULT_wxUSE_SASH=yes
2560   DEFAULT_wxUSE_SCROLLBAR=yes
2561   DEFAULT_wxUSE_SLIDER=yes
2562   DEFAULT_wxUSE_SPINBTN=yes
2563   DEFAULT_wxUSE_SPINCTRL=yes
2564   DEFAULT_wxUSE_SPLITTER=yes
2565   DEFAULT_wxUSE_STATBMP=yes
2566   DEFAULT_wxUSE_STATBOX=yes
2567   DEFAULT_wxUSE_STATLINE=yes
2568   DEFAULT_wxUSE_STATTEXT=yes
2569   DEFAULT_wxUSE_STATUSBAR=yes
2570   DEFAULT_wxUSE_TAB_DIALOG=no
2571   DEFAULT_wxUSE_TEXTCTRL=yes
2572   DEFAULT_wxUSE_TOGGLEBTN=yes
2573   DEFAULT_wxUSE_TOOLBAR=yes
2574   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2575   DEFAULT_wxUSE_TREEBOOK=yes
2576   DEFAULT_wxUSE_TOOLBOOK=yes
2577   DEFAULT_wxUSE_TREECTRL=yes
2578   DEFAULT_wxUSE_POPUPWIN=yes
2579   DEFAULT_wxUSE_TIPWINDOW=yes
2580
2581   DEFAULT_wxUSE_UNICODE=no
2582   DEFAULT_wxUSE_UNICODE_MSLU=yes
2583   DEFAULT_wxUSE_WCSRTOMBS=no
2584
2585   DEFAULT_wxUSE_PALETTE=yes
2586   DEFAULT_wxUSE_IMAGE=yes
2587   DEFAULT_wxUSE_GIF=yes
2588   DEFAULT_wxUSE_PCX=yes
2589   DEFAULT_wxUSE_IFF=no
2590   DEFAULT_wxUSE_PNM=yes
2591   DEFAULT_wxUSE_XPM=yes
2592   DEFAULT_wxUSE_ICO_CUR=yes
2593   DEFAULT_wxUSE_ACCESSIBILITY=no
2594
2595   DEFAULT_wxUSE_MONOLITHIC=no
2596   DEFAULT_wxUSE_PLUGINS=no
2597   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2598
2599     DEFAULT_wxUSE_GTK2=yes
2600 fi
2601
2602
2603
2604
2605 for toolkit in `echo $ALL_TOOLKITS`; do
2606   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2607   if test "x$LINE" != "x" ; then
2608     has_toolkit_in_cache=1
2609     eval "DEFAULT_$LINE"
2610     eval "CACHE_$toolkit=1"
2611
2612     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2613     if test "x$LINE" != "x" ; then
2614         eval "DEFAULT_$LINE"
2615     fi
2616   fi
2617 done
2618
2619
2620
2621           enablestring=
2622           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2623 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2624           no_cache=0
2625           # Check whether --enable-gui or --disable-gui was given.
2626 if test "${enable_gui+set}" = set; then
2627   enableval="$enable_gui"
2628
2629                           if test "$enableval" = yes; then
2630                             ac_cv_use_gui='wxUSE_GUI=yes'
2631                           else
2632                             ac_cv_use_gui='wxUSE_GUI=no'
2633                           fi
2634
2635 else
2636
2637                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2638                           if test "x$LINE" != x ; then
2639                             eval "DEFAULT_$LINE"
2640                           else
2641                             no_cache=1
2642                           fi
2643
2644                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2645
2646 fi;
2647
2648           eval "$ac_cv_use_gui"
2649           if test "$no_cache" != 1; then
2650             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2651           fi
2652
2653           if test "$wxUSE_GUI" = yes; then
2654             echo "$as_me:$LINENO: result: yes" >&5
2655 echo "${ECHO_T}yes" >&6
2656           else
2657             echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6
2659           fi
2660
2661
2662           enablestring=
2663           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2664 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2665           no_cache=0
2666           # Check whether --enable-monolithic or --disable-monolithic was given.
2667 if test "${enable_monolithic+set}" = set; then
2668   enableval="$enable_monolithic"
2669
2670                           if test "$enableval" = yes; then
2671                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2672                           else
2673                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2674                           fi
2675
2676 else
2677
2678                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2679                           if test "x$LINE" != x ; then
2680                             eval "DEFAULT_$LINE"
2681                           else
2682                             no_cache=1
2683                           fi
2684
2685                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2686
2687 fi;
2688
2689           eval "$ac_cv_use_monolithic"
2690           if test "$no_cache" != 1; then
2691             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2692           fi
2693
2694           if test "$wxUSE_MONOLITHIC" = yes; then
2695             echo "$as_me:$LINENO: result: yes" >&5
2696 echo "${ECHO_T}yes" >&6
2697           else
2698             echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2700           fi
2701
2702
2703           enablestring=
2704           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2705 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2706           no_cache=0
2707           # Check whether --enable-plugins or --disable-plugins was given.
2708 if test "${enable_plugins+set}" = set; then
2709   enableval="$enable_plugins"
2710
2711                           if test "$enableval" = yes; then
2712                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2713                           else
2714                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2715                           fi
2716
2717 else
2718
2719                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2720                           if test "x$LINE" != x ; then
2721                             eval "DEFAULT_$LINE"
2722                           else
2723                             no_cache=1
2724                           fi
2725
2726                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2727
2728 fi;
2729
2730           eval "$ac_cv_use_plugins"
2731           if test "$no_cache" != 1; then
2732             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2733           fi
2734
2735           if test "$wxUSE_PLUGINS" = yes; then
2736             echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2738           else
2739             echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2741           fi
2742
2743
2744           withstring=without
2745           echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2746 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2747           no_cache=0
2748
2749 # Check whether --with-subdirs or --without-subdirs was given.
2750 if test "${with_subdirs+set}" = set; then
2751   withval="$with_subdirs"
2752
2753                         if test "$withval" = yes; then
2754                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2755                         else
2756                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2757                         fi
2758
2759 else
2760
2761                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2762                         if test "x$LINE" != x ; then
2763                           eval "DEFAULT_$LINE"
2764                         else
2765                           no_cache=1
2766                         fi
2767
2768                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2769
2770 fi;
2771
2772           eval "$ac_cv_use_subdirs"
2773           if test "$no_cache" != 1; then
2774             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2775           fi
2776
2777           if test "$wxWITH_SUBDIRS" = yes; then
2778             echo "$as_me:$LINENO: result: yes" >&5
2779 echo "${ECHO_T}yes" >&6
2780           else
2781             echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6
2783           fi
2784
2785
2786 if test "$wxUSE_GUI" = "yes"; then
2787
2788
2789           enablestring=
2790           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2791 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2792           no_cache=0
2793           # Check whether --enable-universal or --disable-universal was given.
2794 if test "${enable_universal+set}" = set; then
2795   enableval="$enable_universal"
2796
2797                           if test "$enableval" = yes; then
2798                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2799                           else
2800                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2801                           fi
2802
2803 else
2804
2805                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2806                           if test "x$LINE" != x ; then
2807                             eval "DEFAULT_$LINE"
2808                           else
2809                             no_cache=1
2810                           fi
2811
2812                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2813
2814 fi;
2815
2816           eval "$ac_cv_use_universal"
2817           if test "$no_cache" != 1; then
2818             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2819           fi
2820
2821           if test "$wxUSE_UNIVERSAL" = yes; then
2822             echo "$as_me:$LINENO: result: yes" >&5
2823 echo "${ECHO_T}yes" >&6
2824           else
2825             echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6
2827           fi
2828
2829
2830 # Check whether --with-gtk or --without-gtk was given.
2831 if test "${with_gtk+set}" = set; then
2832   withval="$with_gtk"
2833   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2834 fi;
2835
2836 # Check whether --with-motif or --without-motif was given.
2837 if test "${with_motif+set}" = set; then
2838   withval="$with_motif"
2839   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2840 fi;
2841
2842 # Check whether --with-mac or --without-mac was given.
2843 if test "${with_mac+set}" = set; then
2844   withval="$with_mac"
2845   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2846 fi;
2847
2848 # Check whether --with-cocoa or --without-cocoa was given.
2849 if test "${with_cocoa+set}" = set; then
2850   withval="$with_cocoa"
2851   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2852 fi;
2853
2854 # Check whether --with-wine or --without-wine was given.
2855 if test "${with_wine+set}" = set; then
2856   withval="$with_wine"
2857   wxUSE_WINE="$withval" CACHE_WINE=1
2858 fi;
2859
2860 # Check whether --with-msw or --without-msw was given.
2861 if test "${with_msw+set}" = set; then
2862   withval="$with_msw"
2863   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2864 fi;
2865
2866 # Check whether --with-pm or --without-pm was given.
2867 if test "${with_pm+set}" = set; then
2868   withval="$with_pm"
2869   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2870 fi;
2871
2872 # Check whether --with-mgl or --without-mgl was given.
2873 if test "${with_mgl+set}" = set; then
2874   withval="$with_mgl"
2875   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2876 fi;
2877
2878 # Check whether --with-directfb or --without-directfb was given.
2879 if test "${with_directfb+set}" = set; then
2880   withval="$with_directfb"
2881   wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2882 fi;
2883
2884 # Check whether --with-microwin or --without-microwin was given.
2885 if test "${with_microwin+set}" = set; then
2886   withval="$with_microwin"
2887   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2888 fi;
2889
2890 # Check whether --with-x11 or --without-x11 was given.
2891 if test "${with_x11+set}" = set; then
2892   withval="$with_x11"
2893   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2894 fi;
2895
2896           enablestring=
2897           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2898 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2899           no_cache=0
2900           # Check whether --enable-nanox or --disable-nanox was given.
2901 if test "${enable_nanox+set}" = set; then
2902   enableval="$enable_nanox"
2903
2904                           if test "$enableval" = yes; then
2905                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2906                           else
2907                             ac_cv_use_nanox='wxUSE_NANOX=no'
2908                           fi
2909
2910 else
2911
2912                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2913                           if test "x$LINE" != x ; then
2914                             eval "DEFAULT_$LINE"
2915                           else
2916                             no_cache=1
2917                           fi
2918
2919                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2920
2921 fi;
2922
2923           eval "$ac_cv_use_nanox"
2924           if test "$no_cache" != 1; then
2925             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2926           fi
2927
2928           if test "$wxUSE_NANOX" = yes; then
2929             echo "$as_me:$LINENO: result: yes" >&5
2930 echo "${ECHO_T}yes" >&6
2931           else
2932             echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2934           fi
2935
2936
2937 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2938 if test "${enable_gtk2+set}" = set; then
2939   enableval="$enable_gtk2"
2940   wxUSE_GTK2="$enableval"
2941 fi;
2942
2943           enablestring=
2944           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2945 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2946           no_cache=0
2947           # Check whether --enable-gpe or --disable-gpe was given.
2948 if test "${enable_gpe+set}" = set; then
2949   enableval="$enable_gpe"
2950
2951                           if test "$enableval" = yes; then
2952                             ac_cv_use_gpe='wxUSE_GPE=yes'
2953                           else
2954                             ac_cv_use_gpe='wxUSE_GPE=no'
2955                           fi
2956
2957 else
2958
2959                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2960                           if test "x$LINE" != x ; then
2961                             eval "DEFAULT_$LINE"
2962                           else
2963                             no_cache=1
2964                           fi
2965
2966                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2967
2968 fi;
2969
2970           eval "$ac_cv_use_gpe"
2971           if test "$no_cache" != 1; then
2972             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2973           fi
2974
2975           if test "$wxUSE_GPE" = yes; then
2976             echo "$as_me:$LINENO: result: yes" >&5
2977 echo "${ECHO_T}yes" >&6
2978           else
2979             echo "$as_me:$LINENO: result: no" >&5
2980 echo "${ECHO_T}no" >&6
2981           fi
2982
2983
2984
2985           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2986 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2987           no_cache=0
2988
2989 # Check whether --with-libpng or --without-libpng was given.
2990 if test "${with_libpng+set}" = set; then
2991   withval="$with_libpng"
2992
2993                         if test "$withval" = yes; then
2994                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2995                         elif test "$withval" = no; then
2996                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2997                         elif test "$withval" = sys; then
2998                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2999                         elif test "$withval" = builtin; then
3000                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3001                         else
3002                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3003 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3004    { (exit 1); exit 1; }; }
3005                         fi
3006
3007 else
3008
3009                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3010                         if test "x$LINE" != x ; then
3011                           eval "DEFAULT_$LINE"
3012                         else
3013                           no_cache=1
3014                         fi
3015
3016                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3017
3018 fi;
3019
3020           eval "$ac_cv_use_libpng"
3021           if test "$no_cache" != 1; then
3022             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3023           fi
3024
3025           if test "$wxUSE_LIBPNG" = yes; then
3026             echo "$as_me:$LINENO: result: yes" >&5
3027 echo "${ECHO_T}yes" >&6
3028           elif test "$wxUSE_LIBPNG" = no; then
3029             echo "$as_me:$LINENO: result: no" >&5
3030 echo "${ECHO_T}no" >&6
3031           elif test "$wxUSE_LIBPNG" = sys; then
3032             echo "$as_me:$LINENO: result: system version" >&5
3033 echo "${ECHO_T}system version" >&6
3034           elif test "$wxUSE_LIBPNG" = builtin; then
3035             echo "$as_me:$LINENO: result: builtin version" >&5
3036 echo "${ECHO_T}builtin version" >&6
3037           else
3038             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3039 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3040    { (exit 1); exit 1; }; }
3041           fi
3042
3043
3044           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3045 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3046           no_cache=0
3047
3048 # Check whether --with-libjpeg or --without-libjpeg was given.
3049 if test "${with_libjpeg+set}" = set; then
3050   withval="$with_libjpeg"
3051
3052                         if test "$withval" = yes; then
3053                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3054                         elif test "$withval" = no; then
3055                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3056                         elif test "$withval" = sys; then
3057                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3058                         elif test "$withval" = builtin; then
3059                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3060                         else
3061                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3062 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3063    { (exit 1); exit 1; }; }
3064                         fi
3065
3066 else
3067
3068                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3069                         if test "x$LINE" != x ; then
3070                           eval "DEFAULT_$LINE"
3071                         else
3072                           no_cache=1
3073                         fi
3074
3075                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3076
3077 fi;
3078
3079           eval "$ac_cv_use_libjpeg"
3080           if test "$no_cache" != 1; then
3081             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3082           fi
3083
3084           if test "$wxUSE_LIBJPEG" = yes; then
3085             echo "$as_me:$LINENO: result: yes" >&5
3086 echo "${ECHO_T}yes" >&6
3087           elif test "$wxUSE_LIBJPEG" = no; then
3088             echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6
3090           elif test "$wxUSE_LIBJPEG" = sys; then
3091             echo "$as_me:$LINENO: result: system version" >&5
3092 echo "${ECHO_T}system version" >&6
3093           elif test "$wxUSE_LIBJPEG" = builtin; then
3094             echo "$as_me:$LINENO: result: builtin version" >&5
3095 echo "${ECHO_T}builtin version" >&6
3096           else
3097             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3098 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3099    { (exit 1); exit 1; }; }
3100           fi
3101
3102
3103           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3104 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3105           no_cache=0
3106
3107 # Check whether --with-libtiff or --without-libtiff was given.
3108 if test "${with_libtiff+set}" = set; then
3109   withval="$with_libtiff"
3110
3111                         if test "$withval" = yes; then
3112                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3113                         elif test "$withval" = no; then
3114                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3115                         elif test "$withval" = sys; then
3116                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3117                         elif test "$withval" = builtin; then
3118                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3119                         else
3120                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3121 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3122    { (exit 1); exit 1; }; }
3123                         fi
3124
3125 else
3126
3127                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3128                         if test "x$LINE" != x ; then
3129                           eval "DEFAULT_$LINE"
3130                         else
3131                           no_cache=1
3132                         fi
3133
3134                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3135
3136 fi;
3137
3138           eval "$ac_cv_use_libtiff"
3139           if test "$no_cache" != 1; then
3140             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3141           fi
3142
3143           if test "$wxUSE_LIBTIFF" = yes; then
3144             echo "$as_me:$LINENO: result: yes" >&5
3145 echo "${ECHO_T}yes" >&6
3146           elif test "$wxUSE_LIBTIFF" = no; then
3147             echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3149           elif test "$wxUSE_LIBTIFF" = sys; then
3150             echo "$as_me:$LINENO: result: system version" >&5
3151 echo "${ECHO_T}system version" >&6
3152           elif test "$wxUSE_LIBTIFF" = builtin; then
3153             echo "$as_me:$LINENO: result: builtin version" >&5
3154 echo "${ECHO_T}builtin version" >&6
3155           else
3156             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3157 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3158    { (exit 1); exit 1; }; }
3159           fi
3160
3161
3162           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3163 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3164           no_cache=0
3165
3166 # Check whether --with-libxpm or --without-libxpm was given.
3167 if test "${with_libxpm+set}" = set; then
3168   withval="$with_libxpm"
3169
3170                         if test "$withval" = yes; then
3171                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3172                         elif test "$withval" = no; then
3173                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3174                         elif test "$withval" = sys; then
3175                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3176                         elif test "$withval" = builtin; then
3177                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3178                         else
3179                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3180 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3181    { (exit 1); exit 1; }; }
3182                         fi
3183
3184 else
3185
3186                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3187                         if test "x$LINE" != x ; then
3188                           eval "DEFAULT_$LINE"
3189                         else
3190                           no_cache=1
3191                         fi
3192
3193                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3194
3195 fi;
3196
3197           eval "$ac_cv_use_libxpm"
3198           if test "$no_cache" != 1; then
3199             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3200           fi
3201
3202           if test "$wxUSE_LIBXPM" = yes; then
3203             echo "$as_me:$LINENO: result: yes" >&5
3204 echo "${ECHO_T}yes" >&6
3205           elif test "$wxUSE_LIBXPM" = no; then
3206             echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3208           elif test "$wxUSE_LIBXPM" = sys; then
3209             echo "$as_me:$LINENO: result: system version" >&5
3210 echo "${ECHO_T}system version" >&6
3211           elif test "$wxUSE_LIBXPM" = builtin; then
3212             echo "$as_me:$LINENO: result: builtin version" >&5
3213 echo "${ECHO_T}builtin version" >&6
3214           else
3215             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3216 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3217    { (exit 1); exit 1; }; }
3218           fi
3219
3220
3221           withstring=
3222           echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3223 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3224           no_cache=0
3225
3226 # Check whether --with-libmspack or --without-libmspack was given.
3227 if test "${with_libmspack+set}" = set; then
3228   withval="$with_libmspack"
3229
3230                         if test "$withval" = yes; then
3231                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3232                         else
3233                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3234                         fi
3235
3236 else
3237
3238                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3239                         if test "x$LINE" != x ; then
3240                           eval "DEFAULT_$LINE"
3241                         else
3242                           no_cache=1
3243                         fi
3244
3245                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3246
3247 fi;
3248
3249           eval "$ac_cv_use_libmspack"
3250           if test "$no_cache" != 1; then
3251             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3252           fi
3253
3254           if test "$wxUSE_LIBMSPACK" = yes; then
3255             echo "$as_me:$LINENO: result: yes" >&5
3256 echo "${ECHO_T}yes" >&6
3257           else
3258             echo "$as_me:$LINENO: result: no" >&5
3259 echo "${ECHO_T}no" >&6
3260           fi
3261
3262
3263           withstring=
3264           echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3265 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3266           no_cache=0
3267
3268 # Check whether --with-sdl or --without-sdl was given.
3269 if test "${with_sdl+set}" = set; then
3270   withval="$with_sdl"
3271
3272                         if test "$withval" = yes; then
3273                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3274                         else
3275                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3276                         fi
3277
3278 else
3279
3280                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3281                         if test "x$LINE" != x ; then
3282                           eval "DEFAULT_$LINE"
3283                         else
3284                           no_cache=1
3285                         fi
3286
3287                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3288
3289 fi;
3290
3291           eval "$ac_cv_use_sdl"
3292           if test "$no_cache" != 1; then
3293             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3294           fi
3295
3296           if test "$wxUSE_LIBSDL" = yes; then
3297             echo "$as_me:$LINENO: result: yes" >&5
3298 echo "${ECHO_T}yes" >&6
3299           else
3300             echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6
3302           fi
3303
3304
3305           withstring=
3306           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3307 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3308           no_cache=0
3309
3310 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3311 if test "${with_gnomeprint+set}" = set; then
3312   withval="$with_gnomeprint"
3313
3314                         if test "$withval" = yes; then
3315                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3316                         else
3317                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3318                         fi
3319
3320 else
3321
3322                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3323                         if test "x$LINE" != x ; then
3324                           eval "DEFAULT_$LINE"
3325                         else
3326                           no_cache=1
3327                         fi
3328
3329                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3330
3331 fi;
3332
3333           eval "$ac_cv_use_gnomeprint"
3334           if test "$no_cache" != 1; then
3335             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3336           fi
3337
3338           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3339             echo "$as_me:$LINENO: result: yes" >&5
3340 echo "${ECHO_T}yes" >&6
3341           else
3342             echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3344           fi
3345
3346
3347           withstring=
3348           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3349 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3350           no_cache=0
3351
3352 # Check whether --with-gnomevfs or --without-gnomevfs was given.
3353 if test "${with_gnomevfs+set}" = set; then
3354   withval="$with_gnomevfs"
3355
3356                         if test "$withval" = yes; then
3357                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3358                         else
3359                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3360                         fi
3361
3362 else
3363
3364                         LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3365                         if test "x$LINE" != x ; then
3366                           eval "DEFAULT_$LINE"
3367                         else
3368                           no_cache=1
3369                         fi
3370
3371                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3372
3373 fi;
3374
3375           eval "$ac_cv_use_gnomevfs"
3376           if test "$no_cache" != 1; then
3377             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3378           fi
3379
3380           if test "$wxUSE_LIBGNOMEVFS" = yes; then
3381             echo "$as_me:$LINENO: result: yes" >&5
3382 echo "${ECHO_T}yes" >&6
3383           else
3384             echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386           fi
3387
3388
3389           withstring=
3390           echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3391 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3392           no_cache=0
3393
3394 # Check whether --with-hildon or --without-hildon was given.
3395 if test "${with_hildon+set}" = set; then
3396   withval="$with_hildon"
3397
3398                         if test "$withval" = yes; then
3399                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3400                         else
3401                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3402                         fi
3403
3404 else
3405
3406                         LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3407                         if test "x$LINE" != x ; then
3408                           eval "DEFAULT_$LINE"
3409                         else
3410                           no_cache=1
3411                         fi
3412
3413                         ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3414
3415 fi;
3416
3417           eval "$ac_cv_use_hildon"
3418           if test "$no_cache" != 1; then
3419             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3420           fi
3421
3422           if test "$wxUSE_LIBHILDON" = yes; then
3423             echo "$as_me:$LINENO: result: yes" >&5
3424 echo "${ECHO_T}yes" >&6
3425           else
3426             echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3428           fi
3429
3430
3431           withstring=
3432           echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3433 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3434           no_cache=0
3435
3436 # Check whether --with-opengl or --without-opengl was given.
3437 if test "${with_opengl+set}" = set; then
3438   withval="$with_opengl"
3439
3440                         if test "$withval" = yes; then
3441                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3442                         else
3443                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3444                         fi
3445
3446 else
3447
3448                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3449                         if test "x$LINE" != x ; then
3450                           eval "DEFAULT_$LINE"
3451                         else
3452                           no_cache=1
3453                         fi
3454
3455                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3456
3457 fi;
3458
3459           eval "$ac_cv_use_opengl"
3460           if test "$no_cache" != 1; then
3461             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3462           fi
3463
3464           if test "$wxUSE_OPENGL" = yes; then
3465             echo "$as_me:$LINENO: result: yes" >&5
3466 echo "${ECHO_T}yes" >&6
3467           else
3468             echo "$as_me:$LINENO: result: no" >&5
3469 echo "${ECHO_T}no" >&6
3470           fi
3471
3472
3473 if test "$wxUSE_UNIVERSAL" = "yes"; then
3474
3475 # Check whether --with-themes or --without-themes was given.
3476 if test "${with_themes+set}" = set; then
3477   withval="$with_themes"
3478   wxUNIV_THEMES="$withval"
3479 fi;
3480 fi
3481
3482 fi
3483
3484
3485           withstring=
3486           echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3487 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3488           no_cache=0
3489
3490 # Check whether --with-dmalloc or --without-dmalloc was given.
3491 if test "${with_dmalloc+set}" = set; then
3492   withval="$with_dmalloc"
3493
3494                         if test "$withval" = yes; then
3495                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3496                         else
3497                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3498                         fi
3499
3500 else
3501
3502                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3503                         if test "x$LINE" != x ; then
3504                           eval "DEFAULT_$LINE"
3505                         else
3506                           no_cache=1
3507                         fi
3508
3509                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3510
3511 fi;
3512
3513           eval "$ac_cv_use_dmalloc"
3514           if test "$no_cache" != 1; then
3515             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3516           fi
3517
3518           if test "$wxUSE_DMALLOC" = yes; then
3519             echo "$as_me:$LINENO: result: yes" >&5
3520 echo "${ECHO_T}yes" >&6
3521           else
3522             echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6
3524           fi
3525
3526
3527           echo "$as_me:$LINENO: checking for --with-regex" >&5
3528 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3529           no_cache=0
3530
3531 # Check whether --with-regex or --without-regex was given.
3532 if test "${with_regex+set}" = set; then
3533   withval="$with_regex"
3534
3535                         if test "$withval" = yes; then
3536                           ac_cv_use_regex='wxUSE_REGEX=yes'
3537                         elif test "$withval" = no; then
3538                           ac_cv_use_regex='wxUSE_REGEX=no'
3539                         elif test "$withval" = sys; then
3540                           ac_cv_use_regex='wxUSE_REGEX=sys'
3541                         elif test "$withval" = builtin; then
3542                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3543                         else
3544                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3545 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3546    { (exit 1); exit 1; }; }
3547                         fi
3548
3549 else
3550
3551                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3552                         if test "x$LINE" != x ; then
3553                           eval "DEFAULT_$LINE"
3554                         else
3555                           no_cache=1
3556                         fi
3557
3558                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3559
3560 fi;
3561
3562           eval "$ac_cv_use_regex"
3563           if test "$no_cache" != 1; then
3564             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3565           fi
3566
3567           if test "$wxUSE_REGEX" = yes; then
3568             echo "$as_me:$LINENO: result: yes" >&5
3569 echo "${ECHO_T}yes" >&6
3570           elif test "$wxUSE_REGEX" = no; then
3571             echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3573           elif test "$wxUSE_REGEX" = sys; then
3574             echo "$as_me:$LINENO: result: system version" >&5
3575 echo "${ECHO_T}system version" >&6
3576           elif test "$wxUSE_REGEX" = builtin; then
3577             echo "$as_me:$LINENO: result: builtin version" >&5
3578 echo "${ECHO_T}builtin version" >&6
3579           else
3580             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3581 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3582    { (exit 1); exit 1; }; }
3583           fi
3584
3585
3586           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3587 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3588           no_cache=0
3589
3590 # Check whether --with-zlib or --without-zlib was given.
3591 if test "${with_zlib+set}" = set; then
3592   withval="$with_zlib"
3593
3594                         if test "$withval" = yes; then
3595                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3596                         elif test "$withval" = no; then
3597                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3598                         elif test "$withval" = sys; then
3599                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3600                         elif test "$withval" = builtin; then
3601                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3602                         else
3603                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3604 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3605    { (exit 1); exit 1; }; }
3606                         fi
3607
3608 else
3609
3610                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3611                         if test "x$LINE" != x ; then
3612                           eval "DEFAULT_$LINE"
3613                         else
3614                           no_cache=1
3615                         fi
3616
3617                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3618
3619 fi;
3620
3621           eval "$ac_cv_use_zlib"
3622           if test "$no_cache" != 1; then
3623             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3624           fi
3625
3626           if test "$wxUSE_ZLIB" = yes; then
3627             echo "$as_me:$LINENO: result: yes" >&5
3628 echo "${ECHO_T}yes" >&6
3629           elif test "$wxUSE_ZLIB" = no; then
3630             echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3632           elif test "$wxUSE_ZLIB" = sys; then
3633             echo "$as_me:$LINENO: result: system version" >&5
3634 echo "${ECHO_T}system version" >&6
3635           elif test "$wxUSE_ZLIB" = builtin; then
3636             echo "$as_me:$LINENO: result: builtin version" >&5
3637 echo "${ECHO_T}builtin version" >&6
3638           else
3639             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3640 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3641    { (exit 1); exit 1; }; }
3642           fi
3643
3644
3645           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3646 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3647           no_cache=0
3648
3649 # Check whether --with-odbc or --without-odbc was given.
3650 if test "${with_odbc+set}" = set; then
3651   withval="$with_odbc"
3652
3653                         if test "$withval" = yes; then
3654                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3655                         elif test "$withval" = no; then
3656                           ac_cv_use_odbc='wxUSE_ODBC=no'
3657                         elif test "$withval" = sys; then
3658                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3659                         elif test "$withval" = builtin; then
3660                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3661                         else
3662                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3663 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3664    { (exit 1); exit 1; }; }
3665                         fi
3666
3667 else
3668
3669                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3670                         if test "x$LINE" != x ; then
3671                           eval "DEFAULT_$LINE"
3672                         else
3673                           no_cache=1
3674                         fi
3675
3676                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3677
3678 fi;
3679
3680           eval "$ac_cv_use_odbc"
3681           if test "$no_cache" != 1; then
3682             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3683           fi
3684
3685           if test "$wxUSE_ODBC" = yes; then
3686             echo "$as_me:$LINENO: result: yes" >&5
3687 echo "${ECHO_T}yes" >&6
3688           elif test "$wxUSE_ODBC" = no; then
3689             echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3691           elif test "$wxUSE_ODBC" = sys; then
3692             echo "$as_me:$LINENO: result: system version" >&5
3693 echo "${ECHO_T}system version" >&6
3694           elif test "$wxUSE_ODBC" = builtin; then
3695             echo "$as_me:$LINENO: result: builtin version" >&5
3696 echo "${ECHO_T}builtin version" >&6
3697           else
3698             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3699 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3700    { (exit 1); exit 1; }; }
3701           fi
3702
3703
3704           echo "$as_me:$LINENO: checking for --with-expat" >&5
3705 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3706           no_cache=0
3707
3708 # Check whether --with-expat or --without-expat was given.
3709 if test "${with_expat+set}" = set; then
3710   withval="$with_expat"
3711
3712                         if test "$withval" = yes; then
3713                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3714                         elif test "$withval" = no; then
3715                           ac_cv_use_expat='wxUSE_EXPAT=no'
3716                         elif test "$withval" = sys; then
3717                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3718                         elif test "$withval" = builtin; then
3719                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3720                         else
3721                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3722 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3723    { (exit 1); exit 1; }; }
3724                         fi
3725
3726 else
3727
3728                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3729                         if test "x$LINE" != x ; then
3730                           eval "DEFAULT_$LINE"
3731                         else
3732                           no_cache=1
3733                         fi
3734
3735                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3736
3737 fi;
3738
3739           eval "$ac_cv_use_expat"
3740           if test "$no_cache" != 1; then
3741             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3742           fi
3743
3744           if test "$wxUSE_EXPAT" = yes; then
3745             echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6
3747           elif test "$wxUSE_EXPAT" = no; then
3748             echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3750           elif test "$wxUSE_EXPAT" = sys; then
3751             echo "$as_me:$LINENO: result: system version" >&5
3752 echo "${ECHO_T}system version" >&6
3753           elif test "$wxUSE_EXPAT" = builtin; then
3754             echo "$as_me:$LINENO: result: builtin version" >&5
3755 echo "${ECHO_T}builtin version" >&6
3756           else
3757             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3758 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3759    { (exit 1); exit 1; }; }
3760           fi
3761
3762
3763
3764
3765           enablestring=
3766           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3767 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3768           no_cache=0
3769           # Check whether --enable-shared or --disable-shared was given.
3770 if test "${enable_shared+set}" = set; then
3771   enableval="$enable_shared"
3772
3773                           if test "$enableval" = yes; then
3774                             ac_cv_use_shared='wxUSE_SHARED=yes'
3775                           else
3776                             ac_cv_use_shared='wxUSE_SHARED=no'
3777                           fi
3778
3779 else
3780
3781                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3782                           if test "x$LINE" != x ; then
3783                             eval "DEFAULT_$LINE"
3784                           else
3785                             no_cache=1
3786                           fi
3787
3788                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3789
3790 fi;
3791
3792           eval "$ac_cv_use_shared"
3793           if test "$no_cache" != 1; then
3794             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3795           fi
3796
3797           if test "$wxUSE_SHARED" = yes; then
3798             echo "$as_me:$LINENO: result: yes" >&5
3799 echo "${ECHO_T}yes" >&6
3800           else
3801             echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6
3803           fi
3804
3805
3806           enablestring=
3807           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3808 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3809           no_cache=0
3810           # Check whether --enable-optimise or --disable-optimise was given.
3811 if test "${enable_optimise+set}" = set; then
3812   enableval="$enable_optimise"
3813
3814                           if test "$enableval" = yes; then
3815                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3816                           else
3817                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3818                           fi
3819
3820 else
3821
3822                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3823                           if test "x$LINE" != x ; then
3824                             eval "DEFAULT_$LINE"
3825                           else
3826                             no_cache=1
3827                           fi
3828
3829                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3830
3831 fi;
3832
3833           eval "$ac_cv_use_optimise"
3834           if test "$no_cache" != 1; then
3835             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3836           fi
3837
3838           if test "$wxUSE_OPTIMISE" = yes; then
3839             echo "$as_me:$LINENO: result: yes" >&5
3840 echo "${ECHO_T}yes" >&6
3841           else
3842             echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6
3844           fi
3845
3846
3847           enablestring=
3848           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3849 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3850           no_cache=0
3851           # Check whether --enable-debug or --disable-debug was given.
3852 if test "${enable_debug+set}" = set; then
3853   enableval="$enable_debug"
3854
3855                           if test "$enableval" = yes; then
3856                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3857                           else
3858                             ac_cv_use_debug='wxUSE_DEBUG=no'
3859                           fi
3860
3861 else
3862
3863                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3864                           if test "x$LINE" != x ; then
3865                             eval "DEFAULT_$LINE"
3866                           else
3867                             no_cache=1
3868                           fi
3869
3870                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3871
3872 fi;
3873
3874           eval "$ac_cv_use_debug"
3875           if test "$no_cache" != 1; then
3876             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3877           fi
3878
3879           if test "$wxUSE_DEBUG" = yes; then
3880             echo "$as_me:$LINENO: result: yes" >&5
3881 echo "${ECHO_T}yes" >&6
3882           else
3883             echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6
3885           fi
3886
3887
3888           enablestring=
3889           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3890 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3891           no_cache=0
3892           # Check whether --enable-stl or --disable-stl was given.
3893 if test "${enable_stl+set}" = set; then
3894   enableval="$enable_stl"
3895
3896                           if test "$enableval" = yes; then
3897                             ac_cv_use_stl='wxUSE_STL=yes'
3898                           else
3899                             ac_cv_use_stl='wxUSE_STL=no'
3900                           fi
3901
3902 else
3903
3904                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3905                           if test "x$LINE" != x ; then
3906                             eval "DEFAULT_$LINE"
3907                           else
3908                             no_cache=1
3909                           fi
3910
3911                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3912
3913 fi;
3914
3915           eval "$ac_cv_use_stl"
3916           if test "$no_cache" != 1; then
3917             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3918           fi
3919
3920           if test "$wxUSE_STL" = yes; then
3921             echo "$as_me:$LINENO: result: yes" >&5
3922 echo "${ECHO_T}yes" >&6
3923           else
3924             echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3926           fi
3927
3928 if test "$USE_OS2" = "1"; then
3929     DEFAULT_wxUSE_OMF=no
3930
3931           enablestring=
3932           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3933 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3934           no_cache=0
3935           # Check whether --enable-omf or --disable-omf was given.
3936 if test "${enable_omf+set}" = set; then
3937   enableval="$enable_omf"
3938
3939                           if test "$enableval" = yes; then
3940                             ac_cv_use_omf='wxUSE_OMF=yes'
3941                           else
3942                             ac_cv_use_omf='wxUSE_OMF=no'
3943                           fi
3944
3945 else
3946
3947                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3948                           if test "x$LINE" != x ; then
3949                             eval "DEFAULT_$LINE"
3950                           else
3951                             no_cache=1
3952                           fi
3953
3954                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3955
3956 fi;
3957
3958           eval "$ac_cv_use_omf"
3959           if test "$no_cache" != 1; then
3960             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3961           fi
3962
3963           if test "$wxUSE_OMF" = yes; then
3964             echo "$as_me:$LINENO: result: yes" >&5
3965 echo "${ECHO_T}yes" >&6
3966           else
3967             echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3969           fi
3970
3971 fi
3972
3973 if test "$wxUSE_DEBUG" = "yes"; then
3974   DEFAULT_wxUSE_DEBUG_FLAG=yes
3975   DEFAULT_wxUSE_DEBUG_INFO=yes
3976   BUILD=debug
3977 elif test "$wxUSE_DEBUG" = "no"; then
3978   DEFAULT_wxUSE_DEBUG_FLAG=no
3979   DEFAULT_wxUSE_DEBUG_INFO=no
3980   BUILD=release
3981 fi
3982
3983
3984           enablestring=
3985           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3986 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3987           no_cache=0
3988           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3989 if test "${enable_debug_flag+set}" = set; then
3990   enableval="$enable_debug_flag"
3991
3992                           if test "$enableval" = yes; then
3993                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3994                           else
3995                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3996                           fi
3997
3998 else
3999
4000                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4001                           if test "x$LINE" != x ; then
4002                             eval "DEFAULT_$LINE"
4003                           else
4004                             no_cache=1
4005                           fi
4006
4007                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4008
4009 fi;
4010
4011           eval "$ac_cv_use_debug_flag"
4012           if test "$no_cache" != 1; then
4013             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4014           fi
4015
4016           if test "$wxUSE_DEBUG_FLAG" = yes; then
4017             echo "$as_me:$LINENO: result: yes" >&5
4018 echo "${ECHO_T}yes" >&6
4019           else
4020             echo "$as_me:$LINENO: result: no" >&5
4021 echo "${ECHO_T}no" >&6
4022           fi
4023
4024
4025           enablestring=
4026           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4027 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4028           no_cache=0
4029           # Check whether --enable-debug_info or --disable-debug_info was given.
4030 if test "${enable_debug_info+set}" = set; then
4031   enableval="$enable_debug_info"
4032
4033                           if test "$enableval" = yes; then
4034                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4035                           else
4036                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4037                           fi
4038
4039 else
4040
4041                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4042                           if test "x$LINE" != x ; then
4043                             eval "DEFAULT_$LINE"
4044                           else
4045                             no_cache=1
4046                           fi
4047
4048                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4049
4050 fi;
4051
4052           eval "$ac_cv_use_debug_info"
4053           if test "$no_cache" != 1; then
4054             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4055           fi
4056
4057           if test "$wxUSE_DEBUG_INFO" = yes; then
4058             echo "$as_me:$LINENO: result: yes" >&5
4059 echo "${ECHO_T}yes" >&6
4060           else
4061             echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4063           fi
4064
4065
4066           enablestring=
4067           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4068 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4069           no_cache=0
4070           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4071 if test "${enable_debug_gdb+set}" = set; then
4072   enableval="$enable_debug_gdb"
4073
4074                           if test "$enableval" = yes; then
4075                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4076                           else
4077                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4078                           fi
4079
4080 else
4081
4082                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4083                           if test "x$LINE" != x ; then
4084                             eval "DEFAULT_$LINE"
4085                           else
4086                             no_cache=1
4087                           fi
4088
4089                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4090
4091 fi;
4092
4093           eval "$ac_cv_use_debug_gdb"
4094           if test "$no_cache" != 1; then
4095             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4096           fi
4097
4098           if test "$wxUSE_DEBUG_GDB" = yes; then
4099             echo "$as_me:$LINENO: result: yes" >&5
4100 echo "${ECHO_T}yes" >&6
4101           else
4102             echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4104           fi
4105
4106
4107           enablestring=
4108           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4109 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4110           no_cache=0
4111           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4112 if test "${enable_debug_cntxt+set}" = set; then
4113   enableval="$enable_debug_cntxt"
4114
4115                           if test "$enableval" = yes; then
4116                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4117                           else
4118                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4119                           fi
4120
4121 else
4122
4123                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4124                           if test "x$LINE" != x ; then
4125                             eval "DEFAULT_$LINE"
4126                           else
4127                             no_cache=1
4128                           fi
4129
4130                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4131
4132 fi;
4133
4134           eval "$ac_cv_use_debug_cntxt"
4135           if test "$no_cache" != 1; then
4136             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4137           fi
4138
4139           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4140             echo "$as_me:$LINENO: result: yes" >&5
4141 echo "${ECHO_T}yes" >&6
4142           else
4143             echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4145           fi
4146
4147
4148           enablestring=
4149           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4150 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4151           no_cache=0
4152           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4153 if test "${enable_mem_tracing+set}" = set; then
4154   enableval="$enable_mem_tracing"
4155
4156                           if test "$enableval" = yes; then
4157                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4158                           else
4159                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4160                           fi
4161
4162 else
4163
4164                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4165                           if test "x$LINE" != x ; then
4166                             eval "DEFAULT_$LINE"
4167                           else
4168                             no_cache=1
4169                           fi
4170
4171                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4172
4173 fi;
4174
4175           eval "$ac_cv_use_mem_tracing"
4176           if test "$no_cache" != 1; then
4177             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4178           fi
4179
4180           if test "$wxUSE_MEM_TRACING" = yes; then
4181             echo "$as_me:$LINENO: result: yes" >&5
4182 echo "${ECHO_T}yes" >&6
4183           else
4184             echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4186           fi
4187
4188
4189           enablestring=
4190           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4191 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4192           no_cache=0
4193           # Check whether --enable-profile or --disable-profile was given.
4194 if test "${enable_profile+set}" = set; then
4195   enableval="$enable_profile"
4196
4197                           if test "$enableval" = yes; then
4198                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4199                           else
4200                             ac_cv_use_profile='wxUSE_PROFILE=no'
4201                           fi
4202
4203 else
4204
4205                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4206                           if test "x$LINE" != x ; then
4207                             eval "DEFAULT_$LINE"
4208                           else
4209                             no_cache=1
4210                           fi
4211
4212                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4213
4214 fi;
4215
4216           eval "$ac_cv_use_profile"
4217           if test "$no_cache" != 1; then
4218             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4219           fi
4220
4221           if test "$wxUSE_PROFILE" = yes; then
4222             echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224           else
4225             echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6
4227           fi
4228
4229
4230           enablestring=
4231           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4232 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4233           no_cache=0
4234           # Check whether --enable-no_rtti or --disable-no_rtti was given.
4235 if test "${enable_no_rtti+set}" = set; then
4236   enableval="$enable_no_rtti"
4237
4238                           if test "$enableval" = yes; then
4239                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4240                           else
4241                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4242                           fi
4243
4244 else
4245
4246                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4247                           if test "x$LINE" != x ; then
4248                             eval "DEFAULT_$LINE"
4249                           else
4250                             no_cache=1
4251                           fi
4252
4253                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4254
4255 fi;
4256
4257           eval "$ac_cv_use_no_rtti"
4258           if test "$no_cache" != 1; then
4259             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4260           fi
4261
4262           if test "$wxUSE_NO_RTTI" = yes; then
4263             echo "$as_me:$LINENO: result: yes" >&5
4264 echo "${ECHO_T}yes" >&6
4265           else
4266             echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4268           fi
4269
4270
4271           enablestring=
4272           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4273 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4274           no_cache=0
4275           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4276 if test "${enable_no_exceptions+set}" = set; then
4277   enableval="$enable_no_exceptions"
4278
4279                           if test "$enableval" = yes; then
4280                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4281                           else
4282                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4283                           fi
4284
4285 else
4286
4287                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4288                           if test "x$LINE" != x ; then
4289                             eval "DEFAULT_$LINE"
4290                           else
4291                             no_cache=1
4292                           fi
4293
4294                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4295
4296 fi;
4297
4298           eval "$ac_cv_use_no_exceptions"
4299           if test "$no_cache" != 1; then
4300             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4301           fi
4302
4303           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4304             echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6
4306           else
4307             echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6
4309           fi
4310
4311
4312           enablestring=
4313           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4314 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4315           no_cache=0
4316           # Check whether --enable-permissive or --disable-permissive was given.
4317 if test "${enable_permissive+set}" = set; then
4318   enableval="$enable_permissive"
4319
4320                           if test "$enableval" = yes; then
4321                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4322                           else
4323                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4324                           fi
4325
4326 else
4327
4328                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4329                           if test "x$LINE" != x ; then
4330                             eval "DEFAULT_$LINE"
4331                           else
4332                             no_cache=1
4333                           fi
4334
4335                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4336
4337 fi;
4338
4339           eval "$ac_cv_use_permissive"
4340           if test "$no_cache" != 1; then
4341             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4342           fi
4343
4344           if test "$wxUSE_PERMISSIVE" = yes; then
4345             echo "$as_me:$LINENO: result: yes" >&5
4346 echo "${ECHO_T}yes" >&6
4347           else
4348             echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4350           fi
4351
4352
4353           enablestring=
4354           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4355 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4356           no_cache=0
4357           # Check whether --enable-no_deps or --disable-no_deps was given.
4358 if test "${enable_no_deps+set}" = set; then
4359   enableval="$enable_no_deps"
4360
4361                           if test "$enableval" = yes; then
4362                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4363                           else
4364                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4365                           fi
4366
4367 else
4368
4369                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4370                           if test "x$LINE" != x ; then
4371                             eval "DEFAULT_$LINE"
4372                           else
4373                             no_cache=1
4374                           fi
4375
4376                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4377
4378 fi;
4379
4380           eval "$ac_cv_use_no_deps"
4381           if test "$no_cache" != 1; then
4382             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4383           fi
4384
4385           if test "$wxUSE_NO_DEPS" = yes; then
4386             echo "$as_me:$LINENO: result: yes" >&5
4387 echo "${ECHO_T}yes" >&6
4388           else
4389             echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4391           fi
4392
4393
4394           enablestring=
4395           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4396 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4397           no_cache=0
4398           # Check whether --enable-universal_binary or --disable-universal_binary was given.
4399 if test "${enable_universal_binary+set}" = set; then
4400   enableval="$enable_universal_binary"
4401
4402                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
4403
4404 else
4405
4406                           LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4407                           if test "x$LINE" != x ; then
4408                             eval "DEFAULT_$LINE"
4409                             wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4410                           else
4411                             no_cache=1
4412                             wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
4413                           fi
4414
4415 fi;
4416
4417           eval "$wx_cv_use_universal_binary"
4418           if test "$no_cache" != 1; then
4419             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4420           fi
4421
4422           echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4423 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
4424
4425
4426
4427           enablestring=enable
4428           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4429 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4430           no_cache=0
4431           # Check whether --enable-compat24 or --disable-compat24 was given.
4432 if test "${enable_compat24+set}" = set; then
4433   enableval="$enable_compat24"
4434
4435                           if test "$enableval" = yes; then
4436                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4437                           else
4438                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4439                           fi
4440
4441 else
4442
4443                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4444                           if test "x$LINE" != x ; then
4445                             eval "DEFAULT_$LINE"
4446                           else
4447                             no_cache=1
4448                           fi
4449
4450                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4451
4452 fi;
4453
4454           eval "$ac_cv_use_compat24"
4455           if test "$no_cache" != 1; then
4456             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4457           fi
4458
4459           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4460             echo "$as_me:$LINENO: result: yes" >&5
4461 echo "${ECHO_T}yes" >&6
4462           else
4463             echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4465           fi
4466
4467
4468           enablestring=disable
4469           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4470 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4471           no_cache=0
4472           # Check whether --enable-compat26 or --disable-compat26 was given.
4473 if test "${enable_compat26+set}" = set; then
4474   enableval="$enable_compat26"
4475
4476                           if test "$enableval" = yes; then
4477                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4478                           else
4479                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4480                           fi
4481
4482 else
4483
4484                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4485                           if test "x$LINE" != x ; then
4486                             eval "DEFAULT_$LINE"
4487                           else
4488                             no_cache=1
4489                           fi
4490
4491                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4492
4493 fi;
4494
4495           eval "$ac_cv_use_compat26"
4496           if test "$no_cache" != 1; then
4497             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4498           fi
4499
4500           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4501             echo "$as_me:$LINENO: result: yes" >&5
4502 echo "${ECHO_T}yes" >&6
4503           else
4504             echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6
4506           fi
4507
4508
4509
4510           enablestring=
4511           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4512 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4513           no_cache=0
4514           # Check whether --enable-rpath or --disable-rpath was given.
4515 if test "${enable_rpath+set}" = set; then
4516   enableval="$enable_rpath"
4517
4518                           if test "$enableval" = yes; then
4519                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4520                           else
4521                             ac_cv_use_rpath='wxUSE_RPATH=no'
4522                           fi
4523
4524 else
4525
4526                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4527                           if test "x$LINE" != x ; then
4528                             eval "DEFAULT_$LINE"
4529                           else
4530                             no_cache=1
4531                           fi
4532
4533                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4534
4535 fi;
4536
4537           eval "$ac_cv_use_rpath"
4538           if test "$no_cache" != 1; then
4539             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4540           fi
4541
4542           if test "$wxUSE_RPATH" = yes; then
4543             echo "$as_me:$LINENO: result: yes" >&5
4544 echo "${ECHO_T}yes" >&6
4545           else
4546             echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6
4548           fi
4549
4550
4551
4552
4553
4554           enablestring=
4555           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4556 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4557           no_cache=0
4558           # Check whether --enable-intl or --disable-intl was given.
4559 if test "${enable_intl+set}" = set; then
4560   enableval="$enable_intl"
4561
4562                           if test "$enableval" = yes; then
4563                             ac_cv_use_intl='wxUSE_INTL=yes'
4564                           else
4565                             ac_cv_use_intl='wxUSE_INTL=no'
4566                           fi
4567
4568 else
4569
4570                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4571                           if test "x$LINE" != x ; then
4572                             eval "DEFAULT_$LINE"
4573                           else
4574                             no_cache=1
4575                           fi
4576
4577                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4578
4579 fi;
4580
4581           eval "$ac_cv_use_intl"
4582           if test "$no_cache" != 1; then
4583             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4584           fi
4585
4586           if test "$wxUSE_INTL" = yes; then
4587             echo "$as_me:$LINENO: result: yes" >&5
4588 echo "${ECHO_T}yes" >&6
4589           else
4590             echo "$as_me:$LINENO: result: no" >&5
4591 echo "${ECHO_T}no" >&6
4592           fi
4593
4594
4595           enablestring=
4596           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4597 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4598           no_cache=0
4599           # Check whether --enable-config or --disable-config was given.
4600 if test "${enable_config+set}" = set; then
4601   enableval="$enable_config"
4602
4603                           if test "$enableval" = yes; then
4604                             ac_cv_use_config='wxUSE_CONFIG=yes'
4605                           else
4606                             ac_cv_use_config='wxUSE_CONFIG=no'
4607                           fi
4608
4609 else
4610
4611                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4612                           if test "x$LINE" != x ; then
4613                             eval "DEFAULT_$LINE"
4614                           else
4615                             no_cache=1
4616                           fi
4617
4618                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4619
4620 fi;
4621
4622           eval "$ac_cv_use_config"
4623           if test "$no_cache" != 1; then
4624             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4625           fi
4626
4627           if test "$wxUSE_CONFIG" = yes; then
4628             echo "$as_me:$LINENO: result: yes" >&5
4629 echo "${ECHO_T}yes" >&6
4630           else
4631             echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6
4633           fi
4634
4635
4636
4637           enablestring=
4638           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4639 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4640           no_cache=0
4641           # Check whether --enable-protocols or --disable-protocols was given.
4642 if test "${enable_protocols+set}" = set; then
4643   enableval="$enable_protocols"
4644
4645                           if test "$enableval" = yes; then
4646                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4647                           else
4648                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4649                           fi
4650
4651 else
4652
4653                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4654                           if test "x$LINE" != x ; then
4655                             eval "DEFAULT_$LINE"
4656                           else
4657                             no_cache=1
4658                           fi
4659
4660                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4661
4662 fi;
4663
4664           eval "$ac_cv_use_protocols"
4665           if test "$no_cache" != 1; then
4666             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4667           fi
4668
4669           if test "$wxUSE_PROTOCOL" = yes; then
4670             echo "$as_me:$LINENO: result: yes" >&5
4671 echo "${ECHO_T}yes" >&6
4672           else
4673             echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6
4675           fi
4676
4677
4678           enablestring=
4679           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4680 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4681           no_cache=0
4682           # Check whether --enable-ftp or --disable-ftp was given.
4683 if test "${enable_ftp+set}" = set; then
4684   enableval="$enable_ftp"
4685
4686                           if test "$enableval" = yes; then
4687                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4688                           else
4689                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4690                           fi
4691
4692 else
4693
4694                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4695                           if test "x$LINE" != x ; then
4696                             eval "DEFAULT_$LINE"
4697                           else
4698                             no_cache=1
4699                           fi
4700
4701                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4702
4703 fi;
4704
4705           eval "$ac_cv_use_ftp"
4706           if test "$no_cache" != 1; then
4707             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4708           fi
4709
4710           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4711             echo "$as_me:$LINENO: result: yes" >&5
4712 echo "${ECHO_T}yes" >&6
4713           else
4714             echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4716           fi
4717
4718
4719           enablestring=
4720           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4721 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4722           no_cache=0
4723           # Check whether --enable-http or --disable-http was given.
4724 if test "${enable_http+set}" = set; then
4725   enableval="$enable_http"
4726
4727                           if test "$enableval" = yes; then
4728                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4729                           else
4730                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4731                           fi
4732
4733 else
4734
4735                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4736                           if test "x$LINE" != x ; then
4737                             eval "DEFAULT_$LINE"
4738                           else
4739                             no_cache=1
4740                           fi
4741
4742                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4743
4744 fi;
4745
4746           eval "$ac_cv_use_http"
4747           if test "$no_cache" != 1; then
4748             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4749           fi
4750
4751           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4752             echo "$as_me:$LINENO: result: yes" >&5
4753 echo "${ECHO_T}yes" >&6
4754           else
4755             echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6
4757           fi
4758
4759
4760           enablestring=
4761           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4762 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4763           no_cache=0
4764           # Check whether --enable-fileproto or --disable-fileproto was given.
4765 if test "${enable_fileproto+set}" = set; then
4766   enableval="$enable_fileproto"
4767
4768                           if test "$enableval" = yes; then
4769                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4770                           else
4771                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4772                           fi
4773
4774 else
4775
4776                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4777                           if test "x$LINE" != x ; then
4778                             eval "DEFAULT_$LINE"
4779                           else
4780                             no_cache=1
4781                           fi
4782
4783                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4784
4785 fi;
4786
4787           eval "$ac_cv_use_fileproto"
4788           if test "$no_cache" != 1; then
4789             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4790           fi
4791
4792           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4793             echo "$as_me:$LINENO: result: yes" >&5
4794 echo "${ECHO_T}yes" >&6
4795           else
4796             echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4798           fi
4799
4800
4801           enablestring=
4802           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4803 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4804           no_cache=0
4805           # Check whether --enable-sockets or --disable-sockets was given.
4806 if test "${enable_sockets+set}" = set; then
4807   enableval="$enable_sockets"
4808
4809                           if test "$enableval" = yes; then
4810                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4811                           else
4812                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4813                           fi
4814
4815 else
4816
4817                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4818                           if test "x$LINE" != x ; then
4819                             eval "DEFAULT_$LINE"
4820                           else
4821                             no_cache=1
4822                           fi
4823
4824                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4825
4826 fi;
4827
4828           eval "$ac_cv_use_sockets"
4829           if test "$no_cache" != 1; then
4830             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4831           fi
4832
4833           if test "$wxUSE_SOCKETS" = yes; then
4834             echo "$as_me:$LINENO: result: yes" >&5
4835 echo "${ECHO_T}yes" >&6
4836           else
4837             echo "$as_me:$LINENO: result: no" >&5
4838 echo "${ECHO_T}no" >&6
4839           fi
4840
4841
4842           enablestring=
4843           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4844 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4845           no_cache=0
4846           # Check whether --enable-ole or --disable-ole was given.
4847 if test "${enable_ole+set}" = set; then
4848   enableval="$enable_ole"
4849
4850                           if test "$enableval" = yes; then
4851                             ac_cv_use_ole='wxUSE_OLE=yes'
4852                           else
4853                             ac_cv_use_ole='wxUSE_OLE=no'
4854                           fi
4855
4856 else
4857
4858                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4859                           if test "x$LINE" != x ; then
4860                             eval "DEFAULT_$LINE"
4861                           else
4862                             no_cache=1
4863                           fi
4864
4865                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4866
4867 fi;
4868
4869           eval "$ac_cv_use_ole"
4870           if test "$no_cache" != 1; then
4871             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4872           fi
4873
4874           if test "$wxUSE_OLE" = yes; then
4875             echo "$as_me:$LINENO: result: yes" >&5
4876 echo "${ECHO_T}yes" >&6
4877           else
4878             echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6
4880           fi
4881
4882
4883           enablestring=
4884           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4885 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4886           no_cache=0
4887           # Check whether --enable-dataobj or --disable-dataobj was given.
4888 if test "${enable_dataobj+set}" = set; then
4889   enableval="$enable_dataobj"
4890
4891                           if test "$enableval" = yes; then
4892                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4893                           else
4894                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4895                           fi
4896
4897 else
4898
4899                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4900                           if test "x$LINE" != x ; then
4901                             eval "DEFAULT_$LINE"
4902                           else
4903                             no_cache=1
4904                           fi
4905
4906                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4907
4908 fi;
4909
4910           eval "$ac_cv_use_dataobj"
4911           if test "$no_cache" != 1; then
4912             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4913           fi
4914
4915           if test "$wxUSE_DATAOBJ" = yes; then
4916             echo "$as_me:$LINENO: result: yes" >&5
4917 echo "${ECHO_T}yes" >&6
4918           else
4919             echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6
4921           fi
4922
4923
4924
4925           enablestring=
4926           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4927 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4928           no_cache=0
4929           # Check whether --enable-ipc or --disable-ipc was given.
4930 if test "${enable_ipc+set}" = set; then
4931   enableval="$enable_ipc"
4932
4933                           if test "$enableval" = yes; then
4934                             ac_cv_use_ipc='wxUSE_IPC=yes'
4935                           else
4936                             ac_cv_use_ipc='wxUSE_IPC=no'
4937                           fi
4938
4939 else
4940
4941                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4942                           if test "x$LINE" != x ; then
4943                             eval "DEFAULT_$LINE"
4944                           else
4945                             no_cache=1
4946                           fi
4947
4948                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4949
4950 fi;
4951
4952           eval "$ac_cv_use_ipc"
4953           if test "$no_cache" != 1; then
4954             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4955           fi
4956
4957           if test "$wxUSE_IPC" = yes; then
4958             echo "$as_me:$LINENO: result: yes" >&5
4959 echo "${ECHO_T}yes" >&6
4960           else
4961             echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4963           fi
4964
4965
4966
4967           enablestring=
4968           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4969 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4970           no_cache=0
4971           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4972 if test "${enable_apple_ieee+set}" = set; then
4973   enableval="$enable_apple_ieee"
4974
4975                           if test "$enableval" = yes; then
4976                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4977                           else
4978                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4979                           fi
4980
4981 else
4982
4983                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4984                           if test "x$LINE" != x ; then
4985                             eval "DEFAULT_$LINE"
4986                           else
4987                             no_cache=1
4988                           fi
4989
4990                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4991
4992 fi;
4993
4994           eval "$ac_cv_use_apple_ieee"
4995           if test "$no_cache" != 1; then
4996             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4997           fi
4998
4999           if test "$wxUSE_APPLE_IEEE" = yes; then
5000             echo "$as_me:$LINENO: result: yes" >&5
5001 echo "${ECHO_T}yes" >&6
5002           else
5003             echo "$as_me:$LINENO: result: no" >&5
5004 echo "${ECHO_T}no" >&6
5005           fi
5006
5007
5008           enablestring=
5009           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5010 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5011           no_cache=0
5012           # Check whether --enable-arcstream or --disable-arcstream was given.
5013 if test "${enable_arcstream+set}" = set; then
5014   enableval="$enable_arcstream"
5015
5016                           if test "$enableval" = yes; then
5017                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
5018                           else
5019                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
5020                           fi
5021
5022 else
5023
5024                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
5025                           if test "x$LINE" != x ; then
5026                             eval "DEFAULT_$LINE"
5027                           else
5028                             no_cache=1
5029                           fi
5030
5031                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
5032
5033 fi;
5034
5035           eval "$ac_cv_use_arcstream"
5036           if test "$no_cache" != 1; then
5037             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5038           fi
5039
5040           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
5041             echo "$as_me:$LINENO: result: yes" >&5
5042 echo "${ECHO_T}yes" >&6
5043           else
5044             echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5046           fi
5047
5048
5049           enablestring=
5050           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5051 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
5052           no_cache=0
5053           # Check whether --enable-backtrace or --disable-backtrace was given.
5054 if test "${enable_backtrace+set}" = set; then
5055   enableval="$enable_backtrace"
5056
5057                           if test "$enableval" = yes; then
5058                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5059                           else
5060                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
5061                           fi
5062
5063 else
5064
5065                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
5066                           if test "x$LINE" != x ; then
5067                             eval "DEFAULT_$LINE"
5068                           else
5069                             no_cache=1
5070                           fi
5071
5072                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
5073
5074 fi;
5075
5076           eval "$ac_cv_use_backtrace"
5077           if test "$no_cache" != 1; then
5078             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5079           fi
5080
5081           if test "$wxUSE_STACKWALKER" = yes; then
5082             echo "$as_me:$LINENO: result: yes" >&5
5083 echo "${ECHO_T}yes" >&6
5084           else
5085             echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087           fi
5088
5089
5090           enablestring=
5091           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5092 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5093           no_cache=0
5094           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5095 if test "${enable_catch_segvs+set}" = set; then
5096   enableval="$enable_catch_segvs"
5097
5098                           if test "$enableval" = yes; then
5099                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5100                           else
5101                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5102                           fi
5103
5104 else
5105
5106                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5107                           if test "x$LINE" != x ; then
5108                             eval "DEFAULT_$LINE"
5109                           else
5110                             no_cache=1
5111                           fi
5112
5113                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5114
5115 fi;
5116
5117           eval "$ac_cv_use_catch_segvs"
5118           if test "$no_cache" != 1; then
5119             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5120           fi
5121
5122           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5123             echo "$as_me:$LINENO: result: yes" >&5
5124 echo "${ECHO_T}yes" >&6
5125           else
5126             echo "$as_me:$LINENO: result: no" >&5
5127 echo "${ECHO_T}no" >&6
5128           fi
5129
5130
5131           enablestring=
5132           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5133 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5134           no_cache=0
5135           # Check whether --enable-cmdline or --disable-cmdline was given.
5136 if test "${enable_cmdline+set}" = set; then
5137   enableval="$enable_cmdline"
5138
5139                           if test "$enableval" = yes; then
5140                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5141                           else
5142                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5143                           fi
5144
5145 else
5146
5147                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5148                           if test "x$LINE" != x ; then
5149                             eval "DEFAULT_$LINE"
5150                           else
5151                             no_cache=1
5152                           fi
5153
5154                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5155
5156 fi;
5157
5158           eval "$ac_cv_use_cmdline"
5159           if test "$no_cache" != 1; then
5160             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5161           fi
5162
5163           if test "$wxUSE_CMDLINE_PARSER" = yes; then
5164             echo "$as_me:$LINENO: result: yes" >&5
5165 echo "${ECHO_T}yes" >&6
5166           else
5167             echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6
5169           fi
5170
5171
5172           enablestring=
5173           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5174 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5175           no_cache=0
5176           # Check whether --enable-datetime or --disable-datetime was given.
5177 if test "${enable_datetime+set}" = set; then
5178   enableval="$enable_datetime"
5179
5180                           if test "$enableval" = yes; then
5181                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
5182                           else
5183                             ac_cv_use_datetime='wxUSE_DATETIME=no'
5184                           fi
5185
5186 else
5187
5188                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5189                           if test "x$LINE" != x ; then
5190                             eval "DEFAULT_$LINE"
5191                           else
5192                             no_cache=1
5193                           fi
5194
5195                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5196
5197 fi;
5198
5199           eval "$ac_cv_use_datetime"
5200           if test "$no_cache" != 1; then
5201             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5202           fi
5203
5204           if test "$wxUSE_DATETIME" = yes; then
5205             echo "$as_me:$LINENO: result: yes" >&5
5206 echo "${ECHO_T}yes" >&6
5207           else
5208             echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5210           fi
5211
5212
5213           enablestring=
5214           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5215 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5216           no_cache=0
5217           # Check whether --enable-debugreport or --disable-debugreport was given.
5218 if test "${enable_debugreport+set}" = set; then
5219   enableval="$enable_debugreport"
5220
5221                           if test "$enableval" = yes; then
5222                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5223                           else
5224                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5225                           fi
5226
5227 else
5228
5229                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5230                           if test "x$LINE" != x ; then
5231                             eval "DEFAULT_$LINE"
5232                           else
5233                             no_cache=1
5234                           fi
5235
5236                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5237
5238 fi;
5239
5240           eval "$ac_cv_use_debugreport"
5241           if test "$no_cache" != 1; then
5242             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5243           fi
5244
5245           if test "$wxUSE_DEBUGREPORT" = yes; then
5246             echo "$as_me:$LINENO: result: yes" >&5
5247 echo "${ECHO_T}yes" >&6
5248           else
5249             echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5251           fi
5252
5253
5254           enablestring=
5255           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5256 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5257           no_cache=0
5258           # Check whether --enable-dialupman or --disable-dialupman was given.
5259 if test "${enable_dialupman+set}" = set; then
5260   enableval="$enable_dialupman"
5261
5262                           if test "$enableval" = yes; then
5263                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5264                           else
5265                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5266                           fi
5267
5268 else
5269
5270                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5271                           if test "x$LINE" != x ; then
5272                             eval "DEFAULT_$LINE"
5273                           else
5274                             no_cache=1
5275                           fi
5276
5277                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5278
5279 fi;
5280
5281           eval "$ac_cv_use_dialupman"
5282           if test "$no_cache" != 1; then
5283             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5284           fi
5285
5286           if test "$wxUSE_DIALUP_MANAGER" = yes; then
5287             echo "$as_me:$LINENO: result: yes" >&5
5288 echo "${ECHO_T}yes" >&6
5289           else
5290             echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5292           fi
5293
5294
5295           enablestring=
5296           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5297 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5298           no_cache=0
5299           # Check whether --enable-dynlib or --disable-dynlib was given.
5300 if test "${enable_dynlib+set}" = set; then
5301   enableval="$enable_dynlib"
5302
5303                           if test "$enableval" = yes; then
5304                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5305                           else
5306                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5307                           fi
5308
5309 else
5310
5311                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5312                           if test "x$LINE" != x ; then
5313                             eval "DEFAULT_$LINE"
5314                           else
5315                             no_cache=1
5316                           fi
5317
5318                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5319
5320 fi;
5321
5322           eval "$ac_cv_use_dynlib"
5323           if test "$no_cache" != 1; then
5324             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5325           fi
5326
5327           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5328             echo "$as_me:$LINENO: result: yes" >&5
5329 echo "${ECHO_T}yes" >&6
5330           else
5331             echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5333           fi
5334
5335
5336           enablestring=
5337           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5338 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5339           no_cache=0
5340           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5341 if test "${enable_dynamicloader+set}" = set; then
5342   enableval="$enable_dynamicloader"
5343
5344                           if test "$enableval" = yes; then
5345                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5346                           else
5347                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5348                           fi
5349
5350 else
5351
5352                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5353                           if test "x$LINE" != x ; then
5354                             eval "DEFAULT_$LINE"
5355                           else
5356                             no_cache=1
5357                           fi
5358
5359                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5360
5361 fi;
5362
5363           eval "$ac_cv_use_dynamicloader"
5364           if test "$no_cache" != 1; then
5365             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5366           fi
5367
5368           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5369             echo "$as_me:$LINENO: result: yes" >&5
5370 echo "${ECHO_T}yes" >&6
5371           else
5372             echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5374           fi
5375
5376
5377           enablestring=
5378           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5379 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5380           no_cache=0
5381           # Check whether --enable-exceptions or --disable-exceptions was given.
5382 if test "${enable_exceptions+set}" = set; then
5383   enableval="$enable_exceptions"
5384
5385                           if test "$enableval" = yes; then
5386                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5387                           else
5388                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5389                           fi
5390
5391 else
5392
5393                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5394                           if test "x$LINE" != x ; then
5395                             eval "DEFAULT_$LINE"
5396                           else
5397                             no_cache=1
5398                           fi
5399
5400                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5401
5402 fi;
5403
5404           eval "$ac_cv_use_exceptions"
5405           if test "$no_cache" != 1; then
5406             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5407           fi
5408
5409           if test "$wxUSE_EXCEPTIONS" = yes; then
5410             echo "$as_me:$LINENO: result: yes" >&5
5411 echo "${ECHO_T}yes" >&6
5412           else
5413             echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5415           fi
5416
5417
5418           enablestring=
5419           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5420 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5421           no_cache=0
5422           # Check whether --enable-ffile or --disable-ffile was given.
5423 if test "${enable_ffile+set}" = set; then
5424   enableval="$enable_ffile"
5425
5426                           if test "$enableval" = yes; then
5427                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5428                           else
5429                             ac_cv_use_ffile='wxUSE_FFILE=no'
5430                           fi
5431
5432 else
5433
5434                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5435                           if test "x$LINE" != x ; then
5436                             eval "DEFAULT_$LINE"
5437                           else
5438                             no_cache=1
5439                           fi
5440
5441                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5442
5443 fi;
5444
5445           eval "$ac_cv_use_ffile"
5446           if test "$no_cache" != 1; then
5447             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5448           fi
5449
5450           if test "$wxUSE_FFILE" = yes; then
5451             echo "$as_me:$LINENO: result: yes" >&5
5452 echo "${ECHO_T}yes" >&6
5453           else
5454             echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6
5456           fi
5457
5458
5459           enablestring=
5460           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5461 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5462           no_cache=0
5463           # Check whether --enable-file or --disable-file was given.
5464 if test "${enable_file+set}" = set; then
5465   enableval="$enable_file"
5466
5467                           if test "$enableval" = yes; then
5468                             ac_cv_use_file='wxUSE_FILE=yes'
5469                           else
5470                             ac_cv_use_file='wxUSE_FILE=no'
5471                           fi
5472
5473 else
5474
5475                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5476                           if test "x$LINE" != x ; then
5477                             eval "DEFAULT_$LINE"
5478                           else
5479                             no_cache=1
5480                           fi
5481
5482                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5483
5484 fi;
5485
5486           eval "$ac_cv_use_file"
5487           if test "$no_cache" != 1; then
5488             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5489           fi
5490
5491           if test "$wxUSE_FILE" = yes; then
5492             echo "$as_me:$LINENO: result: yes" >&5
5493 echo "${ECHO_T}yes" >&6
5494           else
5495             echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6
5497           fi
5498
5499
5500           enablestring=
5501           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5502 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5503           no_cache=0
5504           # Check whether --enable-filesystem or --disable-filesystem was given.
5505 if test "${enable_filesystem+set}" = set; then
5506   enableval="$enable_filesystem"
5507
5508                           if test "$enableval" = yes; then
5509                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5510                           else
5511                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5512                           fi
5513
5514 else
5515
5516                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5517                           if test "x$LINE" != x ; then
5518                             eval "DEFAULT_$LINE"
5519                           else
5520                             no_cache=1
5521                           fi
5522
5523                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5524
5525 fi;
5526
5527           eval "$ac_cv_use_filesystem"
5528           if test "$no_cache" != 1; then
5529             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5530           fi
5531
5532           if test "$wxUSE_FILESYSTEM" = yes; then
5533             echo "$as_me:$LINENO: result: yes" >&5
5534 echo "${ECHO_T}yes" >&6
5535           else
5536             echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6
5538           fi
5539
5540
5541           enablestring=
5542           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5543 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5544           no_cache=0
5545           # Check whether --enable-fontmap or --disable-fontmap was given.
5546 if test "${enable_fontmap+set}" = set; then
5547   enableval="$enable_fontmap"
5548
5549                           if test "$enableval" = yes; then
5550                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5551                           else
5552                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5553                           fi
5554
5555 else
5556
5557                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5558                           if test "x$LINE" != x ; then
5559                             eval "DEFAULT_$LINE"
5560                           else
5561                             no_cache=1
5562                           fi
5563
5564                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5565
5566 fi;
5567
5568           eval "$ac_cv_use_fontmap"
5569           if test "$no_cache" != 1; then
5570             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5571           fi
5572
5573           if test "$wxUSE_FONTMAP" = yes; then
5574             echo "$as_me:$LINENO: result: yes" >&5
5575 echo "${ECHO_T}yes" >&6
5576           else
5577             echo "$as_me:$LINENO: result: no" >&5
5578 echo "${ECHO_T}no" >&6
5579           fi
5580
5581
5582           enablestring=
5583           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5584 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5585           no_cache=0
5586           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5587 if test "${enable_fs_inet+set}" = set; then
5588   enableval="$enable_fs_inet"
5589
5590                           if test "$enableval" = yes; then
5591                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5592                           else
5593                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5594                           fi
5595
5596 else
5597
5598                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5599                           if test "x$LINE" != x ; then
5600                             eval "DEFAULT_$LINE"
5601                           else
5602                             no_cache=1
5603                           fi
5604
5605                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5606
5607 fi;
5608
5609           eval "$ac_cv_use_fs_inet"
5610           if test "$no_cache" != 1; then
5611             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5612           fi
5613
5614           if test "$wxUSE_FS_INET" = yes; then
5615             echo "$as_me:$LINENO: result: yes" >&5
5616 echo "${ECHO_T}yes" >&6
5617           else
5618             echo "$as_me:$LINENO: result: no" >&5
5619 echo "${ECHO_T}no" >&6
5620           fi
5621
5622
5623           enablestring=
5624           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5625 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5626           no_cache=0
5627           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5628 if test "${enable_fs_zip+set}" = set; then
5629   enableval="$enable_fs_zip"
5630
5631                           if test "$enableval" = yes; then
5632                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5633                           else
5634                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5635                           fi
5636
5637 else
5638
5639                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5640                           if test "x$LINE" != x ; then
5641                             eval "DEFAULT_$LINE"
5642                           else
5643                             no_cache=1
5644                           fi
5645
5646                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5647
5648 fi;
5649
5650           eval "$ac_cv_use_fs_zip"
5651           if test "$no_cache" != 1; then
5652             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5653           fi
5654
5655           if test "$wxUSE_FS_ZIP" = yes; then
5656             echo "$as_me:$LINENO: result: yes" >&5
5657 echo "${ECHO_T}yes" >&6
5658           else
5659             echo "$as_me:$LINENO: result: no" >&5
5660 echo "${ECHO_T}no" >&6
5661           fi
5662
5663
5664           enablestring=
5665           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5666 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5667           no_cache=0
5668           # Check whether --enable-geometry or --disable-geometry was given.
5669 if test "${enable_geometry+set}" = set; then
5670   enableval="$enable_geometry"
5671
5672                           if test "$enableval" = yes; then
5673                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5674                           else
5675                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5676                           fi
5677
5678 else
5679
5680                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5681                           if test "x$LINE" != x ; then
5682                             eval "DEFAULT_$LINE"
5683                           else
5684                             no_cache=1
5685                           fi
5686
5687                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5688
5689 fi;
5690
5691           eval "$ac_cv_use_geometry"
5692           if test "$no_cache" != 1; then
5693             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5694           fi
5695
5696           if test "$wxUSE_GEOMETRY" = yes; then
5697             echo "$as_me:$LINENO: result: yes" >&5
5698 echo "${ECHO_T}yes" >&6
5699           else
5700             echo "$as_me:$LINENO: result: no" >&5
5701 echo "${ECHO_T}no" >&6
5702           fi
5703
5704
5705           enablestring=
5706           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5707 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5708           no_cache=0
5709           # Check whether --enable-log or --disable-log was given.
5710 if test "${enable_log+set}" = set; then
5711   enableval="$enable_log"
5712
5713                           if test "$enableval" = yes; then
5714                             ac_cv_use_log='wxUSE_LOG=yes'
5715                           else
5716                             ac_cv_use_log='wxUSE_LOG=no'
5717                           fi
5718
5719 else
5720
5721                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5722                           if test "x$LINE" != x ; then
5723                             eval "DEFAULT_$LINE"
5724                           else
5725                             no_cache=1
5726                           fi
5727
5728                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5729
5730 fi;
5731
5732           eval "$ac_cv_use_log"
5733           if test "$no_cache" != 1; then
5734             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5735           fi
5736
5737           if test "$wxUSE_LOG" = yes; then
5738             echo "$as_me:$LINENO: result: yes" >&5
5739 echo "${ECHO_T}yes" >&6
5740           else
5741             echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6
5743           fi
5744
5745
5746           enablestring=
5747           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5748 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5749           no_cache=0
5750           # Check whether --enable-longlong or --disable-longlong was given.
5751 if test "${enable_longlong+set}" = set; then
5752   enableval="$enable_longlong"
5753
5754                           if test "$enableval" = yes; then
5755                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5756                           else
5757                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5758                           fi
5759
5760 else
5761
5762                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5763                           if test "x$LINE" != x ; then
5764                             eval "DEFAULT_$LINE"
5765                           else
5766                             no_cache=1
5767                           fi
5768
5769                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5770
5771 fi;
5772
5773           eval "$ac_cv_use_longlong"
5774           if test "$no_cache" != 1; then
5775             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5776           fi
5777
5778           if test "$wxUSE_LONGLONG" = yes; then
5779             echo "$as_me:$LINENO: result: yes" >&5
5780 echo "${ECHO_T}yes" >&6
5781           else
5782             echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6
5784           fi
5785
5786
5787           enablestring=
5788           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5789 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5790           no_cache=0
5791           # Check whether --enable-mimetype or --disable-mimetype was given.
5792 if test "${enable_mimetype+set}" = set; then
5793   enableval="$enable_mimetype"
5794
5795                           if test "$enableval" = yes; then
5796                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5797                           else
5798                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5799                           fi
5800
5801 else
5802
5803                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5804                           if test "x$LINE" != x ; then
5805                             eval "DEFAULT_$LINE"
5806                           else
5807                             no_cache=1
5808                           fi
5809
5810                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5811
5812 fi;
5813
5814           eval "$ac_cv_use_mimetype"
5815           if test "$no_cache" != 1; then
5816             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5817           fi
5818
5819           if test "$wxUSE_MIMETYPE" = yes; then
5820             echo "$as_me:$LINENO: result: yes" >&5
5821 echo "${ECHO_T}yes" >&6
5822           else
5823             echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5825           fi
5826
5827
5828           enablestring=
5829           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5830 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5831           no_cache=0
5832           # Check whether --enable-mslu or --disable-mslu was given.
5833 if test "${enable_mslu+set}" = set; then
5834   enableval="$enable_mslu"
5835
5836                           if test "$enableval" = yes; then
5837                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5838                           else
5839                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5840                           fi
5841
5842 else
5843
5844                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5845                           if test "x$LINE" != x ; then
5846                             eval "DEFAULT_$LINE"
5847                           else
5848                             no_cache=1
5849                           fi
5850
5851                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5852
5853 fi;
5854
5855           eval "$ac_cv_use_mslu"
5856           if test "$no_cache" != 1; then
5857             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5858           fi
5859
5860           if test "$wxUSE_UNICODE_MSLU" = yes; then
5861             echo "$as_me:$LINENO: result: yes" >&5
5862 echo "${ECHO_T}yes" >&6
5863           else
5864             echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866           fi
5867
5868
5869           enablestring=
5870           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5871 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5872           no_cache=0
5873           # Check whether --enable-snglinst or --disable-snglinst was given.
5874 if test "${enable_snglinst+set}" = set; then
5875   enableval="$enable_snglinst"
5876
5877                           if test "$enableval" = yes; then
5878                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5879                           else
5880                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5881                           fi
5882
5883 else
5884
5885                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5886                           if test "x$LINE" != x ; then
5887                             eval "DEFAULT_$LINE"
5888                           else
5889                             no_cache=1
5890                           fi
5891
5892                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5893
5894 fi;
5895
5896           eval "$ac_cv_use_snglinst"
5897           if test "$no_cache" != 1; then
5898             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5899           fi
5900
5901           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5902             echo "$as_me:$LINENO: result: yes" >&5
5903 echo "${ECHO_T}yes" >&6
5904           else
5905             echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907           fi
5908
5909
5910           enablestring=
5911           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5912 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5913           no_cache=0
5914           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5915 if test "${enable_std_iostreams+set}" = set; then
5916   enableval="$enable_std_iostreams"
5917
5918                           if test "$enableval" = yes; then
5919                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5920                           else
5921                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5922                           fi
5923
5924 else
5925
5926                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5927                           if test "x$LINE" != x ; then
5928                             eval "DEFAULT_$LINE"
5929                           else
5930                             no_cache=1
5931                           fi
5932
5933                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5934
5935 fi;
5936
5937           eval "$ac_cv_use_std_iostreams"
5938           if test "$no_cache" != 1; then
5939             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5940           fi
5941
5942           if test "$wxUSE_STD_IOSTREAM" = yes; then
5943             echo "$as_me:$LINENO: result: yes" >&5
5944 echo "${ECHO_T}yes" >&6
5945           else
5946             echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6
5948           fi
5949
5950
5951           enablestring=
5952           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5953 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5954           no_cache=0
5955           # Check whether --enable-std_string or --disable-std_string was given.
5956 if test "${enable_std_string+set}" = set; then
5957   enableval="$enable_std_string"
5958
5959                           if test "$enableval" = yes; then
5960                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5961                           else
5962                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5963                           fi
5964
5965 else
5966
5967                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5968                           if test "x$LINE" != x ; then
5969                             eval "DEFAULT_$LINE"
5970                           else
5971                             no_cache=1
5972                           fi
5973
5974                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5975
5976 fi;
5977
5978           eval "$ac_cv_use_std_string"
5979           if test "$no_cache" != 1; then
5980             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5981           fi
5982
5983           if test "$wxUSE_STD_STRING" = yes; then
5984             echo "$as_me:$LINENO: result: yes" >&5
5985 echo "${ECHO_T}yes" >&6
5986           else
5987             echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6
5989           fi
5990
5991
5992           enablestring=
5993           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5994 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5995           no_cache=0
5996           # Check whether --enable-stdpaths or --disable-stdpaths was given.
5997 if test "${enable_stdpaths+set}" = set; then
5998   enableval="$enable_stdpaths"
5999
6000                           if test "$enableval" = yes; then
6001                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
6002                           else
6003                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
6004                           fi
6005
6006 else
6007
6008                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
6009                           if test "x$LINE" != x ; then
6010                             eval "DEFAULT_$LINE"
6011                           else
6012                             no_cache=1
6013                           fi
6014
6015                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
6016
6017 fi;
6018
6019           eval "$ac_cv_use_stdpaths"
6020           if test "$no_cache" != 1; then
6021             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
6022           fi
6023
6024           if test "$wxUSE_STDPATHS" = yes; then
6025             echo "$as_me:$LINENO: result: yes" >&5
6026 echo "${ECHO_T}yes" >&6
6027           else
6028             echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6
6030           fi
6031
6032
6033           enablestring=
6034           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6035 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6036           no_cache=0
6037           # Check whether --enable-stopwatch or --disable-stopwatch was given.
6038 if test "${enable_stopwatch+set}" = set; then
6039   enableval="$enable_stopwatch"
6040
6041                           if test "$enableval" = yes; then
6042                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6043                           else
6044                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6045                           fi
6046
6047 else
6048
6049                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6050                           if test "x$LINE" != x ; then
6051                             eval "DEFAULT_$LINE"
6052                           else
6053                             no_cache=1
6054                           fi
6055
6056                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6057
6058 fi;
6059
6060           eval "$ac_cv_use_stopwatch"
6061           if test "$no_cache" != 1; then
6062             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6063           fi
6064
6065           if test "$wxUSE_STOPWATCH" = yes; then
6066             echo "$as_me:$LINENO: result: yes" >&5
6067 echo "${ECHO_T}yes" >&6
6068           else
6069             echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6
6071           fi
6072
6073
6074           enablestring=
6075           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6076 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6077           no_cache=0
6078           # Check whether --enable-streams or --disable-streams was given.
6079 if test "${enable_streams+set}" = set; then
6080   enableval="$enable_streams"
6081
6082                           if test "$enableval" = yes; then
6083                             ac_cv_use_streams='wxUSE_STREAMS=yes'
6084                           else
6085                             ac_cv_use_streams='wxUSE_STREAMS=no'
6086                           fi
6087
6088 else
6089
6090                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6091                           if test "x$LINE" != x ; then
6092                             eval "DEFAULT_$LINE"
6093                           else
6094                             no_cache=1
6095                           fi
6096
6097                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6098
6099 fi;
6100
6101           eval "$ac_cv_use_streams"
6102           if test "$no_cache" != 1; then
6103             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6104           fi
6105
6106           if test "$wxUSE_STREAMS" = yes; then
6107             echo "$as_me:$LINENO: result: yes" >&5
6108 echo "${ECHO_T}yes" >&6
6109           else
6110             echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6
6112           fi
6113
6114
6115           enablestring=
6116           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6117 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6118           no_cache=0
6119           # Check whether --enable-system_options or --disable-system_options was given.
6120 if test "${enable_system_options+set}" = set; then
6121   enableval="$enable_system_options"
6122
6123                           if test "$enableval" = yes; then
6124                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6125                           else
6126                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6127                           fi
6128
6129 else
6130
6131                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6132                           if test "x$LINE" != x ; then
6133                             eval "DEFAULT_$LINE"
6134                           else
6135                             no_cache=1
6136                           fi
6137
6138                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6139
6140 fi;
6141
6142           eval "$ac_cv_use_system_options"
6143           if test "$no_cache" != 1; then
6144             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6145           fi
6146
6147           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6148             echo "$as_me:$LINENO: result: yes" >&5
6149 echo "${ECHO_T}yes" >&6
6150           else
6151             echo "$as_me:$LINENO: result: no" >&5
6152 echo "${ECHO_T}no" >&6
6153           fi
6154
6155
6156           enablestring=
6157           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6158 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6159           no_cache=0
6160           # Check whether --enable-textbuf or --disable-textbuf was given.
6161 if test "${enable_textbuf+set}" = set; then
6162   enableval="$enable_textbuf"
6163
6164                           if test "$enableval" = yes; then
6165                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6166                           else
6167                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6168                           fi
6169
6170 else
6171
6172                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6173                           if test "x$LINE" != x ; then
6174                             eval "DEFAULT_$LINE"
6175                           else
6176                             no_cache=1
6177                           fi
6178
6179                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6180
6181 fi;
6182
6183           eval "$ac_cv_use_textbuf"
6184           if test "$no_cache" != 1; then
6185             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6186           fi
6187
6188           if test "$wxUSE_TEXTBUFFER" = yes; then
6189             echo "$as_me:$LINENO: result: yes" >&5
6190 echo "${ECHO_T}yes" >&6
6191           else
6192             echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6
6194           fi
6195
6196
6197           enablestring=
6198           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6199 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6200           no_cache=0
6201           # Check whether --enable-textfile or --disable-textfile was given.
6202 if test "${enable_textfile+set}" = set; then
6203   enableval="$enable_textfile"
6204
6205                           if test "$enableval" = yes; then
6206                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6207                           else
6208                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6209                           fi
6210
6211 else
6212
6213                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6214                           if test "x$LINE" != x ; then
6215                             eval "DEFAULT_$LINE"
6216                           else
6217                             no_cache=1
6218                           fi
6219
6220                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6221
6222 fi;
6223
6224           eval "$ac_cv_use_textfile"
6225           if test "$no_cache" != 1; then
6226             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6227           fi
6228
6229           if test "$wxUSE_TEXTFILE" = yes; then
6230             echo "$as_me:$LINENO: result: yes" >&5
6231 echo "${ECHO_T}yes" >&6
6232           else
6233             echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6
6235           fi
6236
6237
6238           enablestring=
6239           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6240 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6241           no_cache=0
6242           # Check whether --enable-timer or --disable-timer was given.
6243 if test "${enable_timer+set}" = set; then
6244   enableval="$enable_timer"
6245
6246                           if test "$enableval" = yes; then
6247                             ac_cv_use_timer='wxUSE_TIMER=yes'
6248                           else
6249                             ac_cv_use_timer='wxUSE_TIMER=no'
6250                           fi
6251
6252 else
6253
6254                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6255                           if test "x$LINE" != x ; then
6256                             eval "DEFAULT_$LINE"
6257                           else
6258                             no_cache=1
6259                           fi
6260
6261                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6262
6263 fi;
6264
6265           eval "$ac_cv_use_timer"
6266           if test "$no_cache" != 1; then
6267             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6268           fi
6269
6270           if test "$wxUSE_TIMER" = yes; then
6271             echo "$as_me:$LINENO: result: yes" >&5
6272 echo "${ECHO_T}yes" >&6
6273           else
6274             echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6
6276           fi
6277
6278
6279           enablestring=
6280           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6281 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6282           no_cache=0
6283           # Check whether --enable-unicode or --disable-unicode was given.
6284 if test "${enable_unicode+set}" = set; then
6285   enableval="$enable_unicode"
6286
6287                           if test "$enableval" = yes; then
6288                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
6289                           else
6290                             ac_cv_use_unicode='wxUSE_UNICODE=no'
6291                           fi
6292
6293 else
6294
6295                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6296                           if test "x$LINE" != x ; then
6297                             eval "DEFAULT_$LINE"
6298                           else
6299                             no_cache=1
6300                           fi
6301
6302                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6303
6304 fi;
6305
6306           eval "$ac_cv_use_unicode"
6307           if test "$no_cache" != 1; then
6308             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6309           fi
6310
6311           if test "$wxUSE_UNICODE" = yes; then
6312             echo "$as_me:$LINENO: result: yes" >&5
6313 echo "${ECHO_T}yes" >&6
6314           else
6315             echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6
6317           fi
6318
6319
6320           enablestring=
6321           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6322 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6323           no_cache=0
6324           # Check whether --enable-sound or --disable-sound was given.
6325 if test "${enable_sound+set}" = set; then
6326   enableval="$enable_sound"
6327
6328                           if test "$enableval" = yes; then
6329                             ac_cv_use_sound='wxUSE_SOUND=yes'
6330                           else
6331                             ac_cv_use_sound='wxUSE_SOUND=no'
6332                           fi
6333
6334 else
6335
6336                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6337                           if test "x$LINE" != x ; then
6338                             eval "DEFAULT_$LINE"
6339                           else
6340                             no_cache=1
6341                           fi
6342
6343                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6344
6345 fi;
6346
6347           eval "$ac_cv_use_sound"
6348           if test "$no_cache" != 1; then
6349             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6350           fi
6351
6352           if test "$wxUSE_SOUND" = yes; then
6353             echo "$as_me:$LINENO: result: yes" >&5
6354 echo "${ECHO_T}yes" >&6
6355           else
6356             echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6358           fi
6359
6360
6361           enablestring=
6362           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6363 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6364           no_cache=0
6365           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6366 if test "${enable_mediactrl+set}" = set; then
6367   enableval="$enable_mediactrl"
6368
6369                           if test "$enableval" = yes; then
6370                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6371                           else
6372                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6373                           fi
6374
6375 else
6376
6377                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6378                           if test "x$LINE" != x ; then
6379                             eval "DEFAULT_$LINE"
6380                           else
6381                             no_cache=1
6382                           fi
6383
6384                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6385
6386 fi;
6387
6388           eval "$ac_cv_use_mediactrl"
6389           if test "$no_cache" != 1; then
6390             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6391           fi
6392
6393           if test "$wxUSE_MEDIACTRL" = yes; then
6394             echo "$as_me:$LINENO: result: yes" >&5
6395 echo "${ECHO_T}yes" >&6
6396           else
6397             echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6
6399           fi
6400
6401
6402           enablestring=
6403           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6404 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6405           no_cache=0
6406           # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6407 if test "${enable_gstreamer8+set}" = set; then
6408   enableval="$enable_gstreamer8"
6409
6410                           if test "$enableval" = yes; then
6411                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6412                           else
6413                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6414                           fi
6415
6416 else
6417
6418                           LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6419                           if test "x$LINE" != x ; then
6420                             eval "DEFAULT_$LINE"
6421                           else
6422                             no_cache=1
6423                           fi
6424
6425                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6426
6427 fi;
6428
6429           eval "$ac_cv_use_gstreamer8"
6430           if test "$no_cache" != 1; then
6431             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6432           fi
6433
6434           if test "$wxUSE_GSTREAMER8" = yes; then
6435             echo "$as_me:$LINENO: result: yes" >&5
6436 echo "${ECHO_T}yes" >&6
6437           else
6438             echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6
6440           fi
6441
6442
6443           enablestring=
6444           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6445 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
6446           no_cache=0
6447           # Check whether --enable-printfposparam or --disable-printfposparam was given.
6448 if test "${enable_printfposparam+set}" = set; then
6449   enableval="$enable_printfposparam"
6450
6451                           if test "$enableval" = yes; then
6452                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
6453                           else
6454                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
6455                           fi
6456
6457 else
6458
6459                           LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
6460                           if test "x$LINE" != x ; then
6461                             eval "DEFAULT_$LINE"
6462                           else
6463                             no_cache=1
6464                           fi
6465
6466                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
6467
6468 fi;
6469
6470           eval "$ac_cv_use_printfposparam"
6471           if test "$no_cache" != 1; then
6472             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
6473           fi
6474
6475           if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
6476             echo "$as_me:$LINENO: result: yes" >&5
6477 echo "${ECHO_T}yes" >&6
6478           else
6479             echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6
6481           fi
6482
6483
6484           enablestring=
6485           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6486 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6487           no_cache=0
6488           # Check whether --enable-zipstream or --disable-zipstream was given.
6489 if test "${enable_zipstream+set}" = set; then
6490   enableval="$enable_zipstream"
6491
6492                           if test "$enableval" = yes; then
6493                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6494                           else
6495                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6496                           fi
6497
6498 else
6499
6500                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6501                           if test "x$LINE" != x ; then
6502                             eval "DEFAULT_$LINE"
6503                           else
6504                             no_cache=1
6505                           fi
6506
6507                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6508
6509 fi;
6510
6511           eval "$ac_cv_use_zipstream"
6512           if test "$no_cache" != 1; then
6513             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6514           fi
6515
6516           if test "$wxUSE_ZIPSTREAM" = yes; then
6517             echo "$as_me:$LINENO: result: yes" >&5
6518 echo "${ECHO_T}yes" >&6
6519           else
6520             echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6
6522           fi
6523
6524
6525
6526           enablestring=
6527           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6528 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6529           no_cache=0
6530           # Check whether --enable-url or --disable-url was given.
6531 if test "${enable_url+set}" = set; then
6532   enableval="$enable_url"
6533
6534                           if test "$enableval" = yes; then
6535                             ac_cv_use_url='wxUSE_URL=yes'
6536                           else
6537                             ac_cv_use_url='wxUSE_URL=no'
6538                           fi
6539
6540 else
6541
6542                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6543                           if test "x$LINE" != x ; then
6544                             eval "DEFAULT_$LINE"
6545                           else
6546                             no_cache=1
6547                           fi
6548
6549                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6550
6551 fi;
6552
6553           eval "$ac_cv_use_url"
6554           if test "$no_cache" != 1; then
6555             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6556           fi
6557
6558           if test "$wxUSE_URL" = yes; then
6559             echo "$as_me:$LINENO: result: yes" >&5
6560 echo "${ECHO_T}yes" >&6
6561           else
6562             echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6
6564           fi
6565
6566
6567           enablestring=
6568           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6569 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6570           no_cache=0
6571           # Check whether --enable-variant or --disable-variant was given.
6572 if test "${enable_variant+set}" = set; then
6573   enableval="$enable_variant"
6574
6575                           if test "$enableval" = yes; then
6576                             ac_cv_use_variant='wxUSE_VARIANT=yes'
6577                           else
6578                             ac_cv_use_variant='wxUSE_VARIANT=no'
6579                           fi
6580
6581 else
6582
6583                           LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6584                           if test "x$LINE" != x ; then
6585                             eval "DEFAULT_$LINE"
6586                           else
6587                             no_cache=1
6588                           fi
6589
6590                           ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6591
6592 fi;
6593
6594           eval "$ac_cv_use_variant"
6595           if test "$no_cache" != 1; then
6596             echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6597           fi
6598
6599           if test "$wxUSE_VARIANT" = yes; then
6600             echo "$as_me:$LINENO: result: yes" >&5
6601 echo "${ECHO_T}yes" >&6
6602           else
6603             echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6
6605           fi
6606
6607
6608           enablestring=
6609           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6610 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6611           no_cache=0
6612           # Check whether --enable-protocol or --disable-protocol was given.
6613 if test "${enable_protocol+set}" = set; then
6614   enableval="$enable_protocol"
6615
6616                           if test "$enableval" = yes; then
6617                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6618                           else
6619                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6620                           fi
6621
6622 else
6623
6624                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6625                           if test "x$LINE" != x ; then
6626                             eval "DEFAULT_$LINE"
6627                           else
6628                             no_cache=1
6629                           fi
6630
6631                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6632
6633 fi;
6634
6635           eval "$ac_cv_use_protocol"
6636           if test "$no_cache" != 1; then
6637             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6638           fi
6639
6640           if test "$wxUSE_PROTOCOL" = yes; then
6641             echo "$as_me:$LINENO: result: yes" >&5
6642 echo "${ECHO_T}yes" >&6
6643           else
6644             echo "$as_me:$LINENO: result: no" >&5
6645 echo "${ECHO_T}no" >&6
6646           fi
6647
6648
6649           enablestring=
6650           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6651 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6652           no_cache=0
6653           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6654 if test "${enable_protocol_http+set}" = set; then
6655   enableval="$enable_protocol_http"
6656
6657                           if test "$enableval" = yes; then
6658                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6659                           else
6660                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6661                           fi
6662
6663 else
6664
6665                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6666                           if test "x$LINE" != x ; then
6667                             eval "DEFAULT_$LINE"
6668                           else
6669                             no_cache=1
6670                           fi
6671
6672                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6673
6674 fi;
6675
6676           eval "$ac_cv_use_protocol_http"
6677           if test "$no_cache" != 1; then
6678             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6679           fi
6680
6681           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6682             echo "$as_me:$LINENO: result: yes" >&5
6683 echo "${ECHO_T}yes" >&6
6684           else
6685             echo "$as_me:$LINENO: result: no" >&5
6686 echo "${ECHO_T}no" >&6
6687           fi
6688
6689
6690           enablestring=
6691           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6692 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6693           no_cache=0
6694           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6695 if test "${enable_protocol_ftp+set}" = set; then
6696   enableval="$enable_protocol_ftp"
6697
6698                           if test "$enableval" = yes; then
6699                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6700                           else
6701                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6702                           fi
6703
6704 else
6705
6706                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6707                           if test "x$LINE" != x ; then
6708                             eval "DEFAULT_$LINE"
6709                           else
6710                             no_cache=1
6711                           fi
6712
6713                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6714
6715 fi;
6716
6717           eval "$ac_cv_use_protocol_ftp"
6718           if test "$no_cache" != 1; then
6719             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6720           fi
6721
6722           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6723             echo "$as_me:$LINENO: result: yes" >&5
6724 echo "${ECHO_T}yes" >&6
6725           else
6726             echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6
6728           fi
6729
6730
6731           enablestring=
6732           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6733 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6734           no_cache=0
6735           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6736 if test "${enable_protocol_file+set}" = set; then
6737   enableval="$enable_protocol_file"
6738
6739                           if test "$enableval" = yes; then
6740                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6741                           else
6742                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6743                           fi
6744
6745 else
6746
6747                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6748                           if test "x$LINE" != x ; then
6749                             eval "DEFAULT_$LINE"
6750                           else
6751                             no_cache=1
6752                           fi
6753
6754                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6755
6756 fi;
6757
6758           eval "$ac_cv_use_protocol_file"
6759           if test "$no_cache" != 1; then
6760             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6761           fi
6762
6763           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6764             echo "$as_me:$LINENO: result: yes" >&5
6765 echo "${ECHO_T}yes" >&6
6766           else
6767             echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6
6769           fi
6770
6771
6772
6773
6774
6775           enablestring=
6776           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6777 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6778           no_cache=0
6779           # Check whether --enable-threads or --disable-threads was given.
6780 if test "${enable_threads+set}" = set; then
6781   enableval="$enable_threads"
6782
6783                           if test "$enableval" = yes; then
6784                             ac_cv_use_threads='wxUSE_THREADS=yes'
6785                           else
6786                             ac_cv_use_threads='wxUSE_THREADS=no'
6787                           fi
6788
6789 else
6790
6791                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6792                           if test "x$LINE" != x ; then
6793                             eval "DEFAULT_$LINE"
6794                           else
6795                             no_cache=1
6796                           fi
6797
6798                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6799
6800 fi;
6801
6802           eval "$ac_cv_use_threads"
6803           if test "$no_cache" != 1; then
6804             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6805           fi
6806
6807           if test "$wxUSE_THREADS" = yes; then
6808             echo "$as_me:$LINENO: result: yes" >&5
6809 echo "${ECHO_T}yes" >&6
6810           else
6811             echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6
6813           fi
6814
6815
6816 if test "$wxUSE_GUI" = "yes"; then
6817
6818
6819
6820           enablestring=
6821           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6822 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6823           no_cache=0
6824           # Check whether --enable-docview or --disable-docview was given.
6825 if test "${enable_docview+set}" = set; then
6826   enableval="$enable_docview"
6827
6828                           if test "$enableval" = yes; then
6829                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6830                           else
6831                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6832                           fi
6833
6834 else
6835
6836                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6837                           if test "x$LINE" != x ; then
6838                             eval "DEFAULT_$LINE"
6839                           else
6840                             no_cache=1
6841                           fi
6842
6843                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6844
6845 fi;
6846
6847           eval "$ac_cv_use_docview"
6848           if test "$no_cache" != 1; then
6849             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6850           fi
6851
6852           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6853             echo "$as_me:$LINENO: result: yes" >&5
6854 echo "${ECHO_T}yes" >&6
6855           else
6856             echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6
6858           fi
6859
6860
6861           enablestring=
6862           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6863 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6864           no_cache=0
6865           # Check whether --enable-help or --disable-help was given.
6866 if test "${enable_help+set}" = set; then
6867   enableval="$enable_help"
6868
6869                           if test "$enableval" = yes; then
6870                             ac_cv_use_help='wxUSE_HELP=yes'
6871                           else
6872                             ac_cv_use_help='wxUSE_HELP=no'
6873                           fi
6874
6875 else
6876
6877                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6878                           if test "x$LINE" != x ; then
6879                             eval "DEFAULT_$LINE"
6880                           else
6881                             no_cache=1
6882                           fi
6883
6884                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6885
6886 fi;
6887
6888           eval "$ac_cv_use_help"
6889           if test "$no_cache" != 1; then
6890             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6891           fi
6892
6893           if test "$wxUSE_HELP" = yes; then
6894             echo "$as_me:$LINENO: result: yes" >&5
6895 echo "${ECHO_T}yes" >&6
6896           else
6897             echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6
6899           fi
6900
6901
6902           enablestring=
6903           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6904 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6905           no_cache=0
6906           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6907 if test "${enable_mshtmlhelp+set}" = set; then
6908   enableval="$enable_mshtmlhelp"
6909
6910                           if test "$enableval" = yes; then
6911                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6912                           else
6913                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6914                           fi
6915
6916 else
6917
6918                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6919                           if test "x$LINE" != x ; then
6920                             eval "DEFAULT_$LINE"
6921                           else
6922                             no_cache=1
6923                           fi
6924
6925                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6926
6927 fi;
6928
6929           eval "$ac_cv_use_mshtmlhelp"
6930           if test "$no_cache" != 1; then
6931             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6932           fi
6933
6934           if test "$wxUSE_MS_HTML_HELP" = yes; then
6935             echo "$as_me:$LINENO: result: yes" >&5
6936 echo "${ECHO_T}yes" >&6
6937           else
6938             echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6
6940           fi
6941
6942
6943           enablestring=
6944           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6945 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6946           no_cache=0
6947           # Check whether --enable-html or --disable-html was given.
6948 if test "${enable_html+set}" = set; then
6949   enableval="$enable_html"
6950
6951                           if test "$enableval" = yes; then
6952                             ac_cv_use_html='wxUSE_HTML=yes'
6953                           else
6954                             ac_cv_use_html='wxUSE_HTML=no'
6955                           fi
6956
6957 else
6958
6959                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6960                           if test "x$LINE" != x ; then
6961                             eval "DEFAULT_$LINE"
6962                           else
6963                             no_cache=1
6964                           fi
6965
6966                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6967
6968 fi;
6969
6970           eval "$ac_cv_use_html"
6971           if test "$no_cache" != 1; then
6972             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6973           fi
6974
6975           if test "$wxUSE_HTML" = yes; then
6976             echo "$as_me:$LINENO: result: yes" >&5
6977 echo "${ECHO_T}yes" >&6
6978           else
6979             echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6
6981           fi
6982
6983
6984           enablestring=
6985           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6986 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6987           no_cache=0
6988           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6989 if test "${enable_htmlhelp+set}" = set; then
6990   enableval="$enable_htmlhelp"
6991
6992                           if test "$enableval" = yes; then
6993                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6994                           else
6995                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6996                           fi
6997
6998 else
6999
7000                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7001                           if test "x$LINE" != x ; then
7002                             eval "DEFAULT_$LINE"
7003                           else
7004                             no_cache=1
7005                           fi
7006
7007                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7008
7009 fi;
7010
7011           eval "$ac_cv_use_htmlhelp"
7012           if test "$no_cache" != 1; then
7013             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7014           fi
7015
7016           if test "$wxUSE_WXHTML_HELP" = yes; then
7017             echo "$as_me:$LINENO: result: yes" >&5
7018 echo "${ECHO_T}yes" >&6
7019           else
7020             echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6
7022           fi
7023
7024
7025           enablestring=
7026           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7027 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7028           no_cache=0
7029           # Check whether --enable-xrc or --disable-xrc was given.
7030 if test "${enable_xrc+set}" = set; then
7031   enableval="$enable_xrc"
7032
7033                           if test "$enableval" = yes; then
7034                             ac_cv_use_xrc='wxUSE_XRC=yes'
7035                           else
7036                             ac_cv_use_xrc='wxUSE_XRC=no'
7037                           fi
7038
7039 else
7040
7041                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7042                           if test "x$LINE" != x ; then
7043                             eval "DEFAULT_$LINE"
7044                           else
7045                             no_cache=1
7046                           fi
7047
7048                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7049
7050 fi;
7051
7052           eval "$ac_cv_use_xrc"
7053           if test "$no_cache" != 1; then
7054             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7055           fi
7056
7057           if test "$wxUSE_XRC" = yes; then
7058             echo "$as_me:$LINENO: result: yes" >&5
7059 echo "${ECHO_T}yes" >&6
7060           else
7061             echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6
7063           fi
7064
7065
7066           enablestring=
7067           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7068 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7069           no_cache=0
7070           # Check whether --enable-aui or --disable-aui was given.
7071 if test "${enable_aui+set}" = set; then
7072   enableval="$enable_aui"
7073
7074                           if test "$enableval" = yes; then
7075                             ac_cv_use_aui='wxUSE_AUI=yes'
7076                           else
7077                             ac_cv_use_aui='wxUSE_AUI=no'
7078                           fi
7079
7080 else
7081
7082                           LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7083                           if test "x$LINE" != x ; then
7084                             eval "DEFAULT_$LINE"
7085                           else
7086                             no_cache=1
7087                           fi
7088
7089                           ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7090
7091 fi;
7092
7093           eval "$ac_cv_use_aui"
7094           if test "$no_cache" != 1; then
7095             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7096           fi
7097
7098           if test "$wxUSE_AUI" = yes; then
7099             echo "$as_me:$LINENO: result: yes" >&5
7100 echo "${ECHO_T}yes" >&6
7101           else
7102             echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6
7104           fi
7105
7106
7107           enablestring=
7108           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7109 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7110           no_cache=0
7111           # Check whether --enable-constraints or --disable-constraints was given.
7112 if test "${enable_constraints+set}" = set; then
7113   enableval="$enable_constraints"
7114
7115                           if test "$enableval" = yes; then
7116                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7117                           else
7118                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7119                           fi
7120
7121 else
7122
7123                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7124                           if test "x$LINE" != x ; then
7125                             eval "DEFAULT_$LINE"
7126                           else
7127                             no_cache=1
7128                           fi
7129
7130                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7131
7132 fi;
7133
7134           eval "$ac_cv_use_constraints"
7135           if test "$no_cache" != 1; then
7136             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7137           fi
7138
7139           if test "$wxUSE_CONSTRAINTS" = yes; then
7140             echo "$as_me:$LINENO: result: yes" >&5
7141 echo "${ECHO_T}yes" >&6
7142           else
7143             echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6
7145           fi
7146
7147
7148           enablestring=
7149           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7150 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7151           no_cache=0
7152           # Check whether --enable-printarch or --disable-printarch was given.
7153 if test "${enable_printarch+set}" = set; then
7154   enableval="$enable_printarch"
7155
7156                           if test "$enableval" = yes; then
7157                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7158                           else
7159                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7160                           fi
7161
7162 else
7163
7164                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7165                           if test "x$LINE" != x ; then
7166                             eval "DEFAULT_$LINE"
7167                           else
7168                             no_cache=1
7169                           fi
7170
7171                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7172
7173 fi;
7174
7175           eval "$ac_cv_use_printarch"
7176           if test "$no_cache" != 1; then
7177             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7178           fi
7179
7180           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7181             echo "$as_me:$LINENO: result: yes" >&5
7182 echo "${ECHO_T}yes" >&6
7183           else
7184             echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6
7186           fi
7187
7188
7189           enablestring=
7190           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7191 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7192           no_cache=0
7193           # Check whether --enable-mdi or --disable-mdi was given.
7194 if test "${enable_mdi+set}" = set; then
7195   enableval="$enable_mdi"
7196
7197                           if test "$enableval" = yes; then
7198                             ac_cv_use_mdi='wxUSE_MDI=yes'
7199                           else
7200                             ac_cv_use_mdi='wxUSE_MDI=no'
7201                           fi
7202
7203 else
7204
7205                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
7206                           if test "x$LINE" != x ; then
7207                             eval "DEFAULT_$LINE"
7208                           else
7209                             no_cache=1
7210                           fi
7211
7212                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
7213
7214 fi;
7215
7216           eval "$ac_cv_use_mdi"
7217           if test "$no_cache" != 1; then
7218             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7219           fi
7220
7221           if test "$wxUSE_MDI" = yes; then
7222             echo "$as_me:$LINENO: result: yes" >&5
7223 echo "${ECHO_T}yes" >&6
7224           else
7225             echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6
7227           fi
7228
7229
7230           enablestring=
7231           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7232 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7233           no_cache=0
7234           # Check whether --enable-mdidoc or --disable-mdidoc was given.
7235 if test "${enable_mdidoc+set}" = set; then
7236   enableval="$enable_mdidoc"
7237
7238                           if test "$enableval" = yes; then
7239                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7240                           else
7241                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7242                           fi
7243
7244 else
7245
7246                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7247                           if test "x$LINE" != x ; then
7248                             eval "DEFAULT_$LINE"
7249                           else
7250                             no_cache=1
7251                           fi
7252
7253                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7254
7255 fi;
7256
7257           eval "$ac_cv_use_mdidoc"
7258           if test "$no_cache" != 1; then
7259             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7260           fi
7261
7262           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7263             echo "$as_me:$LINENO: result: yes" >&5
7264 echo "${ECHO_T}yes" >&6
7265           else
7266             echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6
7268           fi
7269
7270
7271           enablestring=
7272           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7273 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7274           no_cache=0
7275           # Check whether --enable-loggui or --disable-loggui was given.
7276 if test "${enable_loggui+set}" = set; then
7277   enableval="$enable_loggui"
7278
7279                           if test "$enableval" = yes; then
7280                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7281                           else
7282                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
7283                           fi
7284
7285 else
7286
7287                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7288                           if test "x$LINE" != x ; then
7289                             eval "DEFAULT_$LINE"
7290                           else
7291                             no_cache=1
7292                           fi
7293
7294                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7295
7296 fi;
7297
7298           eval "$ac_cv_use_loggui"
7299           if test "$no_cache" != 1; then
7300             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7301           fi
7302
7303           if test "$wxUSE_LOGGUI" = yes; then
7304             echo "$as_me:$LINENO: result: yes" >&5
7305 echo "${ECHO_T}yes" >&6
7306           else
7307             echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6
7309           fi
7310
7311
7312           enablestring=
7313           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7314 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7315           no_cache=0
7316           # Check whether --enable-logwin or --disable-logwin was given.
7317 if test "${enable_logwin+set}" = set; then
7318   enableval="$enable_logwin"
7319
7320                           if test "$enableval" = yes; then
7321                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7322                           else
7323                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7324                           fi
7325
7326 else
7327
7328                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7329                           if test "x$LINE" != x ; then
7330                             eval "DEFAULT_$LINE"
7331                           else
7332                             no_cache=1
7333                           fi
7334
7335                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7336
7337 fi;
7338
7339           eval "$ac_cv_use_logwin"
7340           if test "$no_cache" != 1; then
7341             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7342           fi
7343
7344           if test "$wxUSE_LOGWINDOW" = yes; then
7345             echo "$as_me:$LINENO: result: yes" >&5
7346 echo "${ECHO_T}yes" >&6
7347           else
7348             echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7350           fi
7351
7352
7353           enablestring=
7354           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7355 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7356           no_cache=0
7357           # Check whether --enable-logdialog or --disable-logdialog was given.
7358 if test "${enable_logdialog+set}" = set; then
7359   enableval="$enable_logdialog"
7360
7361                           if test "$enableval" = yes; then
7362                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7363                           else
7364                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7365                           fi
7366
7367 else
7368
7369                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7370                           if test "x$LINE" != x ; then
7371                             eval "DEFAULT_$LINE"
7372                           else
7373                             no_cache=1
7374                           fi
7375
7376                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7377
7378 fi;
7379
7380           eval "$ac_cv_use_logdialog"
7381           if test "$no_cache" != 1; then
7382             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7383           fi
7384
7385           if test "$wxUSE_LOGDIALOG" = yes; then
7386             echo "$as_me:$LINENO: result: yes" >&5
7387 echo "${ECHO_T}yes" >&6
7388           else
7389             echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6
7391           fi
7392
7393
7394           enablestring=
7395           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7396 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7397           no_cache=0
7398           # Check whether --enable-webkit or --disable-webkit was given.
7399 if test "${enable_webkit+set}" = set; then
7400   enableval="$enable_webkit"
7401
7402                           if test "$enableval" = yes; then
7403                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7404                           else
7405                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
7406                           fi
7407
7408 else
7409
7410                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7411                           if test "x$LINE" != x ; then
7412                             eval "DEFAULT_$LINE"
7413                           else
7414                             no_cache=1
7415                           fi
7416
7417                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7418
7419 fi;
7420
7421           eval "$ac_cv_use_webkit"
7422           if test "$no_cache" != 1; then
7423             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7424           fi
7425
7426           if test "$wxUSE_WEBKIT" = yes; then
7427             echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6
7429           else
7430             echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6
7432           fi
7433
7434
7435           enablestring=
7436           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7437 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7438           no_cache=0
7439           # Check whether --enable-html or --disable-html was given.
7440 if test "${enable_html+set}" = set; then
7441   enableval="$enable_html"
7442
7443                           if test "$enableval" = yes; then
7444                             ac_cv_use_html='wxUSE_RICHTEXT=yes'
7445                           else
7446                             ac_cv_use_html='wxUSE_RICHTEXT=no'
7447                           fi
7448
7449 else
7450
7451                           LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7452                           if test "x$LINE" != x ; then
7453                             eval "DEFAULT_$LINE"
7454                           else
7455                             no_cache=1
7456                           fi
7457
7458                           ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7459
7460 fi;
7461
7462           eval "$ac_cv_use_html"
7463           if test "$no_cache" != 1; then
7464             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7465           fi
7466
7467           if test "$wxUSE_RICHTEXT" = yes; then
7468             echo "$as_me:$LINENO: result: yes" >&5
7469 echo "${ECHO_T}yes" >&6
7470           else
7471             echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6
7473           fi
7474
7475
7476           enablestring=
7477           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7478 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7479           no_cache=0
7480           # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7481 if test "${enable_graphics_ctx+set}" = set; then
7482   enableval="$enable_graphics_ctx"
7483
7484                           if test "$enableval" = yes; then
7485                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7486                           else
7487                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7488                           fi
7489
7490 else
7491
7492                           LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7493                           if test "x$LINE" != x ; then
7494                             eval "DEFAULT_$LINE"
7495                           else
7496                             no_cache=1
7497                           fi
7498
7499                           ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7500
7501 fi;
7502
7503           eval "$ac_cv_use_graphics_ctx"
7504           if test "$no_cache" != 1; then
7505             echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7506           fi
7507
7508           if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7509             echo "$as_me:$LINENO: result: yes" >&5
7510 echo "${ECHO_T}yes" >&6
7511           else
7512             echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6
7514           fi
7515
7516
7517
7518           enablestring=
7519           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7520 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7521           no_cache=0
7522           # Check whether --enable-postscript or --disable-postscript was given.
7523 if test "${enable_postscript+set}" = set; then
7524   enableval="$enable_postscript"
7525
7526                           if test "$enableval" = yes; then
7527                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7528                           else
7529                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7530                           fi
7531
7532 else
7533
7534                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7535                           if test "x$LINE" != x ; then
7536                             eval "DEFAULT_$LINE"
7537                           else
7538                             no_cache=1
7539                           fi
7540
7541                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7542
7543 fi;
7544
7545           eval "$ac_cv_use_postscript"
7546           if test "$no_cache" != 1; then
7547             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7548           fi
7549
7550           if test "$wxUSE_POSTSCRIPT" = yes; then
7551             echo "$as_me:$LINENO: result: yes" >&5
7552 echo "${ECHO_T}yes" >&6
7553           else
7554             echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6
7556           fi
7557
7558
7559
7560
7561
7562           enablestring=
7563           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7564 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7565           no_cache=0
7566           # Check whether --enable-prologio or --disable-prologio was given.
7567 if test "${enable_prologio+set}" = set; then
7568   enableval="$enable_prologio"
7569
7570                           if test "$enableval" = yes; then
7571                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7572                           else
7573                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7574                           fi
7575
7576 else
7577
7578                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7579                           if test "x$LINE" != x ; then
7580                             eval "DEFAULT_$LINE"
7581                           else
7582                             no_cache=1
7583                           fi
7584
7585                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7586
7587 fi;
7588
7589           eval "$ac_cv_use_prologio"
7590           if test "$no_cache" != 1; then
7591             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7592           fi
7593
7594           if test "$wxUSE_PROLOGIO" = yes; then
7595             echo "$as_me:$LINENO: result: yes" >&5
7596 echo "${ECHO_T}yes" >&6
7597           else
7598             echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6
7600           fi
7601
7602
7603           enablestring=
7604           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7605 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7606           no_cache=0
7607           # Check whether --enable-resources or --disable-resources was given.
7608 if test "${enable_resources+set}" = set; then
7609   enableval="$enable_resources"
7610
7611                           if test "$enableval" = yes; then
7612                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7613                           else
7614                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7615                           fi
7616
7617 else
7618
7619                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7620                           if test "x$LINE" != x ; then
7621                             eval "DEFAULT_$LINE"
7622                           else
7623                             no_cache=1
7624                           fi
7625
7626                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7627
7628 fi;
7629
7630           eval "$ac_cv_use_resources"
7631           if test "$no_cache" != 1; then
7632             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7633           fi
7634
7635           if test "$wxUSE_RESOURCES" = yes; then
7636             echo "$as_me:$LINENO: result: yes" >&5
7637 echo "${ECHO_T}yes" >&6
7638           else
7639             echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6
7641           fi
7642
7643
7644
7645
7646           enablestring=
7647           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7648 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7649           no_cache=0
7650           # Check whether --enable-clipboard or --disable-clipboard was given.
7651 if test "${enable_clipboard+set}" = set; then
7652   enableval="$enable_clipboard"
7653
7654                           if test "$enableval" = yes; then
7655                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7656                           else
7657                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7658                           fi
7659
7660 else
7661
7662                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7663                           if test "x$LINE" != x ; then
7664                             eval "DEFAULT_$LINE"
7665                           else
7666                             no_cache=1
7667                           fi
7668
7669                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7670
7671 fi;
7672
7673           eval "$ac_cv_use_clipboard"
7674           if test "$no_cache" != 1; then
7675             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7676           fi
7677
7678           if test "$wxUSE_CLIPBOARD" = yes; then
7679             echo "$as_me:$LINENO: result: yes" >&5
7680 echo "${ECHO_T}yes" >&6
7681           else
7682             echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6
7684           fi
7685
7686
7687           enablestring=
7688           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7689 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7690           no_cache=0
7691           # Check whether --enable-dnd or --disable-dnd was given.
7692 if test "${enable_dnd+set}" = set; then
7693   enableval="$enable_dnd"
7694
7695                           if test "$enableval" = yes; then
7696                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7697                           else
7698                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7699                           fi
7700
7701 else
7702
7703                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7704                           if test "x$LINE" != x ; then
7705                             eval "DEFAULT_$LINE"
7706                           else
7707                             no_cache=1
7708                           fi
7709
7710                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7711
7712 fi;
7713
7714           eval "$ac_cv_use_dnd"
7715           if test "$no_cache" != 1; then
7716             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7717           fi
7718
7719           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7720             echo "$as_me:$LINENO: result: yes" >&5
7721 echo "${ECHO_T}yes" >&6
7722           else
7723             echo "$as_me:$LINENO: result: no" >&5
7724 echo "${ECHO_T}no" >&6
7725           fi
7726
7727
7728           enablestring=
7729           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7730 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7731           no_cache=0
7732           # Check whether --enable-metafile or --disable-metafile was given.
7733 if test "${enable_metafile+set}" = set; then
7734   enableval="$enable_metafile"
7735
7736                           if test "$enableval" = yes; then
7737                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7738                           else
7739                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7740                           fi
7741
7742 else
7743
7744                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7745                           if test "x$LINE" != x ; then
7746                             eval "DEFAULT_$LINE"
7747                           else
7748                             no_cache=1
7749                           fi
7750
7751                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7752
7753 fi;
7754
7755           eval "$ac_cv_use_metafile"
7756           if test "$no_cache" != 1; then
7757             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7758           fi
7759
7760           if test "$wxUSE_METAFILE" = yes; then
7761             echo "$as_me:$LINENO: result: yes" >&5
7762 echo "${ECHO_T}yes" >&6
7763           else
7764             echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6
7766           fi
7767
7768
7769
7770
7771
7772           enablestring=
7773           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7774 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7775           no_cache=0
7776           # Check whether --enable-controls or --disable-controls was given.
7777 if test "${enable_controls+set}" = set; then
7778   enableval="$enable_controls"
7779
7780                           if test "$enableval" = yes; then
7781                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7782                           else
7783                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7784                           fi
7785
7786 else
7787
7788                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7789                           if test "x$LINE" != x ; then
7790                             eval "DEFAULT_$LINE"
7791                           else
7792                             no_cache=1
7793                           fi
7794
7795                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7796
7797 fi;
7798
7799           eval "$ac_cv_use_controls"
7800           if test "$no_cache" != 1; then
7801             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7802           fi
7803
7804           if test "$wxUSE_CONTROLS" = yes; then
7805             echo "$as_me:$LINENO: result: yes" >&5
7806 echo "${ECHO_T}yes" >&6
7807           else
7808             echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6
7810           fi
7811
7812
7813 if test "$wxUSE_CONTROLS" = "yes"; then
7814   DEFAULT_wxUSE_ACCEL=yes
7815   DEFAULT_wxUSE_ANIMATIONCTRL=yes
7816   DEFAULT_wxUSE_BMPBUTTON=yes
7817   DEFAULT_wxUSE_BUTTON=yes
7818   DEFAULT_wxUSE_CALCTRL=yes
7819   DEFAULT_wxUSE_CARET=yes
7820   DEFAULT_wxUSE_COMBOBOX=yes
7821   DEFAULT_wxUSE_CHECKBOX=yes
7822   DEFAULT_wxUSE_CHECKLISTBOX=yes
7823   DEFAULT_wxUSE_CHOICE=yes
7824   DEFAULT_wxUSE_CHOICEBOOK=yes
7825   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7826   DEFAULT_wxUSE_COMBOBOX=yes
7827   DEFAULT_wxUSE_DATEPICKCTRL=yes
7828   DEFAULT_wxUSE_DISPLAY=yes
7829   DEFAULT_wxUSE_DIRPICKERCTRL=yes
7830   DEFAULT_wxUSE_FILEPICKERCTRL=yes
7831   DEFAULT_wxUSE_FONTPICKERCTRL=yes
7832   DEFAULT_wxUSE_GAUGE=yes
7833   DEFAULT_wxUSE_GRID=yes
7834   DEFAULT_wxUSE_HYPERLINKCTRL=yes
7835   DEFAULT_wxUSE_DATAVIEWCTRL=no
7836   DEFAULT_wxUSE_IMAGLIST=yes
7837   DEFAULT_wxUSE_LISTBOOK=yes
7838   DEFAULT_wxUSE_LISTBOX=yes
7839   DEFAULT_wxUSE_LISTCTRL=yes
7840   DEFAULT_wxUSE_NOTEBOOK=yes
7841   DEFAULT_wxUSE_RADIOBOX=yes
7842   DEFAULT_wxUSE_RADIOBTN=yes
7843   DEFAULT_wxUSE_SASH=yes
7844   DEFAULT_wxUSE_SCROLLBAR=yes
7845   DEFAULT_wxUSE_SLIDER=yes
7846   DEFAULT_wxUSE_SPINBTN=yes
7847   DEFAULT_wxUSE_SPINCTRL=yes
7848   DEFAULT_wxUSE_SPLITTER=yes
7849   DEFAULT_wxUSE_STATBMP=yes
7850   DEFAULT_wxUSE_STATBOX=yes
7851   DEFAULT_wxUSE_STATLINE=yes
7852   DEFAULT_wxUSE_STATUSBAR=yes
7853   DEFAULT_wxUSE_TAB_DIALOG=yes
7854   DEFAULT_wxUSE_TOGGLEBTN=yes
7855   DEFAULT_wxUSE_TOOLBAR=yes
7856   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7857   DEFAULT_wxUSE_TOOLTIPS=yes
7858   DEFAULT_wxUSE_TREEBOOK=yes
7859   DEFAULT_wxUSE_TOOLBOOK=yes
7860   DEFAULT_wxUSE_TREECTRL=yes
7861   DEFAULT_wxUSE_POPUPWIN=yes
7862   DEFAULT_wxUSE_TIPWINDOW=yes
7863 elif test "$wxUSE_CONTROLS" = "no"; then
7864   DEFAULT_wxUSE_ACCEL=no
7865   DEFAULT_wxUSE_ANIMATIONCTRL=no
7866   DEFAULT_wxUSE_BMPBUTTON=no
7867   DEFAULT_wxUSE_BUTTON=no
7868   DEFAULT_wxUSE_CALCTRL=no
7869   DEFAULT_wxUSE_CARET=no
7870   DEFAULT_wxUSE_COMBOBOX=no
7871   DEFAULT_wxUSE_CHECKBOX=no
7872   DEFAULT_wxUSE_CHECKLISTBOX=no
7873   DEFAULT_wxUSE_CHOICE=no
7874   DEFAULT_wxUSE_CHOICEBOOK=no
7875   DEFAULT_wxUSE_COLOURPICKERCTRL=no
7876   DEFAULT_wxUSE_COMBOBOX=no
7877   DEFAULT_wxUSE_DATEPICKCTRL=no
7878   DEFAULT_wxUSE_DISPLAY=no
7879   DEFAULT_wxUSE_DIRPICKERCTRL=no
7880   DEFAULT_wxUSE_FILEPICKERCTRL=no
7881   DEFAULT_wxUSE_FONTPICKERCTRL=no
7882   DEFAULT_wxUSE_GAUGE=no
7883   DEFAULT_wxUSE_GRID=no
7884   DEFAULT_wxUSE_HYPERLINKCTRL=no
7885   DEFAULT_wxUSE_DATAVIEWCTRL=no
7886   DEFAULT_wxUSE_IMAGLIST=no
7887   DEFAULT_wxUSE_LISTBOOK=no
7888   DEFAULT_wxUSE_LISTBOX=no
7889   DEFAULT_wxUSE_LISTCTRL=no
7890   DEFAULT_wxUSE_NOTEBOOK=no
7891   DEFAULT_wxUSE_RADIOBOX=no
7892   DEFAULT_wxUSE_RADIOBTN=no
7893   DEFAULT_wxUSE_SASH=no
7894   DEFAULT_wxUSE_SCROLLBAR=no
7895   DEFAULT_wxUSE_SLIDER=no
7896   DEFAULT_wxUSE_SPINBTN=no
7897   DEFAULT_wxUSE_SPINCTRL=no
7898   DEFAULT_wxUSE_SPLITTER=no
7899   DEFAULT_wxUSE_STATBMP=no
7900   DEFAULT_wxUSE_STATBOX=no
7901   DEFAULT_wxUSE_STATLINE=no
7902   DEFAULT_wxUSE_STATUSBAR=no
7903   DEFAULT_wxUSE_TAB_DIALOG=no
7904   DEFAULT_wxUSE_TOGGLEBTN=no
7905   DEFAULT_wxUSE_TOOLBAR=no
7906   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7907   DEFAULT_wxUSE_TOOLTIPS=no
7908   DEFAULT_wxUSE_TREEBOOK=no
7909   DEFAULT_wxUSE_TOOLBOOK=no
7910   DEFAULT_wxUSE_TREECTRL=no
7911   DEFAULT_wxUSE_POPUPWIN=no
7912   DEFAULT_wxUSE_TIPWINDOW=no
7913 fi
7914
7915
7916           enablestring=
7917           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7918 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7919           no_cache=0
7920           # Check whether --enable-accel or --disable-accel was given.
7921 if test "${enable_accel+set}" = set; then
7922   enableval="$enable_accel"
7923
7924                           if test "$enableval" = yes; then
7925                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7926                           else
7927                             ac_cv_use_accel='wxUSE_ACCEL=no'
7928                           fi
7929
7930 else
7931
7932                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7933                           if test "x$LINE" != x ; then
7934                             eval "DEFAULT_$LINE"
7935                           else
7936                             no_cache=1
7937                           fi
7938
7939                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7940
7941 fi;
7942
7943           eval "$ac_cv_use_accel"
7944           if test "$no_cache" != 1; then
7945             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7946           fi
7947
7948           if test "$wxUSE_ACCEL" = yes; then
7949             echo "$as_me:$LINENO: result: yes" >&5
7950 echo "${ECHO_T}yes" >&6
7951           else
7952             echo "$as_me:$LINENO: result: no" >&5
7953 echo "${ECHO_T}no" >&6
7954           fi
7955
7956
7957           enablestring=
7958           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
7959 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
7960           no_cache=0
7961           # Check whether --enable-animatectrl or --disable-animatectrl was given.
7962 if test "${enable_animatectrl+set}" = set; then
7963   enableval="$enable_animatectrl"
7964
7965                           if test "$enableval" = yes; then
7966                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
7967                           else
7968                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
7969                           fi
7970
7971 else
7972
7973                           LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
7974                           if test "x$LINE" != x ; then
7975                             eval "DEFAULT_$LINE"
7976                           else
7977                             no_cache=1
7978                           fi
7979
7980                           ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
7981
7982 fi;
7983
7984           eval "$ac_cv_use_animatectrl"
7985           if test "$no_cache" != 1; then
7986             echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
7987           fi
7988
7989           if test "$wxUSE_ANIMATIONCTRL" = yes; then
7990             echo "$as_me:$LINENO: result: yes" >&5
7991 echo "${ECHO_T}yes" >&6
7992           else
7993             echo "$as_me:$LINENO: result: no" >&5
7994 echo "${ECHO_T}no" >&6
7995           fi
7996
7997
7998           enablestring=
7999           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8000 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8001           no_cache=0
8002           # Check whether --enable-button or --disable-button was given.
8003 if test "${enable_button+set}" = set; then
8004   enableval="$enable_button"
8005
8006                           if test "$enableval" = yes; then
8007                             ac_cv_use_button='wxUSE_BUTTON=yes'
8008                           else
8009                             ac_cv_use_button='wxUSE_BUTTON=no'
8010                           fi
8011
8012 else
8013
8014                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8015                           if test "x$LINE" != x ; then
8016                             eval "DEFAULT_$LINE"
8017                           else
8018                             no_cache=1
8019                           fi
8020
8021                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8022
8023 fi;
8024
8025           eval "$ac_cv_use_button"
8026           if test "$no_cache" != 1; then
8027             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8028           fi
8029
8030           if test "$wxUSE_BUTTON" = yes; then
8031             echo "$as_me:$LINENO: result: yes" >&5
8032 echo "${ECHO_T}yes" >&6
8033           else
8034             echo "$as_me:$LINENO: result: no" >&5
8035 echo "${ECHO_T}no" >&6
8036           fi
8037
8038
8039           enablestring=
8040           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8041 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8042           no_cache=0
8043           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8044 if test "${enable_bmpbutton+set}" = set; then
8045   enableval="$enable_bmpbutton"
8046
8047                           if test "$enableval" = yes; then
8048                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8049                           else
8050                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8051                           fi
8052
8053 else
8054
8055                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8056                           if test "x$LINE" != x ; then
8057                             eval "DEFAULT_$LINE"
8058                           else
8059                             no_cache=1
8060                           fi
8061
8062                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8063
8064 fi;
8065
8066           eval "$ac_cv_use_bmpbutton"
8067           if test "$no_cache" != 1; then
8068             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8069           fi
8070
8071           if test "$wxUSE_BMPBUTTON" = yes; then
8072             echo "$as_me:$LINENO: result: yes" >&5
8073 echo "${ECHO_T}yes" >&6
8074           else
8075             echo "$as_me:$LINENO: result: no" >&5
8076 echo "${ECHO_T}no" >&6
8077           fi
8078
8079
8080           enablestring=
8081           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8082 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8083           no_cache=0
8084           # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8085 if test "${enable_bmpcombobox+set}" = set; then
8086   enableval="$enable_bmpcombobox"
8087
8088                           if test "$enableval" = yes; then
8089                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8090                           else
8091                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8092                           fi
8093
8094 else
8095
8096                           LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8097                           if test "x$LINE" != x ; then
8098                             eval "DEFAULT_$LINE"
8099                           else
8100                             no_cache=1
8101                           fi
8102
8103                           ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8104
8105 fi;
8106
8107           eval "$ac_cv_use_bmpcombobox"
8108           if test "$no_cache" != 1; then
8109             echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8110           fi
8111
8112           if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8113             echo "$as_me:$LINENO: result: yes" >&5
8114 echo "${ECHO_T}yes" >&6
8115           else
8116             echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6
8118           fi
8119
8120
8121           enablestring=
8122           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8123 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8124           no_cache=0
8125           # Check whether --enable-calendar or --disable-calendar was given.
8126 if test "${enable_calendar+set}" = set; then
8127   enableval="$enable_calendar"
8128
8129                           if test "$enableval" = yes; then
8130                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8131                           else
8132                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
8133                           fi
8134
8135 else
8136
8137                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8138                           if test "x$LINE" != x ; then
8139                             eval "DEFAULT_$LINE"
8140                           else
8141                             no_cache=1
8142                           fi
8143
8144                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8145
8146 fi;
8147
8148           eval "$ac_cv_use_calendar"
8149           if test "$no_cache" != 1; then
8150             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8151           fi
8152
8153           if test "$wxUSE_CALCTRL" = yes; then
8154             echo "$as_me:$LINENO: result: yes" >&5
8155 echo "${ECHO_T}yes" >&6
8156           else
8157             echo "$as_me:$LINENO: result: no" >&5
8158 echo "${ECHO_T}no" >&6
8159           fi
8160
8161
8162           enablestring=
8163           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8164 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8165           no_cache=0
8166           # Check whether --enable-caret or --disable-caret was given.
8167 if test "${enable_caret+set}" = set; then
8168   enableval="$enable_caret"
8169
8170                           if test "$enableval" = yes; then
8171                             ac_cv_use_caret='wxUSE_CARET=yes'
8172                           else
8173                             ac_cv_use_caret='wxUSE_CARET=no'
8174                           fi
8175
8176 else
8177
8178                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8179                           if test "x$LINE" != x ; then
8180                             eval "DEFAULT_$LINE"
8181                           else
8182                             no_cache=1
8183                           fi
8184
8185                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8186
8187 fi;
8188
8189           eval "$ac_cv_use_caret"
8190           if test "$no_cache" != 1; then
8191             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8192           fi
8193
8194           if test "$wxUSE_CARET" = yes; then
8195             echo "$as_me:$LINENO: result: yes" >&5
8196 echo "${ECHO_T}yes" >&6
8197           else
8198             echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6
8200           fi
8201
8202
8203           enablestring=
8204           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8205 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8206           no_cache=0
8207           # Check whether --enable-checkbox or --disable-checkbox was given.
8208 if test "${enable_checkbox+set}" = set; then
8209   enableval="$enable_checkbox"
8210
8211                           if test "$enableval" = yes; then
8212                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8213                           else
8214                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8215                           fi
8216
8217 else
8218
8219                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8220                           if test "x$LINE" != x ; then
8221                             eval "DEFAULT_$LINE"
8222                           else
8223                             no_cache=1
8224                           fi
8225
8226                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8227
8228 fi;
8229
8230           eval "$ac_cv_use_checkbox"
8231           if test "$no_cache" != 1; then
8232             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8233           fi
8234
8235           if test "$wxUSE_CHECKBOX" = yes; then
8236             echo "$as_me:$LINENO: result: yes" >&5
8237 echo "${ECHO_T}yes" >&6
8238           else
8239             echo "$as_me:$LINENO: result: no" >&5
8240 echo "${ECHO_T}no" >&6
8241           fi
8242
8243
8244           enablestring=
8245           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8246 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8247           no_cache=0
8248           # Check whether --enable-checklst or --disable-checklst was given.
8249 if test "${enable_checklst+set}" = set; then
8250   enableval="$enable_checklst"
8251
8252                           if test "$enableval" = yes; then
8253                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8254                           else
8255                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
8256                           fi
8257
8258 else
8259
8260                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8261                           if test "x$LINE" != x ; then
8262                             eval "DEFAULT_$LINE"
8263                           else
8264                             no_cache=1
8265                           fi
8266
8267                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8268
8269 fi;
8270
8271           eval "$ac_cv_use_checklst"
8272           if test "$no_cache" != 1; then
8273             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8274           fi
8275
8276           if test "$wxUSE_CHECKLST" = yes; then
8277             echo "$as_me:$LINENO: result: yes" >&5
8278 echo "${ECHO_T}yes" >&6
8279           else
8280             echo "$as_me:$LINENO: result: no" >&5
8281 echo "${ECHO_T}no" >&6
8282           fi
8283
8284
8285           enablestring=
8286           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8287 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8288           no_cache=0
8289           # Check whether --enable-choice or --disable-choice was given.
8290 if test "${enable_choice+set}" = set; then
8291   enableval="$enable_choice"
8292
8293                           if test "$enableval" = yes; then
8294                             ac_cv_use_choice='wxUSE_CHOICE=yes'
8295                           else
8296                             ac_cv_use_choice='wxUSE_CHOICE=no'
8297                           fi
8298
8299 else
8300
8301                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8302                           if test "x$LINE" != x ; then
8303                             eval "DEFAULT_$LINE"
8304                           else
8305                             no_cache=1
8306                           fi
8307
8308                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8309
8310 fi;
8311
8312           eval "$ac_cv_use_choice"
8313           if test "$no_cache" != 1; then
8314             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8315           fi
8316
8317           if test "$wxUSE_CHOICE" = yes; then
8318             echo "$as_me:$LINENO: result: yes" >&5
8319 echo "${ECHO_T}yes" >&6
8320           else
8321             echo "$as_me:$LINENO: result: no" >&5
8322 echo "${ECHO_T}no" >&6
8323           fi
8324
8325
8326           enablestring=
8327           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8328 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8329           no_cache=0
8330           # Check whether --enable-choicebook or --disable-choicebook was given.
8331 if test "${enable_choicebook+set}" = set; then
8332   enableval="$enable_choicebook"
8333
8334                           if test "$enableval" = yes; then
8335                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8336                           else
8337                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8338                           fi
8339
8340 else
8341
8342                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8343                           if test "x$LINE" != x ; then
8344                             eval "DEFAULT_$LINE"
8345                           else
8346                             no_cache=1
8347                           fi
8348
8349                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8350
8351 fi;
8352
8353           eval "$ac_cv_use_choicebook"
8354           if test "$no_cache" != 1; then
8355             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8356           fi
8357
8358           if test "$wxUSE_CHOICEBOOK" = yes; then
8359             echo "$as_me:$LINENO: result: yes" >&5
8360 echo "${ECHO_T}yes" >&6
8361           else
8362             echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6
8364           fi
8365
8366
8367           enablestring=
8368           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8369 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8370           no_cache=0
8371           # Check whether --enable-colourpicker or --disable-colourpicker was given.
8372 if test "${enable_colourpicker+set}" = set; then
8373   enableval="$enable_colourpicker"
8374
8375                           if test "$enableval" = yes; then
8376                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8377                           else
8378                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8379                           fi
8380
8381 else
8382
8383                           LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8384                           if test "x$LINE" != x ; then
8385                             eval "DEFAULT_$LINE"
8386                           else
8387                             no_cache=1
8388                           fi
8389
8390                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8391
8392 fi;
8393
8394           eval "$ac_cv_use_colourpicker"
8395           if test "$no_cache" != 1; then
8396             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8397           fi
8398
8399           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8400             echo "$as_me:$LINENO: result: yes" >&5
8401 echo "${ECHO_T}yes" >&6
8402           else
8403             echo "$as_me:$LINENO: result: no" >&5
8404 echo "${ECHO_T}no" >&6
8405           fi
8406
8407
8408           enablestring=
8409           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8410 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8411           no_cache=0
8412           # Check whether --enable-combobox or --disable-combobox was given.
8413 if test "${enable_combobox+set}" = set; then
8414   enableval="$enable_combobox"
8415
8416                           if test "$enableval" = yes; then
8417                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8418                           else
8419                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8420                           fi
8421
8422 else
8423
8424                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8425                           if test "x$LINE" != x ; then
8426                             eval "DEFAULT_$LINE"
8427                           else
8428                             no_cache=1
8429                           fi
8430
8431                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8432
8433 fi;
8434
8435           eval "$ac_cv_use_combobox"
8436           if test "$no_cache" != 1; then
8437             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8438           fi
8439
8440           if test "$wxUSE_COMBOBOX" = yes; then
8441             echo "$as_me:$LINENO: result: yes" >&5
8442 echo "${ECHO_T}yes" >&6
8443           else
8444             echo "$as_me:$LINENO: result: no" >&5
8445 echo "${ECHO_T}no" >&6
8446           fi
8447
8448
8449           enablestring=
8450           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8451 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
8452           no_cache=0
8453           # Check whether --enable-comboctrl or --disable-comboctrl was given.
8454 if test "${enable_comboctrl+set}" = set; then
8455   enableval="$enable_comboctrl"
8456
8457                           if test "$enableval" = yes; then
8458                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
8459                           else
8460                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
8461                           fi
8462
8463 else
8464
8465                           LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
8466                           if test "x$LINE" != x ; then
8467                             eval "DEFAULT_$LINE"
8468                           else
8469                             no_cache=1
8470                           fi
8471
8472                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
8473
8474 fi;
8475
8476           eval "$ac_cv_use_comboctrl"
8477           if test "$no_cache" != 1; then
8478             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
8479           fi
8480
8481           if test "$wxUSE_COMBOCTRL" = yes; then
8482             echo "$as_me:$LINENO: result: yes" >&5
8483 echo "${ECHO_T}yes" >&6
8484           else
8485             echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6
8487           fi
8488
8489
8490           enablestring=
8491           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8492 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8493           no_cache=0
8494           # Check whether --enable-datepick or --disable-datepick was given.
8495 if test "${enable_datepick+set}" = set; then
8496   enableval="$enable_datepick"
8497
8498                           if test "$enableval" = yes; then
8499                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8500                           else
8501                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8502                           fi
8503
8504 else
8505
8506                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8507                           if test "x$LINE" != x ; then
8508                             eval "DEFAULT_$LINE"
8509                           else
8510                             no_cache=1
8511                           fi
8512
8513                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8514
8515 fi;
8516
8517           eval "$ac_cv_use_datepick"
8518           if test "$no_cache" != 1; then
8519             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8520           fi
8521
8522           if test "$wxUSE_DATEPICKCTRL" = yes; then
8523             echo "$as_me:$LINENO: result: yes" >&5
8524 echo "${ECHO_T}yes" >&6
8525           else
8526             echo "$as_me:$LINENO: result: no" >&5
8527 echo "${ECHO_T}no" >&6
8528           fi
8529
8530
8531           enablestring=
8532           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8533 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8534           no_cache=0
8535           # Check whether --enable-dirpicker or --disable-dirpicker was given.
8536 if test "${enable_dirpicker+set}" = set; then
8537   enableval="$enable_dirpicker"
8538
8539                           if test "$enableval" = yes; then
8540                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8541                           else
8542                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8543                           fi
8544
8545 else
8546
8547                           LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8548                           if test "x$LINE" != x ; then
8549                             eval "DEFAULT_$LINE"
8550                           else
8551                             no_cache=1
8552                           fi
8553
8554                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8555
8556 fi;
8557
8558           eval "$ac_cv_use_dirpicker"
8559           if test "$no_cache" != 1; then
8560             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8561           fi
8562
8563           if test "$wxUSE_DIRPICKERCTRL" = yes; then
8564             echo "$as_me:$LINENO: result: yes" >&5
8565 echo "${ECHO_T}yes" >&6
8566           else
8567             echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6
8569           fi
8570
8571
8572           enablestring=
8573           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8574 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8575           no_cache=0
8576           # Check whether --enable-display or --disable-display was given.
8577 if test "${enable_display+set}" = set; then
8578   enableval="$enable_display"
8579
8580                           if test "$enableval" = yes; then
8581                             ac_cv_use_display='wxUSE_DISPLAY=yes'
8582                           else
8583                             ac_cv_use_display='wxUSE_DISPLAY=no'
8584                           fi
8585
8586 else
8587
8588                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8589                           if test "x$LINE" != x ; then
8590                             eval "DEFAULT_$LINE"
8591                           else
8592                             no_cache=1
8593                           fi
8594
8595                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8596
8597 fi;
8598
8599           eval "$ac_cv_use_display"
8600           if test "$no_cache" != 1; then
8601             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8602           fi
8603
8604           if test "$wxUSE_DISPLAY" = yes; then
8605             echo "$as_me:$LINENO: result: yes" >&5
8606 echo "${ECHO_T}yes" >&6
8607           else
8608             echo "$as_me:$LINENO: result: no" >&5
8609 echo "${ECHO_T}no" >&6
8610           fi
8611
8612
8613           enablestring=
8614           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8615 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8616           no_cache=0
8617           # Check whether --enable-filepicker or --disable-filepicker was given.
8618 if test "${enable_filepicker+set}" = set; then
8619   enableval="$enable_filepicker"
8620
8621                           if test "$enableval" = yes; then
8622                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8623                           else
8624                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8625                           fi
8626
8627 else
8628
8629                           LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8630                           if test "x$LINE" != x ; then
8631                             eval "DEFAULT_$LINE"
8632                           else
8633                             no_cache=1
8634                           fi
8635
8636                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8637
8638 fi;
8639
8640           eval "$ac_cv_use_filepicker"
8641           if test "$no_cache" != 1; then
8642             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8643           fi
8644
8645           if test "$wxUSE_FILEPICKERCTRL" = yes; then
8646             echo "$as_me:$LINENO: result: yes" >&5
8647 echo "${ECHO_T}yes" >&6
8648           else
8649             echo "$as_me:$LINENO: result: no" >&5
8650 echo "${ECHO_T}no" >&6
8651           fi
8652
8653
8654           enablestring=
8655           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8656 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8657           no_cache=0
8658           # Check whether --enable-fontpicker or --disable-fontpicker was given.
8659 if test "${enable_fontpicker+set}" = set; then
8660   enableval="$enable_fontpicker"
8661
8662                           if test "$enableval" = yes; then
8663                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8664                           else
8665                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8666                           fi
8667
8668 else
8669
8670                           LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8671                           if test "x$LINE" != x ; then
8672                             eval "DEFAULT_$LINE"
8673                           else
8674                             no_cache=1
8675                           fi
8676
8677                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8678
8679 fi;
8680
8681           eval "$ac_cv_use_fontpicker"
8682           if test "$no_cache" != 1; then
8683             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8684           fi
8685
8686           if test "$wxUSE_FONTPICKERCTRL" = yes; then
8687             echo "$as_me:$LINENO: result: yes" >&5
8688 echo "${ECHO_T}yes" >&6
8689           else
8690             echo "$as_me:$LINENO: result: no" >&5
8691 echo "${ECHO_T}no" >&6
8692           fi
8693
8694
8695           enablestring=
8696           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8697 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8698           no_cache=0
8699           # Check whether --enable-gauge or --disable-gauge was given.
8700 if test "${enable_gauge+set}" = set; then
8701   enableval="$enable_gauge"
8702
8703                           if test "$enableval" = yes; then
8704                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
8705                           else
8706                             ac_cv_use_gauge='wxUSE_GAUGE=no'
8707                           fi
8708
8709 else
8710
8711                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8712                           if test "x$LINE" != x ; then
8713                             eval "DEFAULT_$LINE"
8714                           else
8715                             no_cache=1
8716                           fi
8717
8718                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8719
8720 fi;
8721
8722           eval "$ac_cv_use_gauge"
8723           if test "$no_cache" != 1; then
8724             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8725           fi
8726
8727           if test "$wxUSE_GAUGE" = yes; then
8728             echo "$as_me:$LINENO: result: yes" >&5
8729 echo "${ECHO_T}yes" >&6
8730           else
8731             echo "$as_me:$LINENO: result: no" >&5
8732 echo "${ECHO_T}no" >&6
8733           fi
8734
8735
8736           enablestring=
8737           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8738 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8739           no_cache=0
8740           # Check whether --enable-grid or --disable-grid was given.
8741 if test "${enable_grid+set}" = set; then
8742   enableval="$enable_grid"
8743
8744                           if test "$enableval" = yes; then
8745                             ac_cv_use_grid='wxUSE_GRID=yes'
8746                           else
8747                             ac_cv_use_grid='wxUSE_GRID=no'
8748                           fi
8749
8750 else
8751
8752                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8753                           if test "x$LINE" != x ; then
8754                             eval "DEFAULT_$LINE"
8755                           else
8756                             no_cache=1
8757                           fi
8758
8759                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8760
8761 fi;
8762
8763           eval "$ac_cv_use_grid"
8764           if test "$no_cache" != 1; then
8765             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8766           fi
8767
8768           if test "$wxUSE_GRID" = yes; then
8769             echo "$as_me:$LINENO: result: yes" >&5
8770 echo "${ECHO_T}yes" >&6
8771           else
8772             echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6
8774           fi
8775
8776
8777           enablestring=
8778           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8779 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8780           no_cache=0
8781           # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8782 if test "${enable_dataviewctrl+set}" = set; then
8783   enableval="$enable_dataviewctrl"
8784
8785                           if test "$enableval" = yes; then
8786                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8787                           else
8788                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8789                           fi
8790
8791 else
8792
8793                           LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8794                           if test "x$LINE" != x ; then
8795                             eval "DEFAULT_$LINE"
8796                           else
8797                             no_cache=1
8798                           fi
8799
8800                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8801
8802 fi;
8803
8804           eval "$ac_cv_use_dataviewctrl"
8805           if test "$no_cache" != 1; then
8806             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8807           fi
8808
8809           if test "$wxUSE_DATAVIEWCTRL" = yes; then
8810             echo "$as_me:$LINENO: result: yes" >&5
8811 echo "${ECHO_T}yes" >&6
8812           else
8813             echo "$as_me:$LINENO: result: no" >&5
8814 echo "${ECHO_T}no" >&6
8815           fi
8816
8817
8818           enablestring=
8819           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8820 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8821           no_cache=0
8822           # Check whether --enable-hyperlink or --disable-hyperlink was given.
8823 if test "${enable_hyperlink+set}" = set; then
8824   enableval="$enable_hyperlink"
8825
8826                           if test "$enableval" = yes; then
8827                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8828                           else
8829                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8830                           fi
8831
8832 else
8833
8834                           LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8835                           if test "x$LINE" != x ; then
8836                             eval "DEFAULT_$LINE"
8837                           else
8838                             no_cache=1
8839                           fi
8840
8841                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8842
8843 fi;
8844
8845           eval "$ac_cv_use_hyperlink"
8846           if test "$no_cache" != 1; then
8847             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8848           fi
8849
8850           if test "$wxUSE_HYPERLINKCTRL" = yes; then
8851             echo "$as_me:$LINENO: result: yes" >&5
8852 echo "${ECHO_T}yes" >&6
8853           else
8854             echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8856           fi
8857
8858
8859           enablestring=
8860           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8861 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8862           no_cache=0
8863           # Check whether --enable-imaglist or --disable-imaglist was given.
8864 if test "${enable_imaglist+set}" = set; then
8865   enableval="$enable_imaglist"
8866
8867                           if test "$enableval" = yes; then
8868                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8869                           else
8870                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8871                           fi
8872
8873 else
8874
8875                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8876                           if test "x$LINE" != x ; then
8877                             eval "DEFAULT_$LINE"
8878                           else
8879                             no_cache=1
8880                           fi
8881
8882                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8883
8884 fi;
8885
8886           eval "$ac_cv_use_imaglist"
8887           if test "$no_cache" != 1; then
8888             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8889           fi
8890
8891           if test "$wxUSE_IMAGLIST" = yes; then
8892             echo "$as_me:$LINENO: result: yes" >&5
8893 echo "${ECHO_T}yes" >&6
8894           else
8895             echo "$as_me:$LINENO: result: no" >&5
8896 echo "${ECHO_T}no" >&6
8897           fi
8898
8899
8900           enablestring=
8901           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8902 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8903           no_cache=0
8904           # Check whether --enable-listbook or --disable-listbook was given.
8905 if test "${enable_listbook+set}" = set; then
8906   enableval="$enable_listbook"
8907
8908                           if test "$enableval" = yes; then
8909                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8910                           else
8911                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8912                           fi
8913
8914 else
8915
8916                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8917                           if test "x$LINE" != x ; then
8918                             eval "DEFAULT_$LINE"
8919                           else
8920                             no_cache=1
8921                           fi
8922
8923                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8924
8925 fi;
8926
8927           eval "$ac_cv_use_listbook"
8928           if test "$no_cache" != 1; then
8929             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8930           fi
8931
8932           if test "$wxUSE_LISTBOOK" = yes; then
8933             echo "$as_me:$LINENO: result: yes" >&5
8934 echo "${ECHO_T}yes" >&6
8935           else
8936             echo "$as_me:$LINENO: result: no" >&5
8937 echo "${ECHO_T}no" >&6
8938           fi
8939
8940
8941           enablestring=
8942           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8943 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8944           no_cache=0
8945           # Check whether --enable-listbox or --disable-listbox was given.
8946 if test "${enable_listbox+set}" = set; then
8947   enableval="$enable_listbox"
8948
8949                           if test "$enableval" = yes; then
8950                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8951                           else
8952                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
8953                           fi
8954
8955 else
8956
8957                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8958                           if test "x$LINE" != x ; then
8959                             eval "DEFAULT_$LINE"
8960                           else
8961                             no_cache=1
8962                           fi
8963
8964                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8965
8966 fi;
8967
8968           eval "$ac_cv_use_listbox"
8969           if test "$no_cache" != 1; then
8970             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8971           fi
8972
8973           if test "$wxUSE_LISTBOX" = yes; then
8974             echo "$as_me:$LINENO: result: yes" >&5
8975 echo "${ECHO_T}yes" >&6
8976           else
8977             echo "$as_me:$LINENO: result: no" >&5
8978 echo "${ECHO_T}no" >&6
8979           fi
8980
8981
8982           enablestring=
8983           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8984 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8985           no_cache=0
8986           # Check whether --enable-listctrl or --disable-listctrl was given.
8987 if test "${enable_listctrl+set}" = set; then
8988   enableval="$enable_listctrl"
8989
8990                           if test "$enableval" = yes; then
8991                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8992                           else
8993                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8994                           fi
8995
8996 else
8997
8998                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8999                           if test "x$LINE" != x ; then
9000                             eval "DEFAULT_$LINE"
9001                           else
9002                             no_cache=1
9003                           fi
9004
9005                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9006
9007 fi;
9008
9009           eval "$ac_cv_use_listctrl"
9010           if test "$no_cache" != 1; then
9011             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9012           fi
9013
9014           if test "$wxUSE_LISTCTRL" = yes; then
9015             echo "$as_me:$LINENO: result: yes" >&5
9016 echo "${ECHO_T}yes" >&6
9017           else
9018             echo "$as_me:$LINENO: result: no" >&5
9019 echo "${ECHO_T}no" >&6
9020           fi
9021
9022
9023           enablestring=
9024           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9025 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9026           no_cache=0
9027           # Check whether --enable-notebook or --disable-notebook was given.
9028 if test "${enable_notebook+set}" = set; then
9029   enableval="$enable_notebook"
9030
9031                           if test "$enableval" = yes; then
9032                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9033                           else
9034                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9035                           fi
9036
9037 else
9038
9039                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9040                           if test "x$LINE" != x ; then
9041                             eval "DEFAULT_$LINE"
9042                           else
9043                             no_cache=1
9044                           fi
9045
9046                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9047
9048 fi;
9049
9050           eval "$ac_cv_use_notebook"
9051           if test "$no_cache" != 1; then
9052             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9053           fi
9054
9055           if test "$wxUSE_NOTEBOOK" = yes; then
9056             echo "$as_me:$LINENO: result: yes" >&5
9057 echo "${ECHO_T}yes" >&6
9058           else
9059             echo "$as_me:$LINENO: result: no" >&5
9060 echo "${ECHO_T}no" >&6
9061           fi
9062
9063
9064           enablestring=
9065           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9066 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
9067           no_cache=0
9068           # Check whether --enable-odcombobox or --disable-odcombobox was given.
9069 if test "${enable_odcombobox+set}" = set; then
9070   enableval="$enable_odcombobox"
9071
9072                           if test "$enableval" = yes; then
9073                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
9074                           else
9075                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
9076                           fi
9077
9078 else
9079
9080                           LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
9081                           if test "x$LINE" != x ; then
9082                             eval "DEFAULT_$LINE"
9083                           else
9084                             no_cache=1
9085                           fi
9086
9087                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
9088
9089 fi;
9090
9091           eval "$ac_cv_use_odcombobox"
9092           if test "$no_cache" != 1; then
9093             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
9094           fi
9095
9096           if test "$wxUSE_ODCOMBOBOX" = yes; then
9097             echo "$as_me:$LINENO: result: yes" >&5
9098 echo "${ECHO_T}yes" >&6
9099           else
9100             echo "$as_me:$LINENO: result: no" >&5
9101 echo "${ECHO_T}no" >&6
9102           fi
9103
9104
9105           enablestring=
9106           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9107 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9108           no_cache=0
9109           # Check whether --enable-radiobox or --disable-radiobox was given.
9110 if test "${enable_radiobox+set}" = set; then
9111   enableval="$enable_radiobox"
9112
9113                           if test "$enableval" = yes; then
9114                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9115                           else
9116                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9117                           fi
9118
9119 else
9120
9121                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9122                           if test "x$LINE" != x ; then
9123                             eval "DEFAULT_$LINE"
9124                           else
9125                             no_cache=1
9126                           fi
9127
9128                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9129
9130 fi;
9131
9132           eval "$ac_cv_use_radiobox"
9133           if test "$no_cache" != 1; then
9134             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9135           fi
9136
9137           if test "$wxUSE_RADIOBOX" = yes; then
9138             echo "$as_me:$LINENO: result: yes" >&5
9139 echo "${ECHO_T}yes" >&6
9140           else
9141             echo "$as_me:$LINENO: result: no" >&5
9142 echo "${ECHO_T}no" >&6
9143           fi
9144
9145
9146           enablestring=
9147           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9148 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9149           no_cache=0
9150           # Check whether --enable-radiobtn or --disable-radiobtn was given.
9151 if test "${enable_radiobtn+set}" = set; then
9152   enableval="$enable_radiobtn"
9153
9154                           if test "$enableval" = yes; then
9155                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9156                           else
9157                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9158                           fi
9159
9160 else
9161
9162                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9163                           if test "x$LINE" != x ; then
9164                             eval "DEFAULT_$LINE"
9165                           else
9166                             no_cache=1
9167                           fi
9168
9169                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9170
9171 fi;
9172
9173           eval "$ac_cv_use_radiobtn"
9174           if test "$no_cache" != 1; then
9175             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9176           fi
9177
9178           if test "$wxUSE_RADIOBTN" = yes; then
9179             echo "$as_me:$LINENO: result: yes" >&5
9180 echo "${ECHO_T}yes" >&6
9181           else
9182             echo "$as_me:$LINENO: result: no" >&5
9183 echo "${ECHO_T}no" >&6
9184           fi
9185
9186
9187           enablestring=
9188           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9189 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9190           no_cache=0
9191           # Check whether --enable-sash or --disable-sash was given.
9192 if test "${enable_sash+set}" = set; then
9193   enableval="$enable_sash"
9194
9195                           if test "$enableval" = yes; then
9196                             ac_cv_use_sash='wxUSE_SASH=yes'
9197                           else
9198                             ac_cv_use_sash='wxUSE_SASH=no'
9199                           fi
9200
9201 else
9202
9203                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9204                           if test "x$LINE" != x ; then
9205                             eval "DEFAULT_$LINE"
9206                           else
9207                             no_cache=1
9208                           fi
9209
9210                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9211
9212 fi;
9213
9214           eval "$ac_cv_use_sash"
9215           if test "$no_cache" != 1; then
9216             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9217           fi
9218
9219           if test "$wxUSE_SASH" = yes; then
9220             echo "$as_me:$LINENO: result: yes" >&5
9221 echo "${ECHO_T}yes" >&6
9222           else
9223             echo "$as_me:$LINENO: result: no" >&5
9224 echo "${ECHO_T}no" >&6
9225           fi
9226
9227
9228           enablestring=
9229           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9230 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9231           no_cache=0
9232           # Check whether --enable-scrollbar or --disable-scrollbar was given.
9233 if test "${enable_scrollbar+set}" = set; then
9234   enableval="$enable_scrollbar"
9235
9236                           if test "$enableval" = yes; then
9237                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9238                           else
9239                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9240                           fi
9241
9242 else
9243
9244                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9245                           if test "x$LINE" != x ; then
9246                             eval "DEFAULT_$LINE"
9247                           else
9248                             no_cache=1
9249                           fi
9250
9251                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9252
9253 fi;
9254
9255           eval "$ac_cv_use_scrollbar"
9256           if test "$no_cache" != 1; then
9257             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9258           fi
9259
9260           if test "$wxUSE_SCROLLBAR" = yes; then
9261             echo "$as_me:$LINENO: result: yes" >&5
9262 echo "${ECHO_T}yes" >&6
9263           else
9264             echo "$as_me:$LINENO: result: no" >&5
9265 echo "${ECHO_T}no" >&6
9266           fi
9267
9268
9269           enablestring=
9270           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9271 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9272           no_cache=0
9273           # Check whether --enable-slider or --disable-slider was given.
9274 if test "${enable_slider+set}" = set; then
9275   enableval="$enable_slider"
9276
9277                           if test "$enableval" = yes; then
9278                             ac_cv_use_slider='wxUSE_SLIDER=yes'
9279                           else
9280                             ac_cv_use_slider='wxUSE_SLIDER=no'
9281                           fi
9282
9283 else
9284
9285                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9286                           if test "x$LINE" != x ; then
9287                             eval "DEFAULT_$LINE"
9288                           else
9289                             no_cache=1
9290                           fi
9291
9292                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9293
9294 fi;
9295
9296           eval "$ac_cv_use_slider"
9297           if test "$no_cache" != 1; then
9298             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9299           fi
9300
9301           if test "$wxUSE_SLIDER" = yes; then
9302             echo "$as_me:$LINENO: result: yes" >&5
9303 echo "${ECHO_T}yes" >&6
9304           else
9305             echo "$as_me:$LINENO: result: no" >&5
9306 echo "${ECHO_T}no" >&6
9307           fi
9308
9309
9310           enablestring=
9311           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9312 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9313           no_cache=0
9314           # Check whether --enable-spinbtn or --disable-spinbtn was given.
9315 if test "${enable_spinbtn+set}" = set; then
9316   enableval="$enable_spinbtn"
9317
9318                           if test "$enableval" = yes; then
9319                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9320                           else
9321                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9322                           fi
9323
9324 else
9325
9326                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9327                           if test "x$LINE" != x ; then
9328                             eval "DEFAULT_$LINE"
9329                           else
9330                             no_cache=1
9331                           fi
9332
9333                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9334
9335 fi;
9336
9337           eval "$ac_cv_use_spinbtn"
9338           if test "$no_cache" != 1; then
9339             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9340           fi
9341
9342           if test "$wxUSE_SPINBTN" = yes; then
9343             echo "$as_me:$LINENO: result: yes" >&5
9344 echo "${ECHO_T}yes" >&6
9345           else
9346             echo "$as_me:$LINENO: result: no" >&5
9347 echo "${ECHO_T}no" >&6
9348           fi
9349
9350
9351           enablestring=
9352           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9353 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9354           no_cache=0
9355           # Check whether --enable-spinctrl or --disable-spinctrl was given.
9356 if test "${enable_spinctrl+set}" = set; then
9357   enableval="$enable_spinctrl"
9358
9359                           if test "$enableval" = yes; then
9360                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9361                           else
9362                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9363                           fi
9364
9365 else
9366
9367                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9368                           if test "x$LINE" != x ; then
9369                             eval "DEFAULT_$LINE"
9370                           else
9371                             no_cache=1
9372                           fi
9373
9374                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9375
9376 fi;
9377
9378           eval "$ac_cv_use_spinctrl"
9379           if test "$no_cache" != 1; then
9380             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9381           fi
9382
9383           if test "$wxUSE_SPINCTRL" = yes; then
9384             echo "$as_me:$LINENO: result: yes" >&5
9385 echo "${ECHO_T}yes" >&6
9386           else
9387             echo "$as_me:$LINENO: result: no" >&5
9388 echo "${ECHO_T}no" >&6
9389           fi
9390
9391
9392           enablestring=
9393           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9394 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9395           no_cache=0
9396           # Check whether --enable-splitter or --disable-splitter was given.
9397 if test "${enable_splitter+set}" = set; then
9398   enableval="$enable_splitter"
9399
9400                           if test "$enableval" = yes; then
9401                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9402                           else
9403                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
9404                           fi
9405
9406 else
9407
9408                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9409                           if test "x$LINE" != x ; then
9410                             eval "DEFAULT_$LINE"
9411                           else
9412                             no_cache=1
9413                           fi
9414
9415                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9416
9417 fi;
9418
9419           eval "$ac_cv_use_splitter"
9420           if test "$no_cache" != 1; then
9421             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9422           fi
9423
9424           if test "$wxUSE_SPLITTER" = yes; then
9425             echo "$as_me:$LINENO: result: yes" >&5
9426 echo "${ECHO_T}yes" >&6
9427           else
9428             echo "$as_me:$LINENO: result: no" >&5
9429 echo "${ECHO_T}no" >&6
9430           fi
9431
9432
9433           enablestring=
9434           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9435 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9436           no_cache=0
9437           # Check whether --enable-statbmp or --disable-statbmp was given.
9438 if test "${enable_statbmp+set}" = set; then
9439   enableval="$enable_statbmp"
9440
9441                           if test "$enableval" = yes; then
9442                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9443                           else
9444                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
9445                           fi
9446
9447 else
9448
9449                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9450                           if test "x$LINE" != x ; then
9451                             eval "DEFAULT_$LINE"
9452                           else
9453                             no_cache=1
9454                           fi
9455
9456                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9457
9458 fi;
9459
9460           eval "$ac_cv_use_statbmp"
9461           if test "$no_cache" != 1; then
9462             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9463           fi
9464
9465           if test "$wxUSE_STATBMP" = yes; then
9466             echo "$as_me:$LINENO: result: yes" >&5
9467 echo "${ECHO_T}yes" >&6
9468           else
9469             echo "$as_me:$LINENO: result: no" >&5
9470 echo "${ECHO_T}no" >&6
9471           fi
9472
9473
9474           enablestring=
9475           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9476 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9477           no_cache=0
9478           # Check whether --enable-statbox or --disable-statbox was given.
9479 if test "${enable_statbox+set}" = set; then
9480   enableval="$enable_statbox"
9481
9482                           if test "$enableval" = yes; then
9483                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
9484                           else
9485                             ac_cv_use_statbox='wxUSE_STATBOX=no'
9486                           fi
9487
9488 else
9489
9490                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9491                           if test "x$LINE" != x ; then
9492                             eval "DEFAULT_$LINE"
9493                           else
9494                             no_cache=1
9495                           fi
9496
9497                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9498
9499 fi;
9500
9501           eval "$ac_cv_use_statbox"
9502           if test "$no_cache" != 1; then
9503             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9504           fi
9505
9506           if test "$wxUSE_STATBOX" = yes; then
9507             echo "$as_me:$LINENO: result: yes" >&5
9508 echo "${ECHO_T}yes" >&6
9509           else
9510             echo "$as_me:$LINENO: result: no" >&5
9511 echo "${ECHO_T}no" >&6
9512           fi
9513
9514
9515           enablestring=
9516           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9517 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9518           no_cache=0
9519           # Check whether --enable-statline or --disable-statline was given.
9520 if test "${enable_statline+set}" = set; then
9521   enableval="$enable_statline"
9522
9523                           if test "$enableval" = yes; then
9524                             ac_cv_use_statline='wxUSE_STATLINE=yes'
9525                           else
9526                             ac_cv_use_statline='wxUSE_STATLINE=no'
9527                           fi
9528
9529 else
9530
9531                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9532                           if test "x$LINE" != x ; then
9533                             eval "DEFAULT_$LINE"
9534                           else
9535                             no_cache=1
9536                           fi
9537
9538                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9539
9540 fi;
9541
9542           eval "$ac_cv_use_statline"
9543           if test "$no_cache" != 1; then
9544             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9545           fi
9546
9547           if test "$wxUSE_STATLINE" = yes; then
9548             echo "$as_me:$LINENO: result: yes" >&5
9549 echo "${ECHO_T}yes" >&6
9550           else
9551             echo "$as_me:$LINENO: result: no" >&5
9552 echo "${ECHO_T}no" >&6
9553           fi
9554
9555
9556           enablestring=
9557           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9558 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9559           no_cache=0
9560           # Check whether --enable-stattext or --disable-stattext was given.
9561 if test "${enable_stattext+set}" = set; then
9562   enableval="$enable_stattext"
9563
9564                           if test "$enableval" = yes; then
9565                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9566                           else
9567                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
9568                           fi
9569
9570 else
9571
9572                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9573                           if test "x$LINE" != x ; then
9574                             eval "DEFAULT_$LINE"
9575                           else
9576                             no_cache=1
9577                           fi
9578
9579                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9580
9581 fi;
9582
9583           eval "$ac_cv_use_stattext"
9584           if test "$no_cache" != 1; then
9585             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9586           fi
9587
9588           if test "$wxUSE_STATTEXT" = yes; then
9589             echo "$as_me:$LINENO: result: yes" >&5
9590 echo "${ECHO_T}yes" >&6
9591           else
9592             echo "$as_me:$LINENO: result: no" >&5
9593 echo "${ECHO_T}no" >&6
9594           fi
9595
9596
9597           enablestring=
9598           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9599 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9600           no_cache=0
9601           # Check whether --enable-statusbar or --disable-statusbar was given.
9602 if test "${enable_statusbar+set}" = set; then
9603   enableval="$enable_statusbar"
9604
9605                           if test "$enableval" = yes; then
9606                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9607                           else
9608                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9609                           fi
9610
9611 else
9612
9613                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9614                           if test "x$LINE" != x ; then
9615                             eval "DEFAULT_$LINE"
9616                           else
9617                             no_cache=1
9618                           fi
9619
9620                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9621
9622 fi;
9623
9624           eval "$ac_cv_use_statusbar"
9625           if test "$no_cache" != 1; then
9626             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9627           fi
9628
9629           if test "$wxUSE_STATUSBAR" = yes; then
9630             echo "$as_me:$LINENO: result: yes" >&5
9631 echo "${ECHO_T}yes" >&6
9632           else
9633             echo "$as_me:$LINENO: result: no" >&5
9634 echo "${ECHO_T}no" >&6
9635           fi
9636
9637
9638           enablestring=
9639           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9640 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9641           no_cache=0
9642           # Check whether --enable-tabdialog or --disable-tabdialog was given.
9643 if test "${enable_tabdialog+set}" = set; then
9644   enableval="$enable_tabdialog"
9645
9646                           if test "$enableval" = yes; then
9647                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
9648                           else
9649                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
9650                           fi
9651
9652 else
9653
9654                           LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
9655                           if test "x$LINE" != x ; then
9656                             eval "DEFAULT_$LINE"
9657                           else
9658                             no_cache=1
9659                           fi
9660
9661                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
9662
9663 fi;
9664
9665           eval "$ac_cv_use_tabdialog"
9666           if test "$no_cache" != 1; then
9667             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9668           fi
9669
9670           if test "$wxUSE_TAB_DIALOG" = yes; then
9671             echo "$as_me:$LINENO: result: yes" >&5
9672 echo "${ECHO_T}yes" >&6
9673           else
9674             echo "$as_me:$LINENO: result: no" >&5
9675 echo "${ECHO_T}no" >&6
9676           fi
9677
9678
9679           enablestring=
9680           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9681 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9682           no_cache=0
9683           # Check whether --enable-textctrl or --disable-textctrl was given.
9684 if test "${enable_textctrl+set}" = set; then
9685   enableval="$enable_textctrl"
9686
9687                           if test "$enableval" = yes; then
9688                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9689                           else
9690                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9691                           fi
9692
9693 else
9694
9695                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9696                           if test "x$LINE" != x ; then
9697                             eval "DEFAULT_$LINE"
9698                           else
9699                             no_cache=1
9700                           fi
9701
9702                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9703
9704 fi;
9705
9706           eval "$ac_cv_use_textctrl"
9707           if test "$no_cache" != 1; then
9708             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9709           fi
9710
9711           if test "$wxUSE_TEXTCTRL" = yes; then
9712             echo "$as_me:$LINENO: result: yes" >&5
9713 echo "${ECHO_T}yes" >&6
9714           else
9715             echo "$as_me:$LINENO: result: no" >&5
9716 echo "${ECHO_T}no" >&6
9717           fi
9718
9719
9720           enablestring=
9721           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9722 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9723           no_cache=0
9724           # Check whether --enable-togglebtn or --disable-togglebtn was given.
9725 if test "${enable_togglebtn+set}" = set; then
9726   enableval="$enable_togglebtn"
9727
9728                           if test "$enableval" = yes; then
9729                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9730                           else
9731                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9732                           fi
9733
9734 else
9735
9736                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9737                           if test "x$LINE" != x ; then
9738                             eval "DEFAULT_$LINE"
9739                           else
9740                             no_cache=1
9741                           fi
9742
9743                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9744
9745 fi;
9746
9747           eval "$ac_cv_use_togglebtn"
9748           if test "$no_cache" != 1; then
9749             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9750           fi
9751
9752           if test "$wxUSE_TOGGLEBTN" = yes; then
9753             echo "$as_me:$LINENO: result: yes" >&5
9754 echo "${ECHO_T}yes" >&6
9755           else
9756             echo "$as_me:$LINENO: result: no" >&5
9757 echo "${ECHO_T}no" >&6
9758           fi
9759
9760
9761           enablestring=
9762           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9763 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9764           no_cache=0
9765           # Check whether --enable-toolbar or --disable-toolbar was given.
9766 if test "${enable_toolbar+set}" = set; then
9767   enableval="$enable_toolbar"
9768
9769                           if test "$enableval" = yes; then
9770                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9771                           else
9772                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9773                           fi
9774
9775 else
9776
9777                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9778                           if test "x$LINE" != x ; then
9779                             eval "DEFAULT_$LINE"
9780                           else
9781                             no_cache=1
9782                           fi
9783
9784                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9785
9786 fi;
9787
9788           eval "$ac_cv_use_toolbar"
9789           if test "$no_cache" != 1; then
9790             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9791           fi
9792
9793           if test "$wxUSE_TOOLBAR" = yes; then
9794             echo "$as_me:$LINENO: result: yes" >&5
9795 echo "${ECHO_T}yes" >&6
9796           else
9797             echo "$as_me:$LINENO: result: no" >&5
9798 echo "${ECHO_T}no" >&6
9799           fi
9800
9801
9802           enablestring=
9803           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9804 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9805           no_cache=0
9806           # Check whether --enable-tbarnative or --disable-tbarnative was given.
9807 if test "${enable_tbarnative+set}" = set; then
9808   enableval="$enable_tbarnative"
9809
9810                           if test "$enableval" = yes; then
9811                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9812                           else
9813                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9814                           fi
9815
9816 else
9817
9818                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9819                           if test "x$LINE" != x ; then
9820                             eval "DEFAULT_$LINE"
9821                           else
9822                             no_cache=1
9823                           fi
9824
9825                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9826
9827 fi;
9828
9829           eval "$ac_cv_use_tbarnative"
9830           if test "$no_cache" != 1; then
9831             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9832           fi
9833
9834           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9835             echo "$as_me:$LINENO: result: yes" >&5
9836 echo "${ECHO_T}yes" >&6
9837           else
9838             echo "$as_me:$LINENO: result: no" >&5
9839 echo "${ECHO_T}no" >&6
9840           fi
9841
9842
9843           enablestring=
9844           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9845 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9846           no_cache=0
9847           # Check whether --enable-treebook or --disable-treebook was given.
9848 if test "${enable_treebook+set}" = set; then
9849   enableval="$enable_treebook"
9850
9851                           if test "$enableval" = yes; then
9852                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9853                           else
9854                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9855                           fi
9856
9857 else
9858
9859                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9860                           if test "x$LINE" != x ; then
9861                             eval "DEFAULT_$LINE"
9862                           else
9863                             no_cache=1
9864                           fi
9865
9866                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9867
9868 fi;
9869
9870           eval "$ac_cv_use_treebook"
9871           if test "$no_cache" != 1; then
9872             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9873           fi
9874
9875           if test "$wxUSE_TREEBOOK" = yes; then
9876             echo "$as_me:$LINENO: result: yes" >&5
9877 echo "${ECHO_T}yes" >&6
9878           else
9879             echo "$as_me:$LINENO: result: no" >&5
9880 echo "${ECHO_T}no" >&6
9881           fi
9882
9883
9884           enablestring=
9885           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9886 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9887           no_cache=0
9888           # Check whether --enable-toolbook or --disable-toolbook was given.
9889 if test "${enable_toolbook+set}" = set; then
9890   enableval="$enable_toolbook"
9891
9892                           if test "$enableval" = yes; then
9893                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9894                           else
9895                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9896                           fi
9897
9898 else
9899
9900                           LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9901                           if test "x$LINE" != x ; then
9902                             eval "DEFAULT_$LINE"
9903                           else
9904                             no_cache=1
9905                           fi
9906
9907                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9908
9909 fi;
9910
9911           eval "$ac_cv_use_toolbook"
9912           if test "$no_cache" != 1; then
9913             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9914           fi
9915
9916           if test "$wxUSE_TOOLBOOK" = yes; then
9917             echo "$as_me:$LINENO: result: yes" >&5
9918 echo "${ECHO_T}yes" >&6
9919           else
9920             echo "$as_me:$LINENO: result: no" >&5
9921 echo "${ECHO_T}no" >&6
9922           fi
9923
9924
9925           enablestring=
9926           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9927 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9928           no_cache=0
9929           # Check whether --enable-treectrl or --disable-treectrl was given.
9930 if test "${enable_treectrl+set}" = set; then
9931   enableval="$enable_treectrl"
9932
9933                           if test "$enableval" = yes; then
9934                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9935                           else
9936                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9937                           fi
9938
9939 else
9940
9941                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9942                           if test "x$LINE" != x ; then
9943                             eval "DEFAULT_$LINE"
9944                           else
9945                             no_cache=1
9946                           fi
9947
9948                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9949
9950 fi;
9951
9952           eval "$ac_cv_use_treectrl"
9953           if test "$no_cache" != 1; then
9954             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9955           fi
9956
9957           if test "$wxUSE_TREECTRL" = yes; then
9958             echo "$as_me:$LINENO: result: yes" >&5
9959 echo "${ECHO_T}yes" >&6
9960           else
9961             echo "$as_me:$LINENO: result: no" >&5
9962 echo "${ECHO_T}no" >&6
9963           fi
9964
9965
9966           enablestring=
9967           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9968 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9969           no_cache=0
9970           # Check whether --enable-tipwindow or --disable-tipwindow was given.
9971 if test "${enable_tipwindow+set}" = set; then
9972   enableval="$enable_tipwindow"
9973
9974                           if test "$enableval" = yes; then
9975                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9976                           else
9977                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9978                           fi
9979
9980 else
9981
9982                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9983                           if test "x$LINE" != x ; then
9984                             eval "DEFAULT_$LINE"
9985                           else
9986                             no_cache=1
9987                           fi
9988
9989                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9990
9991 fi;
9992
9993           eval "$ac_cv_use_tipwindow"
9994           if test "$no_cache" != 1; then
9995             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9996           fi
9997
9998           if test "$wxUSE_TIPWINDOW" = yes; then
9999             echo "$as_me:$LINENO: result: yes" >&5
10000 echo "${ECHO_T}yes" >&6
10001           else
10002             echo "$as_me:$LINENO: result: no" >&5
10003 echo "${ECHO_T}no" >&6
10004           fi
10005
10006
10007           enablestring=
10008           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10009 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10010           no_cache=0
10011           # Check whether --enable-popupwin or --disable-popupwin was given.
10012 if test "${enable_popupwin+set}" = set; then
10013   enableval="$enable_popupwin"
10014
10015                           if test "$enableval" = yes; then
10016                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10017                           else
10018                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10019                           fi
10020
10021 else
10022
10023                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10024                           if test "x$LINE" != x ; then
10025                             eval "DEFAULT_$LINE"
10026                           else
10027                             no_cache=1
10028                           fi
10029
10030                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10031
10032 fi;
10033
10034           eval "$ac_cv_use_popupwin"
10035           if test "$no_cache" != 1; then
10036             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10037           fi
10038
10039           if test "$wxUSE_POPUPWIN" = yes; then
10040             echo "$as_me:$LINENO: result: yes" >&5
10041 echo "${ECHO_T}yes" >&6
10042           else
10043             echo "$as_me:$LINENO: result: no" >&5
10044 echo "${ECHO_T}no" >&6
10045           fi
10046
10047
10048
10049
10050           enablestring=
10051           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10052 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10053           no_cache=0
10054           # Check whether --enable-commondlg or --disable-commondlg was given.
10055 if test "${enable_commondlg+set}" = set; then
10056   enableval="$enable_commondlg"
10057
10058                           if test "$enableval" = yes; then
10059                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10060                           else
10061                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10062                           fi
10063
10064 else
10065
10066                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10067                           if test "x$LINE" != x ; then
10068                             eval "DEFAULT_$LINE"
10069                           else
10070                             no_cache=1
10071                           fi
10072
10073                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10074
10075 fi;
10076
10077           eval "$ac_cv_use_commondlg"
10078           if test "$no_cache" != 1; then
10079             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10080           fi
10081
10082           if test "$wxUSE_COMMONDLGS" = yes; then
10083             echo "$as_me:$LINENO: result: yes" >&5
10084 echo "${ECHO_T}yes" >&6
10085           else
10086             echo "$as_me:$LINENO: result: no" >&5
10087 echo "${ECHO_T}no" >&6
10088           fi
10089
10090
10091           enablestring=
10092           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10093 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10094           no_cache=0
10095           # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10096 if test "${enable_aboutdlg+set}" = set; then
10097   enableval="$enable_aboutdlg"
10098
10099                           if test "$enableval" = yes; then
10100                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10101                           else
10102                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10103                           fi
10104
10105 else
10106
10107                           LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10108                           if test "x$LINE" != x ; then
10109                             eval "DEFAULT_$LINE"
10110                           else
10111                             no_cache=1
10112                           fi
10113
10114                           ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10115
10116 fi;
10117
10118           eval "$ac_cv_use_aboutdlg"
10119           if test "$no_cache" != 1; then
10120             echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10121           fi
10122
10123           if test "$wxUSE_ABOUTDLG" = yes; then
10124             echo "$as_me:$LINENO: result: yes" >&5
10125 echo "${ECHO_T}yes" >&6
10126           else
10127             echo "$as_me:$LINENO: result: no" >&5
10128 echo "${ECHO_T}no" >&6
10129           fi
10130
10131
10132           enablestring=
10133           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10134 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10135           no_cache=0
10136           # Check whether --enable-choicedlg or --disable-choicedlg was given.
10137 if test "${enable_choicedlg+set}" = set; then
10138   enableval="$enable_choicedlg"
10139
10140                           if test "$enableval" = yes; then
10141                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10142                           else
10143                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10144                           fi
10145
10146 else
10147
10148                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10149                           if test "x$LINE" != x ; then
10150                             eval "DEFAULT_$LINE"
10151                           else
10152                             no_cache=1
10153                           fi
10154
10155                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10156
10157 fi;
10158
10159           eval "$ac_cv_use_choicedlg"
10160           if test "$no_cache" != 1; then
10161             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10162           fi
10163
10164           if test "$wxUSE_CHOICEDLG" = yes; then
10165             echo "$as_me:$LINENO: result: yes" >&5
10166 echo "${ECHO_T}yes" >&6
10167           else
10168             echo "$as_me:$LINENO: result: no" >&5
10169 echo "${ECHO_T}no" >&6
10170           fi
10171
10172
10173           enablestring=
10174           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10175 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10176           no_cache=0
10177           # Check whether --enable-coldlg or --disable-coldlg was given.
10178 if test "${enable_coldlg+set}" = set; then
10179   enableval="$enable_coldlg"
10180
10181                           if test "$enableval" = yes; then
10182                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10183                           else
10184                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10185                           fi
10186
10187 else
10188
10189                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10190                           if test "x$LINE" != x ; then
10191                             eval "DEFAULT_$LINE"
10192                           else
10193                             no_cache=1
10194                           fi
10195
10196                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10197
10198 fi;
10199
10200           eval "$ac_cv_use_coldlg"
10201           if test "$no_cache" != 1; then
10202             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10203           fi
10204
10205           if test "$wxUSE_COLOURDLG" = yes; then
10206             echo "$as_me:$LINENO: result: yes" >&5
10207 echo "${ECHO_T}yes" >&6
10208           else
10209             echo "$as_me:$LINENO: result: no" >&5
10210 echo "${ECHO_T}no" >&6
10211           fi
10212
10213
10214           enablestring=
10215           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10216 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10217           no_cache=0
10218           # Check whether --enable-filedlg or --disable-filedlg was given.
10219 if test "${enable_filedlg+set}" = set; then
10220   enableval="$enable_filedlg"
10221
10222                           if test "$enableval" = yes; then
10223                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10224                           else
10225                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10226                           fi
10227
10228 else
10229
10230                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10231                           if test "x$LINE" != x ; then
10232                             eval "DEFAULT_$LINE"
10233                           else
10234                             no_cache=1
10235                           fi
10236
10237                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10238
10239 fi;
10240
10241           eval "$ac_cv_use_filedlg"
10242           if test "$no_cache" != 1; then
10243             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10244           fi
10245
10246           if test "$wxUSE_FILEDLG" = yes; then
10247             echo "$as_me:$LINENO: result: yes" >&5
10248 echo "${ECHO_T}yes" >&6
10249           else
10250             echo "$as_me:$LINENO: result: no" >&5
10251 echo "${ECHO_T}no" >&6
10252           fi
10253
10254
10255           enablestring=
10256           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10257 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10258           no_cache=0
10259           # Check whether --enable-finddlg or --disable-finddlg was given.
10260 if test "${enable_finddlg+set}" = set; then
10261   enableval="$enable_finddlg"
10262
10263                           if test "$enableval" = yes; then
10264                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10265                           else
10266                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10267                           fi
10268
10269 else
10270
10271                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10272                           if test "x$LINE" != x ; then
10273                             eval "DEFAULT_$LINE"
10274                           else
10275                             no_cache=1
10276                           fi
10277
10278                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10279
10280 fi;
10281
10282           eval "$ac_cv_use_finddlg"
10283           if test "$no_cache" != 1; then
10284             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10285           fi
10286
10287           if test "$wxUSE_FINDREPLDLG" = yes; then
10288             echo "$as_me:$LINENO: result: yes" >&5
10289 echo "${ECHO_T}yes" >&6
10290           else
10291             echo "$as_me:$LINENO: result: no" >&5
10292 echo "${ECHO_T}no" >&6
10293           fi
10294
10295
10296           enablestring=
10297           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10298 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10299           no_cache=0
10300           # Check whether --enable-fontdlg or --disable-fontdlg was given.
10301 if test "${enable_fontdlg+set}" = set; then
10302   enableval="$enable_fontdlg"
10303
10304                           if test "$enableval" = yes; then
10305                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10306                           else
10307                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10308                           fi
10309
10310 else
10311
10312                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10313                           if test "x$LINE" != x ; then
10314                             eval "DEFAULT_$LINE"
10315                           else
10316                             no_cache=1
10317                           fi
10318
10319                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10320
10321 fi;
10322
10323           eval "$ac_cv_use_fontdlg"
10324           if test "$no_cache" != 1; then
10325             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10326           fi
10327
10328           if test "$wxUSE_FONTDLG" = yes; then
10329             echo "$as_me:$LINENO: result: yes" >&5
10330 echo "${ECHO_T}yes" >&6
10331           else
10332             echo "$as_me:$LINENO: result: no" >&5
10333 echo "${ECHO_T}no" >&6
10334           fi
10335
10336
10337           enablestring=
10338           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10339 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10340           no_cache=0
10341           # Check whether --enable-dirdlg or --disable-dirdlg was given.
10342 if test "${enable_dirdlg+set}" = set; then
10343   enableval="$enable_dirdlg"
10344
10345                           if test "$enableval" = yes; then
10346                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10347                           else
10348                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10349                           fi
10350
10351 else
10352
10353                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10354                           if test "x$LINE" != x ; then
10355                             eval "DEFAULT_$LINE"
10356                           else
10357                             no_cache=1
10358                           fi
10359
10360                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10361
10362 fi;
10363
10364           eval "$ac_cv_use_dirdlg"
10365           if test "$no_cache" != 1; then
10366             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10367           fi
10368
10369           if test "$wxUSE_DIRDLG" = yes; then
10370             echo "$as_me:$LINENO: result: yes" >&5
10371 echo "${ECHO_T}yes" >&6
10372           else
10373             echo "$as_me:$LINENO: result: no" >&5
10374 echo "${ECHO_T}no" >&6
10375           fi
10376
10377
10378           enablestring=
10379           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10380 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10381           no_cache=0
10382           # Check whether --enable-msgdlg or --disable-msgdlg was given.
10383 if test "${enable_msgdlg+set}" = set; then
10384   enableval="$enable_msgdlg"
10385
10386                           if test "$enableval" = yes; then
10387                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10388                           else
10389                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10390                           fi
10391
10392 else
10393
10394                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10395                           if test "x$LINE" != x ; then
10396                             eval "DEFAULT_$LINE"
10397                           else
10398                             no_cache=1
10399                           fi
10400
10401                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10402
10403 fi;
10404
10405           eval "$ac_cv_use_msgdlg"
10406           if test "$no_cache" != 1; then
10407             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10408           fi
10409
10410           if test "$wxUSE_MSGDLG" = yes; then
10411             echo "$as_me:$LINENO: result: yes" >&5
10412 echo "${ECHO_T}yes" >&6
10413           else
10414             echo "$as_me:$LINENO: result: no" >&5
10415 echo "${ECHO_T}no" >&6
10416           fi
10417
10418
10419           enablestring=
10420           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10421 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10422           no_cache=0
10423           # Check whether --enable-numberdlg or --disable-numberdlg was given.
10424 if test "${enable_numberdlg+set}" = set; then
10425   enableval="$enable_numberdlg"
10426
10427                           if test "$enableval" = yes; then
10428                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10429                           else
10430                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10431                           fi
10432
10433 else
10434
10435                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10436                           if test "x$LINE" != x ; then
10437                             eval "DEFAULT_$LINE"
10438                           else
10439                             no_cache=1
10440                           fi
10441
10442                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10443
10444 fi;
10445
10446           eval "$ac_cv_use_numberdlg"
10447           if test "$no_cache" != 1; then
10448             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10449           fi
10450
10451           if test "$wxUSE_NUMBERDLG" = yes; then
10452             echo "$as_me:$LINENO: result: yes" >&5
10453 echo "${ECHO_T}yes" >&6
10454           else
10455             echo "$as_me:$LINENO: result: no" >&5
10456 echo "${ECHO_T}no" >&6
10457           fi
10458
10459
10460           enablestring=
10461           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10462 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10463           no_cache=0
10464           # Check whether --enable-splash or --disable-splash was given.
10465 if test "${enable_splash+set}" = set; then
10466   enableval="$enable_splash"
10467
10468                           if test "$enableval" = yes; then
10469                             ac_cv_use_splash='wxUSE_SPLASH=yes'
10470                           else
10471                             ac_cv_use_splash='wxUSE_SPLASH=no'
10472                           fi
10473
10474 else
10475
10476                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10477                           if test "x$LINE" != x ; then
10478                             eval "DEFAULT_$LINE"
10479                           else
10480                             no_cache=1
10481                           fi
10482
10483                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10484
10485 fi;
10486
10487           eval "$ac_cv_use_splash"
10488           if test "$no_cache" != 1; then
10489             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10490           fi
10491
10492           if test "$wxUSE_SPLASH" = yes; then
10493             echo "$as_me:$LINENO: result: yes" >&5
10494 echo "${ECHO_T}yes" >&6
10495           else
10496             echo "$as_me:$LINENO: result: no" >&5
10497 echo "${ECHO_T}no" >&6
10498           fi
10499
10500
10501           enablestring=
10502           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10503 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10504           no_cache=0
10505           # Check whether --enable-textdlg or --disable-textdlg was given.
10506 if test "${enable_textdlg+set}" = set; then
10507   enableval="$enable_textdlg"
10508
10509                           if test "$enableval" = yes; then
10510                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10511                           else
10512                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10513                           fi
10514
10515 else
10516
10517                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10518                           if test "x$LINE" != x ; then
10519                             eval "DEFAULT_$LINE"
10520                           else
10521                             no_cache=1
10522                           fi
10523
10524                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10525
10526 fi;
10527
10528           eval "$ac_cv_use_textdlg"
10529           if test "$no_cache" != 1; then
10530             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10531           fi
10532
10533           if test "$wxUSE_TEXTDLG" = yes; then
10534             echo "$as_me:$LINENO: result: yes" >&5
10535 echo "${ECHO_T}yes" >&6
10536           else
10537             echo "$as_me:$LINENO: result: no" >&5
10538 echo "${ECHO_T}no" >&6
10539           fi
10540
10541
10542           enablestring=
10543           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10544 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10545           no_cache=0
10546           # Check whether --enable-tipdlg or --disable-tipdlg was given.
10547 if test "${enable_tipdlg+set}" = set; then
10548   enableval="$enable_tipdlg"
10549
10550                           if test "$enableval" = yes; then
10551                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10552                           else
10553                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10554                           fi
10555
10556 else
10557
10558                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10559                           if test "x$LINE" != x ; then
10560                             eval "DEFAULT_$LINE"
10561                           else
10562                             no_cache=1
10563                           fi
10564
10565                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10566
10567 fi;
10568
10569           eval "$ac_cv_use_tipdlg"
10570           if test "$no_cache" != 1; then
10571             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10572           fi
10573
10574           if test "$wxUSE_STARTUP_TIPS" = yes; then
10575             echo "$as_me:$LINENO: result: yes" >&5
10576 echo "${ECHO_T}yes" >&6
10577           else
10578             echo "$as_me:$LINENO: result: no" >&5
10579 echo "${ECHO_T}no" >&6
10580           fi
10581
10582
10583           enablestring=
10584           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10585 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10586           no_cache=0
10587           # Check whether --enable-progressdlg or --disable-progressdlg was given.
10588 if test "${enable_progressdlg+set}" = set; then
10589   enableval="$enable_progressdlg"
10590
10591                           if test "$enableval" = yes; then
10592                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10593                           else
10594                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10595                           fi
10596
10597 else
10598
10599                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10600                           if test "x$LINE" != x ; then
10601                             eval "DEFAULT_$LINE"
10602                           else
10603                             no_cache=1
10604                           fi
10605
10606                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10607
10608 fi;
10609
10610           eval "$ac_cv_use_progressdlg"
10611           if test "$no_cache" != 1; then
10612             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10613           fi
10614
10615           if test "$wxUSE_PROGRESSDLG" = yes; then
10616             echo "$as_me:$LINENO: result: yes" >&5
10617 echo "${ECHO_T}yes" >&6
10618           else
10619             echo "$as_me:$LINENO: result: no" >&5
10620 echo "${ECHO_T}no" >&6
10621           fi
10622
10623
10624           enablestring=
10625           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10626 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10627           no_cache=0
10628           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10629 if test "${enable_wizarddlg+set}" = set; then
10630   enableval="$enable_wizarddlg"
10631
10632                           if test "$enableval" = yes; then
10633                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10634                           else
10635                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10636                           fi
10637
10638 else
10639
10640                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10641                           if test "x$LINE" != x ; then
10642                             eval "DEFAULT_$LINE"
10643                           else
10644                             no_cache=1
10645                           fi
10646
10647                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10648
10649 fi;
10650
10651           eval "$ac_cv_use_wizarddlg"
10652           if test "$no_cache" != 1; then
10653             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10654           fi
10655
10656           if test "$wxUSE_WIZARDDLG" = yes; then
10657             echo "$as_me:$LINENO: result: yes" >&5
10658 echo "${ECHO_T}yes" >&6
10659           else
10660             echo "$as_me:$LINENO: result: no" >&5
10661 echo "${ECHO_T}no" >&6
10662           fi
10663
10664
10665
10666
10667           enablestring=
10668           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10669 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10670           no_cache=0
10671           # Check whether --enable-menus or --disable-menus was given.
10672 if test "${enable_menus+set}" = set; then
10673   enableval="$enable_menus"
10674
10675                           if test "$enableval" = yes; then
10676                             ac_cv_use_menus='wxUSE_MENUS=yes'
10677                           else
10678                             ac_cv_use_menus='wxUSE_MENUS=no'
10679                           fi
10680
10681 else
10682
10683                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10684                           if test "x$LINE" != x ; then
10685                             eval "DEFAULT_$LINE"
10686                           else
10687                             no_cache=1
10688                           fi
10689
10690                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10691
10692 fi;
10693
10694           eval "$ac_cv_use_menus"
10695           if test "$no_cache" != 1; then
10696             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10697           fi
10698
10699           if test "$wxUSE_MENUS" = yes; then
10700             echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6
10702           else
10703             echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6
10705           fi
10706
10707
10708           enablestring=
10709           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10710 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10711           no_cache=0
10712           # Check whether --enable-miniframe or --disable-miniframe was given.
10713 if test "${enable_miniframe+set}" = set; then
10714   enableval="$enable_miniframe"
10715
10716                           if test "$enableval" = yes; then
10717                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10718                           else
10719                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10720                           fi
10721
10722 else
10723
10724                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10725                           if test "x$LINE" != x ; then
10726                             eval "DEFAULT_$LINE"
10727                           else
10728                             no_cache=1
10729                           fi
10730
10731                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10732
10733 fi;
10734
10735           eval "$ac_cv_use_miniframe"
10736           if test "$no_cache" != 1; then
10737             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10738           fi
10739
10740           if test "$wxUSE_MINIFRAME" = yes; then
10741             echo "$as_me:$LINENO: result: yes" >&5
10742 echo "${ECHO_T}yes" >&6
10743           else
10744             echo "$as_me:$LINENO: result: no" >&5
10745 echo "${ECHO_T}no" >&6
10746           fi
10747
10748
10749           enablestring=
10750           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10751 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10752           no_cache=0
10753           # Check whether --enable-tooltips or --disable-tooltips was given.
10754 if test "${enable_tooltips+set}" = set; then
10755   enableval="$enable_tooltips"
10756
10757                           if test "$enableval" = yes; then
10758                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10759                           else
10760                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10761                           fi
10762
10763 else
10764
10765                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10766                           if test "x$LINE" != x ; then
10767                             eval "DEFAULT_$LINE"
10768                           else
10769                             no_cache=1
10770                           fi
10771
10772                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10773
10774 fi;
10775
10776           eval "$ac_cv_use_tooltips"
10777           if test "$no_cache" != 1; then
10778             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10779           fi
10780
10781           if test "$wxUSE_TOOLTIPS" = yes; then
10782             echo "$as_me:$LINENO: result: yes" >&5
10783 echo "${ECHO_T}yes" >&6
10784           else
10785             echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6
10787           fi
10788
10789
10790           enablestring=
10791           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10792 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10793           no_cache=0
10794           # Check whether --enable-splines or --disable-splines was given.
10795 if test "${enable_splines+set}" = set; then
10796   enableval="$enable_splines"
10797
10798                           if test "$enableval" = yes; then
10799                             ac_cv_use_splines='wxUSE_SPLINES=yes'
10800                           else
10801                             ac_cv_use_splines='wxUSE_SPLINES=no'
10802                           fi
10803
10804 else
10805
10806                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10807                           if test "x$LINE" != x ; then
10808                             eval "DEFAULT_$LINE"
10809                           else
10810                             no_cache=1
10811                           fi
10812
10813                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10814
10815 fi;
10816
10817           eval "$ac_cv_use_splines"
10818           if test "$no_cache" != 1; then
10819             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10820           fi
10821
10822           if test "$wxUSE_SPLINES" = yes; then
10823             echo "$as_me:$LINENO: result: yes" >&5
10824 echo "${ECHO_T}yes" >&6
10825           else
10826             echo "$as_me:$LINENO: result: no" >&5
10827 echo "${ECHO_T}no" >&6
10828           fi
10829
10830
10831           enablestring=
10832           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10833 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10834           no_cache=0
10835           # Check whether --enable-mousewheel or --disable-mousewheel was given.
10836 if test "${enable_mousewheel+set}" = set; then
10837   enableval="$enable_mousewheel"
10838
10839                           if test "$enableval" = yes; then
10840                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10841                           else
10842                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10843                           fi
10844
10845 else
10846
10847                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10848                           if test "x$LINE" != x ; then
10849                             eval "DEFAULT_$LINE"
10850                           else
10851                             no_cache=1
10852                           fi
10853
10854                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10855
10856 fi;
10857
10858           eval "$ac_cv_use_mousewheel"
10859           if test "$no_cache" != 1; then
10860             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10861           fi
10862
10863           if test "$wxUSE_MOUSEWHEEL" = yes; then
10864             echo "$as_me:$LINENO: result: yes" >&5
10865 echo "${ECHO_T}yes" >&6
10866           else
10867             echo "$as_me:$LINENO: result: no" >&5
10868 echo "${ECHO_T}no" >&6
10869           fi
10870
10871
10872           enablestring=
10873           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10874 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10875           no_cache=0
10876           # Check whether --enable-validators or --disable-validators was given.
10877 if test "${enable_validators+set}" = set; then
10878   enableval="$enable_validators"
10879
10880                           if test "$enableval" = yes; then
10881                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10882                           else
10883                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
10884                           fi
10885
10886 else
10887
10888                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10889                           if test "x$LINE" != x ; then
10890                             eval "DEFAULT_$LINE"
10891                           else
10892                             no_cache=1
10893                           fi
10894
10895                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10896
10897 fi;
10898
10899           eval "$ac_cv_use_validators"
10900           if test "$no_cache" != 1; then
10901             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10902           fi
10903
10904           if test "$wxUSE_VALIDATORS" = yes; then
10905             echo "$as_me:$LINENO: result: yes" >&5
10906 echo "${ECHO_T}yes" >&6
10907           else
10908             echo "$as_me:$LINENO: result: no" >&5
10909 echo "${ECHO_T}no" >&6
10910           fi
10911
10912
10913           enablestring=
10914           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10915 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10916           no_cache=0
10917           # Check whether --enable-busyinfo or --disable-busyinfo was given.
10918 if test "${enable_busyinfo+set}" = set; then
10919   enableval="$enable_busyinfo"
10920
10921                           if test "$enableval" = yes; then
10922                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10923                           else
10924                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10925                           fi
10926
10927 else
10928
10929                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10930                           if test "x$LINE" != x ; then
10931                             eval "DEFAULT_$LINE"
10932                           else
10933                             no_cache=1
10934                           fi
10935
10936                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10937
10938 fi;
10939
10940           eval "$ac_cv_use_busyinfo"
10941           if test "$no_cache" != 1; then
10942             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10943           fi
10944
10945           if test "$wxUSE_BUSYINFO" = yes; then
10946             echo "$as_me:$LINENO: result: yes" >&5
10947 echo "${ECHO_T}yes" >&6
10948           else
10949             echo "$as_me:$LINENO: result: no" >&5
10950 echo "${ECHO_T}no" >&6
10951           fi
10952
10953
10954           enablestring=
10955           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10956 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10957           no_cache=0
10958           # Check whether --enable-joystick or --disable-joystick was given.
10959 if test "${enable_joystick+set}" = set; then
10960   enableval="$enable_joystick"
10961
10962                           if test "$enableval" = yes; then
10963                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10964                           else
10965                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10966                           fi
10967
10968 else
10969
10970                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10971                           if test "x$LINE" != x ; then
10972                             eval "DEFAULT_$LINE"
10973                           else
10974                             no_cache=1
10975                           fi
10976
10977                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10978
10979 fi;
10980
10981           eval "$ac_cv_use_joystick"
10982           if test "$no_cache" != 1; then
10983             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10984           fi
10985
10986           if test "$wxUSE_JOYSTICK" = yes; then
10987             echo "$as_me:$LINENO: result: yes" >&5
10988 echo "${ECHO_T}yes" >&6
10989           else
10990             echo "$as_me:$LINENO: result: no" >&5
10991 echo "${ECHO_T}no" >&6
10992           fi
10993
10994
10995           enablestring=
10996           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10997 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10998           no_cache=0
10999           # Check whether --enable-metafile or --disable-metafile was given.
11000 if test "${enable_metafile+set}" = set; then
11001   enableval="$enable_metafile"
11002
11003                           if test "$enableval" = yes; then
11004                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
11005                           else
11006                             ac_cv_use_metafile='wxUSE_METAFILE=no'
11007                           fi
11008
11009 else
11010
11011                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11012                           if test "x$LINE" != x ; then
11013                             eval "DEFAULT_$LINE"
11014                           else
11015                             no_cache=1
11016                           fi
11017
11018                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11019
11020 fi;
11021
11022           eval "$ac_cv_use_metafile"
11023           if test "$no_cache" != 1; then
11024             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11025           fi
11026
11027           if test "$wxUSE_METAFILE" = yes; then
11028             echo "$as_me:$LINENO: result: yes" >&5
11029 echo "${ECHO_T}yes" >&6
11030           else
11031             echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6
11033           fi
11034
11035
11036           enablestring=
11037           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11038 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11039           no_cache=0
11040           # Check whether --enable-dragimage or --disable-dragimage was given.
11041 if test "${enable_dragimage+set}" = set; then
11042   enableval="$enable_dragimage"
11043
11044                           if test "$enableval" = yes; then
11045                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11046                           else
11047                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11048                           fi
11049
11050 else
11051
11052                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11053                           if test "x$LINE" != x ; then
11054                             eval "DEFAULT_$LINE"
11055                           else
11056                             no_cache=1
11057                           fi
11058
11059                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11060
11061 fi;
11062
11063           eval "$ac_cv_use_dragimage"
11064           if test "$no_cache" != 1; then
11065             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11066           fi
11067
11068           if test "$wxUSE_DRAGIMAGE" = yes; then
11069             echo "$as_me:$LINENO: result: yes" >&5
11070 echo "${ECHO_T}yes" >&6
11071           else
11072             echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6
11074           fi
11075
11076
11077           enablestring=
11078           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11079 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11080           no_cache=0
11081           # Check whether --enable-accessibility or --disable-accessibility was given.
11082 if test "${enable_accessibility+set}" = set; then
11083   enableval="$enable_accessibility"
11084
11085                           if test "$enableval" = yes; then
11086                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11087                           else
11088                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11089                           fi
11090
11091 else
11092
11093                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11094                           if test "x$LINE" != x ; then
11095                             eval "DEFAULT_$LINE"
11096                           else
11097                             no_cache=1
11098                           fi
11099
11100                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11101
11102 fi;
11103
11104           eval "$ac_cv_use_accessibility"
11105           if test "$no_cache" != 1; then
11106             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11107           fi
11108
11109           if test "$wxUSE_ACCESSIBILITY" = yes; then
11110             echo "$as_me:$LINENO: result: yes" >&5
11111 echo "${ECHO_T}yes" >&6
11112           else
11113             echo "$as_me:$LINENO: result: no" >&5
11114 echo "${ECHO_T}no" >&6
11115           fi
11116
11117
11118 if test "$wxUSE_MSW" = "1"; then
11119
11120           enablestring=
11121           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11122 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11123           no_cache=0
11124           # Check whether --enable-dccache or --disable-dccache was given.
11125 if test "${enable_dccache+set}" = set; then
11126   enableval="$enable_dccache"
11127
11128                           if test "$enableval" = yes; then
11129                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11130                           else
11131                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11132                           fi
11133
11134 else
11135
11136                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11137                           if test "x$LINE" != x ; then
11138                             eval "DEFAULT_$LINE"
11139                           else
11140                             no_cache=1
11141                           fi
11142
11143                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11144
11145 fi;
11146
11147           eval "$ac_cv_use_dccache"
11148           if test "$no_cache" != 1; then
11149             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11150           fi
11151
11152           if test "$wxUSE_DC_CACHEING" = yes; then
11153             echo "$as_me:$LINENO: result: yes" >&5
11154 echo "${ECHO_T}yes" >&6
11155           else
11156             echo "$as_me:$LINENO: result: no" >&5
11157 echo "${ECHO_T}no" >&6
11158           fi
11159
11160 fi
11161
11162
11163
11164           enablestring=
11165           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11166 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11167           no_cache=0
11168           # Check whether --enable-palette or --disable-palette was given.
11169 if test "${enable_palette+set}" = set; then
11170   enableval="$enable_palette"
11171
11172                           if test "$enableval" = yes; then
11173                             ac_cv_use_palette='wxUSE_PALETTE=yes'
11174                           else
11175                             ac_cv_use_palette='wxUSE_PALETTE=no'
11176                           fi
11177
11178 else
11179
11180                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11181                           if test "x$LINE" != x ; then
11182                             eval "DEFAULT_$LINE"
11183                           else
11184                             no_cache=1
11185                           fi
11186
11187                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11188
11189 fi;
11190
11191           eval "$ac_cv_use_palette"
11192           if test "$no_cache" != 1; then
11193             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11194           fi
11195
11196           if test "$wxUSE_PALETTE" = yes; then
11197             echo "$as_me:$LINENO: result: yes" >&5
11198 echo "${ECHO_T}yes" >&6
11199           else
11200             echo "$as_me:$LINENO: result: no" >&5
11201 echo "${ECHO_T}no" >&6
11202           fi
11203
11204
11205           enablestring=
11206           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11207 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11208           no_cache=0
11209           # Check whether --enable-image or --disable-image was given.
11210 if test "${enable_image+set}" = set; then
11211   enableval="$enable_image"
11212
11213                           if test "$enableval" = yes; then
11214                             ac_cv_use_image='wxUSE_IMAGE=yes'
11215                           else
11216                             ac_cv_use_image='wxUSE_IMAGE=no'
11217                           fi
11218
11219 else
11220
11221                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11222                           if test "x$LINE" != x ; then
11223                             eval "DEFAULT_$LINE"
11224                           else
11225                             no_cache=1
11226                           fi
11227
11228                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11229
11230 fi;
11231
11232           eval "$ac_cv_use_image"
11233           if test "$no_cache" != 1; then
11234             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11235           fi
11236
11237           if test "$wxUSE_IMAGE" = yes; then
11238             echo "$as_me:$LINENO: result: yes" >&5
11239 echo "${ECHO_T}yes" >&6
11240           else
11241             echo "$as_me:$LINENO: result: no" >&5
11242 echo "${ECHO_T}no" >&6
11243           fi
11244
11245
11246           enablestring=
11247           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11248 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11249           no_cache=0
11250           # Check whether --enable-gif or --disable-gif was given.
11251 if test "${enable_gif+set}" = set; then
11252   enableval="$enable_gif"
11253
11254                           if test "$enableval" = yes; then
11255                             ac_cv_use_gif='wxUSE_GIF=yes'
11256                           else
11257                             ac_cv_use_gif='wxUSE_GIF=no'
11258                           fi
11259
11260 else
11261
11262                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11263                           if test "x$LINE" != x ; then
11264                             eval "DEFAULT_$LINE"
11265                           else
11266                             no_cache=1
11267                           fi
11268
11269                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11270
11271 fi;
11272
11273           eval "$ac_cv_use_gif"
11274           if test "$no_cache" != 1; then
11275             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11276           fi
11277
11278           if test "$wxUSE_GIF" = yes; then
11279             echo "$as_me:$LINENO: result: yes" >&5
11280 echo "${ECHO_T}yes" >&6
11281           else
11282             echo "$as_me:$LINENO: result: no" >&5
11283 echo "${ECHO_T}no" >&6
11284           fi
11285
11286
11287           enablestring=
11288           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11289 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11290           no_cache=0
11291           # Check whether --enable-pcx or --disable-pcx was given.
11292 if test "${enable_pcx+set}" = set; then
11293   enableval="$enable_pcx"
11294
11295                           if test "$enableval" = yes; then
11296                             ac_cv_use_pcx='wxUSE_PCX=yes'
11297                           else
11298                             ac_cv_use_pcx='wxUSE_PCX=no'
11299                           fi
11300
11301 else
11302
11303                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11304                           if test "x$LINE" != x ; then
11305                             eval "DEFAULT_$LINE"
11306                           else
11307                             no_cache=1
11308                           fi
11309
11310                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11311
11312 fi;
11313
11314           eval "$ac_cv_use_pcx"
11315           if test "$no_cache" != 1; then
11316             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11317           fi
11318
11319           if test "$wxUSE_PCX" = yes; then
11320             echo "$as_me:$LINENO: result: yes" >&5
11321 echo "${ECHO_T}yes" >&6
11322           else
11323             echo "$as_me:$LINENO: result: no" >&5
11324 echo "${ECHO_T}no" >&6
11325           fi
11326
11327
11328           enablestring=
11329           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11330 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11331           no_cache=0
11332           # Check whether --enable-iff or --disable-iff was given.
11333 if test "${enable_iff+set}" = set; then
11334   enableval="$enable_iff"
11335
11336                           if test "$enableval" = yes; then
11337                             ac_cv_use_iff='wxUSE_IFF=yes'
11338                           else
11339                             ac_cv_use_iff='wxUSE_IFF=no'
11340                           fi
11341
11342 else
11343
11344                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11345                           if test "x$LINE" != x ; then
11346                             eval "DEFAULT_$LINE"
11347                           else
11348                             no_cache=1
11349                           fi
11350
11351                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11352
11353 fi;
11354
11355           eval "$ac_cv_use_iff"
11356           if test "$no_cache" != 1; then
11357             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11358           fi
11359
11360           if test "$wxUSE_IFF" = yes; then
11361             echo "$as_me:$LINENO: result: yes" >&5
11362 echo "${ECHO_T}yes" >&6
11363           else
11364             echo "$as_me:$LINENO: result: no" >&5
11365 echo "${ECHO_T}no" >&6
11366           fi
11367
11368
11369           enablestring=
11370           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11371 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11372           no_cache=0
11373           # Check whether --enable-pnm or --disable-pnm was given.
11374 if test "${enable_pnm+set}" = set; then
11375   enableval="$enable_pnm"
11376
11377                           if test "$enableval" = yes; then
11378                             ac_cv_use_pnm='wxUSE_PNM=yes'
11379                           else
11380                             ac_cv_use_pnm='wxUSE_PNM=no'
11381                           fi
11382
11383 else
11384
11385                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11386                           if test "x$LINE" != x ; then
11387                             eval "DEFAULT_$LINE"
11388                           else
11389                             no_cache=1
11390                           fi
11391
11392                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11393
11394 fi;
11395
11396           eval "$ac_cv_use_pnm"
11397           if test "$no_cache" != 1; then
11398             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11399           fi
11400
11401           if test "$wxUSE_PNM" = yes; then
11402             echo "$as_me:$LINENO: result: yes" >&5
11403 echo "${ECHO_T}yes" >&6
11404           else
11405             echo "$as_me:$LINENO: result: no" >&5
11406 echo "${ECHO_T}no" >&6
11407           fi
11408
11409
11410           enablestring=
11411           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11412 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11413           no_cache=0
11414           # Check whether --enable-xpm or --disable-xpm was given.
11415 if test "${enable_xpm+set}" = set; then
11416   enableval="$enable_xpm"
11417
11418                           if test "$enableval" = yes; then
11419                             ac_cv_use_xpm='wxUSE_XPM=yes'
11420                           else
11421                             ac_cv_use_xpm='wxUSE_XPM=no'
11422                           fi
11423
11424 else
11425
11426                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11427                           if test "x$LINE" != x ; then
11428                             eval "DEFAULT_$LINE"
11429                           else
11430                             no_cache=1
11431                           fi
11432
11433                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11434
11435 fi;
11436
11437           eval "$ac_cv_use_xpm"
11438           if test "$no_cache" != 1; then
11439             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11440           fi
11441
11442           if test "$wxUSE_XPM" = yes; then
11443             echo "$as_me:$LINENO: result: yes" >&5
11444 echo "${ECHO_T}yes" >&6
11445           else
11446             echo "$as_me:$LINENO: result: no" >&5
11447 echo "${ECHO_T}no" >&6
11448           fi
11449
11450
11451           enablestring=
11452           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11453 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11454           no_cache=0
11455           # Check whether --enable-ico_cur or --disable-ico_cur was given.
11456 if test "${enable_ico_cur+set}" = set; then
11457   enableval="$enable_ico_cur"
11458
11459                           if test "$enableval" = yes; then
11460                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11461                           else
11462                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11463                           fi
11464
11465 else
11466
11467                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11468                           if test "x$LINE" != x ; then
11469                             eval "DEFAULT_$LINE"
11470                           else
11471                             no_cache=1
11472                           fi
11473
11474                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11475
11476 fi;
11477
11478           eval "$ac_cv_use_ico_cur"
11479           if test "$no_cache" != 1; then
11480             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11481           fi
11482
11483           if test "$wxUSE_ICO_CUR" = yes; then
11484             echo "$as_me:$LINENO: result: yes" >&5
11485 echo "${ECHO_T}yes" >&6
11486           else
11487             echo "$as_me:$LINENO: result: no" >&5
11488 echo "${ECHO_T}no" >&6
11489           fi
11490
11491
11492 fi
11493
11494
11495
11496 # Check whether --with-flavour or --without-flavour was given.
11497 if test "${with_flavour+set}" = set; then
11498   withval="$with_flavour"
11499   WX_FLAVOUR="$withval"
11500 fi;
11501
11502
11503
11504           enablestring=
11505           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11506 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11507           no_cache=0
11508           # Check whether --enable-official_build or --disable-official_build was given.
11509 if test "${enable_official_build+set}" = set; then
11510   enableval="$enable_official_build"
11511
11512                           if test "$enableval" = yes; then
11513                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11514                           else
11515                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11516                           fi
11517
11518 else
11519
11520                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11521                           if test "x$LINE" != x ; then
11522                             eval "DEFAULT_$LINE"
11523                           else
11524                             no_cache=1
11525                           fi
11526
11527                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11528
11529 fi;
11530
11531           eval "$ac_cv_use_official_build"
11532           if test "$no_cache" != 1; then
11533             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11534           fi
11535
11536           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11537             echo "$as_me:$LINENO: result: yes" >&5
11538 echo "${ECHO_T}yes" >&6
11539           else
11540             echo "$as_me:$LINENO: result: no" >&5
11541 echo "${ECHO_T}no" >&6
11542           fi
11543
11544 # Check whether --enable-vendor or --disable-vendor was given.
11545 if test "${enable_vendor+set}" = set; then
11546   enableval="$enable_vendor"
11547   VENDOR="$enableval"
11548 fi;
11549 if test "x$VENDOR" = "x"; then
11550     VENDOR="custom"
11551 fi
11552
11553
11554
11555
11556           echo "saving argument cache $wx_arg_cache_file"
11557           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11558
11559
11560
11561 echo "$as_me:$LINENO: checking for toolkit" >&5
11562 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11563
11564 # In Wine, we need to default to MSW, not GTK or MOTIF
11565 if test "$wxUSE_WINE" = "yes"; then
11566     DEFAULT_DEFAULT_wxUSE_GTK=0
11567     DEFAULT_DEFAULT_wxUSE_MOTIF=0
11568     DEFAULT_DEFAULT_wxUSE_MSW=1
11569     wxUSE_SHARED=no
11570 fi
11571
11572
11573 if test "$wxUSE_GUI" = "yes"; then
11574
11575     if test "$USE_BEOS" = 1; then
11576         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11577 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11578    { (exit 1); exit 1; }; }
11579     fi
11580
11581     if test "$TOOLKIT_GIVEN" = 1; then
11582             for toolkit in `echo $ALL_TOOLKITS`; do
11583         var=wxUSE_$toolkit
11584         eval "value=\$${var}"
11585         if test "x$value" = "xno"; then
11586           eval "$var=0"
11587         elif test "x$value" != "x"; then
11588           eval "$var=1"
11589         fi
11590
11591         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11592           eval "wx${toolkit}_VERSION=$value"
11593         fi
11594       done
11595     else
11596             for toolkit in `echo $ALL_TOOLKITS`; do
11597         if test "$has_toolkit_in_cache" != 1; then
11598           var=DEFAULT_DEFAULT_wxUSE_$toolkit
11599         else
11600           var=DEFAULT_wxUSE_$toolkit
11601
11602           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11603           if test "x$version" != "x"; then
11604             eval "wx${toolkit}_VERSION=$version"
11605           fi
11606         fi
11607         eval "wxUSE_$toolkit=\$${var}"
11608       done
11609     fi
11610
11611             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11612                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
11613                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11614
11615         case "${host}" in
11616       *-pc-os2_emx | *-pc-os2-emx )
11617         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11618     esac
11619
11620     case "$NUM_TOOLKITS" in
11621       1)
11622       ;;
11623       0)
11624         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11625 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11626    { (exit 1); exit 1; }; }
11627       ;;
11628       *)
11629         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11630 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11631    { (exit 1); exit 1; }; }
11632     esac
11633
11634     # to be removed when --disable-gtk2 isn't needed
11635     if test "x$wxUSE_GTK2" = "xyes"; then
11636         wxGTK_VERSION=2
11637     elif test "x$wxUSE_GTK2" = "xno"; then
11638         wxGTK_VERSION=1
11639     fi
11640
11641         for toolkit in `echo $ALL_TOOLKITS`; do
11642       var=wxUSE_$toolkit
11643       eval "value=\$${var}"
11644       if test "x$value" != x; then
11645         cache_var=CACHE_$toolkit
11646         eval "cache=\$${cache_var}"
11647         if test "$cache" = 1; then
11648           echo "$var=$value" >> ${wx_arg_cache_file}
11649           eval "version=\$wx${toolkit}_VERSION"
11650           if test "x$version" != "x"; then
11651             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11652           fi
11653         fi
11654         if test "$value" = 1; then
11655           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11656           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11657 echo "${ECHO_T}$toolkit_echo" >&6
11658         fi
11659       fi
11660     done
11661 else
11662     if test "x$host_alias" != "x"; then
11663         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11664 echo "${ECHO_T}base ($host_alias hosted) only" >&6
11665     else
11666         echo "$as_me:$LINENO: result: base only" >&5
11667 echo "${ECHO_T}base only" >&6
11668     fi
11669 fi
11670
11671 wants_win32=0
11672 doesnt_want_win32=0
11673 case "${host}" in
11674   *-*-cygwin*)
11675       if test "$wxUSE_MSW" = 1 ; then
11676         wants_win32=1
11677         BAKEFILE_FORCE_PLATFORM=win32
11678       else
11679         doesnt_want_win32=1
11680       fi
11681   ;;
11682   *-*-mingw*)
11683       wants_win32=1
11684   ;;
11685 esac
11686
11687 if test "$wxUSE_WINE" = "yes"; then
11688     wants_win32=1
11689         CC=winegcc
11690     CXX=wineg++
11691     LDFLAGS_GUI="-mwindows"
11692 fi
11693
11694 if test "$wants_win32" = 1 ; then
11695     USE_UNIX=0
11696     USE_WIN32=1
11697     cat >>confdefs.h <<\_ACEOF
11698 #define __WIN32__ 1
11699 _ACEOF
11700
11701     cat >>confdefs.h <<\_ACEOF
11702 #define __WIN95__ 1
11703 _ACEOF
11704
11705     cat >>confdefs.h <<\_ACEOF
11706 #define __WINDOWS__ 1
11707 _ACEOF
11708
11709     cat >>confdefs.h <<\_ACEOF
11710 #define __GNUWIN32__ 1
11711 _ACEOF
11712
11713     cat >>confdefs.h <<\_ACEOF
11714 #define STRICT 1
11715 _ACEOF
11716
11717     cat >>confdefs.h <<\_ACEOF
11718 #define WINVER 0x0400
11719 _ACEOF
11720
11721 fi
11722 if test "$doesnt_want_win32" = 1 ; then
11723     USE_UNIX=1
11724     USE_WIN32=0
11725 fi
11726
11727 if test "$USE_UNIX" = 1 ; then
11728     wxUSE_UNIX=yes
11729     cat >>confdefs.h <<\_ACEOF
11730 #define __UNIX__ 1
11731 _ACEOF
11732
11733 fi
11734
11735
11736 cat >confcache <<\_ACEOF
11737 # This file is a shell script that caches the results of configure
11738 # tests run on this system so they can be shared between configure
11739 # scripts and configure runs, see configure's option --config-cache.
11740 # It is not useful on other systems.  If it contains results you don't
11741 # want to keep, you may remove or edit it.
11742 #
11743 # config.status only pays attention to the cache file if you give it
11744 # the --recheck option to rerun configure.
11745 #
11746 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11747 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11748 # following values.
11749
11750 _ACEOF
11751
11752 # The following way of writing the cache mishandles newlines in values,
11753 # but we know of no workaround that is simple, portable, and efficient.
11754 # So, don't put newlines in cache variables' values.
11755 # Ultrix sh set writes to stderr and can't be redirected directly,
11756 # and sets the high bit in the cache file unless we assign to the vars.
11757 {
11758   (set) 2>&1 |
11759     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11760     *ac_space=\ *)
11761       # `set' does not quote correctly, so add quotes (double-quote
11762       # substitution turns \\\\ into \\, and sed turns \\ into \).
11763       sed -n \
11764         "s/'/'\\\\''/g;
11765           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11766       ;;
11767     *)
11768       # `set' quotes correctly as required by POSIX, so do not add quotes.
11769       sed -n \
11770         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11771       ;;
11772     esac;
11773 } |
11774   sed '
11775      t clear
11776      : clear
11777      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11778      t end
11779      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11780      : end' >>confcache
11781 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11782   if test -w $cache_file; then
11783     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11784     cat confcache >$cache_file
11785   else
11786     echo "not updating unwritable cache $cache_file"
11787   fi
11788 fi
11789 rm -f confcache
11790
11791 CFLAGS=${CFLAGS:=}
11792
11793
11794
11795     ac_ext=c
11796 ac_cpp='$CPP $CPPFLAGS'
11797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11800 if test -n "$ac_tool_prefix"; then
11801   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11803 echo "$as_me:$LINENO: checking for $ac_word" >&5
11804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11805 if test "${ac_cv_prog_CC+set}" = set; then
11806   echo $ECHO_N "(cached) $ECHO_C" >&6
11807 else
11808   if test -n "$CC"; then
11809   ac_cv_prog_CC="$CC" # Let the user override the test.
11810 else
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11813 do
11814   IFS=$as_save_IFS
11815   test -z "$as_dir" && as_dir=.
11816   for ac_exec_ext in '' $ac_executable_extensions; do
11817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11820     break 2
11821   fi
11822 done
11823 done
11824
11825 fi
11826 fi
11827 CC=$ac_cv_prog_CC
11828 if test -n "$CC"; then
11829   echo "$as_me:$LINENO: result: $CC" >&5
11830 echo "${ECHO_T}$CC" >&6
11831 else
11832   echo "$as_me:$LINENO: result: no" >&5
11833 echo "${ECHO_T}no" >&6
11834 fi
11835
11836 fi
11837 if test -z "$ac_cv_prog_CC"; then
11838   ac_ct_CC=$CC
11839   # Extract the first word of "gcc", so it can be a program name with args.
11840 set dummy gcc; ac_word=$2
11841 echo "$as_me:$LINENO: checking for $ac_word" >&5
11842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11844   echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846   if test -n "$ac_ct_CC"; then
11847   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11848 else
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11851 do
11852   IFS=$as_save_IFS
11853   test -z "$as_dir" && as_dir=.
11854   for ac_exec_ext in '' $ac_executable_extensions; do
11855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856     ac_cv_prog_ac_ct_CC="gcc"
11857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11858     break 2
11859   fi
11860 done
11861 done
11862
11863 fi
11864 fi
11865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11866 if test -n "$ac_ct_CC"; then
11867   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11868 echo "${ECHO_T}$ac_ct_CC" >&6
11869 else
11870   echo "$as_me:$LINENO: result: no" >&5
11871 echo "${ECHO_T}no" >&6
11872 fi
11873
11874   CC=$ac_ct_CC
11875 else
11876   CC="$ac_cv_prog_CC"
11877 fi
11878
11879 if test -z "$CC"; then
11880   if test -n "$ac_tool_prefix"; then
11881   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11882 set dummy ${ac_tool_prefix}cc; ac_word=$2
11883 echo "$as_me:$LINENO: checking for $ac_word" >&5
11884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11885 if test "${ac_cv_prog_CC+set}" = set; then
11886   echo $ECHO_N "(cached) $ECHO_C" >&6
11887 else
11888   if test -n "$CC"; then
11889   ac_cv_prog_CC="$CC" # Let the user override the test.
11890 else
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $PATH
11893 do
11894   IFS=$as_save_IFS
11895   test -z "$as_dir" && as_dir=.
11896   for ac_exec_ext in '' $ac_executable_extensions; do
11897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898     ac_cv_prog_CC="${ac_tool_prefix}cc"
11899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11900     break 2
11901   fi
11902 done
11903 done
11904
11905 fi
11906 fi
11907 CC=$ac_cv_prog_CC
11908 if test -n "$CC"; then
11909   echo "$as_me:$LINENO: result: $CC" >&5
11910 echo "${ECHO_T}$CC" >&6
11911 else
11912   echo "$as_me:$LINENO: result: no" >&5
11913 echo "${ECHO_T}no" >&6
11914 fi
11915
11916 fi
11917 if test -z "$ac_cv_prog_CC"; then
11918   ac_ct_CC=$CC
11919   # Extract the first word of "cc", so it can be a program name with args.
11920 set dummy cc; ac_word=$2
11921 echo "$as_me:$LINENO: checking for $ac_word" >&5
11922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11924   echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926   if test -n "$ac_ct_CC"; then
11927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11928 else
11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11931 do
11932   IFS=$as_save_IFS
11933   test -z "$as_dir" && as_dir=.
11934   for ac_exec_ext in '' $ac_executable_extensions; do
11935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936     ac_cv_prog_ac_ct_CC="cc"
11937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11938     break 2
11939   fi
11940 done
11941 done
11942
11943 fi
11944 fi
11945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11946 if test -n "$ac_ct_CC"; then
11947   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11948 echo "${ECHO_T}$ac_ct_CC" >&6
11949 else
11950   echo "$as_me:$LINENO: result: no" >&5
11951 echo "${ECHO_T}no" >&6
11952 fi
11953
11954   CC=$ac_ct_CC
11955 else
11956   CC="$ac_cv_prog_CC"
11957 fi
11958
11959 fi
11960 if test -z "$CC"; then
11961   # Extract the first word of "cc", so it can be a program name with args.
11962 set dummy cc; ac_word=$2
11963 echo "$as_me:$LINENO: checking for $ac_word" >&5
11964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11965 if test "${ac_cv_prog_CC+set}" = set; then
11966   echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968   if test -n "$CC"; then
11969   ac_cv_prog_CC="$CC" # Let the user override the test.
11970 else
11971   ac_prog_rejected=no
11972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973 for as_dir in $PATH
11974 do
11975   IFS=$as_save_IFS
11976   test -z "$as_dir" && as_dir=.
11977   for ac_exec_ext in '' $ac_executable_extensions; do
11978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11979     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11980        ac_prog_rejected=yes
11981        continue
11982      fi
11983     ac_cv_prog_CC="cc"
11984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11985     break 2
11986   fi
11987 done
11988 done
11989
11990 if test $ac_prog_rejected = yes; then
11991   # We found a bogon in the path, so make sure we never use it.
11992   set dummy $ac_cv_prog_CC
11993   shift
11994   if test $# != 0; then
11995     # We chose a different compiler from the bogus one.
11996     # However, it has the same basename, so the bogon will be chosen
11997     # first if we set CC to just the basename; use the full file name.
11998     shift
11999     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12000   fi
12001 fi
12002 fi
12003 fi
12004 CC=$ac_cv_prog_CC
12005 if test -n "$CC"; then
12006   echo "$as_me:$LINENO: result: $CC" >&5
12007 echo "${ECHO_T}$CC" >&6
12008 else
12009   echo "$as_me:$LINENO: result: no" >&5
12010 echo "${ECHO_T}no" >&6
12011 fi
12012
12013 fi
12014 if test -z "$CC"; then
12015   if test -n "$ac_tool_prefix"; then
12016   for ac_prog in cl
12017   do
12018     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12020 echo "$as_me:$LINENO: checking for $ac_word" >&5
12021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12022 if test "${ac_cv_prog_CC+set}" = set; then
12023   echo $ECHO_N "(cached) $ECHO_C" >&6
12024 else
12025   if test -n "$CC"; then
12026   ac_cv_prog_CC="$CC" # Let the user override the test.
12027 else
12028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029 for as_dir in $PATH
12030 do
12031   IFS=$as_save_IFS
12032   test -z "$as_dir" && as_dir=.
12033   for ac_exec_ext in '' $ac_executable_extensions; do
12034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12035     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12037     break 2
12038   fi
12039 done
12040 done
12041
12042 fi
12043 fi
12044 CC=$ac_cv_prog_CC
12045 if test -n "$CC"; then
12046   echo "$as_me:$LINENO: result: $CC" >&5
12047 echo "${ECHO_T}$CC" >&6
12048 else
12049   echo "$as_me:$LINENO: result: no" >&5
12050 echo "${ECHO_T}no" >&6
12051 fi
12052
12053     test -n "$CC" && break
12054   done
12055 fi
12056 if test -z "$CC"; then
12057   ac_ct_CC=$CC
12058   for ac_prog in cl
12059 do
12060   # Extract the first word of "$ac_prog", so it can be a program name with args.
12061 set dummy $ac_prog; ac_word=$2
12062 echo "$as_me:$LINENO: checking for $ac_word" >&5
12063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12065   echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067   if test -n "$ac_ct_CC"; then
12068   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12069 else
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12072 do
12073   IFS=$as_save_IFS
12074   test -z "$as_dir" && as_dir=.
12075   for ac_exec_ext in '' $ac_executable_extensions; do
12076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077     ac_cv_prog_ac_ct_CC="$ac_prog"
12078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12079     break 2
12080   fi
12081 done
12082 done
12083
12084 fi
12085 fi
12086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12087 if test -n "$ac_ct_CC"; then
12088   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12089 echo "${ECHO_T}$ac_ct_CC" >&6
12090 else
12091   echo "$as_me:$LINENO: result: no" >&5
12092 echo "${ECHO_T}no" >&6
12093 fi
12094
12095   test -n "$ac_ct_CC" && break
12096 done
12097
12098   CC=$ac_ct_CC
12099 fi
12100
12101 fi
12102
12103
12104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12105 See \`config.log' for more details." >&5
12106 echo "$as_me: error: no acceptable C compiler found in \$PATH
12107 See \`config.log' for more details." >&2;}
12108    { (exit 1); exit 1; }; }
12109
12110 # Provide some information about the compiler.
12111 echo "$as_me:$LINENO:" \
12112      "checking for C compiler version" >&5
12113 ac_compiler=`set X $ac_compile; echo $2`
12114 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12115   (eval $ac_compiler --version </dev/null >&5) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }
12119 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12120   (eval $ac_compiler -v </dev/null >&5) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }
12124 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12125   (eval $ac_compiler -V </dev/null >&5) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }
12129
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h.  */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h.  */
12136
12137 int
12138 main ()
12139 {
12140
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 ac_clean_files_save=$ac_clean_files
12146 ac_clean_files="$ac_clean_files a.out a.exe b.out"
12147 # Try to create an executable without -o first, disregard a.out.
12148 # It will help us diagnose broken compilers, and finding out an intuition
12149 # of exeext.
12150 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12151 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
12152 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12153 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12154   (eval $ac_link_default) 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); }; then
12158   # Find the output, starting from the most likely.  This scheme is
12159 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
12160 # resort.
12161
12162 # Be careful to initialize this variable, since it used to be cached.
12163 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12164 ac_cv_exeext=
12165 # b.out is created by i960 compilers.
12166 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12167 do
12168   test -f "$ac_file" || continue
12169   case $ac_file in
12170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
12171         ;;
12172     conftest.$ac_ext )
12173         # This is the source file.
12174         ;;
12175     [ab].out )
12176         # We found the default executable, but exeext='' is most
12177         # certainly right.
12178         break;;
12179     *.* )
12180         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12181         # FIXME: I believe we export ac_cv_exeext for Libtool,
12182         # but it would be cool to find out if it's true.  Does anybody
12183         # maintain Libtool? --akim.
12184         export ac_cv_exeext
12185         break;;
12186     * )
12187         break;;
12188   esac
12189 done
12190 else
12191   echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
12195 See \`config.log' for more details." >&5
12196 echo "$as_me: error: C compiler cannot create executables
12197 See \`config.log' for more details." >&2;}
12198    { (exit 77); exit 77; }; }
12199 fi
12200
12201 ac_exeext=$ac_cv_exeext
12202 echo "$as_me:$LINENO: result: $ac_file" >&5
12203 echo "${ECHO_T}$ac_file" >&6
12204
12205 # Check the compiler produces executables we can run.  If not, either
12206 # the compiler is broken, or we cross compile.
12207 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12208 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12209 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12210 # If not cross compiling, check that we can run a simple program.
12211 if test "$cross_compiling" != yes; then
12212   if { ac_try='./$ac_file'
12213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214   (eval $ac_try) 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; }; then
12218     cross_compiling=no
12219   else
12220     if test "$cross_compiling" = maybe; then
12221         cross_compiling=yes
12222     else
12223         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12224 If you meant to cross compile, use \`--host'.
12225 See \`config.log' for more details." >&5
12226 echo "$as_me: error: cannot run C compiled programs.
12227 If you meant to cross compile, use \`--host'.
12228 See \`config.log' for more details." >&2;}
12229    { (exit 1); exit 1; }; }
12230     fi
12231   fi
12232 fi
12233 echo "$as_me:$LINENO: result: yes" >&5
12234 echo "${ECHO_T}yes" >&6
12235
12236 rm -f a.out a.exe conftest$ac_cv_exeext b.out
12237 ac_clean_files=$ac_clean_files_save
12238 # Check the compiler produces executables we can run.  If not, either
12239 # the compiler is broken, or we cross compile.
12240 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12241 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12242 echo "$as_me:$LINENO: result: $cross_compiling" >&5
12243 echo "${ECHO_T}$cross_compiling" >&6
12244
12245 echo "$as_me:$LINENO: checking for suffix of executables" >&5
12246 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12248   (eval $ac_link) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); }; then
12252   # If both `conftest.exe' and `conftest' are `present' (well, observable)
12253 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
12254 # work properly (i.e., refer to `conftest.exe'), while it won't with
12255 # `rm'.
12256 for ac_file in conftest.exe conftest conftest.*; do
12257   test -f "$ac_file" || continue
12258   case $ac_file in
12259     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12260     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12261           export ac_cv_exeext
12262           break;;
12263     * ) break;;
12264   esac
12265 done
12266 else
12267   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12268 See \`config.log' for more details." >&5
12269 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12270 See \`config.log' for more details." >&2;}
12271    { (exit 1); exit 1; }; }
12272 fi
12273
12274 rm -f conftest$ac_cv_exeext
12275 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12276 echo "${ECHO_T}$ac_cv_exeext" >&6
12277
12278 rm -f conftest.$ac_ext
12279 EXEEXT=$ac_cv_exeext
12280 ac_exeext=$EXEEXT
12281 echo "$as_me:$LINENO: checking for suffix of object files" >&5
12282 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12283 if test "${ac_cv_objext+set}" = set; then
12284   echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286   cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292
12293 int
12294 main ()
12295 {
12296
12297   ;
12298   return 0;
12299 }
12300 _ACEOF
12301 rm -f conftest.o conftest.obj
12302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303   (eval $ac_compile) 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); }; then
12307   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12308   case $ac_file in
12309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12310     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12311        break;;
12312   esac
12313 done
12314 else
12315   echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12317
12318 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12319 See \`config.log' for more details." >&5
12320 echo "$as_me: error: cannot compute suffix of object files: cannot compile
12321 See \`config.log' for more details." >&2;}
12322    { (exit 1); exit 1; }; }
12323 fi
12324
12325 rm -f conftest.$ac_cv_objext conftest.$ac_ext
12326 fi
12327 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12328 echo "${ECHO_T}$ac_cv_objext" >&6
12329 OBJEXT=$ac_cv_objext
12330 ac_objext=$OBJEXT
12331 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12332 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12333 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12334   echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336   cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h.  */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h.  */
12342
12343 int
12344 main ()
12345 {
12346 #ifndef __GNUC__
12347        choke me
12348 #endif
12349
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356   (eval $ac_compile) 2>conftest.er1
12357   ac_status=$?
12358   grep -v '^ *+' conftest.er1 >conftest.err
12359   rm -f conftest.er1
12360   cat conftest.err >&5
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); } &&
12363          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365   (eval $ac_try) 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); }; } &&
12369          { ac_try='test -s conftest.$ac_objext'
12370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371   (eval $ac_try) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; }; then
12375   ac_compiler_gnu=yes
12376 else
12377   echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380 ac_compiler_gnu=no
12381 fi
12382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12384
12385 fi
12386 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12387 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12388 GCC=`test $ac_compiler_gnu = yes && echo yes`
12389 ac_test_CFLAGS=${CFLAGS+set}
12390 ac_save_CFLAGS=$CFLAGS
12391 CFLAGS="-g"
12392 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12393 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12394 if test "${ac_cv_prog_cc_g+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   cat >conftest.$ac_ext <<_ACEOF
12398 /* confdefs.h.  */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h.  */
12403
12404 int
12405 main ()
12406 {
12407
12408   ;
12409   return 0;
12410 }
12411 _ACEOF
12412 rm -f conftest.$ac_objext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414   (eval $ac_compile) 2>conftest.er1
12415   ac_status=$?
12416   grep -v '^ *+' conftest.er1 >conftest.err
12417   rm -f conftest.er1
12418   cat conftest.err >&5
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); } &&
12421          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest.$ac_objext'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; }; then
12433   ac_cv_prog_cc_g=yes
12434 else
12435   echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438 ac_cv_prog_cc_g=no
12439 fi
12440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12441 fi
12442 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12443 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12444 if test "$ac_test_CFLAGS" = set; then
12445   CFLAGS=$ac_save_CFLAGS
12446 elif test $ac_cv_prog_cc_g = yes; then
12447   if test "$GCC" = yes; then
12448     CFLAGS="-g -O2"
12449   else
12450     CFLAGS="-g"
12451   fi
12452 else
12453   if test "$GCC" = yes; then
12454     CFLAGS="-O2"
12455   else
12456     CFLAGS=
12457   fi
12458 fi
12459 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12460 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12461 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12462   echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464   ac_cv_prog_cc_stdc=no
12465 ac_save_CC=$CC
12466 cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h.  */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h.  */
12472 #include <stdarg.h>
12473 #include <stdio.h>
12474 #include <sys/types.h>
12475 #include <sys/stat.h>
12476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12477 struct buf { int x; };
12478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12479 static char *e (p, i)
12480      char **p;
12481      int i;
12482 {
12483   return p[i];
12484 }
12485 static char *f (char * (*g) (char **, int), char **p, ...)
12486 {
12487   char *s;
12488   va_list v;
12489   va_start (v,p);
12490   s = g (p, va_arg (v,int));
12491   va_end (v);
12492   return s;
12493 }
12494
12495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12496    function prototypes and stuff, but not '\xHH' hex character constants.
12497    These don't provoke an error unfortunately, instead are silently treated
12498    as 'x'.  The following induces an error, until -std1 is added to get
12499    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12500    array size at least.  It's necessary to write '\x00'==0 to get something
12501    that's true only with -std1.  */
12502 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12503
12504 int test (int i, double x);
12505 struct s1 {int (*f) (int a);};
12506 struct s2 {int (*f) (double a);};
12507 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12508 int argc;
12509 char **argv;
12510 int
12511 main ()
12512 {
12513 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 # Don't try gcc -ansi; that turns off useful extensions and
12519 # breaks some systems' header files.
12520 # AIX                   -qlanglvl=ansi
12521 # Ultrix and OSF/1      -std1
12522 # HP-UX 10.20 and later -Ae
12523 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12524 # SVR4                  -Xc -D__EXTENSIONS__
12525 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12526 do
12527   CC="$ac_save_CC $ac_arg"
12528   rm -f conftest.$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530   (eval $ac_compile) 2>conftest.er1
12531   ac_status=$?
12532   grep -v '^ *+' conftest.er1 >conftest.err
12533   rm -f conftest.er1
12534   cat conftest.err >&5
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); } &&
12537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; } &&
12543          { ac_try='test -s conftest.$ac_objext'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; }; then
12549   ac_cv_prog_cc_stdc=$ac_arg
12550 break
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555 fi
12556 rm -f conftest.err conftest.$ac_objext
12557 done
12558 rm -f conftest.$ac_ext conftest.$ac_objext
12559 CC=$ac_save_CC
12560
12561 fi
12562
12563 case "x$ac_cv_prog_cc_stdc" in
12564   x|xno)
12565     echo "$as_me:$LINENO: result: none needed" >&5
12566 echo "${ECHO_T}none needed" >&6 ;;
12567   *)
12568     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12569 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12570     CC="$CC $ac_cv_prog_cc_stdc" ;;
12571 esac
12572
12573 # Some people use a C++ compiler to compile C.  Since we use `exit',
12574 # in C++ we need to declare it.  In case someone uses the same compiler
12575 # for both compiling C and C++ we need to have the C++ compiler decide
12576 # the declaration of exit, since it's the most demanding environment.
12577 cat >conftest.$ac_ext <<_ACEOF
12578 #ifndef __cplusplus
12579   choke me
12580 #endif
12581 _ACEOF
12582 rm -f conftest.$ac_objext
12583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12584   (eval $ac_compile) 2>conftest.er1
12585   ac_status=$?
12586   grep -v '^ *+' conftest.er1 >conftest.err
12587   rm -f conftest.er1
12588   cat conftest.err >&5
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); } &&
12591          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593   (eval $ac_try) 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); }; } &&
12597          { ac_try='test -s conftest.$ac_objext'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; }; then
12603   for ac_declaration in \
12604    '' \
12605    'extern "C" void std::exit (int) throw (); using std::exit;' \
12606    'extern "C" void std::exit (int); using std::exit;' \
12607    'extern "C" void exit (int) throw ();' \
12608    'extern "C" void exit (int);' \
12609    'void exit (int);'
12610 do
12611   cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h.  */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h.  */
12617 $ac_declaration
12618 #include <stdlib.h>
12619 int
12620 main ()
12621 {
12622 exit (42);
12623   ;
12624   return 0;
12625 }
12626 _ACEOF
12627 rm -f conftest.$ac_objext
12628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12629   (eval $ac_compile) 2>conftest.er1
12630   ac_status=$?
12631   grep -v '^ *+' conftest.er1 >conftest.err
12632   rm -f conftest.er1
12633   cat conftest.err >&5
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); } &&
12636          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638   (eval $ac_try) 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); }; } &&
12642          { ac_try='test -s conftest.$ac_objext'
12643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644   (eval $ac_try) 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; }; then
12648   :
12649 else
12650   echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12652
12653 continue
12654 fi
12655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12656   cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h.  */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h.  */
12662 $ac_declaration
12663 int
12664 main ()
12665 {
12666 exit (42);
12667   ;
12668   return 0;
12669 }
12670 _ACEOF
12671 rm -f conftest.$ac_objext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673   (eval $ac_compile) 2>conftest.er1
12674   ac_status=$?
12675   grep -v '^ *+' conftest.er1 >conftest.err
12676   rm -f conftest.er1
12677   cat conftest.err >&5
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); } &&
12680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682   (eval $ac_try) 2>&5
12683   ac_status=$?
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); }; } &&
12686          { ac_try='test -s conftest.$ac_objext'
12687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688   (eval $ac_try) 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; }; then
12692   break
12693 else
12694   echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12696
12697 fi
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699 done
12700 rm -f conftest*
12701 if test -n "$ac_declaration"; then
12702   echo '#ifdef __cplusplus' >>confdefs.h
12703   echo $ac_declaration      >>confdefs.h
12704   echo '#endif'             >>confdefs.h
12705 fi
12706
12707 else
12708   echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12710
12711 fi
12712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12713 ac_ext=c
12714 ac_cpp='$CPP $CPPFLAGS'
12715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12718
12719
12720
12721     ac_ext=c
12722 ac_cpp='$CPP $CPPFLAGS'
12723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12726
12727     echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12728 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12729 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12730   echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732   cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h.  */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h.  */
12738
12739 int
12740 main ()
12741 {
12742
12743              #ifndef __INTEL_COMPILER
12744                 choke me
12745              #endif
12746
12747   ;
12748   return 0;
12749 }
12750 _ACEOF
12751 rm -f conftest.$ac_objext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12753   (eval $ac_compile) 2>conftest.er1
12754   ac_status=$?
12755   grep -v '^ *+' conftest.er1 >conftest.err
12756   rm -f conftest.er1
12757   cat conftest.err >&5
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } &&
12760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762   (eval $ac_try) 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); }; } &&
12766          { ac_try='test -s conftest.$ac_objext'
12767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768   (eval $ac_try) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; }; then
12772   bakefile_cv_c_compiler___INTEL_COMPILER=yes
12773 else
12774   echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777 bakefile_cv_c_compiler___INTEL_COMPILER=no
12778
12779 fi
12780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12781
12782
12783 fi
12784 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12785 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12786     ac_ext=c
12787 ac_cpp='$CPP $CPPFLAGS'
12788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12791
12792     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12793         :; INTELCC=yes
12794     else
12795         :;
12796     fi
12797
12798
12799         if test "x$GCC" != "xyes"; then
12800         if test "xCC" = "xC"; then
12801             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
12802 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
12803 if test "${bakefile_cv_c_exto+set}" = set; then
12804   echo $ECHO_N "(cached) $ECHO_C" >&6
12805 else
12806   cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h.  */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h.  */
12812
12813 int
12814 main ()
12815 {
12816
12817   ;
12818   return 0;
12819 }
12820 _ACEOF
12821 rm -f conftest.$ac_objext conftest.$ac_ext.o
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823   (eval $ac_compile) 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); }; then
12827   for ac_file in `(ls conftest.* 2>/dev/null)`; do
12828     case $ac_file in
12829         conftest.$ac_ext.o)
12830             bakefile_cv_c_exto="-ext o"
12831             ;;
12832         *)
12833             ;;
12834     esac
12835 done
12836 else
12837   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12838 See \`config.log' for more details." >&5
12839 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12840 See \`config.log' for more details." >&2;}
12841    { (exit 1); exit 1; }; }
12842
12843 fi
12844
12845 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12846
12847 fi
12848 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12849 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12850 if test "x$bakefile_cv_c_exto" '!=' "x"; then
12851     if test "c" = "c"; then
12852         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
12853     fi
12854     if test "c" = "cxx"; then
12855         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
12856     fi
12857 fi
12858
12859             if test "x$bakefile_cv_c_exto" '!=' "x"; then
12860                 unset ac_cv_prog_cc_g
12861                 ac_test_CFLAGS=${CFLAGS+set}
12862 ac_save_CFLAGS=$CFLAGS
12863 CFLAGS="-g"
12864 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12865 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12866 if test "${ac_cv_prog_cc_g+set}" = set; then
12867   echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869   cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h.  */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h.  */
12875
12876 int
12877 main ()
12878 {
12879
12880   ;
12881   return 0;
12882 }
12883 _ACEOF
12884 rm -f conftest.$ac_objext
12885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886   (eval $ac_compile) 2>conftest.er1
12887   ac_status=$?
12888   grep -v '^ *+' conftest.er1 >conftest.err
12889   rm -f conftest.er1
12890   cat conftest.err >&5
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); } &&
12893          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895   (eval $ac_try) 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); }; } &&
12899          { ac_try='test -s conftest.$ac_objext'
12900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901   (eval $ac_try) 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); }; }; then
12905   ac_cv_prog_cc_g=yes
12906 else
12907   echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910 ac_cv_prog_cc_g=no
12911 fi
12912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12913 fi
12914 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12915 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12916 if test "$ac_test_CFLAGS" = set; then
12917   CFLAGS=$ac_save_CFLAGS
12918 elif test $ac_cv_prog_cc_g = yes; then
12919   if test "$GCC" = yes; then
12920     CFLAGS="-g -O2"
12921   else
12922     CFLAGS="-g"
12923   fi
12924 else
12925   if test "$GCC" = yes; then
12926     CFLAGS="-O2"
12927   else
12928     CFLAGS=
12929   fi
12930 fi
12931             fi
12932         fi
12933
12934                         case `uname -s` in
12935             AIX*)
12936                 ac_ext=c
12937 ac_cpp='$CPP $CPPFLAGS'
12938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12941
12942 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12943 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12944 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12945   echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947   cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h.  */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h.  */
12953
12954 int
12955 main ()
12956 {
12957 #ifndef __xlC__
12958        choke me
12959 #endif
12960
12961   ;
12962   return 0;
12963 }
12964 _ACEOF
12965 rm -f conftest.$ac_objext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967   (eval $ac_compile) 2>conftest.er1
12968   ac_status=$?
12969   grep -v '^ *+' conftest.er1 >conftest.err
12970   rm -f conftest.er1
12971   cat conftest.err >&5
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); } &&
12974          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976   (eval $ac_try) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }; } &&
12980          { ac_try='test -s conftest.$ac_objext'
12981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982   (eval $ac_try) 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; }; then
12986   bakefile_compiler_xlc=yes
12987 else
12988   echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12990
12991 bakefile_compiler_xlc=no
12992 fi
12993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12994     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12995
12996 fi
12997 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12998 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12999
13000 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
13001 ac_ext=c
13002 ac_cpp='$CPP $CPPFLAGS'
13003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13006
13007
13008                 ;;
13009
13010             Darwin)
13011                 ac_ext=c
13012 ac_cpp='$CPP $CPPFLAGS'
13013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13016
13017 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13018 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13019 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h.  */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h.  */
13028
13029 int
13030 main ()
13031 {
13032 #ifndef __MWERKS__
13033        choke me
13034 #endif
13035
13036   ;
13037   return 0;
13038 }
13039 _ACEOF
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042   (eval $ac_compile) 2>conftest.er1
13043   ac_status=$?
13044   grep -v '^ *+' conftest.er1 >conftest.err
13045   rm -f conftest.er1
13046   cat conftest.err >&5
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); } &&
13049          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051   (eval $ac_try) 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); }; } &&
13055          { ac_try='test -s conftest.$ac_objext'
13056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057   (eval $ac_try) 2>&5
13058   ac_status=$?
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); }; }; then
13061   bakefile_compiler_mwerks=yes
13062 else
13063   echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13065
13066 bakefile_compiler_mwerks=no
13067 fi
13068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13069     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13070
13071 fi
13072 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13073 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13074
13075 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
13076 ac_ext=c
13077 ac_cpp='$CPP $CPPFLAGS'
13078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081
13082
13083                 ac_ext=c
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13088
13089 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13090 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
13091 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
13092   echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094   cat >conftest.$ac_ext <<_ACEOF
13095 /* confdefs.h.  */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h.  */
13100
13101 int
13102 main ()
13103 {
13104 #ifndef __xlC__
13105        choke me
13106 #endif
13107
13108   ;
13109   return 0;
13110 }
13111 _ACEOF
13112 rm -f conftest.$ac_objext
13113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13114   (eval $ac_compile) 2>conftest.er1
13115   ac_status=$?
13116   grep -v '^ *+' conftest.er1 >conftest.err
13117   rm -f conftest.er1
13118   cat conftest.err >&5
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); } &&
13121          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123   (eval $ac_try) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; } &&
13127          { ac_try='test -s conftest.$ac_objext'
13128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129   (eval $ac_try) 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); }; }; then
13133   bakefile_compiler_xlc=yes
13134 else
13135   echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138 bakefile_compiler_xlc=no
13139 fi
13140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13141     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
13142
13143 fi
13144 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13145 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
13146
13147 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
13148 ac_ext=c
13149 ac_cpp='$CPP $CPPFLAGS'
13150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13153
13154
13155                 ;;
13156
13157             IRIX*)
13158
13159
13160     ac_ext=c
13161 ac_cpp='$CPP $CPPFLAGS'
13162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13165
13166     echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13167 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13168 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13169   echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171   cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h.  */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h.  */
13177
13178 int
13179 main ()
13180 {
13181
13182              #ifndef _SGI_COMPILER_VERSION
13183                 choke me
13184              #endif
13185
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192   (eval $ac_compile) 2>conftest.er1
13193   ac_status=$?
13194   grep -v '^ *+' conftest.er1 >conftest.err
13195   rm -f conftest.er1
13196   cat conftest.err >&5
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); } &&
13199          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201   (eval $ac_try) 2>&5
13202   ac_status=$?
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); }; } &&
13205          { ac_try='test -s conftest.$ac_objext'
13206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207   (eval $ac_try) 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); }; }; then
13211   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13212 else
13213   echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13217
13218 fi
13219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13220
13221
13222 fi
13223 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13224 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13225     ac_ext=c
13226 ac_cpp='$CPP $CPPFLAGS'
13227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13230
13231     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13232         :; SGICC=yes
13233     else
13234         :;
13235     fi
13236
13237
13238                 ;;
13239
13240             HP-UX*)
13241
13242
13243     ac_ext=c
13244 ac_cpp='$CPP $CPPFLAGS'
13245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13248
13249     echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13250 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13251 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
13252   echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254   cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h.  */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h.  */
13260
13261 int
13262 main ()
13263 {
13264
13265              #ifndef __HP_cc
13266                 choke me
13267              #endif
13268
13269   ;
13270   return 0;
13271 }
13272 _ACEOF
13273 rm -f conftest.$ac_objext
13274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275   (eval $ac_compile) 2>conftest.er1
13276   ac_status=$?
13277   grep -v '^ *+' conftest.er1 >conftest.err
13278   rm -f conftest.er1
13279   cat conftest.err >&5
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); } &&
13282          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284   (eval $ac_try) 2>&5
13285   ac_status=$?
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); }; } &&
13288          { ac_try='test -s conftest.$ac_objext'
13289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290   (eval $ac_try) 2>&5
13291   ac_status=$?
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); }; }; then
13294   bakefile_cv_c_compiler___HP_cc=yes
13295 else
13296   echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.$ac_ext >&5
13298
13299 bakefile_cv_c_compiler___HP_cc=no
13300
13301 fi
13302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13303
13304
13305 fi
13306 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13307 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
13308     ac_ext=c
13309 ac_cpp='$CPP $CPPFLAGS'
13310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13313
13314     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13315         :; HPCC=yes
13316     else
13317         :;
13318     fi
13319
13320
13321                 ;;
13322
13323             OSF1)
13324
13325
13326     ac_ext=c
13327 ac_cpp='$CPP $CPPFLAGS'
13328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13331
13332     echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13333 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13334 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
13335   echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337   cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h.  */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h.  */
13343
13344 int
13345 main ()
13346 {
13347
13348              #ifndef __DECC
13349                 choke me
13350              #endif
13351
13352   ;
13353   return 0;
13354 }
13355 _ACEOF
13356 rm -f conftest.$ac_objext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358   (eval $ac_compile) 2>conftest.er1
13359   ac_status=$?
13360   grep -v '^ *+' conftest.er1 >conftest.err
13361   rm -f conftest.er1
13362   cat conftest.err >&5
13363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364   (exit $ac_status); } &&
13365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367   (eval $ac_try) 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; } &&
13371          { ac_try='test -s conftest.$ac_objext'
13372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373   (eval $ac_try) 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }; }; then
13377   bakefile_cv_c_compiler___DECC=yes
13378 else
13379   echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13381
13382 bakefile_cv_c_compiler___DECC=no
13383
13384 fi
13385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13386
13387
13388 fi
13389 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13390 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
13391     ac_ext=c
13392 ac_cpp='$CPP $CPPFLAGS'
13393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13396
13397     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13398         :; COMPAQCC=yes
13399     else
13400         :;
13401     fi
13402
13403
13404                 ;;
13405
13406             SunOS)
13407
13408
13409     ac_ext=c
13410 ac_cpp='$CPP $CPPFLAGS'
13411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13414
13415     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13416 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13417 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13418   echo $ECHO_N "(cached) $ECHO_C" >&6
13419 else
13420   cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h.  */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h.  */
13426
13427 int
13428 main ()
13429 {
13430
13431              #ifndef __SUNPRO_C
13432                 choke me
13433              #endif
13434
13435   ;
13436   return 0;
13437 }
13438 _ACEOF
13439 rm -f conftest.$ac_objext
13440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13441   (eval $ac_compile) 2>conftest.er1
13442   ac_status=$?
13443   grep -v '^ *+' conftest.er1 >conftest.err
13444   rm -f conftest.er1
13445   cat conftest.err >&5
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); } &&
13448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; } &&
13454          { ac_try='test -s conftest.$ac_objext'
13455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456   (eval $ac_try) 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; }; then
13460   bakefile_cv_c_compiler___SUNPRO_C=yes
13461 else
13462   echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465 bakefile_cv_c_compiler___SUNPRO_C=no
13466
13467 fi
13468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13469
13470
13471 fi
13472 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13473 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13474     ac_ext=c
13475 ac_cpp='$CPP $CPPFLAGS'
13476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13479
13480     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13481         :; SUNCC=yes
13482     else
13483         :;
13484     fi
13485
13486
13487                 ;;
13488         esac
13489     fi
13490
13491
13492
13493 ac_ext=c
13494 ac_cpp='$CPP $CPPFLAGS'
13495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13498 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13499 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13500 # On Suns, sometimes $CPP names a directory.
13501 if test -n "$CPP" && test -d "$CPP"; then
13502   CPP=
13503 fi
13504 if test -z "$CPP"; then
13505   if test "${ac_cv_prog_CPP+set}" = set; then
13506   echo $ECHO_N "(cached) $ECHO_C" >&6
13507 else
13508       # Double quotes because CPP needs to be expanded
13509     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13510     do
13511       ac_preproc_ok=false
13512 for ac_c_preproc_warn_flag in '' yes
13513 do
13514   # Use a header file that comes with gcc, so configuring glibc
13515   # with a fresh cross-compiler works.
13516   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13517   # <limits.h> exists even on freestanding compilers.
13518   # On the NeXT, cc -E runs the code through the compiler's parser,
13519   # not just through cpp. "Syntax error" is here to catch this case.
13520   cat >conftest.$ac_ext <<_ACEOF
13521 /* confdefs.h.  */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h.  */
13526 #ifdef __STDC__
13527 # include <limits.h>
13528 #else
13529 # include <assert.h>
13530 #endif
13531                      Syntax error
13532 _ACEOF
13533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13535   ac_status=$?
13536   grep -v '^ *+' conftest.er1 >conftest.err
13537   rm -f conftest.er1
13538   cat conftest.err >&5
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); } >/dev/null; then
13541   if test -s conftest.err; then
13542     ac_cpp_err=$ac_c_preproc_warn_flag
13543     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13544   else
13545     ac_cpp_err=
13546   fi
13547 else
13548   ac_cpp_err=yes
13549 fi
13550 if test -z "$ac_cpp_err"; then
13551   :
13552 else
13553   echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13555
13556   # Broken: fails on valid input.
13557 continue
13558 fi
13559 rm -f conftest.err conftest.$ac_ext
13560
13561   # OK, works on sane cases.  Now check whether non-existent headers
13562   # can be detected and how.
13563   cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h.  */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h.  */
13569 #include <ac_nonexistent.h>
13570 _ACEOF
13571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13572   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13573   ac_status=$?
13574   grep -v '^ *+' conftest.er1 >conftest.err
13575   rm -f conftest.er1
13576   cat conftest.err >&5
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); } >/dev/null; then
13579   if test -s conftest.err; then
13580     ac_cpp_err=$ac_c_preproc_warn_flag
13581     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13582   else
13583     ac_cpp_err=
13584   fi
13585 else
13586   ac_cpp_err=yes
13587 fi
13588 if test -z "$ac_cpp_err"; then
13589   # Broken: success on invalid input.
13590 continue
13591 else
13592   echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13594
13595   # Passes both tests.
13596 ac_preproc_ok=:
13597 break
13598 fi
13599 rm -f conftest.err conftest.$ac_ext
13600
13601 done
13602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13603 rm -f conftest.err conftest.$ac_ext
13604 if $ac_preproc_ok; then
13605   break
13606 fi
13607
13608     done
13609     ac_cv_prog_CPP=$CPP
13610
13611 fi
13612   CPP=$ac_cv_prog_CPP
13613 else
13614   ac_cv_prog_CPP=$CPP
13615 fi
13616 echo "$as_me:$LINENO: result: $CPP" >&5
13617 echo "${ECHO_T}$CPP" >&6
13618 ac_preproc_ok=false
13619 for ac_c_preproc_warn_flag in '' yes
13620 do
13621   # Use a header file that comes with gcc, so configuring glibc
13622   # with a fresh cross-compiler works.
13623   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13624   # <limits.h> exists even on freestanding compilers.
13625   # On the NeXT, cc -E runs the code through the compiler's parser,
13626   # not just through cpp. "Syntax error" is here to catch this case.
13627   cat >conftest.$ac_ext <<_ACEOF
13628 /* confdefs.h.  */
13629 _ACEOF
13630 cat confdefs.h >>conftest.$ac_ext
13631 cat >>conftest.$ac_ext <<_ACEOF
13632 /* end confdefs.h.  */
13633 #ifdef __STDC__
13634 # include <limits.h>
13635 #else
13636 # include <assert.h>
13637 #endif
13638                      Syntax error
13639 _ACEOF
13640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13642   ac_status=$?
13643   grep -v '^ *+' conftest.er1 >conftest.err
13644   rm -f conftest.er1
13645   cat conftest.err >&5
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); } >/dev/null; then
13648   if test -s conftest.err; then
13649     ac_cpp_err=$ac_c_preproc_warn_flag
13650     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13651   else
13652     ac_cpp_err=
13653   fi
13654 else
13655   ac_cpp_err=yes
13656 fi
13657 if test -z "$ac_cpp_err"; then
13658   :
13659 else
13660   echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13662
13663   # Broken: fails on valid input.
13664 continue
13665 fi
13666 rm -f conftest.err conftest.$ac_ext
13667
13668   # OK, works on sane cases.  Now check whether non-existent headers
13669   # can be detected and how.
13670   cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h.  */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h.  */
13676 #include <ac_nonexistent.h>
13677 _ACEOF
13678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13680   ac_status=$?
13681   grep -v '^ *+' conftest.er1 >conftest.err
13682   rm -f conftest.er1
13683   cat conftest.err >&5
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); } >/dev/null; then
13686   if test -s conftest.err; then
13687     ac_cpp_err=$ac_c_preproc_warn_flag
13688     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13689   else
13690     ac_cpp_err=
13691   fi
13692 else
13693   ac_cpp_err=yes
13694 fi
13695 if test -z "$ac_cpp_err"; then
13696   # Broken: success on invalid input.
13697 continue
13698 else
13699   echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13701
13702   # Passes both tests.
13703 ac_preproc_ok=:
13704 break
13705 fi
13706 rm -f conftest.err conftest.$ac_ext
13707
13708 done
13709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13710 rm -f conftest.err conftest.$ac_ext
13711 if $ac_preproc_ok; then
13712   :
13713 else
13714   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13715 See \`config.log' for more details." >&5
13716 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13717 See \`config.log' for more details." >&2;}
13718    { (exit 1); exit 1; }; }
13719 fi
13720
13721 ac_ext=c
13722 ac_cpp='$CPP $CPPFLAGS'
13723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13726
13727
13728 echo "$as_me:$LINENO: checking for egrep" >&5
13729 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13730 if test "${ac_cv_prog_egrep+set}" = set; then
13731   echo $ECHO_N "(cached) $ECHO_C" >&6
13732 else
13733   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13734     then ac_cv_prog_egrep='grep -E'
13735     else ac_cv_prog_egrep='egrep'
13736     fi
13737 fi
13738 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13739 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13740  EGREP=$ac_cv_prog_egrep
13741
13742
13743 if test $ac_cv_c_compiler_gnu = yes; then
13744     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13745 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13746 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13747   echo $ECHO_N "(cached) $ECHO_C" >&6
13748 else
13749     ac_pattern="Autoconf.*'x'"
13750   cat >conftest.$ac_ext <<_ACEOF
13751 /* confdefs.h.  */
13752 _ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h.  */
13756 #include <sgtty.h>
13757 Autoconf TIOCGETP
13758 _ACEOF
13759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13760   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13761   ac_cv_prog_gcc_traditional=yes
13762 else
13763   ac_cv_prog_gcc_traditional=no
13764 fi
13765 rm -f conftest*
13766
13767
13768   if test $ac_cv_prog_gcc_traditional = no; then
13769     cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775 #include <termio.h>
13776 Autoconf TCGETA
13777 _ACEOF
13778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13779   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13780   ac_cv_prog_gcc_traditional=yes
13781 fi
13782 rm -f conftest*
13783
13784   fi
13785 fi
13786 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13787 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13788   if test $ac_cv_prog_gcc_traditional = yes; then
13789     CC="$CC -traditional"
13790   fi
13791 fi
13792
13793
13794 ac_ext=cc
13795 ac_cpp='$CXXCPP $CPPFLAGS'
13796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13799
13800
13801 CXXFLAGS=${CXXFLAGS:=}
13802
13803
13804
13805     ac_ext=cc
13806 ac_cpp='$CXXCPP $CPPFLAGS'
13807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13810 if test -n "$ac_tool_prefix"; then
13811   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13812   do
13813     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13815 echo "$as_me:$LINENO: checking for $ac_word" >&5
13816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13817 if test "${ac_cv_prog_CXX+set}" = set; then
13818   echo $ECHO_N "(cached) $ECHO_C" >&6
13819 else
13820   if test -n "$CXX"; then
13821   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13822 else
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13825 do
13826   IFS=$as_save_IFS
13827   test -z "$as_dir" && as_dir=.
13828   for ac_exec_ext in '' $ac_executable_extensions; do
13829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13832     break 2
13833   fi
13834 done
13835 done
13836
13837 fi
13838 fi
13839 CXX=$ac_cv_prog_CXX
13840 if test -n "$CXX"; then
13841   echo "$as_me:$LINENO: result: $CXX" >&5
13842 echo "${ECHO_T}$CXX" >&6
13843 else
13844   echo "$as_me:$LINENO: result: no" >&5
13845 echo "${ECHO_T}no" >&6
13846 fi
13847
13848     test -n "$CXX" && break
13849   done
13850 fi
13851 if test -z "$CXX"; then
13852   ac_ct_CXX=$CXX
13853   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13854 do
13855   # Extract the first word of "$ac_prog", so it can be a program name with args.
13856 set dummy $ac_prog; ac_word=$2
13857 echo "$as_me:$LINENO: checking for $ac_word" >&5
13858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13859 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13860   echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862   if test -n "$ac_ct_CXX"; then
13863   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13864 else
13865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866 for as_dir in $PATH
13867 do
13868   IFS=$as_save_IFS
13869   test -z "$as_dir" && as_dir=.
13870   for ac_exec_ext in '' $ac_executable_extensions; do
13871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13872     ac_cv_prog_ac_ct_CXX="$ac_prog"
13873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13874     break 2
13875   fi
13876 done
13877 done
13878
13879 fi
13880 fi
13881 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13882 if test -n "$ac_ct_CXX"; then
13883   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13884 echo "${ECHO_T}$ac_ct_CXX" >&6
13885 else
13886   echo "$as_me:$LINENO: result: no" >&5
13887 echo "${ECHO_T}no" >&6
13888 fi
13889
13890   test -n "$ac_ct_CXX" && break
13891 done
13892 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13893
13894   CXX=$ac_ct_CXX
13895 fi
13896
13897
13898 # Provide some information about the compiler.
13899 echo "$as_me:$LINENO:" \
13900      "checking for C++ compiler version" >&5
13901 ac_compiler=`set X $ac_compile; echo $2`
13902 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13903   (eval $ac_compiler --version </dev/null >&5) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }
13907 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13908   (eval $ac_compiler -v </dev/null >&5) 2>&5
13909   ac_status=$?
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); }
13912 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13913   (eval $ac_compiler -V </dev/null >&5) 2>&5
13914   ac_status=$?
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); }
13917
13918 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13919 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13920 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13921   echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923   cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h.  */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h.  */
13929
13930 int
13931 main ()
13932 {
13933 #ifndef __GNUC__
13934        choke me
13935 #endif
13936
13937   ;
13938   return 0;
13939 }
13940 _ACEOF
13941 rm -f conftest.$ac_objext
13942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943   (eval $ac_compile) 2>conftest.er1
13944   ac_status=$?
13945   grep -v '^ *+' conftest.er1 >conftest.err
13946   rm -f conftest.er1
13947   cat conftest.err >&5
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); } &&
13950          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952   (eval $ac_try) 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); }; } &&
13956          { ac_try='test -s conftest.$ac_objext'
13957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958   (eval $ac_try) 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; }; then
13962   ac_compiler_gnu=yes
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967 ac_compiler_gnu=no
13968 fi
13969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13971
13972 fi
13973 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13974 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13975 GXX=`test $ac_compiler_gnu = yes && echo yes`
13976 ac_test_CXXFLAGS=${CXXFLAGS+set}
13977 ac_save_CXXFLAGS=$CXXFLAGS
13978 CXXFLAGS="-g"
13979 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13980 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13981 if test "${ac_cv_prog_cxx_g+set}" = set; then
13982   echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984   cat >conftest.$ac_ext <<_ACEOF
13985 /* confdefs.h.  */
13986 _ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h.  */
13990
13991 int
13992 main ()
13993 {
13994
13995   ;
13996   return 0;
13997 }
13998 _ACEOF
13999 rm -f conftest.$ac_objext
14000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14001   (eval $ac_compile) 2>conftest.er1
14002   ac_status=$?
14003   grep -v '^ *+' conftest.er1 >conftest.err
14004   rm -f conftest.er1
14005   cat conftest.err >&5
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } &&
14008          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010   (eval $ac_try) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; } &&
14014          { ac_try='test -s conftest.$ac_objext'
14015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016   (eval $ac_try) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; }; then
14020   ac_cv_prog_cxx_g=yes
14021 else
14022   echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14024
14025 ac_cv_prog_cxx_g=no
14026 fi
14027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14028 fi
14029 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14030 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14031 if test "$ac_test_CXXFLAGS" = set; then
14032   CXXFLAGS=$ac_save_CXXFLAGS
14033 elif test $ac_cv_prog_cxx_g = yes; then
14034   if test "$GXX" = yes; then
14035     CXXFLAGS="-g -O2"
14036   else
14037     CXXFLAGS="-g"
14038   fi
14039 else
14040   if test "$GXX" = yes; then
14041     CXXFLAGS="-O2"
14042   else
14043     CXXFLAGS=
14044   fi
14045 fi
14046 for ac_declaration in \
14047    '' \
14048    'extern "C" void std::exit (int) throw (); using std::exit;' \
14049    'extern "C" void std::exit (int); using std::exit;' \
14050    'extern "C" void exit (int) throw ();' \
14051    'extern "C" void exit (int);' \
14052    'void exit (int);'
14053 do
14054   cat >conftest.$ac_ext <<_ACEOF
14055 /* confdefs.h.  */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h.  */
14060 $ac_declaration
14061 #include <stdlib.h>
14062 int
14063 main ()
14064 {
14065 exit (42);
14066   ;
14067   return 0;
14068 }
14069 _ACEOF
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072   (eval $ac_compile) 2>conftest.er1
14073   ac_status=$?
14074   grep -v '^ *+' conftest.er1 >conftest.err
14075   rm -f conftest.er1
14076   cat conftest.err >&5
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); } &&
14079          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081   (eval $ac_try) 2>&5
14082   ac_status=$?
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); }; } &&
14085          { ac_try='test -s conftest.$ac_objext'
14086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087   (eval $ac_try) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; }; then
14091   :
14092 else
14093   echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14095
14096 continue
14097 fi
14098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14099   cat >conftest.$ac_ext <<_ACEOF
14100 /* confdefs.h.  */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h.  */
14105 $ac_declaration
14106 int
14107 main ()
14108 {
14109 exit (42);
14110   ;
14111   return 0;
14112 }
14113 _ACEOF
14114 rm -f conftest.$ac_objext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14116   (eval $ac_compile) 2>conftest.er1
14117   ac_status=$?
14118   grep -v '^ *+' conftest.er1 >conftest.err
14119   rm -f conftest.er1
14120   cat conftest.err >&5
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); } &&
14123          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125   (eval $ac_try) 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; } &&
14129          { ac_try='test -s conftest.$ac_objext'
14130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131   (eval $ac_try) 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; }; then
14135   break
14136 else
14137   echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14139
14140 fi
14141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14142 done
14143 rm -f conftest*
14144 if test -n "$ac_declaration"; then
14145   echo '#ifdef __cplusplus' >>confdefs.h
14146   echo $ac_declaration      >>confdefs.h
14147   echo '#endif'             >>confdefs.h
14148 fi
14149
14150 ac_ext=cc
14151 ac_cpp='$CXXCPP $CPPFLAGS'
14152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14155
14156
14157
14158     ac_ext=cc
14159 ac_cpp='$CXXCPP $CPPFLAGS'
14160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14163
14164     echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14165 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14166 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   cat >conftest.$ac_ext <<_ACEOF
14170 /* confdefs.h.  */
14171 _ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h.  */
14175
14176 int
14177 main ()
14178 {
14179
14180              #ifndef __INTEL_COMPILER
14181                 choke me
14182              #endif
14183
14184   ;
14185   return 0;
14186 }
14187 _ACEOF
14188 rm -f conftest.$ac_objext
14189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14190   (eval $ac_compile) 2>conftest.er1
14191   ac_status=$?
14192   grep -v '^ *+' conftest.er1 >conftest.err
14193   rm -f conftest.er1
14194   cat conftest.err >&5
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); } &&
14197          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; } &&
14203          { ac_try='test -s conftest.$ac_objext'
14204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205   (eval $ac_try) 2>&5
14206   ac_status=$?
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); }; }; then
14209   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14210 else
14211   echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14213
14214 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14215
14216 fi
14217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14218
14219
14220 fi
14221 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14222 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14223     ac_ext=cc
14224 ac_cpp='$CXXCPP $CPPFLAGS'
14225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14228
14229     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14230         :; INTELCXX=yes
14231     else
14232         :;
14233     fi
14234
14235
14236         if test "x$GCXX" != "xyes"; then
14237         if test "xCXX" = "xC"; then
14238             echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
14239 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
14240 if test "${bakefile_cv_cxx_exto+set}" = set; then
14241   echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243   cat >conftest.$ac_ext <<_ACEOF
14244 /* confdefs.h.  */
14245 _ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h.  */
14249
14250 int
14251 main ()
14252 {
14253
14254   ;
14255   return 0;
14256 }
14257 _ACEOF
14258 rm -f conftest.$ac_objext conftest.$ac_ext.o
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260   (eval $ac_compile) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; then
14264   for ac_file in `(ls conftest.* 2>/dev/null)`; do
14265     case $ac_file in
14266         conftest.$ac_ext.o)
14267             bakefile_cv_cxx_exto="-ext o"
14268             ;;
14269         *)
14270             ;;
14271     esac
14272 done
14273 else
14274   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14275 See \`config.log' for more details." >&5
14276 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14277 See \`config.log' for more details." >&2;}
14278    { (exit 1); exit 1; }; }
14279
14280 fi
14281
14282 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14283
14284 fi
14285 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14286 echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14287 if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
14288     if test "cxx" = "c"; then
14289         CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
14290     fi
14291     if test "cxx" = "cxx"; then
14292         CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
14293     fi
14294 fi
14295
14296             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14297                 unset ac_cv_prog_cc_g
14298                 ac_test_CFLAGS=${CFLAGS+set}
14299 ac_save_CFLAGS=$CFLAGS
14300 CFLAGS="-g"
14301 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14302 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14303 if test "${ac_cv_prog_cc_g+set}" = set; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306   cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h.  */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h.  */
14312
14313 int
14314 main ()
14315 {
14316
14317   ;
14318   return 0;
14319 }
14320 _ACEOF
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323   (eval $ac_compile) 2>conftest.er1
14324   ac_status=$?
14325   grep -v '^ *+' conftest.er1 >conftest.err
14326   rm -f conftest.er1
14327   cat conftest.err >&5
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); } &&
14330          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332   (eval $ac_try) 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; } &&
14336          { ac_try='test -s conftest.$ac_objext'
14337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338   (eval $ac_try) 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; }; then
14342   ac_cv_prog_cc_g=yes
14343 else
14344   echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14346
14347 ac_cv_prog_cc_g=no
14348 fi
14349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14350 fi
14351 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14352 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14353 if test "$ac_test_CFLAGS" = set; then
14354   CFLAGS=$ac_save_CFLAGS
14355 elif test $ac_cv_prog_cc_g = yes; then
14356   if test "$GCC" = yes; then
14357     CFLAGS="-g -O2"
14358   else
14359     CFLAGS="-g"
14360   fi
14361 else
14362   if test "$GCC" = yes; then
14363     CFLAGS="-O2"
14364   else
14365     CFLAGS=
14366   fi
14367 fi
14368             fi
14369         fi
14370
14371                         case `uname -s` in
14372             AIX*)
14373                 ac_ext=cc
14374 ac_cpp='$CXXCPP $CPPFLAGS'
14375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14378
14379 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14380 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14381 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14382   echo $ECHO_N "(cached) $ECHO_C" >&6
14383 else
14384   cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h.  */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h.  */
14390
14391 int
14392 main ()
14393 {
14394 #ifndef __xlC__
14395        choke me
14396 #endif
14397
14398   ;
14399   return 0;
14400 }
14401 _ACEOF
14402 rm -f conftest.$ac_objext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14404   (eval $ac_compile) 2>conftest.er1
14405   ac_status=$?
14406   grep -v '^ *+' conftest.er1 >conftest.err
14407   rm -f conftest.er1
14408   cat conftest.err >&5
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); } &&
14411          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413   (eval $ac_try) 2>&5
14414   ac_status=$?
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); }; } &&
14417          { ac_try='test -s conftest.$ac_objext'
14418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419   (eval $ac_try) 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); }; }; then
14423   bakefile_compiler_xlc=yes
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428 bakefile_compiler_xlc=no
14429 fi
14430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14431     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14432
14433 fi
14434 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14435 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14436
14437 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14438 ac_ext=cc
14439 ac_cpp='$CXXCPP $CPPFLAGS'
14440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14443
14444
14445                 ;;
14446
14447             Darwin)
14448                 ac_ext=cc
14449 ac_cpp='$CXXCPP $CPPFLAGS'
14450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14453
14454 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14455 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14456 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14457   echo $ECHO_N "(cached) $ECHO_C" >&6
14458 else
14459   cat >conftest.$ac_ext <<_ACEOF
14460 /* confdefs.h.  */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h.  */
14465
14466 int
14467 main ()
14468 {
14469 #ifndef __MWERKS__
14470        choke me
14471 #endif
14472
14473   ;
14474   return 0;
14475 }
14476 _ACEOF
14477 rm -f conftest.$ac_objext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14479   (eval $ac_compile) 2>conftest.er1
14480   ac_status=$?
14481   grep -v '^ *+' conftest.er1 >conftest.err
14482   rm -f conftest.er1
14483   cat conftest.err >&5
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); } &&
14486          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488   (eval $ac_try) 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; } &&
14492          { ac_try='test -s conftest.$ac_objext'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; }; then
14498   bakefile_compiler_mwerks=yes
14499 else
14500   echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 bakefile_compiler_mwerks=no
14504 fi
14505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14506     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14507
14508 fi
14509 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14510 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14511
14512 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
14513 ac_ext=cc
14514 ac_cpp='$CXXCPP $CPPFLAGS'
14515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14518
14519
14520                 ac_ext=cc
14521 ac_cpp='$CXXCPP $CPPFLAGS'
14522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14525
14526 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14527 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14528 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14529   echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531   cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h.  */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h.  */
14537
14538 int
14539 main ()
14540 {
14541 #ifndef __xlC__
14542        choke me
14543 #endif
14544
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 rm -f conftest.$ac_objext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14551   (eval $ac_compile) 2>conftest.er1
14552   ac_status=$?
14553   grep -v '^ *+' conftest.er1 >conftest.err
14554   rm -f conftest.er1
14555   cat conftest.err >&5
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); } &&
14558          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560   (eval $ac_try) 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); }; } &&
14564          { ac_try='test -s conftest.$ac_objext'
14565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566   (eval $ac_try) 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); }; }; then
14570   bakefile_compiler_xlc=yes
14571 else
14572   echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14574
14575 bakefile_compiler_xlc=no
14576 fi
14577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14578     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14579
14580 fi
14581 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14582 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14583
14584 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14585 ac_ext=cc
14586 ac_cpp='$CXXCPP $CPPFLAGS'
14587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14590
14591
14592                 ;;
14593
14594             IRIX*)
14595
14596
14597     ac_ext=cc
14598 ac_cpp='$CXXCPP $CPPFLAGS'
14599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14602
14603     echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14604 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14605 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14606   echo $ECHO_N "(cached) $ECHO_C" >&6
14607 else
14608   cat >conftest.$ac_ext <<_ACEOF
14609 /* confdefs.h.  */
14610 _ACEOF
14611 cat confdefs.h >>conftest.$ac_ext
14612 cat >>conftest.$ac_ext <<_ACEOF
14613 /* end confdefs.h.  */
14614
14615 int
14616 main ()
14617 {
14618
14619              #ifndef _SGI_COMPILER_VERSION
14620                 choke me
14621              #endif
14622
14623   ;
14624   return 0;
14625 }
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629   (eval $ac_compile) 2>conftest.er1
14630   ac_status=$?
14631   grep -v '^ *+' conftest.er1 >conftest.err
14632   rm -f conftest.er1
14633   cat conftest.err >&5
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); } &&
14636          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638   (eval $ac_try) 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); }; } &&
14642          { ac_try='test -s conftest.$ac_objext'
14643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644   (eval $ac_try) 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); }; }; then
14648   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14649 else
14650   echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14652
14653 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14654
14655 fi
14656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14657
14658
14659 fi
14660 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14661 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14662     ac_ext=cc
14663 ac_cpp='$CXXCPP $CPPFLAGS'
14664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14667
14668     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14669         :; SGICXX=yes
14670     else
14671         :;
14672     fi
14673
14674
14675                 ;;
14676
14677             HP-UX*)
14678
14679
14680     ac_ext=cc
14681 ac_cpp='$CXXCPP $CPPFLAGS'
14682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14685
14686     echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14687 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14688 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
14689   echo $ECHO_N "(cached) $ECHO_C" >&6
14690 else
14691   cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h.  */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h.  */
14697
14698 int
14699 main ()
14700 {
14701
14702              #ifndef __HP_aCC
14703                 choke me
14704              #endif
14705
14706   ;
14707   return 0;
14708 }
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712   (eval $ac_compile) 2>conftest.er1
14713   ac_status=$?
14714   grep -v '^ *+' conftest.er1 >conftest.err
14715   rm -f conftest.er1
14716   cat conftest.err >&5
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); } &&
14719          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721   (eval $ac_try) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); }; } &&
14725          { ac_try='test -s conftest.$ac_objext'
14726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727   (eval $ac_try) 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; }; then
14731   bakefile_cv_cxx_compiler___HP_aCC=yes
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736 bakefile_cv_cxx_compiler___HP_aCC=no
14737
14738 fi
14739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14740
14741
14742 fi
14743 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14744 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
14745     ac_ext=cc
14746 ac_cpp='$CXXCPP $CPPFLAGS'
14747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14750
14751     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14752         :; HPCXX=yes
14753     else
14754         :;
14755     fi
14756
14757
14758                 ;;
14759
14760             OSF1)
14761
14762
14763     ac_ext=cc
14764 ac_cpp='$CXXCPP $CPPFLAGS'
14765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14768
14769     echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14770 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14771 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
14772   echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774   cat >conftest.$ac_ext <<_ACEOF
14775 /* confdefs.h.  */
14776 _ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h.  */
14780
14781 int
14782 main ()
14783 {
14784
14785              #ifndef __DECCXX
14786                 choke me
14787              #endif
14788
14789   ;
14790   return 0;
14791 }
14792 _ACEOF
14793 rm -f conftest.$ac_objext
14794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14795   (eval $ac_compile) 2>conftest.er1
14796   ac_status=$?
14797   grep -v '^ *+' conftest.er1 >conftest.err
14798   rm -f conftest.er1
14799   cat conftest.err >&5
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); } &&
14802          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804   (eval $ac_try) 2>&5
14805   ac_status=$?
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); }; } &&
14808          { ac_try='test -s conftest.$ac_objext'
14809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810   (eval $ac_try) 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; }; then
14814   bakefile_cv_cxx_compiler___DECCXX=yes
14815 else
14816   echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 bakefile_cv_cxx_compiler___DECCXX=no
14820
14821 fi
14822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823
14824
14825 fi
14826 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14827 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
14828     ac_ext=cc
14829 ac_cpp='$CXXCPP $CPPFLAGS'
14830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14833
14834     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14835         :; COMPAQCXX=yes
14836     else
14837         :;
14838     fi
14839
14840
14841                 ;;
14842
14843             SunOS)
14844
14845
14846     ac_ext=cc
14847 ac_cpp='$CXXCPP $CPPFLAGS'
14848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14851
14852     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14853 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14854 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14855   echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857   cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863
14864 int
14865 main ()
14866 {
14867
14868              #ifndef __SUNPRO_CC
14869                 choke me
14870              #endif
14871
14872   ;
14873   return 0;
14874 }
14875 _ACEOF
14876 rm -f conftest.$ac_objext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14878   (eval $ac_compile) 2>conftest.er1
14879   ac_status=$?
14880   grep -v '^ *+' conftest.er1 >conftest.err
14881   rm -f conftest.er1
14882   cat conftest.err >&5
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); } &&
14885          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887   (eval $ac_try) 2>&5
14888   ac_status=$?
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); }; } &&
14891          { ac_try='test -s conftest.$ac_objext'
14892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893   (eval $ac_try) 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); }; }; then
14897   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14898 else
14899   echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 bakefile_cv_cxx_compiler___SUNPRO_CC=no
14903
14904 fi
14905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14906
14907
14908 fi
14909 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14910 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14911     ac_ext=cc
14912 ac_cpp='$CXXCPP $CPPFLAGS'
14913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14916
14917     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14918         :; SUNCXX=yes
14919     else
14920         :;
14921     fi
14922
14923
14924                 ;;
14925         esac
14926     fi
14927
14928
14929
14930 if test -n "$ac_tool_prefix"; then
14931   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14932 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14933 echo "$as_me:$LINENO: checking for $ac_word" >&5
14934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14935 if test "${ac_cv_prog_RANLIB+set}" = set; then
14936   echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938   if test -n "$RANLIB"; then
14939   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14940 else
14941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14942 for as_dir in $PATH
14943 do
14944   IFS=$as_save_IFS
14945   test -z "$as_dir" && as_dir=.
14946   for ac_exec_ext in '' $ac_executable_extensions; do
14947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14948     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14950     break 2
14951   fi
14952 done
14953 done
14954
14955 fi
14956 fi
14957 RANLIB=$ac_cv_prog_RANLIB
14958 if test -n "$RANLIB"; then
14959   echo "$as_me:$LINENO: result: $RANLIB" >&5
14960 echo "${ECHO_T}$RANLIB" >&6
14961 else
14962   echo "$as_me:$LINENO: result: no" >&5
14963 echo "${ECHO_T}no" >&6
14964 fi
14965
14966 fi
14967 if test -z "$ac_cv_prog_RANLIB"; then
14968   ac_ct_RANLIB=$RANLIB
14969   # Extract the first word of "ranlib", so it can be a program name with args.
14970 set dummy ranlib; ac_word=$2
14971 echo "$as_me:$LINENO: checking for $ac_word" >&5
14972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14973 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14974   echo $ECHO_N "(cached) $ECHO_C" >&6
14975 else
14976   if test -n "$ac_ct_RANLIB"; then
14977   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14978 else
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14981 do
14982   IFS=$as_save_IFS
14983   test -z "$as_dir" && as_dir=.
14984   for ac_exec_ext in '' $ac_executable_extensions; do
14985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986     ac_cv_prog_ac_ct_RANLIB="ranlib"
14987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14988     break 2
14989   fi
14990 done
14991 done
14992
14993   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14994 fi
14995 fi
14996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14997 if test -n "$ac_ct_RANLIB"; then
14998   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14999 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15000 else
15001   echo "$as_me:$LINENO: result: no" >&5
15002 echo "${ECHO_T}no" >&6
15003 fi
15004
15005   RANLIB=$ac_ct_RANLIB
15006 else
15007   RANLIB="$ac_cv_prog_RANLIB"
15008 fi
15009
15010
15011 if test -n "$ac_tool_prefix"; then
15012   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15013 set dummy ${ac_tool_prefix}ar; ac_word=$2
15014 echo "$as_me:$LINENO: checking for $ac_word" >&5
15015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15016 if test "${ac_cv_prog_AR+set}" = set; then
15017   echo $ECHO_N "(cached) $ECHO_C" >&6
15018 else
15019   if test -n "$AR"; then
15020   ac_cv_prog_AR="$AR" # Let the user override the test.
15021 else
15022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15023 for as_dir in $PATH
15024 do
15025   IFS=$as_save_IFS
15026   test -z "$as_dir" && as_dir=.
15027   for ac_exec_ext in '' $ac_executable_extensions; do
15028   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15029     ac_cv_prog_AR="${ac_tool_prefix}ar"
15030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15031     break 2
15032   fi
15033 done
15034 done
15035
15036 fi
15037 fi
15038 AR=$ac_cv_prog_AR
15039 if test -n "$AR"; then
15040   echo "$as_me:$LINENO: result: $AR" >&5
15041 echo "${ECHO_T}$AR" >&6
15042 else
15043   echo "$as_me:$LINENO: result: no" >&5
15044 echo "${ECHO_T}no" >&6
15045 fi
15046
15047 fi
15048 if test -z "$ac_cv_prog_AR"; then
15049   ac_ct_AR=$AR
15050   # Extract the first word of "ar", so it can be a program name with args.
15051 set dummy ar; ac_word=$2
15052 echo "$as_me:$LINENO: checking for $ac_word" >&5
15053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15054 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15055   echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057   if test -n "$ac_ct_AR"; then
15058   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15059 else
15060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15061 for as_dir in $PATH
15062 do
15063   IFS=$as_save_IFS
15064   test -z "$as_dir" && as_dir=.
15065   for ac_exec_ext in '' $ac_executable_extensions; do
15066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15067     ac_cv_prog_ac_ct_AR="ar"
15068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15069     break 2
15070   fi
15071 done
15072 done
15073
15074 fi
15075 fi
15076 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15077 if test -n "$ac_ct_AR"; then
15078   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15079 echo "${ECHO_T}$ac_ct_AR" >&6
15080 else
15081   echo "$as_me:$LINENO: result: no" >&5
15082 echo "${ECHO_T}no" >&6
15083 fi
15084
15085   AR=$ac_ct_AR
15086 else
15087   AR="$ac_cv_prog_AR"
15088 fi
15089
15090 if test "x$AR" = "x" ; then
15091     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15092 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
15093    { (exit 1); exit 1; }; }
15094 fi
15095
15096 # Find a good install program.  We prefer a C program (faster),
15097 # so one script is as good as another.  But avoid the broken or
15098 # incompatible versions:
15099 # SysV /etc/install, /usr/sbin/install
15100 # SunOS /usr/etc/install
15101 # IRIX /sbin/install
15102 # AIX /bin/install
15103 # AmigaOS /C/install, which installs bootblocks on floppy discs
15104 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15105 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15106 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15107 # OS/2's system install, which has a completely different semantic
15108 # ./install, which can be erroneously created by make from ./install.sh.
15109 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15110 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15111 if test -z "$INSTALL"; then
15112 if test "${ac_cv_path_install+set}" = set; then
15113   echo $ECHO_N "(cached) $ECHO_C" >&6
15114 else
15115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15116 for as_dir in $PATH
15117 do
15118   IFS=$as_save_IFS
15119   test -z "$as_dir" && as_dir=.
15120   # Account for people who put trailing slashes in PATH elements.
15121 case $as_dir/ in
15122   ./ | .// | /cC/* | \
15123   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15124   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
15125   /usr/ucb/* ) ;;
15126   *)
15127     # OSF1 and SCO ODT 3.0 have their own names for install.
15128     # Don't use installbsd from OSF since it installs stuff as root
15129     # by default.
15130     for ac_prog in ginstall scoinst install; do
15131       for ac_exec_ext in '' $ac_executable_extensions; do
15132         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15133           if test $ac_prog = install &&
15134             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15135             # AIX install.  It has an incompatible calling convention.
15136             :
15137           elif test $ac_prog = install &&
15138             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15139             # program-specific install script used by HP pwplus--don't use.
15140             :
15141           else
15142             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15143             break 3
15144           fi
15145         fi
15146       done
15147     done
15148     ;;
15149 esac
15150 done
15151
15152
15153 fi
15154   if test "${ac_cv_path_install+set}" = set; then
15155     INSTALL=$ac_cv_path_install
15156   else
15157     # As a last resort, use the slow shell script.  We don't cache a
15158     # path for INSTALL within a source directory, because that will
15159     # break other packages using the cache if that directory is
15160     # removed, or if the path is relative.
15161     INSTALL=$ac_install_sh
15162   fi
15163 fi
15164 echo "$as_me:$LINENO: result: $INSTALL" >&5
15165 echo "${ECHO_T}$INSTALL" >&6
15166
15167 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15168 # It thinks the first close brace ends the variable substitution.
15169 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15170
15171 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15172
15173 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15174
15175
15176 case ${INSTALL} in
15177   /* ) # Absolute
15178      ;;
15179   ?:* ) # Drive letter, considered as absolute.
15180      ;;
15181   *)
15182      INSTALL=`pwd`/${INSTALL} ;;
15183 esac
15184
15185
15186 case "${host}" in
15187
15188                 *-*-darwin* )
15189         INSTALL_PROGRAM="cp -fp"
15190         INSTALL_DATA="cp -fp"
15191         ;;
15192     *)
15193         ;;
15194 esac
15195
15196 if test -n "$ac_tool_prefix"; then
15197   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15198 set dummy ${ac_tool_prefix}strip; ac_word=$2
15199 echo "$as_me:$LINENO: checking for $ac_word" >&5
15200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15201 if test "${ac_cv_prog_STRIP+set}" = set; then
15202   echo $ECHO_N "(cached) $ECHO_C" >&6
15203 else
15204   if test -n "$STRIP"; then
15205   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15206 else
15207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15208 for as_dir in $PATH
15209 do
15210   IFS=$as_save_IFS
15211   test -z "$as_dir" && as_dir=.
15212   for ac_exec_ext in '' $ac_executable_extensions; do
15213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15214     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15216     break 2
15217   fi
15218 done
15219 done
15220
15221 fi
15222 fi
15223 STRIP=$ac_cv_prog_STRIP
15224 if test -n "$STRIP"; then
15225   echo "$as_me:$LINENO: result: $STRIP" >&5
15226 echo "${ECHO_T}$STRIP" >&6
15227 else
15228   echo "$as_me:$LINENO: result: no" >&5
15229 echo "${ECHO_T}no" >&6
15230 fi
15231
15232 fi
15233 if test -z "$ac_cv_prog_STRIP"; then
15234   ac_ct_STRIP=$STRIP
15235   # Extract the first word of "strip", so it can be a program name with args.
15236 set dummy strip; ac_word=$2
15237 echo "$as_me:$LINENO: checking for $ac_word" >&5
15238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15239 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15240   echo $ECHO_N "(cached) $ECHO_C" >&6
15241 else
15242   if test -n "$ac_ct_STRIP"; then
15243   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15244 else
15245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15246 for as_dir in $PATH
15247 do
15248   IFS=$as_save_IFS
15249   test -z "$as_dir" && as_dir=.
15250   for ac_exec_ext in '' $ac_executable_extensions; do
15251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15252     ac_cv_prog_ac_ct_STRIP="strip"
15253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15254     break 2
15255   fi
15256 done
15257 done
15258
15259   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15260 fi
15261 fi
15262 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15263 if test -n "$ac_ct_STRIP"; then
15264   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15265 echo "${ECHO_T}$ac_ct_STRIP" >&6
15266 else
15267   echo "$as_me:$LINENO: result: no" >&5
15268 echo "${ECHO_T}no" >&6
15269 fi
15270
15271   STRIP=$ac_ct_STRIP
15272 else
15273   STRIP="$ac_cv_prog_STRIP"
15274 fi
15275
15276
15277 if test "$wxUSE_WINE" = "yes"; then
15278     if test -n "$ac_tool_prefix"; then
15279   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15280 set dummy ${ac_tool_prefix}wrc; ac_word=$2
15281 echo "$as_me:$LINENO: checking for $ac_word" >&5
15282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15283 if test "${ac_cv_prog_WINDRES+set}" = set; then
15284   echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286   if test -n "$WINDRES"; then
15287   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15288 else
15289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15290 for as_dir in $PATH
15291 do
15292   IFS=$as_save_IFS
15293   test -z "$as_dir" && as_dir=.
15294   for ac_exec_ext in '' $ac_executable_extensions; do
15295   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15296     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
15297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15298     break 2
15299   fi
15300 done
15301 done
15302
15303 fi
15304 fi
15305 WINDRES=$ac_cv_prog_WINDRES
15306 if test -n "$WINDRES"; then
15307   echo "$as_me:$LINENO: result: $WINDRES" >&5
15308 echo "${ECHO_T}$WINDRES" >&6
15309 else
15310   echo "$as_me:$LINENO: result: no" >&5
15311 echo "${ECHO_T}no" >&6
15312 fi
15313
15314 fi
15315 if test -z "$ac_cv_prog_WINDRES"; then
15316   ac_ct_WINDRES=$WINDRES
15317   # Extract the first word of "wrc", so it can be a program name with args.
15318 set dummy wrc; ac_word=$2
15319 echo "$as_me:$LINENO: checking for $ac_word" >&5
15320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15321 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15322   echo $ECHO_N "(cached) $ECHO_C" >&6
15323 else
15324   if test -n "$ac_ct_WINDRES"; then
15325   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15326 else
15327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15328 for as_dir in $PATH
15329 do
15330   IFS=$as_save_IFS
15331   test -z "$as_dir" && as_dir=.
15332   for ac_exec_ext in '' $ac_executable_extensions; do
15333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15334     ac_cv_prog_ac_ct_WINDRES="wrc"
15335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15336     break 2
15337   fi
15338 done
15339 done
15340
15341 fi
15342 fi
15343 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15344 if test -n "$ac_ct_WINDRES"; then
15345   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15346 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15347 else
15348   echo "$as_me:$LINENO: result: no" >&5
15349 echo "${ECHO_T}no" >&6
15350 fi
15351
15352   WINDRES=$ac_ct_WINDRES
15353 else
15354   WINDRES="$ac_cv_prog_WINDRES"
15355 fi
15356
15357     RESCOMP="$WINDRES"
15358 else
15359     case "${host}" in
15360     *-*-cygwin* | *-*-mingw32* )
15361                                 if test -n "$ac_tool_prefix"; then
15362   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15363 set dummy ${ac_tool_prefix}windres; ac_word=$2
15364 echo "$as_me:$LINENO: checking for $ac_word" >&5
15365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15366 if test "${ac_cv_prog_WINDRES+set}" = set; then
15367   echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369   if test -n "$WINDRES"; then
15370   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15371 else
15372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15373 for as_dir in $PATH
15374 do
15375   IFS=$as_save_IFS
15376   test -z "$as_dir" && as_dir=.
15377   for ac_exec_ext in '' $ac_executable_extensions; do
15378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15379     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15381     break 2
15382   fi
15383 done
15384 done
15385
15386 fi
15387 fi
15388 WINDRES=$ac_cv_prog_WINDRES
15389 if test -n "$WINDRES"; then
15390   echo "$as_me:$LINENO: result: $WINDRES" >&5
15391 echo "${ECHO_T}$WINDRES" >&6
15392 else
15393   echo "$as_me:$LINENO: result: no" >&5
15394 echo "${ECHO_T}no" >&6
15395 fi
15396
15397 fi
15398 if test -z "$ac_cv_prog_WINDRES"; then
15399   ac_ct_WINDRES=$WINDRES
15400   # Extract the first word of "windres", so it can be a program name with args.
15401 set dummy windres; ac_word=$2
15402 echo "$as_me:$LINENO: checking for $ac_word" >&5
15403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15404 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15405   echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407   if test -n "$ac_ct_WINDRES"; then
15408   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15409 else
15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411 for as_dir in $PATH
15412 do
15413   IFS=$as_save_IFS
15414   test -z "$as_dir" && as_dir=.
15415   for ac_exec_ext in '' $ac_executable_extensions; do
15416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15417     ac_cv_prog_ac_ct_WINDRES="windres"
15418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15419     break 2
15420   fi
15421 done
15422 done
15423
15424 fi
15425 fi
15426 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15427 if test -n "$ac_ct_WINDRES"; then
15428   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15429 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15430 else
15431   echo "$as_me:$LINENO: result: no" >&5
15432 echo "${ECHO_T}no" >&6
15433 fi
15434
15435   WINDRES=$ac_ct_WINDRES
15436 else
15437   WINDRES="$ac_cv_prog_WINDRES"
15438 fi
15439
15440         RESCOMP="$WINDRES"
15441         if test -n "$ac_tool_prefix"; then
15442   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15443 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15444 echo "$as_me:$LINENO: checking for $ac_word" >&5
15445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15446 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15447   echo $ECHO_N "(cached) $ECHO_C" >&6
15448 else
15449   if test -n "$DLLTOOL"; then
15450   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15451 else
15452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15453 for as_dir in $PATH
15454 do
15455   IFS=$as_save_IFS
15456   test -z "$as_dir" && as_dir=.
15457   for ac_exec_ext in '' $ac_executable_extensions; do
15458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15459     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15461     break 2
15462   fi
15463 done
15464 done
15465
15466 fi
15467 fi
15468 DLLTOOL=$ac_cv_prog_DLLTOOL
15469 if test -n "$DLLTOOL"; then
15470   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15471 echo "${ECHO_T}$DLLTOOL" >&6
15472 else
15473   echo "$as_me:$LINENO: result: no" >&5
15474 echo "${ECHO_T}no" >&6
15475 fi
15476
15477 fi
15478 if test -z "$ac_cv_prog_DLLTOOL"; then
15479   ac_ct_DLLTOOL=$DLLTOOL
15480   # Extract the first word of "dlltool", so it can be a program name with args.
15481 set dummy dlltool; ac_word=$2
15482 echo "$as_me:$LINENO: checking for $ac_word" >&5
15483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15484 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15485   echo $ECHO_N "(cached) $ECHO_C" >&6
15486 else
15487   if test -n "$ac_ct_DLLTOOL"; then
15488   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15489 else
15490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15491 for as_dir in $PATH
15492 do
15493   IFS=$as_save_IFS
15494   test -z "$as_dir" && as_dir=.
15495   for ac_exec_ext in '' $ac_executable_extensions; do
15496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15497     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15499     break 2
15500   fi
15501 done
15502 done
15503
15504 fi
15505 fi
15506 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15507 if test -n "$ac_ct_DLLTOOL"; then
15508   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15509 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15510 else
15511   echo "$as_me:$LINENO: result: no" >&5
15512 echo "${ECHO_T}no" >&6
15513 fi
15514
15515   DLLTOOL=$ac_ct_DLLTOOL
15516 else
15517   DLLTOOL="$ac_cv_prog_DLLTOOL"
15518 fi
15519
15520         ;;
15521     esac
15522 fi
15523
15524 echo "$as_me:$LINENO: checking if make is GNU make" >&5
15525 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15526 if test "${wx_cv_prog_makeisgnu+set}" = set; then
15527   echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529
15530     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15531             egrep -s GNU > /dev/null); then
15532         wx_cv_prog_makeisgnu="yes"
15533     else
15534         wx_cv_prog_makeisgnu="no"
15535     fi
15536
15537 fi
15538 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15539 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15540
15541 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15542     IF_GNU_MAKE=""
15543 else
15544     IF_GNU_MAKE="#"
15545 fi
15546
15547
15548
15549 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15550 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15551 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15552 if test "${wx_cv_prog_makevpath+set}" = set; then
15553   echo $ECHO_N "(cached) $ECHO_C" >&6
15554 else
15555
15556 cat - << EOF > confMake
15557 check : file
15558         cp \$? \$@
15559         cp \$? final_file
15560 EOF
15561
15562 if test ! -d sub ; then
15563   mkdir sub
15564 fi
15565 echo dummy > sub/file
15566 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15567 RESULT=$?
15568 rm -f sub/file check final_file confMake
15569 rmdir sub
15570 if test "$RESULT" = 0; then
15571   wx_cv_prog_makevpath="yes"
15572 else
15573   wx_cv_prog_makevpath="no"
15574 fi
15575
15576 fi
15577 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15578 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15579
15580 if test "x$wx_cv_prog_makevpath" != "xyes"; then
15581 { { echo "$as_me:$LINENO: error:
15582 You need a make-utility that is able to use the variable
15583 VPATH correctly.
15584 If your version of make does not support VPATH correctly,
15585 please install GNU-make (possibly as gmake), and start
15586 configure with the following command:
15587 export MAKE=gmake; ./configure  for sh-type shells
15588 setenv MAKE gmake; ./configure  for csh-type shells
15589 Also please do remember to use gmake in this case every time
15590 you are trying to compile.
15591 " >&5
15592 echo "$as_me: error:
15593 You need a make-utility that is able to use the variable
15594 VPATH correctly.
15595 If your version of make does not support VPATH correctly,
15596 please install GNU-make (possibly as gmake), and start
15597 configure with the following command:
15598 export MAKE=gmake; ./configure  for sh-type shells
15599 setenv MAKE gmake; ./configure  for csh-type shells
15600 Also please do remember to use gmake in this case every time
15601 you are trying to compile.
15602 " >&2;}
15603    { (exit 1); exit 1; }; }
15604 fi fi
15605 echo "$as_me:$LINENO: checking whether ln -s works" >&5
15606 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15607 LN_S=$as_ln_s
15608 if test "$LN_S" = "ln -s"; then
15609   echo "$as_me:$LINENO: result: yes" >&5
15610 echo "${ECHO_T}yes" >&6
15611 else
15612   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15613 echo "${ECHO_T}no, using $LN_S" >&6
15614 fi
15615
15616
15617
15618
15619 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
15620     CXXFLAGS="-qunique $CXXFLAGS"
15621 fi
15622
15623 case "${host}" in
15624   powerpc-*-darwin* )
15625     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15626 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15627     cat >conftest.$ac_ext <<_ACEOF
15628 /* confdefs.h.  */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h.  */
15633
15634 int
15635 main ()
15636 {
15637 #ifndef __POWERPC__
15638         choke me for lack of PowerPC
15639 #endif
15640
15641   ;
15642   return 0;
15643 }
15644 _ACEOF
15645 rm -f conftest.$ac_objext
15646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15647   (eval $ac_compile) 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } &&
15654          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656   (eval $ac_try) 2>&5
15657   ac_status=$?
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); }; } &&
15660          { ac_try='test -s conftest.$ac_objext'
15661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662   (eval $ac_try) 2>&5
15663   ac_status=$?
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); }; }; then
15666   echo "$as_me:$LINENO: result: yes" >&5
15667 echo "${ECHO_T}yes" >&6
15668 else
15669   echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672 echo "$as_me:$LINENO: result: no" >&5
15673 echo "${ECHO_T}no" >&6
15674         cat >>confdefs.h <<\_ACEOF
15675 #define __POWERPC__ 1
15676 _ACEOF
15677
15678
15679 fi
15680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15681   ;;
15682 esac
15683
15684 case "${host}" in
15685   *-*-darwin* )
15686     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15687 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15688     cat >conftest.$ac_ext <<_ACEOF
15689 /* confdefs.h.  */
15690 _ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h.  */
15694 #include <CoreFoundation/CFBase.h>
15695
15696 int
15697 main ()
15698 {
15699
15700   ;
15701   return 0;
15702 }
15703 _ACEOF
15704 rm -f conftest.$ac_objext
15705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15706   (eval $ac_compile) 2>conftest.er1
15707   ac_status=$?
15708   grep -v '^ *+' conftest.er1 >conftest.err
15709   rm -f conftest.er1
15710   cat conftest.err >&5
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); } &&
15713          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715   (eval $ac_try) 2>&5
15716   ac_status=$?
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); }; } &&
15719          { ac_try='test -s conftest.$ac_objext'
15720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721   (eval $ac_try) 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); }; }; then
15725   echo "$as_me:$LINENO: result: yes" >&5
15726 echo "${ECHO_T}yes" >&6
15727 else
15728   echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15730
15731 echo "$as_me:$LINENO: result: no" >&5
15732 echo "${ECHO_T}no" >&6
15733         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15734 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15735         cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741 #define __CF_USE_FRAMEWORK_INCLUDES__
15742 #include <CoreFoundation/CFBase.h>
15743
15744 int
15745 main ()
15746 {
15747
15748   ;
15749   return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754   (eval $ac_compile) 2>conftest.er1
15755   ac_status=$?
15756   grep -v '^ *+' conftest.er1 >conftest.err
15757   rm -f conftest.er1
15758   cat conftest.err >&5
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } &&
15761          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
15767          { ac_try='test -s conftest.$ac_objext'
15768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769   (eval $ac_try) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); }; }; then
15773   echo "$as_me:$LINENO: result: yes" >&5
15774 echo "${ECHO_T}yes" >&6
15775                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
15781 See \`config.log' for more details." >&5
15782 echo "$as_me: error: no.  CoreFoundation not available.
15783 See \`config.log' for more details." >&2;}
15784    { (exit 1); exit 1; }; }
15785
15786 fi
15787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15788
15789
15790 fi
15791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15792   ;;
15793 esac
15794
15795 case "${host}" in
15796   *-pc-os2_emx | *-pc-os2-emx )
15797                                                       ac_ext=c
15798 ac_cpp='$CPP $CPPFLAGS'
15799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15802
15803       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15804                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15805 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15806 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15807   echo $ECHO_N "(cached) $ECHO_C" >&6
15808 else
15809   ac_check_lib_save_LIBS=$LIBS
15810 LIBS="-lcExt  $LIBS"
15811 cat >conftest.$ac_ext <<_ACEOF
15812 /* confdefs.h.  */
15813 _ACEOF
15814 cat confdefs.h >>conftest.$ac_ext
15815 cat >>conftest.$ac_ext <<_ACEOF
15816 /* end confdefs.h.  */
15817
15818 /* Override any gcc2 internal prototype to avoid an error.  */
15819 #ifdef __cplusplus
15820 extern "C"
15821 #endif
15822 /* We use char because int might match the return type of a gcc2
15823    builtin and then its argument prototype would still apply.  */
15824 char drand48 ();
15825 int
15826 main ()
15827 {
15828 drand48 ();
15829   ;
15830   return 0;
15831 }
15832 _ACEOF
15833 rm -f conftest.$ac_objext conftest$ac_exeext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15835   (eval $ac_link) 2>conftest.er1
15836   ac_status=$?
15837   grep -v '^ *+' conftest.er1 >conftest.err
15838   rm -f conftest.er1
15839   cat conftest.err >&5
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); } &&
15842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844   (eval $ac_try) 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }; } &&
15848          { ac_try='test -s conftest$ac_exeext'
15849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850   (eval $ac_try) 2>&5
15851   ac_status=$?
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); }; }; then
15854   ac_cv_lib_cExt_drand48=yes
15855 else
15856   echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859 ac_cv_lib_cExt_drand48=no
15860 fi
15861 rm -f conftest.err conftest.$ac_objext \
15862       conftest$ac_exeext conftest.$ac_ext
15863 LIBS=$ac_check_lib_save_LIBS
15864 fi
15865 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15866 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15867 if test $ac_cv_lib_cExt_drand48 = yes; then
15868   LIBS="$LIBS -lcExt"
15869 fi
15870
15871       else
15872                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15873       fi
15874                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15875 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
15876 if test "${wx_cv_gccversion+set}" = set; then
15877   echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879
15880           if test "$cross_compiling" = yes; then
15881                 wx_cv_gccversion="EMX2"
15882
15883 else
15884   cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h.  */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h.  */
15890
15891                   #include <stdio.h>
15892
15893                   int main()
15894                   {
15895                       FILE *f=fopen("conftestval", "w");
15896                       if (!f) exit(1);
15897                       fprintf(f,
15898                   #if (__GNUC__ < 3)
15899                               "EMX2"
15900                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15901                               "EMX3"
15902                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15903                               "Innotek5"
15904                   #else
15905                               "Innotek6"
15906                   #endif
15907                       );
15908                       exit(0);
15909                   }
15910
15911 _ACEOF
15912 rm -f conftest$ac_exeext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15914   (eval $ac_link) 2>&5
15915   ac_status=$?
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919   (eval $ac_try) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; }; then
15923   wx_cv_gccversion=`cat conftestval`
15924 else
15925   echo "$as_me: program exited with status $ac_status" >&5
15926 echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15928
15929 ( exit $ac_status )
15930 wx_cv_gccversion="EMX2"
15931 fi
15932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15933 fi
15934
15935 fi
15936 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15937 echo "${ECHO_T}$wx_cv_gccversion" >&6
15938       ac_ext=cc
15939 ac_cpp='$CXXCPP $CPPFLAGS'
15940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15943
15944       if test "$wx_cv_gccversion" = "EMX2"; then
15945           LIBS="$LIBS -lstdcpp"
15946           LDFLAGS="$LDFLAGS -Zsysv-signals"
15947       else
15948           if test "$wx_cv_gccversion" = "EMX3"; then
15949               LIBS="$LIBS -lstdcxx -lgcc"
15950               LDFLAGS="$LDFLAGS -Zsysv-signals"
15951           else
15952               LIBS="$LIBS -lstdc++"
15953           fi
15954       fi
15955       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15956         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15957 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15958         wxUSE_OMF=yes
15959         enable_omf=yes
15960       fi
15961         ;;
15962   *)
15963
15964       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
15965 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15966 if test "${ac_cv_string_strcasecmp+set}" = set; then
15967   echo $ECHO_N "(cached) $ECHO_C" >&6
15968 else
15969
15970           cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h.  */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h.  */
15976
15977               #include <string.h>
15978
15979 int
15980 main ()
15981 {
15982
15983                   strcasecmp("foo", "bar");
15984
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15991   (eval $ac_link) 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } &&
15998          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000   (eval $ac_try) 2>&5
16001   ac_status=$?
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); }; } &&
16004          { ac_try='test -s conftest$ac_exeext'
16005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006   (eval $ac_try) 2>&5
16007   ac_status=$?
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); }; }; then
16010   ac_cv_string_strcasecmp=yes
16011 else
16012   echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015 ac_cv_string_strcasecmp=no
16016
16017 fi
16018 rm -f conftest.err conftest.$ac_objext \
16019       conftest$ac_exeext conftest.$ac_ext
16020
16021 fi
16022 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16023 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16024
16025       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16026           cat >>confdefs.h <<\_ACEOF
16027 #define HAVE_STRCASECMP_IN_STRING_H 1
16028 _ACEOF
16029
16030       else
16031           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16032 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16033 if test "${ac_cv_strings_strcasecmp+set}" = set; then
16034   echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036
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
16044                   #include <strings.h>
16045
16046 int
16047 main ()
16048 {
16049
16050                       strcasecmp("foo", "bar");
16051
16052   ;
16053   return 0;
16054 }
16055 _ACEOF
16056 rm -f conftest.$ac_objext conftest$ac_exeext
16057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16058   (eval $ac_link) 2>conftest.er1
16059   ac_status=$?
16060   grep -v '^ *+' conftest.er1 >conftest.err
16061   rm -f conftest.er1
16062   cat conftest.err >&5
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); } &&
16065          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067   (eval $ac_try) 2>&5
16068   ac_status=$?
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); }; } &&
16071          { ac_try='test -s conftest$ac_exeext'
16072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073   (eval $ac_try) 2>&5
16074   ac_status=$?
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); }; }; then
16077   ac_cv_strings_strcasecmp=yes
16078 else
16079   echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16081
16082 ac_cv_strings_strcasecmp=no
16083
16084 fi
16085 rm -f conftest.err conftest.$ac_objext \
16086       conftest$ac_exeext conftest.$ac_ext
16087
16088 fi
16089 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16090 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16091
16092           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
16093               cat >>confdefs.h <<\_ACEOF
16094 #define HAVE_STRCASECMP_IN_STRINGS_H 1
16095 _ACEOF
16096
16097           else
16098               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16099 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16100    { (exit 1); exit 1; }; }
16101           fi
16102       fi
16103
16104         ;;
16105 esac
16106
16107
16108 ac_ext=cc
16109 ac_cpp='$CXXCPP $CPPFLAGS'
16110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16113 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16114 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16115 if test -z "$CXXCPP"; then
16116   if test "${ac_cv_prog_CXXCPP+set}" = set; then
16117   echo $ECHO_N "(cached) $ECHO_C" >&6
16118 else
16119       # Double quotes because CXXCPP needs to be expanded
16120     for CXXCPP in "$CXX -E" "/lib/cpp"
16121     do
16122       ac_preproc_ok=false
16123 for ac_cxx_preproc_warn_flag in '' yes
16124 do
16125   # Use a header file that comes with gcc, so configuring glibc
16126   # with a fresh cross-compiler works.
16127   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16128   # <limits.h> exists even on freestanding compilers.
16129   # On the NeXT, cc -E runs the code through the compiler's parser,
16130   # not just through cpp. "Syntax error" is here to catch this case.
16131   cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h.  */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h.  */
16137 #ifdef __STDC__
16138 # include <limits.h>
16139 #else
16140 # include <assert.h>
16141 #endif
16142                      Syntax error
16143 _ACEOF
16144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16146   ac_status=$?
16147   grep -v '^ *+' conftest.er1 >conftest.err
16148   rm -f conftest.er1
16149   cat conftest.err >&5
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); } >/dev/null; then
16152   if test -s conftest.err; then
16153     ac_cpp_err=$ac_cxx_preproc_warn_flag
16154     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16155   else
16156     ac_cpp_err=
16157   fi
16158 else
16159   ac_cpp_err=yes
16160 fi
16161 if test -z "$ac_cpp_err"; then
16162   :
16163 else
16164   echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167   # Broken: fails on valid input.
16168 continue
16169 fi
16170 rm -f conftest.err conftest.$ac_ext
16171
16172   # OK, works on sane cases.  Now check whether non-existent headers
16173   # can be detected and how.
16174   cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h.  */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h.  */
16180 #include <ac_nonexistent.h>
16181 _ACEOF
16182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16184   ac_status=$?
16185   grep -v '^ *+' conftest.er1 >conftest.err
16186   rm -f conftest.er1
16187   cat conftest.err >&5
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); } >/dev/null; then
16190   if test -s conftest.err; then
16191     ac_cpp_err=$ac_cxx_preproc_warn_flag
16192     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16193   else
16194     ac_cpp_err=
16195   fi
16196 else
16197   ac_cpp_err=yes
16198 fi
16199 if test -z "$ac_cpp_err"; then
16200   # Broken: success on invalid input.
16201 continue
16202 else
16203   echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16205
16206   # Passes both tests.
16207 ac_preproc_ok=:
16208 break
16209 fi
16210 rm -f conftest.err conftest.$ac_ext
16211
16212 done
16213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16214 rm -f conftest.err conftest.$ac_ext
16215 if $ac_preproc_ok; then
16216   break
16217 fi
16218
16219     done
16220     ac_cv_prog_CXXCPP=$CXXCPP
16221
16222 fi
16223   CXXCPP=$ac_cv_prog_CXXCPP
16224 else
16225   ac_cv_prog_CXXCPP=$CXXCPP
16226 fi
16227 echo "$as_me:$LINENO: result: $CXXCPP" >&5
16228 echo "${ECHO_T}$CXXCPP" >&6
16229 ac_preproc_ok=false
16230 for ac_cxx_preproc_warn_flag in '' yes
16231 do
16232   # Use a header file that comes with gcc, so configuring glibc
16233   # with a fresh cross-compiler works.
16234   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16235   # <limits.h> exists even on freestanding compilers.
16236   # On the NeXT, cc -E runs the code through the compiler's parser,
16237   # not just through cpp. "Syntax error" is here to catch this case.
16238   cat >conftest.$ac_ext <<_ACEOF
16239 /* confdefs.h.  */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h.  */
16244 #ifdef __STDC__
16245 # include <limits.h>
16246 #else
16247 # include <assert.h>
16248 #endif
16249                      Syntax error
16250 _ACEOF
16251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16253   ac_status=$?
16254   grep -v '^ *+' conftest.er1 >conftest.err
16255   rm -f conftest.er1
16256   cat conftest.err >&5
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); } >/dev/null; then
16259   if test -s conftest.err; then
16260     ac_cpp_err=$ac_cxx_preproc_warn_flag
16261     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16262   else
16263     ac_cpp_err=
16264   fi
16265 else
16266   ac_cpp_err=yes
16267 fi
16268 if test -z "$ac_cpp_err"; then
16269   :
16270 else
16271   echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16273
16274   # Broken: fails on valid input.
16275 continue
16276 fi
16277 rm -f conftest.err conftest.$ac_ext
16278
16279   # OK, works on sane cases.  Now check whether non-existent headers
16280   # can be detected and how.
16281   cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h.  */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h.  */
16287 #include <ac_nonexistent.h>
16288 _ACEOF
16289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16291   ac_status=$?
16292   grep -v '^ *+' conftest.er1 >conftest.err
16293   rm -f conftest.er1
16294   cat conftest.err >&5
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); } >/dev/null; then
16297   if test -s conftest.err; then
16298     ac_cpp_err=$ac_cxx_preproc_warn_flag
16299     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16300   else
16301     ac_cpp_err=
16302   fi
16303 else
16304   ac_cpp_err=yes
16305 fi
16306 if test -z "$ac_cpp_err"; then
16307   # Broken: success on invalid input.
16308 continue
16309 else
16310   echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16312
16313   # Passes both tests.
16314 ac_preproc_ok=:
16315 break
16316 fi
16317 rm -f conftest.err conftest.$ac_ext
16318
16319 done
16320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16321 rm -f conftest.err conftest.$ac_ext
16322 if $ac_preproc_ok; then
16323   :
16324 else
16325   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16326 See \`config.log' for more details." >&5
16327 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16328 See \`config.log' for more details." >&2;}
16329    { (exit 1); exit 1; }; }
16330 fi
16331
16332 ac_ext=cc
16333 ac_cpp='$CXXCPP $CPPFLAGS'
16334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16337
16338
16339 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16340 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16341 if test "${ac_cv_header_stdc+set}" = set; then
16342   echo $ECHO_N "(cached) $ECHO_C" >&6
16343 else
16344   cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h.  */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h.  */
16350 #include <stdlib.h>
16351 #include <stdarg.h>
16352 #include <string.h>
16353 #include <float.h>
16354
16355 int
16356 main ()
16357 {
16358
16359   ;
16360   return 0;
16361 }
16362 _ACEOF
16363 rm -f conftest.$ac_objext
16364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16365   (eval $ac_compile) 2>conftest.er1
16366   ac_status=$?
16367   grep -v '^ *+' conftest.er1 >conftest.err
16368   rm -f conftest.er1
16369   cat conftest.err >&5
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); } &&
16372          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374   (eval $ac_try) 2>&5
16375   ac_status=$?
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); }; } &&
16378          { ac_try='test -s conftest.$ac_objext'
16379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380   (eval $ac_try) 2>&5
16381   ac_status=$?
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); }; }; then
16384   ac_cv_header_stdc=yes
16385 else
16386   echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16388
16389 ac_cv_header_stdc=no
16390 fi
16391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16392
16393 if test $ac_cv_header_stdc = yes; then
16394   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16395   cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h.  */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h.  */
16401 #include <string.h>
16402
16403 _ACEOF
16404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16405   $EGREP "memchr" >/dev/null 2>&1; then
16406   :
16407 else
16408   ac_cv_header_stdc=no
16409 fi
16410 rm -f conftest*
16411
16412 fi
16413
16414 if test $ac_cv_header_stdc = yes; then
16415   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16416   cat >conftest.$ac_ext <<_ACEOF
16417 /* confdefs.h.  */
16418 _ACEOF
16419 cat confdefs.h >>conftest.$ac_ext
16420 cat >>conftest.$ac_ext <<_ACEOF
16421 /* end confdefs.h.  */
16422 #include <stdlib.h>
16423
16424 _ACEOF
16425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16426   $EGREP "free" >/dev/null 2>&1; then
16427   :
16428 else
16429   ac_cv_header_stdc=no
16430 fi
16431 rm -f conftest*
16432
16433 fi
16434
16435 if test $ac_cv_header_stdc = yes; then
16436   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16437   if test "$cross_compiling" = yes; then
16438   :
16439 else
16440   cat >conftest.$ac_ext <<_ACEOF
16441 /* confdefs.h.  */
16442 _ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h.  */
16446 #include <ctype.h>
16447 #if ((' ' & 0x0FF) == 0x020)
16448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16450 #else
16451 # define ISLOWER(c) \
16452                    (('a' <= (c) && (c) <= 'i') \
16453                      || ('j' <= (c) && (c) <= 'r') \
16454                      || ('s' <= (c) && (c) <= 'z'))
16455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16456 #endif
16457
16458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16459 int
16460 main ()
16461 {
16462   int i;
16463   for (i = 0; i < 256; i++)
16464     if (XOR (islower (i), ISLOWER (i))
16465         || toupper (i) != TOUPPER (i))
16466       exit(2);
16467   exit (0);
16468 }
16469 _ACEOF
16470 rm -f conftest$ac_exeext
16471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16472   (eval $ac_link) 2>&5
16473   ac_status=$?
16474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477   (eval $ac_try) 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); }; }; then
16481   :
16482 else
16483   echo "$as_me: program exited with status $ac_status" >&5
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487 ( exit $ac_status )
16488 ac_cv_header_stdc=no
16489 fi
16490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16491 fi
16492 fi
16493 fi
16494 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16495 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16496 if test $ac_cv_header_stdc = yes; then
16497
16498 cat >>confdefs.h <<\_ACEOF
16499 #define STDC_HEADERS 1
16500 _ACEOF
16501
16502 fi
16503
16504 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
16515                   inttypes.h stdint.h unistd.h
16516 do
16517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16518 echo "$as_me:$LINENO: checking for $ac_header" >&5
16519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16521   echo $ECHO_N "(cached) $ECHO_C" >&6
16522 else
16523   cat >conftest.$ac_ext <<_ACEOF
16524 /* confdefs.h.  */
16525 _ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h.  */
16529 $ac_includes_default
16530
16531 #include <$ac_header>
16532 _ACEOF
16533 rm -f conftest.$ac_objext
16534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16535   (eval $ac_compile) 2>conftest.er1
16536   ac_status=$?
16537   grep -v '^ *+' conftest.er1 >conftest.err
16538   rm -f conftest.er1
16539   cat conftest.err >&5
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); } &&
16542          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544   (eval $ac_try) 2>&5
16545   ac_status=$?
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); }; } &&
16548          { ac_try='test -s conftest.$ac_objext'
16549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550   (eval $ac_try) 2>&5
16551   ac_status=$?
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); }; }; then
16554   eval "$as_ac_Header=yes"
16555 else
16556   echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559 eval "$as_ac_Header=no"
16560 fi
16561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16562 fi
16563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16566   cat >>confdefs.h <<_ACEOF
16567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16568 _ACEOF
16569
16570 fi
16571
16572 done
16573
16574
16575
16576 for ac_header in stdlib.h
16577 do
16578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16580   echo "$as_me:$LINENO: checking for $ac_header" >&5
16581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16583   echo $ECHO_N "(cached) $ECHO_C" >&6
16584 fi
16585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16587 else
16588   # Is the header compilable?
16589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16591 cat >conftest.$ac_ext <<_ACEOF
16592 /* confdefs.h.  */
16593 _ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h.  */
16597 $ac_includes_default
16598 #include <$ac_header>
16599 _ACEOF
16600 rm -f conftest.$ac_objext
16601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16602   (eval $ac_compile) 2>conftest.er1
16603   ac_status=$?
16604   grep -v '^ *+' conftest.er1 >conftest.err
16605   rm -f conftest.er1
16606   cat conftest.err >&5
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); } &&
16609          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611   (eval $ac_try) 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; } &&
16615          { ac_try='test -s conftest.$ac_objext'
16616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617   (eval $ac_try) 2>&5
16618   ac_status=$?
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); }; }; then
16621   ac_header_compiler=yes
16622 else
16623   echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16625
16626 ac_header_compiler=no
16627 fi
16628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16630 echo "${ECHO_T}$ac_header_compiler" >&6
16631
16632 # Is the header present?
16633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16635 cat >conftest.$ac_ext <<_ACEOF
16636 /* confdefs.h.  */
16637 _ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h.  */
16641 #include <$ac_header>
16642 _ACEOF
16643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16644   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16645   ac_status=$?
16646   grep -v '^ *+' conftest.er1 >conftest.err
16647   rm -f conftest.er1
16648   cat conftest.err >&5
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); } >/dev/null; then
16651   if test -s conftest.err; then
16652     ac_cpp_err=$ac_cxx_preproc_warn_flag
16653     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16654   else
16655     ac_cpp_err=
16656   fi
16657 else
16658   ac_cpp_err=yes
16659 fi
16660 if test -z "$ac_cpp_err"; then
16661   ac_header_preproc=yes
16662 else
16663   echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16665
16666   ac_header_preproc=no
16667 fi
16668 rm -f conftest.err conftest.$ac_ext
16669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16670 echo "${ECHO_T}$ac_header_preproc" >&6
16671
16672 # So?  What about this header?
16673 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16674   yes:no: )
16675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16679     ac_header_preproc=yes
16680     ;;
16681   no:yes:* )
16682     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16684     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16685 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16686     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16688     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16689 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16692     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16694     (
16695       cat <<\_ASBOX
16696 ## ----------------------------------------- ##
16697 ## Report this to wx-dev@lists.wxwidgets.org ##
16698 ## ----------------------------------------- ##
16699 _ASBOX
16700     ) |
16701       sed "s/^/$as_me: WARNING:     /" >&2
16702     ;;
16703 esac
16704 echo "$as_me:$LINENO: checking for $ac_header" >&5
16705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16709   eval "$as_ac_Header=\$ac_header_preproc"
16710 fi
16711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16713
16714 fi
16715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16716   cat >>confdefs.h <<_ACEOF
16717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16718 _ACEOF
16719
16720 fi
16721
16722 done
16723
16724
16725 for ac_header in malloc.h
16726 do
16727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16729   echo "$as_me:$LINENO: checking for $ac_header" >&5
16730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16732   echo $ECHO_N "(cached) $ECHO_C" >&6
16733 fi
16734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16736 else
16737   # Is the header compilable?
16738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16740 cat >conftest.$ac_ext <<_ACEOF
16741 /* confdefs.h.  */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h.  */
16746 $ac_includes_default
16747 #include <$ac_header>
16748 _ACEOF
16749 rm -f conftest.$ac_objext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16751   (eval $ac_compile) 2>conftest.er1
16752   ac_status=$?
16753   grep -v '^ *+' conftest.er1 >conftest.err
16754   rm -f conftest.er1
16755   cat conftest.err >&5
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); } &&
16758          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760   (eval $ac_try) 2>&5
16761   ac_status=$?
16762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); }; } &&
16764          { ac_try='test -s conftest.$ac_objext'
16765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766   (eval $ac_try) 2>&5
16767   ac_status=$?
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); }; }; then
16770   ac_header_compiler=yes
16771 else
16772   echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16774
16775 ac_header_compiler=no
16776 fi
16777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16779 echo "${ECHO_T}$ac_header_compiler" >&6
16780
16781 # Is the header present?
16782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16784 cat >conftest.$ac_ext <<_ACEOF
16785 /* confdefs.h.  */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h.  */
16790 #include <$ac_header>
16791 _ACEOF
16792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16794   ac_status=$?
16795   grep -v '^ *+' conftest.er1 >conftest.err
16796   rm -f conftest.er1
16797   cat conftest.err >&5
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); } >/dev/null; then
16800   if test -s conftest.err; then
16801     ac_cpp_err=$ac_cxx_preproc_warn_flag
16802     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16803   else
16804     ac_cpp_err=
16805   fi
16806 else
16807   ac_cpp_err=yes
16808 fi
16809 if test -z "$ac_cpp_err"; then
16810   ac_header_preproc=yes
16811 else
16812   echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815   ac_header_preproc=no
16816 fi
16817 rm -f conftest.err conftest.$ac_ext
16818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16819 echo "${ECHO_T}$ac_header_preproc" >&6
16820
16821 # So?  What about this header?
16822 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16823   yes:no: )
16824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16828     ac_header_preproc=yes
16829     ;;
16830   no:yes:* )
16831     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16833     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16834 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16835     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16837     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16838 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16841     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16843     (
16844       cat <<\_ASBOX
16845 ## ----------------------------------------- ##
16846 ## Report this to wx-dev@lists.wxwidgets.org ##
16847 ## ----------------------------------------- ##
16848 _ASBOX
16849     ) |
16850       sed "s/^/$as_me: WARNING:     /" >&2
16851     ;;
16852 esac
16853 echo "$as_me:$LINENO: checking for $ac_header" >&5
16854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16856   echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858   eval "$as_ac_Header=\$ac_header_preproc"
16859 fi
16860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16862
16863 fi
16864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16865   cat >>confdefs.h <<_ACEOF
16866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16867 _ACEOF
16868
16869 fi
16870
16871 done
16872
16873
16874 for ac_header in unistd.h
16875 do
16876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16878   echo "$as_me:$LINENO: checking for $ac_header" >&5
16879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16881   echo $ECHO_N "(cached) $ECHO_C" >&6
16882 fi
16883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16885 else
16886   # Is the header compilable?
16887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16889 cat >conftest.$ac_ext <<_ACEOF
16890 /* confdefs.h.  */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h.  */
16895 $ac_includes_default
16896 #include <$ac_header>
16897 _ACEOF
16898 rm -f conftest.$ac_objext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16900   (eval $ac_compile) 2>conftest.er1
16901   ac_status=$?
16902   grep -v '^ *+' conftest.er1 >conftest.err
16903   rm -f conftest.er1
16904   cat conftest.err >&5
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); } &&
16907          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909   (eval $ac_try) 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; } &&
16913          { ac_try='test -s conftest.$ac_objext'
16914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915   (eval $ac_try) 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); }; }; then
16919   ac_header_compiler=yes
16920 else
16921   echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16923
16924 ac_header_compiler=no
16925 fi
16926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16928 echo "${ECHO_T}$ac_header_compiler" >&6
16929
16930 # Is the header present?
16931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16933 cat >conftest.$ac_ext <<_ACEOF
16934 /* confdefs.h.  */
16935 _ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h.  */
16939 #include <$ac_header>
16940 _ACEOF
16941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16943   ac_status=$?
16944   grep -v '^ *+' conftest.er1 >conftest.err
16945   rm -f conftest.er1
16946   cat conftest.err >&5
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); } >/dev/null; then
16949   if test -s conftest.err; then
16950     ac_cpp_err=$ac_cxx_preproc_warn_flag
16951     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16952   else
16953     ac_cpp_err=
16954   fi
16955 else
16956   ac_cpp_err=yes
16957 fi
16958 if test -z "$ac_cpp_err"; then
16959   ac_header_preproc=yes
16960 else
16961   echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964   ac_header_preproc=no
16965 fi
16966 rm -f conftest.err conftest.$ac_ext
16967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16968 echo "${ECHO_T}$ac_header_preproc" >&6
16969
16970 # So?  What about this header?
16971 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16972   yes:no: )
16973     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16977     ac_header_preproc=yes
16978     ;;
16979   no:yes:* )
16980     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16982     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16983 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16984     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16986     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16987 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16990     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16992     (
16993       cat <<\_ASBOX
16994 ## ----------------------------------------- ##
16995 ## Report this to wx-dev@lists.wxwidgets.org ##
16996 ## ----------------------------------------- ##
16997 _ASBOX
16998     ) |
16999       sed "s/^/$as_me: WARNING:     /" >&2
17000     ;;
17001 esac
17002 echo "$as_me:$LINENO: checking for $ac_header" >&5
17003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17005   echo $ECHO_N "(cached) $ECHO_C" >&6
17006 else
17007   eval "$as_ac_Header=\$ac_header_preproc"
17008 fi
17009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17011
17012 fi
17013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17014   cat >>confdefs.h <<_ACEOF
17015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17016 _ACEOF
17017
17018 fi
17019
17020 done
17021
17022
17023 for ac_header in wchar.h
17024 do
17025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17027   echo "$as_me:$LINENO: checking for $ac_header" >&5
17028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17030   echo $ECHO_N "(cached) $ECHO_C" >&6
17031 fi
17032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17034 else
17035   # Is the header compilable?
17036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17038 cat >conftest.$ac_ext <<_ACEOF
17039 /* confdefs.h.  */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h.  */
17044 $ac_includes_default
17045 #include <$ac_header>
17046 _ACEOF
17047 rm -f conftest.$ac_objext
17048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17049   (eval $ac_compile) 2>conftest.er1
17050   ac_status=$?
17051   grep -v '^ *+' conftest.er1 >conftest.err
17052   rm -f conftest.er1
17053   cat conftest.err >&5
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); } &&
17056          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058   (eval $ac_try) 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; } &&
17062          { ac_try='test -s conftest.$ac_objext'
17063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064   (eval $ac_try) 2>&5
17065   ac_status=$?
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); }; }; then
17068   ac_header_compiler=yes
17069 else
17070   echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17072
17073 ac_header_compiler=no
17074 fi
17075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17077 echo "${ECHO_T}$ac_header_compiler" >&6
17078
17079 # Is the header present?
17080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17082 cat >conftest.$ac_ext <<_ACEOF
17083 /* confdefs.h.  */
17084 _ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h.  */
17088 #include <$ac_header>
17089 _ACEOF
17090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17092   ac_status=$?
17093   grep -v '^ *+' conftest.er1 >conftest.err
17094   rm -f conftest.er1
17095   cat conftest.err >&5
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); } >/dev/null; then
17098   if test -s conftest.err; then
17099     ac_cpp_err=$ac_cxx_preproc_warn_flag
17100     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17101   else
17102     ac_cpp_err=
17103   fi
17104 else
17105   ac_cpp_err=yes
17106 fi
17107 if test -z "$ac_cpp_err"; then
17108   ac_header_preproc=yes
17109 else
17110   echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17112
17113   ac_header_preproc=no
17114 fi
17115 rm -f conftest.err conftest.$ac_ext
17116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17117 echo "${ECHO_T}$ac_header_preproc" >&6
17118
17119 # So?  What about this header?
17120 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17121   yes:no: )
17122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17126     ac_header_preproc=yes
17127     ;;
17128   no:yes:* )
17129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17131     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17132 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17133     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17135     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17136 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17139     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17141     (
17142       cat <<\_ASBOX
17143 ## ----------------------------------------- ##
17144 ## Report this to wx-dev@lists.wxwidgets.org ##
17145 ## ----------------------------------------- ##
17146 _ASBOX
17147     ) |
17148       sed "s/^/$as_me: WARNING:     /" >&2
17149     ;;
17150 esac
17151 echo "$as_me:$LINENO: checking for $ac_header" >&5
17152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17154   echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156   eval "$as_ac_Header=\$ac_header_preproc"
17157 fi
17158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17160
17161 fi
17162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17163   cat >>confdefs.h <<_ACEOF
17164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17165 _ACEOF
17166
17167 fi
17168
17169 done
17170
17171
17172 if test "$ac_cv_header_wchar_h" != "yes"; then
17173
17174 for ac_header in wcstr.h
17175 do
17176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17178   echo "$as_me:$LINENO: checking for $ac_header" >&5
17179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17181   echo $ECHO_N "(cached) $ECHO_C" >&6
17182 fi
17183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17185 else
17186   # Is the header compilable?
17187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17189 cat >conftest.$ac_ext <<_ACEOF
17190 /* confdefs.h.  */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h.  */
17195 $ac_includes_default
17196 #include <$ac_header>
17197 _ACEOF
17198 rm -f conftest.$ac_objext
17199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17200   (eval $ac_compile) 2>conftest.er1
17201   ac_status=$?
17202   grep -v '^ *+' conftest.er1 >conftest.err
17203   rm -f conftest.er1
17204   cat conftest.err >&5
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); } &&
17207          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
17213          { ac_try='test -s conftest.$ac_objext'
17214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215   (eval $ac_try) 2>&5
17216   ac_status=$?
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); }; }; then
17219   ac_header_compiler=yes
17220 else
17221   echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17223
17224 ac_header_compiler=no
17225 fi
17226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17228 echo "${ECHO_T}$ac_header_compiler" >&6
17229
17230 # Is the header present?
17231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17233 cat >conftest.$ac_ext <<_ACEOF
17234 /* confdefs.h.  */
17235 _ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h.  */
17239 #include <$ac_header>
17240 _ACEOF
17241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17243   ac_status=$?
17244   grep -v '^ *+' conftest.er1 >conftest.err
17245   rm -f conftest.er1
17246   cat conftest.err >&5
17247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248   (exit $ac_status); } >/dev/null; then
17249   if test -s conftest.err; then
17250     ac_cpp_err=$ac_cxx_preproc_warn_flag
17251     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17252   else
17253     ac_cpp_err=
17254   fi
17255 else
17256   ac_cpp_err=yes
17257 fi
17258 if test -z "$ac_cpp_err"; then
17259   ac_header_preproc=yes
17260 else
17261   echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17263
17264   ac_header_preproc=no
17265 fi
17266 rm -f conftest.err conftest.$ac_ext
17267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17268 echo "${ECHO_T}$ac_header_preproc" >&6
17269
17270 # So?  What about this header?
17271 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17272   yes:no: )
17273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17277     ac_header_preproc=yes
17278     ;;
17279   no:yes:* )
17280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17292     (
17293       cat <<\_ASBOX
17294 ## ----------------------------------------- ##
17295 ## Report this to wx-dev@lists.wxwidgets.org ##
17296 ## ----------------------------------------- ##
17297 _ASBOX
17298     ) |
17299       sed "s/^/$as_me: WARNING:     /" >&2
17300     ;;
17301 esac
17302 echo "$as_me:$LINENO: checking for $ac_header" >&5
17303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17305   echo $ECHO_N "(cached) $ECHO_C" >&6
17306 else
17307   eval "$as_ac_Header=\$ac_header_preproc"
17308 fi
17309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17311
17312 fi
17313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17314   cat >>confdefs.h <<_ACEOF
17315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17316 _ACEOF
17317
17318 fi
17319
17320 done
17321
17322 fi
17323
17324
17325 for ac_header in fnmatch.h
17326 do
17327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17329   echo "$as_me:$LINENO: checking for $ac_header" >&5
17330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17332   echo $ECHO_N "(cached) $ECHO_C" >&6
17333 fi
17334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17336 else
17337   # Is the header compilable?
17338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 $ac_includes_default
17347 #include <$ac_header>
17348 _ACEOF
17349 rm -f conftest.$ac_objext
17350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17351   (eval $ac_compile) 2>conftest.er1
17352   ac_status=$?
17353   grep -v '^ *+' conftest.er1 >conftest.err
17354   rm -f conftest.er1
17355   cat conftest.err >&5
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); } &&
17358          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360   (eval $ac_try) 2>&5
17361   ac_status=$?
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); }; } &&
17364          { ac_try='test -s conftest.$ac_objext'
17365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366   (eval $ac_try) 2>&5
17367   ac_status=$?
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); }; }; then
17370   ac_header_compiler=yes
17371 else
17372   echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375 ac_header_compiler=no
17376 fi
17377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17379 echo "${ECHO_T}$ac_header_compiler" >&6
17380
17381 # Is the header present?
17382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17384 cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h.  */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h.  */
17390 #include <$ac_header>
17391 _ACEOF
17392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17394   ac_status=$?
17395   grep -v '^ *+' conftest.er1 >conftest.err
17396   rm -f conftest.er1
17397   cat conftest.err >&5
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); } >/dev/null; then
17400   if test -s conftest.err; then
17401     ac_cpp_err=$ac_cxx_preproc_warn_flag
17402     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17403   else
17404     ac_cpp_err=
17405   fi
17406 else
17407   ac_cpp_err=yes
17408 fi
17409 if test -z "$ac_cpp_err"; then
17410   ac_header_preproc=yes
17411 else
17412   echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415   ac_header_preproc=no
17416 fi
17417 rm -f conftest.err conftest.$ac_ext
17418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17419 echo "${ECHO_T}$ac_header_preproc" >&6
17420
17421 # So?  What about this header?
17422 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17423   yes:no: )
17424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17428     ac_header_preproc=yes
17429     ;;
17430   no:yes:* )
17431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17443     (
17444       cat <<\_ASBOX
17445 ## ----------------------------------------- ##
17446 ## Report this to wx-dev@lists.wxwidgets.org ##
17447 ## ----------------------------------------- ##
17448 _ASBOX
17449     ) |
17450       sed "s/^/$as_me: WARNING:     /" >&2
17451     ;;
17452 esac
17453 echo "$as_me:$LINENO: checking for $ac_header" >&5
17454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17456   echo $ECHO_N "(cached) $ECHO_C" >&6
17457 else
17458   eval "$as_ac_Header=\$ac_header_preproc"
17459 fi
17460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17462
17463 fi
17464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17465   cat >>confdefs.h <<_ACEOF
17466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17467 _ACEOF
17468
17469 fi
17470
17471 done
17472
17473
17474
17475 for ac_header in langinfo.h
17476 do
17477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17479   echo "$as_me:$LINENO: checking for $ac_header" >&5
17480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17482   echo $ECHO_N "(cached) $ECHO_C" >&6
17483 fi
17484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17486 else
17487   # Is the header compilable?
17488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17490 cat >conftest.$ac_ext <<_ACEOF
17491 /* confdefs.h.  */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h.  */
17496 $ac_includes_default
17497 #include <$ac_header>
17498 _ACEOF
17499 rm -f conftest.$ac_objext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17501   (eval $ac_compile) 2>conftest.er1
17502   ac_status=$?
17503   grep -v '^ *+' conftest.er1 >conftest.err
17504   rm -f conftest.er1
17505   cat conftest.err >&5
17506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507   (exit $ac_status); } &&
17508          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510   (eval $ac_try) 2>&5
17511   ac_status=$?
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); }; } &&
17514          { ac_try='test -s conftest.$ac_objext'
17515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516   (eval $ac_try) 2>&5
17517   ac_status=$?
17518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519   (exit $ac_status); }; }; then
17520   ac_header_compiler=yes
17521 else
17522   echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525 ac_header_compiler=no
17526 fi
17527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17529 echo "${ECHO_T}$ac_header_compiler" >&6
17530
17531 # Is the header present?
17532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17534 cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h.  */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h.  */
17540 #include <$ac_header>
17541 _ACEOF
17542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17543   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17544   ac_status=$?
17545   grep -v '^ *+' conftest.er1 >conftest.err
17546   rm -f conftest.er1
17547   cat conftest.err >&5
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); } >/dev/null; then
17550   if test -s conftest.err; then
17551     ac_cpp_err=$ac_cxx_preproc_warn_flag
17552     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17553   else
17554     ac_cpp_err=
17555   fi
17556 else
17557   ac_cpp_err=yes
17558 fi
17559 if test -z "$ac_cpp_err"; then
17560   ac_header_preproc=yes
17561 else
17562   echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17564
17565   ac_header_preproc=no
17566 fi
17567 rm -f conftest.err conftest.$ac_ext
17568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17569 echo "${ECHO_T}$ac_header_preproc" >&6
17570
17571 # So?  What about this header?
17572 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17573   yes:no: )
17574     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17578     ac_header_preproc=yes
17579     ;;
17580   no:yes:* )
17581     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17583     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17584 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17585     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17587     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17588 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17591     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17593     (
17594       cat <<\_ASBOX
17595 ## ----------------------------------------- ##
17596 ## Report this to wx-dev@lists.wxwidgets.org ##
17597 ## ----------------------------------------- ##
17598 _ASBOX
17599     ) |
17600       sed "s/^/$as_me: WARNING:     /" >&2
17601     ;;
17602 esac
17603 echo "$as_me:$LINENO: checking for $ac_header" >&5
17604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17606   echo $ECHO_N "(cached) $ECHO_C" >&6
17607 else
17608   eval "$as_ac_Header=\$ac_header_preproc"
17609 fi
17610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17612
17613 fi
17614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17615   cat >>confdefs.h <<_ACEOF
17616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17617 _ACEOF
17618
17619 fi
17620
17621 done
17622
17623
17624 case "${host}" in
17625   *-pc-os2_emx | *-pc-os2-emx )
17626                   if test $ac_cv_header_langinfo_h = "yes" \
17627                 -a \(   "$wx_cv_gccversion" = "EMX2" \
17628                      -o "$wx_cv_gccversion" = "EMX3" \
17629                      -o "$wx_cv_gccversion" = "Innotek5" \); then
17630           LIBS="$LIBS -lintl"
17631       fi
17632   ;;
17633 esac
17634
17635 if test "$USE_UNIX" = 1 ; then
17636
17637 for ac_header in sys/select.h
17638 do
17639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17641   echo "$as_me:$LINENO: checking for $ac_header" >&5
17642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17644   echo $ECHO_N "(cached) $ECHO_C" >&6
17645 fi
17646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17648 else
17649   # Is the header compilable?
17650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658 $ac_includes_default
17659 #include <$ac_header>
17660 _ACEOF
17661 rm -f conftest.$ac_objext
17662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17663   (eval $ac_compile) 2>conftest.er1
17664   ac_status=$?
17665   grep -v '^ *+' conftest.er1 >conftest.err
17666   rm -f conftest.er1
17667   cat conftest.err >&5
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); } &&
17670          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672   (eval $ac_try) 2>&5
17673   ac_status=$?
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); }; } &&
17676          { ac_try='test -s conftest.$ac_objext'
17677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678   (eval $ac_try) 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; }; then
17682   ac_header_compiler=yes
17683 else
17684   echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687 ac_header_compiler=no
17688 fi
17689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17691 echo "${ECHO_T}$ac_header_compiler" >&6
17692
17693 # Is the header present?
17694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17696 cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h.  */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h.  */
17702 #include <$ac_header>
17703 _ACEOF
17704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17706   ac_status=$?
17707   grep -v '^ *+' conftest.er1 >conftest.err
17708   rm -f conftest.er1
17709   cat conftest.err >&5
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); } >/dev/null; then
17712   if test -s conftest.err; then
17713     ac_cpp_err=$ac_cxx_preproc_warn_flag
17714     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17715   else
17716     ac_cpp_err=
17717   fi
17718 else
17719   ac_cpp_err=yes
17720 fi
17721 if test -z "$ac_cpp_err"; then
17722   ac_header_preproc=yes
17723 else
17724   echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727   ac_header_preproc=no
17728 fi
17729 rm -f conftest.err conftest.$ac_ext
17730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17731 echo "${ECHO_T}$ac_header_preproc" >&6
17732
17733 # So?  What about this header?
17734 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17735   yes:no: )
17736     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17740     ac_header_preproc=yes
17741     ;;
17742   no:yes:* )
17743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17745     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17746 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17747     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17749     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17750 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17753     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17755     (
17756       cat <<\_ASBOX
17757 ## ----------------------------------------- ##
17758 ## Report this to wx-dev@lists.wxwidgets.org ##
17759 ## ----------------------------------------- ##
17760 _ASBOX
17761     ) |
17762       sed "s/^/$as_me: WARNING:     /" >&2
17763     ;;
17764 esac
17765 echo "$as_me:$LINENO: checking for $ac_header" >&5
17766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17768   echo $ECHO_N "(cached) $ECHO_C" >&6
17769 else
17770   eval "$as_ac_Header=\$ac_header_preproc"
17771 fi
17772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17774
17775 fi
17776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17777   cat >>confdefs.h <<_ACEOF
17778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17779 _ACEOF
17780
17781 fi
17782
17783 done
17784
17785 fi
17786
17787
17788 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17789 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17790 if test "${ac_cv_c_const+set}" = set; then
17791   echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793   cat >conftest.$ac_ext <<_ACEOF
17794 /* confdefs.h.  */
17795 _ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h.  */
17799
17800 int
17801 main ()
17802 {
17803 /* FIXME: Include the comments suggested by Paul. */
17804 #ifndef __cplusplus
17805   /* Ultrix mips cc rejects this.  */
17806   typedef int charset[2];
17807   const charset x;
17808   /* SunOS 4.1.1 cc rejects this.  */
17809   char const *const *ccp;
17810   char **p;
17811   /* NEC SVR4.0.2 mips cc rejects this.  */
17812   struct point {int x, y;};
17813   static struct point const zero = {0,0};
17814   /* AIX XL C 1.02.0.0 rejects this.
17815      It does not let you subtract one const X* pointer from another in
17816      an arm of an if-expression whose if-part is not a constant
17817      expression */
17818   const char *g = "string";
17819   ccp = &g + (g ? g-g : 0);
17820   /* HPUX 7.0 cc rejects these. */
17821   ++ccp;
17822   p = (char**) ccp;
17823   ccp = (char const *const *) p;
17824   { /* SCO 3.2v4 cc rejects this.  */
17825     char *t;
17826     char const *s = 0 ? (char *) 0 : (char const *) 0;
17827
17828     *t++ = 0;
17829   }
17830   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17831     int x[] = {25, 17};
17832     const int *foo = &x[0];
17833     ++foo;
17834   }
17835   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17836     typedef const int *iptr;
17837     iptr p = 0;
17838     ++p;
17839   }
17840   { /* AIX XL C 1.02.0.0 rejects this saying
17841        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17842     struct s { int j; const int *ap[3]; };
17843     struct s *b; b->j = 5;
17844   }
17845   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17846     const int foo = 10;
17847   }
17848 #endif
17849
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 rm -f conftest.$ac_objext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17856   (eval $ac_compile) 2>conftest.er1
17857   ac_status=$?
17858   grep -v '^ *+' conftest.er1 >conftest.err
17859   rm -f conftest.er1
17860   cat conftest.err >&5
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); } &&
17863          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865   (eval $ac_try) 2>&5
17866   ac_status=$?
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); }; } &&
17869          { ac_try='test -s conftest.$ac_objext'
17870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871   (eval $ac_try) 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; }; then
17875   ac_cv_c_const=yes
17876 else
17877   echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 ac_cv_c_const=no
17881 fi
17882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17883 fi
17884 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17885 echo "${ECHO_T}$ac_cv_c_const" >&6
17886 if test $ac_cv_c_const = no; then
17887
17888 cat >>confdefs.h <<\_ACEOF
17889 #define const
17890 _ACEOF
17891
17892 fi
17893
17894 echo "$as_me:$LINENO: checking for inline" >&5
17895 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17896 if test "${ac_cv_c_inline+set}" = set; then
17897   echo $ECHO_N "(cached) $ECHO_C" >&6
17898 else
17899   ac_cv_c_inline=no
17900 for ac_kw in inline __inline__ __inline; do
17901   cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h.  */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h.  */
17907 #ifndef __cplusplus
17908 typedef int foo_t;
17909 static $ac_kw foo_t static_foo () {return 0; }
17910 $ac_kw foo_t foo () {return 0; }
17911 #endif
17912
17913 _ACEOF
17914 rm -f conftest.$ac_objext
17915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17916   (eval $ac_compile) 2>conftest.er1
17917   ac_status=$?
17918   grep -v '^ *+' conftest.er1 >conftest.err
17919   rm -f conftest.er1
17920   cat conftest.err >&5
17921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922   (exit $ac_status); } &&
17923          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925   (eval $ac_try) 2>&5
17926   ac_status=$?
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); }; } &&
17929          { ac_try='test -s conftest.$ac_objext'
17930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931   (eval $ac_try) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; }; then
17935   ac_cv_c_inline=$ac_kw; break
17936 else
17937   echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 fi
17941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17942 done
17943
17944 fi
17945 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17946 echo "${ECHO_T}$ac_cv_c_inline" >&6
17947
17948
17949 case $ac_cv_c_inline in
17950   inline | yes) ;;
17951   *)
17952     case $ac_cv_c_inline in
17953       no) ac_val=;;
17954       *) ac_val=$ac_cv_c_inline;;
17955     esac
17956     cat >>confdefs.h <<_ACEOF
17957 #ifndef __cplusplus
17958 #define inline $ac_val
17959 #endif
17960 _ACEOF
17961     ;;
17962 esac
17963
17964
17965 echo "$as_me:$LINENO: checking for char" >&5
17966 echo $ECHO_N "checking for char... $ECHO_C" >&6
17967 if test "${ac_cv_type_char+set}" = set; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970   cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h.  */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h.  */
17976 $ac_includes_default
17977 int
17978 main ()
17979 {
17980 if ((char *) 0)
17981   return 0;
17982 if (sizeof (char))
17983   return 0;
17984   ;
17985   return 0;
17986 }
17987 _ACEOF
17988 rm -f conftest.$ac_objext
17989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17990   (eval $ac_compile) 2>conftest.er1
17991   ac_status=$?
17992   grep -v '^ *+' conftest.er1 >conftest.err
17993   rm -f conftest.er1
17994   cat conftest.err >&5
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); } &&
17997          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999   (eval $ac_try) 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; } &&
18003          { ac_try='test -s conftest.$ac_objext'
18004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005   (eval $ac_try) 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; }; then
18009   ac_cv_type_char=yes
18010 else
18011   echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014 ac_cv_type_char=no
18015 fi
18016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18017 fi
18018 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18019 echo "${ECHO_T}$ac_cv_type_char" >&6
18020
18021 echo "$as_me:$LINENO: checking size of char" >&5
18022 echo $ECHO_N "checking size of char... $ECHO_C" >&6
18023 if test "${ac_cv_sizeof_char+set}" = set; then
18024   echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18026   if test "$ac_cv_type_char" = yes; then
18027   # The cast to unsigned long works around a bug in the HP C Compiler
18028   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18029   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18030   # This bug is HP SR number 8606223364.
18031   if test "$cross_compiling" = yes; then
18032   # Depending upon the size, compute the lo and hi bounds.
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h.  */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h.  */
18039 $ac_includes_default
18040 int
18041 main ()
18042 {
18043 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18044 test_array [0] = 0
18045
18046   ;
18047   return 0;
18048 }
18049 _ACEOF
18050 rm -f conftest.$ac_objext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18052   (eval $ac_compile) 2>conftest.er1
18053   ac_status=$?
18054   grep -v '^ *+' conftest.er1 >conftest.err
18055   rm -f conftest.er1
18056   cat conftest.err >&5
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); } &&
18059          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061   (eval $ac_try) 2>&5
18062   ac_status=$?
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); }; } &&
18065          { ac_try='test -s conftest.$ac_objext'
18066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067   (eval $ac_try) 2>&5
18068   ac_status=$?
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); }; }; then
18071   ac_lo=0 ac_mid=0
18072   while :; do
18073     cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h.  */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h.  */
18079 $ac_includes_default
18080 int
18081 main ()
18082 {
18083 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18084 test_array [0] = 0
18085
18086   ;
18087   return 0;
18088 }
18089 _ACEOF
18090 rm -f conftest.$ac_objext
18091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18092   (eval $ac_compile) 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } &&
18099          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101   (eval $ac_try) 2>&5
18102   ac_status=$?
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); }; } &&
18105          { ac_try='test -s conftest.$ac_objext'
18106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107   (eval $ac_try) 2>&5
18108   ac_status=$?
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); }; }; then
18111   ac_hi=$ac_mid; break
18112 else
18113   echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18115
18116 ac_lo=`expr $ac_mid + 1`
18117                     if test $ac_lo -le $ac_mid; then
18118                       ac_lo= ac_hi=
18119                       break
18120                     fi
18121                     ac_mid=`expr 2 '*' $ac_mid + 1`
18122 fi
18123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18124   done
18125 else
18126   echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18128
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h.  */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h.  */
18135 $ac_includes_default
18136 int
18137 main ()
18138 {
18139 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18140 test_array [0] = 0
18141
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest.$ac_objext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18148   (eval $ac_compile) 2>conftest.er1
18149   ac_status=$?
18150   grep -v '^ *+' conftest.er1 >conftest.err
18151   rm -f conftest.er1
18152   cat conftest.err >&5
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); } &&
18155          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157   (eval $ac_try) 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); }; } &&
18161          { ac_try='test -s conftest.$ac_objext'
18162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163   (eval $ac_try) 2>&5
18164   ac_status=$?
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); }; }; then
18167   ac_hi=-1 ac_mid=-1
18168   while :; do
18169     cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h.  */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h.  */
18175 $ac_includes_default
18176 int
18177 main ()
18178 {
18179 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18180 test_array [0] = 0
18181
18182   ;
18183   return 0;
18184 }
18185 _ACEOF
18186 rm -f conftest.$ac_objext
18187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18188   (eval $ac_compile) 2>conftest.er1
18189   ac_status=$?
18190   grep -v '^ *+' conftest.er1 >conftest.err
18191   rm -f conftest.er1
18192   cat conftest.err >&5
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); } &&
18195          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197   (eval $ac_try) 2>&5
18198   ac_status=$?
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); }; } &&
18201          { ac_try='test -s conftest.$ac_objext'
18202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203   (eval $ac_try) 2>&5
18204   ac_status=$?
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); }; }; then
18207   ac_lo=$ac_mid; break
18208 else
18209   echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18211
18212 ac_hi=`expr '(' $ac_mid ')' - 1`
18213                        if test $ac_mid -le $ac_hi; then
18214                          ac_lo= ac_hi=
18215                          break
18216                        fi
18217                        ac_mid=`expr 2 '*' $ac_mid`
18218 fi
18219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18220   done
18221 else
18222   echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18224
18225 ac_lo= ac_hi=
18226 fi
18227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18228 fi
18229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18230 # Binary search between lo and hi bounds.
18231 while test "x$ac_lo" != "x$ac_hi"; do
18232   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18233   cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h.  */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h.  */
18239 $ac_includes_default
18240 int
18241 main ()
18242 {
18243 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18244 test_array [0] = 0
18245
18246   ;
18247   return 0;
18248 }
18249 _ACEOF
18250 rm -f conftest.$ac_objext
18251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18252   (eval $ac_compile) 2>conftest.er1
18253   ac_status=$?
18254   grep -v '^ *+' conftest.er1 >conftest.err
18255   rm -f conftest.er1
18256   cat conftest.err >&5
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); } &&
18259          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261   (eval $ac_try) 2>&5
18262   ac_status=$?
18263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264   (exit $ac_status); }; } &&
18265          { ac_try='test -s conftest.$ac_objext'
18266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267   (eval $ac_try) 2>&5
18268   ac_status=$?
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); }; }; then
18271   ac_hi=$ac_mid
18272 else
18273   echo "$as_me: failed program was:" >&5
18274 sed 's/^/| /' conftest.$ac_ext >&5
18275
18276 ac_lo=`expr '(' $ac_mid ')' + 1`
18277 fi
18278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18279 done
18280 case $ac_lo in
18281 ?*) ac_cv_sizeof_char=$ac_lo;;
18282 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18283 See \`config.log' for more details." >&5
18284 echo "$as_me: error: cannot compute sizeof (char), 77
18285 See \`config.log' for more details." >&2;}
18286    { (exit 1); exit 1; }; } ;;
18287 esac
18288 else
18289   if test "$cross_compiling" = yes; then
18290   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18291 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18292    { (exit 1); exit 1; }; }
18293 else
18294   cat >conftest.$ac_ext <<_ACEOF
18295 /* confdefs.h.  */
18296 _ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h.  */
18300 $ac_includes_default
18301 long longval () { return (long) (sizeof (char)); }
18302 unsigned long ulongval () { return (long) (sizeof (char)); }
18303 #include <stdio.h>
18304 #include <stdlib.h>
18305 int
18306 main ()
18307 {
18308
18309   FILE *f = fopen ("conftest.val", "w");
18310   if (! f)
18311     exit (1);
18312   if (((long) (sizeof (char))) < 0)
18313     {
18314       long i = longval ();
18315       if (i != ((long) (sizeof (char))))
18316         exit (1);
18317       fprintf (f, "%ld\n", i);
18318     }
18319   else
18320     {
18321       unsigned long i = ulongval ();
18322       if (i != ((long) (sizeof (char))))
18323         exit (1);
18324       fprintf (f, "%lu\n", i);
18325     }
18326   exit (ferror (f) || fclose (f) != 0);
18327
18328   ;
18329   return 0;
18330 }
18331 _ACEOF
18332 rm -f conftest$ac_exeext
18333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18334   (eval $ac_link) 2>&5
18335   ac_status=$?
18336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339   (eval $ac_try) 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); }; }; then
18343   ac_cv_sizeof_char=`cat conftest.val`
18344 else
18345   echo "$as_me: program exited with status $ac_status" >&5
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18348
18349 ( exit $ac_status )
18350 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18351 See \`config.log' for more details." >&5
18352 echo "$as_me: error: cannot compute sizeof (char), 77
18353 See \`config.log' for more details." >&2;}
18354    { (exit 1); exit 1; }; }
18355 fi
18356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18357 fi
18358 fi
18359 rm -f conftest.val
18360 else
18361   ac_cv_sizeof_char=0
18362 fi
18363 fi
18364 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18365 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18366 cat >>confdefs.h <<_ACEOF
18367 #define SIZEOF_CHAR $ac_cv_sizeof_char
18368 _ACEOF
18369
18370
18371 echo "$as_me:$LINENO: checking for short" >&5
18372 echo $ECHO_N "checking for short... $ECHO_C" >&6
18373 if test "${ac_cv_type_short+set}" = set; then
18374   echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376   cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h.  */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h.  */
18382 $ac_includes_default
18383 int
18384 main ()
18385 {
18386 if ((short *) 0)
18387   return 0;
18388 if (sizeof (short))
18389   return 0;
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 rm -f conftest.$ac_objext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396   (eval $ac_compile) 2>conftest.er1
18397   ac_status=$?
18398   grep -v '^ *+' conftest.er1 >conftest.err
18399   rm -f conftest.er1
18400   cat conftest.err >&5
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); } &&
18403          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405   (eval $ac_try) 2>&5
18406   ac_status=$?
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); }; } &&
18409          { ac_try='test -s conftest.$ac_objext'
18410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411   (eval $ac_try) 2>&5
18412   ac_status=$?
18413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414   (exit $ac_status); }; }; then
18415   ac_cv_type_short=yes
18416 else
18417   echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18419
18420 ac_cv_type_short=no
18421 fi
18422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18423 fi
18424 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18425 echo "${ECHO_T}$ac_cv_type_short" >&6
18426
18427 echo "$as_me:$LINENO: checking size of short" >&5
18428 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18429 if test "${ac_cv_sizeof_short+set}" = set; then
18430   echo $ECHO_N "(cached) $ECHO_C" >&6
18431 else
18432   if test "$ac_cv_type_short" = yes; then
18433   # The cast to unsigned long works around a bug in the HP C Compiler
18434   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18435   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18436   # This bug is HP SR number 8606223364.
18437   if test "$cross_compiling" = yes; then
18438   # Depending upon the size, compute the lo and hi bounds.
18439 cat >conftest.$ac_ext <<_ACEOF
18440 /* confdefs.h.  */
18441 _ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h.  */
18445 $ac_includes_default
18446 int
18447 main ()
18448 {
18449 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18450 test_array [0] = 0
18451
18452   ;
18453   return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18458   (eval $ac_compile) 2>conftest.er1
18459   ac_status=$?
18460   grep -v '^ *+' conftest.er1 >conftest.err
18461   rm -f conftest.er1
18462   cat conftest.err >&5
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); } &&
18465          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467   (eval $ac_try) 2>&5
18468   ac_status=$?
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); }; } &&
18471          { ac_try='test -s conftest.$ac_objext'
18472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473   (eval $ac_try) 2>&5
18474   ac_status=$?
18475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); }; }; then
18477   ac_lo=0 ac_mid=0
18478   while :; do
18479     cat >conftest.$ac_ext <<_ACEOF
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485 $ac_includes_default
18486 int
18487 main ()
18488 {
18489 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18490 test_array [0] = 0
18491
18492   ;
18493   return 0;
18494 }
18495 _ACEOF
18496 rm -f conftest.$ac_objext
18497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18498   (eval $ac_compile) 2>conftest.er1
18499   ac_status=$?
18500   grep -v '^ *+' conftest.er1 >conftest.err
18501   rm -f conftest.er1
18502   cat conftest.err >&5
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); } &&
18505          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507   (eval $ac_try) 2>&5
18508   ac_status=$?
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); }; } &&
18511          { ac_try='test -s conftest.$ac_objext'
18512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513   (eval $ac_try) 2>&5
18514   ac_status=$?
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); }; }; then
18517   ac_hi=$ac_mid; break
18518 else
18519   echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18521
18522 ac_lo=`expr $ac_mid + 1`
18523                     if test $ac_lo -le $ac_mid; then
18524                       ac_lo= ac_hi=
18525                       break
18526                     fi
18527                     ac_mid=`expr 2 '*' $ac_mid + 1`
18528 fi
18529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18530   done
18531 else
18532   echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18534
18535 cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h.  */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h.  */
18541 $ac_includes_default
18542 int
18543 main ()
18544 {
18545 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18546 test_array [0] = 0
18547
18548   ;
18549   return 0;
18550 }
18551 _ACEOF
18552 rm -f conftest.$ac_objext
18553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18554   (eval $ac_compile) 2>conftest.er1
18555   ac_status=$?
18556   grep -v '^ *+' conftest.er1 >conftest.err
18557   rm -f conftest.er1
18558   cat conftest.err >&5
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); } &&
18561          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563   (eval $ac_try) 2>&5
18564   ac_status=$?
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); }; } &&
18567          { ac_try='test -s conftest.$ac_objext'
18568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569   (eval $ac_try) 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); }; }; then
18573   ac_hi=-1 ac_mid=-1
18574   while :; do
18575     cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h.  */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h.  */
18581 $ac_includes_default
18582 int
18583 main ()
18584 {
18585 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18586 test_array [0] = 0
18587
18588   ;
18589   return 0;
18590 }
18591 _ACEOF
18592 rm -f conftest.$ac_objext
18593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18594   (eval $ac_compile) 2>conftest.er1
18595   ac_status=$?
18596   grep -v '^ *+' conftest.er1 >conftest.err
18597   rm -f conftest.er1
18598   cat conftest.err >&5
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); } &&
18601          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603   (eval $ac_try) 2>&5
18604   ac_status=$?
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); }; } &&
18607          { ac_try='test -s conftest.$ac_objext'
18608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609   (eval $ac_try) 2>&5
18610   ac_status=$?
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); }; }; then
18613   ac_lo=$ac_mid; break
18614 else
18615   echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18617
18618 ac_hi=`expr '(' $ac_mid ')' - 1`
18619                        if test $ac_mid -le $ac_hi; then
18620                          ac_lo= ac_hi=
18621                          break
18622                        fi
18623                        ac_mid=`expr 2 '*' $ac_mid`
18624 fi
18625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18626   done
18627 else
18628   echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18630
18631 ac_lo= ac_hi=
18632 fi
18633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18634 fi
18635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18636 # Binary search between lo and hi bounds.
18637 while test "x$ac_lo" != "x$ac_hi"; do
18638   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18639   cat >conftest.$ac_ext <<_ACEOF
18640 /* confdefs.h.  */
18641 _ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h.  */
18645 $ac_includes_default
18646 int
18647 main ()
18648 {
18649 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18650 test_array [0] = 0
18651
18652   ;
18653   return 0;
18654 }
18655 _ACEOF
18656 rm -f conftest.$ac_objext
18657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18658   (eval $ac_compile) 2>conftest.er1
18659   ac_status=$?
18660   grep -v '^ *+' conftest.er1 >conftest.err
18661   rm -f conftest.er1
18662   cat conftest.err >&5
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); } &&
18665          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667   (eval $ac_try) 2>&5
18668   ac_status=$?
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); }; } &&
18671          { ac_try='test -s conftest.$ac_objext'
18672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673   (eval $ac_try) 2>&5
18674   ac_status=$?
18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676   (exit $ac_status); }; }; then
18677   ac_hi=$ac_mid
18678 else
18679   echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18681
18682 ac_lo=`expr '(' $ac_mid ')' + 1`
18683 fi
18684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18685 done
18686 case $ac_lo in
18687 ?*) ac_cv_sizeof_short=$ac_lo;;
18688 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18689 See \`config.log' for more details." >&5
18690 echo "$as_me: error: cannot compute sizeof (short), 77
18691 See \`config.log' for more details." >&2;}
18692    { (exit 1); exit 1; }; } ;;
18693 esac
18694 else
18695   if test "$cross_compiling" = yes; then
18696   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18697 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18698    { (exit 1); exit 1; }; }
18699 else
18700   cat >conftest.$ac_ext <<_ACEOF
18701 /* confdefs.h.  */
18702 _ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h.  */
18706 $ac_includes_default
18707 long longval () { return (long) (sizeof (short)); }
18708 unsigned long ulongval () { return (long) (sizeof (short)); }
18709 #include <stdio.h>
18710 #include <stdlib.h>
18711 int
18712 main ()
18713 {
18714
18715   FILE *f = fopen ("conftest.val", "w");
18716   if (! f)
18717     exit (1);
18718   if (((long) (sizeof (short))) < 0)
18719     {
18720       long i = longval ();
18721       if (i != ((long) (sizeof (short))))
18722         exit (1);
18723       fprintf (f, "%ld\n", i);
18724     }
18725   else
18726     {
18727       unsigned long i = ulongval ();
18728       if (i != ((long) (sizeof (short))))
18729         exit (1);
18730       fprintf (f, "%lu\n", i);
18731     }
18732   exit (ferror (f) || fclose (f) != 0);
18733
18734   ;
18735   return 0;
18736 }
18737 _ACEOF
18738 rm -f conftest$ac_exeext
18739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18740   (eval $ac_link) 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745   (eval $ac_try) 2>&5
18746   ac_status=$?
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); }; }; then
18749   ac_cv_sizeof_short=`cat conftest.val`
18750 else
18751   echo "$as_me: program exited with status $ac_status" >&5
18752 echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18754
18755 ( exit $ac_status )
18756 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18757 See \`config.log' for more details." >&5
18758 echo "$as_me: error: cannot compute sizeof (short), 77
18759 See \`config.log' for more details." >&2;}
18760    { (exit 1); exit 1; }; }
18761 fi
18762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18763 fi
18764 fi
18765 rm -f conftest.val
18766 else
18767   ac_cv_sizeof_short=0
18768 fi
18769 fi
18770 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18771 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18772 cat >>confdefs.h <<_ACEOF
18773 #define SIZEOF_SHORT $ac_cv_sizeof_short
18774 _ACEOF
18775
18776
18777 echo "$as_me:$LINENO: checking for void *" >&5
18778 echo $ECHO_N "checking for void *... $ECHO_C" >&6
18779 if test "${ac_cv_type_void_p+set}" = set; then
18780   echo $ECHO_N "(cached) $ECHO_C" >&6
18781 else
18782   cat >conftest.$ac_ext <<_ACEOF
18783 /* confdefs.h.  */
18784 _ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h.  */
18788 $ac_includes_default
18789 int
18790 main ()
18791 {
18792 if ((void * *) 0)
18793   return 0;
18794 if (sizeof (void *))
18795   return 0;
18796   ;
18797   return 0;
18798 }
18799 _ACEOF
18800 rm -f conftest.$ac_objext
18801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18802   (eval $ac_compile) 2>conftest.er1
18803   ac_status=$?
18804   grep -v '^ *+' conftest.er1 >conftest.err
18805   rm -f conftest.er1
18806   cat conftest.err >&5
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); } &&
18809          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811   (eval $ac_try) 2>&5
18812   ac_status=$?
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); }; } &&
18815          { ac_try='test -s conftest.$ac_objext'
18816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817   (eval $ac_try) 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; }; then
18821   ac_cv_type_void_p=yes
18822 else
18823   echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18825
18826 ac_cv_type_void_p=no
18827 fi
18828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18829 fi
18830 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18831 echo "${ECHO_T}$ac_cv_type_void_p" >&6
18832
18833 echo "$as_me:$LINENO: checking size of void *" >&5
18834 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18835 if test "${ac_cv_sizeof_void_p+set}" = set; then
18836   echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838   if test "$ac_cv_type_void_p" = yes; then
18839   # The cast to unsigned long works around a bug in the HP C Compiler
18840   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18841   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18842   # This bug is HP SR number 8606223364.
18843   if test "$cross_compiling" = yes; then
18844   # Depending upon the size, compute the lo and hi bounds.
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h.  */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h.  */
18851 $ac_includes_default
18852 int
18853 main ()
18854 {
18855 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18856 test_array [0] = 0
18857
18858   ;
18859   return 0;
18860 }
18861 _ACEOF
18862 rm -f conftest.$ac_objext
18863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18864   (eval $ac_compile) 2>conftest.er1
18865   ac_status=$?
18866   grep -v '^ *+' conftest.er1 >conftest.err
18867   rm -f conftest.er1
18868   cat conftest.err >&5
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); } &&
18871          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873   (eval $ac_try) 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); }; } &&
18877          { ac_try='test -s conftest.$ac_objext'
18878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879   (eval $ac_try) 2>&5
18880   ac_status=$?
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); }; }; then
18883   ac_lo=0 ac_mid=0
18884   while :; do
18885     cat >conftest.$ac_ext <<_ACEOF
18886 /* confdefs.h.  */
18887 _ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h.  */
18891 $ac_includes_default
18892 int
18893 main ()
18894 {
18895 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18896 test_array [0] = 0
18897
18898   ;
18899   return 0;
18900 }
18901 _ACEOF
18902 rm -f conftest.$ac_objext
18903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18904   (eval $ac_compile) 2>conftest.er1
18905   ac_status=$?
18906   grep -v '^ *+' conftest.er1 >conftest.err
18907   rm -f conftest.er1
18908   cat conftest.err >&5
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); } &&
18911          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913   (eval $ac_try) 2>&5
18914   ac_status=$?
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); }; } &&
18917          { ac_try='test -s conftest.$ac_objext'
18918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919   (eval $ac_try) 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; }; then
18923   ac_hi=$ac_mid; break
18924 else
18925   echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18927
18928 ac_lo=`expr $ac_mid + 1`
18929                     if test $ac_lo -le $ac_mid; then
18930                       ac_lo= ac_hi=
18931                       break
18932                     fi
18933                     ac_mid=`expr 2 '*' $ac_mid + 1`
18934 fi
18935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18936   done
18937 else
18938   echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18940
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h.  */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h.  */
18947 $ac_includes_default
18948 int
18949 main ()
18950 {
18951 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18952 test_array [0] = 0
18953
18954   ;
18955   return 0;
18956 }
18957 _ACEOF
18958 rm -f conftest.$ac_objext
18959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18960   (eval $ac_compile) 2>conftest.er1
18961   ac_status=$?
18962   grep -v '^ *+' conftest.er1 >conftest.err
18963   rm -f conftest.er1
18964   cat conftest.err >&5
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); } &&
18967          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969   (eval $ac_try) 2>&5
18970   ac_status=$?
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); }; } &&
18973          { ac_try='test -s conftest.$ac_objext'
18974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975   (eval $ac_try) 2>&5
18976   ac_status=$?
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); }; }; then
18979   ac_hi=-1 ac_mid=-1
18980   while :; do
18981     cat >conftest.$ac_ext <<_ACEOF
18982 /* confdefs.h.  */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h.  */
18987 $ac_includes_default
18988 int
18989 main ()
18990 {
18991 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18992 test_array [0] = 0
18993
18994   ;
18995   return 0;
18996 }
18997 _ACEOF
18998 rm -f conftest.$ac_objext
18999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19000   (eval $ac_compile) 2>conftest.er1
19001   ac_status=$?
19002   grep -v '^ *+' conftest.er1 >conftest.err
19003   rm -f conftest.er1
19004   cat conftest.err >&5
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); } &&
19007          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009   (eval $ac_try) 2>&5
19010   ac_status=$?
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); }; } &&
19013          { ac_try='test -s conftest.$ac_objext'
19014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015   (eval $ac_try) 2>&5
19016   ac_status=$?
19017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018   (exit $ac_status); }; }; then
19019   ac_lo=$ac_mid; break
19020 else
19021   echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19023
19024 ac_hi=`expr '(' $ac_mid ')' - 1`
19025                        if test $ac_mid -le $ac_hi; then
19026                          ac_lo= ac_hi=
19027                          break
19028                        fi
19029                        ac_mid=`expr 2 '*' $ac_mid`
19030 fi
19031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19032   done
19033 else
19034   echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19036
19037 ac_lo= ac_hi=
19038 fi
19039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19040 fi
19041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19042 # Binary search between lo and hi bounds.
19043 while test "x$ac_lo" != "x$ac_hi"; do
19044   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19045   cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h.  */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h.  */
19051 $ac_includes_default
19052 int
19053 main ()
19054 {
19055 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19056 test_array [0] = 0
19057
19058   ;
19059   return 0;
19060 }
19061 _ACEOF
19062 rm -f conftest.$ac_objext
19063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19064   (eval $ac_compile) 2>conftest.er1
19065   ac_status=$?
19066   grep -v '^ *+' conftest.er1 >conftest.err
19067   rm -f conftest.er1
19068   cat conftest.err >&5
19069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070   (exit $ac_status); } &&
19071          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073   (eval $ac_try) 2>&5
19074   ac_status=$?
19075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076   (exit $ac_status); }; } &&
19077          { ac_try='test -s conftest.$ac_objext'
19078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079   (eval $ac_try) 2>&5
19080   ac_status=$?
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); }; }; then
19083   ac_hi=$ac_mid
19084 else
19085   echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19087
19088 ac_lo=`expr '(' $ac_mid ')' + 1`
19089 fi
19090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19091 done
19092 case $ac_lo in
19093 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19094 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19095 See \`config.log' for more details." >&5
19096 echo "$as_me: error: cannot compute sizeof (void *), 77
19097 See \`config.log' for more details." >&2;}
19098    { (exit 1); exit 1; }; } ;;
19099 esac
19100 else
19101   if test "$cross_compiling" = yes; then
19102   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19103 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19104    { (exit 1); exit 1; }; }
19105 else
19106   cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h.  */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h.  */
19112 $ac_includes_default
19113 long longval () { return (long) (sizeof (void *)); }
19114 unsigned long ulongval () { return (long) (sizeof (void *)); }
19115 #include <stdio.h>
19116 #include <stdlib.h>
19117 int
19118 main ()
19119 {
19120
19121   FILE *f = fopen ("conftest.val", "w");
19122   if (! f)
19123     exit (1);
19124   if (((long) (sizeof (void *))) < 0)
19125     {
19126       long i = longval ();
19127       if (i != ((long) (sizeof (void *))))
19128         exit (1);
19129       fprintf (f, "%ld\n", i);
19130     }
19131   else
19132     {
19133       unsigned long i = ulongval ();
19134       if (i != ((long) (sizeof (void *))))
19135         exit (1);
19136       fprintf (f, "%lu\n", i);
19137     }
19138   exit (ferror (f) || fclose (f) != 0);
19139
19140   ;
19141   return 0;
19142 }
19143 _ACEOF
19144 rm -f conftest$ac_exeext
19145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19146   (eval $ac_link) 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151   (eval $ac_try) 2>&5
19152   ac_status=$?
19153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154   (exit $ac_status); }; }; then
19155   ac_cv_sizeof_void_p=`cat conftest.val`
19156 else
19157   echo "$as_me: program exited with status $ac_status" >&5
19158 echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19160
19161 ( exit $ac_status )
19162 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19163 See \`config.log' for more details." >&5
19164 echo "$as_me: error: cannot compute sizeof (void *), 77
19165 See \`config.log' for more details." >&2;}
19166    { (exit 1); exit 1; }; }
19167 fi
19168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19169 fi
19170 fi
19171 rm -f conftest.val
19172 else
19173   ac_cv_sizeof_void_p=0
19174 fi
19175 fi
19176 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19177 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19178 cat >>confdefs.h <<_ACEOF
19179 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19180 _ACEOF
19181
19182
19183 echo "$as_me:$LINENO: checking for int" >&5
19184 echo $ECHO_N "checking for int... $ECHO_C" >&6
19185 if test "${ac_cv_type_int+set}" = set; then
19186   echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188   cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h.  */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h.  */
19194 $ac_includes_default
19195 int
19196 main ()
19197 {
19198 if ((int *) 0)
19199   return 0;
19200 if (sizeof (int))
19201   return 0;
19202   ;
19203   return 0;
19204 }
19205 _ACEOF
19206 rm -f conftest.$ac_objext
19207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19208   (eval $ac_compile) 2>conftest.er1
19209   ac_status=$?
19210   grep -v '^ *+' conftest.er1 >conftest.err
19211   rm -f conftest.er1
19212   cat conftest.err >&5
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); } &&
19215          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217   (eval $ac_try) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; } &&
19221          { ac_try='test -s conftest.$ac_objext'
19222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223   (eval $ac_try) 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); }; }; then
19227   ac_cv_type_int=yes
19228 else
19229   echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232 ac_cv_type_int=no
19233 fi
19234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19235 fi
19236 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19237 echo "${ECHO_T}$ac_cv_type_int" >&6
19238
19239 echo "$as_me:$LINENO: checking size of int" >&5
19240 echo $ECHO_N "checking size of int... $ECHO_C" >&6
19241 if test "${ac_cv_sizeof_int+set}" = set; then
19242   echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244   if test "$ac_cv_type_int" = yes; then
19245   # The cast to unsigned long works around a bug in the HP C Compiler
19246   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19247   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19248   # This bug is HP SR number 8606223364.
19249   if test "$cross_compiling" = yes; then
19250   # Depending upon the size, compute the lo and hi bounds.
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h.  */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h.  */
19257 $ac_includes_default
19258 int
19259 main ()
19260 {
19261 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19262 test_array [0] = 0
19263
19264   ;
19265   return 0;
19266 }
19267 _ACEOF
19268 rm -f conftest.$ac_objext
19269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19270   (eval $ac_compile) 2>conftest.er1
19271   ac_status=$?
19272   grep -v '^ *+' conftest.er1 >conftest.err
19273   rm -f conftest.er1
19274   cat conftest.err >&5
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); } &&
19277          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279   (eval $ac_try) 2>&5
19280   ac_status=$?
19281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282   (exit $ac_status); }; } &&
19283          { ac_try='test -s conftest.$ac_objext'
19284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285   (eval $ac_try) 2>&5
19286   ac_status=$?
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); }; }; then
19289   ac_lo=0 ac_mid=0
19290   while :; do
19291     cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h.  */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h.  */
19297 $ac_includes_default
19298 int
19299 main ()
19300 {
19301 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19302 test_array [0] = 0
19303
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 rm -f conftest.$ac_objext
19309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19310   (eval $ac_compile) 2>conftest.er1
19311   ac_status=$?
19312   grep -v '^ *+' conftest.er1 >conftest.err
19313   rm -f conftest.er1
19314   cat conftest.err >&5
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); } &&
19317          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319   (eval $ac_try) 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; } &&
19323          { ac_try='test -s conftest.$ac_objext'
19324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325   (eval $ac_try) 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); }; }; then
19329   ac_hi=$ac_mid; break
19330 else
19331   echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334 ac_lo=`expr $ac_mid + 1`
19335                     if test $ac_lo -le $ac_mid; then
19336                       ac_lo= ac_hi=
19337                       break
19338                     fi
19339                     ac_mid=`expr 2 '*' $ac_mid + 1`
19340 fi
19341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19342   done
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h.  */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h.  */
19353 $ac_includes_default
19354 int
19355 main ()
19356 {
19357 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19358 test_array [0] = 0
19359
19360   ;
19361   return 0;
19362 }
19363 _ACEOF
19364 rm -f conftest.$ac_objext
19365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19366   (eval $ac_compile) 2>conftest.er1
19367   ac_status=$?
19368   grep -v '^ *+' conftest.er1 >conftest.err
19369   rm -f conftest.er1
19370   cat conftest.err >&5
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } &&
19373          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375   (eval $ac_try) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; } &&
19379          { ac_try='test -s conftest.$ac_objext'
19380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381   (eval $ac_try) 2>&5
19382   ac_status=$?
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); }; }; then
19385   ac_hi=-1 ac_mid=-1
19386   while :; do
19387     cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h.  */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h.  */
19393 $ac_includes_default
19394 int
19395 main ()
19396 {
19397 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19398 test_array [0] = 0
19399
19400   ;
19401   return 0;
19402 }
19403 _ACEOF
19404 rm -f conftest.$ac_objext
19405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19406   (eval $ac_compile) 2>conftest.er1
19407   ac_status=$?
19408   grep -v '^ *+' conftest.er1 >conftest.err
19409   rm -f conftest.er1
19410   cat conftest.err >&5
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); } &&
19413          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415   (eval $ac_try) 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); }; } &&
19419          { ac_try='test -s conftest.$ac_objext'
19420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421   (eval $ac_try) 2>&5
19422   ac_status=$?
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); }; }; then
19425   ac_lo=$ac_mid; break
19426 else
19427   echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19429
19430 ac_hi=`expr '(' $ac_mid ')' - 1`
19431                        if test $ac_mid -le $ac_hi; then
19432                          ac_lo= ac_hi=
19433                          break
19434                        fi
19435                        ac_mid=`expr 2 '*' $ac_mid`
19436 fi
19437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19438   done
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 ac_lo= ac_hi=
19444 fi
19445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19446 fi
19447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19448 # Binary search between lo and hi bounds.
19449 while test "x$ac_lo" != "x$ac_hi"; do
19450   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19451   cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h.  */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h.  */
19457 $ac_includes_default
19458 int
19459 main ()
19460 {
19461 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19462 test_array [0] = 0
19463
19464   ;
19465   return 0;
19466 }
19467 _ACEOF
19468 rm -f conftest.$ac_objext
19469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19470   (eval $ac_compile) 2>conftest.er1
19471   ac_status=$?
19472   grep -v '^ *+' conftest.er1 >conftest.err
19473   rm -f conftest.er1
19474   cat conftest.err >&5
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } &&
19477          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479   (eval $ac_try) 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); }; } &&
19483          { ac_try='test -s conftest.$ac_objext'
19484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485   (eval $ac_try) 2>&5
19486   ac_status=$?
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); }; }; then
19489   ac_hi=$ac_mid
19490 else
19491   echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494 ac_lo=`expr '(' $ac_mid ')' + 1`
19495 fi
19496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19497 done
19498 case $ac_lo in
19499 ?*) ac_cv_sizeof_int=$ac_lo;;
19500 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19501 See \`config.log' for more details." >&5
19502 echo "$as_me: error: cannot compute sizeof (int), 77
19503 See \`config.log' for more details." >&2;}
19504    { (exit 1); exit 1; }; } ;;
19505 esac
19506 else
19507   if test "$cross_compiling" = yes; then
19508   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19509 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19510    { (exit 1); exit 1; }; }
19511 else
19512   cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h.  */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h.  */
19518 $ac_includes_default
19519 long longval () { return (long) (sizeof (int)); }
19520 unsigned long ulongval () { return (long) (sizeof (int)); }
19521 #include <stdio.h>
19522 #include <stdlib.h>
19523 int
19524 main ()
19525 {
19526
19527   FILE *f = fopen ("conftest.val", "w");
19528   if (! f)
19529     exit (1);
19530   if (((long) (sizeof (int))) < 0)
19531     {
19532       long i = longval ();
19533       if (i != ((long) (sizeof (int))))
19534         exit (1);
19535       fprintf (f, "%ld\n", i);
19536     }
19537   else
19538     {
19539       unsigned long i = ulongval ();
19540       if (i != ((long) (sizeof (int))))
19541         exit (1);
19542       fprintf (f, "%lu\n", i);
19543     }
19544   exit (ferror (f) || fclose (f) != 0);
19545
19546   ;
19547   return 0;
19548 }
19549 _ACEOF
19550 rm -f conftest$ac_exeext
19551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19552   (eval $ac_link) 2>&5
19553   ac_status=$?
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557   (eval $ac_try) 2>&5
19558   ac_status=$?
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); }; }; then
19561   ac_cv_sizeof_int=`cat conftest.val`
19562 else
19563   echo "$as_me: program exited with status $ac_status" >&5
19564 echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19566
19567 ( exit $ac_status )
19568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19569 See \`config.log' for more details." >&5
19570 echo "$as_me: error: cannot compute sizeof (int), 77
19571 See \`config.log' for more details." >&2;}
19572    { (exit 1); exit 1; }; }
19573 fi
19574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19575 fi
19576 fi
19577 rm -f conftest.val
19578 else
19579   ac_cv_sizeof_int=0
19580 fi
19581 fi
19582 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19583 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19584 cat >>confdefs.h <<_ACEOF
19585 #define SIZEOF_INT $ac_cv_sizeof_int
19586 _ACEOF
19587
19588
19589 echo "$as_me:$LINENO: checking for long" >&5
19590 echo $ECHO_N "checking for long... $ECHO_C" >&6
19591 if test "${ac_cv_type_long+set}" = set; then
19592   echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594   cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600 $ac_includes_default
19601 int
19602 main ()
19603 {
19604 if ((long *) 0)
19605   return 0;
19606 if (sizeof (long))
19607   return 0;
19608   ;
19609   return 0;
19610 }
19611 _ACEOF
19612 rm -f conftest.$ac_objext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19614   (eval $ac_compile) 2>conftest.er1
19615   ac_status=$?
19616   grep -v '^ *+' conftest.er1 >conftest.err
19617   rm -f conftest.er1
19618   cat conftest.err >&5
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); } &&
19621          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623   (eval $ac_try) 2>&5
19624   ac_status=$?
19625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); }; } &&
19627          { ac_try='test -s conftest.$ac_objext'
19628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629   (eval $ac_try) 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); }; }; then
19633   ac_cv_type_long=yes
19634 else
19635   echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19637
19638 ac_cv_type_long=no
19639 fi
19640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19641 fi
19642 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19643 echo "${ECHO_T}$ac_cv_type_long" >&6
19644
19645 echo "$as_me:$LINENO: checking size of long" >&5
19646 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19647 if test "${ac_cv_sizeof_long+set}" = set; then
19648   echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650   if test "$ac_cv_type_long" = yes; then
19651   # The cast to unsigned long works around a bug in the HP C Compiler
19652   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19653   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19654   # This bug is HP SR number 8606223364.
19655   if test "$cross_compiling" = yes; then
19656   # Depending upon the size, compute the lo and hi bounds.
19657 cat >conftest.$ac_ext <<_ACEOF
19658 /* confdefs.h.  */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h.  */
19663 $ac_includes_default
19664 int
19665 main ()
19666 {
19667 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19668 test_array [0] = 0
19669
19670   ;
19671   return 0;
19672 }
19673 _ACEOF
19674 rm -f conftest.$ac_objext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19676   (eval $ac_compile) 2>conftest.er1
19677   ac_status=$?
19678   grep -v '^ *+' conftest.er1 >conftest.err
19679   rm -f conftest.er1
19680   cat conftest.err >&5
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } &&
19683          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685   (eval $ac_try) 2>&5
19686   ac_status=$?
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); }; } &&
19689          { ac_try='test -s conftest.$ac_objext'
19690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691   (eval $ac_try) 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); }; }; then
19695   ac_lo=0 ac_mid=0
19696   while :; do
19697     cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h.  */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h.  */
19703 $ac_includes_default
19704 int
19705 main ()
19706 {
19707 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19708 test_array [0] = 0
19709
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19716   (eval $ac_compile) 2>conftest.er1
19717   ac_status=$?
19718   grep -v '^ *+' conftest.er1 >conftest.err
19719   rm -f conftest.er1
19720   cat conftest.err >&5
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); } &&
19723          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725   (eval $ac_try) 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; } &&
19729          { ac_try='test -s conftest.$ac_objext'
19730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731   (eval $ac_try) 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; }; then
19735   ac_hi=$ac_mid; break
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ac_lo=`expr $ac_mid + 1`
19741                     if test $ac_lo -le $ac_mid; then
19742                       ac_lo= ac_hi=
19743                       break
19744                     fi
19745                     ac_mid=`expr 2 '*' $ac_mid + 1`
19746 fi
19747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19748   done
19749 else
19750   echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753 cat >conftest.$ac_ext <<_ACEOF
19754 /* confdefs.h.  */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h.  */
19759 $ac_includes_default
19760 int
19761 main ()
19762 {
19763 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19764 test_array [0] = 0
19765
19766   ;
19767   return 0;
19768 }
19769 _ACEOF
19770 rm -f conftest.$ac_objext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772   (eval $ac_compile) 2>conftest.er1
19773   ac_status=$?
19774   grep -v '^ *+' conftest.er1 >conftest.err
19775   rm -f conftest.er1
19776   cat conftest.err >&5
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } &&
19779          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781   (eval $ac_try) 2>&5
19782   ac_status=$?
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); }; } &&
19785          { ac_try='test -s conftest.$ac_objext'
19786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787   (eval $ac_try) 2>&5
19788   ac_status=$?
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); }; }; then
19791   ac_hi=-1 ac_mid=-1
19792   while :; do
19793     cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h.  */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h.  */
19799 $ac_includes_default
19800 int
19801 main ()
19802 {
19803 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19804 test_array [0] = 0
19805
19806   ;
19807   return 0;
19808 }
19809 _ACEOF
19810 rm -f conftest.$ac_objext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19812   (eval $ac_compile) 2>conftest.er1
19813   ac_status=$?
19814   grep -v '^ *+' conftest.er1 >conftest.err
19815   rm -f conftest.er1
19816   cat conftest.err >&5
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); } &&
19819          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821   (eval $ac_try) 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; } &&
19825          { ac_try='test -s conftest.$ac_objext'
19826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827   (eval $ac_try) 2>&5
19828   ac_status=$?
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); }; }; then
19831   ac_lo=$ac_mid; break
19832 else
19833   echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19835
19836 ac_hi=`expr '(' $ac_mid ')' - 1`
19837                        if test $ac_mid -le $ac_hi; then
19838                          ac_lo= ac_hi=
19839                          break
19840                        fi
19841                        ac_mid=`expr 2 '*' $ac_mid`
19842 fi
19843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19844   done
19845 else
19846   echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 ac_lo= ac_hi=
19850 fi
19851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19852 fi
19853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19854 # Binary search between lo and hi bounds.
19855 while test "x$ac_lo" != "x$ac_hi"; do
19856   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19857   cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h.  */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h.  */
19863 $ac_includes_default
19864 int
19865 main ()
19866 {
19867 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19868 test_array [0] = 0
19869
19870   ;
19871   return 0;
19872 }
19873 _ACEOF
19874 rm -f conftest.$ac_objext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876   (eval $ac_compile) 2>conftest.er1
19877   ac_status=$?
19878   grep -v '^ *+' conftest.er1 >conftest.err
19879   rm -f conftest.er1
19880   cat conftest.err >&5
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } &&
19883          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885   (eval $ac_try) 2>&5
19886   ac_status=$?
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); }; } &&
19889          { ac_try='test -s conftest.$ac_objext'
19890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891   (eval $ac_try) 2>&5
19892   ac_status=$?
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); }; }; then
19895   ac_hi=$ac_mid
19896 else
19897   echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19899
19900 ac_lo=`expr '(' $ac_mid ')' + 1`
19901 fi
19902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19903 done
19904 case $ac_lo in
19905 ?*) ac_cv_sizeof_long=$ac_lo;;
19906 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19907 See \`config.log' for more details." >&5
19908 echo "$as_me: error: cannot compute sizeof (long), 77
19909 See \`config.log' for more details." >&2;}
19910    { (exit 1); exit 1; }; } ;;
19911 esac
19912 else
19913   if test "$cross_compiling" = yes; then
19914   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19915 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19916    { (exit 1); exit 1; }; }
19917 else
19918   cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h.  */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h.  */
19924 $ac_includes_default
19925 long longval () { return (long) (sizeof (long)); }
19926 unsigned long ulongval () { return (long) (sizeof (long)); }
19927 #include <stdio.h>
19928 #include <stdlib.h>
19929 int
19930 main ()
19931 {
19932
19933   FILE *f = fopen ("conftest.val", "w");
19934   if (! f)
19935     exit (1);
19936   if (((long) (sizeof (long))) < 0)
19937     {
19938       long i = longval ();
19939       if (i != ((long) (sizeof (long))))
19940         exit (1);
19941       fprintf (f, "%ld\n", i);
19942     }
19943   else
19944     {
19945       unsigned long i = ulongval ();
19946       if (i != ((long) (sizeof (long))))
19947         exit (1);
19948       fprintf (f, "%lu\n", i);
19949     }
19950   exit (ferror (f) || fclose (f) != 0);
19951
19952   ;
19953   return 0;
19954 }
19955 _ACEOF
19956 rm -f conftest$ac_exeext
19957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19958   (eval $ac_link) 2>&5
19959   ac_status=$?
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963   (eval $ac_try) 2>&5
19964   ac_status=$?
19965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966   (exit $ac_status); }; }; then
19967   ac_cv_sizeof_long=`cat conftest.val`
19968 else
19969   echo "$as_me: program exited with status $ac_status" >&5
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19972
19973 ( exit $ac_status )
19974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19975 See \`config.log' for more details." >&5
19976 echo "$as_me: error: cannot compute sizeof (long), 77
19977 See \`config.log' for more details." >&2;}
19978    { (exit 1); exit 1; }; }
19979 fi
19980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19981 fi
19982 fi
19983 rm -f conftest.val
19984 else
19985   ac_cv_sizeof_long=0
19986 fi
19987 fi
19988 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19989 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19990 cat >>confdefs.h <<_ACEOF
19991 #define SIZEOF_LONG $ac_cv_sizeof_long
19992 _ACEOF
19993
19994
19995 echo "$as_me:$LINENO: checking for size_t" >&5
19996 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19997 if test "${ac_cv_type_size_t+set}" = set; then
19998   echo $ECHO_N "(cached) $ECHO_C" >&6
19999 else
20000   cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h.  */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h.  */
20006 $ac_includes_default
20007 int
20008 main ()
20009 {
20010 if ((size_t *) 0)
20011   return 0;
20012 if (sizeof (size_t))
20013   return 0;
20014   ;
20015   return 0;
20016 }
20017 _ACEOF
20018 rm -f conftest.$ac_objext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20020   (eval $ac_compile) 2>conftest.er1
20021   ac_status=$?
20022   grep -v '^ *+' conftest.er1 >conftest.err
20023   rm -f conftest.er1
20024   cat conftest.err >&5
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); } &&
20027          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029   (eval $ac_try) 2>&5
20030   ac_status=$?
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); }; } &&
20033          { ac_try='test -s conftest.$ac_objext'
20034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035   (eval $ac_try) 2>&5
20036   ac_status=$?
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); }; }; then
20039   ac_cv_type_size_t=yes
20040 else
20041   echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044 ac_cv_type_size_t=no
20045 fi
20046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20047 fi
20048 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20049 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20050
20051 echo "$as_me:$LINENO: checking size of size_t" >&5
20052 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20053 if test "${ac_cv_sizeof_size_t+set}" = set; then
20054   echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056   if test "$ac_cv_type_size_t" = yes; then
20057   # The cast to unsigned long works around a bug in the HP C Compiler
20058   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20059   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20060   # This bug is HP SR number 8606223364.
20061   if test "$cross_compiling" = yes; then
20062   # Depending upon the size, compute the lo and hi bounds.
20063 cat >conftest.$ac_ext <<_ACEOF
20064 /* confdefs.h.  */
20065 _ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h.  */
20069 $ac_includes_default
20070 int
20071 main ()
20072 {
20073 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20074 test_array [0] = 0
20075
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082   (eval $ac_compile) 2>conftest.er1
20083   ac_status=$?
20084   grep -v '^ *+' conftest.er1 >conftest.err
20085   rm -f conftest.er1
20086   cat conftest.err >&5
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); } &&
20089          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091   (eval $ac_try) 2>&5
20092   ac_status=$?
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); }; } &&
20095          { ac_try='test -s conftest.$ac_objext'
20096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097   (eval $ac_try) 2>&5
20098   ac_status=$?
20099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100   (exit $ac_status); }; }; then
20101   ac_lo=0 ac_mid=0
20102   while :; do
20103     cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h.  */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h.  */
20109 $ac_includes_default
20110 int
20111 main ()
20112 {
20113 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20114 test_array [0] = 0
20115
20116   ;
20117   return 0;
20118 }
20119 _ACEOF
20120 rm -f conftest.$ac_objext
20121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20122   (eval $ac_compile) 2>conftest.er1
20123   ac_status=$?
20124   grep -v '^ *+' conftest.er1 >conftest.err
20125   rm -f conftest.er1
20126   cat conftest.err >&5
20127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128   (exit $ac_status); } &&
20129          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131   (eval $ac_try) 2>&5
20132   ac_status=$?
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); }; } &&
20135          { ac_try='test -s conftest.$ac_objext'
20136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137   (eval $ac_try) 2>&5
20138   ac_status=$?
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); }; }; then
20141   ac_hi=$ac_mid; break
20142 else
20143   echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20145
20146 ac_lo=`expr $ac_mid + 1`
20147                     if test $ac_lo -le $ac_mid; then
20148                       ac_lo= ac_hi=
20149                       break
20150                     fi
20151                     ac_mid=`expr 2 '*' $ac_mid + 1`
20152 fi
20153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20154   done
20155 else
20156   echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20158
20159 cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h.  */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h.  */
20165 $ac_includes_default
20166 int
20167 main ()
20168 {
20169 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20170 test_array [0] = 0
20171
20172   ;
20173   return 0;
20174 }
20175 _ACEOF
20176 rm -f conftest.$ac_objext
20177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20178   (eval $ac_compile) 2>conftest.er1
20179   ac_status=$?
20180   grep -v '^ *+' conftest.er1 >conftest.err
20181   rm -f conftest.er1
20182   cat conftest.err >&5
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); } &&
20185          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187   (eval $ac_try) 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; } &&
20191          { ac_try='test -s conftest.$ac_objext'
20192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193   (eval $ac_try) 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); }; }; then
20197   ac_hi=-1 ac_mid=-1
20198   while :; do
20199     cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205 $ac_includes_default
20206 int
20207 main ()
20208 {
20209 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20210 test_array [0] = 0
20211
20212   ;
20213   return 0;
20214 }
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218   (eval $ac_compile) 2>conftest.er1
20219   ac_status=$?
20220   grep -v '^ *+' conftest.er1 >conftest.err
20221   rm -f conftest.er1
20222   cat conftest.err >&5
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); } &&
20225          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227   (eval $ac_try) 2>&5
20228   ac_status=$?
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); }; } &&
20231          { ac_try='test -s conftest.$ac_objext'
20232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233   (eval $ac_try) 2>&5
20234   ac_status=$?
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); }; }; then
20237   ac_lo=$ac_mid; break
20238 else
20239   echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20241
20242 ac_hi=`expr '(' $ac_mid ')' - 1`
20243                        if test $ac_mid -le $ac_hi; then
20244                          ac_lo= ac_hi=
20245                          break
20246                        fi
20247                        ac_mid=`expr 2 '*' $ac_mid`
20248 fi
20249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20250   done
20251 else
20252   echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255 ac_lo= ac_hi=
20256 fi
20257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20258 fi
20259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20260 # Binary search between lo and hi bounds.
20261 while test "x$ac_lo" != "x$ac_hi"; do
20262   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20263   cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h.  */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h.  */
20269 $ac_includes_default
20270 int
20271 main ()
20272 {
20273 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20274 test_array [0] = 0
20275
20276   ;
20277   return 0;
20278 }
20279 _ACEOF
20280 rm -f conftest.$ac_objext
20281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20282   (eval $ac_compile) 2>conftest.er1
20283   ac_status=$?
20284   grep -v '^ *+' conftest.er1 >conftest.err
20285   rm -f conftest.er1
20286   cat conftest.err >&5
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); } &&
20289          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291   (eval $ac_try) 2>&5
20292   ac_status=$?
20293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294   (exit $ac_status); }; } &&
20295          { ac_try='test -s conftest.$ac_objext'
20296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297   (eval $ac_try) 2>&5
20298   ac_status=$?
20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); }; }; then
20301   ac_hi=$ac_mid
20302 else
20303   echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20305
20306 ac_lo=`expr '(' $ac_mid ')' + 1`
20307 fi
20308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20309 done
20310 case $ac_lo in
20311 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20312 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20313 See \`config.log' for more details." >&5
20314 echo "$as_me: error: cannot compute sizeof (size_t), 77
20315 See \`config.log' for more details." >&2;}
20316    { (exit 1); exit 1; }; } ;;
20317 esac
20318 else
20319   if test "$cross_compiling" = yes; then
20320   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20321 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20322    { (exit 1); exit 1; }; }
20323 else
20324   cat >conftest.$ac_ext <<_ACEOF
20325 /* confdefs.h.  */
20326 _ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h.  */
20330 $ac_includes_default
20331 long longval () { return (long) (sizeof (size_t)); }
20332 unsigned long ulongval () { return (long) (sizeof (size_t)); }
20333 #include <stdio.h>
20334 #include <stdlib.h>
20335 int
20336 main ()
20337 {
20338
20339   FILE *f = fopen ("conftest.val", "w");
20340   if (! f)
20341     exit (1);
20342   if (((long) (sizeof (size_t))) < 0)
20343     {
20344       long i = longval ();
20345       if (i != ((long) (sizeof (size_t))))
20346         exit (1);
20347       fprintf (f, "%ld\n", i);
20348     }
20349   else
20350     {
20351       unsigned long i = ulongval ();
20352       if (i != ((long) (sizeof (size_t))))
20353         exit (1);
20354       fprintf (f, "%lu\n", i);
20355     }
20356   exit (ferror (f) || fclose (f) != 0);
20357
20358   ;
20359   return 0;
20360 }
20361 _ACEOF
20362 rm -f conftest$ac_exeext
20363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20364   (eval $ac_link) 2>&5
20365   ac_status=$?
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369   (eval $ac_try) 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); }; }; then
20373   ac_cv_sizeof_size_t=`cat conftest.val`
20374 else
20375   echo "$as_me: program exited with status $ac_status" >&5
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379 ( exit $ac_status )
20380 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20381 See \`config.log' for more details." >&5
20382 echo "$as_me: error: cannot compute sizeof (size_t), 77
20383 See \`config.log' for more details." >&2;}
20384    { (exit 1); exit 1; }; }
20385 fi
20386 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20387 fi
20388 fi
20389 rm -f conftest.val
20390 else
20391   ac_cv_sizeof_size_t=0
20392 fi
20393 fi
20394 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20395 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20396 cat >>confdefs.h <<_ACEOF
20397 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20398 _ACEOF
20399
20400
20401
20402 case "${host}" in
20403     arm-*-linux* )
20404         echo "$as_me:$LINENO: checking for long long" >&5
20405 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20406 if test "${ac_cv_type_long_long+set}" = set; then
20407   echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409   cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415 $ac_includes_default
20416 int
20417 main ()
20418 {
20419 if ((long long *) 0)
20420   return 0;
20421 if (sizeof (long long))
20422   return 0;
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 rm -f conftest.$ac_objext
20428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20429   (eval $ac_compile) 2>conftest.er1
20430   ac_status=$?
20431   grep -v '^ *+' conftest.er1 >conftest.err
20432   rm -f conftest.er1
20433   cat conftest.err >&5
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } &&
20436          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438   (eval $ac_try) 2>&5
20439   ac_status=$?
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); }; } &&
20442          { ac_try='test -s conftest.$ac_objext'
20443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444   (eval $ac_try) 2>&5
20445   ac_status=$?
20446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447   (exit $ac_status); }; }; then
20448   ac_cv_type_long_long=yes
20449 else
20450   echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20452
20453 ac_cv_type_long_long=no
20454 fi
20455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20456 fi
20457 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20458 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20459
20460 echo "$as_me:$LINENO: checking size of long long" >&5
20461 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20462 if test "${ac_cv_sizeof_long_long+set}" = set; then
20463   echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465   if test "$ac_cv_type_long_long" = yes; then
20466   # The cast to unsigned long works around a bug in the HP C Compiler
20467   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20468   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20469   # This bug is HP SR number 8606223364.
20470   if test "$cross_compiling" = yes; then
20471   # Depending upon the size, compute the lo and hi bounds.
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478 $ac_includes_default
20479 int
20480 main ()
20481 {
20482 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20483 test_array [0] = 0
20484
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest.$ac_objext
20490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20491   (eval $ac_compile) 2>conftest.er1
20492   ac_status=$?
20493   grep -v '^ *+' conftest.er1 >conftest.err
20494   rm -f conftest.er1
20495   cat conftest.err >&5
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); } &&
20498          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500   (eval $ac_try) 2>&5
20501   ac_status=$?
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); }; } &&
20504          { ac_try='test -s conftest.$ac_objext'
20505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506   (eval $ac_try) 2>&5
20507   ac_status=$?
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); }; }; then
20510   ac_lo=0 ac_mid=0
20511   while :; do
20512     cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h.  */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h.  */
20518 $ac_includes_default
20519 int
20520 main ()
20521 {
20522 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20523 test_array [0] = 0
20524
20525   ;
20526   return 0;
20527 }
20528 _ACEOF
20529 rm -f conftest.$ac_objext
20530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20531   (eval $ac_compile) 2>conftest.er1
20532   ac_status=$?
20533   grep -v '^ *+' conftest.er1 >conftest.err
20534   rm -f conftest.er1
20535   cat conftest.err >&5
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); } &&
20538          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540   (eval $ac_try) 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; } &&
20544          { ac_try='test -s conftest.$ac_objext'
20545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546   (eval $ac_try) 2>&5
20547   ac_status=$?
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); }; }; then
20550   ac_hi=$ac_mid; break
20551 else
20552   echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555 ac_lo=`expr $ac_mid + 1`
20556                     if test $ac_lo -le $ac_mid; then
20557                       ac_lo= ac_hi=
20558                       break
20559                     fi
20560                     ac_mid=`expr 2 '*' $ac_mid + 1`
20561 fi
20562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20563   done
20564 else
20565   echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20567
20568 cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h.  */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h.  */
20574 $ac_includes_default
20575 int
20576 main ()
20577 {
20578 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20579 test_array [0] = 0
20580
20581   ;
20582   return 0;
20583 }
20584 _ACEOF
20585 rm -f conftest.$ac_objext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20587   (eval $ac_compile) 2>conftest.er1
20588   ac_status=$?
20589   grep -v '^ *+' conftest.er1 >conftest.err
20590   rm -f conftest.er1
20591   cat conftest.err >&5
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); } &&
20594          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596   (eval $ac_try) 2>&5
20597   ac_status=$?
20598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599   (exit $ac_status); }; } &&
20600          { ac_try='test -s conftest.$ac_objext'
20601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602   (eval $ac_try) 2>&5
20603   ac_status=$?
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); }; }; then
20606   ac_hi=-1 ac_mid=-1
20607   while :; do
20608     cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h.  */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h.  */
20614 $ac_includes_default
20615 int
20616 main ()
20617 {
20618 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20619 test_array [0] = 0
20620
20621   ;
20622   return 0;
20623 }
20624 _ACEOF
20625 rm -f conftest.$ac_objext
20626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20627   (eval $ac_compile) 2>conftest.er1
20628   ac_status=$?
20629   grep -v '^ *+' conftest.er1 >conftest.err
20630   rm -f conftest.er1
20631   cat conftest.err >&5
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); } &&
20634          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636   (eval $ac_try) 2>&5
20637   ac_status=$?
20638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639   (exit $ac_status); }; } &&
20640          { ac_try='test -s conftest.$ac_objext'
20641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642   (eval $ac_try) 2>&5
20643   ac_status=$?
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); }; }; then
20646   ac_lo=$ac_mid; break
20647 else
20648   echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20650
20651 ac_hi=`expr '(' $ac_mid ')' - 1`
20652                        if test $ac_mid -le $ac_hi; then
20653                          ac_lo= ac_hi=
20654                          break
20655                        fi
20656                        ac_mid=`expr 2 '*' $ac_mid`
20657 fi
20658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20659   done
20660 else
20661   echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20663
20664 ac_lo= ac_hi=
20665 fi
20666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20667 fi
20668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20669 # Binary search between lo and hi bounds.
20670 while test "x$ac_lo" != "x$ac_hi"; do
20671   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20672   cat >conftest.$ac_ext <<_ACEOF
20673 /* confdefs.h.  */
20674 _ACEOF
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h.  */
20678 $ac_includes_default
20679 int
20680 main ()
20681 {
20682 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20683 test_array [0] = 0
20684
20685   ;
20686   return 0;
20687 }
20688 _ACEOF
20689 rm -f conftest.$ac_objext
20690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20691   (eval $ac_compile) 2>conftest.er1
20692   ac_status=$?
20693   grep -v '^ *+' conftest.er1 >conftest.err
20694   rm -f conftest.er1
20695   cat conftest.err >&5
20696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697   (exit $ac_status); } &&
20698          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700   (eval $ac_try) 2>&5
20701   ac_status=$?
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); }; } &&
20704          { ac_try='test -s conftest.$ac_objext'
20705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706   (eval $ac_try) 2>&5
20707   ac_status=$?
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); }; }; then
20710   ac_hi=$ac_mid
20711 else
20712   echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20714
20715 ac_lo=`expr '(' $ac_mid ')' + 1`
20716 fi
20717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20718 done
20719 case $ac_lo in
20720 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20721 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20722 See \`config.log' for more details." >&5
20723 echo "$as_me: error: cannot compute sizeof (long long), 77
20724 See \`config.log' for more details." >&2;}
20725    { (exit 1); exit 1; }; } ;;
20726 esac
20727 else
20728   if test "$cross_compiling" = yes; then
20729   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20730 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20731    { (exit 1); exit 1; }; }
20732 else
20733   cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h.  */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h.  */
20739 $ac_includes_default
20740 long longval () { return (long) (sizeof (long long)); }
20741 unsigned long ulongval () { return (long) (sizeof (long long)); }
20742 #include <stdio.h>
20743 #include <stdlib.h>
20744 int
20745 main ()
20746 {
20747
20748   FILE *f = fopen ("conftest.val", "w");
20749   if (! f)
20750     exit (1);
20751   if (((long) (sizeof (long long))) < 0)
20752     {
20753       long i = longval ();
20754       if (i != ((long) (sizeof (long long))))
20755         exit (1);
20756       fprintf (f, "%ld\n", i);
20757     }
20758   else
20759     {
20760       unsigned long i = ulongval ();
20761       if (i != ((long) (sizeof (long long))))
20762         exit (1);
20763       fprintf (f, "%lu\n", i);
20764     }
20765   exit (ferror (f) || fclose (f) != 0);
20766
20767   ;
20768   return 0;
20769 }
20770 _ACEOF
20771 rm -f conftest$ac_exeext
20772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20773   (eval $ac_link) 2>&5
20774   ac_status=$?
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778   (eval $ac_try) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; }; then
20782   ac_cv_sizeof_long_long=`cat conftest.val`
20783 else
20784   echo "$as_me: program exited with status $ac_status" >&5
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788 ( exit $ac_status )
20789 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20790 See \`config.log' for more details." >&5
20791 echo "$as_me: error: cannot compute sizeof (long long), 77
20792 See \`config.log' for more details." >&2;}
20793    { (exit 1); exit 1; }; }
20794 fi
20795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20796 fi
20797 fi
20798 rm -f conftest.val
20799 else
20800   ac_cv_sizeof_long_long=0
20801 fi
20802 fi
20803 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20804 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20805 cat >>confdefs.h <<_ACEOF
20806 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20807 _ACEOF
20808
20809
20810     ;;
20811     *-hp-hpux* )
20812         echo "$as_me:$LINENO: checking for long long" >&5
20813 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20814 if test "${ac_cv_type_long_long+set}" = set; then
20815   echo $ECHO_N "(cached) $ECHO_C" >&6
20816 else
20817   cat >conftest.$ac_ext <<_ACEOF
20818 /* confdefs.h.  */
20819 _ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h.  */
20823 $ac_includes_default
20824 int
20825 main ()
20826 {
20827 if ((long long *) 0)
20828   return 0;
20829 if (sizeof (long long))
20830   return 0;
20831   ;
20832   return 0;
20833 }
20834 _ACEOF
20835 rm -f conftest.$ac_objext
20836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20837   (eval $ac_compile) 2>conftest.er1
20838   ac_status=$?
20839   grep -v '^ *+' conftest.er1 >conftest.err
20840   rm -f conftest.er1
20841   cat conftest.err >&5
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); } &&
20844          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846   (eval $ac_try) 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; } &&
20850          { ac_try='test -s conftest.$ac_objext'
20851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852   (eval $ac_try) 2>&5
20853   ac_status=$?
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); }; }; then
20856   ac_cv_type_long_long=yes
20857 else
20858   echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20860
20861 ac_cv_type_long_long=no
20862 fi
20863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20864 fi
20865 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20866 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20867
20868 echo "$as_me:$LINENO: checking size of long long" >&5
20869 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20870 if test "${ac_cv_sizeof_long_long+set}" = set; then
20871   echo $ECHO_N "(cached) $ECHO_C" >&6
20872 else
20873   if test "$ac_cv_type_long_long" = yes; then
20874   # The cast to unsigned long works around a bug in the HP C Compiler
20875   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20876   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20877   # This bug is HP SR number 8606223364.
20878   if test "$cross_compiling" = yes; then
20879   # Depending upon the size, compute the lo and hi bounds.
20880 cat >conftest.$ac_ext <<_ACEOF
20881 /* confdefs.h.  */
20882 _ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h.  */
20886 $ac_includes_default
20887 int
20888 main ()
20889 {
20890 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20891 test_array [0] = 0
20892
20893   ;
20894   return 0;
20895 }
20896 _ACEOF
20897 rm -f conftest.$ac_objext
20898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20899   (eval $ac_compile) 2>conftest.er1
20900   ac_status=$?
20901   grep -v '^ *+' conftest.er1 >conftest.err
20902   rm -f conftest.er1
20903   cat conftest.err >&5
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); } &&
20906          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908   (eval $ac_try) 2>&5
20909   ac_status=$?
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); }; } &&
20912          { ac_try='test -s conftest.$ac_objext'
20913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914   (eval $ac_try) 2>&5
20915   ac_status=$?
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); }; }; then
20918   ac_lo=0 ac_mid=0
20919   while :; do
20920     cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h.  */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h.  */
20926 $ac_includes_default
20927 int
20928 main ()
20929 {
20930 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20931 test_array [0] = 0
20932
20933   ;
20934   return 0;
20935 }
20936 _ACEOF
20937 rm -f conftest.$ac_objext
20938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20939   (eval $ac_compile) 2>conftest.er1
20940   ac_status=$?
20941   grep -v '^ *+' conftest.er1 >conftest.err
20942   rm -f conftest.er1
20943   cat conftest.err >&5
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } &&
20946          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948   (eval $ac_try) 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; } &&
20952          { ac_try='test -s conftest.$ac_objext'
20953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954   (eval $ac_try) 2>&5
20955   ac_status=$?
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); }; }; then
20958   ac_hi=$ac_mid; break
20959 else
20960   echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20962
20963 ac_lo=`expr $ac_mid + 1`
20964                     if test $ac_lo -le $ac_mid; then
20965                       ac_lo= ac_hi=
20966                       break
20967                     fi
20968                     ac_mid=`expr 2 '*' $ac_mid + 1`
20969 fi
20970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20971   done
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976 cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h.  */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h.  */
20982 $ac_includes_default
20983 int
20984 main ()
20985 {
20986 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20987 test_array [0] = 0
20988
20989   ;
20990   return 0;
20991 }
20992 _ACEOF
20993 rm -f conftest.$ac_objext
20994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20995   (eval $ac_compile) 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } &&
21002          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004   (eval $ac_try) 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; } &&
21008          { ac_try='test -s conftest.$ac_objext'
21009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010   (eval $ac_try) 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; }; then
21014   ac_hi=-1 ac_mid=-1
21015   while :; do
21016     cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h.  */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h.  */
21022 $ac_includes_default
21023 int
21024 main ()
21025 {
21026 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21027 test_array [0] = 0
21028
21029   ;
21030   return 0;
21031 }
21032 _ACEOF
21033 rm -f conftest.$ac_objext
21034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21035   (eval $ac_compile) 2>conftest.er1
21036   ac_status=$?
21037   grep -v '^ *+' conftest.er1 >conftest.err
21038   rm -f conftest.er1
21039   cat conftest.err >&5
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); } &&
21042          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044   (eval $ac_try) 2>&5
21045   ac_status=$?
21046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047   (exit $ac_status); }; } &&
21048          { ac_try='test -s conftest.$ac_objext'
21049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050   (eval $ac_try) 2>&5
21051   ac_status=$?
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); }; }; then
21054   ac_lo=$ac_mid; break
21055 else
21056   echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059 ac_hi=`expr '(' $ac_mid ')' - 1`
21060                        if test $ac_mid -le $ac_hi; then
21061                          ac_lo= ac_hi=
21062                          break
21063                        fi
21064                        ac_mid=`expr 2 '*' $ac_mid`
21065 fi
21066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21067   done
21068 else
21069   echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21071
21072 ac_lo= ac_hi=
21073 fi
21074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21075 fi
21076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21077 # Binary search between lo and hi bounds.
21078 while test "x$ac_lo" != "x$ac_hi"; do
21079   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21080   cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h.  */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h.  */
21086 $ac_includes_default
21087 int
21088 main ()
21089 {
21090 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21091 test_array [0] = 0
21092
21093   ;
21094   return 0;
21095 }
21096 _ACEOF
21097 rm -f conftest.$ac_objext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21099   (eval $ac_compile) 2>conftest.er1
21100   ac_status=$?
21101   grep -v '^ *+' conftest.er1 >conftest.err
21102   rm -f conftest.er1
21103   cat conftest.err >&5
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); } &&
21106          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108   (eval $ac_try) 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); }; } &&
21112          { ac_try='test -s conftest.$ac_objext'
21113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114   (eval $ac_try) 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); }; }; then
21118   ac_hi=$ac_mid
21119 else
21120   echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21122
21123 ac_lo=`expr '(' $ac_mid ')' + 1`
21124 fi
21125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21126 done
21127 case $ac_lo in
21128 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21129 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21130 See \`config.log' for more details." >&5
21131 echo "$as_me: error: cannot compute sizeof (long long), 77
21132 See \`config.log' for more details." >&2;}
21133    { (exit 1); exit 1; }; } ;;
21134 esac
21135 else
21136   if test "$cross_compiling" = yes; then
21137   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21138 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21139    { (exit 1); exit 1; }; }
21140 else
21141   cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h.  */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h.  */
21147 $ac_includes_default
21148 long longval () { return (long) (sizeof (long long)); }
21149 unsigned long ulongval () { return (long) (sizeof (long long)); }
21150 #include <stdio.h>
21151 #include <stdlib.h>
21152 int
21153 main ()
21154 {
21155
21156   FILE *f = fopen ("conftest.val", "w");
21157   if (! f)
21158     exit (1);
21159   if (((long) (sizeof (long long))) < 0)
21160     {
21161       long i = longval ();
21162       if (i != ((long) (sizeof (long long))))
21163         exit (1);
21164       fprintf (f, "%ld\n", i);
21165     }
21166   else
21167     {
21168       unsigned long i = ulongval ();
21169       if (i != ((long) (sizeof (long long))))
21170         exit (1);
21171       fprintf (f, "%lu\n", i);
21172     }
21173   exit (ferror (f) || fclose (f) != 0);
21174
21175   ;
21176   return 0;
21177 }
21178 _ACEOF
21179 rm -f conftest$ac_exeext
21180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21181   (eval $ac_link) 2>&5
21182   ac_status=$?
21183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186   (eval $ac_try) 2>&5
21187   ac_status=$?
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); }; }; then
21190   ac_cv_sizeof_long_long=`cat conftest.val`
21191 else
21192   echo "$as_me: program exited with status $ac_status" >&5
21193 echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21195
21196 ( exit $ac_status )
21197 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21198 See \`config.log' for more details." >&5
21199 echo "$as_me: error: cannot compute sizeof (long long), 77
21200 See \`config.log' for more details." >&2;}
21201    { (exit 1); exit 1; }; }
21202 fi
21203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21204 fi
21205 fi
21206 rm -f conftest.val
21207 else
21208   ac_cv_sizeof_long_long=0
21209 fi
21210 fi
21211 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21212 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21213 cat >>confdefs.h <<_ACEOF
21214 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21215 _ACEOF
21216
21217
21218         if test "$ac_cv_sizeof_long_long" != "0"; then
21219                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
21220         fi
21221     ;;
21222     * )
21223         echo "$as_me:$LINENO: checking for long long" >&5
21224 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21225 if test "${ac_cv_type_long_long+set}" = set; then
21226   echo $ECHO_N "(cached) $ECHO_C" >&6
21227 else
21228   cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234 $ac_includes_default
21235 int
21236 main ()
21237 {
21238 if ((long long *) 0)
21239   return 0;
21240 if (sizeof (long long))
21241   return 0;
21242   ;
21243   return 0;
21244 }
21245 _ACEOF
21246 rm -f conftest.$ac_objext
21247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21248   (eval $ac_compile) 2>conftest.er1
21249   ac_status=$?
21250   grep -v '^ *+' conftest.er1 >conftest.err
21251   rm -f conftest.er1
21252   cat conftest.err >&5
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); } &&
21255          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257   (eval $ac_try) 2>&5
21258   ac_status=$?
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); }; } &&
21261          { ac_try='test -s conftest.$ac_objext'
21262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263   (eval $ac_try) 2>&5
21264   ac_status=$?
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); }; }; then
21267   ac_cv_type_long_long=yes
21268 else
21269   echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272 ac_cv_type_long_long=no
21273 fi
21274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21275 fi
21276 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21277 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21278
21279 echo "$as_me:$LINENO: checking size of long long" >&5
21280 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21281 if test "${ac_cv_sizeof_long_long+set}" = set; then
21282   echo $ECHO_N "(cached) $ECHO_C" >&6
21283 else
21284   if test "$ac_cv_type_long_long" = yes; then
21285   # The cast to unsigned long works around a bug in the HP C Compiler
21286   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21287   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21288   # This bug is HP SR number 8606223364.
21289   if test "$cross_compiling" = yes; then
21290   # Depending upon the size, compute the lo and hi bounds.
21291 cat >conftest.$ac_ext <<_ACEOF
21292 /* confdefs.h.  */
21293 _ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h.  */
21297 $ac_includes_default
21298 int
21299 main ()
21300 {
21301 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21302 test_array [0] = 0
21303
21304   ;
21305   return 0;
21306 }
21307 _ACEOF
21308 rm -f conftest.$ac_objext
21309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21310   (eval $ac_compile) 2>conftest.er1
21311   ac_status=$?
21312   grep -v '^ *+' conftest.er1 >conftest.err
21313   rm -f conftest.er1
21314   cat conftest.err >&5
21315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316   (exit $ac_status); } &&
21317          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
21323          { ac_try='test -s conftest.$ac_objext'
21324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325   (eval $ac_try) 2>&5
21326   ac_status=$?
21327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328   (exit $ac_status); }; }; then
21329   ac_lo=0 ac_mid=0
21330   while :; do
21331     cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h.  */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h.  */
21337 $ac_includes_default
21338 int
21339 main ()
21340 {
21341 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21342 test_array [0] = 0
21343
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest.$ac_objext
21349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21350   (eval $ac_compile) 2>conftest.er1
21351   ac_status=$?
21352   grep -v '^ *+' conftest.er1 >conftest.err
21353   rm -f conftest.er1
21354   cat conftest.err >&5
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } &&
21357          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359   (eval $ac_try) 2>&5
21360   ac_status=$?
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); }; } &&
21363          { ac_try='test -s conftest.$ac_objext'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   ac_hi=$ac_mid; break
21370 else
21371   echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 ac_lo=`expr $ac_mid + 1`
21375                     if test $ac_lo -le $ac_mid; then
21376                       ac_lo= ac_hi=
21377                       break
21378                     fi
21379                     ac_mid=`expr 2 '*' $ac_mid + 1`
21380 fi
21381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21382   done
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393 $ac_includes_default
21394 int
21395 main ()
21396 {
21397 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21398 test_array [0] = 0
21399
21400   ;
21401   return 0;
21402 }
21403 _ACEOF
21404 rm -f conftest.$ac_objext
21405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21406   (eval $ac_compile) 2>conftest.er1
21407   ac_status=$?
21408   grep -v '^ *+' conftest.er1 >conftest.err
21409   rm -f conftest.er1
21410   cat conftest.err >&5
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); } &&
21413          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415   (eval $ac_try) 2>&5
21416   ac_status=$?
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); }; } &&
21419          { ac_try='test -s conftest.$ac_objext'
21420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421   (eval $ac_try) 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); }; }; then
21425   ac_hi=-1 ac_mid=-1
21426   while :; do
21427     cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h.  */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h.  */
21433 $ac_includes_default
21434 int
21435 main ()
21436 {
21437 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21438 test_array [0] = 0
21439
21440   ;
21441   return 0;
21442 }
21443 _ACEOF
21444 rm -f conftest.$ac_objext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21446   (eval $ac_compile) 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } &&
21453          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455   (eval $ac_try) 2>&5
21456   ac_status=$?
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); }; } &&
21459          { ac_try='test -s conftest.$ac_objext'
21460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461   (eval $ac_try) 2>&5
21462   ac_status=$?
21463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); }; }; then
21465   ac_lo=$ac_mid; break
21466 else
21467   echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470 ac_hi=`expr '(' $ac_mid ')' - 1`
21471                        if test $ac_mid -le $ac_hi; then
21472                          ac_lo= ac_hi=
21473                          break
21474                        fi
21475                        ac_mid=`expr 2 '*' $ac_mid`
21476 fi
21477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21478   done
21479 else
21480   echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21482
21483 ac_lo= ac_hi=
21484 fi
21485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21486 fi
21487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21488 # Binary search between lo and hi bounds.
21489 while test "x$ac_lo" != "x$ac_hi"; do
21490   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21491   cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497 $ac_includes_default
21498 int
21499 main ()
21500 {
21501 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21502 test_array [0] = 0
21503
21504   ;
21505   return 0;
21506 }
21507 _ACEOF
21508 rm -f conftest.$ac_objext
21509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21510   (eval $ac_compile) 2>conftest.er1
21511   ac_status=$?
21512   grep -v '^ *+' conftest.er1 >conftest.err
21513   rm -f conftest.er1
21514   cat conftest.err >&5
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); } &&
21517          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519   (eval $ac_try) 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); }; } &&
21523          { ac_try='test -s conftest.$ac_objext'
21524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525   (eval $ac_try) 2>&5
21526   ac_status=$?
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); }; }; then
21529   ac_hi=$ac_mid
21530 else
21531   echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21533
21534 ac_lo=`expr '(' $ac_mid ')' + 1`
21535 fi
21536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21537 done
21538 case $ac_lo in
21539 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21540 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21541 See \`config.log' for more details." >&5
21542 echo "$as_me: error: cannot compute sizeof (long long), 77
21543 See \`config.log' for more details." >&2;}
21544    { (exit 1); exit 1; }; } ;;
21545 esac
21546 else
21547   if test "$cross_compiling" = yes; then
21548   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21549 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21550    { (exit 1); exit 1; }; }
21551 else
21552   cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h.  */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h.  */
21558 $ac_includes_default
21559 long longval () { return (long) (sizeof (long long)); }
21560 unsigned long ulongval () { return (long) (sizeof (long long)); }
21561 #include <stdio.h>
21562 #include <stdlib.h>
21563 int
21564 main ()
21565 {
21566
21567   FILE *f = fopen ("conftest.val", "w");
21568   if (! f)
21569     exit (1);
21570   if (((long) (sizeof (long long))) < 0)
21571     {
21572       long i = longval ();
21573       if (i != ((long) (sizeof (long long))))
21574         exit (1);
21575       fprintf (f, "%ld\n", i);
21576     }
21577   else
21578     {
21579       unsigned long i = ulongval ();
21580       if (i != ((long) (sizeof (long long))))
21581         exit (1);
21582       fprintf (f, "%lu\n", i);
21583     }
21584   exit (ferror (f) || fclose (f) != 0);
21585
21586   ;
21587   return 0;
21588 }
21589 _ACEOF
21590 rm -f conftest$ac_exeext
21591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21592   (eval $ac_link) 2>&5
21593   ac_status=$?
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597   (eval $ac_try) 2>&5
21598   ac_status=$?
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); }; }; then
21601   ac_cv_sizeof_long_long=`cat conftest.val`
21602 else
21603   echo "$as_me: program exited with status $ac_status" >&5
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21606
21607 ( exit $ac_status )
21608 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21609 See \`config.log' for more details." >&5
21610 echo "$as_me: error: cannot compute sizeof (long long), 77
21611 See \`config.log' for more details." >&2;}
21612    { (exit 1); exit 1; }; }
21613 fi
21614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21615 fi
21616 fi
21617 rm -f conftest.val
21618 else
21619   ac_cv_sizeof_long_long=0
21620 fi
21621 fi
21622 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21623 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21624 cat >>confdefs.h <<_ACEOF
21625 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21626 _ACEOF
21627
21628
21629 esac
21630
21631 echo "$as_me:$LINENO: checking for wchar_t" >&5
21632 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21633 if test "${ac_cv_type_wchar_t+set}" = set; then
21634   echo $ECHO_N "(cached) $ECHO_C" >&6
21635 else
21636   cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h.  */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h.  */
21642
21643         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21644         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21645         #  error "fake wchar_t"
21646         #endif
21647         #ifdef HAVE_WCHAR_H
21648         #  ifdef __CYGWIN__
21649         #    include <stddef.h>
21650         #  endif
21651         #  include <wchar.h>
21652         #endif
21653         #ifdef HAVE_STDLIB_H
21654         #  include <stdlib.h>
21655         #endif
21656         #include <stdio.h>
21657
21658
21659
21660 int
21661 main ()
21662 {
21663 if ((wchar_t *) 0)
21664   return 0;
21665 if (sizeof (wchar_t))
21666   return 0;
21667   ;
21668   return 0;
21669 }
21670 _ACEOF
21671 rm -f conftest.$ac_objext
21672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21673   (eval $ac_compile) 2>conftest.er1
21674   ac_status=$?
21675   grep -v '^ *+' conftest.er1 >conftest.err
21676   rm -f conftest.er1
21677   cat conftest.err >&5
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); } &&
21680          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682   (eval $ac_try) 2>&5
21683   ac_status=$?
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); }; } &&
21686          { ac_try='test -s conftest.$ac_objext'
21687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); }; }; then
21692   ac_cv_type_wchar_t=yes
21693 else
21694   echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697 ac_cv_type_wchar_t=no
21698 fi
21699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21700 fi
21701 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21702 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21703
21704 echo "$as_me:$LINENO: checking size of wchar_t" >&5
21705 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21706 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21707   echo $ECHO_N "(cached) $ECHO_C" >&6
21708 else
21709   if test "$ac_cv_type_wchar_t" = yes; then
21710   # The cast to unsigned long works around a bug in the HP C Compiler
21711   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21712   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21713   # This bug is HP SR number 8606223364.
21714   if test "$cross_compiling" = yes; then
21715   # Depending upon the size, compute the lo and hi bounds.
21716 cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h.  */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h.  */
21722
21723         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21724         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21725         #  error "fake wchar_t"
21726         #endif
21727         #ifdef HAVE_WCHAR_H
21728         #  ifdef __CYGWIN__
21729         #    include <stddef.h>
21730         #  endif
21731         #  include <wchar.h>
21732         #endif
21733         #ifdef HAVE_STDLIB_H
21734         #  include <stdlib.h>
21735         #endif
21736         #include <stdio.h>
21737
21738
21739
21740 int
21741 main ()
21742 {
21743 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21744 test_array [0] = 0
21745
21746   ;
21747   return 0;
21748 }
21749 _ACEOF
21750 rm -f conftest.$ac_objext
21751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21752   (eval $ac_compile) 2>conftest.er1
21753   ac_status=$?
21754   grep -v '^ *+' conftest.er1 >conftest.err
21755   rm -f conftest.er1
21756   cat conftest.err >&5
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); } &&
21759          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761   (eval $ac_try) 2>&5
21762   ac_status=$?
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); }; } &&
21765          { ac_try='test -s conftest.$ac_objext'
21766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767   (eval $ac_try) 2>&5
21768   ac_status=$?
21769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770   (exit $ac_status); }; }; then
21771   ac_lo=0 ac_mid=0
21772   while :; do
21773     cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h.  */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h.  */
21779
21780         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21781         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21782         #  error "fake wchar_t"
21783         #endif
21784         #ifdef HAVE_WCHAR_H
21785         #  ifdef __CYGWIN__
21786         #    include <stddef.h>
21787         #  endif
21788         #  include <wchar.h>
21789         #endif
21790         #ifdef HAVE_STDLIB_H
21791         #  include <stdlib.h>
21792         #endif
21793         #include <stdio.h>
21794
21795
21796
21797 int
21798 main ()
21799 {
21800 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21801 test_array [0] = 0
21802
21803   ;
21804   return 0;
21805 }
21806 _ACEOF
21807 rm -f conftest.$ac_objext
21808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21809   (eval $ac_compile) 2>conftest.er1
21810   ac_status=$?
21811   grep -v '^ *+' conftest.er1 >conftest.err
21812   rm -f conftest.er1
21813   cat conftest.err >&5
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); } &&
21816          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818   (eval $ac_try) 2>&5
21819   ac_status=$?
21820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821   (exit $ac_status); }; } &&
21822          { ac_try='test -s conftest.$ac_objext'
21823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824   (eval $ac_try) 2>&5
21825   ac_status=$?
21826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); }; }; then
21828   ac_hi=$ac_mid; break
21829 else
21830   echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21832
21833 ac_lo=`expr $ac_mid + 1`
21834                     if test $ac_lo -le $ac_mid; then
21835                       ac_lo= ac_hi=
21836                       break
21837                     fi
21838                     ac_mid=`expr 2 '*' $ac_mid + 1`
21839 fi
21840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21841   done
21842 else
21843   echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21845
21846 cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h.  */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h.  */
21852
21853         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21854         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21855         #  error "fake wchar_t"
21856         #endif
21857         #ifdef HAVE_WCHAR_H
21858         #  ifdef __CYGWIN__
21859         #    include <stddef.h>
21860         #  endif
21861         #  include <wchar.h>
21862         #endif
21863         #ifdef HAVE_STDLIB_H
21864         #  include <stdlib.h>
21865         #endif
21866         #include <stdio.h>
21867
21868
21869
21870 int
21871 main ()
21872 {
21873 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21874 test_array [0] = 0
21875
21876   ;
21877   return 0;
21878 }
21879 _ACEOF
21880 rm -f conftest.$ac_objext
21881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21882   (eval $ac_compile) 2>conftest.er1
21883   ac_status=$?
21884   grep -v '^ *+' conftest.er1 >conftest.err
21885   rm -f conftest.er1
21886   cat conftest.err >&5
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); } &&
21889          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891   (eval $ac_try) 2>&5
21892   ac_status=$?
21893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894   (exit $ac_status); }; } &&
21895          { ac_try='test -s conftest.$ac_objext'
21896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897   (eval $ac_try) 2>&5
21898   ac_status=$?
21899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); }; }; then
21901   ac_hi=-1 ac_mid=-1
21902   while :; do
21903     cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h.  */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h.  */
21909
21910         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21911         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21912         #  error "fake wchar_t"
21913         #endif
21914         #ifdef HAVE_WCHAR_H
21915         #  ifdef __CYGWIN__
21916         #    include <stddef.h>
21917         #  endif
21918         #  include <wchar.h>
21919         #endif
21920         #ifdef HAVE_STDLIB_H
21921         #  include <stdlib.h>
21922         #endif
21923         #include <stdio.h>
21924
21925
21926
21927 int
21928 main ()
21929 {
21930 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21931 test_array [0] = 0
21932
21933   ;
21934   return 0;
21935 }
21936 _ACEOF
21937 rm -f conftest.$ac_objext
21938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21939   (eval $ac_compile) 2>conftest.er1
21940   ac_status=$?
21941   grep -v '^ *+' conftest.er1 >conftest.err
21942   rm -f conftest.er1
21943   cat conftest.err >&5
21944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945   (exit $ac_status); } &&
21946          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948   (eval $ac_try) 2>&5
21949   ac_status=$?
21950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951   (exit $ac_status); }; } &&
21952          { ac_try='test -s conftest.$ac_objext'
21953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954   (eval $ac_try) 2>&5
21955   ac_status=$?
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); }; }; then
21958   ac_lo=$ac_mid; break
21959 else
21960   echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21962
21963 ac_hi=`expr '(' $ac_mid ')' - 1`
21964                        if test $ac_mid -le $ac_hi; then
21965                          ac_lo= ac_hi=
21966                          break
21967                        fi
21968                        ac_mid=`expr 2 '*' $ac_mid`
21969 fi
21970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21971   done
21972 else
21973   echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21975
21976 ac_lo= ac_hi=
21977 fi
21978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21979 fi
21980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21981 # Binary search between lo and hi bounds.
21982 while test "x$ac_lo" != "x$ac_hi"; do
21983   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21984   cat >conftest.$ac_ext <<_ACEOF
21985 /* confdefs.h.  */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h.  */
21990
21991         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21992         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21993         #  error "fake wchar_t"
21994         #endif
21995         #ifdef HAVE_WCHAR_H
21996         #  ifdef __CYGWIN__
21997         #    include <stddef.h>
21998         #  endif
21999         #  include <wchar.h>
22000         #endif
22001         #ifdef HAVE_STDLIB_H
22002         #  include <stdlib.h>
22003         #endif
22004         #include <stdio.h>
22005
22006
22007
22008 int
22009 main ()
22010 {
22011 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22012 test_array [0] = 0
22013
22014   ;
22015   return 0;
22016 }
22017 _ACEOF
22018 rm -f conftest.$ac_objext
22019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22020   (eval $ac_compile) 2>conftest.er1
22021   ac_status=$?
22022   grep -v '^ *+' conftest.er1 >conftest.err
22023   rm -f conftest.er1
22024   cat conftest.err >&5
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } &&
22027          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029   (eval $ac_try) 2>&5
22030   ac_status=$?
22031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032   (exit $ac_status); }; } &&
22033          { ac_try='test -s conftest.$ac_objext'
22034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22035   (eval $ac_try) 2>&5
22036   ac_status=$?
22037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038   (exit $ac_status); }; }; then
22039   ac_hi=$ac_mid
22040 else
22041   echo "$as_me: failed program was:" >&5
22042 sed 's/^/| /' conftest.$ac_ext >&5
22043
22044 ac_lo=`expr '(' $ac_mid ')' + 1`
22045 fi
22046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22047 done
22048 case $ac_lo in
22049 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22050 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22051 See \`config.log' for more details." >&5
22052 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22053 See \`config.log' for more details." >&2;}
22054    { (exit 1); exit 1; }; } ;;
22055 esac
22056 else
22057   if test "$cross_compiling" = yes; then
22058   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22059 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22060    { (exit 1); exit 1; }; }
22061 else
22062   cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h.  */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h.  */
22068
22069         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22070         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22071         #  error "fake wchar_t"
22072         #endif
22073         #ifdef HAVE_WCHAR_H
22074         #  ifdef __CYGWIN__
22075         #    include <stddef.h>
22076         #  endif
22077         #  include <wchar.h>
22078         #endif
22079         #ifdef HAVE_STDLIB_H
22080         #  include <stdlib.h>
22081         #endif
22082         #include <stdio.h>
22083
22084
22085
22086 long longval () { return (long) (sizeof (wchar_t)); }
22087 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22088 #include <stdio.h>
22089 #include <stdlib.h>
22090 int
22091 main ()
22092 {
22093
22094   FILE *f = fopen ("conftest.val", "w");
22095   if (! f)
22096     exit (1);
22097   if (((long) (sizeof (wchar_t))) < 0)
22098     {
22099       long i = longval ();
22100       if (i != ((long) (sizeof (wchar_t))))
22101         exit (1);
22102       fprintf (f, "%ld\n", i);
22103     }
22104   else
22105     {
22106       unsigned long i = ulongval ();
22107       if (i != ((long) (sizeof (wchar_t))))
22108         exit (1);
22109       fprintf (f, "%lu\n", i);
22110     }
22111   exit (ferror (f) || fclose (f) != 0);
22112
22113   ;
22114   return 0;
22115 }
22116 _ACEOF
22117 rm -f conftest$ac_exeext
22118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22119   (eval $ac_link) 2>&5
22120   ac_status=$?
22121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124   (eval $ac_try) 2>&5
22125   ac_status=$?
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); }; }; then
22128   ac_cv_sizeof_wchar_t=`cat conftest.val`
22129 else
22130   echo "$as_me: program exited with status $ac_status" >&5
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22133
22134 ( exit $ac_status )
22135 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22136 See \`config.log' for more details." >&5
22137 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22138 See \`config.log' for more details." >&2;}
22139    { (exit 1); exit 1; }; }
22140 fi
22141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22142 fi
22143 fi
22144 rm -f conftest.val
22145 else
22146   ac_cv_sizeof_wchar_t=0
22147 fi
22148 fi
22149 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22150 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
22151 cat >>confdefs.h <<_ACEOF
22152 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22153 _ACEOF
22154
22155
22156 if test "$ac_cv_sizeof_wchar_t" != "0"; then
22157     wxUSE_WCHAR_T=yes
22158 else
22159     wxUSE_WCHAR_T=no
22160 fi
22161
22162 echo "$as_me:$LINENO: checking for va_copy" >&5
22163 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22164 if test "${wx_cv_func_va_copy+set}" = set; then
22165   echo $ECHO_N "(cached) $ECHO_C" >&6
22166 else
22167
22168         cat >conftest.$ac_ext <<_ACEOF
22169
22170             #include <stdarg.h>
22171             void foo(char *f, ...)
22172             {
22173                 va_list ap1, ap2;
22174                 va_start(ap1, f);
22175                 va_copy(ap2, ap1);
22176                 va_end(ap2);
22177                 va_end(ap1);
22178             }
22179             int main()
22180             {
22181                 foo("hi", 17);
22182                 return 0;
22183             }
22184 _ACEOF
22185 rm -f conftest.$ac_objext conftest$ac_exeext
22186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22187   (eval $ac_link) 2>conftest.er1
22188   ac_status=$?
22189   grep -v '^ *+' conftest.er1 >conftest.err
22190   rm -f conftest.er1
22191   cat conftest.err >&5
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); } &&
22194          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196   (eval $ac_try) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); }; } &&
22200          { ac_try='test -s conftest$ac_exeext'
22201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202   (eval $ac_try) 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); }; }; then
22206   wx_cv_func_va_copy=yes
22207 else
22208   echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 wx_cv_func_va_copy=no
22212
22213 fi
22214 rm -f conftest.err conftest.$ac_objext \
22215       conftest$ac_exeext conftest.$ac_ext
22216
22217
22218 fi
22219 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22220 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22221
22222 if test $wx_cv_func_va_copy = "yes"; then
22223     cat >>confdefs.h <<\_ACEOF
22224 #define HAVE_VA_COPY 1
22225 _ACEOF
22226
22227 else
22228         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22229 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22230 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22231   echo $ECHO_N "(cached) $ECHO_C" >&6
22232 else
22233
22234             if test "$cross_compiling" = yes; then
22235                   wx_cv_type_va_list_lvalue=yes
22236
22237 else
22238   cat >conftest.$ac_ext <<_ACEOF
22239
22240                 #include <stdarg.h>
22241                 int foo(char *f, ...)
22242                 {
22243                     va_list ap1, ap2;
22244                     va_start(ap1, f);
22245                     ap2 = ap1;
22246                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22247                         return 1;
22248                     va_end(ap2);
22249                     va_end(ap1);
22250                     return 0;
22251                 }
22252                 int main()
22253                 {
22254                     return foo("hi", 17);
22255                 }
22256 _ACEOF
22257 rm -f conftest$ac_exeext
22258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22259   (eval $ac_link) 2>&5
22260   ac_status=$?
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264   (eval $ac_try) 2>&5
22265   ac_status=$?
22266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267   (exit $ac_status); }; }; then
22268   wx_cv_type_va_list_lvalue=yes
22269 else
22270   echo "$as_me: program exited with status $ac_status" >&5
22271 echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22273
22274 ( exit $ac_status )
22275 wx_cv_type_va_list_lvalue=no
22276 fi
22277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22278 fi
22279
22280
22281 fi
22282 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22283 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22284
22285     if test $wx_cv_type_va_list_lvalue != "yes"; then
22286                         cat >>confdefs.h <<\_ACEOF
22287 #define VA_LIST_IS_ARRAY 1
22288 _ACEOF
22289
22290     fi
22291 fi
22292
22293 echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22294 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22295 if test "${wx_cv_have_variadic_macros+set}" = set; then
22296   echo $ECHO_N "(cached) $ECHO_C" >&6
22297 else
22298
22299         cat >conftest.$ac_ext <<_ACEOF
22300 /* confdefs.h.  */
22301 _ACEOF
22302 cat confdefs.h >>conftest.$ac_ext
22303 cat >>conftest.$ac_ext <<_ACEOF
22304 /* end confdefs.h.  */
22305
22306                     #include <stdio.h>
22307                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22308
22309 int
22310 main ()
22311 {
22312
22313                     test("%s %d %p", "test", 1, 0);
22314
22315
22316   ;
22317   return 0;
22318 }
22319 _ACEOF
22320 rm -f conftest.$ac_objext
22321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22322   (eval $ac_compile) 2>conftest.er1
22323   ac_status=$?
22324   grep -v '^ *+' conftest.er1 >conftest.err
22325   rm -f conftest.er1
22326   cat conftest.err >&5
22327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328   (exit $ac_status); } &&
22329          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22331   (eval $ac_try) 2>&5
22332   ac_status=$?
22333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334   (exit $ac_status); }; } &&
22335          { ac_try='test -s conftest.$ac_objext'
22336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337   (eval $ac_try) 2>&5
22338   ac_status=$?
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); }; }; then
22341   wx_cv_have_variadic_macros=yes
22342 else
22343   echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22345
22346 wx_cv_have_variadic_macros=no
22347
22348 fi
22349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22350
22351
22352 fi
22353 echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22354 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22355
22356 if test $wx_cv_have_variadic_macros = "yes"; then
22357     cat >>confdefs.h <<\_ACEOF
22358 #define HAVE_VARIADIC_MACROS 1
22359 _ACEOF
22360
22361 fi
22362
22363 # Check whether --enable-largefile or --disable-largefile was given.
22364 if test "${enable_largefile+set}" = set; then
22365   enableval="$enable_largefile"
22366
22367 fi;
22368 if test "$enable_largefile" != no; then
22369             wx_largefile=no
22370
22371     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22372 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22373 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22374   echo $ECHO_N "(cached) $ECHO_C" >&6
22375 else
22376
22377           cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h.  */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h.  */
22383 #define _FILE_OFFSET_BITS 64
22384                           #include <sys/types.h>
22385 int
22386 main ()
22387 {
22388 typedef struct {
22389     unsigned int field: sizeof(off_t) == 8;
22390 } wxlf;
22391
22392   ;
22393   return 0;
22394 }
22395 _ACEOF
22396 rm -f conftest.$ac_objext
22397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22398   (eval $ac_compile) 2>conftest.er1
22399   ac_status=$?
22400   grep -v '^ *+' conftest.er1 >conftest.err
22401   rm -f conftest.er1
22402   cat conftest.err >&5
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); } &&
22405          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407   (eval $ac_try) 2>&5
22408   ac_status=$?
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); }; } &&
22411          { ac_try='test -s conftest.$ac_objext'
22412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22413   (eval $ac_try) 2>&5
22414   ac_status=$?
22415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416   (exit $ac_status); }; }; then
22417   ac_cv_sys_file_offset_bits=64
22418 else
22419   echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422 ac_cv_sys_file_offset_bits=no
22423 fi
22424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22425
22426
22427 fi
22428 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22429 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22430
22431     if test "$ac_cv_sys_file_offset_bits" != no; then
22432         wx_largefile=yes
22433         cat >>confdefs.h <<_ACEOF
22434 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22435 _ACEOF
22436
22437     fi
22438
22439     if test "x$wx_largefile" != "xyes"; then
22440
22441     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22442 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22443 if test "${ac_cv_sys_large_files+set}" = set; then
22444   echo $ECHO_N "(cached) $ECHO_C" >&6
22445 else
22446
22447           cat >conftest.$ac_ext <<_ACEOF
22448 /* confdefs.h.  */
22449 _ACEOF
22450 cat confdefs.h >>conftest.$ac_ext
22451 cat >>conftest.$ac_ext <<_ACEOF
22452 /* end confdefs.h.  */
22453 #define _LARGE_FILES 1
22454                           #include <sys/types.h>
22455 int
22456 main ()
22457 {
22458 typedef struct {
22459     unsigned int field: sizeof(off_t) == 8;
22460 } wxlf;
22461
22462   ;
22463   return 0;
22464 }
22465 _ACEOF
22466 rm -f conftest.$ac_objext
22467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22468   (eval $ac_compile) 2>conftest.er1
22469   ac_status=$?
22470   grep -v '^ *+' conftest.er1 >conftest.err
22471   rm -f conftest.er1
22472   cat conftest.err >&5
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); } &&
22475          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477   (eval $ac_try) 2>&5
22478   ac_status=$?
22479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480   (exit $ac_status); }; } &&
22481          { ac_try='test -s conftest.$ac_objext'
22482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483   (eval $ac_try) 2>&5
22484   ac_status=$?
22485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486   (exit $ac_status); }; }; then
22487   ac_cv_sys_large_files=1
22488 else
22489   echo "$as_me: failed program was:" >&5
22490 sed 's/^/| /' conftest.$ac_ext >&5
22491
22492 ac_cv_sys_large_files=no
22493 fi
22494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22495
22496
22497 fi
22498 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22499 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22500
22501     if test "$ac_cv_sys_large_files" != no; then
22502         wx_largefile=yes
22503         cat >>confdefs.h <<_ACEOF
22504 #define _LARGE_FILES $ac_cv_sys_large_files
22505 _ACEOF
22506
22507     fi
22508
22509     fi
22510
22511     echo "$as_me:$LINENO: checking if large file support is available" >&5
22512 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22513     if test "x$wx_largefile" = "xyes"; then
22514         cat >>confdefs.h <<\_ACEOF
22515 #define HAVE_LARGEFILE_SUPPORT 1
22516 _ACEOF
22517
22518     fi
22519     echo "$as_me:$LINENO: result: $wx_largefile" >&5
22520 echo "${ECHO_T}$wx_largefile" >&6
22521 fi
22522
22523
22524 if test "x$wx_largefile" = "xyes"; then
22525     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
22526         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
22527
22528                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22529             echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22530 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22531 if test "${wx_cv_STDC_EXT_required+set}" = set; then
22532   echo $ECHO_N "(cached) $ECHO_C" >&6
22533 else
22534
22535                     cat >conftest.$ac_ext <<_ACEOF
22536 /* confdefs.h.  */
22537 _ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h.  */
22541
22542 int
22543 main ()
22544 {
22545
22546                             #ifndef __STDC_EXT__
22547                                 choke me
22548                             #endif
22549
22550   ;
22551   return 0;
22552 }
22553 _ACEOF
22554 rm -f conftest.$ac_objext
22555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22556   (eval $ac_compile) 2>conftest.er1
22557   ac_status=$?
22558   grep -v '^ *+' conftest.er1 >conftest.err
22559   rm -f conftest.er1
22560   cat conftest.err >&5
22561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562   (exit $ac_status); } &&
22563          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565   (eval $ac_try) 2>&5
22566   ac_status=$?
22567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568   (exit $ac_status); }; } &&
22569          { ac_try='test -s conftest.$ac_objext'
22570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571   (eval $ac_try) 2>&5
22572   ac_status=$?
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); }; }; then
22575   wx_cv_STDC_EXT_required=no
22576 else
22577   echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22579
22580 wx_cv_STDC_EXT_required=yes
22581
22582 fi
22583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22584
22585
22586 fi
22587 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22588 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22589             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
22590                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
22591             fi
22592         fi
22593     else
22594         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
22595     fi
22596         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22597 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22598 if test "${ac_cv_sys_largefile_source+set}" = set; then
22599   echo $ECHO_N "(cached) $ECHO_C" >&6
22600 else
22601   while :; do
22602   ac_cv_sys_largefile_source=no
22603   cat >conftest.$ac_ext <<_ACEOF
22604 /* confdefs.h.  */
22605 _ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h.  */
22609 #include <stdio.h>
22610 int
22611 main ()
22612 {
22613 return !fseeko;
22614   ;
22615   return 0;
22616 }
22617 _ACEOF
22618 rm -f conftest.$ac_objext
22619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22620   (eval $ac_compile) 2>conftest.er1
22621   ac_status=$?
22622   grep -v '^ *+' conftest.er1 >conftest.err
22623   rm -f conftest.er1
22624   cat conftest.err >&5
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); } &&
22627          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629   (eval $ac_try) 2>&5
22630   ac_status=$?
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); }; } &&
22633          { ac_try='test -s conftest.$ac_objext'
22634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635   (eval $ac_try) 2>&5
22636   ac_status=$?
22637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638   (exit $ac_status); }; }; then
22639   break
22640 else
22641   echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22643
22644 fi
22645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22646   cat >conftest.$ac_ext <<_ACEOF
22647 /* confdefs.h.  */
22648 _ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h.  */
22652 #define _LARGEFILE_SOURCE 1
22653 #include <stdio.h>
22654 int
22655 main ()
22656 {
22657 return !fseeko;
22658   ;
22659   return 0;
22660 }
22661 _ACEOF
22662 rm -f conftest.$ac_objext
22663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22664   (eval $ac_compile) 2>conftest.er1
22665   ac_status=$?
22666   grep -v '^ *+' conftest.er1 >conftest.err
22667   rm -f conftest.er1
22668   cat conftest.err >&5
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); } &&
22671          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673   (eval $ac_try) 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); }; } &&
22677          { ac_try='test -s conftest.$ac_objext'
22678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679   (eval $ac_try) 2>&5
22680   ac_status=$?
22681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682   (exit $ac_status); }; }; then
22683   ac_cv_sys_largefile_source=1; break
22684 else
22685   echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22687
22688 fi
22689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22690   break
22691 done
22692 fi
22693 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22694 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22695 if test "$ac_cv_sys_largefile_source" != no; then
22696
22697 cat >>confdefs.h <<_ACEOF
22698 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22699 _ACEOF
22700
22701 fi
22702 rm -f conftest*
22703
22704 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22705 # in glibc 2.1.3, but that breaks too many other things.
22706 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22707 echo "$as_me:$LINENO: checking for fseeko" >&5
22708 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22709 if test "${ac_cv_func_fseeko+set}" = set; then
22710   echo $ECHO_N "(cached) $ECHO_C" >&6
22711 else
22712   cat >conftest.$ac_ext <<_ACEOF
22713 /* confdefs.h.  */
22714 _ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h.  */
22718 #include <stdio.h>
22719 int
22720 main ()
22721 {
22722 return fseeko && fseeko (stdin, 0, 0);
22723   ;
22724   return 0;
22725 }
22726 _ACEOF
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22729   (eval $ac_link) 2>conftest.er1
22730   ac_status=$?
22731   grep -v '^ *+' conftest.er1 >conftest.err
22732   rm -f conftest.er1
22733   cat conftest.err >&5
22734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735   (exit $ac_status); } &&
22736          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738   (eval $ac_try) 2>&5
22739   ac_status=$?
22740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741   (exit $ac_status); }; } &&
22742          { ac_try='test -s conftest$ac_exeext'
22743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744   (eval $ac_try) 2>&5
22745   ac_status=$?
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); }; }; then
22748   ac_cv_func_fseeko=yes
22749 else
22750   echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22752
22753 ac_cv_func_fseeko=no
22754 fi
22755 rm -f conftest.err conftest.$ac_objext \
22756       conftest$ac_exeext conftest.$ac_ext
22757 fi
22758 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22759 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22760 if test $ac_cv_func_fseeko = yes; then
22761
22762 cat >>confdefs.h <<\_ACEOF
22763 #define HAVE_FSEEKO 1
22764 _ACEOF
22765
22766 fi
22767
22768     if test "$ac_cv_sys_largefile_source" != no; then
22769         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
22770     fi
22771 fi
22772
22773 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22774 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22775 if test "${ac_cv_c_bigendian+set}" = set; then
22776   echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778   ac_cv_c_bigendian=unknown
22779 # See if sys/param.h defines the BYTE_ORDER macro.
22780 cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h.  */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h.  */
22786 #include <sys/types.h>
22787 #include <sys/param.h>
22788 int
22789 main ()
22790 {
22791
22792 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22793  bogus endian macros
22794 #endif
22795   ;
22796   return 0;
22797 }
22798 _ACEOF
22799 rm -f conftest.$ac_objext
22800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22801   (eval $ac_compile) 2>conftest.er1
22802   ac_status=$?
22803   grep -v '^ *+' conftest.er1 >conftest.err
22804   rm -f conftest.er1
22805   cat conftest.err >&5
22806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807   (exit $ac_status); } &&
22808          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810   (eval $ac_try) 2>&5
22811   ac_status=$?
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); }; } &&
22814          { ac_try='test -s conftest.$ac_objext'
22815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816   (eval $ac_try) 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); }; }; then
22820   # It does; now see whether it defined to BIG_ENDIAN or not.
22821 cat >conftest.$ac_ext <<_ACEOF
22822 /* confdefs.h.  */
22823 _ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h.  */
22827 #include <sys/types.h>
22828 #include <sys/param.h>
22829 int
22830 main ()
22831 {
22832
22833 #if BYTE_ORDER != BIG_ENDIAN
22834  not big endian
22835 #endif
22836   ;
22837   return 0;
22838 }
22839 _ACEOF
22840 rm -f conftest.$ac_objext
22841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22842   (eval $ac_compile) 2>conftest.er1
22843   ac_status=$?
22844   grep -v '^ *+' conftest.er1 >conftest.err
22845   rm -f conftest.er1
22846   cat conftest.err >&5
22847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); } &&
22849          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22851   (eval $ac_try) 2>&5
22852   ac_status=$?
22853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854   (exit $ac_status); }; } &&
22855          { ac_try='test -s conftest.$ac_objext'
22856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857   (eval $ac_try) 2>&5
22858   ac_status=$?
22859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860   (exit $ac_status); }; }; then
22861   ac_cv_c_bigendian=yes
22862 else
22863   echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22865
22866 ac_cv_c_bigendian=no
22867 fi
22868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22869 else
22870   echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873 fi
22874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22875 if test $ac_cv_c_bigendian = unknown; then
22876 if test "$cross_compiling" = yes; then
22877   ac_cv_c_bigendian=unknown
22878 else
22879   cat >conftest.$ac_ext <<_ACEOF
22880 /* confdefs.h.  */
22881 _ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h.  */
22885 main () {
22886   /* Are we little or big endian?  From Harbison&Steele.  */
22887   union
22888   {
22889     long l;
22890     char c[sizeof (long)];
22891   } u;
22892   u.l = 1;
22893   exit (u.c[sizeof (long) - 1] == 1);
22894 }
22895 _ACEOF
22896 rm -f conftest$ac_exeext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22898   (eval $ac_link) 2>&5
22899   ac_status=$?
22900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22903   (eval $ac_try) 2>&5
22904   ac_status=$?
22905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906   (exit $ac_status); }; }; then
22907   ac_cv_c_bigendian=no
22908 else
22909   echo "$as_me: program exited with status $ac_status" >&5
22910 echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22912
22913 ( exit $ac_status )
22914 ac_cv_c_bigendian=yes
22915 fi
22916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22917 fi
22918 fi
22919 fi
22920 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22921 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22922 if test $ac_cv_c_bigendian = unknown; then
22923   { 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
22924 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;}
22925 fi
22926 if test $ac_cv_c_bigendian = yes; then
22927   cat >>confdefs.h <<\_ACEOF
22928 #define WORDS_BIGENDIAN 1
22929 _ACEOF
22930
22931 fi
22932
22933
22934
22935
22936
22937     ac_ext=cc
22938 ac_cpp='$CXXCPP $CPPFLAGS'
22939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22942
22943
22944
22945 for ac_header in iostream
22946 do
22947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22949   echo "$as_me:$LINENO: checking for $ac_header" >&5
22950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22952   echo $ECHO_N "(cached) $ECHO_C" >&6
22953 fi
22954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22956 else
22957   # Is the header compilable?
22958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22960 cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h.  */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h.  */
22966 $ac_includes_default
22967 #include <$ac_header>
22968 _ACEOF
22969 rm -f conftest.$ac_objext
22970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22971   (eval $ac_compile) 2>conftest.er1
22972   ac_status=$?
22973   grep -v '^ *+' conftest.er1 >conftest.err
22974   rm -f conftest.er1
22975   cat conftest.err >&5
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); } &&
22978          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22980   (eval $ac_try) 2>&5
22981   ac_status=$?
22982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983   (exit $ac_status); }; } &&
22984          { ac_try='test -s conftest.$ac_objext'
22985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986   (eval $ac_try) 2>&5
22987   ac_status=$?
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); }; }; then
22990   ac_header_compiler=yes
22991 else
22992   echo "$as_me: failed program was:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22994
22995 ac_header_compiler=no
22996 fi
22997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22999 echo "${ECHO_T}$ac_header_compiler" >&6
23000
23001 # Is the header present?
23002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23004 cat >conftest.$ac_ext <<_ACEOF
23005 /* confdefs.h.  */
23006 _ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h.  */
23010 #include <$ac_header>
23011 _ACEOF
23012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23014   ac_status=$?
23015   grep -v '^ *+' conftest.er1 >conftest.err
23016   rm -f conftest.er1
23017   cat conftest.err >&5
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); } >/dev/null; then
23020   if test -s conftest.err; then
23021     ac_cpp_err=$ac_cxx_preproc_warn_flag
23022     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23023   else
23024     ac_cpp_err=
23025   fi
23026 else
23027   ac_cpp_err=yes
23028 fi
23029 if test -z "$ac_cpp_err"; then
23030   ac_header_preproc=yes
23031 else
23032   echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23034
23035   ac_header_preproc=no
23036 fi
23037 rm -f conftest.err conftest.$ac_ext
23038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23039 echo "${ECHO_T}$ac_header_preproc" >&6
23040
23041 # So?  What about this header?
23042 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23043   yes:no: )
23044     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23048     ac_header_preproc=yes
23049     ;;
23050   no:yes:* )
23051     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23053     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23054 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23055     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23057     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23058 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23061     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23063     (
23064       cat <<\_ASBOX
23065 ## ----------------------------------------- ##
23066 ## Report this to wx-dev@lists.wxwidgets.org ##
23067 ## ----------------------------------------- ##
23068 _ASBOX
23069     ) |
23070       sed "s/^/$as_me: WARNING:     /" >&2
23071     ;;
23072 esac
23073 echo "$as_me:$LINENO: checking for $ac_header" >&5
23074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23076   echo $ECHO_N "(cached) $ECHO_C" >&6
23077 else
23078   eval "$as_ac_Header=\$ac_header_preproc"
23079 fi
23080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23082
23083 fi
23084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23085   cat >>confdefs.h <<_ACEOF
23086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23087 _ACEOF
23088
23089 fi
23090
23091 done
23092
23093
23094     if test "$ac_cv_header_iostream" = "yes" ; then
23095       :
23096     else
23097       cat >>confdefs.h <<\_ACEOF
23098 #define wxUSE_IOSTREAMH 1
23099 _ACEOF
23100
23101     fi
23102
23103     ac_ext=cc
23104 ac_cpp='$CXXCPP $CPPFLAGS'
23105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23108
23109
23110
23111
23112   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23113 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23114 if test "${wx_cv_cpp_bool+set}" = set; then
23115   echo $ECHO_N "(cached) $ECHO_C" >&6
23116 else
23117
23118
23119
23120     ac_ext=cc
23121 ac_cpp='$CXXCPP $CPPFLAGS'
23122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23125
23126
23127     cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h.  */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h.  */
23133
23134
23135 int
23136 main ()
23137 {
23138
23139         bool b = true;
23140
23141         return 0;
23142
23143   ;
23144   return 0;
23145 }
23146 _ACEOF
23147 rm -f conftest.$ac_objext
23148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23149   (eval $ac_compile) 2>conftest.er1
23150   ac_status=$?
23151   grep -v '^ *+' conftest.er1 >conftest.err
23152   rm -f conftest.er1
23153   cat conftest.err >&5
23154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155   (exit $ac_status); } &&
23156          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158   (eval $ac_try) 2>&5
23159   ac_status=$?
23160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161   (exit $ac_status); }; } &&
23162          { ac_try='test -s conftest.$ac_objext'
23163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164   (eval $ac_try) 2>&5
23165   ac_status=$?
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); }; }; then
23168
23169         wx_cv_cpp_bool=yes
23170
23171 else
23172   echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23174
23175
23176         wx_cv_cpp_bool=no
23177
23178
23179 fi
23180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23181
23182     ac_ext=cc
23183 ac_cpp='$CXXCPP $CPPFLAGS'
23184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23187
23188
23189 fi
23190 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23191 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23192
23193   if test "$wx_cv_cpp_bool" = "yes"; then
23194     cat >>confdefs.h <<\_ACEOF
23195 #define HAVE_BOOL 1
23196 _ACEOF
23197
23198   fi
23199
23200
23201
23202   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23203 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23204 if test "${wx_cv_explicit+set}" = set; then
23205   echo $ECHO_N "(cached) $ECHO_C" >&6
23206 else
23207
23208
23209
23210     ac_ext=cc
23211 ac_cpp='$CXXCPP $CPPFLAGS'
23212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23215
23216
23217             cat >conftest.$ac_ext <<_ACEOF
23218 /* confdefs.h.  */
23219 _ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h.  */
23223
23224         class Foo { public: explicit Foo(int) {} };
23225
23226 int
23227 main ()
23228 {
23229
23230         return 0;
23231
23232   ;
23233   return 0;
23234 }
23235 _ACEOF
23236 rm -f conftest.$ac_objext
23237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23238   (eval $ac_compile) 2>conftest.er1
23239   ac_status=$?
23240   grep -v '^ *+' conftest.er1 >conftest.err
23241   rm -f conftest.er1
23242   cat conftest.err >&5
23243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244   (exit $ac_status); } &&
23245          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247   (eval $ac_try) 2>&5
23248   ac_status=$?
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); }; } &&
23251          { ac_try='test -s conftest.$ac_objext'
23252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23253   (eval $ac_try) 2>&5
23254   ac_status=$?
23255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256   (exit $ac_status); }; }; then
23257
23258         cat >conftest.$ac_ext <<_ACEOF
23259 /* confdefs.h.  */
23260 _ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h.  */
23264
23265                 class Foo { public: explicit Foo(int) {} };
23266                 static void TakeFoo(const Foo& foo) { }
23267
23268 int
23269 main ()
23270 {
23271
23272                 TakeFoo(17);
23273                 return 0;
23274
23275   ;
23276   return 0;
23277 }
23278 _ACEOF
23279 rm -f conftest.$ac_objext
23280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23281   (eval $ac_compile) 2>conftest.er1
23282   ac_status=$?
23283   grep -v '^ *+' conftest.er1 >conftest.err
23284   rm -f conftest.er1
23285   cat conftest.err >&5
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); } &&
23288          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290   (eval $ac_try) 2>&5
23291   ac_status=$?
23292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293   (exit $ac_status); }; } &&
23294          { ac_try='test -s conftest.$ac_objext'
23295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296   (eval $ac_try) 2>&5
23297   ac_status=$?
23298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299   (exit $ac_status); }; }; then
23300   wx_cv_explicit=no
23301 else
23302   echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23304
23305 wx_cv_explicit=yes
23306
23307 fi
23308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23309
23310 else
23311   echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23313
23314 wx_cv_explicit=no
23315
23316 fi
23317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23318
23319     ac_ext=cc
23320 ac_cpp='$CXXCPP $CPPFLAGS'
23321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23324
23325
23326 fi
23327 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23328 echo "${ECHO_T}$wx_cv_explicit" >&6
23329
23330   if test "$wx_cv_explicit" = "yes"; then
23331     cat >>confdefs.h <<\_ACEOF
23332 #define HAVE_EXPLICIT 1
23333 _ACEOF
23334
23335   fi
23336
23337
23338 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23339 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23340 if test "${ac_cv_cxx_const_cast+set}" = set; then
23341   echo $ECHO_N "(cached) $ECHO_C" >&6
23342 else
23343
23344
23345  ac_ext=cc
23346 ac_cpp='$CXXCPP $CPPFLAGS'
23347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23350
23351  cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h.  */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h.  */
23357
23358 int
23359 main ()
23360 {
23361 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23362   ;
23363   return 0;
23364 }
23365 _ACEOF
23366 rm -f conftest.$ac_objext
23367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23368   (eval $ac_compile) 2>conftest.er1
23369   ac_status=$?
23370   grep -v '^ *+' conftest.er1 >conftest.err
23371   rm -f conftest.er1
23372   cat conftest.err >&5
23373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374   (exit $ac_status); } &&
23375          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377   (eval $ac_try) 2>&5
23378   ac_status=$?
23379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380   (exit $ac_status); }; } &&
23381          { ac_try='test -s conftest.$ac_objext'
23382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23383   (eval $ac_try) 2>&5
23384   ac_status=$?
23385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386   (exit $ac_status); }; }; then
23387   ac_cv_cxx_const_cast=yes
23388 else
23389   echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23391
23392 ac_cv_cxx_const_cast=no
23393 fi
23394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23395  ac_ext=cc
23396 ac_cpp='$CXXCPP $CPPFLAGS'
23397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23400
23401
23402 fi
23403 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23404 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23405 if test "$ac_cv_cxx_const_cast" = yes; then
23406
23407 cat >>confdefs.h <<\_ACEOF
23408 #define HAVE_CONST_CAST
23409 _ACEOF
23410
23411 fi
23412
23413 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23414 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23415 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23416   echo $ECHO_N "(cached) $ECHO_C" >&6
23417 else
23418
23419
23420  ac_ext=cc
23421 ac_cpp='$CXXCPP $CPPFLAGS'
23422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23425
23426  cat >conftest.$ac_ext <<_ACEOF
23427 /* confdefs.h.  */
23428 _ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h.  */
23432 #include <typeinfo>
23433 class Base { public : Base () {} virtual void f () = 0;};
23434 class Derived : public Base { public : Derived () {} virtual void f () {} };
23435 class Unrelated { public : Unrelated () {} };
23436 int g (Unrelated&) { return 0; }
23437 int
23438 main ()
23439 {
23440
23441 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23442   ;
23443   return 0;
23444 }
23445 _ACEOF
23446 rm -f conftest.$ac_objext
23447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23448   (eval $ac_compile) 2>conftest.er1
23449   ac_status=$?
23450   grep -v '^ *+' conftest.er1 >conftest.err
23451   rm -f conftest.er1
23452   cat conftest.err >&5
23453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454   (exit $ac_status); } &&
23455          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457   (eval $ac_try) 2>&5
23458   ac_status=$?
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); }; } &&
23461          { ac_try='test -s conftest.$ac_objext'
23462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463   (eval $ac_try) 2>&5
23464   ac_status=$?
23465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466   (exit $ac_status); }; }; then
23467   ac_cv_cxx_reinterpret_cast=yes
23468 else
23469   echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23471
23472 ac_cv_cxx_reinterpret_cast=no
23473 fi
23474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23475  ac_ext=cc
23476 ac_cpp='$CXXCPP $CPPFLAGS'
23477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23480
23481
23482 fi
23483 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23484 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23485 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23486
23487 cat >>confdefs.h <<\_ACEOF
23488 #define HAVE_REINTERPRET_CAST
23489 _ACEOF
23490
23491 fi
23492
23493 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23494 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23495 if test "${ac_cv_cxx_static_cast+set}" = set; then
23496   echo $ECHO_N "(cached) $ECHO_C" >&6
23497 else
23498
23499
23500  ac_ext=cc
23501 ac_cpp='$CXXCPP $CPPFLAGS'
23502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23505
23506  cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h.  */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h.  */
23512 #include <typeinfo>
23513 class Base { public : Base () {} virtual void f () = 0; };
23514 class Derived : public Base { public : Derived () {} virtual void f () {} };
23515 int g (Derived&) { return 0; }
23516 int
23517 main ()
23518 {
23519
23520 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23521   ;
23522   return 0;
23523 }
23524 _ACEOF
23525 rm -f conftest.$ac_objext
23526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23527   (eval $ac_compile) 2>conftest.er1
23528   ac_status=$?
23529   grep -v '^ *+' conftest.er1 >conftest.err
23530   rm -f conftest.er1
23531   cat conftest.err >&5
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); } &&
23534          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536   (eval $ac_try) 2>&5
23537   ac_status=$?
23538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539   (exit $ac_status); }; } &&
23540          { ac_try='test -s conftest.$ac_objext'
23541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23542   (eval $ac_try) 2>&5
23543   ac_status=$?
23544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545   (exit $ac_status); }; }; then
23546   ac_cv_cxx_static_cast=yes
23547 else
23548   echo "$as_me: failed program was:" >&5
23549 sed 's/^/| /' conftest.$ac_ext >&5
23550
23551 ac_cv_cxx_static_cast=no
23552 fi
23553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23554  ac_ext=cc
23555 ac_cpp='$CXXCPP $CPPFLAGS'
23556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23559
23560
23561 fi
23562 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23563 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23564 if test "$ac_cv_cxx_static_cast" = yes; then
23565
23566 cat >>confdefs.h <<\_ACEOF
23567 #define HAVE_STATIC_CAST
23568 _ACEOF
23569
23570 fi
23571
23572
23573 if test "x$SUNCXX" = xyes; then
23574     CXXFLAGS="-features=tmplife $CXXFLAGS"
23575 fi
23576
23577 if test "x$SUNCC" = xyes; then
23578     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
23579 fi
23580
23581 if test "x$SGICC" = "xyes"; then
23582     CFLAGS="-woff 3970 $CFLAGS"
23583 fi
23584 if test "x$SGICXX" = "xyes"; then
23585     CXXFLAGS="-woff 3970 $CXXFLAGS"
23586 fi
23587
23588 if test "x$HPCC" = "xyes"; then
23589                     CFLAGS="+W 2011,2450 $CFLAGS"
23590 fi
23591 if test "x$HPCXX" = "xyes"; then
23592             CXXFLAGS="+W 2340 $CXXFLAGS"
23593 fi
23594
23595 if test "x$COMPAQCXX" = "xyes"; then
23596                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23597 fi
23598
23599 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
23600     if test "$wxUSE_UNICODE" = "yes"; then
23601         std_string="std::wstring"
23602         char_type="wchar_t"
23603     else
23604         std_string="std::string"
23605         char_type="char"
23606     fi
23607
23608         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23609 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
23610     cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h.  */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h.  */
23616 #include <string>
23617 int
23618 main ()
23619 {
23620 $std_string foo;
23621   ;
23622   return 0;
23623 }
23624 _ACEOF
23625 rm -f conftest.$ac_objext
23626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23627   (eval $ac_compile) 2>conftest.er1
23628   ac_status=$?
23629   grep -v '^ *+' conftest.er1 >conftest.err
23630   rm -f conftest.er1
23631   cat conftest.err >&5
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); } &&
23634          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636   (eval $ac_try) 2>&5
23637   ac_status=$?
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); }; } &&
23640          { ac_try='test -s conftest.$ac_objext'
23641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642   (eval $ac_try) 2>&5
23643   ac_status=$?
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); }; }; then
23646   echo "$as_me:$LINENO: result: yes" >&5
23647 echo "${ECHO_T}yes" >&6
23648                     cat >>confdefs.h <<\_ACEOF
23649 #define HAVE_STD_WSTRING 1
23650 _ACEOF
23651
23652 else
23653   echo "$as_me: failed program was:" >&5
23654 sed 's/^/| /' conftest.$ac_ext >&5
23655
23656 echo "$as_me:$LINENO: result: no" >&5
23657 echo "${ECHO_T}no" >&6
23658                     echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23659 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
23660                     cat >conftest.$ac_ext <<_ACEOF
23661 /* confdefs.h.  */
23662 _ACEOF
23663 cat confdefs.h >>conftest.$ac_ext
23664 cat >>conftest.$ac_ext <<_ACEOF
23665 /* end confdefs.h.  */
23666
23667                         #ifdef HAVE_WCHAR_H
23668                         #  ifdef __CYGWIN__
23669                         #    include <stddef.h>
23670                         #  endif
23671                         #  include <wchar.h>
23672                         #endif
23673                         #ifdef HAVE_STDLIB_H
23674                         #  include <stdlib.h>
23675                         #endif
23676                         #include <stdio.h>
23677                         #include <string>
23678
23679 int
23680 main ()
23681 {
23682 std::basic_string<$char_type> foo;
23683                          const $char_type* dummy = foo.c_str();
23684   ;
23685   return 0;
23686 }
23687 _ACEOF
23688 rm -f conftest.$ac_objext
23689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23690   (eval $ac_compile) 2>conftest.er1
23691   ac_status=$?
23692   grep -v '^ *+' conftest.er1 >conftest.err
23693   rm -f conftest.er1
23694   cat conftest.err >&5
23695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696   (exit $ac_status); } &&
23697          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23699   (eval $ac_try) 2>&5
23700   ac_status=$?
23701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702   (exit $ac_status); }; } &&
23703          { ac_try='test -s conftest.$ac_objext'
23704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23705   (eval $ac_try) 2>&5
23706   ac_status=$?
23707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708   (exit $ac_status); }; }; then
23709   echo "$as_me:$LINENO: result: yes" >&5
23710 echo "${ECHO_T}yes" >&6
23711 else
23712   echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23714
23715 echo "$as_me:$LINENO: result: no" >&5
23716 echo "${ECHO_T}no" >&6
23717                          if test "$wxUSE_STL" = "yes"; then
23718                              { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23719 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23720    { (exit 1); exit 1; }; }
23721                          elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23722                              { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23723 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23724    { (exit 1); exit 1; }; }
23725                          else
23726                              { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23727 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23728                              wxUSE_STD_STRING=no
23729                          fi
23730
23731
23732 fi
23733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23734
23735 fi
23736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23737 fi
23738
23739 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23740     echo "$as_me:$LINENO: checking for std::istream" >&5
23741 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23742 if test "${ac_cv_type_std__istream+set}" = set; then
23743   echo $ECHO_N "(cached) $ECHO_C" >&6
23744 else
23745   cat >conftest.$ac_ext <<_ACEOF
23746 /* confdefs.h.  */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h.  */
23751 #include <iostream>
23752
23753 int
23754 main ()
23755 {
23756 if ((std::istream *) 0)
23757   return 0;
23758 if (sizeof (std::istream))
23759   return 0;
23760   ;
23761   return 0;
23762 }
23763 _ACEOF
23764 rm -f conftest.$ac_objext
23765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23766   (eval $ac_compile) 2>conftest.er1
23767   ac_status=$?
23768   grep -v '^ *+' conftest.er1 >conftest.err
23769   rm -f conftest.er1
23770   cat conftest.err >&5
23771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772   (exit $ac_status); } &&
23773          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23775   (eval $ac_try) 2>&5
23776   ac_status=$?
23777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778   (exit $ac_status); }; } &&
23779          { ac_try='test -s conftest.$ac_objext'
23780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23781   (eval $ac_try) 2>&5
23782   ac_status=$?
23783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784   (exit $ac_status); }; }; then
23785   ac_cv_type_std__istream=yes
23786 else
23787   echo "$as_me: failed program was:" >&5
23788 sed 's/^/| /' conftest.$ac_ext >&5
23789
23790 ac_cv_type_std__istream=no
23791 fi
23792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23793 fi
23794 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23795 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23796 if test $ac_cv_type_std__istream = yes; then
23797
23798 cat >>confdefs.h <<_ACEOF
23799 #define HAVE_STD__ISTREAM 1
23800 _ACEOF
23801
23802
23803 else
23804   wxUSE_STD_IOSTREAM=no
23805 fi
23806 echo "$as_me:$LINENO: checking for std::ostream" >&5
23807 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23808 if test "${ac_cv_type_std__ostream+set}" = set; then
23809   echo $ECHO_N "(cached) $ECHO_C" >&6
23810 else
23811   cat >conftest.$ac_ext <<_ACEOF
23812 /* confdefs.h.  */
23813 _ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h.  */
23817 #include <iostream>
23818
23819 int
23820 main ()
23821 {
23822 if ((std::ostream *) 0)
23823   return 0;
23824 if (sizeof (std::ostream))
23825   return 0;
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext
23831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23832   (eval $ac_compile) 2>conftest.er1
23833   ac_status=$?
23834   grep -v '^ *+' conftest.er1 >conftest.err
23835   rm -f conftest.er1
23836   cat conftest.err >&5
23837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); } &&
23839          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23841   (eval $ac_try) 2>&5
23842   ac_status=$?
23843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844   (exit $ac_status); }; } &&
23845          { ac_try='test -s conftest.$ac_objext'
23846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23847   (eval $ac_try) 2>&5
23848   ac_status=$?
23849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850   (exit $ac_status); }; }; then
23851   ac_cv_type_std__ostream=yes
23852 else
23853   echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23855
23856 ac_cv_type_std__ostream=no
23857 fi
23858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23859 fi
23860 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23861 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23862 if test $ac_cv_type_std__ostream = yes; then
23863
23864 cat >>confdefs.h <<_ACEOF
23865 #define HAVE_STD__OSTREAM 1
23866 _ACEOF
23867
23868
23869 else
23870   wxUSE_STD_IOSTREAM=no
23871 fi
23872
23873
23874     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
23875         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23876             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23877 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23878    { (exit 1); exit 1; }; }
23879         else
23880             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
23881 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
23882         fi
23883     fi
23884 fi
23885
23886 if test "$wxUSE_STL" = "yes"; then
23887         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23888 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
23889     cat >conftest.$ac_ext <<_ACEOF
23890 /* confdefs.h.  */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h.  */
23895 #include <string>
23896                     #include <functional>
23897                     #include <algorithm>
23898                     #include <vector>
23899                     #include <list>
23900 int
23901 main ()
23902 {
23903 std::vector<int> moo;
23904                      std::list<int> foo;
23905                      std::vector<int>::iterator it =
23906                          std::find_if(moo.begin(), moo.end(),
23907                                       std::bind2nd(std::less<int>(), 3));
23908   ;
23909   return 0;
23910 }
23911 _ACEOF
23912 rm -f conftest.$ac_objext
23913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23914   (eval $ac_compile) 2>conftest.er1
23915   ac_status=$?
23916   grep -v '^ *+' conftest.er1 >conftest.err
23917   rm -f conftest.er1
23918   cat conftest.err >&5
23919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920   (exit $ac_status); } &&
23921          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923   (eval $ac_try) 2>&5
23924   ac_status=$?
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); }; } &&
23927          { ac_try='test -s conftest.$ac_objext'
23928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23929   (eval $ac_try) 2>&5
23930   ac_status=$?
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); }; }; then
23933   echo "$as_me:$LINENO: result: yes" >&5
23934 echo "${ECHO_T}yes" >&6
23935 else
23936   echo "$as_me: failed program was:" >&5
23937 sed 's/^/| /' conftest.$ac_ext >&5
23938
23939 echo "$as_me:$LINENO: result: no" >&5
23940 echo "${ECHO_T}no" >&6
23941                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23942 echo "$as_me: error: Basic STL functionality missing" >&2;}
23943    { (exit 1); exit 1; }; }
23944 fi
23945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23946
23947         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23948 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23949     cat >conftest.$ac_ext <<_ACEOF
23950 /* confdefs.h.  */
23951 _ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h.  */
23955 #include <string>
23956 int
23957 main ()
23958 {
23959 std::string foo, bar;
23960                     foo.compare(bar);
23961                     foo.compare(1, 1, bar);
23962                     foo.compare(1, 1, bar, 1, 1);
23963                     foo.compare("");
23964                     foo.compare(1, 1, "");
23965                     foo.compare(1, 1, "", 2);
23966   ;
23967   return 0;
23968 }
23969 _ACEOF
23970 rm -f conftest.$ac_objext
23971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23972   (eval $ac_compile) 2>conftest.er1
23973   ac_status=$?
23974   grep -v '^ *+' conftest.er1 >conftest.err
23975   rm -f conftest.er1
23976   cat conftest.err >&5
23977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978   (exit $ac_status); } &&
23979          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981   (eval $ac_try) 2>&5
23982   ac_status=$?
23983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984   (exit $ac_status); }; } &&
23985          { ac_try='test -s conftest.$ac_objext'
23986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23987   (eval $ac_try) 2>&5
23988   ac_status=$?
23989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990   (exit $ac_status); }; }; then
23991   echo "$as_me:$LINENO: result: yes" >&5
23992 echo "${ECHO_T}yes" >&6
23993                     cat >>confdefs.h <<\_ACEOF
23994 #define HAVE_STD_STRING_COMPARE 1
23995 _ACEOF
23996
23997 else
23998   echo "$as_me: failed program was:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24000
24001 echo "$as_me:$LINENO: result: no" >&5
24002 echo "${ECHO_T}no" >&6
24003 fi
24004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24005
24006         if test "${ac_cv_header_hash_map+set}" = set; then
24007   echo "$as_me:$LINENO: checking for hash_map" >&5
24008 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24009 if test "${ac_cv_header_hash_map+set}" = set; then
24010   echo $ECHO_N "(cached) $ECHO_C" >&6
24011 fi
24012 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24013 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24014 else
24015   # Is the header compilable?
24016 echo "$as_me:$LINENO: checking hash_map usability" >&5
24017 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h.  */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h.  */
24024 $ac_includes_default
24025 #include <hash_map>
24026 _ACEOF
24027 rm -f conftest.$ac_objext
24028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24029   (eval $ac_compile) 2>conftest.er1
24030   ac_status=$?
24031   grep -v '^ *+' conftest.er1 >conftest.err
24032   rm -f conftest.er1
24033   cat conftest.err >&5
24034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035   (exit $ac_status); } &&
24036          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24038   (eval $ac_try) 2>&5
24039   ac_status=$?
24040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); }; } &&
24042          { ac_try='test -s conftest.$ac_objext'
24043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044   (eval $ac_try) 2>&5
24045   ac_status=$?
24046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); }; }; then
24048   ac_header_compiler=yes
24049 else
24050   echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24052
24053 ac_header_compiler=no
24054 fi
24055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24057 echo "${ECHO_T}$ac_header_compiler" >&6
24058
24059 # Is the header present?
24060 echo "$as_me:$LINENO: checking hash_map presence" >&5
24061 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24062 cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h.  */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h.  */
24068 #include <hash_map>
24069 _ACEOF
24070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24072   ac_status=$?
24073   grep -v '^ *+' conftest.er1 >conftest.err
24074   rm -f conftest.er1
24075   cat conftest.err >&5
24076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077   (exit $ac_status); } >/dev/null; then
24078   if test -s conftest.err; then
24079     ac_cpp_err=$ac_cxx_preproc_warn_flag
24080     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24081   else
24082     ac_cpp_err=
24083   fi
24084 else
24085   ac_cpp_err=yes
24086 fi
24087 if test -z "$ac_cpp_err"; then
24088   ac_header_preproc=yes
24089 else
24090   echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24092
24093   ac_header_preproc=no
24094 fi
24095 rm -f conftest.err conftest.$ac_ext
24096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24097 echo "${ECHO_T}$ac_header_preproc" >&6
24098
24099 # So?  What about this header?
24100 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24101   yes:no: )
24102     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24103 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
24104     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24105 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24106     ac_header_preproc=yes
24107     ;;
24108   no:yes:* )
24109     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24110 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
24111     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
24112 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
24113     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24114 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24115     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
24116 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
24117     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24118 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
24119     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24120 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
24121     (
24122       cat <<\_ASBOX
24123 ## ----------------------------------------- ##
24124 ## Report this to wx-dev@lists.wxwidgets.org ##
24125 ## ----------------------------------------- ##
24126 _ASBOX
24127     ) |
24128       sed "s/^/$as_me: WARNING:     /" >&2
24129     ;;
24130 esac
24131 echo "$as_me:$LINENO: checking for hash_map" >&5
24132 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24133 if test "${ac_cv_header_hash_map+set}" = set; then
24134   echo $ECHO_N "(cached) $ECHO_C" >&6
24135 else
24136   ac_cv_header_hash_map=$ac_header_preproc
24137 fi
24138 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24139 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24140
24141 fi
24142 if test $ac_cv_header_hash_map = yes; then
24143   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24144 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24145                      cat >conftest.$ac_ext <<_ACEOF
24146 /* confdefs.h.  */
24147 _ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h.  */
24151 #include <hash_map>
24152                                      #include <hash_set>
24153 int
24154 main ()
24155 {
24156 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24157                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24158   ;
24159   return 0;
24160 }
24161 _ACEOF
24162 rm -f conftest.$ac_objext
24163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24164   (eval $ac_compile) 2>conftest.er1
24165   ac_status=$?
24166   grep -v '^ *+' conftest.er1 >conftest.err
24167   rm -f conftest.er1
24168   cat conftest.err >&5
24169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170   (exit $ac_status); } &&
24171          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173   (eval $ac_try) 2>&5
24174   ac_status=$?
24175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176   (exit $ac_status); }; } &&
24177          { ac_try='test -s conftest.$ac_objext'
24178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24179   (eval $ac_try) 2>&5
24180   ac_status=$?
24181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182   (exit $ac_status); }; }; then
24183   echo "$as_me:$LINENO: result: yes" >&5
24184 echo "${ECHO_T}yes" >&6
24185                                      cat >>confdefs.h <<\_ACEOF
24186 #define HAVE_HASH_MAP 1
24187 _ACEOF
24188
24189                                      cat >>confdefs.h <<\_ACEOF
24190 #define HAVE_STD_HASH_MAP 1
24191 _ACEOF
24192
24193 else
24194   echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24196
24197 echo "$as_me:$LINENO: result: no" >&5
24198 echo "${ECHO_T}no" >&6
24199 fi
24200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24201
24202 fi
24203
24204
24205
24206     if test "${ac_cv_header_ext_hash_map+set}" = set; then
24207   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24208 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24209 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24210   echo $ECHO_N "(cached) $ECHO_C" >&6
24211 fi
24212 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24213 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24214 else
24215   # Is the header compilable?
24216 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24217 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24218 cat >conftest.$ac_ext <<_ACEOF
24219 /* confdefs.h.  */
24220 _ACEOF
24221 cat confdefs.h >>conftest.$ac_ext
24222 cat >>conftest.$ac_ext <<_ACEOF
24223 /* end confdefs.h.  */
24224 $ac_includes_default
24225 #include <ext/hash_map>
24226 _ACEOF
24227 rm -f conftest.$ac_objext
24228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24229   (eval $ac_compile) 2>conftest.er1
24230   ac_status=$?
24231   grep -v '^ *+' conftest.er1 >conftest.err
24232   rm -f conftest.er1
24233   cat conftest.err >&5
24234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235   (exit $ac_status); } &&
24236          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238   (eval $ac_try) 2>&5
24239   ac_status=$?
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); }; } &&
24242          { ac_try='test -s conftest.$ac_objext'
24243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24244   (eval $ac_try) 2>&5
24245   ac_status=$?
24246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247   (exit $ac_status); }; }; then
24248   ac_header_compiler=yes
24249 else
24250   echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24252
24253 ac_header_compiler=no
24254 fi
24255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24257 echo "${ECHO_T}$ac_header_compiler" >&6
24258
24259 # Is the header present?
24260 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24261 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24262 cat >conftest.$ac_ext <<_ACEOF
24263 /* confdefs.h.  */
24264 _ACEOF
24265 cat confdefs.h >>conftest.$ac_ext
24266 cat >>conftest.$ac_ext <<_ACEOF
24267 /* end confdefs.h.  */
24268 #include <ext/hash_map>
24269 _ACEOF
24270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24271   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24272   ac_status=$?
24273   grep -v '^ *+' conftest.er1 >conftest.err
24274   rm -f conftest.er1
24275   cat conftest.err >&5
24276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); } >/dev/null; then
24278   if test -s conftest.err; then
24279     ac_cpp_err=$ac_cxx_preproc_warn_flag
24280     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24281   else
24282     ac_cpp_err=
24283   fi
24284 else
24285   ac_cpp_err=yes
24286 fi
24287 if test -z "$ac_cpp_err"; then
24288   ac_header_preproc=yes
24289 else
24290   echo "$as_me: failed program was:" >&5
24291 sed 's/^/| /' conftest.$ac_ext >&5
24292
24293   ac_header_preproc=no
24294 fi
24295 rm -f conftest.err conftest.$ac_ext
24296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24297 echo "${ECHO_T}$ac_header_preproc" >&6
24298
24299 # So?  What about this header?
24300 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24301   yes:no: )
24302     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24303 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
24304     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24305 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24306     ac_header_preproc=yes
24307     ;;
24308   no:yes:* )
24309     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24310 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
24311     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
24312 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
24313     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24314 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24315     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
24316 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
24317     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24318 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
24319     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24320 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
24321     (
24322       cat <<\_ASBOX
24323 ## ----------------------------------------- ##
24324 ## Report this to wx-dev@lists.wxwidgets.org ##
24325 ## ----------------------------------------- ##
24326 _ASBOX
24327     ) |
24328       sed "s/^/$as_me: WARNING:     /" >&2
24329     ;;
24330 esac
24331 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24332 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24333 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24334   echo $ECHO_N "(cached) $ECHO_C" >&6
24335 else
24336   ac_cv_header_ext_hash_map=$ac_header_preproc
24337 fi
24338 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24339 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24340
24341 fi
24342 if test $ac_cv_header_ext_hash_map = yes; then
24343   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24344 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24345                      cat >conftest.$ac_ext <<_ACEOF
24346 /* confdefs.h.  */
24347 _ACEOF
24348 cat confdefs.h >>conftest.$ac_ext
24349 cat >>conftest.$ac_ext <<_ACEOF
24350 /* end confdefs.h.  */
24351 #include <ext/hash_map>
24352                                      #include <ext/hash_set>
24353 int
24354 main ()
24355 {
24356 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24357                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24358   ;
24359   return 0;
24360 }
24361 _ACEOF
24362 rm -f conftest.$ac_objext
24363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24364   (eval $ac_compile) 2>conftest.er1
24365   ac_status=$?
24366   grep -v '^ *+' conftest.er1 >conftest.err
24367   rm -f conftest.er1
24368   cat conftest.err >&5
24369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370   (exit $ac_status); } &&
24371          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24373   (eval $ac_try) 2>&5
24374   ac_status=$?
24375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376   (exit $ac_status); }; } &&
24377          { ac_try='test -s conftest.$ac_objext'
24378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379   (eval $ac_try) 2>&5
24380   ac_status=$?
24381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382   (exit $ac_status); }; }; then
24383   echo "$as_me:$LINENO: result: yes" >&5
24384 echo "${ECHO_T}yes" >&6
24385                                      cat >>confdefs.h <<\_ACEOF
24386 #define HAVE_EXT_HASH_MAP 1
24387 _ACEOF
24388
24389                                      cat >>confdefs.h <<\_ACEOF
24390 #define HAVE_GNU_CXX_HASH_MAP 1
24391 _ACEOF
24392
24393 else
24394   echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24396
24397 echo "$as_me:$LINENO: result: no" >&5
24398 echo "${ECHO_T}no" >&6
24399 fi
24400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24401
24402 fi
24403
24404
24405 fi
24406
24407
24408 SEARCH_INCLUDE="\
24409     /usr/local/include        \
24410                               \
24411     /usr/Motif-2.1/include    \
24412     /usr/Motif-1.2/include    \
24413     /usr/include/Motif1.2     \
24414                               \
24415     /usr/dt/include           \
24416     /usr/openwin/include      \
24417                               \
24418     /usr/include/Xm           \
24419                               \
24420     /usr/X11R6/include        \
24421     /usr/X11R6.4/include      \
24422     /usr/X11R5/include        \
24423     /usr/X11R4/include        \
24424                               \
24425     /usr/include/X11R6        \
24426     /usr/include/X11R5        \
24427     /usr/include/X11R4        \
24428                               \
24429     /usr/local/X11R6/include  \
24430     /usr/local/X11R5/include  \
24431     /usr/local/X11R4/include  \
24432                               \
24433     /usr/local/include/X11R6  \
24434     /usr/local/include/X11R5  \
24435     /usr/local/include/X11R4  \
24436                               \
24437     /usr/X11/include          \
24438     /usr/include/X11          \
24439     /usr/local/X11/include    \
24440     /usr/local/include/X11    \
24441                               \
24442     /usr/XFree86/include/X11  \
24443     /usr/pkg/include          \
24444                               \
24445     /usr/openwin/share/include"
24446
24447 echo "$as_me:$LINENO: checking for libraries directory" >&5
24448 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
24449
24450 case "${host}" in
24451     *-*-irix6* )
24452         if test "${wx_cv_std_libpath+set}" = set; then
24453   echo $ECHO_N "(cached) $ECHO_C" >&6
24454 else
24455
24456                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24457                     for e in a so sl dylib dll.a; do
24458                         libc="$d/libc.$e"
24459                         if test -f $libc; then
24460                             save_LIBS="$LIBS"
24461                             LIBS="$libc"
24462                             cat >conftest.$ac_ext <<_ACEOF
24463 int main() { return 0; }
24464 _ACEOF
24465 rm -f conftest.$ac_objext conftest$ac_exeext
24466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24467   (eval $ac_link) 2>conftest.er1
24468   ac_status=$?
24469   grep -v '^ *+' conftest.er1 >conftest.err
24470   rm -f conftest.er1
24471   cat conftest.err >&5
24472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473   (exit $ac_status); } &&
24474          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24476   (eval $ac_try) 2>&5
24477   ac_status=$?
24478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479   (exit $ac_status); }; } &&
24480          { ac_try='test -s conftest$ac_exeext'
24481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24482   (eval $ac_try) 2>&5
24483   ac_status=$?
24484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485   (exit $ac_status); }; }; then
24486   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24487 else
24488   echo "$as_me: failed program was:" >&5
24489 sed 's/^/| /' conftest.$ac_ext >&5
24490
24491 fi
24492 rm -f conftest.err conftest.$ac_objext \
24493       conftest$ac_exeext conftest.$ac_ext
24494                             LIBS="$save_LIBS"
24495                             if test "x$wx_cv_std_libpath" != "x"; then
24496                                 break 2
24497                             fi
24498                         fi
24499                     done
24500                 done
24501                 if test "x$wx_cv_std_libpath" = "x"; then
24502                     wx_cv_std_libpath="lib"
24503                 fi
24504
24505
24506 fi
24507
24508         ;;
24509
24510     *-*-solaris2* )
24511                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24512             wx_cv_std_libpath="lib/64"
24513         else
24514             wx_cv_std_libpath="lib"
24515         fi
24516         ;;
24517
24518     *-*-linux* )
24519                 if test "$ac_cv_sizeof_void_p" = 8 -a \
24520                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24521             wx_cv_std_libpath="lib64"
24522         else
24523             wx_cv_std_libpath="lib"
24524         fi
24525         ;;
24526
24527     *)
24528         wx_cv_std_libpath="lib";
24529         ;;
24530 esac
24531
24532 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24533 echo "${ECHO_T}$wx_cv_std_libpath" >&6
24534
24535 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
24536
24537 if test "$build" != "$host" -a "$GCC" = yes; then
24538                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24539         cross_root=`dirname $cross_root`
24540         cross_root=`dirname $cross_root`
24541
24542                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24543         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24544         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
24545
24546                 if test -z "$PKG_CONFIG_PATH"; then
24547             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24548             export PKG_CONFIG_PATH
24549         fi
24550
24551                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
24552
24553 ac_find_includes=
24554 for ac_dir in $SEARCH_INCLUDE /usr/include;
24555   do
24556     if test -f "$ac_dir/X11/Intrinsic.h"; then
24557       ac_find_includes=$ac_dir
24558       break
24559     fi
24560   done
24561
24562             x_includes=$ac_find_includes
24563         fi
24564         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24565
24566   ac_find_libraries=
24567   for ac_dir in $SEARCH_LIB;
24568   do
24569     for ac_extension in a so sl dylib dll.a; do
24570       if test -f "$ac_dir/libXt.$ac_extension"; then
24571         ac_find_libraries=$ac_dir
24572         break 2
24573       fi
24574     done
24575   done
24576
24577             x_libraries=$ac_find_libraries
24578         fi
24579     fi
24580 fi
24581
24582
24583 cat >confcache <<\_ACEOF
24584 # This file is a shell script that caches the results of configure
24585 # tests run on this system so they can be shared between configure
24586 # scripts and configure runs, see configure's option --config-cache.
24587 # It is not useful on other systems.  If it contains results you don't
24588 # want to keep, you may remove or edit it.
24589 #
24590 # config.status only pays attention to the cache file if you give it
24591 # the --recheck option to rerun configure.
24592 #
24593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24595 # following values.
24596
24597 _ACEOF
24598
24599 # The following way of writing the cache mishandles newlines in values,
24600 # but we know of no workaround that is simple, portable, and efficient.
24601 # So, don't put newlines in cache variables' values.
24602 # Ultrix sh set writes to stderr and can't be redirected directly,
24603 # and sets the high bit in the cache file unless we assign to the vars.
24604 {
24605   (set) 2>&1 |
24606     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24607     *ac_space=\ *)
24608       # `set' does not quote correctly, so add quotes (double-quote
24609       # substitution turns \\\\ into \\, and sed turns \\ into \).
24610       sed -n \
24611         "s/'/'\\\\''/g;
24612           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24613       ;;
24614     *)
24615       # `set' quotes correctly as required by POSIX, so do not add quotes.
24616       sed -n \
24617         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24618       ;;
24619     esac;
24620 } |
24621   sed '
24622      t clear
24623      : clear
24624      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24625      t end
24626      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24627      : end' >>confcache
24628 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24629   if test -w $cache_file; then
24630     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24631     cat confcache >$cache_file
24632   else
24633     echo "not updating unwritable cache $cache_file"
24634   fi
24635 fi
24636 rm -f confcache
24637
24638 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24639     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24640 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24641 if test "${wx_cv_lib_glibc21+set}" = set; then
24642   echo $ECHO_N "(cached) $ECHO_C" >&6
24643 else
24644
24645         cat >conftest.$ac_ext <<_ACEOF
24646 /* confdefs.h.  */
24647 _ACEOF
24648 cat confdefs.h >>conftest.$ac_ext
24649 cat >>conftest.$ac_ext <<_ACEOF
24650 /* end confdefs.h.  */
24651 #include <features.h>
24652 int
24653 main ()
24654 {
24655
24656                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
24657                 not glibc 2.1
24658                 #endif
24659
24660   ;
24661   return 0;
24662 }
24663 _ACEOF
24664 rm -f conftest.$ac_objext
24665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24666   (eval $ac_compile) 2>conftest.er1
24667   ac_status=$?
24668   grep -v '^ *+' conftest.er1 >conftest.err
24669   rm -f conftest.er1
24670   cat conftest.err >&5
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); } &&
24673          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675   (eval $ac_try) 2>&5
24676   ac_status=$?
24677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678   (exit $ac_status); }; } &&
24679          { ac_try='test -s conftest.$ac_objext'
24680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681   (eval $ac_try) 2>&5
24682   ac_status=$?
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); }; }; then
24685
24686                 wx_cv_lib_glibc21=yes
24687
24688 else
24689   echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24691
24692
24693                 wx_cv_lib_glibc21=no
24694
24695
24696 fi
24697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24698
24699 fi
24700 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24701 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24702     if test "$wx_cv_lib_glibc21" = "yes"; then
24703         cat >>confdefs.h <<\_ACEOF
24704 #define wxHAVE_GLIBC2 1
24705 _ACEOF
24706
24707     fi
24708 fi
24709
24710 if test "x$wx_cv_lib_glibc21" = "xyes"; then
24711     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24712         cat >>confdefs.h <<\_ACEOF
24713 #define _GNU_SOURCE 1
24714 _ACEOF
24715
24716     fi
24717 fi
24718
24719 have_cos=0
24720 have_floor=0
24721
24722 for ac_func in cos
24723 do
24724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24725 echo "$as_me:$LINENO: checking for $ac_func" >&5
24726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24727 if eval "test \"\${$as_ac_var+set}\" = set"; then
24728   echo $ECHO_N "(cached) $ECHO_C" >&6
24729 else
24730   cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h.  */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h.  */
24736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24738 #define $ac_func innocuous_$ac_func
24739
24740 /* System header to define __stub macros and hopefully few prototypes,
24741     which can conflict with char $ac_func (); below.
24742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24743     <limits.h> exists even on freestanding compilers.  */
24744
24745 #ifdef __STDC__
24746 # include <limits.h>
24747 #else
24748 # include <assert.h>
24749 #endif
24750
24751 #undef $ac_func
24752
24753 /* Override any gcc2 internal prototype to avoid an error.  */
24754 #ifdef __cplusplus
24755 extern "C"
24756 {
24757 #endif
24758 /* We use char because int might match the return type of a gcc2
24759    builtin and then its argument prototype would still apply.  */
24760 char $ac_func ();
24761 /* The GNU C library defines this for functions which it implements
24762     to always fail with ENOSYS.  Some functions are actually named
24763     something starting with __ and the normal name is an alias.  */
24764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24765 choke me
24766 #else
24767 char (*f) () = $ac_func;
24768 #endif
24769 #ifdef __cplusplus
24770 }
24771 #endif
24772
24773 int
24774 main ()
24775 {
24776 return f != $ac_func;
24777   ;
24778   return 0;
24779 }
24780 _ACEOF
24781 rm -f conftest.$ac_objext conftest$ac_exeext
24782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24783   (eval $ac_link) 2>conftest.er1
24784   ac_status=$?
24785   grep -v '^ *+' conftest.er1 >conftest.err
24786   rm -f conftest.er1
24787   cat conftest.err >&5
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); } &&
24790          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792   (eval $ac_try) 2>&5
24793   ac_status=$?
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); }; } &&
24796          { ac_try='test -s conftest$ac_exeext'
24797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798   (eval $ac_try) 2>&5
24799   ac_status=$?
24800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801   (exit $ac_status); }; }; then
24802   eval "$as_ac_var=yes"
24803 else
24804   echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24806
24807 eval "$as_ac_var=no"
24808 fi
24809 rm -f conftest.err conftest.$ac_objext \
24810       conftest$ac_exeext conftest.$ac_ext
24811 fi
24812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24814 if test `eval echo '${'$as_ac_var'}'` = yes; then
24815   cat >>confdefs.h <<_ACEOF
24816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24817 _ACEOF
24818  have_cos=1
24819 fi
24820 done
24821
24822
24823 for ac_func in floor
24824 do
24825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24826 echo "$as_me:$LINENO: checking for $ac_func" >&5
24827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24828 if eval "test \"\${$as_ac_var+set}\" = set"; then
24829   echo $ECHO_N "(cached) $ECHO_C" >&6
24830 else
24831   cat >conftest.$ac_ext <<_ACEOF
24832 /* confdefs.h.  */
24833 _ACEOF
24834 cat confdefs.h >>conftest.$ac_ext
24835 cat >>conftest.$ac_ext <<_ACEOF
24836 /* end confdefs.h.  */
24837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24839 #define $ac_func innocuous_$ac_func
24840
24841 /* System header to define __stub macros and hopefully few prototypes,
24842     which can conflict with char $ac_func (); below.
24843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24844     <limits.h> exists even on freestanding compilers.  */
24845
24846 #ifdef __STDC__
24847 # include <limits.h>
24848 #else
24849 # include <assert.h>
24850 #endif
24851
24852 #undef $ac_func
24853
24854 /* Override any gcc2 internal prototype to avoid an error.  */
24855 #ifdef __cplusplus
24856 extern "C"
24857 {
24858 #endif
24859 /* We use char because int might match the return type of a gcc2
24860    builtin and then its argument prototype would still apply.  */
24861 char $ac_func ();
24862 /* The GNU C library defines this for functions which it implements
24863     to always fail with ENOSYS.  Some functions are actually named
24864     something starting with __ and the normal name is an alias.  */
24865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24866 choke me
24867 #else
24868 char (*f) () = $ac_func;
24869 #endif
24870 #ifdef __cplusplus
24871 }
24872 #endif
24873
24874 int
24875 main ()
24876 {
24877 return f != $ac_func;
24878   ;
24879   return 0;
24880 }
24881 _ACEOF
24882 rm -f conftest.$ac_objext conftest$ac_exeext
24883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24884   (eval $ac_link) 2>conftest.er1
24885   ac_status=$?
24886   grep -v '^ *+' conftest.er1 >conftest.err
24887   rm -f conftest.er1
24888   cat conftest.err >&5
24889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890   (exit $ac_status); } &&
24891          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893   (eval $ac_try) 2>&5
24894   ac_status=$?
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); }; } &&
24897          { ac_try='test -s conftest$ac_exeext'
24898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24899   (eval $ac_try) 2>&5
24900   ac_status=$?
24901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902   (exit $ac_status); }; }; then
24903   eval "$as_ac_var=yes"
24904 else
24905   echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24907
24908 eval "$as_ac_var=no"
24909 fi
24910 rm -f conftest.err conftest.$ac_objext \
24911       conftest$ac_exeext conftest.$ac_ext
24912 fi
24913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24915 if test `eval echo '${'$as_ac_var'}'` = yes; then
24916   cat >>confdefs.h <<_ACEOF
24917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24918 _ACEOF
24919  have_floor=1
24920 fi
24921 done
24922
24923 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24924 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24925 if test "$have_cos" = 1 -a "$have_floor" = 1; then
24926     echo "$as_me:$LINENO: result: yes" >&5
24927 echo "${ECHO_T}yes" >&6
24928 else
24929     echo "$as_me:$LINENO: result: no" >&5
24930 echo "${ECHO_T}no" >&6
24931     LIBS="$LIBS -lm"
24932     # use different functions to avoid configure caching
24933     have_sin=0
24934     have_ceil=0
24935
24936 for ac_func in sin
24937 do
24938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24939 echo "$as_me:$LINENO: checking for $ac_func" >&5
24940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24941 if eval "test \"\${$as_ac_var+set}\" = set"; then
24942   echo $ECHO_N "(cached) $ECHO_C" >&6
24943 else
24944   cat >conftest.$ac_ext <<_ACEOF
24945 /* confdefs.h.  */
24946 _ACEOF
24947 cat confdefs.h >>conftest.$ac_ext
24948 cat >>conftest.$ac_ext <<_ACEOF
24949 /* end confdefs.h.  */
24950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24952 #define $ac_func innocuous_$ac_func
24953
24954 /* System header to define __stub macros and hopefully few prototypes,
24955     which can conflict with char $ac_func (); below.
24956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24957     <limits.h> exists even on freestanding compilers.  */
24958
24959 #ifdef __STDC__
24960 # include <limits.h>
24961 #else
24962 # include <assert.h>
24963 #endif
24964
24965 #undef $ac_func
24966
24967 /* Override any gcc2 internal prototype to avoid an error.  */
24968 #ifdef __cplusplus
24969 extern "C"
24970 {
24971 #endif
24972 /* We use char because int might match the return type of a gcc2
24973    builtin and then its argument prototype would still apply.  */
24974 char $ac_func ();
24975 /* The GNU C library defines this for functions which it implements
24976     to always fail with ENOSYS.  Some functions are actually named
24977     something starting with __ and the normal name is an alias.  */
24978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24979 choke me
24980 #else
24981 char (*f) () = $ac_func;
24982 #endif
24983 #ifdef __cplusplus
24984 }
24985 #endif
24986
24987 int
24988 main ()
24989 {
24990 return f != $ac_func;
24991   ;
24992   return 0;
24993 }
24994 _ACEOF
24995 rm -f conftest.$ac_objext conftest$ac_exeext
24996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24997   (eval $ac_link) 2>conftest.er1
24998   ac_status=$?
24999   grep -v '^ *+' conftest.er1 >conftest.err
25000   rm -f conftest.er1
25001   cat conftest.err >&5
25002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003   (exit $ac_status); } &&
25004          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25006   (eval $ac_try) 2>&5
25007   ac_status=$?
25008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009   (exit $ac_status); }; } &&
25010          { ac_try='test -s conftest$ac_exeext'
25011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25012   (eval $ac_try) 2>&5
25013   ac_status=$?
25014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015   (exit $ac_status); }; }; then
25016   eval "$as_ac_var=yes"
25017 else
25018   echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25020
25021 eval "$as_ac_var=no"
25022 fi
25023 rm -f conftest.err conftest.$ac_objext \
25024       conftest$ac_exeext conftest.$ac_ext
25025 fi
25026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25028 if test `eval echo '${'$as_ac_var'}'` = yes; then
25029   cat >>confdefs.h <<_ACEOF
25030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25031 _ACEOF
25032  have_sin=1
25033 fi
25034 done
25035
25036
25037 for ac_func in ceil
25038 do
25039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25040 echo "$as_me:$LINENO: checking for $ac_func" >&5
25041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25042 if eval "test \"\${$as_ac_var+set}\" = set"; then
25043   echo $ECHO_N "(cached) $ECHO_C" >&6
25044 else
25045   cat >conftest.$ac_ext <<_ACEOF
25046 /* confdefs.h.  */
25047 _ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h.  */
25051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25053 #define $ac_func innocuous_$ac_func
25054
25055 /* System header to define __stub macros and hopefully few prototypes,
25056     which can conflict with char $ac_func (); below.
25057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25058     <limits.h> exists even on freestanding compilers.  */
25059
25060 #ifdef __STDC__
25061 # include <limits.h>
25062 #else
25063 # include <assert.h>
25064 #endif
25065
25066 #undef $ac_func
25067
25068 /* Override any gcc2 internal prototype to avoid an error.  */
25069 #ifdef __cplusplus
25070 extern "C"
25071 {
25072 #endif
25073 /* We use char because int might match the return type of a gcc2
25074    builtin and then its argument prototype would still apply.  */
25075 char $ac_func ();
25076 /* The GNU C library defines this for functions which it implements
25077     to always fail with ENOSYS.  Some functions are actually named
25078     something starting with __ and the normal name is an alias.  */
25079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25080 choke me
25081 #else
25082 char (*f) () = $ac_func;
25083 #endif
25084 #ifdef __cplusplus
25085 }
25086 #endif
25087
25088 int
25089 main ()
25090 {
25091 return f != $ac_func;
25092   ;
25093   return 0;
25094 }
25095 _ACEOF
25096 rm -f conftest.$ac_objext conftest$ac_exeext
25097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25098   (eval $ac_link) 2>conftest.er1
25099   ac_status=$?
25100   grep -v '^ *+' conftest.er1 >conftest.err
25101   rm -f conftest.er1
25102   cat conftest.err >&5
25103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104   (exit $ac_status); } &&
25105          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107   (eval $ac_try) 2>&5
25108   ac_status=$?
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); }; } &&
25111          { ac_try='test -s conftest$ac_exeext'
25112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113   (eval $ac_try) 2>&5
25114   ac_status=$?
25115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116   (exit $ac_status); }; }; then
25117   eval "$as_ac_var=yes"
25118 else
25119   echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25121
25122 eval "$as_ac_var=no"
25123 fi
25124 rm -f conftest.err conftest.$ac_objext \
25125       conftest$ac_exeext conftest.$ac_ext
25126 fi
25127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25129 if test `eval echo '${'$as_ac_var'}'` = yes; then
25130   cat >>confdefs.h <<_ACEOF
25131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25132 _ACEOF
25133  have_ceil=1
25134 fi
25135 done
25136
25137     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25138 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25139     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25140         echo "$as_me:$LINENO: result: yes" >&5
25141 echo "${ECHO_T}yes" >&6
25142     else
25143         echo "$as_me:$LINENO: result: no" >&5
25144 echo "${ECHO_T}no" >&6
25145         # not sure we should warn the user, crash, etc.
25146     fi
25147 fi
25148
25149
25150
25151 if test "$wxUSE_REGEX" != "no"; then
25152     cat >>confdefs.h <<\_ACEOF
25153 #define wxUSE_REGEX 1
25154 _ACEOF
25155
25156
25157     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25158         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25159 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25160         wxUSE_REGEX=builtin
25161     fi
25162
25163     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25164                         if test "${ac_cv_header_regex_h+set}" = set; then
25165   echo "$as_me:$LINENO: checking for regex.h" >&5
25166 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25167 if test "${ac_cv_header_regex_h+set}" = set; then
25168   echo $ECHO_N "(cached) $ECHO_C" >&6
25169 fi
25170 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25171 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25172 else
25173   # Is the header compilable?
25174 echo "$as_me:$LINENO: checking regex.h usability" >&5
25175 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25176 cat >conftest.$ac_ext <<_ACEOF
25177 /* confdefs.h.  */
25178 _ACEOF
25179 cat confdefs.h >>conftest.$ac_ext
25180 cat >>conftest.$ac_ext <<_ACEOF
25181 /* end confdefs.h.  */
25182 $ac_includes_default
25183 #include <regex.h>
25184 _ACEOF
25185 rm -f conftest.$ac_objext
25186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25187   (eval $ac_compile) 2>conftest.er1
25188   ac_status=$?
25189   grep -v '^ *+' conftest.er1 >conftest.err
25190   rm -f conftest.er1
25191   cat conftest.err >&5
25192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193   (exit $ac_status); } &&
25194          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196   (eval $ac_try) 2>&5
25197   ac_status=$?
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); }; } &&
25200          { ac_try='test -s conftest.$ac_objext'
25201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202   (eval $ac_try) 2>&5
25203   ac_status=$?
25204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205   (exit $ac_status); }; }; then
25206   ac_header_compiler=yes
25207 else
25208   echo "$as_me: failed program was:" >&5
25209 sed 's/^/| /' conftest.$ac_ext >&5
25210
25211 ac_header_compiler=no
25212 fi
25213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25215 echo "${ECHO_T}$ac_header_compiler" >&6
25216
25217 # Is the header present?
25218 echo "$as_me:$LINENO: checking regex.h presence" >&5
25219 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25220 cat >conftest.$ac_ext <<_ACEOF
25221 /* confdefs.h.  */
25222 _ACEOF
25223 cat confdefs.h >>conftest.$ac_ext
25224 cat >>conftest.$ac_ext <<_ACEOF
25225 /* end confdefs.h.  */
25226 #include <regex.h>
25227 _ACEOF
25228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25230   ac_status=$?
25231   grep -v '^ *+' conftest.er1 >conftest.err
25232   rm -f conftest.er1
25233   cat conftest.err >&5
25234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235   (exit $ac_status); } >/dev/null; then
25236   if test -s conftest.err; then
25237     ac_cpp_err=$ac_cxx_preproc_warn_flag
25238     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25239   else
25240     ac_cpp_err=
25241   fi
25242 else
25243   ac_cpp_err=yes
25244 fi
25245 if test -z "$ac_cpp_err"; then
25246   ac_header_preproc=yes
25247 else
25248   echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25250
25251   ac_header_preproc=no
25252 fi
25253 rm -f conftest.err conftest.$ac_ext
25254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25255 echo "${ECHO_T}$ac_header_preproc" >&6
25256
25257 # So?  What about this header?
25258 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25259   yes:no: )
25260     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25261 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25262     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25263 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25264     ac_header_preproc=yes
25265     ;;
25266   no:yes:* )
25267     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25268 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25269     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
25270 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
25271     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25272 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25273     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
25274 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25275     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25276 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25277     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25278 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25279     (
25280       cat <<\_ASBOX
25281 ## ----------------------------------------- ##
25282 ## Report this to wx-dev@lists.wxwidgets.org ##
25283 ## ----------------------------------------- ##
25284 _ASBOX
25285     ) |
25286       sed "s/^/$as_me: WARNING:     /" >&2
25287     ;;
25288 esac
25289 echo "$as_me:$LINENO: checking for regex.h" >&5
25290 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25291 if test "${ac_cv_header_regex_h+set}" = set; then
25292   echo $ECHO_N "(cached) $ECHO_C" >&6
25293 else
25294   ac_cv_header_regex_h=$ac_header_preproc
25295 fi
25296 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25297 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25298
25299 fi
25300 if test $ac_cv_header_regex_h = yes; then
25301
25302
25303 for ac_func in regcomp re_search
25304 do
25305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25306 echo "$as_me:$LINENO: checking for $ac_func" >&5
25307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25308 if eval "test \"\${$as_ac_var+set}\" = set"; then
25309   echo $ECHO_N "(cached) $ECHO_C" >&6
25310 else
25311   cat >conftest.$ac_ext <<_ACEOF
25312 /* confdefs.h.  */
25313 _ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h.  */
25317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25319 #define $ac_func innocuous_$ac_func
25320
25321 /* System header to define __stub macros and hopefully few prototypes,
25322     which can conflict with char $ac_func (); below.
25323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25324     <limits.h> exists even on freestanding compilers.  */
25325
25326 #ifdef __STDC__
25327 # include <limits.h>
25328 #else
25329 # include <assert.h>
25330 #endif
25331
25332 #undef $ac_func
25333
25334 /* Override any gcc2 internal prototype to avoid an error.  */
25335 #ifdef __cplusplus
25336 extern "C"
25337 {
25338 #endif
25339 /* We use char because int might match the return type of a gcc2
25340    builtin and then its argument prototype would still apply.  */
25341 char $ac_func ();
25342 /* The GNU C library defines this for functions which it implements
25343     to always fail with ENOSYS.  Some functions are actually named
25344     something starting with __ and the normal name is an alias.  */
25345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25346 choke me
25347 #else
25348 char (*f) () = $ac_func;
25349 #endif
25350 #ifdef __cplusplus
25351 }
25352 #endif
25353
25354 int
25355 main ()
25356 {
25357 return f != $ac_func;
25358   ;
25359   return 0;
25360 }
25361 _ACEOF
25362 rm -f conftest.$ac_objext conftest$ac_exeext
25363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25364   (eval $ac_link) 2>conftest.er1
25365   ac_status=$?
25366   grep -v '^ *+' conftest.er1 >conftest.err
25367   rm -f conftest.er1
25368   cat conftest.err >&5
25369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370   (exit $ac_status); } &&
25371          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25373   (eval $ac_try) 2>&5
25374   ac_status=$?
25375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376   (exit $ac_status); }; } &&
25377          { ac_try='test -s conftest$ac_exeext'
25378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25379   (eval $ac_try) 2>&5
25380   ac_status=$?
25381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382   (exit $ac_status); }; }; then
25383   eval "$as_ac_var=yes"
25384 else
25385   echo "$as_me: failed program was:" >&5
25386 sed 's/^/| /' conftest.$ac_ext >&5
25387
25388 eval "$as_ac_var=no"
25389 fi
25390 rm -f conftest.err conftest.$ac_objext \
25391       conftest$ac_exeext conftest.$ac_ext
25392 fi
25393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25395 if test `eval echo '${'$as_ac_var'}'` = yes; then
25396   cat >>confdefs.h <<_ACEOF
25397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25398 _ACEOF
25399
25400 fi
25401 done
25402
25403 fi
25404
25405
25406
25407         if test "x$ac_cv_func_regcomp" != "xyes"; then
25408             if test "$wxUSE_REGEX" = "sys" ; then
25409                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25410 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25411    { (exit 1); exit 1; }; }
25412             else
25413                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25414 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25415                 wxUSE_REGEX=builtin
25416             fi
25417         else
25418                         wxUSE_REGEX=sys
25419                         cat >>confdefs.h <<\_ACEOF
25420 #define WX_NO_REGEX_ADVANCED 1
25421 _ACEOF
25422
25423         fi
25424     fi
25425 fi
25426
25427
25428 ZLIB_LINK=
25429 if test "$wxUSE_ZLIB" != "no" ; then
25430     cat >>confdefs.h <<\_ACEOF
25431 #define wxUSE_ZLIB 1
25432 _ACEOF
25433
25434
25435     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25436                                                 if test "$USE_DARWIN" = 1; then
25437             system_zlib_h_ok="yes"
25438         else
25439                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25440 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25441 if test "${ac_cv_header_zlib_h+set}" = set; then
25442   echo $ECHO_N "(cached) $ECHO_C" >&6
25443 else
25444   if test "$cross_compiling" = yes; then
25445                       unset ac_cv_header_zlib_h
25446
25447 else
25448   cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h.  */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h.  */
25454
25455                         #include <zlib.h>
25456                         #include <stdio.h>
25457
25458                         int main()
25459                         {
25460                             FILE *f=fopen("conftestval", "w");
25461                             if (!f) exit(1);
25462                             fprintf(f, "%s",
25463                                     ZLIB_VERSION[0] == '1' &&
25464                                     (ZLIB_VERSION[2] > '1' ||
25465                                     (ZLIB_VERSION[2] == '1' &&
25466                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25467                             exit(0);
25468                         }
25469
25470 _ACEOF
25471 rm -f conftest$ac_exeext
25472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25473   (eval $ac_link) 2>&5
25474   ac_status=$?
25475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25478   (eval $ac_try) 2>&5
25479   ac_status=$?
25480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481   (exit $ac_status); }; }; then
25482   ac_cv_header_zlib_h=`cat conftestval`
25483 else
25484   echo "$as_me: program exited with status $ac_status" >&5
25485 echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25487
25488 ( exit $ac_status )
25489 ac_cv_header_zlib_h=no
25490 fi
25491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25492 fi
25493
25494 fi
25495 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25496 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25497                                     if test "${ac_cv_header_zlib_h+set}" = set; then
25498   echo "$as_me:$LINENO: checking for zlib.h" >&5
25499 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25500 if test "${ac_cv_header_zlib_h+set}" = set; then
25501   echo $ECHO_N "(cached) $ECHO_C" >&6
25502 fi
25503 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25504 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25505 else
25506   # Is the header compilable?
25507 echo "$as_me:$LINENO: checking zlib.h usability" >&5
25508 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25509 cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h.  */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h.  */
25515 $ac_includes_default
25516 #include <zlib.h>
25517 _ACEOF
25518 rm -f conftest.$ac_objext
25519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25520   (eval $ac_compile) 2>conftest.er1
25521   ac_status=$?
25522   grep -v '^ *+' conftest.er1 >conftest.err
25523   rm -f conftest.er1
25524   cat conftest.err >&5
25525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526   (exit $ac_status); } &&
25527          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529   (eval $ac_try) 2>&5
25530   ac_status=$?
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); }; } &&
25533          { ac_try='test -s conftest.$ac_objext'
25534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535   (eval $ac_try) 2>&5
25536   ac_status=$?
25537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538   (exit $ac_status); }; }; then
25539   ac_header_compiler=yes
25540 else
25541   echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25543
25544 ac_header_compiler=no
25545 fi
25546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25548 echo "${ECHO_T}$ac_header_compiler" >&6
25549
25550 # Is the header present?
25551 echo "$as_me:$LINENO: checking zlib.h presence" >&5
25552 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25553 cat >conftest.$ac_ext <<_ACEOF
25554 /* confdefs.h.  */
25555 _ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h.  */
25559 #include <zlib.h>
25560 _ACEOF
25561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25563   ac_status=$?
25564   grep -v '^ *+' conftest.er1 >conftest.err
25565   rm -f conftest.er1
25566   cat conftest.err >&5
25567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568   (exit $ac_status); } >/dev/null; then
25569   if test -s conftest.err; then
25570     ac_cpp_err=$ac_cxx_preproc_warn_flag
25571     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25572   else
25573     ac_cpp_err=
25574   fi
25575 else
25576   ac_cpp_err=yes
25577 fi
25578 if test -z "$ac_cpp_err"; then
25579   ac_header_preproc=yes
25580 else
25581   echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25583
25584   ac_header_preproc=no
25585 fi
25586 rm -f conftest.err conftest.$ac_ext
25587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25588 echo "${ECHO_T}$ac_header_preproc" >&6
25589
25590 # So?  What about this header?
25591 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25592   yes:no: )
25593     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25594 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25595     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25596 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25597     ac_header_preproc=yes
25598     ;;
25599   no:yes:* )
25600     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25601 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25602     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25603 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25604     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25605 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25606     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25607 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25608     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25609 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25610     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25611 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25612     (
25613       cat <<\_ASBOX
25614 ## ----------------------------------------- ##
25615 ## Report this to wx-dev@lists.wxwidgets.org ##
25616 ## ----------------------------------------- ##
25617 _ASBOX
25618     ) |
25619       sed "s/^/$as_me: WARNING:     /" >&2
25620     ;;
25621 esac
25622 echo "$as_me:$LINENO: checking for zlib.h" >&5
25623 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25624 if test "${ac_cv_header_zlib_h+set}" = set; then
25625   echo $ECHO_N "(cached) $ECHO_C" >&6
25626 else
25627   ac_cv_header_zlib_h=$ac_header_preproc
25628 fi
25629 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25630 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25631
25632 fi
25633
25634
25635
25636             system_zlib_h_ok=$ac_cv_header_zlib_h
25637         fi
25638
25639         if test "$system_zlib_h_ok" = "yes"; then
25640             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25641 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25642 if test "${ac_cv_lib_z_deflate+set}" = set; then
25643   echo $ECHO_N "(cached) $ECHO_C" >&6
25644 else
25645   ac_check_lib_save_LIBS=$LIBS
25646 LIBS="-lz  $LIBS"
25647 cat >conftest.$ac_ext <<_ACEOF
25648 /* confdefs.h.  */
25649 _ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h.  */
25653
25654 /* Override any gcc2 internal prototype to avoid an error.  */
25655 #ifdef __cplusplus
25656 extern "C"
25657 #endif
25658 /* We use char because int might match the return type of a gcc2
25659    builtin and then its argument prototype would still apply.  */
25660 char deflate ();
25661 int
25662 main ()
25663 {
25664 deflate ();
25665   ;
25666   return 0;
25667 }
25668 _ACEOF
25669 rm -f conftest.$ac_objext conftest$ac_exeext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25671   (eval $ac_link) 2>conftest.er1
25672   ac_status=$?
25673   grep -v '^ *+' conftest.er1 >conftest.err
25674   rm -f conftest.er1
25675   cat conftest.err >&5
25676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); } &&
25678          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680   (eval $ac_try) 2>&5
25681   ac_status=$?
25682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); }; } &&
25684          { ac_try='test -s conftest$ac_exeext'
25685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686   (eval $ac_try) 2>&5
25687   ac_status=$?
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); }; }; then
25690   ac_cv_lib_z_deflate=yes
25691 else
25692   echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25694
25695 ac_cv_lib_z_deflate=no
25696 fi
25697 rm -f conftest.err conftest.$ac_objext \
25698       conftest$ac_exeext conftest.$ac_ext
25699 LIBS=$ac_check_lib_save_LIBS
25700 fi
25701 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25702 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25703 if test $ac_cv_lib_z_deflate = yes; then
25704   ZLIB_LINK=" -lz"
25705 fi
25706
25707         fi
25708
25709         if test "x$ZLIB_LINK" = "x" ; then
25710             if test "$wxUSE_ZLIB" = "sys" ; then
25711                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25712 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25713    { (exit 1); exit 1; }; }
25714             else
25715                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25716 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25717                 wxUSE_ZLIB=builtin
25718             fi
25719         else
25720                         wxUSE_ZLIB=sys
25721         fi
25722     fi
25723 fi
25724
25725
25726 PNG_LINK=
25727 if test "$wxUSE_LIBPNG" != "no" ; then
25728     cat >>confdefs.h <<\_ACEOF
25729 #define wxUSE_LIBPNG 1
25730 _ACEOF
25731
25732
25733     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25734         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25735 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25736         wxUSE_LIBPNG=sys
25737     fi
25738
25739                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25740         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25741 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25742         wxUSE_LIBPNG=builtin
25743     fi
25744
25745     if test "$wxUSE_MGL" != 1 ; then
25746                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25747                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25748 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25749 if test "${ac_cv_header_png_h+set}" = set; then
25750   echo $ECHO_N "(cached) $ECHO_C" >&6
25751 else
25752   if test "$cross_compiling" = yes; then
25753                       unset ac_cv_header_png_h
25754
25755 else
25756   cat >conftest.$ac_ext <<_ACEOF
25757 /* confdefs.h.  */
25758 _ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h.  */
25762
25763                         #include <png.h>
25764                         #include <stdio.h>
25765
25766                         int main()
25767                         {
25768                             FILE *f=fopen("conftestval", "w");
25769                             if (!f) exit(1);
25770                             fprintf(f, "%s",
25771                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
25772                             exit(0);
25773                         }
25774
25775 _ACEOF
25776 rm -f conftest$ac_exeext
25777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25778   (eval $ac_link) 2>&5
25779   ac_status=$?
25780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25783   (eval $ac_try) 2>&5
25784   ac_status=$?
25785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786   (exit $ac_status); }; }; then
25787   ac_cv_header_png_h=`cat conftestval`
25788 else
25789   echo "$as_me: program exited with status $ac_status" >&5
25790 echo "$as_me: failed program was:" >&5
25791 sed 's/^/| /' conftest.$ac_ext >&5
25792
25793 ( exit $ac_status )
25794 ac_cv_header_png_h=no
25795 fi
25796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25797 fi
25798
25799 fi
25800 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25801 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25802             if test "${ac_cv_header_png_h+set}" = set; then
25803   echo "$as_me:$LINENO: checking for png.h" >&5
25804 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25805 if test "${ac_cv_header_png_h+set}" = set; then
25806   echo $ECHO_N "(cached) $ECHO_C" >&6
25807 fi
25808 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25809 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25810 else
25811   # Is the header compilable?
25812 echo "$as_me:$LINENO: checking png.h usability" >&5
25813 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25814 cat >conftest.$ac_ext <<_ACEOF
25815 /* confdefs.h.  */
25816 _ACEOF
25817 cat confdefs.h >>conftest.$ac_ext
25818 cat >>conftest.$ac_ext <<_ACEOF
25819 /* end confdefs.h.  */
25820 $ac_includes_default
25821 #include <png.h>
25822 _ACEOF
25823 rm -f conftest.$ac_objext
25824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25825   (eval $ac_compile) 2>conftest.er1
25826   ac_status=$?
25827   grep -v '^ *+' conftest.er1 >conftest.err
25828   rm -f conftest.er1
25829   cat conftest.err >&5
25830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); } &&
25832          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); }; } &&
25838          { ac_try='test -s conftest.$ac_objext'
25839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840   (eval $ac_try) 2>&5
25841   ac_status=$?
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); }; }; then
25844   ac_header_compiler=yes
25845 else
25846   echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25848
25849 ac_header_compiler=no
25850 fi
25851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25853 echo "${ECHO_T}$ac_header_compiler" >&6
25854
25855 # Is the header present?
25856 echo "$as_me:$LINENO: checking png.h presence" >&5
25857 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25858 cat >conftest.$ac_ext <<_ACEOF
25859 /* confdefs.h.  */
25860 _ACEOF
25861 cat confdefs.h >>conftest.$ac_ext
25862 cat >>conftest.$ac_ext <<_ACEOF
25863 /* end confdefs.h.  */
25864 #include <png.h>
25865 _ACEOF
25866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25868   ac_status=$?
25869   grep -v '^ *+' conftest.er1 >conftest.err
25870   rm -f conftest.er1
25871   cat conftest.err >&5
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); } >/dev/null; then
25874   if test -s conftest.err; then
25875     ac_cpp_err=$ac_cxx_preproc_warn_flag
25876     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25877   else
25878     ac_cpp_err=
25879   fi
25880 else
25881   ac_cpp_err=yes
25882 fi
25883 if test -z "$ac_cpp_err"; then
25884   ac_header_preproc=yes
25885 else
25886   echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25888
25889   ac_header_preproc=no
25890 fi
25891 rm -f conftest.err conftest.$ac_ext
25892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25893 echo "${ECHO_T}$ac_header_preproc" >&6
25894
25895 # So?  What about this header?
25896 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25897   yes:no: )
25898     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25899 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25900     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25901 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25902     ac_header_preproc=yes
25903     ;;
25904   no:yes:* )
25905     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25906 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
25907     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
25908 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
25909     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25910 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25911     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
25912 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25913     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25914 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
25915     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25916 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
25917     (
25918       cat <<\_ASBOX
25919 ## ----------------------------------------- ##
25920 ## Report this to wx-dev@lists.wxwidgets.org ##
25921 ## ----------------------------------------- ##
25922 _ASBOX
25923     ) |
25924       sed "s/^/$as_me: WARNING:     /" >&2
25925     ;;
25926 esac
25927 echo "$as_me:$LINENO: checking for png.h" >&5
25928 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25929 if test "${ac_cv_header_png_h+set}" = set; then
25930   echo $ECHO_N "(cached) $ECHO_C" >&6
25931 else
25932   ac_cv_header_png_h=$ac_header_preproc
25933 fi
25934 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25935 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25936
25937 fi
25938
25939
25940
25941             if test "$ac_cv_header_png_h" = "yes"; then
25942                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25943 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25944 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25945   echo $ECHO_N "(cached) $ECHO_C" >&6
25946 else
25947   ac_check_lib_save_LIBS=$LIBS
25948 LIBS="-lpng -lz -lm $LIBS"
25949 cat >conftest.$ac_ext <<_ACEOF
25950 /* confdefs.h.  */
25951 _ACEOF
25952 cat confdefs.h >>conftest.$ac_ext
25953 cat >>conftest.$ac_ext <<_ACEOF
25954 /* end confdefs.h.  */
25955
25956 /* Override any gcc2 internal prototype to avoid an error.  */
25957 #ifdef __cplusplus
25958 extern "C"
25959 #endif
25960 /* We use char because int might match the return type of a gcc2
25961    builtin and then its argument prototype would still apply.  */
25962 char png_check_sig ();
25963 int
25964 main ()
25965 {
25966 png_check_sig ();
25967   ;
25968   return 0;
25969 }
25970 _ACEOF
25971 rm -f conftest.$ac_objext conftest$ac_exeext
25972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25973   (eval $ac_link) 2>conftest.er1
25974   ac_status=$?
25975   grep -v '^ *+' conftest.er1 >conftest.err
25976   rm -f conftest.er1
25977   cat conftest.err >&5
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); } &&
25980          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25982   (eval $ac_try) 2>&5
25983   ac_status=$?
25984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985   (exit $ac_status); }; } &&
25986          { ac_try='test -s conftest$ac_exeext'
25987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25988   (eval $ac_try) 2>&5
25989   ac_status=$?
25990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991   (exit $ac_status); }; }; then
25992   ac_cv_lib_png_png_check_sig=yes
25993 else
25994   echo "$as_me: failed program was:" >&5
25995 sed 's/^/| /' conftest.$ac_ext >&5
25996
25997 ac_cv_lib_png_png_check_sig=no
25998 fi
25999 rm -f conftest.err conftest.$ac_objext \
26000       conftest$ac_exeext conftest.$ac_ext
26001 LIBS=$ac_check_lib_save_LIBS
26002 fi
26003 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26004 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26005 if test $ac_cv_lib_png_png_check_sig = yes; then
26006   PNG_LINK=" -lpng -lz"
26007 fi
26008
26009             fi
26010
26011             if test "x$PNG_LINK" = "x" ; then
26012                 if test "$wxUSE_LIBPNG" = "sys" ; then
26013                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26014 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26015    { (exit 1); exit 1; }; }
26016                 else
26017                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26018 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26019                     wxUSE_LIBPNG=builtin
26020                 fi
26021             else
26022                                 wxUSE_LIBPNG=sys
26023             fi
26024         fi
26025     fi
26026
26027     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26028 fi
26029
26030
26031 JPEG_LINK=
26032 if test "$wxUSE_LIBJPEG" != "no" ; then
26033     cat >>confdefs.h <<\_ACEOF
26034 #define wxUSE_LIBJPEG 1
26035 _ACEOF
26036
26037
26038     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26039         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26040 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26041         wxUSE_LIBJPEG=sys
26042     fi
26043
26044     if test "$wxUSE_MGL" != 1 ; then
26045                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26046                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26047 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26048             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26049   echo $ECHO_N "(cached) $ECHO_C" >&6
26050 else
26051   cat >conftest.$ac_ext <<_ACEOF
26052 /* confdefs.h.  */
26053 _ACEOF
26054 cat confdefs.h >>conftest.$ac_ext
26055 cat >>conftest.$ac_ext <<_ACEOF
26056 /* end confdefs.h.  */
26057
26058                         #undef HAVE_STDLIB_H
26059                         #include <stdio.h>
26060                         #include <jpeglib.h>
26061
26062 int
26063 main ()
26064 {
26065
26066
26067   ;
26068   return 0;
26069 }
26070 _ACEOF
26071 rm -f conftest.$ac_objext
26072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26073   (eval $ac_compile) 2>conftest.er1
26074   ac_status=$?
26075   grep -v '^ *+' conftest.er1 >conftest.err
26076   rm -f conftest.er1
26077   cat conftest.err >&5
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); } &&
26080          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082   (eval $ac_try) 2>&5
26083   ac_status=$?
26084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); }; } &&
26086          { ac_try='test -s conftest.$ac_objext'
26087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26088   (eval $ac_try) 2>&5
26089   ac_status=$?
26090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091   (exit $ac_status); }; }; then
26092   ac_cv_header_jpeglib_h=yes
26093 else
26094   echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.$ac_ext >&5
26096
26097 ac_cv_header_jpeglib_h=no
26098
26099 fi
26100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26101
26102 fi
26103
26104             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26105 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26106
26107             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26108                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26109 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26110 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26111   echo $ECHO_N "(cached) $ECHO_C" >&6
26112 else
26113   ac_check_lib_save_LIBS=$LIBS
26114 LIBS="-ljpeg  $LIBS"
26115 cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h.  */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h.  */
26121
26122 /* Override any gcc2 internal prototype to avoid an error.  */
26123 #ifdef __cplusplus
26124 extern "C"
26125 #endif
26126 /* We use char because int might match the return type of a gcc2
26127    builtin and then its argument prototype would still apply.  */
26128 char jpeg_read_header ();
26129 int
26130 main ()
26131 {
26132 jpeg_read_header ();
26133   ;
26134   return 0;
26135 }
26136 _ACEOF
26137 rm -f conftest.$ac_objext conftest$ac_exeext
26138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26139   (eval $ac_link) 2>conftest.er1
26140   ac_status=$?
26141   grep -v '^ *+' conftest.er1 >conftest.err
26142   rm -f conftest.er1
26143   cat conftest.err >&5
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); } &&
26146          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148   (eval $ac_try) 2>&5
26149   ac_status=$?
26150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151   (exit $ac_status); }; } &&
26152          { ac_try='test -s conftest$ac_exeext'
26153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154   (eval $ac_try) 2>&5
26155   ac_status=$?
26156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157   (exit $ac_status); }; }; then
26158   ac_cv_lib_jpeg_jpeg_read_header=yes
26159 else
26160   echo "$as_me: failed program was:" >&5
26161 sed 's/^/| /' conftest.$ac_ext >&5
26162
26163 ac_cv_lib_jpeg_jpeg_read_header=no
26164 fi
26165 rm -f conftest.err conftest.$ac_objext \
26166       conftest$ac_exeext conftest.$ac_ext
26167 LIBS=$ac_check_lib_save_LIBS
26168 fi
26169 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26170 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26171 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26172   JPEG_LINK=" -ljpeg"
26173 fi
26174
26175             fi
26176
26177             if test "x$JPEG_LINK" = "x" ; then
26178                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26179                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26180 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26181    { (exit 1); exit 1; }; }
26182                 else
26183                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26184 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26185                     wxUSE_LIBJPEG=builtin
26186                 fi
26187             else
26188                                 wxUSE_LIBJPEG=sys
26189             fi
26190         fi
26191     fi
26192 fi
26193
26194
26195 TIFF_LINK=
26196 TIFF_PREREQ_LINKS=-lm
26197 if test "$wxUSE_LIBTIFF" != "no" ; then
26198     cat >>confdefs.h <<\_ACEOF
26199 #define wxUSE_LIBTIFF 1
26200 _ACEOF
26201
26202
26203     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26204                         if test "$wxUSE_LIBJPEG" = "sys"; then
26205             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26206         fi
26207         if test "$wxUSE_ZLIB" = "sys"; then
26208             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26209         fi
26210         if test "${ac_cv_header_tiffio_h+set}" = set; then
26211   echo "$as_me:$LINENO: checking for tiffio.h" >&5
26212 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26213 if test "${ac_cv_header_tiffio_h+set}" = set; then
26214   echo $ECHO_N "(cached) $ECHO_C" >&6
26215 fi
26216 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26217 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26218 else
26219   # Is the header compilable?
26220 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26221 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26222 cat >conftest.$ac_ext <<_ACEOF
26223 /* confdefs.h.  */
26224 _ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h.  */
26228 $ac_includes_default
26229 #include <tiffio.h>
26230 _ACEOF
26231 rm -f conftest.$ac_objext
26232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26233   (eval $ac_compile) 2>conftest.er1
26234   ac_status=$?
26235   grep -v '^ *+' conftest.er1 >conftest.err
26236   rm -f conftest.er1
26237   cat conftest.err >&5
26238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239   (exit $ac_status); } &&
26240          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26242   (eval $ac_try) 2>&5
26243   ac_status=$?
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); }; } &&
26246          { ac_try='test -s conftest.$ac_objext'
26247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248   (eval $ac_try) 2>&5
26249   ac_status=$?
26250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251   (exit $ac_status); }; }; then
26252   ac_header_compiler=yes
26253 else
26254   echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26256
26257 ac_header_compiler=no
26258 fi
26259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26261 echo "${ECHO_T}$ac_header_compiler" >&6
26262
26263 # Is the header present?
26264 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26265 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26266 cat >conftest.$ac_ext <<_ACEOF
26267 /* confdefs.h.  */
26268 _ACEOF
26269 cat confdefs.h >>conftest.$ac_ext
26270 cat >>conftest.$ac_ext <<_ACEOF
26271 /* end confdefs.h.  */
26272 #include <tiffio.h>
26273 _ACEOF
26274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26276   ac_status=$?
26277   grep -v '^ *+' conftest.er1 >conftest.err
26278   rm -f conftest.er1
26279   cat conftest.err >&5
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); } >/dev/null; then
26282   if test -s conftest.err; then
26283     ac_cpp_err=$ac_cxx_preproc_warn_flag
26284     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26285   else
26286     ac_cpp_err=
26287   fi
26288 else
26289   ac_cpp_err=yes
26290 fi
26291 if test -z "$ac_cpp_err"; then
26292   ac_header_preproc=yes
26293 else
26294   echo "$as_me: failed program was:" >&5
26295 sed 's/^/| /' conftest.$ac_ext >&5
26296
26297   ac_header_preproc=no
26298 fi
26299 rm -f conftest.err conftest.$ac_ext
26300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26301 echo "${ECHO_T}$ac_header_preproc" >&6
26302
26303 # So?  What about this header?
26304 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26305   yes:no: )
26306     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26307 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26308     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26309 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26310     ac_header_preproc=yes
26311     ;;
26312   no:yes:* )
26313     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26314 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
26315     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
26316 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
26317     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26318 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26319     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
26320 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26321     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26322 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
26323     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26324 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
26325     (
26326       cat <<\_ASBOX
26327 ## ----------------------------------------- ##
26328 ## Report this to wx-dev@lists.wxwidgets.org ##
26329 ## ----------------------------------------- ##
26330 _ASBOX
26331     ) |
26332       sed "s/^/$as_me: WARNING:     /" >&2
26333     ;;
26334 esac
26335 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26336 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26337 if test "${ac_cv_header_tiffio_h+set}" = set; then
26338   echo $ECHO_N "(cached) $ECHO_C" >&6
26339 else
26340   ac_cv_header_tiffio_h=$ac_header_preproc
26341 fi
26342 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26343 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26344
26345 fi
26346 if test $ac_cv_header_tiffio_h = yes; then
26347
26348                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26349 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26350 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26351   echo $ECHO_N "(cached) $ECHO_C" >&6
26352 else
26353   ac_check_lib_save_LIBS=$LIBS
26354 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26355 cat >conftest.$ac_ext <<_ACEOF
26356 /* confdefs.h.  */
26357 _ACEOF
26358 cat confdefs.h >>conftest.$ac_ext
26359 cat >>conftest.$ac_ext <<_ACEOF
26360 /* end confdefs.h.  */
26361
26362 /* Override any gcc2 internal prototype to avoid an error.  */
26363 #ifdef __cplusplus
26364 extern "C"
26365 #endif
26366 /* We use char because int might match the return type of a gcc2
26367    builtin and then its argument prototype would still apply.  */
26368 char TIFFError ();
26369 int
26370 main ()
26371 {
26372 TIFFError ();
26373   ;
26374   return 0;
26375 }
26376 _ACEOF
26377 rm -f conftest.$ac_objext conftest$ac_exeext
26378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26379   (eval $ac_link) 2>conftest.er1
26380   ac_status=$?
26381   grep -v '^ *+' conftest.er1 >conftest.err
26382   rm -f conftest.er1
26383   cat conftest.err >&5
26384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385   (exit $ac_status); } &&
26386          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26388   (eval $ac_try) 2>&5
26389   ac_status=$?
26390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391   (exit $ac_status); }; } &&
26392          { ac_try='test -s conftest$ac_exeext'
26393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26394   (eval $ac_try) 2>&5
26395   ac_status=$?
26396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397   (exit $ac_status); }; }; then
26398   ac_cv_lib_tiff_TIFFError=yes
26399 else
26400   echo "$as_me: failed program was:" >&5
26401 sed 's/^/| /' conftest.$ac_ext >&5
26402
26403 ac_cv_lib_tiff_TIFFError=no
26404 fi
26405 rm -f conftest.err conftest.$ac_objext \
26406       conftest$ac_exeext conftest.$ac_ext
26407 LIBS=$ac_check_lib_save_LIBS
26408 fi
26409 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26410 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26411 if test $ac_cv_lib_tiff_TIFFError = yes; then
26412   TIFF_LINK=" -ltiff"
26413 fi
26414
26415
26416
26417 fi
26418
26419
26420
26421         if test "x$TIFF_LINK" = "x" ; then
26422             if test "$wxUSE_LIBTIFF" = "sys" ; then
26423                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26424 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26425    { (exit 1); exit 1; }; }
26426             else
26427                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26428 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26429                 wxUSE_LIBTIFF=builtin
26430             fi
26431         else
26432                         wxUSE_LIBTIFF=sys
26433         fi
26434     fi
26435 fi
26436
26437
26438 if test "$wxUSE_WCHAR_T" != "yes"; then
26439     if test "$wxUSE_EXPAT" != "no"; then
26440         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26441 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26442         wxUSE_EXPAT=no
26443     fi
26444     if test "$wxUSE_XML" != "no"; then
26445         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26446 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26447         wxUSE_XML=no
26448     fi
26449 fi
26450
26451 if test "$wxUSE_EXPAT" != "no"; then
26452     wxUSE_XML=yes
26453     cat >>confdefs.h <<\_ACEOF
26454 #define wxUSE_EXPAT 1
26455 _ACEOF
26456
26457     cat >>confdefs.h <<\_ACEOF
26458 #define wxUSE_XML 1
26459 _ACEOF
26460
26461
26462     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26463         if test "${ac_cv_header_expat_h+set}" = set; then
26464   echo "$as_me:$LINENO: checking for expat.h" >&5
26465 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26466 if test "${ac_cv_header_expat_h+set}" = set; then
26467   echo $ECHO_N "(cached) $ECHO_C" >&6
26468 fi
26469 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26470 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26471 else
26472   # Is the header compilable?
26473 echo "$as_me:$LINENO: checking expat.h usability" >&5
26474 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26475 cat >conftest.$ac_ext <<_ACEOF
26476 /* confdefs.h.  */
26477 _ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h.  */
26481 $ac_includes_default
26482 #include <expat.h>
26483 _ACEOF
26484 rm -f conftest.$ac_objext
26485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26486   (eval $ac_compile) 2>conftest.er1
26487   ac_status=$?
26488   grep -v '^ *+' conftest.er1 >conftest.err
26489   rm -f conftest.er1
26490   cat conftest.err >&5
26491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492   (exit $ac_status); } &&
26493          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495   (eval $ac_try) 2>&5
26496   ac_status=$?
26497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498   (exit $ac_status); }; } &&
26499          { ac_try='test -s conftest.$ac_objext'
26500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501   (eval $ac_try) 2>&5
26502   ac_status=$?
26503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504   (exit $ac_status); }; }; then
26505   ac_header_compiler=yes
26506 else
26507   echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26509
26510 ac_header_compiler=no
26511 fi
26512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26514 echo "${ECHO_T}$ac_header_compiler" >&6
26515
26516 # Is the header present?
26517 echo "$as_me:$LINENO: checking expat.h presence" >&5
26518 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26519 cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h.  */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h.  */
26525 #include <expat.h>
26526 _ACEOF
26527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26529   ac_status=$?
26530   grep -v '^ *+' conftest.er1 >conftest.err
26531   rm -f conftest.er1
26532   cat conftest.err >&5
26533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534   (exit $ac_status); } >/dev/null; then
26535   if test -s conftest.err; then
26536     ac_cpp_err=$ac_cxx_preproc_warn_flag
26537     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26538   else
26539     ac_cpp_err=
26540   fi
26541 else
26542   ac_cpp_err=yes
26543 fi
26544 if test -z "$ac_cpp_err"; then
26545   ac_header_preproc=yes
26546 else
26547   echo "$as_me: failed program was:" >&5
26548 sed 's/^/| /' conftest.$ac_ext >&5
26549
26550   ac_header_preproc=no
26551 fi
26552 rm -f conftest.err conftest.$ac_ext
26553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26554 echo "${ECHO_T}$ac_header_preproc" >&6
26555
26556 # So?  What about this header?
26557 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26558   yes:no: )
26559     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26560 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26561     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26562 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26563     ac_header_preproc=yes
26564     ;;
26565   no:yes:* )
26566     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26567 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
26568     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
26569 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
26570     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26571 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26572     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
26573 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26574     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26575 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
26576     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26577 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
26578     (
26579       cat <<\_ASBOX
26580 ## ----------------------------------------- ##
26581 ## Report this to wx-dev@lists.wxwidgets.org ##
26582 ## ----------------------------------------- ##
26583 _ASBOX
26584     ) |
26585       sed "s/^/$as_me: WARNING:     /" >&2
26586     ;;
26587 esac
26588 echo "$as_me:$LINENO: checking for expat.h" >&5
26589 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26590 if test "${ac_cv_header_expat_h+set}" = set; then
26591   echo $ECHO_N "(cached) $ECHO_C" >&6
26592 else
26593   ac_cv_header_expat_h=$ac_header_preproc
26594 fi
26595 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26596 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26597
26598 fi
26599 if test $ac_cv_header_expat_h = yes; then
26600   found_expat_h=1
26601 fi
26602
26603
26604         if test "x$found_expat_h" = "x1"; then
26605                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26606 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26607 if test "${wx_cv_expat_is_not_broken+set}" = set; then
26608   echo $ECHO_N "(cached) $ECHO_C" >&6
26609 else
26610
26611                 cat >conftest.$ac_ext <<_ACEOF
26612 /* confdefs.h.  */
26613 _ACEOF
26614 cat confdefs.h >>conftest.$ac_ext
26615 cat >>conftest.$ac_ext <<_ACEOF
26616 /* end confdefs.h.  */
26617 #include <expat.h>
26618 int
26619 main ()
26620 {
26621
26622   ;
26623   return 0;
26624 }
26625 _ACEOF
26626 rm -f conftest.$ac_objext
26627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26628   (eval $ac_compile) 2>conftest.er1
26629   ac_status=$?
26630   grep -v '^ *+' conftest.er1 >conftest.err
26631   rm -f conftest.er1
26632   cat conftest.err >&5
26633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634   (exit $ac_status); } &&
26635          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637   (eval $ac_try) 2>&5
26638   ac_status=$?
26639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640   (exit $ac_status); }; } &&
26641          { ac_try='test -s conftest.$ac_objext'
26642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26643   (eval $ac_try) 2>&5
26644   ac_status=$?
26645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); }; }; then
26647   wx_cv_expat_is_not_broken=yes
26648 else
26649   echo "$as_me: failed program was:" >&5
26650 sed 's/^/| /' conftest.$ac_ext >&5
26651
26652 wx_cv_expat_is_not_broken=no
26653
26654 fi
26655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26656
26657
26658 fi
26659 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26660 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26661             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26662                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26663 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26664 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26665   echo $ECHO_N "(cached) $ECHO_C" >&6
26666 else
26667   ac_check_lib_save_LIBS=$LIBS
26668 LIBS="-lexpat  $LIBS"
26669 cat >conftest.$ac_ext <<_ACEOF
26670 /* confdefs.h.  */
26671 _ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h.  */
26675
26676 /* Override any gcc2 internal prototype to avoid an error.  */
26677 #ifdef __cplusplus
26678 extern "C"
26679 #endif
26680 /* We use char because int might match the return type of a gcc2
26681    builtin and then its argument prototype would still apply.  */
26682 char XML_ParserCreate ();
26683 int
26684 main ()
26685 {
26686 XML_ParserCreate ();
26687   ;
26688   return 0;
26689 }
26690 _ACEOF
26691 rm -f conftest.$ac_objext conftest$ac_exeext
26692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26693   (eval $ac_link) 2>conftest.er1
26694   ac_status=$?
26695   grep -v '^ *+' conftest.er1 >conftest.err
26696   rm -f conftest.er1
26697   cat conftest.err >&5
26698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699   (exit $ac_status); } &&
26700          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26702   (eval $ac_try) 2>&5
26703   ac_status=$?
26704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705   (exit $ac_status); }; } &&
26706          { ac_try='test -s conftest$ac_exeext'
26707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26708   (eval $ac_try) 2>&5
26709   ac_status=$?
26710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711   (exit $ac_status); }; }; then
26712   ac_cv_lib_expat_XML_ParserCreate=yes
26713 else
26714   echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26716
26717 ac_cv_lib_expat_XML_ParserCreate=no
26718 fi
26719 rm -f conftest.err conftest.$ac_objext \
26720       conftest$ac_exeext conftest.$ac_ext
26721 LIBS=$ac_check_lib_save_LIBS
26722 fi
26723 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26724 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26725 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26726   EXPAT_LINK=" -lexpat"
26727 fi
26728
26729             fi
26730         fi
26731         if test "x$EXPAT_LINK" = "x" ; then
26732             if test "$wxUSE_EXPAT" = "sys" ; then
26733                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26734 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26735    { (exit 1); exit 1; }; }
26736             else
26737                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26738 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26739                 wxUSE_EXPAT=builtin
26740             fi
26741         else
26742                         wxUSE_EXPAT=sys
26743         fi
26744     fi
26745     if test "$wxUSE_EXPAT" = "builtin" ; then
26746
26747
26748 subdirs="$subdirs src/expat"
26749
26750     fi
26751 fi
26752
26753
26754
26755 if test "$wxUSE_LIBMSPACK" != "no"; then
26756     if test "${ac_cv_header_mspack_h+set}" = set; then
26757   echo "$as_me:$LINENO: checking for mspack.h" >&5
26758 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26759 if test "${ac_cv_header_mspack_h+set}" = set; then
26760   echo $ECHO_N "(cached) $ECHO_C" >&6
26761 fi
26762 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26763 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26764 else
26765   # Is the header compilable?
26766 echo "$as_me:$LINENO: checking mspack.h usability" >&5
26767 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26768 cat >conftest.$ac_ext <<_ACEOF
26769 /* confdefs.h.  */
26770 _ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h.  */
26774 $ac_includes_default
26775 #include <mspack.h>
26776 _ACEOF
26777 rm -f conftest.$ac_objext
26778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26779   (eval $ac_compile) 2>conftest.er1
26780   ac_status=$?
26781   grep -v '^ *+' conftest.er1 >conftest.err
26782   rm -f conftest.er1
26783   cat conftest.err >&5
26784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785   (exit $ac_status); } &&
26786          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26788   (eval $ac_try) 2>&5
26789   ac_status=$?
26790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791   (exit $ac_status); }; } &&
26792          { ac_try='test -s conftest.$ac_objext'
26793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794   (eval $ac_try) 2>&5
26795   ac_status=$?
26796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797   (exit $ac_status); }; }; then
26798   ac_header_compiler=yes
26799 else
26800   echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26802
26803 ac_header_compiler=no
26804 fi
26805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26807 echo "${ECHO_T}$ac_header_compiler" >&6
26808
26809 # Is the header present?
26810 echo "$as_me:$LINENO: checking mspack.h presence" >&5
26811 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26812 cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818 #include <mspack.h>
26819 _ACEOF
26820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26822   ac_status=$?
26823   grep -v '^ *+' conftest.er1 >conftest.err
26824   rm -f conftest.er1
26825   cat conftest.err >&5
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); } >/dev/null; then
26828   if test -s conftest.err; then
26829     ac_cpp_err=$ac_cxx_preproc_warn_flag
26830     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26831   else
26832     ac_cpp_err=
26833   fi
26834 else
26835   ac_cpp_err=yes
26836 fi
26837 if test -z "$ac_cpp_err"; then
26838   ac_header_preproc=yes
26839 else
26840   echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26842
26843   ac_header_preproc=no
26844 fi
26845 rm -f conftest.err conftest.$ac_ext
26846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26847 echo "${ECHO_T}$ac_header_preproc" >&6
26848
26849 # So?  What about this header?
26850 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26851   yes:no: )
26852     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26853 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26854     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26855 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26856     ac_header_preproc=yes
26857     ;;
26858   no:yes:* )
26859     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26860 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
26861     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
26862 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
26863     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26864 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26865     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
26866 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26867     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26868 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
26869     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26870 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
26871     (
26872       cat <<\_ASBOX
26873 ## ----------------------------------------- ##
26874 ## Report this to wx-dev@lists.wxwidgets.org ##
26875 ## ----------------------------------------- ##
26876 _ASBOX
26877     ) |
26878       sed "s/^/$as_me: WARNING:     /" >&2
26879     ;;
26880 esac
26881 echo "$as_me:$LINENO: checking for mspack.h" >&5
26882 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26883 if test "${ac_cv_header_mspack_h+set}" = set; then
26884   echo $ECHO_N "(cached) $ECHO_C" >&6
26885 else
26886   ac_cv_header_mspack_h=$ac_header_preproc
26887 fi
26888 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26889 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26890
26891 fi
26892 if test $ac_cv_header_mspack_h = yes; then
26893   found_mspack_h=1
26894 fi
26895
26896
26897     if test "x$found_mspack_h" = "x1"; then
26898         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26899 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26900 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26901   echo $ECHO_N "(cached) $ECHO_C" >&6
26902 else
26903   ac_check_lib_save_LIBS=$LIBS
26904 LIBS="-lmspack  $LIBS"
26905 cat >conftest.$ac_ext <<_ACEOF
26906 /* confdefs.h.  */
26907 _ACEOF
26908 cat confdefs.h >>conftest.$ac_ext
26909 cat >>conftest.$ac_ext <<_ACEOF
26910 /* end confdefs.h.  */
26911
26912 /* Override any gcc2 internal prototype to avoid an error.  */
26913 #ifdef __cplusplus
26914 extern "C"
26915 #endif
26916 /* We use char because int might match the return type of a gcc2
26917    builtin and then its argument prototype would still apply.  */
26918 char mspack_create_chm_decompressor ();
26919 int
26920 main ()
26921 {
26922 mspack_create_chm_decompressor ();
26923   ;
26924   return 0;
26925 }
26926 _ACEOF
26927 rm -f conftest.$ac_objext conftest$ac_exeext
26928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26929   (eval $ac_link) 2>conftest.er1
26930   ac_status=$?
26931   grep -v '^ *+' conftest.er1 >conftest.err
26932   rm -f conftest.er1
26933   cat conftest.err >&5
26934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935   (exit $ac_status); } &&
26936          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938   (eval $ac_try) 2>&5
26939   ac_status=$?
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); }; } &&
26942          { ac_try='test -s conftest$ac_exeext'
26943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944   (eval $ac_try) 2>&5
26945   ac_status=$?
26946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); }; }; then
26948   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26949 else
26950   echo "$as_me: failed program was:" >&5
26951 sed 's/^/| /' conftest.$ac_ext >&5
26952
26953 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26954 fi
26955 rm -f conftest.err conftest.$ac_objext \
26956       conftest$ac_exeext conftest.$ac_ext
26957 LIBS=$ac_check_lib_save_LIBS
26958 fi
26959 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26960 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26961 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26962   MSPACK_LINK=" -lmspack"
26963 fi
26964
26965     fi
26966     if test "x$MSPACK_LINK" = "x" ; then
26967         wxUSE_LIBMSPACK=no
26968     fi
26969 fi
26970
26971 if test "$wxUSE_LIBMSPACK" != "no"; then
26972     cat >>confdefs.h <<\_ACEOF
26973 #define wxUSE_LIBMSPACK 1
26974 _ACEOF
26975
26976 fi
26977
26978
26979
26980 AFMINSTALL=
26981 WIN32INSTALL=
26982
26983 TOOLKIT=
26984 TOOLKIT_INCLUDE=
26985 WIDGET_SET=
26986
26987 if test "$USE_WIN32" = 1 ; then
26988
26989 for ac_header in w32api.h
26990 do
26991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26993   echo "$as_me:$LINENO: checking for $ac_header" >&5
26994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26996   echo $ECHO_N "(cached) $ECHO_C" >&6
26997 fi
26998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27000 else
27001   # Is the header compilable?
27002 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27004 cat >conftest.$ac_ext <<_ACEOF
27005 /* confdefs.h.  */
27006 _ACEOF
27007 cat confdefs.h >>conftest.$ac_ext
27008 cat >>conftest.$ac_ext <<_ACEOF
27009 /* end confdefs.h.  */
27010 $ac_includes_default
27011 #include <$ac_header>
27012 _ACEOF
27013 rm -f conftest.$ac_objext
27014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27015   (eval $ac_compile) 2>conftest.er1
27016   ac_status=$?
27017   grep -v '^ *+' conftest.er1 >conftest.err
27018   rm -f conftest.er1
27019   cat conftest.err >&5
27020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021   (exit $ac_status); } &&
27022          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
27023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27024   (eval $ac_try) 2>&5
27025   ac_status=$?
27026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027   (exit $ac_status); }; } &&
27028          { ac_try='test -s conftest.$ac_objext'
27029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030   (eval $ac_try) 2>&5
27031   ac_status=$?
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); }; }; then
27034   ac_header_compiler=yes
27035 else
27036   echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.$ac_ext >&5
27038
27039 ac_header_compiler=no
27040 fi
27041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27043 echo "${ECHO_T}$ac_header_compiler" >&6
27044
27045 # Is the header present?
27046 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27048 cat >conftest.$ac_ext <<_ACEOF
27049 /* confdefs.h.  */
27050 _ACEOF
27051 cat confdefs.h >>conftest.$ac_ext
27052 cat >>conftest.$ac_ext <<_ACEOF
27053 /* end confdefs.h.  */
27054 #include <$ac_header>
27055 _ACEOF
27056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27058   ac_status=$?
27059   grep -v '^ *+' conftest.er1 >conftest.err
27060   rm -f conftest.er1
27061   cat conftest.err >&5
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); } >/dev/null; then
27064   if test -s conftest.err; then
27065     ac_cpp_err=$ac_cxx_preproc_warn_flag
27066     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27067   else
27068     ac_cpp_err=
27069   fi
27070 else
27071   ac_cpp_err=yes
27072 fi
27073 if test -z "$ac_cpp_err"; then
27074   ac_header_preproc=yes
27075 else
27076   echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27078
27079   ac_header_preproc=no
27080 fi
27081 rm -f conftest.err conftest.$ac_ext
27082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27083 echo "${ECHO_T}$ac_header_preproc" >&6
27084
27085 # So?  What about this header?
27086 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27087   yes:no: )
27088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27092     ac_header_preproc=yes
27093     ;;
27094   no:yes:* )
27095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27107     (
27108       cat <<\_ASBOX
27109 ## ----------------------------------------- ##
27110 ## Report this to wx-dev@lists.wxwidgets.org ##
27111 ## ----------------------------------------- ##
27112 _ASBOX
27113     ) |
27114       sed "s/^/$as_me: WARNING:     /" >&2
27115     ;;
27116 esac
27117 echo "$as_me:$LINENO: checking for $ac_header" >&5
27118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27120   echo $ECHO_N "(cached) $ECHO_C" >&6
27121 else
27122   eval "$as_ac_Header=\$ac_header_preproc"
27123 fi
27124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27126
27127 fi
27128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27129   cat >>confdefs.h <<_ACEOF
27130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27131 _ACEOF
27132
27133 fi
27134
27135 done
27136
27137     if test "${ac_cv_header_windows_h+set}" = set; then
27138   echo "$as_me:$LINENO: checking for windows.h" >&5
27139 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27140 if test "${ac_cv_header_windows_h+set}" = set; then
27141   echo $ECHO_N "(cached) $ECHO_C" >&6
27142 fi
27143 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27144 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27145 else
27146   # Is the header compilable?
27147 echo "$as_me:$LINENO: checking windows.h usability" >&5
27148 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27149 cat >conftest.$ac_ext <<_ACEOF
27150 /* confdefs.h.  */
27151 _ACEOF
27152 cat confdefs.h >>conftest.$ac_ext
27153 cat >>conftest.$ac_ext <<_ACEOF
27154 /* end confdefs.h.  */
27155 $ac_includes_default
27156 #include <windows.h>
27157 _ACEOF
27158 rm -f conftest.$ac_objext
27159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27160   (eval $ac_compile) 2>conftest.er1
27161   ac_status=$?
27162   grep -v '^ *+' conftest.er1 >conftest.err
27163   rm -f conftest.er1
27164   cat conftest.err >&5
27165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166   (exit $ac_status); } &&
27167          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
27168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27169   (eval $ac_try) 2>&5
27170   ac_status=$?
27171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172   (exit $ac_status); }; } &&
27173          { ac_try='test -s conftest.$ac_objext'
27174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175   (eval $ac_try) 2>&5
27176   ac_status=$?
27177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178   (exit $ac_status); }; }; then
27179   ac_header_compiler=yes
27180 else
27181   echo "$as_me: failed program was:" >&5
27182 sed 's/^/| /' conftest.$ac_ext >&5
27183
27184 ac_header_compiler=no
27185 fi
27186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27188 echo "${ECHO_T}$ac_header_compiler" >&6
27189
27190 # Is the header present?
27191 echo "$as_me:$LINENO: checking windows.h presence" >&5
27192 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27193 cat >conftest.$ac_ext <<_ACEOF
27194 /* confdefs.h.  */
27195 _ACEOF
27196 cat confdefs.h >>conftest.$ac_ext
27197 cat >>conftest.$ac_ext <<_ACEOF
27198 /* end confdefs.h.  */
27199 #include <windows.h>
27200 _ACEOF
27201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27203   ac_status=$?
27204   grep -v '^ *+' conftest.er1 >conftest.err
27205   rm -f conftest.er1
27206   cat conftest.err >&5
27207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208   (exit $ac_status); } >/dev/null; then
27209   if test -s conftest.err; then
27210     ac_cpp_err=$ac_cxx_preproc_warn_flag
27211     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27212   else
27213     ac_cpp_err=
27214   fi
27215 else
27216   ac_cpp_err=yes
27217 fi
27218 if test -z "$ac_cpp_err"; then
27219   ac_header_preproc=yes
27220 else
27221   echo "$as_me: failed program was:" >&5
27222 sed 's/^/| /' conftest.$ac_ext >&5
27223
27224   ac_header_preproc=no
27225 fi
27226 rm -f conftest.err conftest.$ac_ext
27227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27228 echo "${ECHO_T}$ac_header_preproc" >&6
27229
27230 # So?  What about this header?
27231 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27232   yes:no: )
27233     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27234 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27235     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27236 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27237     ac_header_preproc=yes
27238     ;;
27239   no:yes:* )
27240     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27241 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
27242     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
27243 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
27244     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27245 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27246     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
27247 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27248     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27249 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
27250     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27251 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
27252     (
27253       cat <<\_ASBOX
27254 ## ----------------------------------------- ##
27255 ## Report this to wx-dev@lists.wxwidgets.org ##
27256 ## ----------------------------------------- ##
27257 _ASBOX
27258     ) |
27259       sed "s/^/$as_me: WARNING:     /" >&2
27260     ;;
27261 esac
27262 echo "$as_me:$LINENO: checking for windows.h" >&5
27263 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27264 if test "${ac_cv_header_windows_h+set}" = set; then
27265   echo $ECHO_N "(cached) $ECHO_C" >&6
27266 else
27267   ac_cv_header_windows_h=$ac_header_preproc
27268 fi
27269 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27270 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27271
27272 fi
27273 if test $ac_cv_header_windows_h = yes; then
27274   :
27275 else
27276
27277         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27278 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27279    { (exit 1); exit 1; }; }
27280
27281 fi
27282
27283
27284
27285             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27286
27287     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27288         LIBS="$LIBS -loleacc"
27289     fi
27290
27291     case "${host}" in
27292         *-*-cygwin* )
27293                         LIBS="$LIBS -lkernel32 -luser32"
27294     esac
27295
27296         if test "$wxUSE_ODBC" = "sys" ; then
27297         wxUSE_ODBC = "yes"
27298     fi
27299     if test "$wxUSE_ODBC" = "yes" ; then
27300         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27301         cat >>confdefs.h <<\_ACEOF
27302 #define wxUSE_ODBC 1
27303 _ACEOF
27304
27305     fi
27306
27307         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27308     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27309
27310                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27311
27312         WIN32INSTALL=win32install
27313
27314                     echo "$as_me:$LINENO: checking for boolean" >&5
27315 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27316 if test "${ac_cv_type_boolean+set}" = set; then
27317   echo $ECHO_N "(cached) $ECHO_C" >&6
27318 else
27319   cat >conftest.$ac_ext <<_ACEOF
27320 /* confdefs.h.  */
27321 _ACEOF
27322 cat confdefs.h >>conftest.$ac_ext
27323 cat >>conftest.$ac_ext <<_ACEOF
27324 /* end confdefs.h.  */
27325 #include <windows.h>
27326
27327 int
27328 main ()
27329 {
27330 if ((boolean *) 0)
27331   return 0;
27332 if (sizeof (boolean))
27333   return 0;
27334   ;
27335   return 0;
27336 }
27337 _ACEOF
27338 rm -f conftest.$ac_objext
27339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27340   (eval $ac_compile) 2>conftest.er1
27341   ac_status=$?
27342   grep -v '^ *+' conftest.er1 >conftest.err
27343   rm -f conftest.er1
27344   cat conftest.err >&5
27345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346   (exit $ac_status); } &&
27347          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
27348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349   (eval $ac_try) 2>&5
27350   ac_status=$?
27351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352   (exit $ac_status); }; } &&
27353          { ac_try='test -s conftest.$ac_objext'
27354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27355   (eval $ac_try) 2>&5
27356   ac_status=$?
27357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358   (exit $ac_status); }; }; then
27359   ac_cv_type_boolean=yes
27360 else
27361   echo "$as_me: failed program was:" >&5
27362 sed 's/^/| /' conftest.$ac_ext >&5
27363
27364 ac_cv_type_boolean=no
27365 fi
27366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27367 fi
27368 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27369 echo "${ECHO_T}$ac_cv_type_boolean" >&6
27370 if test $ac_cv_type_boolean = yes; then
27371
27372 cat >>confdefs.h <<_ACEOF
27373 #define HAVE_BOOLEAN 1
27374 _ACEOF
27375
27376
27377 fi
27378
27379
27380
27381 for ac_header in pbt.h
27382 do
27383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27385   echo "$as_me:$LINENO: checking for $ac_header" >&5
27386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27388   echo $ECHO_N "(cached) $ECHO_C" >&6
27389 fi
27390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27392 else
27393   # Is the header compilable?
27394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27396 cat >conftest.$ac_ext <<_ACEOF
27397 /* confdefs.h.  */
27398 _ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h.  */
27402 $ac_includes_default
27403 #include <$ac_header>
27404 _ACEOF
27405 rm -f conftest.$ac_objext
27406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27407   (eval $ac_compile) 2>conftest.er1
27408   ac_status=$?
27409   grep -v '^ *+' conftest.er1 >conftest.err
27410   rm -f conftest.er1
27411   cat conftest.err >&5
27412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413   (exit $ac_status); } &&
27414          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
27415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416   (eval $ac_try) 2>&5
27417   ac_status=$?
27418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419   (exit $ac_status); }; } &&
27420          { ac_try='test -s conftest.$ac_objext'
27421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27422   (eval $ac_try) 2>&5
27423   ac_status=$?
27424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425   (exit $ac_status); }; }; then
27426   ac_header_compiler=yes
27427 else
27428   echo "$as_me: failed program was:" >&5
27429 sed 's/^/| /' conftest.$ac_ext >&5
27430
27431 ac_header_compiler=no
27432 fi
27433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27435 echo "${ECHO_T}$ac_header_compiler" >&6
27436
27437 # Is the header present?
27438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27440 cat >conftest.$ac_ext <<_ACEOF
27441 /* confdefs.h.  */
27442 _ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h.  */
27446 #include <$ac_header>
27447 _ACEOF
27448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27450   ac_status=$?
27451   grep -v '^ *+' conftest.er1 >conftest.err
27452   rm -f conftest.er1
27453   cat conftest.err >&5
27454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455   (exit $ac_status); } >/dev/null; then
27456   if test -s conftest.err; then
27457     ac_cpp_err=$ac_cxx_preproc_warn_flag
27458     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27459   else
27460     ac_cpp_err=
27461   fi
27462 else
27463   ac_cpp_err=yes
27464 fi
27465 if test -z "$ac_cpp_err"; then
27466   ac_header_preproc=yes
27467 else
27468   echo "$as_me: failed program was:" >&5
27469 sed 's/^/| /' conftest.$ac_ext >&5
27470
27471   ac_header_preproc=no
27472 fi
27473 rm -f conftest.err conftest.$ac_ext
27474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27475 echo "${ECHO_T}$ac_header_preproc" >&6
27476
27477 # So?  What about this header?
27478 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27479   yes:no: )
27480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27484     ac_header_preproc=yes
27485     ;;
27486   no:yes:* )
27487     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27489     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27490 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27491     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27493     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27494 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27497     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27499     (
27500       cat <<\_ASBOX
27501 ## ----------------------------------------- ##
27502 ## Report this to wx-dev@lists.wxwidgets.org ##
27503 ## ----------------------------------------- ##
27504 _ASBOX
27505     ) |
27506       sed "s/^/$as_me: WARNING:     /" >&2
27507     ;;
27508 esac
27509 echo "$as_me:$LINENO: checking for $ac_header" >&5
27510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27512   echo $ECHO_N "(cached) $ECHO_C" >&6
27513 else
27514   eval "$as_ac_Header=\$ac_header_preproc"
27515 fi
27516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27518
27519 fi
27520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27521   cat >>confdefs.h <<_ACEOF
27522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27523 _ACEOF
27524
27525 else
27526   cat >>confdefs.h <<\_ACEOF
27527 #define NEED_PBT_H 1
27528 _ACEOF
27529
27530 fi
27531
27532 done
27533
27534 fi
27535
27536 if test "$wxUSE_GUI" = "yes"; then
27537     USE_GUI=1
27538
27539     GUI_TK_LIBRARY=
27540
27541     WXGTK12=
27542     WXGTK127=
27543     WXGTK20=
27544     WXGPE=
27545
27546     if test "$wxUSE_COCOA" = 1 ; then
27547         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27548             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27549 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27550             wxUSE_PRINTING_ARCHITECTURE=no
27551         fi
27552         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27553             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27554 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27555             wxUSE_DRAG_AND_DROP=no
27556         fi
27557         if test "$wxUSE_DRAGIMAGE" = "yes"; then
27558             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27559 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27560             wxUSE_DRAGIMAGE=no
27561         fi
27562     fi
27563
27564     if test "$wxUSE_MSW" = 1 ; then
27565         TOOLKIT=MSW
27566         GUIDIST=MSW_DIST
27567
27568                 case "${host}" in
27569             *-*-mingw32* )
27570                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27571         esac
27572     fi
27573
27574     if test "$wxUSE_GTK" = 1; then
27575                 ac_ext=c
27576 ac_cpp='$CPP $CPPFLAGS'
27577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27580
27581
27582         echo "$as_me:$LINENO: checking for GTK+ version" >&5
27583 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27584
27585         gtk_version_cached=1
27586         if test "${wx_cv_lib_gtk+set}" = set; then
27587   echo $ECHO_N "(cached) $ECHO_C" >&6
27588 else
27589
27590                                                 gtk_version_cached=0
27591                 echo "$as_me:$LINENO: result: " >&5
27592 echo "${ECHO_T}" >&6
27593
27594                                                 GTK_MODULES=
27595                 if test "$wxUSE_THREADS" = "yes"; then
27596                     GTK_MODULES=gthread
27597                 fi
27598
27599                                 wx_cv_lib_gtk=
27600                 if test "x$wxGTK_VERSION" != "x1"
27601                 then
27602                                                                                 case "${host}" in
27603                         *-*-solaris2* )
27604                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27605                             enable_gtktest=no
27606                             fi
27607                     esac
27608
27609                     # Check whether --enable-gtktest or --disable-gtktest was given.
27610 if test "${enable_gtktest+set}" = set; then
27611   enableval="$enable_gtktest"
27612
27613 else
27614   enable_gtktest=yes
27615 fi;
27616
27617   pkg_config_args=gtk+-2.0
27618   for module in . $GTK_MODULES
27619   do
27620       case "$module" in
27621          gthread)
27622              pkg_config_args="$pkg_config_args gthread-2.0"
27623          ;;
27624       esac
27625   done
27626
27627   no_gtk=""
27628
27629   # Extract the first word of "pkg-config", so it can be a program name with args.
27630 set dummy pkg-config; ac_word=$2
27631 echo "$as_me:$LINENO: checking for $ac_word" >&5
27632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27633 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27634   echo $ECHO_N "(cached) $ECHO_C" >&6
27635 else
27636   case $PKG_CONFIG in
27637   [\\/]* | ?:[\\/]*)
27638   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27639   ;;
27640   *)
27641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27642 for as_dir in $PATH
27643 do
27644   IFS=$as_save_IFS
27645   test -z "$as_dir" && as_dir=.
27646   for ac_exec_ext in '' $ac_executable_extensions; do
27647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27648     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27650     break 2
27651   fi
27652 done
27653 done
27654
27655   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27656   ;;
27657 esac
27658 fi
27659 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27660
27661 if test -n "$PKG_CONFIG"; then
27662   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27663 echo "${ECHO_T}$PKG_CONFIG" >&6
27664 else
27665   echo "$as_me:$LINENO: result: no" >&5
27666 echo "${ECHO_T}no" >&6
27667 fi
27668
27669
27670   if test x$PKG_CONFIG != xno ; then
27671     if pkg-config --atleast-pkgconfig-version 0.7 ; then
27672       :
27673     else
27674       echo "*** pkg-config too old; version 0.7 or better required."
27675       no_gtk=yes
27676       PKG_CONFIG=no
27677     fi
27678   else
27679     no_gtk=yes
27680   fi
27681
27682   min_gtk_version=2.0.0
27683   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27684 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27685
27686   if test x$PKG_CONFIG != xno ; then
27687     ## don't try to run the test against uninstalled libtool libs
27688     if $PKG_CONFIG --uninstalled $pkg_config_args; then
27689           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27690           enable_gtktest=no
27691     fi
27692
27693     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27694           :
27695     else
27696           no_gtk=yes
27697     fi
27698   fi
27699
27700   if test x"$no_gtk" = x ; then
27701     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27702     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27703     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27704            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27705     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27706            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27707     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27708            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27709     if test "x$enable_gtktest" = "xyes" ; then
27710       ac_save_CFLAGS="$CFLAGS"
27711       ac_save_LIBS="$LIBS"
27712       CFLAGS="$CFLAGS $GTK_CFLAGS"
27713       LIBS="$GTK_LIBS $LIBS"
27714       rm -f conf.gtktest
27715       if test "$cross_compiling" = yes; then
27716   echo $ac_n "cross compiling; assumed OK... $ac_c"
27717 else
27718   cat >conftest.$ac_ext <<_ACEOF
27719 /* confdefs.h.  */
27720 _ACEOF
27721 cat confdefs.h >>conftest.$ac_ext
27722 cat >>conftest.$ac_ext <<_ACEOF
27723 /* end confdefs.h.  */
27724
27725 #include <gtk/gtk.h>
27726 #include <stdio.h>
27727 #include <stdlib.h>
27728
27729 int
27730 main ()
27731 {
27732   int major, minor, micro;
27733   char *tmp_version;
27734
27735   system ("touch conf.gtktest");
27736
27737   /* HP/UX 9 (%@#!) writes to sscanf strings */
27738   tmp_version = g_strdup("$min_gtk_version");
27739   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27740      printf("%s, bad version string\n", "$min_gtk_version");
27741      exit(1);
27742    }
27743
27744   if ((gtk_major_version != $gtk_config_major_version) ||
27745       (gtk_minor_version != $gtk_config_minor_version) ||
27746       (gtk_micro_version != $gtk_config_micro_version))
27747     {
27748       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27749              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27750              gtk_major_version, gtk_minor_version, gtk_micro_version);
27751       printf ("*** was found! If pkg-config was correct, then it is best\n");
27752       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27753       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27754       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27755       printf("*** required on your system.\n");
27756       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27757       printf("*** to point to the correct configuration files\n");
27758     }
27759   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27760            (gtk_minor_version != GTK_MINOR_VERSION) ||
27761            (gtk_micro_version != GTK_MICRO_VERSION))
27762     {
27763       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27764              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27765       printf("*** library (version %d.%d.%d)\n",
27766              gtk_major_version, gtk_minor_version, gtk_micro_version);
27767     }
27768   else
27769     {
27770       if ((gtk_major_version > major) ||
27771         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27772         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27773       {
27774         return 0;
27775        }
27776      else
27777       {
27778         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27779                gtk_major_version, gtk_minor_version, gtk_micro_version);
27780         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27781                major, minor, micro);
27782         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27783         printf("***\n");
27784         printf("*** If you have already installed a sufficiently new version, this error\n");
27785         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27786         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27787         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27788         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27789         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27790         printf("*** so that the correct libraries are found at run-time))\n");
27791       }
27792     }
27793   return 1;
27794 }
27795
27796 _ACEOF
27797 rm -f conftest$ac_exeext
27798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27799   (eval $ac_link) 2>&5
27800   ac_status=$?
27801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804   (eval $ac_try) 2>&5
27805   ac_status=$?
27806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807   (exit $ac_status); }; }; then
27808   :
27809 else
27810   echo "$as_me: program exited with status $ac_status" >&5
27811 echo "$as_me: failed program was:" >&5
27812 sed 's/^/| /' conftest.$ac_ext >&5
27813
27814 ( exit $ac_status )
27815 no_gtk=yes
27816 fi
27817 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27818 fi
27819        CFLAGS="$ac_save_CFLAGS"
27820        LIBS="$ac_save_LIBS"
27821      fi
27822   fi
27823   if test "x$no_gtk" = x ; then
27824      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27825 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27826      wx_cv_lib_gtk=2.0
27827   else
27828      echo "$as_me:$LINENO: result: no" >&5
27829 echo "${ECHO_T}no" >&6
27830      if test "$PKG_CONFIG" = "no" ; then
27831        echo "*** A new enough version of pkg-config was not found."
27832        echo "*** See http://pkgconfig.sourceforge.net"
27833      else
27834        if test -f conf.gtktest ; then
27835         :
27836        else
27837           echo "*** Could not run GTK+ test program, checking why..."
27838           ac_save_CFLAGS="$CFLAGS"
27839           ac_save_LIBS="$LIBS"
27840           CFLAGS="$CFLAGS $GTK_CFLAGS"
27841           LIBS="$LIBS $GTK_LIBS"
27842           cat >conftest.$ac_ext <<_ACEOF
27843 /* confdefs.h.  */
27844 _ACEOF
27845 cat confdefs.h >>conftest.$ac_ext
27846 cat >>conftest.$ac_ext <<_ACEOF
27847 /* end confdefs.h.  */
27848
27849 #include <gtk/gtk.h>
27850 #include <stdio.h>
27851
27852 int
27853 main ()
27854 {
27855  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27856   ;
27857   return 0;
27858 }
27859 _ACEOF
27860 rm -f conftest.$ac_objext conftest$ac_exeext
27861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27862   (eval $ac_link) 2>conftest.er1
27863   ac_status=$?
27864   grep -v '^ *+' conftest.er1 >conftest.err
27865   rm -f conftest.er1
27866   cat conftest.err >&5
27867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868   (exit $ac_status); } &&
27869          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27871   (eval $ac_try) 2>&5
27872   ac_status=$?
27873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874   (exit $ac_status); }; } &&
27875          { ac_try='test -s conftest$ac_exeext'
27876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27877   (eval $ac_try) 2>&5
27878   ac_status=$?
27879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880   (exit $ac_status); }; }; then
27881    echo "*** The test program compiled, but did not run. This usually means"
27882           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27883           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27884           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27885           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27886           echo "*** is required on your system"
27887           echo "***"
27888           echo "*** If you have an old version installed, it is best to remove it, although"
27889           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27890 else
27891   echo "$as_me: failed program was:" >&5
27892 sed 's/^/| /' conftest.$ac_ext >&5
27893
27894  echo "*** The test program failed to compile or link. See the file config.log for the"
27895           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27896 fi
27897 rm -f conftest.err conftest.$ac_objext \
27898       conftest$ac_exeext conftest.$ac_ext
27899           CFLAGS="$ac_save_CFLAGS"
27900           LIBS="$ac_save_LIBS"
27901        fi
27902      fi
27903      GTK_CFLAGS=""
27904      GTK_LIBS=""
27905      :
27906   fi
27907
27908
27909   rm -f conf.gtktest
27910
27911
27912                                         case "${host}" in
27913                         *-*-solaris2* )
27914                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27915                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27916                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27917                             fi
27918                                                         if test "$wxUSE_SHARED" != "yes"; then
27919                                 GTK_LIBS="$GTK_LIBS -lX11"
27920                             fi
27921                     esac
27922                 fi
27923
27924                                 if test -z "$wx_cv_lib_gtk"; then
27925                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
27926
27927 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27928 if test "${with_gtk_prefix+set}" = set; then
27929   withval="$with_gtk_prefix"
27930   gtk_config_prefix="$withval"
27931 else
27932   gtk_config_prefix=""
27933 fi;
27934
27935 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27936 if test "${with_gtk_exec_prefix+set}" = set; then
27937   withval="$with_gtk_exec_prefix"
27938   gtk_config_exec_prefix="$withval"
27939 else
27940   gtk_config_exec_prefix=""
27941 fi;
27942 # Check whether --enable-gtktest or --disable-gtktest was given.
27943 if test "${enable_gtktest+set}" = set; then
27944   enableval="$enable_gtktest"
27945
27946 else
27947   enable_gtktest=yes
27948 fi;
27949
27950   for module in . $GTK_MODULES
27951   do
27952       case "$module" in
27953          gthread)
27954              gtk_config_args="$gtk_config_args gthread"
27955          ;;
27956       esac
27957   done
27958
27959   if test x$gtk_config_exec_prefix != x ; then
27960      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27961      if test x${GTK_CONFIG+set} != xset ; then
27962         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27963      fi
27964   fi
27965   if test x$gtk_config_prefix != x ; then
27966      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27967      if test x${GTK_CONFIG+set} != xset ; then
27968         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27969      fi
27970   fi
27971
27972   # Extract the first word of "gtk-config", so it can be a program name with args.
27973 set dummy gtk-config; ac_word=$2
27974 echo "$as_me:$LINENO: checking for $ac_word" >&5
27975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27976 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27977   echo $ECHO_N "(cached) $ECHO_C" >&6
27978 else
27979   case $GTK_CONFIG in
27980   [\\/]* | ?:[\\/]*)
27981   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27982   ;;
27983   *)
27984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27985 for as_dir in $PATH
27986 do
27987   IFS=$as_save_IFS
27988   test -z "$as_dir" && as_dir=.
27989   for ac_exec_ext in '' $ac_executable_extensions; do
27990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27991     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27993     break 2
27994   fi
27995 done
27996 done
27997
27998   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27999   ;;
28000 esac
28001 fi
28002 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28003
28004 if test -n "$GTK_CONFIG"; then
28005   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28006 echo "${ECHO_T}$GTK_CONFIG" >&6
28007 else
28008   echo "$as_me:$LINENO: result: no" >&5
28009 echo "${ECHO_T}no" >&6
28010 fi
28011
28012   min_gtk_version=1.2.7
28013   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28014 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28015   no_gtk=""
28016   if test "$GTK_CONFIG" = "no" ; then
28017     no_gtk=yes
28018   else
28019     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28020     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28021     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28022            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28023     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28024            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28025     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28026            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28027     if test "x$enable_gtktest" = "xyes" ; then
28028       ac_save_CFLAGS="$CFLAGS"
28029       ac_save_LIBS="$LIBS"
28030       CFLAGS="$CFLAGS $GTK_CFLAGS"
28031       LIBS="$GTK_LIBS $LIBS"
28032       rm -f conf.gtktest
28033       if test "$cross_compiling" = yes; then
28034   echo $ac_n "cross compiling; assumed OK... $ac_c"
28035 else
28036   cat >conftest.$ac_ext <<_ACEOF
28037 /* confdefs.h.  */
28038 _ACEOF
28039 cat confdefs.h >>conftest.$ac_ext
28040 cat >>conftest.$ac_ext <<_ACEOF
28041 /* end confdefs.h.  */
28042
28043 #include <gtk/gtk.h>
28044 #include <stdio.h>
28045 #include <stdlib.h>
28046
28047 int
28048 main ()
28049 {
28050   int major, minor, micro;
28051   char *tmp_version;
28052
28053   system ("touch conf.gtktest");
28054
28055   /* HP/UX 9 (%@#!) writes to sscanf strings */
28056   tmp_version = g_strdup("$min_gtk_version");
28057   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28058      printf("%s, bad version string\n", "$min_gtk_version");
28059      exit(1);
28060    }
28061
28062   if ((gtk_major_version != $gtk_config_major_version) ||
28063       (gtk_minor_version != $gtk_config_minor_version) ||
28064       (gtk_micro_version != $gtk_config_micro_version))
28065     {
28066       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28067              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28068              gtk_major_version, gtk_minor_version, gtk_micro_version);
28069       printf ("*** was found! If gtk-config was correct, then it is best\n");
28070       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28071       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28072       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28073       printf("*** required on your system.\n");
28074       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28075       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28076       printf("*** before re-running configure\n");
28077     }
28078 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28079   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28080            (gtk_minor_version != GTK_MINOR_VERSION) ||
28081            (gtk_micro_version != GTK_MICRO_VERSION))
28082     {
28083       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28084              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28085       printf("*** library (version %d.%d.%d)\n",
28086              gtk_major_version, gtk_minor_version, gtk_micro_version);
28087     }
28088 #endif /* defined (GTK_MAJOR_VERSION) ... */
28089   else
28090     {
28091       if ((gtk_major_version > major) ||
28092         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28093         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28094       {
28095         return 0;
28096        }
28097      else
28098       {
28099         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28100                gtk_major_version, gtk_minor_version, gtk_micro_version);
28101         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28102                major, minor, micro);
28103         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28104         printf("***\n");
28105         printf("*** If you have already installed a sufficiently new version, this error\n");
28106         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28107         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28108         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28109         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28110         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28111         printf("*** so that the correct libraries are found at run-time))\n");
28112       }
28113     }
28114   return 1;
28115 }
28116
28117 _ACEOF
28118 rm -f conftest$ac_exeext
28119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28120   (eval $ac_link) 2>&5
28121   ac_status=$?
28122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
28129   :
28130 else
28131   echo "$as_me: program exited with status $ac_status" >&5
28132 echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28134
28135 ( exit $ac_status )
28136 no_gtk=yes
28137 fi
28138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28139 fi
28140        CFLAGS="$ac_save_CFLAGS"
28141        LIBS="$ac_save_LIBS"
28142      fi
28143   fi
28144   if test "x$no_gtk" = x ; then
28145      echo "$as_me:$LINENO: result: yes" >&5
28146 echo "${ECHO_T}yes" >&6
28147      wx_cv_lib_gtk=1.2.7
28148   else
28149      echo "$as_me:$LINENO: result: no" >&5
28150 echo "${ECHO_T}no" >&6
28151      if test "$GTK_CONFIG" = "no" ; then
28152        echo "*** The gtk-config script installed by GTK could not be found"
28153        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28154        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28155        echo "*** full path to gtk-config."
28156      else
28157        if test -f conf.gtktest ; then
28158         :
28159        else
28160           echo "*** Could not run GTK test program, checking why..."
28161           CFLAGS="$CFLAGS $GTK_CFLAGS"
28162           LIBS="$LIBS $GTK_LIBS"
28163           cat >conftest.$ac_ext <<_ACEOF
28164 /* confdefs.h.  */
28165 _ACEOF
28166 cat confdefs.h >>conftest.$ac_ext
28167 cat >>conftest.$ac_ext <<_ACEOF
28168 /* end confdefs.h.  */
28169
28170 #include <gtk/gtk.h>
28171 #include <stdio.h>
28172
28173 int
28174 main ()
28175 {
28176  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28177   ;
28178   return 0;
28179 }
28180 _ACEOF
28181 rm -f conftest.$ac_objext conftest$ac_exeext
28182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28183   (eval $ac_link) 2>conftest.er1
28184   ac_status=$?
28185   grep -v '^ *+' conftest.er1 >conftest.err
28186   rm -f conftest.er1
28187   cat conftest.err >&5
28188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189   (exit $ac_status); } &&
28190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192   (eval $ac_try) 2>&5
28193   ac_status=$?
28194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195   (exit $ac_status); }; } &&
28196          { ac_try='test -s conftest$ac_exeext'
28197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198   (eval $ac_try) 2>&5
28199   ac_status=$?
28200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201   (exit $ac_status); }; }; then
28202    echo "*** The test program compiled, but did not run. This usually means"
28203           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28204           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28205           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28206           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28207           echo "*** is required on your system"
28208           echo "***"
28209           echo "*** If you have an old version installed, it is best to remove it, although"
28210           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28211           echo "***"
28212           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28213           echo "*** came with the system with the command"
28214           echo "***"
28215           echo "***    rpm --erase --nodeps gtk gtk-devel"
28216 else
28217   echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28219
28220  echo "*** The test program failed to compile or link. See the file config.log for the"
28221           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28222           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28223           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28224 fi
28225 rm -f conftest.err conftest.$ac_objext \
28226       conftest$ac_exeext conftest.$ac_ext
28227           CFLAGS="$ac_save_CFLAGS"
28228           LIBS="$ac_save_LIBS"
28229        fi
28230      fi
28231      GTK_CFLAGS=""
28232      GTK_LIBS=""
28233      :
28234   fi
28235
28236
28237   rm -f conf.gtktest
28238
28239
28240                         if test -z "$wx_cv_lib_gtk"; then
28241
28242 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28243 if test "${with_gtk_prefix+set}" = set; then
28244   withval="$with_gtk_prefix"
28245   gtk_config_prefix="$withval"
28246 else
28247   gtk_config_prefix=""
28248 fi;
28249
28250 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28251 if test "${with_gtk_exec_prefix+set}" = set; then
28252   withval="$with_gtk_exec_prefix"
28253   gtk_config_exec_prefix="$withval"
28254 else
28255   gtk_config_exec_prefix=""
28256 fi;
28257 # Check whether --enable-gtktest or --disable-gtktest was given.
28258 if test "${enable_gtktest+set}" = set; then
28259   enableval="$enable_gtktest"
28260
28261 else
28262   enable_gtktest=yes
28263 fi;
28264
28265   for module in . $GTK_MODULES
28266   do
28267       case "$module" in
28268          gthread)
28269              gtk_config_args="$gtk_config_args gthread"
28270          ;;
28271       esac
28272   done
28273
28274   if test x$gtk_config_exec_prefix != x ; then
28275      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28276      if test x${GTK_CONFIG+set} != xset ; then
28277         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28278      fi
28279   fi
28280   if test x$gtk_config_prefix != x ; then
28281      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28282      if test x${GTK_CONFIG+set} != xset ; then
28283         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28284      fi
28285   fi
28286
28287   # Extract the first word of "gtk-config", so it can be a program name with args.
28288 set dummy gtk-config; ac_word=$2
28289 echo "$as_me:$LINENO: checking for $ac_word" >&5
28290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28291 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28292   echo $ECHO_N "(cached) $ECHO_C" >&6
28293 else
28294   case $GTK_CONFIG in
28295   [\\/]* | ?:[\\/]*)
28296   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28297   ;;
28298   *)
28299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28300 for as_dir in $PATH
28301 do
28302   IFS=$as_save_IFS
28303   test -z "$as_dir" && as_dir=.
28304   for ac_exec_ext in '' $ac_executable_extensions; do
28305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28306     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28308     break 2
28309   fi
28310 done
28311 done
28312
28313   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28314   ;;
28315 esac
28316 fi
28317 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28318
28319 if test -n "$GTK_CONFIG"; then
28320   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28321 echo "${ECHO_T}$GTK_CONFIG" >&6
28322 else
28323   echo "$as_me:$LINENO: result: no" >&5
28324 echo "${ECHO_T}no" >&6
28325 fi
28326
28327   min_gtk_version=1.2.3
28328   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28329 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28330   no_gtk=""
28331   if test "$GTK_CONFIG" = "no" ; then
28332     no_gtk=yes
28333   else
28334     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28335     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28336     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28337            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28338     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28339            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28340     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28341            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28342     if test "x$enable_gtktest" = "xyes" ; then
28343       ac_save_CFLAGS="$CFLAGS"
28344       ac_save_LIBS="$LIBS"
28345       CFLAGS="$CFLAGS $GTK_CFLAGS"
28346       LIBS="$GTK_LIBS $LIBS"
28347       rm -f conf.gtktest
28348       if test "$cross_compiling" = yes; then
28349   echo $ac_n "cross compiling; assumed OK... $ac_c"
28350 else
28351   cat >conftest.$ac_ext <<_ACEOF
28352 /* confdefs.h.  */
28353 _ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h.  */
28357
28358 #include <gtk/gtk.h>
28359 #include <stdio.h>
28360 #include <stdlib.h>
28361
28362 int
28363 main ()
28364 {
28365   int major, minor, micro;
28366   char *tmp_version;
28367
28368   system ("touch conf.gtktest");
28369
28370   /* HP/UX 9 (%@#!) writes to sscanf strings */
28371   tmp_version = g_strdup("$min_gtk_version");
28372   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28373      printf("%s, bad version string\n", "$min_gtk_version");
28374      exit(1);
28375    }
28376
28377   if ((gtk_major_version != $gtk_config_major_version) ||
28378       (gtk_minor_version != $gtk_config_minor_version) ||
28379       (gtk_micro_version != $gtk_config_micro_version))
28380     {
28381       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28382              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28383              gtk_major_version, gtk_minor_version, gtk_micro_version);
28384       printf ("*** was found! If gtk-config was correct, then it is best\n");
28385       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28386       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28387       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28388       printf("*** required on your system.\n");
28389       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28390       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28391       printf("*** before re-running configure\n");
28392     }
28393 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28394   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28395            (gtk_minor_version != GTK_MINOR_VERSION) ||
28396            (gtk_micro_version != GTK_MICRO_VERSION))
28397     {
28398       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28399              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28400       printf("*** library (version %d.%d.%d)\n",
28401              gtk_major_version, gtk_minor_version, gtk_micro_version);
28402     }
28403 #endif /* defined (GTK_MAJOR_VERSION) ... */
28404   else
28405     {
28406       if ((gtk_major_version > major) ||
28407         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28408         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28409       {
28410         return 0;
28411        }
28412      else
28413       {
28414         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28415                gtk_major_version, gtk_minor_version, gtk_micro_version);
28416         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28417                major, minor, micro);
28418         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28419         printf("***\n");
28420         printf("*** If you have already installed a sufficiently new version, this error\n");
28421         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28422         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28423         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28424         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28425         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28426         printf("*** so that the correct libraries are found at run-time))\n");
28427       }
28428     }
28429   return 1;
28430 }
28431
28432 _ACEOF
28433 rm -f conftest$ac_exeext
28434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28435   (eval $ac_link) 2>&5
28436   ac_status=$?
28437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440   (eval $ac_try) 2>&5
28441   ac_status=$?
28442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443   (exit $ac_status); }; }; then
28444   :
28445 else
28446   echo "$as_me: program exited with status $ac_status" >&5
28447 echo "$as_me: failed program was:" >&5
28448 sed 's/^/| /' conftest.$ac_ext >&5
28449
28450 ( exit $ac_status )
28451 no_gtk=yes
28452 fi
28453 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28454 fi
28455        CFLAGS="$ac_save_CFLAGS"
28456        LIBS="$ac_save_LIBS"
28457      fi
28458   fi
28459   if test "x$no_gtk" = x ; then
28460      echo "$as_me:$LINENO: result: yes" >&5
28461 echo "${ECHO_T}yes" >&6
28462      wx_cv_lib_gtk=1.2.3
28463   else
28464      echo "$as_me:$LINENO: result: no" >&5
28465 echo "${ECHO_T}no" >&6
28466      if test "$GTK_CONFIG" = "no" ; then
28467        echo "*** The gtk-config script installed by GTK could not be found"
28468        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28469        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28470        echo "*** full path to gtk-config."
28471      else
28472        if test -f conf.gtktest ; then
28473         :
28474        else
28475           echo "*** Could not run GTK test program, checking why..."
28476           CFLAGS="$CFLAGS $GTK_CFLAGS"
28477           LIBS="$LIBS $GTK_LIBS"
28478           cat >conftest.$ac_ext <<_ACEOF
28479 /* confdefs.h.  */
28480 _ACEOF
28481 cat confdefs.h >>conftest.$ac_ext
28482 cat >>conftest.$ac_ext <<_ACEOF
28483 /* end confdefs.h.  */
28484
28485 #include <gtk/gtk.h>
28486 #include <stdio.h>
28487
28488 int
28489 main ()
28490 {
28491  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28492   ;
28493   return 0;
28494 }
28495 _ACEOF
28496 rm -f conftest.$ac_objext conftest$ac_exeext
28497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28498   (eval $ac_link) 2>conftest.er1
28499   ac_status=$?
28500   grep -v '^ *+' conftest.er1 >conftest.err
28501   rm -f conftest.er1
28502   cat conftest.err >&5
28503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504   (exit $ac_status); } &&
28505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28507   (eval $ac_try) 2>&5
28508   ac_status=$?
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); }; } &&
28511          { ac_try='test -s conftest$ac_exeext'
28512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28513   (eval $ac_try) 2>&5
28514   ac_status=$?
28515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516   (exit $ac_status); }; }; then
28517    echo "*** The test program compiled, but did not run. This usually means"
28518           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28519           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28520           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28521           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28522           echo "*** is required on your system"
28523           echo "***"
28524           echo "*** If you have an old version installed, it is best to remove it, although"
28525           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28526           echo "***"
28527           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28528           echo "*** came with the system with the command"
28529           echo "***"
28530           echo "***    rpm --erase --nodeps gtk gtk-devel"
28531 else
28532   echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28534
28535  echo "*** The test program failed to compile or link. See the file config.log for the"
28536           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28537           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28538           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28539 fi
28540 rm -f conftest.err conftest.$ac_objext \
28541       conftest$ac_exeext conftest.$ac_ext
28542           CFLAGS="$ac_save_CFLAGS"
28543           LIBS="$ac_save_LIBS"
28544        fi
28545      fi
28546      GTK_CFLAGS=""
28547      GTK_LIBS=""
28548      :
28549   fi
28550
28551
28552   rm -f conf.gtktest
28553
28554                         fi
28555                     fi
28556                 fi
28557
28558                 if test -z "$wx_cv_lib_gtk"; then
28559                                         wx_cv_lib_gtk=none
28560                 else
28561                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
28562                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28563                 fi
28564
28565
28566 fi
28567
28568
28569                         if test "$gtk_version_cached" = 1; then
28570             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28571 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28572         fi
28573
28574         case "$wx_cv_lib_gtk" in
28575             2.0)    WXGTK20=1
28576                     TOOLKIT_VERSION=2
28577                     ;;
28578             1.2.7)  WXGTK127=1
28579                     WXGTK12=1
28580                     ;;
28581             1.2.3)  WXGTK12=1
28582                     ;;
28583             *)      { { echo "$as_me:$LINENO: error:
28584 The development files for GTK+ were not found. For GTK+ 2, please
28585 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28586 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28587 and that the version is 1.2.3 or above. Also check that the
28588 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28589 --libs' are in the LD_LIBRARY_PATH or equivalent.
28590                             " >&5
28591 echo "$as_me: error:
28592 The development files for GTK+ were not found. For GTK+ 2, please
28593 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28594 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28595 and that the version is 1.2.3 or above. Also check that the
28596 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28597 --libs' are in the LD_LIBRARY_PATH or equivalent.
28598                             " >&2;}
28599    { (exit 1); exit 1; }; }
28600                     ;;
28601         esac
28602
28603         if test "$WXGTK20" = 1; then
28604             save_CFLAGS="$CFLAGS"
28605             save_LIBS="$LIBS"
28606             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28607             LIBS="$LIBS $wx_cv_libs_gtk"
28608
28609                                                             echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28610 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28611 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28612   echo $ECHO_N "(cached) $ECHO_C" >&6
28613 else
28614   cat >conftest.$ac_ext <<_ACEOF
28615 /* confdefs.h.  */
28616 _ACEOF
28617 cat confdefs.h >>conftest.$ac_ext
28618 cat >>conftest.$ac_ext <<_ACEOF
28619 /* end confdefs.h.  */
28620 #include <gtk/gtk.h>
28621
28622 int
28623 main ()
28624 {
28625 #ifndef gtk_icon_size_lookup
28626   char *p = (char *) gtk_icon_size_lookup;
28627 #endif
28628
28629   ;
28630   return 0;
28631 }
28632 _ACEOF
28633 rm -f conftest.$ac_objext
28634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28635   (eval $ac_compile) 2>conftest.er1
28636   ac_status=$?
28637   grep -v '^ *+' conftest.er1 >conftest.err
28638   rm -f conftest.er1
28639   cat conftest.err >&5
28640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641   (exit $ac_status); } &&
28642          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644   (eval $ac_try) 2>&5
28645   ac_status=$?
28646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647   (exit $ac_status); }; } &&
28648          { ac_try='test -s conftest.$ac_objext'
28649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650   (eval $ac_try) 2>&5
28651   ac_status=$?
28652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653   (exit $ac_status); }; }; then
28654   ac_cv_have_decl_gtk_icon_size_lookup=yes
28655 else
28656   echo "$as_me: failed program was:" >&5
28657 sed 's/^/| /' conftest.$ac_ext >&5
28658
28659 ac_cv_have_decl_gtk_icon_size_lookup=no
28660 fi
28661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28662 fi
28663 echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28664 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28665 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
28666
28667 cat >>confdefs.h <<_ACEOF
28668 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
28669 _ACEOF
28670
28671
28672 else
28673   cat >>confdefs.h <<_ACEOF
28674 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28675 _ACEOF
28676
28677 cat >>confdefs.h <<\_ACEOF
28678 #define NEED_GTK_ICON_SIZE_LOOKUP 1
28679 _ACEOF
28680
28681 fi
28682
28683
28684
28685                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28686 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28687             cat >conftest.$ac_ext <<_ACEOF
28688 /* confdefs.h.  */
28689 _ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h.  */
28693
28694                             #include <gtk/gtk.h>
28695
28696 int
28697 main ()
28698 {
28699
28700                             #if !GTK_CHECK_VERSION(2,6,0)
28701                             Not GTK+ 2.6
28702                             #endif
28703
28704   ;
28705   return 0;
28706 }
28707 _ACEOF
28708 rm -f conftest.$ac_objext
28709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28710   (eval $ac_compile) 2>conftest.er1
28711   ac_status=$?
28712   grep -v '^ *+' conftest.er1 >conftest.err
28713   rm -f conftest.er1
28714   cat conftest.err >&5
28715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716   (exit $ac_status); } &&
28717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719   (eval $ac_try) 2>&5
28720   ac_status=$?
28721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722   (exit $ac_status); }; } &&
28723          { ac_try='test -s conftest.$ac_objext'
28724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28725   (eval $ac_try) 2>&5
28726   ac_status=$?
28727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728   (exit $ac_status); }; }; then
28729
28730                             cat >>confdefs.h <<\_ACEOF
28731 #define __WXGTK26__ 1
28732 _ACEOF
28733
28734                             cat >>confdefs.h <<\_ACEOF
28735 #define __WXGTK24__ 1
28736 _ACEOF
28737
28738                             echo "$as_me:$LINENO: result: yes" >&5
28739 echo "${ECHO_T}yes" >&6
28740                             ac_wxgtk26=1
28741
28742 else
28743   echo "$as_me: failed program was:" >&5
28744 sed 's/^/| /' conftest.$ac_ext >&5
28745
28746
28747                             echo "$as_me:$LINENO: result: no" >&5
28748 echo "${ECHO_T}no" >&6
28749                             ac_wxgtk26=0
28750
28751 fi
28752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28753
28754             if test "$ac_wxgtk26" = 0; then
28755                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28756 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28757             cat >conftest.$ac_ext <<_ACEOF
28758 /* confdefs.h.  */
28759 _ACEOF
28760 cat confdefs.h >>conftest.$ac_ext
28761 cat >>conftest.$ac_ext <<_ACEOF
28762 /* end confdefs.h.  */
28763
28764                             #include <gtk/gtk.h>
28765
28766 int
28767 main ()
28768 {
28769
28770                             #if !GTK_CHECK_VERSION(2,4,0)
28771                             Not GTK+ 2.4
28772                             #endif
28773
28774   ;
28775   return 0;
28776 }
28777 _ACEOF
28778 rm -f conftest.$ac_objext
28779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28780   (eval $ac_compile) 2>conftest.er1
28781   ac_status=$?
28782   grep -v '^ *+' conftest.er1 >conftest.err
28783   rm -f conftest.er1
28784   cat conftest.err >&5
28785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786   (exit $ac_status); } &&
28787          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28789   (eval $ac_try) 2>&5
28790   ac_status=$?
28791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792   (exit $ac_status); }; } &&
28793          { ac_try='test -s conftest.$ac_objext'
28794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28795   (eval $ac_try) 2>&5
28796   ac_status=$?
28797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798   (exit $ac_status); }; }; then
28799
28800                             cat >>confdefs.h <<\_ACEOF
28801 #define __WXGTK24__ 1
28802 _ACEOF
28803
28804                             echo "$as_me:$LINENO: result: yes" >&5
28805 echo "${ECHO_T}yes" >&6
28806
28807 else
28808   echo "$as_me: failed program was:" >&5
28809 sed 's/^/| /' conftest.$ac_ext >&5
28810
28811
28812                             echo "$as_me:$LINENO: result: no" >&5
28813 echo "${ECHO_T}no" >&6
28814
28815 fi
28816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28817             fi
28818
28819             CFLAGS="$save_CFLAGS"
28820             LIBS="$save_LIBS"
28821         else
28822             if test "$wxUSE_UNICODE" = "yes"; then
28823                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28824 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28825                 wxUSE_UNICODE=no
28826             fi
28827         fi
28828
28829         ac_ext=cc
28830 ac_cpp='$CXXCPP $CPPFLAGS'
28831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28834
28835
28836                         if test "$USE_DARWIN" != 1; then
28837
28838 for ac_func in poll
28839 do
28840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28841 echo "$as_me:$LINENO: checking for $ac_func" >&5
28842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28843 if eval "test \"\${$as_ac_var+set}\" = set"; then
28844   echo $ECHO_N "(cached) $ECHO_C" >&6
28845 else
28846   cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h.  */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h.  */
28852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28854 #define $ac_func innocuous_$ac_func
28855
28856 /* System header to define __stub macros and hopefully few prototypes,
28857     which can conflict with char $ac_func (); below.
28858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28859     <limits.h> exists even on freestanding compilers.  */
28860
28861 #ifdef __STDC__
28862 # include <limits.h>
28863 #else
28864 # include <assert.h>
28865 #endif
28866
28867 #undef $ac_func
28868
28869 /* Override any gcc2 internal prototype to avoid an error.  */
28870 #ifdef __cplusplus
28871 extern "C"
28872 {
28873 #endif
28874 /* We use char because int might match the return type of a gcc2
28875    builtin and then its argument prototype would still apply.  */
28876 char $ac_func ();
28877 /* The GNU C library defines this for functions which it implements
28878     to always fail with ENOSYS.  Some functions are actually named
28879     something starting with __ and the normal name is an alias.  */
28880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28881 choke me
28882 #else
28883 char (*f) () = $ac_func;
28884 #endif
28885 #ifdef __cplusplus
28886 }
28887 #endif
28888
28889 int
28890 main ()
28891 {
28892 return f != $ac_func;
28893   ;
28894   return 0;
28895 }
28896 _ACEOF
28897 rm -f conftest.$ac_objext conftest$ac_exeext
28898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28899   (eval $ac_link) 2>conftest.er1
28900   ac_status=$?
28901   grep -v '^ *+' conftest.er1 >conftest.err
28902   rm -f conftest.er1
28903   cat conftest.err >&5
28904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905   (exit $ac_status); } &&
28906          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908   (eval $ac_try) 2>&5
28909   ac_status=$?
28910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911   (exit $ac_status); }; } &&
28912          { ac_try='test -s conftest$ac_exeext'
28913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28914   (eval $ac_try) 2>&5
28915   ac_status=$?
28916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917   (exit $ac_status); }; }; then
28918   eval "$as_ac_var=yes"
28919 else
28920   echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28922
28923 eval "$as_ac_var=no"
28924 fi
28925 rm -f conftest.err conftest.$ac_objext \
28926       conftest$ac_exeext conftest.$ac_ext
28927 fi
28928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28930 if test `eval echo '${'$as_ac_var'}'` = yes; then
28931   cat >>confdefs.h <<_ACEOF
28932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28933 _ACEOF
28934
28935 fi
28936 done
28937
28938         fi
28939
28940         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28941         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28942
28943         AFMINSTALL=afminstall
28944         TOOLKIT=GTK
28945         GUIDIST=GTK_DIST
28946
28947                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28948 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28949 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28950   echo $ECHO_N "(cached) $ECHO_C" >&6
28951 else
28952   ac_check_lib_save_LIBS=$LIBS
28953 LIBS="-lgdk  $LIBS"
28954 cat >conftest.$ac_ext <<_ACEOF
28955 /* confdefs.h.  */
28956 _ACEOF
28957 cat confdefs.h >>conftest.$ac_ext
28958 cat >>conftest.$ac_ext <<_ACEOF
28959 /* end confdefs.h.  */
28960
28961 /* Override any gcc2 internal prototype to avoid an error.  */
28962 #ifdef __cplusplus
28963 extern "C"
28964 #endif
28965 /* We use char because int might match the return type of a gcc2
28966    builtin and then its argument prototype would still apply.  */
28967 char gdk_im_open ();
28968 int
28969 main ()
28970 {
28971 gdk_im_open ();
28972   ;
28973   return 0;
28974 }
28975 _ACEOF
28976 rm -f conftest.$ac_objext conftest$ac_exeext
28977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28978   (eval $ac_link) 2>conftest.er1
28979   ac_status=$?
28980   grep -v '^ *+' conftest.er1 >conftest.err
28981   rm -f conftest.er1
28982   cat conftest.err >&5
28983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984   (exit $ac_status); } &&
28985          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987   (eval $ac_try) 2>&5
28988   ac_status=$?
28989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990   (exit $ac_status); }; } &&
28991          { ac_try='test -s conftest$ac_exeext'
28992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993   (eval $ac_try) 2>&5
28994   ac_status=$?
28995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996   (exit $ac_status); }; }; then
28997   ac_cv_lib_gdk_gdk_im_open=yes
28998 else
28999   echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29001
29002 ac_cv_lib_gdk_gdk_im_open=no
29003 fi
29004 rm -f conftest.err conftest.$ac_objext \
29005       conftest$ac_exeext conftest.$ac_ext
29006 LIBS=$ac_check_lib_save_LIBS
29007 fi
29008 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29009 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
29010 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29011   cat >>confdefs.h <<\_ACEOF
29012 #define HAVE_XIM 1
29013 _ACEOF
29014
29015 fi
29016
29017
29018
29019                 if test "$wxUSE_GPE" = "yes"; then
29020             echo "$as_me:$LINENO: checking for gpewidget library" >&5
29021 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29022
29023   ac_find_libraries=
29024   for ac_dir in $SEARCH_LIB;
29025   do
29026     for ac_extension in a so sl dylib dll.a; do
29027       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29028         ac_find_libraries=$ac_dir
29029         break 2
29030       fi
29031     done
29032   done
29033
29034             if test "$ac_find_libraries" != "" ; then
29035
29036     if test "$ac_find_libraries" = "default location"; then
29037     ac_path_to_link=""
29038   else
29039     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29040     result=$?
29041     if test $result = 0; then
29042       ac_path_to_link=""
29043     else
29044       ac_path_to_link=" -L$ac_find_libraries"
29045     fi
29046   fi
29047
29048                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29049                 WXGPE=1
29050                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29051 echo "${ECHO_T}found in $ac_find_libraries" >&6
29052             else
29053                 echo "$as_me:$LINENO: result: not found" >&5
29054 echo "${ECHO_T}not found" >&6
29055             fi
29056
29057                                                                                                                     fi
29058     fi
29059
29060     if test "$wxUSE_MGL" = 1; then
29061        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29062 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29063         if test "x$MGL_ROOT" = x ; then
29064             echo "$as_me:$LINENO: result: not found" >&5
29065 echo "${ECHO_T}not found" >&6
29066             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29067 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29068    { (exit 1); exit 1; }; }
29069         else
29070             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29071 echo "${ECHO_T}$MGL_ROOT" >&6
29072         fi
29073
29074         echo "$as_me:$LINENO: checking for libmgl location" >&5
29075 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29076                                 case "${host}" in
29077             *-*-linux* )
29078                                           if test "x$wxUSE_SHARED" = xyes ; then
29079                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29080               else
29081                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29082               fi
29083               ;;
29084             *-pc-msdosdjgpp )
29085               mgl_os_candidates="dos32/dj2"
29086               ;;
29087             *)
29088               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29089 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29090    { (exit 1); exit 1; }; }
29091         esac
29092
29093         mgl_lib_type=""
29094         mgl_os=""
29095
29096         for mgl_os_i in $mgl_os_candidates ; do
29097             if test "x$mgl_os" = x ; then
29098                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29099                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29100                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29101                         mgl_lib_type=debug
29102                         mgl_os=$mgl_os_i
29103                     fi
29104                 fi
29105                 if test "x$mgl_lib_type" = x ; then
29106                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29107                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29108                         mgl_lib_type=release
29109                         mgl_os=$mgl_os_i
29110                     fi
29111                 fi
29112             fi
29113         done
29114
29115         if test "x$mgl_os" = x ; then
29116             echo "$as_me:$LINENO: result: not found" >&5
29117 echo "${ECHO_T}not found" >&6
29118             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29119 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29120    { (exit 1); exit 1; }; }
29121         fi
29122         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29123 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29124
29125         wxUSE_UNIVERSAL="yes"
29126
29127         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29128         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29129
29130         AFMINSTALL=afminstall
29131         TOOLKIT=MGL
29132         GUIDIST=MGL_DIST
29133     fi
29134
29135     if test "$wxUSE_DFB" = 1; then
29136
29137
29138 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29139         if test -n "$ac_tool_prefix"; then
29140   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29141 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29142 echo "$as_me:$LINENO: checking for $ac_word" >&5
29143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29144 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29145   echo $ECHO_N "(cached) $ECHO_C" >&6
29146 else
29147   case $PKG_CONFIG in
29148   [\\/]* | ?:[\\/]*)
29149   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29150   ;;
29151   *)
29152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29153 for as_dir in $PATH
29154 do
29155   IFS=$as_save_IFS
29156   test -z "$as_dir" && as_dir=.
29157   for ac_exec_ext in '' $ac_executable_extensions; do
29158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29159     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29161     break 2
29162   fi
29163 done
29164 done
29165
29166   ;;
29167 esac
29168 fi
29169 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29170
29171 if test -n "$PKG_CONFIG"; then
29172   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29173 echo "${ECHO_T}$PKG_CONFIG" >&6
29174 else
29175   echo "$as_me:$LINENO: result: no" >&5
29176 echo "${ECHO_T}no" >&6
29177 fi
29178
29179 fi
29180 if test -z "$ac_cv_path_PKG_CONFIG"; then
29181   ac_pt_PKG_CONFIG=$PKG_CONFIG
29182   # Extract the first word of "pkg-config", so it can be a program name with args.
29183 set dummy pkg-config; ac_word=$2
29184 echo "$as_me:$LINENO: checking for $ac_word" >&5
29185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29186 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29187   echo $ECHO_N "(cached) $ECHO_C" >&6
29188 else
29189   case $ac_pt_PKG_CONFIG in
29190   [\\/]* | ?:[\\/]*)
29191   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29192   ;;
29193   *)
29194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29195 for as_dir in $PATH
29196 do
29197   IFS=$as_save_IFS
29198   test -z "$as_dir" && as_dir=.
29199   for ac_exec_ext in '' $ac_executable_extensions; do
29200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29201     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29203     break 2
29204   fi
29205 done
29206 done
29207
29208   ;;
29209 esac
29210 fi
29211 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29212
29213 if test -n "$ac_pt_PKG_CONFIG"; then
29214   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29215 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29216 else
29217   echo "$as_me:$LINENO: result: no" >&5
29218 echo "${ECHO_T}no" >&6
29219 fi
29220
29221   PKG_CONFIG=$ac_pt_PKG_CONFIG
29222 else
29223   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29224 fi
29225
29226 fi
29227 if test -n "$PKG_CONFIG"; then
29228         _pkg_min_version=0.9.0
29229         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29230 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29231         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29232                 echo "$as_me:$LINENO: result: yes" >&5
29233 echo "${ECHO_T}yes" >&6
29234         else
29235                 echo "$as_me:$LINENO: result: no" >&5
29236 echo "${ECHO_T}no" >&6
29237                 PKG_CONFIG=""
29238         fi
29239
29240 fi
29241
29242 pkg_failed=no
29243 echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29244 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29245
29246 if test -n "$PKG_CONFIG"; then
29247     if test -n "$DIRECTFB_CFLAGS"; then
29248         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29249     else
29250         if test -n "$PKG_CONFIG" && \
29251     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29252   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
29253   ac_status=$?
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); }; then
29256   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
29257 else
29258   pkg_failed=yes
29259 fi
29260     fi
29261 else
29262         pkg_failed=untried
29263 fi
29264 if test -n "$PKG_CONFIG"; then
29265     if test -n "$DIRECTFB_LIBS"; then
29266         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29267     else
29268         if test -n "$PKG_CONFIG" && \
29269     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29270   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
29271   ac_status=$?
29272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273   (exit $ac_status); }; then
29274   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
29275 else
29276   pkg_failed=yes
29277 fi
29278     fi
29279 else
29280         pkg_failed=untried
29281 fi
29282
29283
29284
29285 if test $pkg_failed = yes; then
29286
29287 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29288         _pkg_short_errors_supported=yes
29289 else
29290         _pkg_short_errors_supported=no
29291 fi
29292         if test $_pkg_short_errors_supported = yes; then
29293                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
29294         else
29295                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
29296         fi
29297         # Put the nasty error message in config.log where it belongs
29298         echo "$DIRECTFB_PKG_ERRORS" >&5
29299
29300
29301                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29302 echo "$as_me: error: DirectFB not found." >&2;}
29303    { (exit 1); exit 1; }; }
29304
29305
29306 elif test $pkg_failed = untried; then
29307
29308                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29309 echo "$as_me: error: DirectFB not found." >&2;}
29310    { (exit 1); exit 1; }; }
29311
29312
29313 else
29314         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29315         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29316         echo "$as_me:$LINENO: result: yes" >&5
29317 echo "${ECHO_T}yes" >&6
29318
29319                            wxUSE_UNIVERSAL="yes"
29320                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29321                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29322                            TOOLKIT=DFB
29323                            GUIDIST=DFB_DIST
29324
29325 fi
29326     fi
29327
29328     if test "$wxUSE_MICROWIN" = 1; then
29329         echo "$as_me:$LINENO: checking for MicroWindows" >&5
29330 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29331         if test "x$MICROWINDOWS" = x ; then
29332             echo "$as_me:$LINENO: result: not found" >&5
29333 echo "${ECHO_T}not found" >&6
29334             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29335 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29336    { (exit 1); exit 1; }; }
29337         else
29338             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29339 echo "${ECHO_T}$MICROWINDOWS" >&6
29340         fi
29341
29342         if test -f $MICROWINDOWS/lib/libmwin.a; then
29343             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29344 echo "${ECHO_T}MicroWindows' libraries found." >&6
29345         else
29346             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29347 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29348    { (exit 1); exit 1; }; }
29349         fi
29350
29351         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29352         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29353
29354         wxUSE_UNIVERSAL="yes"
29355
29356         AFMINSTALL=afminstall
29357         TOOLKIT=MICROWIN
29358         GUIDIST=MICROWIN_DIST
29359
29360         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29361     fi
29362
29363         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29364
29365 if test "x$ac_path_x_has_been_run" != xyes; then
29366   echo "$as_me:$LINENO: checking for X" >&5
29367 echo $ECHO_N "checking for X... $ECHO_C" >&6
29368
29369 ac_path_x_has_been_run=yes
29370
29371 # Check whether --with-x or --without-x was given.
29372 if test "${with_x+set}" = set; then
29373   withval="$with_x"
29374
29375 fi;
29376 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29377 if test "x$with_x" = xno; then
29378   # The user explicitly disabled X.
29379   have_x=disabled
29380 else
29381   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29382     # Both variables are already set.
29383     have_x=yes
29384   else
29385     if test "${ac_cv_have_x+set}" = set; then
29386   echo $ECHO_N "(cached) $ECHO_C" >&6
29387 else
29388   # One or both of the vars are not set, and there is no cached value.
29389 ac_x_includes=no ac_x_libraries=no
29390 rm -fr conftest.dir
29391 if mkdir conftest.dir; then
29392   cd conftest.dir
29393   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29394   cat >Imakefile <<'_ACEOF'
29395 acfindx:
29396         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29397 _ACEOF
29398   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29399     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29400     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29401     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29402     for ac_extension in a so sl; do
29403       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
29404          test -f $ac_im_libdir/libX11.$ac_extension; then
29405         ac_im_usrlibdir=$ac_im_libdir; break
29406       fi
29407     done
29408     # Screen out bogus values from the imake configuration.  They are
29409     # bogus both because they are the default anyway, and because
29410     # using them would break gcc on systems where it needs fixed includes.
29411     case $ac_im_incroot in
29412         /usr/include) ;;
29413         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29414     esac
29415     case $ac_im_usrlibdir in
29416         /usr/lib | /lib) ;;
29417         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29418     esac
29419   fi
29420   cd ..
29421   rm -fr conftest.dir
29422 fi
29423
29424 # Standard set of common directories for X headers.
29425 # Check X11 before X11Rn because it is often a symlink to the current release.
29426 ac_x_header_dirs='
29427 /usr/X11/include
29428 /usr/X11R6/include
29429 /usr/X11R5/include
29430 /usr/X11R4/include
29431
29432 /usr/include/X11
29433 /usr/include/X11R6
29434 /usr/include/X11R5
29435 /usr/include/X11R4
29436
29437 /usr/local/X11/include
29438 /usr/local/X11R6/include
29439 /usr/local/X11R5/include
29440 /usr/local/X11R4/include
29441
29442 /usr/local/include/X11
29443 /usr/local/include/X11R6
29444 /usr/local/include/X11R5
29445 /usr/local/include/X11R4
29446
29447 /usr/X386/include
29448 /usr/x386/include
29449 /usr/XFree86/include/X11
29450
29451 /usr/include
29452 /usr/local/include
29453 /usr/unsupported/include
29454 /usr/athena/include
29455 /usr/local/x11r5/include
29456 /usr/lpp/Xamples/include
29457
29458 /usr/openwin/include
29459 /usr/openwin/share/include'
29460
29461 if test "$ac_x_includes" = no; then
29462   # Guess where to find include files, by looking for a specified header file.
29463   # First, try using that file with no special directory specified.
29464   cat >conftest.$ac_ext <<_ACEOF
29465 /* confdefs.h.  */
29466 _ACEOF
29467 cat confdefs.h >>conftest.$ac_ext
29468 cat >>conftest.$ac_ext <<_ACEOF
29469 /* end confdefs.h.  */
29470 #include <X11/Xlib.h>
29471 _ACEOF
29472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29474   ac_status=$?
29475   grep -v '^ *+' conftest.er1 >conftest.err
29476   rm -f conftest.er1
29477   cat conftest.err >&5
29478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); } >/dev/null; then
29480   if test -s conftest.err; then
29481     ac_cpp_err=$ac_cxx_preproc_warn_flag
29482     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29483   else
29484     ac_cpp_err=
29485   fi
29486 else
29487   ac_cpp_err=yes
29488 fi
29489 if test -z "$ac_cpp_err"; then
29490   # We can compile using X headers with no special include directory.
29491 ac_x_includes=
29492 else
29493   echo "$as_me: failed program was:" >&5
29494 sed 's/^/| /' conftest.$ac_ext >&5
29495
29496   for ac_dir in $ac_x_header_dirs; do
29497   if test -r "$ac_dir/X11/Xlib.h"; then
29498     ac_x_includes=$ac_dir
29499     break
29500   fi
29501 done
29502 fi
29503 rm -f conftest.err conftest.$ac_ext
29504 fi # $ac_x_includes = no
29505
29506 if test "$ac_x_libraries" = no; then
29507   # Check for the libraries.
29508   # See if we find them without any special options.
29509   # Don't add to $LIBS permanently.
29510   ac_save_LIBS=$LIBS
29511   LIBS="-lX11 $LIBS"
29512   cat >conftest.$ac_ext <<_ACEOF
29513 /* confdefs.h.  */
29514 _ACEOF
29515 cat confdefs.h >>conftest.$ac_ext
29516 cat >>conftest.$ac_ext <<_ACEOF
29517 /* end confdefs.h.  */
29518 #include <X11/Xlib.h>
29519 int
29520 main ()
29521 {
29522 XrmInitialize ()
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_cxx_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   LIBS=$ac_save_LIBS
29549 # We can link X programs with no special library path.
29550 ac_x_libraries=
29551 else
29552   echo "$as_me: failed program was:" >&5
29553 sed 's/^/| /' conftest.$ac_ext >&5
29554
29555 LIBS=$ac_save_LIBS
29556 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29557 do
29558   # Don't even attempt the hair of trying to link an X program!
29559   for ac_extension in a so sl; do
29560     if test -r $ac_dir/libX11.$ac_extension; then
29561       ac_x_libraries=$ac_dir
29562       break 2
29563     fi
29564   done
29565 done
29566 fi
29567 rm -f conftest.err conftest.$ac_objext \
29568       conftest$ac_exeext conftest.$ac_ext
29569 fi # $ac_x_libraries = no
29570
29571 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29572   # Didn't find X anywhere.  Cache the known absence of X.
29573   ac_cv_have_x="have_x=no"
29574 else
29575   # Record where we found X for the cache.
29576   ac_cv_have_x="have_x=yes \
29577                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
29578 fi
29579 fi
29580
29581   fi
29582   eval "$ac_cv_have_x"
29583 fi # $with_x != no
29584
29585 if test "$have_x" != yes; then
29586   echo "$as_me:$LINENO: result: $have_x" >&5
29587 echo "${ECHO_T}$have_x" >&6
29588   no_x=yes
29589 else
29590   # If each of the values was on the command line, it overrides each guess.
29591   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29592   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29593   # Update the cache value to reflect the command line values.
29594   ac_cv_have_x="have_x=yes \
29595                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
29596   # It might be that x_includes is empty (headers are found in the
29597   # standard search path. Then output the corresponding message
29598   ac_out_x_includes=$x_includes
29599   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29600   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29601 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
29602 fi
29603
29604 fi
29605 if test "$no_x" = yes; then
29606   # Not all programs may use this symbol, but it does not hurt to define it.
29607
29608 cat >>confdefs.h <<\_ACEOF
29609 #define X_DISPLAY_MISSING 1
29610 _ACEOF
29611
29612   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29613 else
29614   if test -n "$x_includes"; then
29615     X_CFLAGS="$X_CFLAGS -I$x_includes"
29616   fi
29617
29618   # It would also be nice to do this for all -L options, not just this one.
29619   if test -n "$x_libraries"; then
29620     X_LIBS="$X_LIBS -L$x_libraries"
29621     # For Solaris; some versions of Sun CC require a space after -R and
29622     # others require no space.  Words are not sufficient . . . .
29623     case `(uname -sr) 2>/dev/null` in
29624     "SunOS 5"*)
29625       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29626 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29627       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29628       cat >conftest.$ac_ext <<_ACEOF
29629 /* confdefs.h.  */
29630 _ACEOF
29631 cat confdefs.h >>conftest.$ac_ext
29632 cat >>conftest.$ac_ext <<_ACEOF
29633 /* end confdefs.h.  */
29634
29635 int
29636 main ()
29637 {
29638
29639   ;
29640   return 0;
29641 }
29642 _ACEOF
29643 rm -f conftest.$ac_objext conftest$ac_exeext
29644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29645   (eval $ac_link) 2>conftest.er1
29646   ac_status=$?
29647   grep -v '^ *+' conftest.er1 >conftest.err
29648   rm -f conftest.er1
29649   cat conftest.err >&5
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); } &&
29652          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654   (eval $ac_try) 2>&5
29655   ac_status=$?
29656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657   (exit $ac_status); }; } &&
29658          { ac_try='test -s conftest$ac_exeext'
29659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29660   (eval $ac_try) 2>&5
29661   ac_status=$?
29662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663   (exit $ac_status); }; }; then
29664   ac_R_nospace=yes
29665 else
29666   echo "$as_me: failed program was:" >&5
29667 sed 's/^/| /' conftest.$ac_ext >&5
29668
29669 ac_R_nospace=no
29670 fi
29671 rm -f conftest.err conftest.$ac_objext \
29672       conftest$ac_exeext conftest.$ac_ext
29673       if test $ac_R_nospace = yes; then
29674         echo "$as_me:$LINENO: result: no" >&5
29675 echo "${ECHO_T}no" >&6
29676         X_LIBS="$X_LIBS -R$x_libraries"
29677       else
29678         LIBS="$ac_xsave_LIBS -R $x_libraries"
29679         cat >conftest.$ac_ext <<_ACEOF
29680 /* confdefs.h.  */
29681 _ACEOF
29682 cat confdefs.h >>conftest.$ac_ext
29683 cat >>conftest.$ac_ext <<_ACEOF
29684 /* end confdefs.h.  */
29685
29686 int
29687 main ()
29688 {
29689
29690   ;
29691   return 0;
29692 }
29693 _ACEOF
29694 rm -f conftest.$ac_objext conftest$ac_exeext
29695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29696   (eval $ac_link) 2>conftest.er1
29697   ac_status=$?
29698   grep -v '^ *+' conftest.er1 >conftest.err
29699   rm -f conftest.er1
29700   cat conftest.err >&5
29701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702   (exit $ac_status); } &&
29703          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29705   (eval $ac_try) 2>&5
29706   ac_status=$?
29707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708   (exit $ac_status); }; } &&
29709          { ac_try='test -s conftest$ac_exeext'
29710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29711   (eval $ac_try) 2>&5
29712   ac_status=$?
29713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714   (exit $ac_status); }; }; then
29715   ac_R_space=yes
29716 else
29717   echo "$as_me: failed program was:" >&5
29718 sed 's/^/| /' conftest.$ac_ext >&5
29719
29720 ac_R_space=no
29721 fi
29722 rm -f conftest.err conftest.$ac_objext \
29723       conftest$ac_exeext conftest.$ac_ext
29724         if test $ac_R_space = yes; then
29725           echo "$as_me:$LINENO: result: yes" >&5
29726 echo "${ECHO_T}yes" >&6
29727           X_LIBS="$X_LIBS -R $x_libraries"
29728         else
29729           echo "$as_me:$LINENO: result: neither works" >&5
29730 echo "${ECHO_T}neither works" >&6
29731         fi
29732       fi
29733       LIBS=$ac_xsave_LIBS
29734     esac
29735   fi
29736
29737   # Check for system-dependent libraries X programs must link with.
29738   # Do this before checking for the system-independent R6 libraries
29739   # (-lICE), since we may need -lsocket or whatever for X linking.
29740
29741   if test "$ISC" = yes; then
29742     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29743   else
29744     # Martyn Johnson says this is needed for Ultrix, if the X
29745     # libraries were built with DECnet support.  And Karl Berry says
29746     # the Alpha needs dnet_stub (dnet does not exist).
29747     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29748     cat >conftest.$ac_ext <<_ACEOF
29749 /* confdefs.h.  */
29750 _ACEOF
29751 cat confdefs.h >>conftest.$ac_ext
29752 cat >>conftest.$ac_ext <<_ACEOF
29753 /* end confdefs.h.  */
29754
29755 /* Override any gcc2 internal prototype to avoid an error.  */
29756 #ifdef __cplusplus
29757 extern "C"
29758 #endif
29759 /* We use char because int might match the return type of a gcc2
29760    builtin and then its argument prototype would still apply.  */
29761 char XOpenDisplay ();
29762 int
29763 main ()
29764 {
29765 XOpenDisplay ();
29766   ;
29767   return 0;
29768 }
29769 _ACEOF
29770 rm -f conftest.$ac_objext conftest$ac_exeext
29771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29772   (eval $ac_link) 2>conftest.er1
29773   ac_status=$?
29774   grep -v '^ *+' conftest.er1 >conftest.err
29775   rm -f conftest.er1
29776   cat conftest.err >&5
29777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778   (exit $ac_status); } &&
29779          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781   (eval $ac_try) 2>&5
29782   ac_status=$?
29783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784   (exit $ac_status); }; } &&
29785          { ac_try='test -s conftest$ac_exeext'
29786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787   (eval $ac_try) 2>&5
29788   ac_status=$?
29789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790   (exit $ac_status); }; }; then
29791   :
29792 else
29793   echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29795
29796 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29797 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29798 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29799   echo $ECHO_N "(cached) $ECHO_C" >&6
29800 else
29801   ac_check_lib_save_LIBS=$LIBS
29802 LIBS="-ldnet  $LIBS"
29803 cat >conftest.$ac_ext <<_ACEOF
29804 /* confdefs.h.  */
29805 _ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h.  */
29809
29810 /* Override any gcc2 internal prototype to avoid an error.  */
29811 #ifdef __cplusplus
29812 extern "C"
29813 #endif
29814 /* We use char because int might match the return type of a gcc2
29815    builtin and then its argument prototype would still apply.  */
29816 char dnet_ntoa ();
29817 int
29818 main ()
29819 {
29820 dnet_ntoa ();
29821   ;
29822   return 0;
29823 }
29824 _ACEOF
29825 rm -f conftest.$ac_objext conftest$ac_exeext
29826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29827   (eval $ac_link) 2>conftest.er1
29828   ac_status=$?
29829   grep -v '^ *+' conftest.er1 >conftest.err
29830   rm -f conftest.er1
29831   cat conftest.err >&5
29832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833   (exit $ac_status); } &&
29834          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29836   (eval $ac_try) 2>&5
29837   ac_status=$?
29838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839   (exit $ac_status); }; } &&
29840          { ac_try='test -s conftest$ac_exeext'
29841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842   (eval $ac_try) 2>&5
29843   ac_status=$?
29844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845   (exit $ac_status); }; }; then
29846   ac_cv_lib_dnet_dnet_ntoa=yes
29847 else
29848   echo "$as_me: failed program was:" >&5
29849 sed 's/^/| /' conftest.$ac_ext >&5
29850
29851 ac_cv_lib_dnet_dnet_ntoa=no
29852 fi
29853 rm -f conftest.err conftest.$ac_objext \
29854       conftest$ac_exeext conftest.$ac_ext
29855 LIBS=$ac_check_lib_save_LIBS
29856 fi
29857 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29858 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29859 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29860   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29861 fi
29862
29863     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29864       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29865 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29866 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29867   echo $ECHO_N "(cached) $ECHO_C" >&6
29868 else
29869   ac_check_lib_save_LIBS=$LIBS
29870 LIBS="-ldnet_stub  $LIBS"
29871 cat >conftest.$ac_ext <<_ACEOF
29872 /* confdefs.h.  */
29873 _ACEOF
29874 cat confdefs.h >>conftest.$ac_ext
29875 cat >>conftest.$ac_ext <<_ACEOF
29876 /* end confdefs.h.  */
29877
29878 /* Override any gcc2 internal prototype to avoid an error.  */
29879 #ifdef __cplusplus
29880 extern "C"
29881 #endif
29882 /* We use char because int might match the return type of a gcc2
29883    builtin and then its argument prototype would still apply.  */
29884 char dnet_ntoa ();
29885 int
29886 main ()
29887 {
29888 dnet_ntoa ();
29889   ;
29890   return 0;
29891 }
29892 _ACEOF
29893 rm -f conftest.$ac_objext conftest$ac_exeext
29894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29895   (eval $ac_link) 2>conftest.er1
29896   ac_status=$?
29897   grep -v '^ *+' conftest.er1 >conftest.err
29898   rm -f conftest.er1
29899   cat conftest.err >&5
29900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901   (exit $ac_status); } &&
29902          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29904   (eval $ac_try) 2>&5
29905   ac_status=$?
29906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907   (exit $ac_status); }; } &&
29908          { ac_try='test -s conftest$ac_exeext'
29909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29910   (eval $ac_try) 2>&5
29911   ac_status=$?
29912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913   (exit $ac_status); }; }; then
29914   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29915 else
29916   echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29918
29919 ac_cv_lib_dnet_stub_dnet_ntoa=no
29920 fi
29921 rm -f conftest.err conftest.$ac_objext \
29922       conftest$ac_exeext conftest.$ac_ext
29923 LIBS=$ac_check_lib_save_LIBS
29924 fi
29925 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29926 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29927 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29928   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29929 fi
29930
29931     fi
29932 fi
29933 rm -f conftest.err conftest.$ac_objext \
29934       conftest$ac_exeext conftest.$ac_ext
29935     LIBS="$ac_xsave_LIBS"
29936
29937     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29938     # to get the SysV transport functions.
29939     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29940     # needs -lnsl.
29941     # The nsl library prevents programs from opening the X display
29942     # on Irix 5.2, according to T.E. Dickey.
29943     # The functions gethostbyname, getservbyname, and inet_addr are
29944     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29945     echo "$as_me:$LINENO: checking for gethostbyname" >&5
29946 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29947 if test "${ac_cv_func_gethostbyname+set}" = set; then
29948   echo $ECHO_N "(cached) $ECHO_C" >&6
29949 else
29950   cat >conftest.$ac_ext <<_ACEOF
29951 /* confdefs.h.  */
29952 _ACEOF
29953 cat confdefs.h >>conftest.$ac_ext
29954 cat >>conftest.$ac_ext <<_ACEOF
29955 /* end confdefs.h.  */
29956 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29958 #define gethostbyname innocuous_gethostbyname
29959
29960 /* System header to define __stub macros and hopefully few prototypes,
29961     which can conflict with char gethostbyname (); below.
29962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29963     <limits.h> exists even on freestanding compilers.  */
29964
29965 #ifdef __STDC__
29966 # include <limits.h>
29967 #else
29968 # include <assert.h>
29969 #endif
29970
29971 #undef gethostbyname
29972
29973 /* Override any gcc2 internal prototype to avoid an error.  */
29974 #ifdef __cplusplus
29975 extern "C"
29976 {
29977 #endif
29978 /* We use char because int might match the return type of a gcc2
29979    builtin and then its argument prototype would still apply.  */
29980 char gethostbyname ();
29981 /* The GNU C library defines this for functions which it implements
29982     to always fail with ENOSYS.  Some functions are actually named
29983     something starting with __ and the normal name is an alias.  */
29984 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29985 choke me
29986 #else
29987 char (*f) () = gethostbyname;
29988 #endif
29989 #ifdef __cplusplus
29990 }
29991 #endif
29992
29993 int
29994 main ()
29995 {
29996 return f != gethostbyname;
29997   ;
29998   return 0;
29999 }
30000 _ACEOF
30001 rm -f conftest.$ac_objext conftest$ac_exeext
30002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30003   (eval $ac_link) 2>conftest.er1
30004   ac_status=$?
30005   grep -v '^ *+' conftest.er1 >conftest.err
30006   rm -f conftest.er1
30007   cat conftest.err >&5
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); } &&
30010          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012   (eval $ac_try) 2>&5
30013   ac_status=$?
30014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015   (exit $ac_status); }; } &&
30016          { ac_try='test -s conftest$ac_exeext'
30017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018   (eval $ac_try) 2>&5
30019   ac_status=$?
30020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021   (exit $ac_status); }; }; then
30022   ac_cv_func_gethostbyname=yes
30023 else
30024   echo "$as_me: failed program was:" >&5
30025 sed 's/^/| /' conftest.$ac_ext >&5
30026
30027 ac_cv_func_gethostbyname=no
30028 fi
30029 rm -f conftest.err conftest.$ac_objext \
30030       conftest$ac_exeext conftest.$ac_ext
30031 fi
30032 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30033 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30034
30035     if test $ac_cv_func_gethostbyname = no; then
30036       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30037 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30038 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30039   echo $ECHO_N "(cached) $ECHO_C" >&6
30040 else
30041   ac_check_lib_save_LIBS=$LIBS
30042 LIBS="-lnsl  $LIBS"
30043 cat >conftest.$ac_ext <<_ACEOF
30044 /* confdefs.h.  */
30045 _ACEOF
30046 cat confdefs.h >>conftest.$ac_ext
30047 cat >>conftest.$ac_ext <<_ACEOF
30048 /* end confdefs.h.  */
30049
30050 /* Override any gcc2 internal prototype to avoid an error.  */
30051 #ifdef __cplusplus
30052 extern "C"
30053 #endif
30054 /* We use char because int might match the return type of a gcc2
30055    builtin and then its argument prototype would still apply.  */
30056 char gethostbyname ();
30057 int
30058 main ()
30059 {
30060 gethostbyname ();
30061   ;
30062   return 0;
30063 }
30064 _ACEOF
30065 rm -f conftest.$ac_objext conftest$ac_exeext
30066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30067   (eval $ac_link) 2>conftest.er1
30068   ac_status=$?
30069   grep -v '^ *+' conftest.er1 >conftest.err
30070   rm -f conftest.er1
30071   cat conftest.err >&5
30072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073   (exit $ac_status); } &&
30074          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30076   (eval $ac_try) 2>&5
30077   ac_status=$?
30078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079   (exit $ac_status); }; } &&
30080          { ac_try='test -s conftest$ac_exeext'
30081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30082   (eval $ac_try) 2>&5
30083   ac_status=$?
30084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085   (exit $ac_status); }; }; then
30086   ac_cv_lib_nsl_gethostbyname=yes
30087 else
30088   echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30090
30091 ac_cv_lib_nsl_gethostbyname=no
30092 fi
30093 rm -f conftest.err conftest.$ac_objext \
30094       conftest$ac_exeext conftest.$ac_ext
30095 LIBS=$ac_check_lib_save_LIBS
30096 fi
30097 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30098 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30099 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30100   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30101 fi
30102
30103       if test $ac_cv_lib_nsl_gethostbyname = no; then
30104         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30105 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30106 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30107   echo $ECHO_N "(cached) $ECHO_C" >&6
30108 else
30109   ac_check_lib_save_LIBS=$LIBS
30110 LIBS="-lbsd  $LIBS"
30111 cat >conftest.$ac_ext <<_ACEOF
30112 /* confdefs.h.  */
30113 _ACEOF
30114 cat confdefs.h >>conftest.$ac_ext
30115 cat >>conftest.$ac_ext <<_ACEOF
30116 /* end confdefs.h.  */
30117
30118 /* Override any gcc2 internal prototype to avoid an error.  */
30119 #ifdef __cplusplus
30120 extern "C"
30121 #endif
30122 /* We use char because int might match the return type of a gcc2
30123    builtin and then its argument prototype would still apply.  */
30124 char gethostbyname ();
30125 int
30126 main ()
30127 {
30128 gethostbyname ();
30129   ;
30130   return 0;
30131 }
30132 _ACEOF
30133 rm -f conftest.$ac_objext conftest$ac_exeext
30134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30135   (eval $ac_link) 2>conftest.er1
30136   ac_status=$?
30137   grep -v '^ *+' conftest.er1 >conftest.err
30138   rm -f conftest.er1
30139   cat conftest.err >&5
30140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141   (exit $ac_status); } &&
30142          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30144   (eval $ac_try) 2>&5
30145   ac_status=$?
30146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147   (exit $ac_status); }; } &&
30148          { ac_try='test -s conftest$ac_exeext'
30149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150   (eval $ac_try) 2>&5
30151   ac_status=$?
30152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153   (exit $ac_status); }; }; then
30154   ac_cv_lib_bsd_gethostbyname=yes
30155 else
30156   echo "$as_me: failed program was:" >&5
30157 sed 's/^/| /' conftest.$ac_ext >&5
30158
30159 ac_cv_lib_bsd_gethostbyname=no
30160 fi
30161 rm -f conftest.err conftest.$ac_objext \
30162       conftest$ac_exeext conftest.$ac_ext
30163 LIBS=$ac_check_lib_save_LIBS
30164 fi
30165 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30166 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30167 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30168   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30169 fi
30170
30171       fi
30172     fi
30173
30174     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30175     # socket/setsockopt and other routines are undefined under SCO ODT
30176     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30177     # on later versions), says Simon Leinen: it contains gethostby*
30178     # variants that don't use the name server (or something).  -lsocket
30179     # must be given before -lnsl if both are needed.  We assume that
30180     # if connect needs -lnsl, so does gethostbyname.
30181     echo "$as_me:$LINENO: checking for connect" >&5
30182 echo $ECHO_N "checking for connect... $ECHO_C" >&6
30183 if test "${ac_cv_func_connect+set}" = set; then
30184   echo $ECHO_N "(cached) $ECHO_C" >&6
30185 else
30186   cat >conftest.$ac_ext <<_ACEOF
30187 /* confdefs.h.  */
30188 _ACEOF
30189 cat confdefs.h >>conftest.$ac_ext
30190 cat >>conftest.$ac_ext <<_ACEOF
30191 /* end confdefs.h.  */
30192 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30194 #define connect innocuous_connect
30195
30196 /* System header to define __stub macros and hopefully few prototypes,
30197     which can conflict with char connect (); below.
30198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30199     <limits.h> exists even on freestanding compilers.  */
30200
30201 #ifdef __STDC__
30202 # include <limits.h>
30203 #else
30204 # include <assert.h>
30205 #endif
30206
30207 #undef connect
30208
30209 /* Override any gcc2 internal prototype to avoid an error.  */
30210 #ifdef __cplusplus
30211 extern "C"
30212 {
30213 #endif
30214 /* We use char because int might match the return type of a gcc2
30215    builtin and then its argument prototype would still apply.  */
30216 char connect ();
30217 /* The GNU C library defines this for functions which it implements
30218     to always fail with ENOSYS.  Some functions are actually named
30219     something starting with __ and the normal name is an alias.  */
30220 #if defined (__stub_connect) || defined (__stub___connect)
30221 choke me
30222 #else
30223 char (*f) () = connect;
30224 #endif
30225 #ifdef __cplusplus
30226 }
30227 #endif
30228
30229 int
30230 main ()
30231 {
30232 return f != connect;
30233   ;
30234   return 0;
30235 }
30236 _ACEOF
30237 rm -f conftest.$ac_objext conftest$ac_exeext
30238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30239   (eval $ac_link) 2>conftest.er1
30240   ac_status=$?
30241   grep -v '^ *+' conftest.er1 >conftest.err
30242   rm -f conftest.er1
30243   cat conftest.err >&5
30244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245   (exit $ac_status); } &&
30246          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30248   (eval $ac_try) 2>&5
30249   ac_status=$?
30250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251   (exit $ac_status); }; } &&
30252          { ac_try='test -s conftest$ac_exeext'
30253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254   (eval $ac_try) 2>&5
30255   ac_status=$?
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); }; }; then
30258   ac_cv_func_connect=yes
30259 else
30260   echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.$ac_ext >&5
30262
30263 ac_cv_func_connect=no
30264 fi
30265 rm -f conftest.err conftest.$ac_objext \
30266       conftest$ac_exeext conftest.$ac_ext
30267 fi
30268 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30269 echo "${ECHO_T}$ac_cv_func_connect" >&6
30270
30271     if test $ac_cv_func_connect = no; then
30272       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30273 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30274 if test "${ac_cv_lib_socket_connect+set}" = set; then
30275   echo $ECHO_N "(cached) $ECHO_C" >&6
30276 else
30277   ac_check_lib_save_LIBS=$LIBS
30278 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30279 cat >conftest.$ac_ext <<_ACEOF
30280 /* confdefs.h.  */
30281 _ACEOF
30282 cat confdefs.h >>conftest.$ac_ext
30283 cat >>conftest.$ac_ext <<_ACEOF
30284 /* end confdefs.h.  */
30285
30286 /* Override any gcc2 internal prototype to avoid an error.  */
30287 #ifdef __cplusplus
30288 extern "C"
30289 #endif
30290 /* We use char because int might match the return type of a gcc2
30291    builtin and then its argument prototype would still apply.  */
30292 char connect ();
30293 int
30294 main ()
30295 {
30296 connect ();
30297   ;
30298   return 0;
30299 }
30300 _ACEOF
30301 rm -f conftest.$ac_objext conftest$ac_exeext
30302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30303   (eval $ac_link) 2>conftest.er1
30304   ac_status=$?
30305   grep -v '^ *+' conftest.er1 >conftest.err
30306   rm -f conftest.er1
30307   cat conftest.err >&5
30308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309   (exit $ac_status); } &&
30310          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312   (eval $ac_try) 2>&5
30313   ac_status=$?
30314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315   (exit $ac_status); }; } &&
30316          { ac_try='test -s conftest$ac_exeext'
30317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318   (eval $ac_try) 2>&5
30319   ac_status=$?
30320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321   (exit $ac_status); }; }; then
30322   ac_cv_lib_socket_connect=yes
30323 else
30324   echo "$as_me: failed program was:" >&5
30325 sed 's/^/| /' conftest.$ac_ext >&5
30326
30327 ac_cv_lib_socket_connect=no
30328 fi
30329 rm -f conftest.err conftest.$ac_objext \
30330       conftest$ac_exeext conftest.$ac_ext
30331 LIBS=$ac_check_lib_save_LIBS
30332 fi
30333 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30334 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30335 if test $ac_cv_lib_socket_connect = yes; then
30336   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30337 fi
30338
30339     fi
30340
30341     # Guillermo Gomez says -lposix is necessary on A/UX.
30342     echo "$as_me:$LINENO: checking for remove" >&5
30343 echo $ECHO_N "checking for remove... $ECHO_C" >&6
30344 if test "${ac_cv_func_remove+set}" = set; then
30345   echo $ECHO_N "(cached) $ECHO_C" >&6
30346 else
30347   cat >conftest.$ac_ext <<_ACEOF
30348 /* confdefs.h.  */
30349 _ACEOF
30350 cat confdefs.h >>conftest.$ac_ext
30351 cat >>conftest.$ac_ext <<_ACEOF
30352 /* end confdefs.h.  */
30353 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30355 #define remove innocuous_remove
30356
30357 /* System header to define __stub macros and hopefully few prototypes,
30358     which can conflict with char remove (); below.
30359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30360     <limits.h> exists even on freestanding compilers.  */
30361
30362 #ifdef __STDC__
30363 # include <limits.h>
30364 #else
30365 # include <assert.h>
30366 #endif
30367
30368 #undef remove
30369
30370 /* Override any gcc2 internal prototype to avoid an error.  */
30371 #ifdef __cplusplus
30372 extern "C"
30373 {
30374 #endif
30375 /* We use char because int might match the return type of a gcc2
30376    builtin and then its argument prototype would still apply.  */
30377 char remove ();
30378 /* The GNU C library defines this for functions which it implements
30379     to always fail with ENOSYS.  Some functions are actually named
30380     something starting with __ and the normal name is an alias.  */
30381 #if defined (__stub_remove) || defined (__stub___remove)
30382 choke me
30383 #else
30384 char (*f) () = remove;
30385 #endif
30386 #ifdef __cplusplus
30387 }
30388 #endif
30389
30390 int
30391 main ()
30392 {
30393 return f != remove;
30394   ;
30395   return 0;
30396 }
30397 _ACEOF
30398 rm -f conftest.$ac_objext conftest$ac_exeext
30399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30400   (eval $ac_link) 2>conftest.er1
30401   ac_status=$?
30402   grep -v '^ *+' conftest.er1 >conftest.err
30403   rm -f conftest.er1
30404   cat conftest.err >&5
30405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406   (exit $ac_status); } &&
30407          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30409   (eval $ac_try) 2>&5
30410   ac_status=$?
30411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412   (exit $ac_status); }; } &&
30413          { ac_try='test -s conftest$ac_exeext'
30414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30415   (eval $ac_try) 2>&5
30416   ac_status=$?
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); }; }; then
30419   ac_cv_func_remove=yes
30420 else
30421   echo "$as_me: failed program was:" >&5
30422 sed 's/^/| /' conftest.$ac_ext >&5
30423
30424 ac_cv_func_remove=no
30425 fi
30426 rm -f conftest.err conftest.$ac_objext \
30427       conftest$ac_exeext conftest.$ac_ext
30428 fi
30429 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30430 echo "${ECHO_T}$ac_cv_func_remove" >&6
30431
30432     if test $ac_cv_func_remove = no; then
30433       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30434 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30435 if test "${ac_cv_lib_posix_remove+set}" = set; then
30436   echo $ECHO_N "(cached) $ECHO_C" >&6
30437 else
30438   ac_check_lib_save_LIBS=$LIBS
30439 LIBS="-lposix  $LIBS"
30440 cat >conftest.$ac_ext <<_ACEOF
30441 /* confdefs.h.  */
30442 _ACEOF
30443 cat confdefs.h >>conftest.$ac_ext
30444 cat >>conftest.$ac_ext <<_ACEOF
30445 /* end confdefs.h.  */
30446
30447 /* Override any gcc2 internal prototype to avoid an error.  */
30448 #ifdef __cplusplus
30449 extern "C"
30450 #endif
30451 /* We use char because int might match the return type of a gcc2
30452    builtin and then its argument prototype would still apply.  */
30453 char remove ();
30454 int
30455 main ()
30456 {
30457 remove ();
30458   ;
30459   return 0;
30460 }
30461 _ACEOF
30462 rm -f conftest.$ac_objext conftest$ac_exeext
30463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30464   (eval $ac_link) 2>conftest.er1
30465   ac_status=$?
30466   grep -v '^ *+' conftest.er1 >conftest.err
30467   rm -f conftest.er1
30468   cat conftest.err >&5
30469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470   (exit $ac_status); } &&
30471          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473   (eval $ac_try) 2>&5
30474   ac_status=$?
30475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476   (exit $ac_status); }; } &&
30477          { ac_try='test -s conftest$ac_exeext'
30478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30479   (eval $ac_try) 2>&5
30480   ac_status=$?
30481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482   (exit $ac_status); }; }; then
30483   ac_cv_lib_posix_remove=yes
30484 else
30485   echo "$as_me: failed program was:" >&5
30486 sed 's/^/| /' conftest.$ac_ext >&5
30487
30488 ac_cv_lib_posix_remove=no
30489 fi
30490 rm -f conftest.err conftest.$ac_objext \
30491       conftest$ac_exeext conftest.$ac_ext
30492 LIBS=$ac_check_lib_save_LIBS
30493 fi
30494 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30495 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30496 if test $ac_cv_lib_posix_remove = yes; then
30497   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30498 fi
30499
30500     fi
30501
30502     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30503     echo "$as_me:$LINENO: checking for shmat" >&5
30504 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30505 if test "${ac_cv_func_shmat+set}" = set; then
30506   echo $ECHO_N "(cached) $ECHO_C" >&6
30507 else
30508   cat >conftest.$ac_ext <<_ACEOF
30509 /* confdefs.h.  */
30510 _ACEOF
30511 cat confdefs.h >>conftest.$ac_ext
30512 cat >>conftest.$ac_ext <<_ACEOF
30513 /* end confdefs.h.  */
30514 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30516 #define shmat innocuous_shmat
30517
30518 /* System header to define __stub macros and hopefully few prototypes,
30519     which can conflict with char shmat (); below.
30520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30521     <limits.h> exists even on freestanding compilers.  */
30522
30523 #ifdef __STDC__
30524 # include <limits.h>
30525 #else
30526 # include <assert.h>
30527 #endif
30528
30529 #undef shmat
30530
30531 /* Override any gcc2 internal prototype to avoid an error.  */
30532 #ifdef __cplusplus
30533 extern "C"
30534 {
30535 #endif
30536 /* We use char because int might match the return type of a gcc2
30537    builtin and then its argument prototype would still apply.  */
30538 char shmat ();
30539 /* The GNU C library defines this for functions which it implements
30540     to always fail with ENOSYS.  Some functions are actually named
30541     something starting with __ and the normal name is an alias.  */
30542 #if defined (__stub_shmat) || defined (__stub___shmat)
30543 choke me
30544 #else
30545 char (*f) () = shmat;
30546 #endif
30547 #ifdef __cplusplus
30548 }
30549 #endif
30550
30551 int
30552 main ()
30553 {
30554 return f != shmat;
30555   ;
30556   return 0;
30557 }
30558 _ACEOF
30559 rm -f conftest.$ac_objext conftest$ac_exeext
30560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30561   (eval $ac_link) 2>conftest.er1
30562   ac_status=$?
30563   grep -v '^ *+' conftest.er1 >conftest.err
30564   rm -f conftest.er1
30565   cat conftest.err >&5
30566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567   (exit $ac_status); } &&
30568          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30570   (eval $ac_try) 2>&5
30571   ac_status=$?
30572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573   (exit $ac_status); }; } &&
30574          { ac_try='test -s conftest$ac_exeext'
30575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30576   (eval $ac_try) 2>&5
30577   ac_status=$?
30578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30579   (exit $ac_status); }; }; then
30580   ac_cv_func_shmat=yes
30581 else
30582   echo "$as_me: failed program was:" >&5
30583 sed 's/^/| /' conftest.$ac_ext >&5
30584
30585 ac_cv_func_shmat=no
30586 fi
30587 rm -f conftest.err conftest.$ac_objext \
30588       conftest$ac_exeext conftest.$ac_ext
30589 fi
30590 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30591 echo "${ECHO_T}$ac_cv_func_shmat" >&6
30592
30593     if test $ac_cv_func_shmat = no; then
30594       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30595 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30596 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30597   echo $ECHO_N "(cached) $ECHO_C" >&6
30598 else
30599   ac_check_lib_save_LIBS=$LIBS
30600 LIBS="-lipc  $LIBS"
30601 cat >conftest.$ac_ext <<_ACEOF
30602 /* confdefs.h.  */
30603 _ACEOF
30604 cat confdefs.h >>conftest.$ac_ext
30605 cat >>conftest.$ac_ext <<_ACEOF
30606 /* end confdefs.h.  */
30607
30608 /* Override any gcc2 internal prototype to avoid an error.  */
30609 #ifdef __cplusplus
30610 extern "C"
30611 #endif
30612 /* We use char because int might match the return type of a gcc2
30613    builtin and then its argument prototype would still apply.  */
30614 char shmat ();
30615 int
30616 main ()
30617 {
30618 shmat ();
30619   ;
30620   return 0;
30621 }
30622 _ACEOF
30623 rm -f conftest.$ac_objext conftest$ac_exeext
30624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30625   (eval $ac_link) 2>conftest.er1
30626   ac_status=$?
30627   grep -v '^ *+' conftest.er1 >conftest.err
30628   rm -f conftest.er1
30629   cat conftest.err >&5
30630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631   (exit $ac_status); } &&
30632          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30634   (eval $ac_try) 2>&5
30635   ac_status=$?
30636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637   (exit $ac_status); }; } &&
30638          { ac_try='test -s conftest$ac_exeext'
30639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640   (eval $ac_try) 2>&5
30641   ac_status=$?
30642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643   (exit $ac_status); }; }; then
30644   ac_cv_lib_ipc_shmat=yes
30645 else
30646   echo "$as_me: failed program was:" >&5
30647 sed 's/^/| /' conftest.$ac_ext >&5
30648
30649 ac_cv_lib_ipc_shmat=no
30650 fi
30651 rm -f conftest.err conftest.$ac_objext \
30652       conftest$ac_exeext conftest.$ac_ext
30653 LIBS=$ac_check_lib_save_LIBS
30654 fi
30655 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30656 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30657 if test $ac_cv_lib_ipc_shmat = yes; then
30658   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30659 fi
30660
30661     fi
30662   fi
30663
30664   # Check for libraries that X11R6 Xt/Xaw programs need.
30665   ac_save_LDFLAGS=$LDFLAGS
30666   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30667   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30668   # check for ICE first), but we must link in the order -lSM -lICE or
30669   # we get undefined symbols.  So assume we have SM if we have ICE.
30670   # These have to be linked with before -lX11, unlike the other
30671   # libraries we check for below, so use a different variable.
30672   # John Interrante, Karl Berry
30673   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30674 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30675 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30676   echo $ECHO_N "(cached) $ECHO_C" >&6
30677 else
30678   ac_check_lib_save_LIBS=$LIBS
30679 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30680 cat >conftest.$ac_ext <<_ACEOF
30681 /* confdefs.h.  */
30682 _ACEOF
30683 cat confdefs.h >>conftest.$ac_ext
30684 cat >>conftest.$ac_ext <<_ACEOF
30685 /* end confdefs.h.  */
30686
30687 /* Override any gcc2 internal prototype to avoid an error.  */
30688 #ifdef __cplusplus
30689 extern "C"
30690 #endif
30691 /* We use char because int might match the return type of a gcc2
30692    builtin and then its argument prototype would still apply.  */
30693 char IceConnectionNumber ();
30694 int
30695 main ()
30696 {
30697 IceConnectionNumber ();
30698   ;
30699   return 0;
30700 }
30701 _ACEOF
30702 rm -f conftest.$ac_objext conftest$ac_exeext
30703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30704   (eval $ac_link) 2>conftest.er1
30705   ac_status=$?
30706   grep -v '^ *+' conftest.er1 >conftest.err
30707   rm -f conftest.er1
30708   cat conftest.err >&5
30709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710   (exit $ac_status); } &&
30711          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30713   (eval $ac_try) 2>&5
30714   ac_status=$?
30715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716   (exit $ac_status); }; } &&
30717          { ac_try='test -s conftest$ac_exeext'
30718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30719   (eval $ac_try) 2>&5
30720   ac_status=$?
30721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722   (exit $ac_status); }; }; then
30723   ac_cv_lib_ICE_IceConnectionNumber=yes
30724 else
30725   echo "$as_me: failed program was:" >&5
30726 sed 's/^/| /' conftest.$ac_ext >&5
30727
30728 ac_cv_lib_ICE_IceConnectionNumber=no
30729 fi
30730 rm -f conftest.err conftest.$ac_objext \
30731       conftest$ac_exeext conftest.$ac_ext
30732 LIBS=$ac_check_lib_save_LIBS
30733 fi
30734 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30735 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30736 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30737   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30738 fi
30739
30740   LDFLAGS=$ac_save_LDFLAGS
30741
30742 fi
30743
30744
30745         if test "$no_x" = "yes"; then
30746           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30747 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30748    { (exit 1); exit 1; }; }
30749         fi
30750
30751                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30752         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
30753         AFMINSTALL=afminstall
30754         COMPILED_X_PROGRAM=0
30755
30756     fi
30757
30758     if test "$wxUSE_X11" = 1; then
30759         if test "$wxUSE_NANOX" = "yes"; then
30760             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30761 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30762             if test "x$MICROWIN" = x ; then
30763                 echo "$as_me:$LINENO: result: not found" >&5
30764 echo "${ECHO_T}not found" >&6
30765                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30766 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30767    { (exit 1); exit 1; }; }
30768             else
30769                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30770 echo "${ECHO_T}$MICROWIN" >&6
30771                 cat >>confdefs.h <<\_ACEOF
30772 #define wxUSE_NANOX 1
30773 _ACEOF
30774
30775             fi
30776         fi
30777
30778         if test "$wxUSE_UNICODE" = "yes"; then
30779
30780 pkg_failed=no
30781 echo "$as_me:$LINENO: checking for PANGOX" >&5
30782 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
30783
30784 if test -n "$PKG_CONFIG"; then
30785     if test -n "$PANGOX_CFLAGS"; then
30786         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30787     else
30788         if test -n "$PKG_CONFIG" && \
30789     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30790   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30791   ac_status=$?
30792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793   (exit $ac_status); }; then
30794   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30795 else
30796   pkg_failed=yes
30797 fi
30798     fi
30799 else
30800         pkg_failed=untried
30801 fi
30802 if test -n "$PKG_CONFIG"; then
30803     if test -n "$PANGOX_LIBS"; then
30804         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30805     else
30806         if test -n "$PKG_CONFIG" && \
30807     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30808   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30809   ac_status=$?
30810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811   (exit $ac_status); }; then
30812   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30813 else
30814   pkg_failed=yes
30815 fi
30816     fi
30817 else
30818         pkg_failed=untried
30819 fi
30820
30821
30822
30823 if test $pkg_failed = yes; then
30824
30825 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30826         _pkg_short_errors_supported=yes
30827 else
30828         _pkg_short_errors_supported=no
30829 fi
30830         if test $_pkg_short_errors_supported = yes; then
30831                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30832         else
30833                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
30834         fi
30835         # Put the nasty error message in config.log where it belongs
30836         echo "$PANGOX_PKG_ERRORS" >&5
30837
30838
30839                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30840 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30841    { (exit 1); exit 1; }; }
30842
30843
30844 elif test $pkg_failed = untried; then
30845
30846                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30847 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30848    { (exit 1); exit 1; }; }
30849
30850
30851 else
30852         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30853         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30854         echo "$as_me:$LINENO: result: yes" >&5
30855 echo "${ECHO_T}yes" >&6
30856
30857                         CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30858                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30859
30860 fi
30861
30862 pkg_failed=no
30863 echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30864 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30865
30866 if test -n "$PKG_CONFIG"; then
30867     if test -n "$PANGOFT2_CFLAGS"; then
30868         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30869     else
30870         if test -n "$PKG_CONFIG" && \
30871     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30872   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30873   ac_status=$?
30874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875   (exit $ac_status); }; then
30876   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30877 else
30878   pkg_failed=yes
30879 fi
30880     fi
30881 else
30882         pkg_failed=untried
30883 fi
30884 if test -n "$PKG_CONFIG"; then
30885     if test -n "$PANGOFT2_LIBS"; then
30886         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30887     else
30888         if test -n "$PKG_CONFIG" && \
30889     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30890   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30891   ac_status=$?
30892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893   (exit $ac_status); }; then
30894   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30895 else
30896   pkg_failed=yes
30897 fi
30898     fi
30899 else
30900         pkg_failed=untried
30901 fi
30902
30903
30904
30905 if test $pkg_failed = yes; then
30906
30907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30908         _pkg_short_errors_supported=yes
30909 else
30910         _pkg_short_errors_supported=no
30911 fi
30912         if test $_pkg_short_errors_supported = yes; then
30913                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30914         else
30915                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30916         fi
30917         # Put the nasty error message in config.log where it belongs
30918         echo "$PANGOFT2_PKG_ERRORS" >&5
30919
30920
30921                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30922 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30923                         wxUSE_PRINTING_ARCHITECTURE="no"
30924
30925
30926 elif test $pkg_failed = untried; then
30927
30928                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30929 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30930                         wxUSE_PRINTING_ARCHITECTURE="no"
30931
30932
30933 else
30934         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30935         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30936         echo "$as_me:$LINENO: result: yes" >&5
30937 echo "${ECHO_T}yes" >&6
30938
30939                         CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30940                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
30941
30942 fi
30943
30944 pkg_failed=no
30945 echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30946 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
30947
30948 if test -n "$PKG_CONFIG"; then
30949     if test -n "$PANGOXFT_CFLAGS"; then
30950         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30951     else
30952         if test -n "$PKG_CONFIG" && \
30953     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30954   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30955   ac_status=$?
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); }; then
30958   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
30959 else
30960   pkg_failed=yes
30961 fi
30962     fi
30963 else
30964         pkg_failed=untried
30965 fi
30966 if test -n "$PKG_CONFIG"; then
30967     if test -n "$PANGOXFT_LIBS"; then
30968         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30969     else
30970         if test -n "$PKG_CONFIG" && \
30971     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30972   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30973   ac_status=$?
30974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975   (exit $ac_status); }; then
30976   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30977 else
30978   pkg_failed=yes
30979 fi
30980     fi
30981 else
30982         pkg_failed=untried
30983 fi
30984
30985
30986
30987 if test $pkg_failed = yes; then
30988
30989 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30990         _pkg_short_errors_supported=yes
30991 else
30992         _pkg_short_errors_supported=no
30993 fi
30994         if test $_pkg_short_errors_supported = yes; then
30995                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30996         else
30997                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30998         fi
30999         # Put the nasty error message in config.log where it belongs
31000         echo "$PANGOXFT_PKG_ERRORS" >&5
31001
31002
31003                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31004 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31005
31006
31007 elif test $pkg_failed = untried; then
31008
31009                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31010 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31011
31012
31013 else
31014         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31015         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31016         echo "$as_me:$LINENO: result: yes" >&5
31017 echo "${ECHO_T}yes" >&6
31018
31019                         cat >>confdefs.h <<\_ACEOF
31020 #define HAVE_PANGO_XFT 1
31021 _ACEOF
31022
31023                         CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31024                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31025
31026 fi
31027                 save_CXXFLAGS="$CXXFLAGS"
31028                 save_LIBS="$LIBS"
31029                 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31030                 LIBS="$LIBS $PANGOX_LIBS"
31031
31032 for ac_func in pango_font_family_is_monospace
31033 do
31034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31035 echo "$as_me:$LINENO: checking for $ac_func" >&5
31036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31037 if eval "test \"\${$as_ac_var+set}\" = set"; then
31038   echo $ECHO_N "(cached) $ECHO_C" >&6
31039 else
31040   cat >conftest.$ac_ext <<_ACEOF
31041 /* confdefs.h.  */
31042 _ACEOF
31043 cat confdefs.h >>conftest.$ac_ext
31044 cat >>conftest.$ac_ext <<_ACEOF
31045 /* end confdefs.h.  */
31046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31048 #define $ac_func innocuous_$ac_func
31049
31050 /* System header to define __stub macros and hopefully few prototypes,
31051     which can conflict with char $ac_func (); below.
31052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31053     <limits.h> exists even on freestanding compilers.  */
31054
31055 #ifdef __STDC__
31056 # include <limits.h>
31057 #else
31058 # include <assert.h>
31059 #endif
31060
31061 #undef $ac_func
31062
31063 /* Override any gcc2 internal prototype to avoid an error.  */
31064 #ifdef __cplusplus
31065 extern "C"
31066 {
31067 #endif
31068 /* We use char because int might match the return type of a gcc2
31069    builtin and then its argument prototype would still apply.  */
31070 char $ac_func ();
31071 /* The GNU C library defines this for functions which it implements
31072     to always fail with ENOSYS.  Some functions are actually named
31073     something starting with __ and the normal name is an alias.  */
31074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31075 choke me
31076 #else
31077 char (*f) () = $ac_func;
31078 #endif
31079 #ifdef __cplusplus
31080 }
31081 #endif
31082
31083 int
31084 main ()
31085 {
31086 return f != $ac_func;
31087   ;
31088   return 0;
31089 }
31090 _ACEOF
31091 rm -f conftest.$ac_objext conftest$ac_exeext
31092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31093   (eval $ac_link) 2>conftest.er1
31094   ac_status=$?
31095   grep -v '^ *+' conftest.er1 >conftest.err
31096   rm -f conftest.er1
31097   cat conftest.err >&5
31098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099   (exit $ac_status); } &&
31100          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102   (eval $ac_try) 2>&5
31103   ac_status=$?
31104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105   (exit $ac_status); }; } &&
31106          { ac_try='test -s conftest$ac_exeext'
31107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31108   (eval $ac_try) 2>&5
31109   ac_status=$?
31110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31111   (exit $ac_status); }; }; then
31112   eval "$as_ac_var=yes"
31113 else
31114   echo "$as_me: failed program was:" >&5
31115 sed 's/^/| /' conftest.$ac_ext >&5
31116
31117 eval "$as_ac_var=no"
31118 fi
31119 rm -f conftest.err conftest.$ac_objext \
31120       conftest$ac_exeext conftest.$ac_ext
31121 fi
31122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31124 if test `eval echo '${'$as_ac_var'}'` = yes; then
31125   cat >>confdefs.h <<_ACEOF
31126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31127 _ACEOF
31128
31129 fi
31130 done
31131
31132                 CXXFLAGS="$save_CXXFLAGS"
31133                 LIBS="$save_LIBS"
31134         fi
31135
31136         wxUSE_UNIVERSAL="yes"
31137
31138         if test "$wxUSE_NANOX" = "yes"; then
31139             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31140             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"
31141             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31142         else
31143             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31144         fi
31145
31146         TOOLKIT=X11
31147         GUIDIST=X11_DIST
31148     fi
31149
31150     if test "$wxUSE_MOTIF" = 1; then
31151         if test "$wxUSE_UNICODE" = "yes"; then
31152             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31153 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31154    { (exit 1); exit 1; }; }
31155         fi
31156
31157         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31158 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
31159
31160 ac_find_includes=
31161 for ac_dir in $SEARCH_INCLUDE /usr/include;
31162   do
31163     if test -f "$ac_dir/Xm/Xm.h"; then
31164       ac_find_includes=$ac_dir
31165       break
31166     fi
31167   done
31168
31169         if test "$ac_find_includes" != "" ; then
31170             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31171 echo "${ECHO_T}found in $ac_find_includes" >&6
31172
31173     if test "x$ac_find_includes" = "x/usr/include"; then
31174     ac_path_to_include=""
31175   else
31176     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31177     result=$?
31178     if test $result = 0; then
31179       ac_path_to_include=""
31180     else
31181       ac_path_to_include=" -I$ac_find_includes"
31182     fi
31183   fi
31184
31185             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31186         else
31187             save_CXXFLAGS=$CXXFLAGS
31188             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31189
31190             cat >conftest.$ac_ext <<_ACEOF
31191 /* confdefs.h.  */
31192 _ACEOF
31193 cat confdefs.h >>conftest.$ac_ext
31194 cat >>conftest.$ac_ext <<_ACEOF
31195 /* end confdefs.h.  */
31196
31197                     #include <Xm/Xm.h>
31198
31199 int
31200 main ()
31201 {
31202
31203                     int version;
31204                     version = xmUseVersion;
31205
31206   ;
31207   return 0;
31208 }
31209 _ACEOF
31210 rm -f conftest.$ac_objext
31211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31212   (eval $ac_compile) 2>conftest.er1
31213   ac_status=$?
31214   grep -v '^ *+' conftest.er1 >conftest.err
31215   rm -f conftest.er1
31216   cat conftest.err >&5
31217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218   (exit $ac_status); } &&
31219          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31221   (eval $ac_try) 2>&5
31222   ac_status=$?
31223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224   (exit $ac_status); }; } &&
31225          { ac_try='test -s conftest.$ac_objext'
31226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227   (eval $ac_try) 2>&5
31228   ac_status=$?
31229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230   (exit $ac_status); }; }; then
31231
31232                     echo "$as_me:$LINENO: result: found in default search path" >&5
31233 echo "${ECHO_T}found in default search path" >&6
31234                     COMPILED_X_PROGRAM=1
31235
31236 else
31237   echo "$as_me: failed program was:" >&5
31238 sed 's/^/| /' conftest.$ac_ext >&5
31239
31240
31241                     echo "$as_me:$LINENO: result: no" >&5
31242 echo "${ECHO_T}no" >&6
31243                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31244 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31245    { (exit 1); exit 1; }; }
31246
31247
31248 fi
31249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31250
31251             CXXFLAGS=$save_CXXFLAGS
31252         fi
31253
31254
31255         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31256 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31257
31258   ac_find_libraries=
31259   for ac_dir in $SEARCH_LIB;
31260   do
31261     for ac_extension in a so sl dylib dll.a; do
31262       if test -f "$ac_dir/libXm.$ac_extension"; then
31263         ac_find_libraries=$ac_dir
31264         break 2
31265       fi
31266     done
31267   done
31268
31269
31270         if test "x$ac_find_libraries" != "x" ; then
31271             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31272 echo "${ECHO_T}found in $ac_find_libraries" >&6
31273
31274
31275     if test "$ac_find_libraries" = "default location"; then
31276     ac_path_to_link=""
31277   else
31278     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31279     result=$?
31280     if test $result = 0; then
31281       ac_path_to_link=""
31282     else
31283       ac_path_to_link=" -L$ac_find_libraries"
31284     fi
31285   fi
31286
31287             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31288         else
31289                                                 save_CXXFLAGS=$CXXFLAGS
31290             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31291             save_LIBS="$LIBS"
31292             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31293
31294             cat >conftest.$ac_ext <<_ACEOF
31295 /* confdefs.h.  */
31296 _ACEOF
31297 cat confdefs.h >>conftest.$ac_ext
31298 cat >>conftest.$ac_ext <<_ACEOF
31299 /* end confdefs.h.  */
31300
31301                     #include <Xm/Xm.h>
31302
31303 int
31304 main ()
31305 {
31306
31307                     int version;
31308                     version = xmUseVersion;
31309
31310   ;
31311   return 0;
31312 }
31313 _ACEOF
31314 rm -f conftest.$ac_objext conftest$ac_exeext
31315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31316   (eval $ac_link) 2>conftest.er1
31317   ac_status=$?
31318   grep -v '^ *+' conftest.er1 >conftest.err
31319   rm -f conftest.er1
31320   cat conftest.err >&5
31321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322   (exit $ac_status); } &&
31323          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31325   (eval $ac_try) 2>&5
31326   ac_status=$?
31327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328   (exit $ac_status); }; } &&
31329          { ac_try='test -s conftest$ac_exeext'
31330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31331   (eval $ac_try) 2>&5
31332   ac_status=$?
31333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334   (exit $ac_status); }; }; then
31335
31336                     echo "$as_me:$LINENO: result: found in default search path" >&5
31337 echo "${ECHO_T}found in default search path" >&6
31338                     COMPILED_X_PROGRAM=1
31339
31340 else
31341   echo "$as_me: failed program was:" >&5
31342 sed 's/^/| /' conftest.$ac_ext >&5
31343
31344
31345                     echo "$as_me:$LINENO: result: no" >&5
31346 echo "${ECHO_T}no" >&6
31347                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31348 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31349    { (exit 1); exit 1; }; }
31350
31351
31352 fi
31353 rm -f conftest.err conftest.$ac_objext \
31354       conftest$ac_exeext conftest.$ac_ext
31355
31356             CXXFLAGS=$save_CXXFLAGS
31357             LIBS="$save_LIBS"
31358         fi
31359
31360         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31361 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31362         libp_link=""
31363         libsm_ice_link=""
31364         libs_found=0
31365         for libp in "" " -lXp"; do
31366             if test "$libs_found" = "0"; then
31367                 for libsm_ice in "" " -lSM -lICE"; do
31368                     if test "$libs_found" = "0"; then
31369                         save_LIBS="$LIBS"
31370                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31371                         save_CXXFLAGS=$CXXFLAGS
31372                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31373
31374                         cat >conftest.$ac_ext <<_ACEOF
31375 /* confdefs.h.  */
31376 _ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h.  */
31380
31381                                 #include <Xm/Xm.h>
31382                                 #include <Xm/List.h>
31383
31384 int
31385 main ()
31386 {
31387
31388                                 XmString string = NULL;
31389                                 Widget w = NULL;
31390                                 int position = 0;
31391                                 XmListAddItem(w, string, position);
31392
31393   ;
31394   return 0;
31395 }
31396 _ACEOF
31397 rm -f conftest.$ac_objext conftest$ac_exeext
31398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31399   (eval $ac_link) 2>conftest.er1
31400   ac_status=$?
31401   grep -v '^ *+' conftest.er1 >conftest.err
31402   rm -f conftest.er1
31403   cat conftest.err >&5
31404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405   (exit $ac_status); } &&
31406          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31408   (eval $ac_try) 2>&5
31409   ac_status=$?
31410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411   (exit $ac_status); }; } &&
31412          { ac_try='test -s conftest$ac_exeext'
31413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31414   (eval $ac_try) 2>&5
31415   ac_status=$?
31416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417   (exit $ac_status); }; }; then
31418
31419                                 libp_link="$libp"
31420                                 libsm_ice_link="$libsm_ice"
31421                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31422 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31423                                 libs_found=1
31424
31425 else
31426   echo "$as_me: failed program was:" >&5
31427 sed 's/^/| /' conftest.$ac_ext >&5
31428
31429
31430
31431 fi
31432 rm -f conftest.err conftest.$ac_objext \
31433       conftest$ac_exeext conftest.$ac_ext
31434
31435                         LIBS="$save_LIBS"
31436                         CXXFLAGS=$save_CXXFLAGS
31437                     fi
31438                 done
31439             fi
31440         done
31441
31442         if test "$libs_found" = "0"; then
31443             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31444 echo "${ECHO_T}can't find the right libraries" >&6
31445             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31446 echo "$as_me: error: can't link a simple motif program" >&2;}
31447    { (exit 1); exit 1; }; }
31448         fi
31449
31450                         echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31451 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31452 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31453   echo $ECHO_N "(cached) $ECHO_C" >&6
31454 else
31455   ac_check_lib_save_LIBS=$LIBS
31456 LIBS="-lSgm  $LIBS"
31457 cat >conftest.$ac_ext <<_ACEOF
31458 /* confdefs.h.  */
31459 _ACEOF
31460 cat confdefs.h >>conftest.$ac_ext
31461 cat >>conftest.$ac_ext <<_ACEOF
31462 /* end confdefs.h.  */
31463
31464 /* Override any gcc2 internal prototype to avoid an error.  */
31465 #ifdef __cplusplus
31466 extern "C"
31467 #endif
31468 /* We use char because int might match the return type of a gcc2
31469    builtin and then its argument prototype would still apply.  */
31470 char SgCreateList ();
31471 int
31472 main ()
31473 {
31474 SgCreateList ();
31475   ;
31476   return 0;
31477 }
31478 _ACEOF
31479 rm -f conftest.$ac_objext conftest$ac_exeext
31480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31481   (eval $ac_link) 2>conftest.er1
31482   ac_status=$?
31483   grep -v '^ *+' conftest.er1 >conftest.err
31484   rm -f conftest.er1
31485   cat conftest.err >&5
31486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487   (exit $ac_status); } &&
31488          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31490   (eval $ac_try) 2>&5
31491   ac_status=$?
31492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493   (exit $ac_status); }; } &&
31494          { ac_try='test -s conftest$ac_exeext'
31495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31496   (eval $ac_try) 2>&5
31497   ac_status=$?
31498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499   (exit $ac_status); }; }; then
31500   ac_cv_lib_Sgm_SgCreateList=yes
31501 else
31502   echo "$as_me: failed program was:" >&5
31503 sed 's/^/| /' conftest.$ac_ext >&5
31504
31505 ac_cv_lib_Sgm_SgCreateList=no
31506 fi
31507 rm -f conftest.err conftest.$ac_objext \
31508       conftest$ac_exeext conftest.$ac_ext
31509 LIBS=$ac_check_lib_save_LIBS
31510 fi
31511 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31512 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31513 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31514   libsgm_link=" -lSgm"
31515 fi
31516
31517
31518         save_CXXFLAGS=$CXXFLAGS
31519         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31520
31521         echo "$as_me:$LINENO: checking for Motif 2" >&5
31522 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
31523 if test "${wx_cv_lib_motif2+set}" = set; then
31524   echo $ECHO_N "(cached) $ECHO_C" >&6
31525 else
31526   cat >conftest.$ac_ext <<_ACEOF
31527 /* confdefs.h.  */
31528 _ACEOF
31529 cat confdefs.h >>conftest.$ac_ext
31530 cat >>conftest.$ac_ext <<_ACEOF
31531 /* end confdefs.h.  */
31532
31533                             #include <Xm/Xm.h>
31534
31535 int
31536 main ()
31537 {
31538
31539                             #if XmVersion < 2000
31540                             Not Motif 2
31541                             #endif
31542
31543   ;
31544   return 0;
31545 }
31546 _ACEOF
31547 rm -f conftest.$ac_objext
31548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31549   (eval $ac_compile) 2>conftest.er1
31550   ac_status=$?
31551   grep -v '^ *+' conftest.er1 >conftest.err
31552   rm -f conftest.er1
31553   cat conftest.err >&5
31554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555   (exit $ac_status); } &&
31556          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31558   (eval $ac_try) 2>&5
31559   ac_status=$?
31560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561   (exit $ac_status); }; } &&
31562          { ac_try='test -s conftest.$ac_objext'
31563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31564   (eval $ac_try) 2>&5
31565   ac_status=$?
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); }; }; then
31568   wx_cv_lib_motif2="yes"
31569 else
31570   echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31572
31573 wx_cv_lib_motif2="no"
31574 fi
31575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31576 fi
31577 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31578 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31579         if test "$wx_cv_lib_motif2" = "yes"; then
31580             cat >>confdefs.h <<\_ACEOF
31581 #define __WXMOTIF20__ 1
31582 _ACEOF
31583
31584         else
31585             cat >>confdefs.h <<\_ACEOF
31586 #define __WXMOTIF20__ 0
31587 _ACEOF
31588
31589         fi
31590
31591         echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31592 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
31593 if test "${wx_cv_lib_lesstif+set}" = set; then
31594   echo $ECHO_N "(cached) $ECHO_C" >&6
31595 else
31596   cat >conftest.$ac_ext <<_ACEOF
31597 /* confdefs.h.  */
31598 _ACEOF
31599 cat confdefs.h >>conftest.$ac_ext
31600 cat >>conftest.$ac_ext <<_ACEOF
31601 /* end confdefs.h.  */
31602
31603                             #include <Xm/Xm.h>
31604
31605 int
31606 main ()
31607 {
31608
31609                             #if !defined(LesstifVersion) || LesstifVersion <= 0
31610                             Not Lesstif
31611                             #endif
31612
31613   ;
31614   return 0;
31615 }
31616 _ACEOF
31617 rm -f conftest.$ac_objext
31618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31619   (eval $ac_compile) 2>conftest.er1
31620   ac_status=$?
31621   grep -v '^ *+' conftest.er1 >conftest.err
31622   rm -f conftest.er1
31623   cat conftest.err >&5
31624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625   (exit $ac_status); } &&
31626          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628   (eval $ac_try) 2>&5
31629   ac_status=$?
31630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631   (exit $ac_status); }; } &&
31632          { ac_try='test -s conftest.$ac_objext'
31633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634   (eval $ac_try) 2>&5
31635   ac_status=$?
31636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637   (exit $ac_status); }; }; then
31638   wx_cv_lib_lesstif="yes"
31639 else
31640   echo "$as_me: failed program was:" >&5
31641 sed 's/^/| /' conftest.$ac_ext >&5
31642
31643 wx_cv_lib_lesstif="no"
31644 fi
31645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31646
31647 fi
31648 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31649 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31650         if test "$wx_cv_lib_lesstif" = "yes"; then
31651             cat >>confdefs.h <<\_ACEOF
31652 #define __WXLESSTIF__ 1
31653 _ACEOF
31654
31655         else
31656             cat >>confdefs.h <<\_ACEOF
31657 #define __WXLESSTIF__ 0
31658 _ACEOF
31659
31660         fi
31661
31662         CXXFLAGS=$save_CXXFLAGS
31663
31664         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
31665         TOOLKIT=MOTIF
31666         GUIDIST=MOTIF_DIST
31667     fi
31668
31669         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31670                 if test "$wxUSE_LIBXPM" = "sys"; then
31671             echo "$as_me:$LINENO: checking for Xpm library" >&5
31672 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31673
31674   ac_find_libraries=
31675   for ac_dir in $SEARCH_LIB;
31676   do
31677     for ac_extension in a so sl dylib dll.a; do
31678       if test -f "$ac_dir/libXpm.$ac_extension"; then
31679         ac_find_libraries=$ac_dir
31680         break 2
31681       fi
31682     done
31683   done
31684
31685             if test "$ac_find_libraries" != "" ; then
31686
31687     if test "$ac_find_libraries" = "default location"; then
31688     ac_path_to_link=""
31689   else
31690     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31691     result=$?
31692     if test $result = 0; then
31693       ac_path_to_link=""
31694     else
31695       ac_path_to_link=" -L$ac_find_libraries"
31696     fi
31697   fi
31698
31699                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31700                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31701 echo "${ECHO_T}found in $ac_find_libraries" >&6
31702
31703                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31704 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31705 if test "${wx_cv_x11_xpm_h+set}" = set; then
31706   echo $ECHO_N "(cached) $ECHO_C" >&6
31707 else
31708
31709                         save_CXXFLAGS=$CXXFLAGS
31710                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31711
31712                         cat >conftest.$ac_ext <<_ACEOF
31713 /* confdefs.h.  */
31714 _ACEOF
31715 cat confdefs.h >>conftest.$ac_ext
31716 cat >>conftest.$ac_ext <<_ACEOF
31717 /* end confdefs.h.  */
31718
31719                                 #include <X11/xpm.h>
31720
31721 int
31722 main ()
31723 {
31724
31725                                 int version;
31726                                 version = XpmLibraryVersion();
31727
31728   ;
31729   return 0;
31730 }
31731 _ACEOF
31732 rm -f conftest.$ac_objext
31733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31734   (eval $ac_compile) 2>conftest.er1
31735   ac_status=$?
31736   grep -v '^ *+' conftest.er1 >conftest.err
31737   rm -f conftest.er1
31738   cat conftest.err >&5
31739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740   (exit $ac_status); } &&
31741          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743   (eval $ac_try) 2>&5
31744   ac_status=$?
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); }; } &&
31747          { ac_try='test -s conftest.$ac_objext'
31748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31749   (eval $ac_try) 2>&5
31750   ac_status=$?
31751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752   (exit $ac_status); }; }; then
31753   wx_cv_x11_xpm_h=yes
31754 else
31755   echo "$as_me: failed program was:" >&5
31756 sed 's/^/| /' conftest.$ac_ext >&5
31757
31758 wx_cv_x11_xpm_h=no
31759
31760 fi
31761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31762
31763                         CXXFLAGS=$save_CXXFLAGS
31764
31765
31766 fi
31767 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31768 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31769
31770                 if test $wx_cv_x11_xpm_h = "yes"; then
31771                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31772                     cat >>confdefs.h <<\_ACEOF
31773 #define wxHAVE_LIB_XPM 1
31774 _ACEOF
31775
31776                 else
31777                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31778 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31779                 fi
31780             fi
31781
31782         fi
31783
31784                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31785 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31786 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31787   echo $ECHO_N "(cached) $ECHO_C" >&6
31788 else
31789   ac_check_lib_save_LIBS=$LIBS
31790 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31791 cat >conftest.$ac_ext <<_ACEOF
31792 /* confdefs.h.  */
31793 _ACEOF
31794 cat confdefs.h >>conftest.$ac_ext
31795 cat >>conftest.$ac_ext <<_ACEOF
31796 /* end confdefs.h.  */
31797
31798 /* Override any gcc2 internal prototype to avoid an error.  */
31799 #ifdef __cplusplus
31800 extern "C"
31801 #endif
31802 /* We use char because int might match the return type of a gcc2
31803    builtin and then its argument prototype would still apply.  */
31804 char XShapeQueryExtension ();
31805 int
31806 main ()
31807 {
31808 XShapeQueryExtension ();
31809   ;
31810   return 0;
31811 }
31812 _ACEOF
31813 rm -f conftest.$ac_objext conftest$ac_exeext
31814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31815   (eval $ac_link) 2>conftest.er1
31816   ac_status=$?
31817   grep -v '^ *+' conftest.er1 >conftest.err
31818   rm -f conftest.er1
31819   cat conftest.err >&5
31820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821   (exit $ac_status); } &&
31822          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31824   (eval $ac_try) 2>&5
31825   ac_status=$?
31826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827   (exit $ac_status); }; } &&
31828          { ac_try='test -s conftest$ac_exeext'
31829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31830   (eval $ac_try) 2>&5
31831   ac_status=$?
31832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833   (exit $ac_status); }; }; then
31834   ac_cv_lib_Xext_XShapeQueryExtension=yes
31835 else
31836   echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31838
31839 ac_cv_lib_Xext_XShapeQueryExtension=no
31840 fi
31841 rm -f conftest.err conftest.$ac_objext \
31842       conftest$ac_exeext conftest.$ac_ext
31843 LIBS=$ac_check_lib_save_LIBS
31844 fi
31845 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31846 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31847 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31848
31849                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31850                       wxHAVE_XEXT_LIB=1
31851
31852 fi
31853
31854
31855         if test "$wxHAVE_XEXT_LIB" = 1; then
31856             save_CXXFLAGS="$CXXFLAGS"
31857             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31858
31859             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31860 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31861             cat >conftest.$ac_ext <<_ACEOF
31862 /* confdefs.h.  */
31863 _ACEOF
31864 cat confdefs.h >>conftest.$ac_ext
31865 cat >>conftest.$ac_ext <<_ACEOF
31866 /* end confdefs.h.  */
31867
31868                             #include <X11/Xlib.h>
31869                             #include <X11/extensions/shape.h>
31870
31871 int
31872 main ()
31873 {
31874
31875                             int dummy1, dummy2;
31876                             XShapeQueryExtension((Display*)NULL,
31877                                                  (int*)NULL, (int*)NULL);
31878
31879   ;
31880   return 0;
31881 }
31882 _ACEOF
31883 rm -f conftest.$ac_objext
31884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31885   (eval $ac_compile) 2>conftest.er1
31886   ac_status=$?
31887   grep -v '^ *+' conftest.er1 >conftest.err
31888   rm -f conftest.er1
31889   cat conftest.err >&5
31890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891   (exit $ac_status); } &&
31892          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894   (eval $ac_try) 2>&5
31895   ac_status=$?
31896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897   (exit $ac_status); }; } &&
31898          { ac_try='test -s conftest.$ac_objext'
31899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31900   (eval $ac_try) 2>&5
31901   ac_status=$?
31902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903   (exit $ac_status); }; }; then
31904
31905                             cat >>confdefs.h <<\_ACEOF
31906 #define HAVE_XSHAPE 1
31907 _ACEOF
31908
31909                             echo "$as_me:$LINENO: result: found" >&5
31910 echo "${ECHO_T}found" >&6
31911
31912 else
31913   echo "$as_me: failed program was:" >&5
31914 sed 's/^/| /' conftest.$ac_ext >&5
31915
31916
31917                             echo "$as_me:$LINENO: result: not found" >&5
31918 echo "${ECHO_T}not found" >&6
31919
31920 fi
31921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31922             CXXFLAGS="$save_CXXFLAGS"
31923
31924         fi
31925     fi
31926
31927     if test "$wxUSE_MAC" = 1; then
31928         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31929 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31930         if test "$GCC" = yes; then
31931             echo "$as_me:$LINENO: result: gcc" >&5
31932 echo "${ECHO_T}gcc" >&6
31933             CPPFLAGS_PASCAL="-fpascal-strings"
31934         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31935             echo "$as_me:$LINENO: result: xlc" >&5
31936 echo "${ECHO_T}xlc" >&6
31937             CPPFLAGS_PASCAL="-qmacpstr"
31938         else
31939             echo "$as_me:$LINENO: result: none" >&5
31940 echo "${ECHO_T}none" >&6
31941         fi
31942
31943         if test "x$wxUSE_UNIX" = "xyes"; then
31944             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
31945         else
31946                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
31947         fi
31948
31949         TOOLKIT=MAC
31950                 GUIDIST=MACX_DIST
31951                         WXBASEPORT="_carbon"
31952     fi
31953
31954     if test "$wxUSE_COCOA" = 1; then
31955         TOOLKIT=COCOA
31956         GUIDIST=COCOA_DIST
31957     fi
31958
31959     if test "$wxUSE_PM" = 1; then
31960         TOOLKIT=PM
31961         GUIDIST=PM_DIST
31962         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31963 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31964 if test "${wx_cv_spbcdata+set}" = set; then
31965   echo $ECHO_N "(cached) $ECHO_C" >&6
31966 else
31967
31968                 cat >conftest.$ac_ext <<_ACEOF
31969 /* confdefs.h.  */
31970 _ACEOF
31971 cat confdefs.h >>conftest.$ac_ext
31972 cat >>conftest.$ac_ext <<_ACEOF
31973 /* end confdefs.h.  */
31974
31975                         #define INCL_PM
31976                         #include <os2.h>
31977
31978 int
31979 main ()
31980 {
31981
31982                         SPBCDATA test;
31983
31984   ;
31985   return 0;
31986 }
31987 _ACEOF
31988 rm -f conftest.$ac_objext
31989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31990   (eval $ac_compile) 2>conftest.er1
31991   ac_status=$?
31992   grep -v '^ *+' conftest.er1 >conftest.err
31993   rm -f conftest.er1
31994   cat conftest.err >&5
31995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996   (exit $ac_status); } &&
31997          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31999   (eval $ac_try) 2>&5
32000   ac_status=$?
32001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002   (exit $ac_status); }; } &&
32003          { ac_try='test -s conftest.$ac_objext'
32004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32005   (eval $ac_try) 2>&5
32006   ac_status=$?
32007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32008   (exit $ac_status); }; }; then
32009   wx_cv_spbcdata=yes
32010 else
32011   echo "$as_me: failed program was:" >&5
32012 sed 's/^/| /' conftest.$ac_ext >&5
32013
32014 wx_cv_spbcdata=no
32015
32016 fi
32017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32018
32019
32020 fi
32021 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32022 echo "${ECHO_T}$wx_cv_spbcdata" >&6
32023
32024         if test $wx_cv_spbcdata = "yes"; then
32025             cat >>confdefs.h <<\_ACEOF
32026 #define HAVE_SPBCDATA 1
32027 _ACEOF
32028
32029         fi
32030     fi
32031
32032         if test "$TOOLKIT" = "PM" ; then
32033         TOOLKIT_DIR="os2"
32034     else
32035         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32036     fi
32037
32038     if test "$wxUSE_UNIVERSAL" = "yes"; then
32039         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32040         WIDGET_SET=univ
32041     fi
32042
32043         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32044     DISTDIR="wx\$(TOOLKIT)"
32045 else
32046     USE_GUI=0
32047
32048             TOOLKIT_DIR="base"
32049
32050         if test "$USE_WIN32" = 1 ; then
32051                         TOOLKIT="MSW"
32052     fi
32053
32054         GUIDIST="BASE_DIST"
32055     DISTDIR="wxBase"
32056 fi
32057
32058
32059 if test "$wxUSE_GUI" = "yes"; then
32060     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32061
32062 for ac_header in X11/Xlib.h
32063 do
32064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32066   echo "$as_me:$LINENO: checking for $ac_header" >&5
32067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32069   echo $ECHO_N "(cached) $ECHO_C" >&6
32070 fi
32071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32073 else
32074   # Is the header compilable?
32075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32077 cat >conftest.$ac_ext <<_ACEOF
32078 /* confdefs.h.  */
32079 _ACEOF
32080 cat confdefs.h >>conftest.$ac_ext
32081 cat >>conftest.$ac_ext <<_ACEOF
32082 /* end confdefs.h.  */
32083 $ac_includes_default
32084 #include <$ac_header>
32085 _ACEOF
32086 rm -f conftest.$ac_objext
32087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32088   (eval $ac_compile) 2>conftest.er1
32089   ac_status=$?
32090   grep -v '^ *+' conftest.er1 >conftest.err
32091   rm -f conftest.er1
32092   cat conftest.err >&5
32093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094   (exit $ac_status); } &&
32095          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32097   (eval $ac_try) 2>&5
32098   ac_status=$?
32099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100   (exit $ac_status); }; } &&
32101          { ac_try='test -s conftest.$ac_objext'
32102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32103   (eval $ac_try) 2>&5
32104   ac_status=$?
32105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106   (exit $ac_status); }; }; then
32107   ac_header_compiler=yes
32108 else
32109   echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32111
32112 ac_header_compiler=no
32113 fi
32114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32116 echo "${ECHO_T}$ac_header_compiler" >&6
32117
32118 # Is the header present?
32119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32121 cat >conftest.$ac_ext <<_ACEOF
32122 /* confdefs.h.  */
32123 _ACEOF
32124 cat confdefs.h >>conftest.$ac_ext
32125 cat >>conftest.$ac_ext <<_ACEOF
32126 /* end confdefs.h.  */
32127 #include <$ac_header>
32128 _ACEOF
32129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32131   ac_status=$?
32132   grep -v '^ *+' conftest.er1 >conftest.err
32133   rm -f conftest.er1
32134   cat conftest.err >&5
32135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136   (exit $ac_status); } >/dev/null; then
32137   if test -s conftest.err; then
32138     ac_cpp_err=$ac_cxx_preproc_warn_flag
32139     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32140   else
32141     ac_cpp_err=
32142   fi
32143 else
32144   ac_cpp_err=yes
32145 fi
32146 if test -z "$ac_cpp_err"; then
32147   ac_header_preproc=yes
32148 else
32149   echo "$as_me: failed program was:" >&5
32150 sed 's/^/| /' conftest.$ac_ext >&5
32151
32152   ac_header_preproc=no
32153 fi
32154 rm -f conftest.err conftest.$ac_ext
32155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32156 echo "${ECHO_T}$ac_header_preproc" >&6
32157
32158 # So?  What about this header?
32159 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32160   yes:no: )
32161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32165     ac_header_preproc=yes
32166     ;;
32167   no:yes:* )
32168     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32170     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32171 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32172     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32174     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32175 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32178     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32180     (
32181       cat <<\_ASBOX
32182 ## ----------------------------------------- ##
32183 ## Report this to wx-dev@lists.wxwidgets.org ##
32184 ## ----------------------------------------- ##
32185 _ASBOX
32186     ) |
32187       sed "s/^/$as_me: WARNING:     /" >&2
32188     ;;
32189 esac
32190 echo "$as_me:$LINENO: checking for $ac_header" >&5
32191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32193   echo $ECHO_N "(cached) $ECHO_C" >&6
32194 else
32195   eval "$as_ac_Header=\$ac_header_preproc"
32196 fi
32197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32199
32200 fi
32201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32202   cat >>confdefs.h <<_ACEOF
32203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32204 _ACEOF
32205
32206 fi
32207
32208 done
32209
32210
32211 for ac_header in X11/XKBlib.h
32212 do
32213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32214 echo "$as_me:$LINENO: checking for $ac_header" >&5
32215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32217   echo $ECHO_N "(cached) $ECHO_C" >&6
32218 else
32219   cat >conftest.$ac_ext <<_ACEOF
32220 /* confdefs.h.  */
32221 _ACEOF
32222 cat confdefs.h >>conftest.$ac_ext
32223 cat >>conftest.$ac_ext <<_ACEOF
32224 /* end confdefs.h.  */
32225
32226                           #if HAVE_X11_XLIB_H
32227                             #include <X11/Xlib.h>
32228                           #endif
32229
32230
32231 #include <$ac_header>
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   eval "$as_ac_Header=yes"
32255 else
32256   echo "$as_me: failed program was:" >&5
32257 sed 's/^/| /' conftest.$ac_ext >&5
32258
32259 eval "$as_ac_Header=no"
32260 fi
32261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32262 fi
32263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32266   cat >>confdefs.h <<_ACEOF
32267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32268 _ACEOF
32269
32270 fi
32271
32272 done
32273
32274     fi
32275 fi
32276
32277
32278
32279 IODBC_C_SRC=""
32280
32281
32282 if test "$TOOLKIT" != "MSW" ; then
32283
32284     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32285
32286         if test "${ac_cv_header_sql_h+set}" = set; then
32287   echo "$as_me:$LINENO: checking for sql.h" >&5
32288 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32289 if test "${ac_cv_header_sql_h+set}" = set; then
32290   echo $ECHO_N "(cached) $ECHO_C" >&6
32291 fi
32292 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32293 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32294 else
32295   # Is the header compilable?
32296 echo "$as_me:$LINENO: checking sql.h usability" >&5
32297 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32298 cat >conftest.$ac_ext <<_ACEOF
32299 /* confdefs.h.  */
32300 _ACEOF
32301 cat confdefs.h >>conftest.$ac_ext
32302 cat >>conftest.$ac_ext <<_ACEOF
32303 /* end confdefs.h.  */
32304 $ac_includes_default
32305 #include <sql.h>
32306 _ACEOF
32307 rm -f conftest.$ac_objext
32308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32309   (eval $ac_compile) 2>conftest.er1
32310   ac_status=$?
32311   grep -v '^ *+' conftest.er1 >conftest.err
32312   rm -f conftest.er1
32313   cat conftest.err >&5
32314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315   (exit $ac_status); } &&
32316          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
32322          { ac_try='test -s conftest.$ac_objext'
32323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324   (eval $ac_try) 2>&5
32325   ac_status=$?
32326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327   (exit $ac_status); }; }; then
32328   ac_header_compiler=yes
32329 else
32330   echo "$as_me: failed program was:" >&5
32331 sed 's/^/| /' conftest.$ac_ext >&5
32332
32333 ac_header_compiler=no
32334 fi
32335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32337 echo "${ECHO_T}$ac_header_compiler" >&6
32338
32339 # Is the header present?
32340 echo "$as_me:$LINENO: checking sql.h presence" >&5
32341 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32342 cat >conftest.$ac_ext <<_ACEOF
32343 /* confdefs.h.  */
32344 _ACEOF
32345 cat confdefs.h >>conftest.$ac_ext
32346 cat >>conftest.$ac_ext <<_ACEOF
32347 /* end confdefs.h.  */
32348 #include <sql.h>
32349 _ACEOF
32350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32352   ac_status=$?
32353   grep -v '^ *+' conftest.er1 >conftest.err
32354   rm -f conftest.er1
32355   cat conftest.err >&5
32356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357   (exit $ac_status); } >/dev/null; then
32358   if test -s conftest.err; then
32359     ac_cpp_err=$ac_cxx_preproc_warn_flag
32360     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32361   else
32362     ac_cpp_err=
32363   fi
32364 else
32365   ac_cpp_err=yes
32366 fi
32367 if test -z "$ac_cpp_err"; then
32368   ac_header_preproc=yes
32369 else
32370   echo "$as_me: failed program was:" >&5
32371 sed 's/^/| /' conftest.$ac_ext >&5
32372
32373   ac_header_preproc=no
32374 fi
32375 rm -f conftest.err conftest.$ac_ext
32376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32377 echo "${ECHO_T}$ac_header_preproc" >&6
32378
32379 # So?  What about this header?
32380 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32381   yes:no: )
32382     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32383 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32384     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32385 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32386     ac_header_preproc=yes
32387     ;;
32388   no:yes:* )
32389     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32390 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
32391     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
32392 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
32393     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32394 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32395     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
32396 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32397     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32398 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
32399     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32400 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
32401     (
32402       cat <<\_ASBOX
32403 ## ----------------------------------------- ##
32404 ## Report this to wx-dev@lists.wxwidgets.org ##
32405 ## ----------------------------------------- ##
32406 _ASBOX
32407     ) |
32408       sed "s/^/$as_me: WARNING:     /" >&2
32409     ;;
32410 esac
32411 echo "$as_me:$LINENO: checking for sql.h" >&5
32412 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32413 if test "${ac_cv_header_sql_h+set}" = set; then
32414   echo $ECHO_N "(cached) $ECHO_C" >&6
32415 else
32416   ac_cv_header_sql_h=$ac_header_preproc
32417 fi
32418 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32419 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32420
32421 fi
32422 if test $ac_cv_header_sql_h = yes; then
32423   found_sql_h=1
32424 fi
32425
32426
32427         if test "x$found_sql_h" = "x1" ; then
32428             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32429 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32430 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32431   echo $ECHO_N "(cached) $ECHO_C" >&6
32432 else
32433   ac_check_lib_save_LIBS=$LIBS
32434 LIBS="-liodbc  $LIBS"
32435 cat >conftest.$ac_ext <<_ACEOF
32436 /* confdefs.h.  */
32437 _ACEOF
32438 cat confdefs.h >>conftest.$ac_ext
32439 cat >>conftest.$ac_ext <<_ACEOF
32440 /* end confdefs.h.  */
32441
32442 /* Override any gcc2 internal prototype to avoid an error.  */
32443 #ifdef __cplusplus
32444 extern "C"
32445 #endif
32446 /* We use char because int might match the return type of a gcc2
32447    builtin and then its argument prototype would still apply.  */
32448 char SQLAllocEnv ();
32449 int
32450 main ()
32451 {
32452 SQLAllocEnv ();
32453   ;
32454   return 0;
32455 }
32456 _ACEOF
32457 rm -f conftest.$ac_objext conftest$ac_exeext
32458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32459   (eval $ac_link) 2>conftest.er1
32460   ac_status=$?
32461   grep -v '^ *+' conftest.er1 >conftest.err
32462   rm -f conftest.er1
32463   cat conftest.err >&5
32464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465   (exit $ac_status); } &&
32466          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32468   (eval $ac_try) 2>&5
32469   ac_status=$?
32470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471   (exit $ac_status); }; } &&
32472          { ac_try='test -s conftest$ac_exeext'
32473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32474   (eval $ac_try) 2>&5
32475   ac_status=$?
32476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477   (exit $ac_status); }; }; then
32478   ac_cv_lib_iodbc_SQLAllocEnv=yes
32479 else
32480   echo "$as_me: failed program was:" >&5
32481 sed 's/^/| /' conftest.$ac_ext >&5
32482
32483 ac_cv_lib_iodbc_SQLAllocEnv=no
32484 fi
32485 rm -f conftest.err conftest.$ac_objext \
32486       conftest$ac_exeext conftest.$ac_ext
32487 LIBS=$ac_check_lib_save_LIBS
32488 fi
32489 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32490 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32491 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32492   ODBC_LINK=" -liodbc"
32493 else
32494
32495                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32496 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32497 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32498   echo $ECHO_N "(cached) $ECHO_C" >&6
32499 else
32500   ac_check_lib_save_LIBS=$LIBS
32501 LIBS="-lunixodbc  $LIBS"
32502 cat >conftest.$ac_ext <<_ACEOF
32503 /* confdefs.h.  */
32504 _ACEOF
32505 cat confdefs.h >>conftest.$ac_ext
32506 cat >>conftest.$ac_ext <<_ACEOF
32507 /* end confdefs.h.  */
32508
32509 /* Override any gcc2 internal prototype to avoid an error.  */
32510 #ifdef __cplusplus
32511 extern "C"
32512 #endif
32513 /* We use char because int might match the return type of a gcc2
32514    builtin and then its argument prototype would still apply.  */
32515 char SQLAllocEnv ();
32516 int
32517 main ()
32518 {
32519 SQLAllocEnv ();
32520   ;
32521   return 0;
32522 }
32523 _ACEOF
32524 rm -f conftest.$ac_objext conftest$ac_exeext
32525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32526   (eval $ac_link) 2>conftest.er1
32527   ac_status=$?
32528   grep -v '^ *+' conftest.er1 >conftest.err
32529   rm -f conftest.er1
32530   cat conftest.err >&5
32531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532   (exit $ac_status); } &&
32533          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32535   (eval $ac_try) 2>&5
32536   ac_status=$?
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); }; } &&
32539          { ac_try='test -s conftest$ac_exeext'
32540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32541   (eval $ac_try) 2>&5
32542   ac_status=$?
32543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544   (exit $ac_status); }; }; then
32545   ac_cv_lib_unixodbc_SQLAllocEnv=yes
32546 else
32547   echo "$as_me: failed program was:" >&5
32548 sed 's/^/| /' conftest.$ac_ext >&5
32549
32550 ac_cv_lib_unixodbc_SQLAllocEnv=no
32551 fi
32552 rm -f conftest.err conftest.$ac_objext \
32553       conftest$ac_exeext conftest.$ac_ext
32554 LIBS=$ac_check_lib_save_LIBS
32555 fi
32556 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32557 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32558 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32559   ODBC_LINK=" -lunixodbc"
32560 else
32561
32562                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32563 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32564 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32565   echo $ECHO_N "(cached) $ECHO_C" >&6
32566 else
32567   ac_check_lib_save_LIBS=$LIBS
32568 LIBS="-lodbc  $LIBS"
32569 cat >conftest.$ac_ext <<_ACEOF
32570 /* confdefs.h.  */
32571 _ACEOF
32572 cat confdefs.h >>conftest.$ac_ext
32573 cat >>conftest.$ac_ext <<_ACEOF
32574 /* end confdefs.h.  */
32575
32576 /* Override any gcc2 internal prototype to avoid an error.  */
32577 #ifdef __cplusplus
32578 extern "C"
32579 #endif
32580 /* We use char because int might match the return type of a gcc2
32581    builtin and then its argument prototype would still apply.  */
32582 char SQLAllocEnv ();
32583 int
32584 main ()
32585 {
32586 SQLAllocEnv ();
32587   ;
32588   return 0;
32589 }
32590 _ACEOF
32591 rm -f conftest.$ac_objext conftest$ac_exeext
32592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32593   (eval $ac_link) 2>conftest.er1
32594   ac_status=$?
32595   grep -v '^ *+' conftest.er1 >conftest.err
32596   rm -f conftest.er1
32597   cat conftest.err >&5
32598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599   (exit $ac_status); } &&
32600          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32602   (eval $ac_try) 2>&5
32603   ac_status=$?
32604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605   (exit $ac_status); }; } &&
32606          { ac_try='test -s conftest$ac_exeext'
32607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32608   (eval $ac_try) 2>&5
32609   ac_status=$?
32610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611   (exit $ac_status); }; }; then
32612   ac_cv_lib_odbc_SQLAllocEnv=yes
32613 else
32614   echo "$as_me: failed program was:" >&5
32615 sed 's/^/| /' conftest.$ac_ext >&5
32616
32617 ac_cv_lib_odbc_SQLAllocEnv=no
32618 fi
32619 rm -f conftest.err conftest.$ac_objext \
32620       conftest$ac_exeext conftest.$ac_ext
32621 LIBS=$ac_check_lib_save_LIBS
32622 fi
32623 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32624 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32625 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32626   ODBC_LINK=" -lodbc"
32627 fi
32628
32629
32630 fi
32631
32632
32633 fi
32634
32635         fi
32636         if test "x$ODBC_LINK" = "x" ; then
32637             if test "$wxUSE_ODBC" = "sys" ; then
32638                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32639 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32640    { (exit 1); exit 1; }; }
32641             else
32642                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32643 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32644                 wxUSE_ODBC=builtin
32645             fi
32646         else
32647                         wxUSE_ODBC=sys
32648         fi
32649     fi
32650
32651     if test "$wxUSE_ODBC" = "builtin" ; then
32652         cat >>confdefs.h <<\_ACEOF
32653 #define wxUSE_BUILTIN_IODBC 1
32654 _ACEOF
32655
32656     fi
32657 fi
32658
32659 if test "$wxUSE_ODBC" != "no" ; then
32660     cat >>confdefs.h <<\_ACEOF
32661 #define wxUSE_ODBC 1
32662 _ACEOF
32663
32664     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32665
32666         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
32667 fi
32668
32669
32670 if test "$wxUSE_DISPLAY" = "yes"; then
32671     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32672         echo "$as_me:$LINENO: checking for Xinerama" >&5
32673 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32674
32675   ac_find_libraries=
32676   for ac_dir in $SEARCH_LIB;
32677   do
32678     for ac_extension in a so sl dylib dll.a; do
32679       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32680         ac_find_libraries=$ac_dir
32681         break 2
32682       fi
32683     done
32684   done
32685
32686         if test "$ac_find_libraries" != "" ; then
32687
32688     if test "$ac_find_libraries" = "default location"; then
32689     ac_path_to_link=""
32690   else
32691     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32692     result=$?
32693     if test $result = 0; then
32694       ac_path_to_link=""
32695     else
32696       ac_path_to_link=" -L$ac_find_libraries"
32697     fi
32698   fi
32699
32700             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32701                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32702             fi
32703             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32704             echo "$as_me:$LINENO: result: yes" >&5
32705 echo "${ECHO_T}yes" >&6
32706
32707             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32708 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32709
32710   ac_find_libraries=
32711   for ac_dir in $SEARCH_LIB;
32712   do
32713     for ac_extension in a so sl dylib dll.a; do
32714       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32715         ac_find_libraries=$ac_dir
32716         break 2
32717       fi
32718     done
32719   done
32720
32721             if test "$ac_find_libraries" != "" ; then
32722                 echo "$as_me:$LINENO: result: yes" >&5
32723 echo "${ECHO_T}yes" >&6
32724
32725 for ac_header in X11/extensions/xf86vmode.h
32726 do
32727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32728 echo "$as_me:$LINENO: checking for $ac_header" >&5
32729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32731   echo $ECHO_N "(cached) $ECHO_C" >&6
32732 else
32733   cat >conftest.$ac_ext <<_ACEOF
32734 /* confdefs.h.  */
32735 _ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h.  */
32739
32740                                       #if HAVE_X11_XLIB_H
32741                                         #include <X11/Xlib.h>
32742                                       #endif
32743
32744
32745 #include <$ac_header>
32746 _ACEOF
32747 rm -f conftest.$ac_objext
32748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32749   (eval $ac_compile) 2>conftest.er1
32750   ac_status=$?
32751   grep -v '^ *+' conftest.er1 >conftest.err
32752   rm -f conftest.er1
32753   cat conftest.err >&5
32754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755   (exit $ac_status); } &&
32756          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32758   (eval $ac_try) 2>&5
32759   ac_status=$?
32760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761   (exit $ac_status); }; } &&
32762          { ac_try='test -s conftest.$ac_objext'
32763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32764   (eval $ac_try) 2>&5
32765   ac_status=$?
32766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767   (exit $ac_status); }; }; then
32768   eval "$as_ac_Header=yes"
32769 else
32770   echo "$as_me: failed program was:" >&5
32771 sed 's/^/| /' conftest.$ac_ext >&5
32772
32773 eval "$as_ac_Header=no"
32774 fi
32775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32776 fi
32777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32780   cat >>confdefs.h <<_ACEOF
32781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32782 _ACEOF
32783
32784                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32785
32786 fi
32787
32788 done
32789
32790             else
32791                 echo "$as_me:$LINENO: result: no" >&5
32792 echo "${ECHO_T}no" >&6
32793             fi
32794
32795         else
32796             echo "$as_me:$LINENO: result: no" >&5
32797 echo "${ECHO_T}no" >&6
32798             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32799 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32800             wxUSE_DISPLAY="no"
32801         fi
32802     elif test "$wxUSE_MSW" = 1; then
32803
32804 for ac_header in ddraw.h
32805 do
32806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32807 echo "$as_me:$LINENO: checking for $ac_header" >&5
32808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32810   echo $ECHO_N "(cached) $ECHO_C" >&6
32811 else
32812   cat >conftest.$ac_ext <<_ACEOF
32813 /* confdefs.h.  */
32814 _ACEOF
32815 cat confdefs.h >>conftest.$ac_ext
32816 cat >>conftest.$ac_ext <<_ACEOF
32817 /* end confdefs.h.  */
32818 #include <windows.h>
32819
32820 #include <$ac_header>
32821 _ACEOF
32822 rm -f conftest.$ac_objext
32823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32824   (eval $ac_compile) 2>conftest.er1
32825   ac_status=$?
32826   grep -v '^ *+' conftest.er1 >conftest.err
32827   rm -f conftest.er1
32828   cat conftest.err >&5
32829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830   (exit $ac_status); } &&
32831          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32833   (eval $ac_try) 2>&5
32834   ac_status=$?
32835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836   (exit $ac_status); }; } &&
32837          { ac_try='test -s conftest.$ac_objext'
32838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32839   (eval $ac_try) 2>&5
32840   ac_status=$?
32841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842   (exit $ac_status); }; }; then
32843   eval "$as_ac_Header=yes"
32844 else
32845   echo "$as_me: failed program was:" >&5
32846 sed 's/^/| /' conftest.$ac_ext >&5
32847
32848 eval "$as_ac_Header=no"
32849 fi
32850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32851 fi
32852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32855   cat >>confdefs.h <<_ACEOF
32856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32857 _ACEOF
32858
32859 fi
32860
32861 done
32862
32863     fi
32864 fi
32865
32866
32867 USE_OPENGL=0
32868 if test "$wxUSE_OPENGL" = "yes"; then
32869     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32870         OPENGL_LIBS="-framework OpenGL -framework AGL"
32871     elif test "$wxUSE_MSW" = 1; then
32872         OPENGL_LIBS="-lopengl32 -lglu32"
32873     else
32874
32875
32876 ac_find_includes=
32877 for ac_dir in $SEARCH_INCLUDE /usr/include;
32878   do
32879     if test -f "$ac_dir/GL/gl.h"; then
32880       ac_find_includes=$ac_dir
32881       break
32882     fi
32883   done
32884
32885         if test "$ac_find_includes" != "" ; then
32886             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32887 echo "${ECHO_T}found in $ac_find_includes" >&6
32888
32889     if test "x$ac_find_includes" = "x/usr/include"; then
32890     ac_path_to_include=""
32891   else
32892     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32893     result=$?
32894     if test $result = 0; then
32895       ac_path_to_include=""
32896     else
32897       ac_path_to_include=" -I$ac_find_includes"
32898     fi
32899   fi
32900
32901             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
32902         fi
32903
32904         if test "${ac_cv_header_GL_gl_h+set}" = set; then
32905   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32906 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32907 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32908   echo $ECHO_N "(cached) $ECHO_C" >&6
32909 fi
32910 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32911 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32912 else
32913   # Is the header compilable?
32914 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32915 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32916 cat >conftest.$ac_ext <<_ACEOF
32917 /* confdefs.h.  */
32918 _ACEOF
32919 cat confdefs.h >>conftest.$ac_ext
32920 cat >>conftest.$ac_ext <<_ACEOF
32921 /* end confdefs.h.  */
32922 $ac_includes_default
32923 #include <GL/gl.h>
32924 _ACEOF
32925 rm -f conftest.$ac_objext
32926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32927   (eval $ac_compile) 2>conftest.er1
32928   ac_status=$?
32929   grep -v '^ *+' conftest.er1 >conftest.err
32930   rm -f conftest.er1
32931   cat conftest.err >&5
32932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933   (exit $ac_status); } &&
32934          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32936   (eval $ac_try) 2>&5
32937   ac_status=$?
32938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939   (exit $ac_status); }; } &&
32940          { ac_try='test -s conftest.$ac_objext'
32941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32942   (eval $ac_try) 2>&5
32943   ac_status=$?
32944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945   (exit $ac_status); }; }; then
32946   ac_header_compiler=yes
32947 else
32948   echo "$as_me: failed program was:" >&5
32949 sed 's/^/| /' conftest.$ac_ext >&5
32950
32951 ac_header_compiler=no
32952 fi
32953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32955 echo "${ECHO_T}$ac_header_compiler" >&6
32956
32957 # Is the header present?
32958 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32959 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32960 cat >conftest.$ac_ext <<_ACEOF
32961 /* confdefs.h.  */
32962 _ACEOF
32963 cat confdefs.h >>conftest.$ac_ext
32964 cat >>conftest.$ac_ext <<_ACEOF
32965 /* end confdefs.h.  */
32966 #include <GL/gl.h>
32967 _ACEOF
32968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32970   ac_status=$?
32971   grep -v '^ *+' conftest.er1 >conftest.err
32972   rm -f conftest.er1
32973   cat conftest.err >&5
32974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975   (exit $ac_status); } >/dev/null; then
32976   if test -s conftest.err; then
32977     ac_cpp_err=$ac_cxx_preproc_warn_flag
32978     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32979   else
32980     ac_cpp_err=
32981   fi
32982 else
32983   ac_cpp_err=yes
32984 fi
32985 if test -z "$ac_cpp_err"; then
32986   ac_header_preproc=yes
32987 else
32988   echo "$as_me: failed program was:" >&5
32989 sed 's/^/| /' conftest.$ac_ext >&5
32990
32991   ac_header_preproc=no
32992 fi
32993 rm -f conftest.err conftest.$ac_ext
32994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32995 echo "${ECHO_T}$ac_header_preproc" >&6
32996
32997 # So?  What about this header?
32998 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32999   yes:no: )
33000     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33001 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33002     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33003 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33004     ac_header_preproc=yes
33005     ;;
33006   no:yes:* )
33007     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33008 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
33009     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
33010 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
33011     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33012 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33013     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
33014 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33015     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33016 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
33017     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33018 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
33019     (
33020       cat <<\_ASBOX
33021 ## ----------------------------------------- ##
33022 ## Report this to wx-dev@lists.wxwidgets.org ##
33023 ## ----------------------------------------- ##
33024 _ASBOX
33025     ) |
33026       sed "s/^/$as_me: WARNING:     /" >&2
33027     ;;
33028 esac
33029 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33030 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33031 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33032   echo $ECHO_N "(cached) $ECHO_C" >&6
33033 else
33034   ac_cv_header_GL_gl_h=$ac_header_preproc
33035 fi
33036 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33037 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33038
33039 fi
33040 if test $ac_cv_header_GL_gl_h = yes; then
33041
33042                 found_gl=0
33043
33044                 echo "$as_me:$LINENO: checking for -lGL" >&5
33045 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33046
33047   ac_find_libraries=
33048   for ac_dir in $SEARCH_LIB;
33049   do
33050     for ac_extension in a so sl dylib dll.a; do
33051       if test -f "$ac_dir/libGL.$ac_extension"; then
33052         ac_find_libraries=$ac_dir
33053         break 2
33054       fi
33055     done
33056   done
33057
33058                 if test "$ac_find_libraries" != "" ; then
33059                     echo "$as_me:$LINENO: result: yes" >&5
33060 echo "${ECHO_T}yes" >&6
33061
33062
33063     if test "$ac_find_libraries" = "default location"; then
33064     ac_path_to_link=""
33065   else
33066     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33067     result=$?
33068     if test $result = 0; then
33069       ac_path_to_link=""
33070     else
33071       ac_path_to_link=" -L$ac_find_libraries"
33072     fi
33073   fi
33074
33075                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33076                         LDFLAGS_GL="$ac_path_to_link"
33077                     fi
33078
33079                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
33080 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
33081
33082   ac_find_libraries=
33083   for ac_dir in $SEARCH_LIB;
33084   do
33085     for ac_extension in a so sl dylib dll.a; do
33086       if test -f "$ac_dir/libGLU.$ac_extension"; then
33087         ac_find_libraries=$ac_dir
33088         break 2
33089       fi
33090     done
33091   done
33092
33093                     if test "$ac_find_libraries" != "" ; then
33094
33095     if test "$ac_find_libraries" = "default location"; then
33096     ac_path_to_link=""
33097   else
33098     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33099     result=$?
33100     if test $result = 0; then
33101       ac_path_to_link=""
33102     else
33103       ac_path_to_link=" -L$ac_find_libraries"
33104     fi
33105   fi
33106
33107                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33108                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33109                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33110                         fi
33111
33112                         found_gl=1
33113                         OPENGL_LIBS="-lGL -lGLU"
33114                         echo "$as_me:$LINENO: result: yes" >&5
33115 echo "${ECHO_T}yes" >&6
33116                     else
33117                         echo "$as_me:$LINENO: result: no" >&5
33118 echo "${ECHO_T}no" >&6
33119                     fi
33120                 else
33121                     echo "$as_me:$LINENO: result: no" >&5
33122 echo "${ECHO_T}no" >&6
33123                 fi
33124
33125                 if test "$found_gl" != 1; then
33126                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33127 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33128
33129   ac_find_libraries=
33130   for ac_dir in $SEARCH_LIB;
33131   do
33132     for ac_extension in a so sl dylib dll.a; do
33133       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33134         ac_find_libraries=$ac_dir
33135         break 2
33136       fi
33137     done
33138   done
33139
33140                     if test "$ac_find_libraries" != "" ; then
33141
33142     if test "$ac_find_libraries" = "default location"; then
33143     ac_path_to_link=""
33144   else
33145     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33146     result=$?
33147     if test $result = 0; then
33148       ac_path_to_link=""
33149     else
33150       ac_path_to_link=" -L$ac_find_libraries"
33151     fi
33152   fi
33153
33154                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33155                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33156                         echo "$as_me:$LINENO: result: yes" >&5
33157 echo "${ECHO_T}yes" >&6
33158                     else
33159                         echo "$as_me:$LINENO: result: no" >&5
33160 echo "${ECHO_T}no" >&6
33161                     fi
33162                 fi
33163
33164 fi
33165
33166
33167
33168         if test "x$OPENGL_LIBS" = "x"; then
33169                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33170 echo "$as_me: error: OpenGL libraries not available" >&2;}
33171    { (exit 1); exit 1; }; }
33172         fi
33173     fi
33174
33175     if test "$wxUSE_OPENGL" = "yes"; then
33176         USE_OPENGL=1
33177         cat >>confdefs.h <<\_ACEOF
33178 #define wxUSE_OPENGL 1
33179 _ACEOF
33180
33181         cat >>confdefs.h <<\_ACEOF
33182 #define wxUSE_GLCANVAS 1
33183 _ACEOF
33184
33185         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33186     fi
33187 fi
33188
33189
33190 if test -n "$TOOLKIT" ; then
33191     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33192 fi
33193
33194
33195
33196 if test "$wxUSE_SHARED" = "yes"; then
33197     case "${host}" in
33198       *-pc-msdosdjgpp )
33199                 wxUSE_SHARED=no
33200         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33201 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33202       ;;
33203     esac
33204 fi
33205
33206 if test "$wxUSE_SHARED" = "yes"; then
33207
33208
33209   found_versioning=no
33210
33211
33212     if test $found_versioning = no ; then
33213       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33214 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33215 if test "${wx_cv_version_script+set}" = set; then
33216   echo $ECHO_N "(cached) $ECHO_C" >&6
33217 else
33218
33219         echo "VER_1 { *; };" >conftest.sym
33220         echo "int main() { return 0; }" >conftest.cpp
33221
33222         if { ac_try='
33223                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33224                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226   (eval $ac_try) 2>&5
33227   ac_status=$?
33228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); }; } ; then
33230           if test -s conftest.stderr ; then
33231               wx_cv_version_script=no
33232           else
33233               wx_cv_version_script=yes
33234           fi
33235         else
33236           wx_cv_version_script=no
33237         fi
33238
33239                                                                                                 if test $wx_cv_version_script = yes
33240         then
33241           echo "struct B { virtual ~B() { } }; \
33242                 struct D : public B { }; \
33243                 void F() { D d; }" > conftest.cpp
33244
33245           if { ac_try='
33246                 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33247                 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
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='
33254                 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33255                 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33257   (eval $ac_try) 2>&5
33258   ac_status=$?
33259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260   (exit $ac_status); }; }
33261           then
33262             if { ac_try='
33263                   $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33264                   -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33266   (eval $ac_try) 2>&5
33267   ac_status=$?
33268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33269   (exit $ac_status); }; }
33270             then
33271               wx_cv_version_script=yes
33272             else
33273               wx_cv_version_script=no
33274             fi
33275           fi
33276         fi
33277
33278         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33279         rm -f conftest1.output conftest2.output conftest3.output
33280
33281 fi
33282 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33283 echo "${ECHO_T}$wx_cv_version_script" >&6
33284       if test $wx_cv_version_script = yes ; then
33285         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33286       fi
33287   fi
33288
33289
33290     case "${host}" in
33291       *-*-linux* | *-*-gnu* )
33292         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
33293         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33294         ;;
33295
33296       *-*-solaris2* )
33297         if test "$GCC" = yes ; then
33298                                     CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33299
33300                                     saveLdflags="$LDFLAGS"
33301             LDFLAGS="$saveLdflags -Wl,-rpath,/"
33302             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33303 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33304             cat >conftest.$ac_ext <<_ACEOF
33305 /* confdefs.h.  */
33306 _ACEOF
33307 cat confdefs.h >>conftest.$ac_ext
33308 cat >>conftest.$ac_ext <<_ACEOF
33309 /* end confdefs.h.  */
33310
33311 int
33312 main ()
33313 {
33314
33315   ;
33316   return 0;
33317 }
33318 _ACEOF
33319 rm -f conftest.$ac_objext conftest$ac_exeext
33320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33321   (eval $ac_link) 2>conftest.er1
33322   ac_status=$?
33323   grep -v '^ *+' conftest.er1 >conftest.err
33324   rm -f conftest.er1
33325   cat conftest.err >&5
33326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327   (exit $ac_status); } &&
33328          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33330   (eval $ac_try) 2>&5
33331   ac_status=$?
33332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333   (exit $ac_status); }; } &&
33334          { ac_try='test -s conftest$ac_exeext'
33335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33336   (eval $ac_try) 2>&5
33337   ac_status=$?
33338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339   (exit $ac_status); }; }; then
33340
33341                     echo "$as_me:$LINENO: result: yes" >&5
33342 echo "${ECHO_T}yes" >&6
33343                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
33344                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33345
33346 else
33347   echo "$as_me: failed program was:" >&5
33348 sed 's/^/| /' conftest.$ac_ext >&5
33349
33350
33351                     echo "$as_me:$LINENO: result: no" >&5
33352 echo "${ECHO_T}no" >&6
33353                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33354 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33355                     LDFLAGS="$saveLdflags -Wl,-R,/"
33356                     cat >conftest.$ac_ext <<_ACEOF
33357 /* confdefs.h.  */
33358 _ACEOF
33359 cat confdefs.h >>conftest.$ac_ext
33360 cat >>conftest.$ac_ext <<_ACEOF
33361 /* end confdefs.h.  */
33362
33363 int
33364 main ()
33365 {
33366
33367   ;
33368   return 0;
33369 }
33370 _ACEOF
33371 rm -f conftest.$ac_objext conftest$ac_exeext
33372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33373   (eval $ac_link) 2>conftest.er1
33374   ac_status=$?
33375   grep -v '^ *+' conftest.er1 >conftest.err
33376   rm -f conftest.er1
33377   cat conftest.err >&5
33378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379   (exit $ac_status); } &&
33380          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33382   (eval $ac_try) 2>&5
33383   ac_status=$?
33384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385   (exit $ac_status); }; } &&
33386          { ac_try='test -s conftest$ac_exeext'
33387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33388   (eval $ac_try) 2>&5
33389   ac_status=$?
33390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391   (exit $ac_status); }; }; then
33392
33393                             echo "$as_me:$LINENO: result: yes" >&5
33394 echo "${ECHO_T}yes" >&6
33395                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33396                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
33397
33398 else
33399   echo "$as_me: failed program was:" >&5
33400 sed 's/^/| /' conftest.$ac_ext >&5
33401
33402
33403                             echo "$as_me:$LINENO: result: no" >&5
33404 echo "${ECHO_T}no" >&6
33405
33406 fi
33407 rm -f conftest.err conftest.$ac_objext \
33408       conftest$ac_exeext conftest.$ac_ext
33409
33410 fi
33411 rm -f conftest.err conftest.$ac_objext \
33412       conftest$ac_exeext conftest.$ac_ext
33413             LDFLAGS="$saveLdflags"
33414         else
33415             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
33416             WXCONFIG_RPATH="-R\$libdir"
33417         fi
33418       ;;
33419
33420       *-*-darwin* )
33421         install_name_tool=`which install_name_tool`
33422         if test "$install_name_tool" -a -x "$install_name_tool"; then
33423             SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33424             cat <<EOF >change-install-names
33425 #!/bin/sh
33426 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33427 inst_cmd="install_name_tool "
33428 for i in \${libnames} ; do
33429     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33430 done
33431 \${inst_cmd} \${3}
33432 EOF
33433             chmod +x change-install-names
33434         fi
33435       ;;
33436
33437       *-*-cygwin* | *-*-mingw32* )
33438                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33439         ;;
33440
33441       *-*-hpux* )
33442         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33443         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33444         ;;
33445
33446     esac
33447
33448     if test $wxUSE_RPATH = "no"; then
33449         SAMPLES_RPATH_FLAG=''
33450         SAMPLES_RPATH_POSTLINK=''
33451         WXCONFIG_RPATH=''
33452     fi
33453
33454     SHARED=1
33455
33456 else
33457
33458     config_linkage_component="-static"
33459     SHARED=0
33460
33461 fi
33462
33463
33464 UNICODE=0
33465 lib_unicode_suffix=
33466 WX_CHARTYPE="ansi"
33467 if test "$wxUSE_UNICODE" = "yes"; then
33468     lib_unicode_suffix=u
33469     WX_CHARTYPE="unicode"
33470     UNICODE=1
33471 fi
33472
33473 lib_debug_suffix=
33474 WX_DEBUGTYPE="release"
33475 DEBUG_FLAG=0
33476 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33477     lib_debug_suffix=d
33478     WX_DEBUGTYPE="debug"
33479     DEBUG_FLAG=1
33480 fi
33481
33482 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33483 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33484
33485 DEBUG_INFO=0
33486 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33487     DEBUG_INFO=1
33488 fi
33489
33490 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
33491
33492 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33493
33494 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33495
33496 if test "$cross_compiling" = "yes"; then
33497     HOST_SUFFIX="-$host_alias"
33498     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33499     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33500 fi
33501
33502 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33503 if test "${TOOLKIT_DIR}" = "os2"; then
33504     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33505 else
33506     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33507 fi
33508
33509
33510
33511 if test "$wxUSE_COCOA" = 1; then
33512
33513
33514     ac_ext=c
33515 ac_cpp='$CPP $CPPFLAGS'
33516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33519
33520 ac_ext=m
33521
33522     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33523 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33524     cat >conftest.$ac_ext <<_ACEOF
33525 /* confdefs.h.  */
33526 _ACEOF
33527 cat confdefs.h >>conftest.$ac_ext
33528 cat >>conftest.$ac_ext <<_ACEOF
33529 /* end confdefs.h.  */
33530 #include <AppKit/NSEvent.h>
33531 #include <CoreFoundation/CoreFoundation.h>
33532
33533 int
33534 main ()
33535 {
33536
33537   ;
33538   return 0;
33539 }
33540 _ACEOF
33541 rm -f conftest.$ac_objext
33542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33543   (eval $ac_compile) 2>conftest.er1
33544   ac_status=$?
33545   grep -v '^ *+' conftest.er1 >conftest.err
33546   rm -f conftest.er1
33547   cat conftest.err >&5
33548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33549   (exit $ac_status); } &&
33550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33552   (eval $ac_try) 2>&5
33553   ac_status=$?
33554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555   (exit $ac_status); }; } &&
33556          { ac_try='test -s conftest.$ac_objext'
33557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33558   (eval $ac_try) 2>&5
33559   ac_status=$?
33560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561   (exit $ac_status); }; }; then
33562   echo "$as_me:$LINENO: result: no" >&5
33563 echo "${ECHO_T}no" >&6
33564 else
33565   echo "$as_me: failed program was:" >&5
33566 sed 's/^/| /' conftest.$ac_ext >&5
33567
33568 echo "$as_me:$LINENO: result: yes" >&5
33569 echo "${ECHO_T}yes" >&6
33570         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33571 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33572         cat >conftest.$ac_ext <<_ACEOF
33573 /* confdefs.h.  */
33574 _ACEOF
33575 cat confdefs.h >>conftest.$ac_ext
33576 cat >>conftest.$ac_ext <<_ACEOF
33577 /* end confdefs.h.  */
33578 #define __Point__ 1
33579 #include <AppKit/NSEvent.h>
33580 #include <CoreFoundation/CoreFoundation.h>
33581
33582 int
33583 main ()
33584 {
33585
33586   ;
33587   return 0;
33588 }
33589 _ACEOF
33590 rm -f conftest.$ac_objext
33591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33592   (eval $ac_compile) 2>conftest.er1
33593   ac_status=$?
33594   grep -v '^ *+' conftest.er1 >conftest.err
33595   rm -f conftest.er1
33596   cat conftest.err >&5
33597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598   (exit $ac_status); } &&
33599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33601   (eval $ac_try) 2>&5
33602   ac_status=$?
33603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604   (exit $ac_status); }; } &&
33605          { ac_try='test -s conftest.$ac_objext'
33606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33607   (eval $ac_try) 2>&5
33608   ac_status=$?
33609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610   (exit $ac_status); }; }; then
33611   echo "$as_me:$LINENO: result: yes" >&5
33612 echo "${ECHO_T}yes" >&6
33613             cat >>confdefs.h <<\_ACEOF
33614 #define __Point__ 1
33615 _ACEOF
33616
33617
33618 else
33619   echo "$as_me: failed program was:" >&5
33620 sed 's/^/| /' conftest.$ac_ext >&5
33621
33622 { { echo "$as_me:$LINENO: error: no
33623 See \`config.log' for more details." >&5
33624 echo "$as_me: error: no
33625 See \`config.log' for more details." >&2;}
33626    { (exit 1); exit 1; }; }
33627
33628 fi
33629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33630
33631 fi
33632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33633     ac_ext=cc
33634 ac_cpp='$CXXCPP $CPPFLAGS'
33635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33638
33639 fi
33640
33641 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
33642             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33643     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
33644
33645         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
33646
33647     # Extract the first word of "Rez", so it can be a program name with args.
33648 set dummy Rez; ac_word=$2
33649 echo "$as_me:$LINENO: checking for $ac_word" >&5
33650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33651 if test "${ac_cv_prog_REZ+set}" = set; then
33652   echo $ECHO_N "(cached) $ECHO_C" >&6
33653 else
33654   if test -n "$REZ"; then
33655   ac_cv_prog_REZ="$REZ" # Let the user override the test.
33656 else
33657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33658 for as_dir in $PATH
33659 do
33660   IFS=$as_save_IFS
33661   test -z "$as_dir" && as_dir=.
33662   for ac_exec_ext in '' $ac_executable_extensions; do
33663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33664     ac_cv_prog_REZ="Rez"
33665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33666     break 2
33667   fi
33668 done
33669 done
33670
33671   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
33672 fi
33673 fi
33674 REZ=$ac_cv_prog_REZ
33675 if test -n "$REZ"; then
33676   echo "$as_me:$LINENO: result: $REZ" >&5
33677 echo "${ECHO_T}$REZ" >&6
33678 else
33679   echo "$as_me:$LINENO: result: no" >&5
33680 echo "${ECHO_T}no" >&6
33681 fi
33682
33683     # Extract the first word of "DeRez", so it can be a program name with args.
33684 set dummy DeRez; ac_word=$2
33685 echo "$as_me:$LINENO: checking for $ac_word" >&5
33686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33687 if test "${ac_cv_prog_DEREZ+set}" = set; then
33688   echo $ECHO_N "(cached) $ECHO_C" >&6
33689 else
33690   if test -n "$DEREZ"; then
33691   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33692 else
33693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33694 for as_dir in $PATH
33695 do
33696   IFS=$as_save_IFS
33697   test -z "$as_dir" && as_dir=.
33698   for ac_exec_ext in '' $ac_executable_extensions; do
33699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33700     ac_cv_prog_DEREZ="DeRez"
33701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33702     break 2
33703   fi
33704 done
33705 done
33706
33707   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33708 fi
33709 fi
33710 DEREZ=$ac_cv_prog_DEREZ
33711 if test -n "$DEREZ"; then
33712   echo "$as_me:$LINENO: result: $DEREZ" >&5
33713 echo "${ECHO_T}$DEREZ" >&6
33714 else
33715   echo "$as_me:$LINENO: result: no" >&5
33716 echo "${ECHO_T}no" >&6
33717 fi
33718
33719     # Extract the first word of "SetFile", so it can be a program name with args.
33720 set dummy SetFile; ac_word=$2
33721 echo "$as_me:$LINENO: checking for $ac_word" >&5
33722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33723 if test "${ac_cv_prog_SETFILE+set}" = set; then
33724   echo $ECHO_N "(cached) $ECHO_C" >&6
33725 else
33726   if test -n "$SETFILE"; then
33727   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33728 else
33729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33730 for as_dir in $PATH
33731 do
33732   IFS=$as_save_IFS
33733   test -z "$as_dir" && as_dir=.
33734   for ac_exec_ext in '' $ac_executable_extensions; do
33735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33736     ac_cv_prog_SETFILE="SetFile"
33737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33738     break 2
33739   fi
33740 done
33741 done
33742
33743   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33744 fi
33745 fi
33746 SETFILE=$ac_cv_prog_SETFILE
33747 if test -n "$SETFILE"; then
33748   echo "$as_me:$LINENO: result: $SETFILE" >&5
33749 echo "${ECHO_T}$SETFILE" >&6
33750 else
33751   echo "$as_me:$LINENO: result: no" >&5
33752 echo "${ECHO_T}no" >&6
33753 fi
33754
33755
33756     MACSETFILE="\$(SETFILE)"
33757
33758             if test "$wxUSE_MAC" = 1; then
33759         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
33760         RESCOMP="$REZ"
33761         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
33762     else
33763         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33764         RESCOMP="echo -n \| $REZ"
33765         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
33766     fi
33767
33768 else
33769         MACSETFILE="@true"
33770
33771     if test "$wxUSE_PM" = 1; then
33772         RESCOMP="emxbind"
33773         WXCONFIG_RESFLAGS="-ep"
33774
33775                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
33776     else
33777         POSTLINK_COMMAND="@true"
33778     fi
33779
33780 fi
33781
33782
33783
33784 echo "$as_me:$LINENO: checking for mode_t" >&5
33785 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33786 if test "${ac_cv_type_mode_t+set}" = set; then
33787   echo $ECHO_N "(cached) $ECHO_C" >&6
33788 else
33789   cat >conftest.$ac_ext <<_ACEOF
33790 /* confdefs.h.  */
33791 _ACEOF
33792 cat confdefs.h >>conftest.$ac_ext
33793 cat >>conftest.$ac_ext <<_ACEOF
33794 /* end confdefs.h.  */
33795 $ac_includes_default
33796 int
33797 main ()
33798 {
33799 if ((mode_t *) 0)
33800   return 0;
33801 if (sizeof (mode_t))
33802   return 0;
33803   ;
33804   return 0;
33805 }
33806 _ACEOF
33807 rm -f conftest.$ac_objext
33808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33809   (eval $ac_compile) 2>conftest.er1
33810   ac_status=$?
33811   grep -v '^ *+' conftest.er1 >conftest.err
33812   rm -f conftest.er1
33813   cat conftest.err >&5
33814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815   (exit $ac_status); } &&
33816          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33818   (eval $ac_try) 2>&5
33819   ac_status=$?
33820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821   (exit $ac_status); }; } &&
33822          { ac_try='test -s conftest.$ac_objext'
33823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33824   (eval $ac_try) 2>&5
33825   ac_status=$?
33826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827   (exit $ac_status); }; }; then
33828   ac_cv_type_mode_t=yes
33829 else
33830   echo "$as_me: failed program was:" >&5
33831 sed 's/^/| /' conftest.$ac_ext >&5
33832
33833 ac_cv_type_mode_t=no
33834 fi
33835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33836 fi
33837 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33838 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33839 if test $ac_cv_type_mode_t = yes; then
33840   :
33841 else
33842
33843 cat >>confdefs.h <<_ACEOF
33844 #define mode_t int
33845 _ACEOF
33846
33847 fi
33848
33849 echo "$as_me:$LINENO: checking for off_t" >&5
33850 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33851 if test "${ac_cv_type_off_t+set}" = set; then
33852   echo $ECHO_N "(cached) $ECHO_C" >&6
33853 else
33854   cat >conftest.$ac_ext <<_ACEOF
33855 /* confdefs.h.  */
33856 _ACEOF
33857 cat confdefs.h >>conftest.$ac_ext
33858 cat >>conftest.$ac_ext <<_ACEOF
33859 /* end confdefs.h.  */
33860 $ac_includes_default
33861 int
33862 main ()
33863 {
33864 if ((off_t *) 0)
33865   return 0;
33866 if (sizeof (off_t))
33867   return 0;
33868   ;
33869   return 0;
33870 }
33871 _ACEOF
33872 rm -f conftest.$ac_objext
33873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33874   (eval $ac_compile) 2>conftest.er1
33875   ac_status=$?
33876   grep -v '^ *+' conftest.er1 >conftest.err
33877   rm -f conftest.er1
33878   cat conftest.err >&5
33879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880   (exit $ac_status); } &&
33881          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33883   (eval $ac_try) 2>&5
33884   ac_status=$?
33885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886   (exit $ac_status); }; } &&
33887          { ac_try='test -s conftest.$ac_objext'
33888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33889   (eval $ac_try) 2>&5
33890   ac_status=$?
33891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892   (exit $ac_status); }; }; then
33893   ac_cv_type_off_t=yes
33894 else
33895   echo "$as_me: failed program was:" >&5
33896 sed 's/^/| /' conftest.$ac_ext >&5
33897
33898 ac_cv_type_off_t=no
33899 fi
33900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33901 fi
33902 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33903 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33904 if test $ac_cv_type_off_t = yes; then
33905   :
33906 else
33907
33908 cat >>confdefs.h <<_ACEOF
33909 #define off_t long
33910 _ACEOF
33911
33912 fi
33913
33914 echo "$as_me:$LINENO: checking for pid_t" >&5
33915 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33916 if test "${ac_cv_type_pid_t+set}" = set; then
33917   echo $ECHO_N "(cached) $ECHO_C" >&6
33918 else
33919   cat >conftest.$ac_ext <<_ACEOF
33920 /* confdefs.h.  */
33921 _ACEOF
33922 cat confdefs.h >>conftest.$ac_ext
33923 cat >>conftest.$ac_ext <<_ACEOF
33924 /* end confdefs.h.  */
33925 $ac_includes_default
33926 int
33927 main ()
33928 {
33929 if ((pid_t *) 0)
33930   return 0;
33931 if (sizeof (pid_t))
33932   return 0;
33933   ;
33934   return 0;
33935 }
33936 _ACEOF
33937 rm -f conftest.$ac_objext
33938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33939   (eval $ac_compile) 2>conftest.er1
33940   ac_status=$?
33941   grep -v '^ *+' conftest.er1 >conftest.err
33942   rm -f conftest.er1
33943   cat conftest.err >&5
33944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945   (exit $ac_status); } &&
33946          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33948   (eval $ac_try) 2>&5
33949   ac_status=$?
33950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951   (exit $ac_status); }; } &&
33952          { ac_try='test -s conftest.$ac_objext'
33953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33954   (eval $ac_try) 2>&5
33955   ac_status=$?
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); }; }; then
33958   ac_cv_type_pid_t=yes
33959 else
33960   echo "$as_me: failed program was:" >&5
33961 sed 's/^/| /' conftest.$ac_ext >&5
33962
33963 ac_cv_type_pid_t=no
33964 fi
33965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33966 fi
33967 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33968 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33969 if test $ac_cv_type_pid_t = yes; then
33970   :
33971 else
33972
33973 cat >>confdefs.h <<_ACEOF
33974 #define pid_t int
33975 _ACEOF
33976
33977 fi
33978
33979 echo "$as_me:$LINENO: checking for size_t" >&5
33980 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33981 if test "${ac_cv_type_size_t+set}" = set; then
33982   echo $ECHO_N "(cached) $ECHO_C" >&6
33983 else
33984   cat >conftest.$ac_ext <<_ACEOF
33985 /* confdefs.h.  */
33986 _ACEOF
33987 cat confdefs.h >>conftest.$ac_ext
33988 cat >>conftest.$ac_ext <<_ACEOF
33989 /* end confdefs.h.  */
33990 $ac_includes_default
33991 int
33992 main ()
33993 {
33994 if ((size_t *) 0)
33995   return 0;
33996 if (sizeof (size_t))
33997   return 0;
33998   ;
33999   return 0;
34000 }
34001 _ACEOF
34002 rm -f conftest.$ac_objext
34003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34004   (eval $ac_compile) 2>conftest.er1
34005   ac_status=$?
34006   grep -v '^ *+' conftest.er1 >conftest.err
34007   rm -f conftest.er1
34008   cat conftest.err >&5
34009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010   (exit $ac_status); } &&
34011          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34013   (eval $ac_try) 2>&5
34014   ac_status=$?
34015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016   (exit $ac_status); }; } &&
34017          { ac_try='test -s conftest.$ac_objext'
34018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34019   (eval $ac_try) 2>&5
34020   ac_status=$?
34021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022   (exit $ac_status); }; }; then
34023   ac_cv_type_size_t=yes
34024 else
34025   echo "$as_me: failed program was:" >&5
34026 sed 's/^/| /' conftest.$ac_ext >&5
34027
34028 ac_cv_type_size_t=no
34029 fi
34030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34031 fi
34032 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34033 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34034 if test $ac_cv_type_size_t = yes; then
34035   :
34036 else
34037
34038 cat >>confdefs.h <<_ACEOF
34039 #define size_t unsigned
34040 _ACEOF
34041
34042 fi
34043
34044 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34045 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34046 if test "${ac_cv_type_uid_t+set}" = set; then
34047   echo $ECHO_N "(cached) $ECHO_C" >&6
34048 else
34049   cat >conftest.$ac_ext <<_ACEOF
34050 /* confdefs.h.  */
34051 _ACEOF
34052 cat confdefs.h >>conftest.$ac_ext
34053 cat >>conftest.$ac_ext <<_ACEOF
34054 /* end confdefs.h.  */
34055 #include <sys/types.h>
34056
34057 _ACEOF
34058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34059   $EGREP "uid_t" >/dev/null 2>&1; then
34060   ac_cv_type_uid_t=yes
34061 else
34062   ac_cv_type_uid_t=no
34063 fi
34064 rm -f conftest*
34065
34066 fi
34067 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34068 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34069 if test $ac_cv_type_uid_t = no; then
34070
34071 cat >>confdefs.h <<\_ACEOF
34072 #define uid_t int
34073 _ACEOF
34074
34075
34076 cat >>confdefs.h <<\_ACEOF
34077 #define gid_t int
34078 _ACEOF
34079
34080 fi
34081
34082
34083 echo "$as_me:$LINENO: checking for ssize_t" >&5
34084 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34085 if test "${ac_cv_type_ssize_t+set}" = set; then
34086   echo $ECHO_N "(cached) $ECHO_C" >&6
34087 else
34088   cat >conftest.$ac_ext <<_ACEOF
34089 /* confdefs.h.  */
34090 _ACEOF
34091 cat confdefs.h >>conftest.$ac_ext
34092 cat >>conftest.$ac_ext <<_ACEOF
34093 /* end confdefs.h.  */
34094 $ac_includes_default
34095 int
34096 main ()
34097 {
34098 if ((ssize_t *) 0)
34099   return 0;
34100 if (sizeof (ssize_t))
34101   return 0;
34102   ;
34103   return 0;
34104 }
34105 _ACEOF
34106 rm -f conftest.$ac_objext
34107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34108   (eval $ac_compile) 2>conftest.er1
34109   ac_status=$?
34110   grep -v '^ *+' conftest.er1 >conftest.err
34111   rm -f conftest.er1
34112   cat conftest.err >&5
34113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114   (exit $ac_status); } &&
34115          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34117   (eval $ac_try) 2>&5
34118   ac_status=$?
34119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120   (exit $ac_status); }; } &&
34121          { ac_try='test -s conftest.$ac_objext'
34122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34123   (eval $ac_try) 2>&5
34124   ac_status=$?
34125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126   (exit $ac_status); }; }; then
34127   ac_cv_type_ssize_t=yes
34128 else
34129   echo "$as_me: failed program was:" >&5
34130 sed 's/^/| /' conftest.$ac_ext >&5
34131
34132 ac_cv_type_ssize_t=no
34133 fi
34134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34135 fi
34136 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34137 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34138 if test $ac_cv_type_ssize_t = yes; then
34139
34140 cat >>confdefs.h <<_ACEOF
34141 #define HAVE_SSIZE_T 1
34142 _ACEOF
34143
34144
34145 fi
34146
34147
34148 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34149 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34150 if test "${wx_cv_size_t_is_uint+set}" = set; then
34151   echo $ECHO_N "(cached) $ECHO_C" >&6
34152 else
34153
34154                             cat >conftest.$ac_ext <<_ACEOF
34155 /* confdefs.h.  */
34156 _ACEOF
34157 cat confdefs.h >>conftest.$ac_ext
34158 cat >>conftest.$ac_ext <<_ACEOF
34159 /* end confdefs.h.  */
34160 #include <stddef.h>
34161 int
34162 main ()
34163 {
34164
34165             return 0; }
34166
34167             struct Foo { void foo(size_t); void foo(unsigned int); };
34168
34169             int bar() {
34170
34171   ;
34172   return 0;
34173 }
34174 _ACEOF
34175 rm -f conftest.$ac_objext
34176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34177   (eval $ac_compile) 2>conftest.er1
34178   ac_status=$?
34179   grep -v '^ *+' conftest.er1 >conftest.err
34180   rm -f conftest.er1
34181   cat conftest.err >&5
34182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183   (exit $ac_status); } &&
34184          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34186   (eval $ac_try) 2>&5
34187   ac_status=$?
34188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189   (exit $ac_status); }; } &&
34190          { ac_try='test -s conftest.$ac_objext'
34191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34192   (eval $ac_try) 2>&5
34193   ac_status=$?
34194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195   (exit $ac_status); }; }; then
34196   wx_cv_size_t_is_uint=no
34197 else
34198   echo "$as_me: failed program was:" >&5
34199 sed 's/^/| /' conftest.$ac_ext >&5
34200
34201 wx_cv_size_t_is_uint=yes
34202
34203 fi
34204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34205
34206
34207 fi
34208 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34209 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34210
34211 if test "$wx_cv_size_t_is_uint" = "yes"; then
34212     cat >>confdefs.h <<\_ACEOF
34213 #define wxSIZE_T_IS_UINT 1
34214 _ACEOF
34215
34216 else
34217     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34218 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34219 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34220   echo $ECHO_N "(cached) $ECHO_C" >&6
34221 else
34222   cat >conftest.$ac_ext <<_ACEOF
34223 /* confdefs.h.  */
34224 _ACEOF
34225 cat confdefs.h >>conftest.$ac_ext
34226 cat >>conftest.$ac_ext <<_ACEOF
34227 /* end confdefs.h.  */
34228 #include <stddef.h>
34229 int
34230 main ()
34231 {
34232
34233                 return 0; }
34234
34235                 struct Foo { void foo(size_t); void foo(unsigned long); };
34236
34237                 int bar() {
34238
34239   ;
34240   return 0;
34241 }
34242 _ACEOF
34243 rm -f conftest.$ac_objext
34244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34245   (eval $ac_compile) 2>conftest.er1
34246   ac_status=$?
34247   grep -v '^ *+' conftest.er1 >conftest.err
34248   rm -f conftest.er1
34249   cat conftest.err >&5
34250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251   (exit $ac_status); } &&
34252          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34254   (eval $ac_try) 2>&5
34255   ac_status=$?
34256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257   (exit $ac_status); }; } &&
34258          { ac_try='test -s conftest.$ac_objext'
34259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34260   (eval $ac_try) 2>&5
34261   ac_status=$?
34262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263   (exit $ac_status); }; }; then
34264   wx_cv_size_t_is_ulong=no
34265 else
34266   echo "$as_me: failed program was:" >&5
34267 sed 's/^/| /' conftest.$ac_ext >&5
34268
34269 wx_cv_size_t_is_ulong=yes
34270
34271 fi
34272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34273
34274 fi
34275 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34276 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34277
34278     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34279         cat >>confdefs.h <<\_ACEOF
34280 #define wxSIZE_T_IS_ULONG 1
34281 _ACEOF
34282
34283     fi
34284 fi
34285
34286
34287 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34288 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34289 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34290   echo $ECHO_N "(cached) $ECHO_C" >&6
34291 else
34292
34293         cat >conftest.$ac_ext <<_ACEOF
34294 /* confdefs.h.  */
34295 _ACEOF
34296 cat confdefs.h >>conftest.$ac_ext
34297 cat >>conftest.$ac_ext <<_ACEOF
34298 /* end confdefs.h.  */
34299 #include <pwd.h>
34300 int
34301 main ()
34302 {
34303
34304                 char *p;
34305                 struct passwd *pw;
34306                 p = pw->pw_gecos;
34307
34308   ;
34309   return 0;
34310 }
34311 _ACEOF
34312 rm -f conftest.$ac_objext
34313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34314   (eval $ac_compile) 2>conftest.er1
34315   ac_status=$?
34316   grep -v '^ *+' conftest.er1 >conftest.err
34317   rm -f conftest.er1
34318   cat conftest.err >&5
34319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320   (exit $ac_status); } &&
34321          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34323   (eval $ac_try) 2>&5
34324   ac_status=$?
34325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326   (exit $ac_status); }; } &&
34327          { ac_try='test -s conftest.$ac_objext'
34328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34329   (eval $ac_try) 2>&5
34330   ac_status=$?
34331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34332   (exit $ac_status); }; }; then
34333
34334                 wx_cv_struct_pw_gecos=yes
34335
34336 else
34337   echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34339
34340
34341                 wx_cv_struct_pw_gecos=no
34342
34343
34344 fi
34345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34346
34347
34348 fi
34349 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34350 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34351
34352 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34353     cat >>confdefs.h <<\_ACEOF
34354 #define HAVE_PW_GECOS 1
34355 _ACEOF
34356
34357 fi
34358
34359
34360 if test "$wxUSE_WCHAR_T" = "yes"; then
34361     cat >>confdefs.h <<\_ACEOF
34362 #define wxUSE_WCHAR_T 1
34363 _ACEOF
34364
34365
34366         WCSLEN_FOUND=0
34367     WCHAR_LINK=
34368
34369 for ac_func in wcslen
34370 do
34371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34372 echo "$as_me:$LINENO: checking for $ac_func" >&5
34373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34374 if eval "test \"\${$as_ac_var+set}\" = set"; then
34375   echo $ECHO_N "(cached) $ECHO_C" >&6
34376 else
34377   cat >conftest.$ac_ext <<_ACEOF
34378 /* confdefs.h.  */
34379 _ACEOF
34380 cat confdefs.h >>conftest.$ac_ext
34381 cat >>conftest.$ac_ext <<_ACEOF
34382 /* end confdefs.h.  */
34383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34385 #define $ac_func innocuous_$ac_func
34386
34387 /* System header to define __stub macros and hopefully few prototypes,
34388     which can conflict with char $ac_func (); below.
34389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34390     <limits.h> exists even on freestanding compilers.  */
34391
34392 #ifdef __STDC__
34393 # include <limits.h>
34394 #else
34395 # include <assert.h>
34396 #endif
34397
34398 #undef $ac_func
34399
34400 /* Override any gcc2 internal prototype to avoid an error.  */
34401 #ifdef __cplusplus
34402 extern "C"
34403 {
34404 #endif
34405 /* We use char because int might match the return type of a gcc2
34406    builtin and then its argument prototype would still apply.  */
34407 char $ac_func ();
34408 /* The GNU C library defines this for functions which it implements
34409     to always fail with ENOSYS.  Some functions are actually named
34410     something starting with __ and the normal name is an alias.  */
34411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34412 choke me
34413 #else
34414 char (*f) () = $ac_func;
34415 #endif
34416 #ifdef __cplusplus
34417 }
34418 #endif
34419
34420 int
34421 main ()
34422 {
34423 return f != $ac_func;
34424   ;
34425   return 0;
34426 }
34427 _ACEOF
34428 rm -f conftest.$ac_objext conftest$ac_exeext
34429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34430   (eval $ac_link) 2>conftest.er1
34431   ac_status=$?
34432   grep -v '^ *+' conftest.er1 >conftest.err
34433   rm -f conftest.er1
34434   cat conftest.err >&5
34435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34436   (exit $ac_status); } &&
34437          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34439   (eval $ac_try) 2>&5
34440   ac_status=$?
34441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442   (exit $ac_status); }; } &&
34443          { ac_try='test -s conftest$ac_exeext'
34444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34445   (eval $ac_try) 2>&5
34446   ac_status=$?
34447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448   (exit $ac_status); }; }; then
34449   eval "$as_ac_var=yes"
34450 else
34451   echo "$as_me: failed program was:" >&5
34452 sed 's/^/| /' conftest.$ac_ext >&5
34453
34454 eval "$as_ac_var=no"
34455 fi
34456 rm -f conftest.err conftest.$ac_objext \
34457       conftest$ac_exeext conftest.$ac_ext
34458 fi
34459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34461 if test `eval echo '${'$as_ac_var'}'` = yes; then
34462   cat >>confdefs.h <<_ACEOF
34463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34464 _ACEOF
34465  WCSLEN_FOUND=1
34466 fi
34467 done
34468
34469
34470     if test "$WCSLEN_FOUND" = 0; then
34471         if test "$TOOLKIT" = "MSW"; then
34472             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34473 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34474 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34475   echo $ECHO_N "(cached) $ECHO_C" >&6
34476 else
34477   ac_check_lib_save_LIBS=$LIBS
34478 LIBS="-lmsvcrt  $LIBS"
34479 cat >conftest.$ac_ext <<_ACEOF
34480 /* confdefs.h.  */
34481 _ACEOF
34482 cat confdefs.h >>conftest.$ac_ext
34483 cat >>conftest.$ac_ext <<_ACEOF
34484 /* end confdefs.h.  */
34485
34486 /* Override any gcc2 internal prototype to avoid an error.  */
34487 #ifdef __cplusplus
34488 extern "C"
34489 #endif
34490 /* We use char because int might match the return type of a gcc2
34491    builtin and then its argument prototype would still apply.  */
34492 char wcslen ();
34493 int
34494 main ()
34495 {
34496 wcslen ();
34497   ;
34498   return 0;
34499 }
34500 _ACEOF
34501 rm -f conftest.$ac_objext conftest$ac_exeext
34502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34503   (eval $ac_link) 2>conftest.er1
34504   ac_status=$?
34505   grep -v '^ *+' conftest.er1 >conftest.err
34506   rm -f conftest.er1
34507   cat conftest.err >&5
34508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509   (exit $ac_status); } &&
34510          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34512   (eval $ac_try) 2>&5
34513   ac_status=$?
34514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515   (exit $ac_status); }; } &&
34516          { ac_try='test -s conftest$ac_exeext'
34517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34518   (eval $ac_try) 2>&5
34519   ac_status=$?
34520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521   (exit $ac_status); }; }; then
34522   ac_cv_lib_msvcrt_wcslen=yes
34523 else
34524   echo "$as_me: failed program was:" >&5
34525 sed 's/^/| /' conftest.$ac_ext >&5
34526
34527 ac_cv_lib_msvcrt_wcslen=no
34528 fi
34529 rm -f conftest.err conftest.$ac_objext \
34530       conftest$ac_exeext conftest.$ac_ext
34531 LIBS=$ac_check_lib_save_LIBS
34532 fi
34533 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34534 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34535 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34536   WCHAR_OK=1
34537 fi
34538
34539         else
34540             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34541 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34542 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34543   echo $ECHO_N "(cached) $ECHO_C" >&6
34544 else
34545   ac_check_lib_save_LIBS=$LIBS
34546 LIBS="-lw  $LIBS"
34547 cat >conftest.$ac_ext <<_ACEOF
34548 /* confdefs.h.  */
34549 _ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h.  */
34553
34554 /* Override any gcc2 internal prototype to avoid an error.  */
34555 #ifdef __cplusplus
34556 extern "C"
34557 #endif
34558 /* We use char because int might match the return type of a gcc2
34559    builtin and then its argument prototype would still apply.  */
34560 char wcslen ();
34561 int
34562 main ()
34563 {
34564 wcslen ();
34565   ;
34566   return 0;
34567 }
34568 _ACEOF
34569 rm -f conftest.$ac_objext conftest$ac_exeext
34570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34571   (eval $ac_link) 2>conftest.er1
34572   ac_status=$?
34573   grep -v '^ *+' conftest.er1 >conftest.err
34574   rm -f conftest.er1
34575   cat conftest.err >&5
34576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577   (exit $ac_status); } &&
34578          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34580   (eval $ac_try) 2>&5
34581   ac_status=$?
34582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583   (exit $ac_status); }; } &&
34584          { ac_try='test -s conftest$ac_exeext'
34585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34586   (eval $ac_try) 2>&5
34587   ac_status=$?
34588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34589   (exit $ac_status); }; }; then
34590   ac_cv_lib_w_wcslen=yes
34591 else
34592   echo "$as_me: failed program was:" >&5
34593 sed 's/^/| /' conftest.$ac_ext >&5
34594
34595 ac_cv_lib_w_wcslen=no
34596 fi
34597 rm -f conftest.err conftest.$ac_objext \
34598       conftest$ac_exeext conftest.$ac_ext
34599 LIBS=$ac_check_lib_save_LIBS
34600 fi
34601 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34602 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34603 if test $ac_cv_lib_w_wcslen = yes; then
34604
34605                             WCHAR_LINK=" -lw"
34606                             WCSLEN_FOUND=1
34607
34608 fi
34609
34610         fi
34611     fi
34612
34613     if test "$WCSLEN_FOUND" = 1; then
34614         cat >>confdefs.h <<\_ACEOF
34615 #define HAVE_WCSLEN 1
34616 _ACEOF
34617
34618     fi
34619
34620                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34621         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34622     fi
34623
34624                 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34625 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34626 if test "${ac_cv_type_mbstate_t+set}" = set; then
34627   echo $ECHO_N "(cached) $ECHO_C" >&6
34628 else
34629   cat >conftest.$ac_ext <<_ACEOF
34630 /* confdefs.h.  */
34631 _ACEOF
34632 cat confdefs.h >>conftest.$ac_ext
34633 cat >>conftest.$ac_ext <<_ACEOF
34634 /* end confdefs.h.  */
34635 #include <wchar.h>
34636
34637 int
34638 main ()
34639 {
34640 if ((mbstate_t *) 0)
34641   return 0;
34642 if (sizeof (mbstate_t))
34643   return 0;
34644   ;
34645   return 0;
34646 }
34647 _ACEOF
34648 rm -f conftest.$ac_objext
34649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34650   (eval $ac_compile) 2>conftest.er1
34651   ac_status=$?
34652   grep -v '^ *+' conftest.er1 >conftest.err
34653   rm -f conftest.er1
34654   cat conftest.err >&5
34655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656   (exit $ac_status); } &&
34657          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34659   (eval $ac_try) 2>&5
34660   ac_status=$?
34661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662   (exit $ac_status); }; } &&
34663          { ac_try='test -s conftest.$ac_objext'
34664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665   (eval $ac_try) 2>&5
34666   ac_status=$?
34667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668   (exit $ac_status); }; }; then
34669   ac_cv_type_mbstate_t=yes
34670 else
34671   echo "$as_me: failed program was:" >&5
34672 sed 's/^/| /' conftest.$ac_ext >&5
34673
34674 ac_cv_type_mbstate_t=no
34675 fi
34676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34677 fi
34678 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34679 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34680 if test $ac_cv_type_mbstate_t = yes; then
34681
34682 cat >>confdefs.h <<_ACEOF
34683 #define HAVE_MBSTATE_T 1
34684 _ACEOF
34685
34686
34687 for ac_func in wcsrtombs
34688 do
34689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34690 echo "$as_me:$LINENO: checking for $ac_func" >&5
34691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34692 if eval "test \"\${$as_ac_var+set}\" = set"; then
34693   echo $ECHO_N "(cached) $ECHO_C" >&6
34694 else
34695   cat >conftest.$ac_ext <<_ACEOF
34696 /* confdefs.h.  */
34697 _ACEOF
34698 cat confdefs.h >>conftest.$ac_ext
34699 cat >>conftest.$ac_ext <<_ACEOF
34700 /* end confdefs.h.  */
34701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34703 #define $ac_func innocuous_$ac_func
34704
34705 /* System header to define __stub macros and hopefully few prototypes,
34706     which can conflict with char $ac_func (); below.
34707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34708     <limits.h> exists even on freestanding compilers.  */
34709
34710 #ifdef __STDC__
34711 # include <limits.h>
34712 #else
34713 # include <assert.h>
34714 #endif
34715
34716 #undef $ac_func
34717
34718 /* Override any gcc2 internal prototype to avoid an error.  */
34719 #ifdef __cplusplus
34720 extern "C"
34721 {
34722 #endif
34723 /* We use char because int might match the return type of a gcc2
34724    builtin and then its argument prototype would still apply.  */
34725 char $ac_func ();
34726 /* The GNU C library defines this for functions which it implements
34727     to always fail with ENOSYS.  Some functions are actually named
34728     something starting with __ and the normal name is an alias.  */
34729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34730 choke me
34731 #else
34732 char (*f) () = $ac_func;
34733 #endif
34734 #ifdef __cplusplus
34735 }
34736 #endif
34737
34738 int
34739 main ()
34740 {
34741 return f != $ac_func;
34742   ;
34743   return 0;
34744 }
34745 _ACEOF
34746 rm -f conftest.$ac_objext conftest$ac_exeext
34747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34748   (eval $ac_link) 2>conftest.er1
34749   ac_status=$?
34750   grep -v '^ *+' conftest.er1 >conftest.err
34751   rm -f conftest.er1
34752   cat conftest.err >&5
34753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754   (exit $ac_status); } &&
34755          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34757   (eval $ac_try) 2>&5
34758   ac_status=$?
34759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760   (exit $ac_status); }; } &&
34761          { ac_try='test -s conftest$ac_exeext'
34762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763   (eval $ac_try) 2>&5
34764   ac_status=$?
34765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766   (exit $ac_status); }; }; then
34767   eval "$as_ac_var=yes"
34768 else
34769   echo "$as_me: failed program was:" >&5
34770 sed 's/^/| /' conftest.$ac_ext >&5
34771
34772 eval "$as_ac_var=no"
34773 fi
34774 rm -f conftest.err conftest.$ac_objext \
34775       conftest$ac_exeext conftest.$ac_ext
34776 fi
34777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34779 if test `eval echo '${'$as_ac_var'}'` = yes; then
34780   cat >>confdefs.h <<_ACEOF
34781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34782 _ACEOF
34783
34784 fi
34785 done
34786
34787 fi
34788
34789 else
34790     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34791 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34792 fi
34793
34794
34795
34796 for ac_func in snprintf vsnprintf
34797 do
34798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34799 echo "$as_me:$LINENO: checking for $ac_func" >&5
34800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34801 if eval "test \"\${$as_ac_var+set}\" = set"; then
34802   echo $ECHO_N "(cached) $ECHO_C" >&6
34803 else
34804   cat >conftest.$ac_ext <<_ACEOF
34805 /* confdefs.h.  */
34806 _ACEOF
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h.  */
34810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34812 #define $ac_func innocuous_$ac_func
34813
34814 /* System header to define __stub macros and hopefully few prototypes,
34815     which can conflict with char $ac_func (); below.
34816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34817     <limits.h> exists even on freestanding compilers.  */
34818
34819 #ifdef __STDC__
34820 # include <limits.h>
34821 #else
34822 # include <assert.h>
34823 #endif
34824
34825 #undef $ac_func
34826
34827 /* Override any gcc2 internal prototype to avoid an error.  */
34828 #ifdef __cplusplus
34829 extern "C"
34830 {
34831 #endif
34832 /* We use char because int might match the return type of a gcc2
34833    builtin and then its argument prototype would still apply.  */
34834 char $ac_func ();
34835 /* The GNU C library defines this for functions which it implements
34836     to always fail with ENOSYS.  Some functions are actually named
34837     something starting with __ and the normal name is an alias.  */
34838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34839 choke me
34840 #else
34841 char (*f) () = $ac_func;
34842 #endif
34843 #ifdef __cplusplus
34844 }
34845 #endif
34846
34847 int
34848 main ()
34849 {
34850 return f != $ac_func;
34851   ;
34852   return 0;
34853 }
34854 _ACEOF
34855 rm -f conftest.$ac_objext conftest$ac_exeext
34856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34857   (eval $ac_link) 2>conftest.er1
34858   ac_status=$?
34859   grep -v '^ *+' conftest.er1 >conftest.err
34860   rm -f conftest.er1
34861   cat conftest.err >&5
34862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863   (exit $ac_status); } &&
34864          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34866   (eval $ac_try) 2>&5
34867   ac_status=$?
34868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869   (exit $ac_status); }; } &&
34870          { ac_try='test -s conftest$ac_exeext'
34871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872   (eval $ac_try) 2>&5
34873   ac_status=$?
34874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875   (exit $ac_status); }; }; then
34876   eval "$as_ac_var=yes"
34877 else
34878   echo "$as_me: failed program was:" >&5
34879 sed 's/^/| /' conftest.$ac_ext >&5
34880
34881 eval "$as_ac_var=no"
34882 fi
34883 rm -f conftest.err conftest.$ac_objext \
34884       conftest$ac_exeext conftest.$ac_ext
34885 fi
34886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34888 if test `eval echo '${'$as_ac_var'}'` = yes; then
34889   cat >>confdefs.h <<_ACEOF
34890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34891 _ACEOF
34892
34893 fi
34894 done
34895
34896
34897 if test "$ac_cv_func_vsnprintf" = "yes"; then
34898         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34899 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34900 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34901   echo $ECHO_N "(cached) $ECHO_C" >&6
34902 else
34903
34904                                                             cat >conftest.$ac_ext <<_ACEOF
34905 /* confdefs.h.  */
34906 _ACEOF
34907 cat confdefs.h >>conftest.$ac_ext
34908 cat >>conftest.$ac_ext <<_ACEOF
34909 /* end confdefs.h.  */
34910
34911                     #include <stdio.h>
34912                     #include <stdarg.h>
34913                     #ifdef __MSL__
34914                     #if __MSL__ >= 0x6000
34915                     namespace std {}
34916                     using namespace std;
34917                     #endif
34918                     #endif
34919
34920 int
34921 main ()
34922 {
34923
34924                     char *buf;
34925                     va_list ap;
34926                     vsnprintf(buf, 10u, "%s", ap);
34927
34928   ;
34929   return 0;
34930 }
34931 _ACEOF
34932 rm -f conftest.$ac_objext
34933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34934   (eval $ac_compile) 2>conftest.er1
34935   ac_status=$?
34936   grep -v '^ *+' conftest.er1 >conftest.err
34937   rm -f conftest.er1
34938   cat conftest.err >&5
34939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940   (exit $ac_status); } &&
34941          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34943   (eval $ac_try) 2>&5
34944   ac_status=$?
34945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946   (exit $ac_status); }; } &&
34947          { ac_try='test -s conftest.$ac_objext'
34948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34949   (eval $ac_try) 2>&5
34950   ac_status=$?
34951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952   (exit $ac_status); }; }; then
34953   wx_cv_func_vsnprintf_decl=yes
34954 else
34955   echo "$as_me: failed program was:" >&5
34956 sed 's/^/| /' conftest.$ac_ext >&5
34957
34958 wx_cv_func_vsnprintf_decl=no
34959
34960 fi
34961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34962
34963
34964 fi
34965 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34966 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34967
34968     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34969         cat >>confdefs.h <<\_ACEOF
34970 #define HAVE_VSNPRINTF_DECL 1
34971 _ACEOF
34972
34973
34974                         echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34975 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34976 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34977   echo $ECHO_N "(cached) $ECHO_C" >&6
34978 else
34979
34980                 cat >conftest.$ac_ext <<_ACEOF
34981 /* confdefs.h.  */
34982 _ACEOF
34983 cat confdefs.h >>conftest.$ac_ext
34984 cat >>conftest.$ac_ext <<_ACEOF
34985 /* end confdefs.h.  */
34986
34987                         #include <stdio.h>
34988                         #include <stdarg.h>
34989                         #ifdef __MSL__
34990                         #if __MSL__ >= 0x6000
34991                         namespace std {}
34992                         using namespace std;
34993                         #endif
34994                         #endif
34995
34996 int
34997 main ()
34998 {
34999
35000                         char *buf;
35001                         va_list ap;
35002                         const char *fmt = "%s";
35003                         vsnprintf(buf, 10u, fmt, ap);
35004
35005   ;
35006   return 0;
35007 }
35008 _ACEOF
35009 rm -f conftest.$ac_objext
35010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35011   (eval $ac_compile) 2>conftest.er1
35012   ac_status=$?
35013   grep -v '^ *+' conftest.er1 >conftest.err
35014   rm -f conftest.er1
35015   cat conftest.err >&5
35016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017   (exit $ac_status); } &&
35018          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35020   (eval $ac_try) 2>&5
35021   ac_status=$?
35022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35023   (exit $ac_status); }; } &&
35024          { ac_try='test -s conftest.$ac_objext'
35025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35026   (eval $ac_try) 2>&5
35027   ac_status=$?
35028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35029   (exit $ac_status); }; }; then
35030   wx_cv_func_broken_vsnprintf_decl=no
35031 else
35032   echo "$as_me: failed program was:" >&5
35033 sed 's/^/| /' conftest.$ac_ext >&5
35034
35035 wx_cv_func_broken_vsnprintf_decl=yes
35036
35037 fi
35038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35039
35040
35041 fi
35042 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35043 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35044
35045         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35046             cat >>confdefs.h <<\_ACEOF
35047 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35048 _ACEOF
35049
35050         fi
35051     fi
35052 fi
35053
35054 if test "$ac_cv_func_snprintf" = "yes"; then
35055     echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35056 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35057 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35058   echo $ECHO_N "(cached) $ECHO_C" >&6
35059 else
35060
35061             cat >conftest.$ac_ext <<_ACEOF
35062 /* confdefs.h.  */
35063 _ACEOF
35064 cat confdefs.h >>conftest.$ac_ext
35065 cat >>conftest.$ac_ext <<_ACEOF
35066 /* end confdefs.h.  */
35067
35068                     #include <stdio.h>
35069                     #include <stdarg.h>
35070                     #ifdef __MSL__
35071                     #if __MSL__ >= 0x6000
35072                     namespace std {}
35073                     using namespace std;
35074                     #endif
35075                     #endif
35076
35077 int
35078 main ()
35079 {
35080
35081                     char *buf;
35082                     snprintf(buf, 10u, "%s", "wx");
35083
35084   ;
35085   return 0;
35086 }
35087 _ACEOF
35088 rm -f conftest.$ac_objext
35089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35090   (eval $ac_compile) 2>conftest.er1
35091   ac_status=$?
35092   grep -v '^ *+' conftest.er1 >conftest.err
35093   rm -f conftest.er1
35094   cat conftest.err >&5
35095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096   (exit $ac_status); } &&
35097          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35099   (eval $ac_try) 2>&5
35100   ac_status=$?
35101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102   (exit $ac_status); }; } &&
35103          { ac_try='test -s conftest.$ac_objext'
35104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35105   (eval $ac_try) 2>&5
35106   ac_status=$?
35107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108   (exit $ac_status); }; }; then
35109   wx_cv_func_snprintf_decl=yes
35110 else
35111   echo "$as_me: failed program was:" >&5
35112 sed 's/^/| /' conftest.$ac_ext >&5
35113
35114 wx_cv_func_snprintf_decl=no
35115
35116 fi
35117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35118
35119
35120 fi
35121 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35122 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35123
35124     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35125         cat >>confdefs.h <<\_ACEOF
35126 #define HAVE_SNPRINTF_DECL 1
35127 _ACEOF
35128
35129
35130                         echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35131 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35132 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35133   echo $ECHO_N "(cached) $ECHO_C" >&6
35134 else
35135
35136                 cat >conftest.$ac_ext <<_ACEOF
35137 /* confdefs.h.  */
35138 _ACEOF
35139 cat confdefs.h >>conftest.$ac_ext
35140 cat >>conftest.$ac_ext <<_ACEOF
35141 /* end confdefs.h.  */
35142
35143                         #include <stdio.h>
35144                         #include <stdarg.h>
35145                         #ifdef __MSL__
35146                         #if __MSL__ >= 0x6000
35147                         namespace std {}
35148                         using namespace std;
35149                         #endif
35150                         #endif
35151
35152 int
35153 main ()
35154 {
35155
35156                         char *buf;
35157                         const char *fmt = "%s";
35158                         snprintf(buf, 10u, fmt, "wx");
35159
35160   ;
35161   return 0;
35162 }
35163 _ACEOF
35164 rm -f conftest.$ac_objext
35165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35166   (eval $ac_compile) 2>conftest.er1
35167   ac_status=$?
35168   grep -v '^ *+' conftest.er1 >conftest.err
35169   rm -f conftest.er1
35170   cat conftest.err >&5
35171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172   (exit $ac_status); } &&
35173          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35175   (eval $ac_try) 2>&5
35176   ac_status=$?
35177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178   (exit $ac_status); }; } &&
35179          { ac_try='test -s conftest.$ac_objext'
35180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35181   (eval $ac_try) 2>&5
35182   ac_status=$?
35183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184   (exit $ac_status); }; }; then
35185   wx_cv_func_broken_snprintf_decl=no
35186 else
35187   echo "$as_me: failed program was:" >&5
35188 sed 's/^/| /' conftest.$ac_ext >&5
35189
35190 wx_cv_func_broken_snprintf_decl=yes
35191
35192 fi
35193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35194
35195
35196 fi
35197 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35198 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35199
35200         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35201             cat >>confdefs.h <<\_ACEOF
35202 #define HAVE_BROKEN_SNPRINTF_DECL 1
35203 _ACEOF
35204
35205         fi
35206     fi
35207
35208     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35209
35210                                         echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35211 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35212 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35213   echo $ECHO_N "(cached) $ECHO_C" >&6
35214 else
35215
35216                 if test "$cross_compiling" = yes; then
35217
35218                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35219 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35220 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35221 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35222                         wx_cv_func_snprintf_pos_params=no
35223
35224
35225 else
35226   cat >conftest.$ac_ext <<_ACEOF
35227 /* confdefs.h.  */
35228 _ACEOF
35229 cat confdefs.h >>conftest.$ac_ext
35230 cat >>conftest.$ac_ext <<_ACEOF
35231 /* end confdefs.h.  */
35232
35233                         #include <stdio.h>
35234
35235                         int main (void)
35236                         {
35237                             char buffer[128];
35238                             snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35239                             if (strcmp ("2 3 1", buffer) == 0)
35240                                 exit (0);
35241                             exit (1);
35242                         }
35243
35244 _ACEOF
35245 rm -f conftest$ac_exeext
35246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35247   (eval $ac_link) 2>&5
35248   ac_status=$?
35249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35252   (eval $ac_try) 2>&5
35253   ac_status=$?
35254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255   (exit $ac_status); }; }; then
35256   wx_cv_func_snprintf_pos_params=no
35257 else
35258   echo "$as_me: program exited with status $ac_status" >&5
35259 echo "$as_me: failed program was:" >&5
35260 sed 's/^/| /' conftest.$ac_ext >&5
35261
35262 ( exit $ac_status )
35263 wx_cv_func_snprintf_pos_params=yes
35264 fi
35265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35266 fi
35267
35268
35269 fi
35270 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35271 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35272
35273         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35274             cat >>confdefs.h <<\_ACEOF
35275 #define HAVE_UNIX98_PRINTF 1
35276 _ACEOF
35277
35278         fi
35279     fi
35280 fi
35281
35282 if test "$wxUSE_UNICODE" = yes; then
35283
35284
35285 for ac_func in swprintf
35286 do
35287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35288 echo "$as_me:$LINENO: checking for $ac_func" >&5
35289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35290 if eval "test \"\${$as_ac_var+set}\" = set"; then
35291   echo $ECHO_N "(cached) $ECHO_C" >&6
35292 else
35293   cat >conftest.$ac_ext <<_ACEOF
35294 /* confdefs.h.  */
35295 _ACEOF
35296 cat confdefs.h >>conftest.$ac_ext
35297 cat >>conftest.$ac_ext <<_ACEOF
35298 /* end confdefs.h.  */
35299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35300    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35301 #define $ac_func innocuous_$ac_func
35302
35303 /* System header to define __stub macros and hopefully few prototypes,
35304     which can conflict with char $ac_func (); below.
35305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35306     <limits.h> exists even on freestanding compilers.  */
35307
35308 #ifdef __STDC__
35309 # include <limits.h>
35310 #else
35311 # include <assert.h>
35312 #endif
35313
35314 #undef $ac_func
35315
35316 /* Override any gcc2 internal prototype to avoid an error.  */
35317 #ifdef __cplusplus
35318 extern "C"
35319 {
35320 #endif
35321 /* We use char because int might match the return type of a gcc2
35322    builtin and then its argument prototype would still apply.  */
35323 char $ac_func ();
35324 /* The GNU C library defines this for functions which it implements
35325     to always fail with ENOSYS.  Some functions are actually named
35326     something starting with __ and the normal name is an alias.  */
35327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35328 choke me
35329 #else
35330 char (*f) () = $ac_func;
35331 #endif
35332 #ifdef __cplusplus
35333 }
35334 #endif
35335
35336 int
35337 main ()
35338 {
35339 return f != $ac_func;
35340   ;
35341   return 0;
35342 }
35343 _ACEOF
35344 rm -f conftest.$ac_objext conftest$ac_exeext
35345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35346   (eval $ac_link) 2>conftest.er1
35347   ac_status=$?
35348   grep -v '^ *+' conftest.er1 >conftest.err
35349   rm -f conftest.er1
35350   cat conftest.err >&5
35351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352   (exit $ac_status); } &&
35353          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355   (eval $ac_try) 2>&5
35356   ac_status=$?
35357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358   (exit $ac_status); }; } &&
35359          { ac_try='test -s conftest$ac_exeext'
35360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35361   (eval $ac_try) 2>&5
35362   ac_status=$?
35363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364   (exit $ac_status); }; }; then
35365   eval "$as_ac_var=yes"
35366 else
35367   echo "$as_me: failed program was:" >&5
35368 sed 's/^/| /' conftest.$ac_ext >&5
35369
35370 eval "$as_ac_var=no"
35371 fi
35372 rm -f conftest.err conftest.$ac_objext \
35373       conftest$ac_exeext conftest.$ac_ext
35374 fi
35375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35377 if test `eval echo '${'$as_ac_var'}'` = yes; then
35378   cat >>confdefs.h <<_ACEOF
35379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35380 _ACEOF
35381
35382 fi
35383 done
35384
35385
35386     if test "$ac_cv_func_swprintf" = "yes"; then
35387         echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35388 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35389 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35390   echo $ECHO_N "(cached) $ECHO_C" >&6
35391 else
35392
35393                 cat >conftest.$ac_ext <<_ACEOF
35394 /* confdefs.h.  */
35395 _ACEOF
35396 cat confdefs.h >>conftest.$ac_ext
35397 cat >>conftest.$ac_ext <<_ACEOF
35398 /* end confdefs.h.  */
35399
35400                         #include <stdio.h>
35401                         #include <stdarg.h>
35402                         #include <wchar.h>
35403
35404 int
35405 main ()
35406 {
35407
35408                         wchar_t *buf;
35409                         const wchar_t *fmt = L"test";
35410                         swprintf(buf, 10u, fmt);
35411
35412   ;
35413   return 0;
35414 }
35415 _ACEOF
35416 rm -f conftest.$ac_objext
35417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35418   (eval $ac_compile) 2>conftest.er1
35419   ac_status=$?
35420   grep -v '^ *+' conftest.er1 >conftest.err
35421   rm -f conftest.er1
35422   cat conftest.err >&5
35423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424   (exit $ac_status); } &&
35425          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35427   (eval $ac_try) 2>&5
35428   ac_status=$?
35429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430   (exit $ac_status); }; } &&
35431          { ac_try='test -s conftest.$ac_objext'
35432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35433   (eval $ac_try) 2>&5
35434   ac_status=$?
35435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436   (exit $ac_status); }; }; then
35437   wx_cv_func_broken_swprintf_decl=no
35438 else
35439   echo "$as_me: failed program was:" >&5
35440 sed 's/^/| /' conftest.$ac_ext >&5
35441
35442 wx_cv_func_broken_swprintf_decl=yes
35443
35444 fi
35445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35446
35447
35448 fi
35449 echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35450 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35451
35452         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35453             cat >>confdefs.h <<\_ACEOF
35454 #define HAVE_BROKEN_SWPRINTF_DECL 1
35455 _ACEOF
35456
35457         fi
35458     fi
35459
35460
35461
35462
35463
35464
35465
35466 for ac_func in wputc wputchar putws fputws wprintf vswprintf
35467 do
35468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35469 echo "$as_me:$LINENO: checking for $ac_func" >&5
35470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35471 if eval "test \"\${$as_ac_var+set}\" = set"; then
35472   echo $ECHO_N "(cached) $ECHO_C" >&6
35473 else
35474   cat >conftest.$ac_ext <<_ACEOF
35475 /* confdefs.h.  */
35476 _ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h.  */
35480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35482 #define $ac_func innocuous_$ac_func
35483
35484 /* System header to define __stub macros and hopefully few prototypes,
35485     which can conflict with char $ac_func (); below.
35486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35487     <limits.h> exists even on freestanding compilers.  */
35488
35489 #ifdef __STDC__
35490 # include <limits.h>
35491 #else
35492 # include <assert.h>
35493 #endif
35494
35495 #undef $ac_func
35496
35497 /* Override any gcc2 internal prototype to avoid an error.  */
35498 #ifdef __cplusplus
35499 extern "C"
35500 {
35501 #endif
35502 /* We use char because int might match the return type of a gcc2
35503    builtin and then its argument prototype would still apply.  */
35504 char $ac_func ();
35505 /* The GNU C library defines this for functions which it implements
35506     to always fail with ENOSYS.  Some functions are actually named
35507     something starting with __ and the normal name is an alias.  */
35508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35509 choke me
35510 #else
35511 char (*f) () = $ac_func;
35512 #endif
35513 #ifdef __cplusplus
35514 }
35515 #endif
35516
35517 int
35518 main ()
35519 {
35520 return f != $ac_func;
35521   ;
35522   return 0;
35523 }
35524 _ACEOF
35525 rm -f conftest.$ac_objext conftest$ac_exeext
35526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35527   (eval $ac_link) 2>conftest.er1
35528   ac_status=$?
35529   grep -v '^ *+' conftest.er1 >conftest.err
35530   rm -f conftest.er1
35531   cat conftest.err >&5
35532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35533   (exit $ac_status); } &&
35534          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35536   (eval $ac_try) 2>&5
35537   ac_status=$?
35538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539   (exit $ac_status); }; } &&
35540          { ac_try='test -s conftest$ac_exeext'
35541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35542   (eval $ac_try) 2>&5
35543   ac_status=$?
35544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35545   (exit $ac_status); }; }; then
35546   eval "$as_ac_var=yes"
35547 else
35548   echo "$as_me: failed program was:" >&5
35549 sed 's/^/| /' conftest.$ac_ext >&5
35550
35551 eval "$as_ac_var=no"
35552 fi
35553 rm -f conftest.err conftest.$ac_objext \
35554       conftest$ac_exeext conftest.$ac_ext
35555 fi
35556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35558 if test `eval echo '${'$as_ac_var'}'` = yes; then
35559   cat >>confdefs.h <<_ACEOF
35560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35561 _ACEOF
35562
35563 fi
35564 done
35565
35566
35567                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35568 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35569     cat >conftest.$ac_ext <<_ACEOF
35570 /* confdefs.h.  */
35571 _ACEOF
35572 cat confdefs.h >>conftest.$ac_ext
35573 cat >>conftest.$ac_ext <<_ACEOF
35574 /* end confdefs.h.  */
35575 #include <wchar.h>
35576 int
35577 main ()
35578 {
35579 &_vsnwprintf;
35580   ;
35581   return 0;
35582 }
35583 _ACEOF
35584 rm -f conftest.$ac_objext
35585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35586   (eval $ac_compile) 2>conftest.er1
35587   ac_status=$?
35588   grep -v '^ *+' conftest.er1 >conftest.err
35589   rm -f conftest.er1
35590   cat conftest.err >&5
35591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35592   (exit $ac_status); } &&
35593          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35595   (eval $ac_try) 2>&5
35596   ac_status=$?
35597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35598   (exit $ac_status); }; } &&
35599          { ac_try='test -s conftest.$ac_objext'
35600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35601   (eval $ac_try) 2>&5
35602   ac_status=$?
35603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604   (exit $ac_status); }; }; then
35605   echo "$as_me:$LINENO: result: yes" >&5
35606 echo "${ECHO_T}yes" >&6
35607                     cat >>confdefs.h <<\_ACEOF
35608 #define HAVE__VSNWPRINTF 1
35609 _ACEOF
35610
35611 else
35612   echo "$as_me: failed program was:" >&5
35613 sed 's/^/| /' conftest.$ac_ext >&5
35614
35615 echo "$as_me:$LINENO: result: no" >&5
35616 echo "${ECHO_T}no" >&6
35617 fi
35618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
35619 fi
35620
35621 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35622
35623 for ac_func in fnmatch
35624 do
35625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35626 echo "$as_me:$LINENO: checking for $ac_func" >&5
35627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35628 if eval "test \"\${$as_ac_var+set}\" = set"; then
35629   echo $ECHO_N "(cached) $ECHO_C" >&6
35630 else
35631   cat >conftest.$ac_ext <<_ACEOF
35632 /* confdefs.h.  */
35633 _ACEOF
35634 cat confdefs.h >>conftest.$ac_ext
35635 cat >>conftest.$ac_ext <<_ACEOF
35636 /* end confdefs.h.  */
35637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35639 #define $ac_func innocuous_$ac_func
35640
35641 /* System header to define __stub macros and hopefully few prototypes,
35642     which can conflict with char $ac_func (); below.
35643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35644     <limits.h> exists even on freestanding compilers.  */
35645
35646 #ifdef __STDC__
35647 # include <limits.h>
35648 #else
35649 # include <assert.h>
35650 #endif
35651
35652 #undef $ac_func
35653
35654 /* Override any gcc2 internal prototype to avoid an error.  */
35655 #ifdef __cplusplus
35656 extern "C"
35657 {
35658 #endif
35659 /* We use char because int might match the return type of a gcc2
35660    builtin and then its argument prototype would still apply.  */
35661 char $ac_func ();
35662 /* The GNU C library defines this for functions which it implements
35663     to always fail with ENOSYS.  Some functions are actually named
35664     something starting with __ and the normal name is an alias.  */
35665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35666 choke me
35667 #else
35668 char (*f) () = $ac_func;
35669 #endif
35670 #ifdef __cplusplus
35671 }
35672 #endif
35673
35674 int
35675 main ()
35676 {
35677 return f != $ac_func;
35678   ;
35679   return 0;
35680 }
35681 _ACEOF
35682 rm -f conftest.$ac_objext conftest$ac_exeext
35683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35684   (eval $ac_link) 2>conftest.er1
35685   ac_status=$?
35686   grep -v '^ *+' conftest.er1 >conftest.err
35687   rm -f conftest.er1
35688   cat conftest.err >&5
35689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690   (exit $ac_status); } &&
35691          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35693   (eval $ac_try) 2>&5
35694   ac_status=$?
35695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696   (exit $ac_status); }; } &&
35697          { ac_try='test -s conftest$ac_exeext'
35698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35699   (eval $ac_try) 2>&5
35700   ac_status=$?
35701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35702   (exit $ac_status); }; }; then
35703   eval "$as_ac_var=yes"
35704 else
35705   echo "$as_me: failed program was:" >&5
35706 sed 's/^/| /' conftest.$ac_ext >&5
35707
35708 eval "$as_ac_var=no"
35709 fi
35710 rm -f conftest.err conftest.$ac_objext \
35711       conftest$ac_exeext conftest.$ac_ext
35712 fi
35713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35715 if test `eval echo '${'$as_ac_var'}'` = yes; then
35716   cat >>confdefs.h <<_ACEOF
35717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35718 _ACEOF
35719
35720 fi
35721 done
35722
35723 fi
35724
35725 if test "$wxUSE_FILE" = "yes"; then
35726
35727 for ac_func in fsync
35728 do
35729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35730 echo "$as_me:$LINENO: checking for $ac_func" >&5
35731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35732 if eval "test \"\${$as_ac_var+set}\" = set"; then
35733   echo $ECHO_N "(cached) $ECHO_C" >&6
35734 else
35735   cat >conftest.$ac_ext <<_ACEOF
35736 /* confdefs.h.  */
35737 _ACEOF
35738 cat confdefs.h >>conftest.$ac_ext
35739 cat >>conftest.$ac_ext <<_ACEOF
35740 /* end confdefs.h.  */
35741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35743 #define $ac_func innocuous_$ac_func
35744
35745 /* System header to define __stub macros and hopefully few prototypes,
35746     which can conflict with char $ac_func (); below.
35747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35748     <limits.h> exists even on freestanding compilers.  */
35749
35750 #ifdef __STDC__
35751 # include <limits.h>
35752 #else
35753 # include <assert.h>
35754 #endif
35755
35756 #undef $ac_func
35757
35758 /* Override any gcc2 internal prototype to avoid an error.  */
35759 #ifdef __cplusplus
35760 extern "C"
35761 {
35762 #endif
35763 /* We use char because int might match the return type of a gcc2
35764    builtin and then its argument prototype would still apply.  */
35765 char $ac_func ();
35766 /* The GNU C library defines this for functions which it implements
35767     to always fail with ENOSYS.  Some functions are actually named
35768     something starting with __ and the normal name is an alias.  */
35769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35770 choke me
35771 #else
35772 char (*f) () = $ac_func;
35773 #endif
35774 #ifdef __cplusplus
35775 }
35776 #endif
35777
35778 int
35779 main ()
35780 {
35781 return f != $ac_func;
35782   ;
35783   return 0;
35784 }
35785 _ACEOF
35786 rm -f conftest.$ac_objext conftest$ac_exeext
35787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35788   (eval $ac_link) 2>conftest.er1
35789   ac_status=$?
35790   grep -v '^ *+' conftest.er1 >conftest.err
35791   rm -f conftest.er1
35792   cat conftest.err >&5
35793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794   (exit $ac_status); } &&
35795          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35797   (eval $ac_try) 2>&5
35798   ac_status=$?
35799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800   (exit $ac_status); }; } &&
35801          { ac_try='test -s conftest$ac_exeext'
35802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35803   (eval $ac_try) 2>&5
35804   ac_status=$?
35805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806   (exit $ac_status); }; }; then
35807   eval "$as_ac_var=yes"
35808 else
35809   echo "$as_me: failed program was:" >&5
35810 sed 's/^/| /' conftest.$ac_ext >&5
35811
35812 eval "$as_ac_var=no"
35813 fi
35814 rm -f conftest.err conftest.$ac_objext \
35815       conftest$ac_exeext conftest.$ac_ext
35816 fi
35817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35819 if test `eval echo '${'$as_ac_var'}'` = yes; then
35820   cat >>confdefs.h <<_ACEOF
35821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35822 _ACEOF
35823
35824 fi
35825 done
35826
35827 fi
35828
35829
35830 for ac_func in round
35831 do
35832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35833 echo "$as_me:$LINENO: checking for $ac_func" >&5
35834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35835 if eval "test \"\${$as_ac_var+set}\" = set"; then
35836   echo $ECHO_N "(cached) $ECHO_C" >&6
35837 else
35838   cat >conftest.$ac_ext <<_ACEOF
35839 /* confdefs.h.  */
35840 _ACEOF
35841 cat confdefs.h >>conftest.$ac_ext
35842 cat >>conftest.$ac_ext <<_ACEOF
35843 /* end confdefs.h.  */
35844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35846 #define $ac_func innocuous_$ac_func
35847
35848 /* System header to define __stub macros and hopefully few prototypes,
35849     which can conflict with char $ac_func (); below.
35850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35851     <limits.h> exists even on freestanding compilers.  */
35852
35853 #ifdef __STDC__
35854 # include <limits.h>
35855 #else
35856 # include <assert.h>
35857 #endif
35858
35859 #undef $ac_func
35860
35861 /* Override any gcc2 internal prototype to avoid an error.  */
35862 #ifdef __cplusplus
35863 extern "C"
35864 {
35865 #endif
35866 /* We use char because int might match the return type of a gcc2
35867    builtin and then its argument prototype would still apply.  */
35868 char $ac_func ();
35869 /* The GNU C library defines this for functions which it implements
35870     to always fail with ENOSYS.  Some functions are actually named
35871     something starting with __ and the normal name is an alias.  */
35872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35873 choke me
35874 #else
35875 char (*f) () = $ac_func;
35876 #endif
35877 #ifdef __cplusplus
35878 }
35879 #endif
35880
35881 int
35882 main ()
35883 {
35884 return f != $ac_func;
35885   ;
35886   return 0;
35887 }
35888 _ACEOF
35889 rm -f conftest.$ac_objext conftest$ac_exeext
35890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35891   (eval $ac_link) 2>conftest.er1
35892   ac_status=$?
35893   grep -v '^ *+' conftest.er1 >conftest.err
35894   rm -f conftest.er1
35895   cat conftest.err >&5
35896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897   (exit $ac_status); } &&
35898          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35900   (eval $ac_try) 2>&5
35901   ac_status=$?
35902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35903   (exit $ac_status); }; } &&
35904          { ac_try='test -s conftest$ac_exeext'
35905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35906   (eval $ac_try) 2>&5
35907   ac_status=$?
35908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909   (exit $ac_status); }; }; then
35910   eval "$as_ac_var=yes"
35911 else
35912   echo "$as_me: failed program was:" >&5
35913 sed 's/^/| /' conftest.$ac_ext >&5
35914
35915 eval "$as_ac_var=no"
35916 fi
35917 rm -f conftest.err conftest.$ac_objext \
35918       conftest$ac_exeext conftest.$ac_ext
35919 fi
35920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35922 if test `eval echo '${'$as_ac_var'}'` = yes; then
35923   cat >>confdefs.h <<_ACEOF
35924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35925 _ACEOF
35926
35927 fi
35928 done
35929
35930 if test "$ac_cv_func_round" = yes; then
35931     echo "$as_me:$LINENO: checking whether round is declared" >&5
35932 echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35933 if test "${ac_cv_have_decl_round+set}" = set; then
35934   echo $ECHO_N "(cached) $ECHO_C" >&6
35935 else
35936   cat >conftest.$ac_ext <<_ACEOF
35937 /* confdefs.h.  */
35938 _ACEOF
35939 cat confdefs.h >>conftest.$ac_ext
35940 cat >>conftest.$ac_ext <<_ACEOF
35941 /* end confdefs.h.  */
35942 #include <math.h>
35943
35944 int
35945 main ()
35946 {
35947 #ifndef round
35948   char *p = (char *) round;
35949 #endif
35950
35951   ;
35952   return 0;
35953 }
35954 _ACEOF
35955 rm -f conftest.$ac_objext
35956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35957   (eval $ac_compile) 2>conftest.er1
35958   ac_status=$?
35959   grep -v '^ *+' conftest.er1 >conftest.err
35960   rm -f conftest.er1
35961   cat conftest.err >&5
35962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963   (exit $ac_status); } &&
35964          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35966   (eval $ac_try) 2>&5
35967   ac_status=$?
35968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969   (exit $ac_status); }; } &&
35970          { ac_try='test -s conftest.$ac_objext'
35971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35972   (eval $ac_try) 2>&5
35973   ac_status=$?
35974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975   (exit $ac_status); }; }; then
35976   ac_cv_have_decl_round=yes
35977 else
35978   echo "$as_me: failed program was:" >&5
35979 sed 's/^/| /' conftest.$ac_ext >&5
35980
35981 ac_cv_have_decl_round=no
35982 fi
35983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35984 fi
35985 echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35986 echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35987 if test $ac_cv_have_decl_round = yes; then
35988
35989 cat >>confdefs.h <<_ACEOF
35990 #define HAVE_DECL_ROUND 1
35991 _ACEOF
35992
35993
35994 else
35995   cat >>confdefs.h <<_ACEOF
35996 #define HAVE_DECL_ROUND 0
35997 _ACEOF
35998
35999
36000 fi
36001
36002
36003 fi
36004
36005
36006 if test "$TOOLKIT" != "MSW"; then
36007
36008
36009
36010
36011
36012 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36013 if test "${with_libiconv_prefix+set}" = set; then
36014   withval="$with_libiconv_prefix"
36015
36016     for dir in `echo "$withval" | tr : ' '`; do
36017       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36018       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36019     done
36020
36021 fi;
36022
36023   echo "$as_me:$LINENO: checking for iconv" >&5
36024 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36025 if test "${am_cv_func_iconv+set}" = set; then
36026   echo $ECHO_N "(cached) $ECHO_C" >&6
36027 else
36028
36029     am_cv_func_iconv="no, consider installing GNU libiconv"
36030     am_cv_lib_iconv=no
36031     cat >conftest.$ac_ext <<_ACEOF
36032 /* confdefs.h.  */
36033 _ACEOF
36034 cat confdefs.h >>conftest.$ac_ext
36035 cat >>conftest.$ac_ext <<_ACEOF
36036 /* end confdefs.h.  */
36037 #include <stdlib.h>
36038 #include <iconv.h>
36039 int
36040 main ()
36041 {
36042 iconv_t cd = iconv_open("","");
36043        iconv(cd,NULL,NULL,NULL,NULL);
36044        iconv_close(cd);
36045   ;
36046   return 0;
36047 }
36048 _ACEOF
36049 rm -f conftest.$ac_objext conftest$ac_exeext
36050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36051   (eval $ac_link) 2>conftest.er1
36052   ac_status=$?
36053   grep -v '^ *+' conftest.er1 >conftest.err
36054   rm -f conftest.er1
36055   cat conftest.err >&5
36056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057   (exit $ac_status); } &&
36058          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36060   (eval $ac_try) 2>&5
36061   ac_status=$?
36062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063   (exit $ac_status); }; } &&
36064          { ac_try='test -s conftest$ac_exeext'
36065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36066   (eval $ac_try) 2>&5
36067   ac_status=$?
36068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36069   (exit $ac_status); }; }; then
36070   am_cv_func_iconv=yes
36071 else
36072   echo "$as_me: failed program was:" >&5
36073 sed 's/^/| /' conftest.$ac_ext >&5
36074
36075 fi
36076 rm -f conftest.err conftest.$ac_objext \
36077       conftest$ac_exeext conftest.$ac_ext
36078     if test "$am_cv_func_iconv" != yes; then
36079       am_save_LIBS="$LIBS"
36080       LIBS="$LIBS -liconv"
36081       cat >conftest.$ac_ext <<_ACEOF
36082 /* confdefs.h.  */
36083 _ACEOF
36084 cat confdefs.h >>conftest.$ac_ext
36085 cat >>conftest.$ac_ext <<_ACEOF
36086 /* end confdefs.h.  */
36087 #include <stdlib.h>
36088 #include <iconv.h>
36089 int
36090 main ()
36091 {
36092 iconv_t cd = iconv_open("","");
36093          iconv(cd,NULL,NULL,NULL,NULL);
36094          iconv_close(cd);
36095   ;
36096   return 0;
36097 }
36098 _ACEOF
36099 rm -f conftest.$ac_objext conftest$ac_exeext
36100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36101   (eval $ac_link) 2>conftest.er1
36102   ac_status=$?
36103   grep -v '^ *+' conftest.er1 >conftest.err
36104   rm -f conftest.er1
36105   cat conftest.err >&5
36106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107   (exit $ac_status); } &&
36108          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36110   (eval $ac_try) 2>&5
36111   ac_status=$?
36112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113   (exit $ac_status); }; } &&
36114          { ac_try='test -s conftest$ac_exeext'
36115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36116   (eval $ac_try) 2>&5
36117   ac_status=$?
36118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119   (exit $ac_status); }; }; then
36120   am_cv_lib_iconv=yes
36121         am_cv_func_iconv=yes
36122 else
36123   echo "$as_me: failed program was:" >&5
36124 sed 's/^/| /' conftest.$ac_ext >&5
36125
36126 fi
36127 rm -f conftest.err conftest.$ac_objext \
36128       conftest$ac_exeext conftest.$ac_ext
36129       LIBS="$am_save_LIBS"
36130     fi
36131
36132 fi
36133 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36134 echo "${ECHO_T}$am_cv_func_iconv" >&6
36135   if test "$am_cv_func_iconv" = yes; then
36136
36137 cat >>confdefs.h <<\_ACEOF
36138 #define HAVE_ICONV 1
36139 _ACEOF
36140
36141     echo "$as_me:$LINENO: checking if iconv needs const" >&5
36142 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36143 if test "${wx_cv_func_iconv_const+set}" = set; then
36144   echo $ECHO_N "(cached) $ECHO_C" >&6
36145 else
36146   cat >conftest.$ac_ext <<_ACEOF
36147 /* confdefs.h.  */
36148 _ACEOF
36149 cat confdefs.h >>conftest.$ac_ext
36150 cat >>conftest.$ac_ext <<_ACEOF
36151 /* end confdefs.h.  */
36152
36153 #include <stdlib.h>
36154 #include <iconv.h>
36155 extern
36156 #ifdef __cplusplus
36157 "C"
36158 #endif
36159 #if defined(__STDC__) || defined(__cplusplus)
36160 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36161 #else
36162 size_t iconv();
36163 #endif
36164
36165 int
36166 main ()
36167 {
36168
36169   ;
36170   return 0;
36171 }
36172 _ACEOF
36173 rm -f conftest.$ac_objext
36174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36175   (eval $ac_compile) 2>conftest.er1
36176   ac_status=$?
36177   grep -v '^ *+' conftest.er1 >conftest.err
36178   rm -f conftest.er1
36179   cat conftest.err >&5
36180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181   (exit $ac_status); } &&
36182          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36184   (eval $ac_try) 2>&5
36185   ac_status=$?
36186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36187   (exit $ac_status); }; } &&
36188          { ac_try='test -s conftest.$ac_objext'
36189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36190   (eval $ac_try) 2>&5
36191   ac_status=$?
36192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36193   (exit $ac_status); }; }; then
36194   wx_cv_func_iconv_const="no"
36195 else
36196   echo "$as_me: failed program was:" >&5
36197 sed 's/^/| /' conftest.$ac_ext >&5
36198
36199 wx_cv_func_iconv_const="yes"
36200
36201 fi
36202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36203
36204 fi
36205 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36206 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36207
36208     iconv_const=
36209     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36210         iconv_const="const"
36211     fi
36212
36213
36214 cat >>confdefs.h <<_ACEOF
36215 #define ICONV_CONST $iconv_const
36216 _ACEOF
36217
36218   fi
36219   LIBICONV=
36220   if test "$am_cv_lib_iconv" = yes; then
36221     LIBICONV="-liconv"
36222   fi
36223
36224
36225 LIBS="$LIBICONV $LIBS"
36226
36227 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36228
36229 for ac_func in sigaction
36230 do
36231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36232 echo "$as_me:$LINENO: checking for $ac_func" >&5
36233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36234 if eval "test \"\${$as_ac_var+set}\" = set"; then
36235   echo $ECHO_N "(cached) $ECHO_C" >&6
36236 else
36237   cat >conftest.$ac_ext <<_ACEOF
36238 /* confdefs.h.  */
36239 _ACEOF
36240 cat confdefs.h >>conftest.$ac_ext
36241 cat >>conftest.$ac_ext <<_ACEOF
36242 /* end confdefs.h.  */
36243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36245 #define $ac_func innocuous_$ac_func
36246
36247 /* System header to define __stub macros and hopefully few prototypes,
36248     which can conflict with char $ac_func (); below.
36249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36250     <limits.h> exists even on freestanding compilers.  */
36251
36252 #ifdef __STDC__
36253 # include <limits.h>
36254 #else
36255 # include <assert.h>
36256 #endif
36257
36258 #undef $ac_func
36259
36260 /* Override any gcc2 internal prototype to avoid an error.  */
36261 #ifdef __cplusplus
36262 extern "C"
36263 {
36264 #endif
36265 /* We use char because int might match the return type of a gcc2
36266    builtin and then its argument prototype would still apply.  */
36267 char $ac_func ();
36268 /* The GNU C library defines this for functions which it implements
36269     to always fail with ENOSYS.  Some functions are actually named
36270     something starting with __ and the normal name is an alias.  */
36271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36272 choke me
36273 #else
36274 char (*f) () = $ac_func;
36275 #endif
36276 #ifdef __cplusplus
36277 }
36278 #endif
36279
36280 int
36281 main ()
36282 {
36283 return f != $ac_func;
36284   ;
36285   return 0;
36286 }
36287 _ACEOF
36288 rm -f conftest.$ac_objext conftest$ac_exeext
36289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36290   (eval $ac_link) 2>conftest.er1
36291   ac_status=$?
36292   grep -v '^ *+' conftest.er1 >conftest.err
36293   rm -f conftest.er1
36294   cat conftest.err >&5
36295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296   (exit $ac_status); } &&
36297          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36299   (eval $ac_try) 2>&5
36300   ac_status=$?
36301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302   (exit $ac_status); }; } &&
36303          { ac_try='test -s conftest$ac_exeext'
36304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36305   (eval $ac_try) 2>&5
36306   ac_status=$?
36307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308   (exit $ac_status); }; }; then
36309   eval "$as_ac_var=yes"
36310 else
36311   echo "$as_me: failed program was:" >&5
36312 sed 's/^/| /' conftest.$ac_ext >&5
36313
36314 eval "$as_ac_var=no"
36315 fi
36316 rm -f conftest.err conftest.$ac_objext \
36317       conftest$ac_exeext conftest.$ac_ext
36318 fi
36319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36321 if test `eval echo '${'$as_ac_var'}'` = yes; then
36322   cat >>confdefs.h <<_ACEOF
36323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36324 _ACEOF
36325
36326 fi
36327 done
36328
36329
36330     if test "$ac_cv_func_sigaction" = "no"; then
36331         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36332 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36333         wxUSE_ON_FATAL_EXCEPTION=no
36334     fi
36335
36336     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36337       echo "$as_me:$LINENO: checking for sa_handler type" >&5
36338 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36339 if test "${wx_cv_type_sa_handler+set}" = set; then
36340   echo $ECHO_N "(cached) $ECHO_C" >&6
36341 else
36342
36343         cat >conftest.$ac_ext <<_ACEOF
36344 /* confdefs.h.  */
36345 _ACEOF
36346 cat confdefs.h >>conftest.$ac_ext
36347 cat >>conftest.$ac_ext <<_ACEOF
36348 /* end confdefs.h.  */
36349 #include <signal.h>
36350 int
36351 main ()
36352 {
36353
36354                         extern void testSigHandler(int);
36355
36356                         struct sigaction sa;
36357                         sa.sa_handler = testSigHandler;
36358
36359   ;
36360   return 0;
36361 }
36362 _ACEOF
36363 rm -f conftest.$ac_objext
36364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36365   (eval $ac_compile) 2>conftest.er1
36366   ac_status=$?
36367   grep -v '^ *+' conftest.er1 >conftest.err
36368   rm -f conftest.er1
36369   cat conftest.err >&5
36370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371   (exit $ac_status); } &&
36372          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36374   (eval $ac_try) 2>&5
36375   ac_status=$?
36376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36377   (exit $ac_status); }; } &&
36378          { ac_try='test -s conftest.$ac_objext'
36379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36380   (eval $ac_try) 2>&5
36381   ac_status=$?
36382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383   (exit $ac_status); }; }; then
36384
36385                         wx_cv_type_sa_handler=int
36386
36387 else
36388   echo "$as_me: failed program was:" >&5
36389 sed 's/^/| /' conftest.$ac_ext >&5
36390
36391
36392                         wx_cv_type_sa_handler=void
36393
36394 fi
36395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36396
36397 fi
36398 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36399 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36400
36401       cat >>confdefs.h <<_ACEOF
36402 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36403 _ACEOF
36404
36405     fi
36406 fi
36407
36408 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36409     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36410 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36411 if test "${wx_cv_func_backtrace+set}" = set; then
36412   echo $ECHO_N "(cached) $ECHO_C" >&6
36413 else
36414
36415             cat >conftest.$ac_ext <<_ACEOF
36416 /* confdefs.h.  */
36417 _ACEOF
36418 cat confdefs.h >>conftest.$ac_ext
36419 cat >>conftest.$ac_ext <<_ACEOF
36420 /* end confdefs.h.  */
36421 #include <execinfo.h>
36422 int
36423 main ()
36424 {
36425
36426                     void *trace[1];
36427                     char **messages;
36428
36429                     backtrace(trace, 1);
36430                     messages = backtrace_symbols(trace, 1);
36431
36432   ;
36433   return 0;
36434 }
36435 _ACEOF
36436 rm -f conftest.$ac_objext
36437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36438   (eval $ac_compile) 2>conftest.er1
36439   ac_status=$?
36440   grep -v '^ *+' conftest.er1 >conftest.err
36441   rm -f conftest.er1
36442   cat conftest.err >&5
36443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444   (exit $ac_status); } &&
36445          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36447   (eval $ac_try) 2>&5
36448   ac_status=$?
36449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450   (exit $ac_status); }; } &&
36451          { ac_try='test -s conftest.$ac_objext'
36452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36453   (eval $ac_try) 2>&5
36454   ac_status=$?
36455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456   (exit $ac_status); }; }; then
36457   wx_cv_func_backtrace=yes
36458 else
36459   echo "$as_me: failed program was:" >&5
36460 sed 's/^/| /' conftest.$ac_ext >&5
36461
36462 wx_cv_func_backtrace=no
36463
36464 fi
36465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36466
36467
36468 fi
36469 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36470 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36471
36472
36473     if test "$wx_cv_func_backtrace" = "no"; then
36474         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36475 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36476         wxUSE_STACKWALKER=no
36477     else
36478         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36479 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36480 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36481   echo $ECHO_N "(cached) $ECHO_C" >&6
36482 else
36483
36484                 cat >conftest.$ac_ext <<_ACEOF
36485 /* confdefs.h.  */
36486 _ACEOF
36487 cat confdefs.h >>conftest.$ac_ext
36488 cat >>conftest.$ac_ext <<_ACEOF
36489 /* end confdefs.h.  */
36490 #include <cxxabi.h>
36491 int
36492 main ()
36493 {
36494
36495                         int rc;
36496                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36497
36498   ;
36499   return 0;
36500 }
36501 _ACEOF
36502 rm -f conftest.$ac_objext conftest$ac_exeext
36503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36504   (eval $ac_link) 2>conftest.er1
36505   ac_status=$?
36506   grep -v '^ *+' conftest.er1 >conftest.err
36507   rm -f conftest.er1
36508   cat conftest.err >&5
36509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36510   (exit $ac_status); } &&
36511          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36513   (eval $ac_try) 2>&5
36514   ac_status=$?
36515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36516   (exit $ac_status); }; } &&
36517          { ac_try='test -s conftest$ac_exeext'
36518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36519   (eval $ac_try) 2>&5
36520   ac_status=$?
36521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36522   (exit $ac_status); }; }; then
36523   wx_cv_func_cxa_demangle=yes
36524 else
36525   echo "$as_me: failed program was:" >&5
36526 sed 's/^/| /' conftest.$ac_ext >&5
36527
36528 wx_cv_func_cxa_demangle=no
36529
36530 fi
36531 rm -f conftest.err conftest.$ac_objext \
36532       conftest$ac_exeext conftest.$ac_ext
36533
36534
36535 fi
36536 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36537 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36538
36539         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36540             cat >>confdefs.h <<\_ACEOF
36541 #define HAVE_CXA_DEMANGLE 1
36542 _ACEOF
36543
36544         fi
36545     fi
36546 fi
36547
36548 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36549     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36550 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36551     wxUSE_STACKWALKER=no
36552 fi
36553
36554
36555
36556
36557 for ac_func in mkstemp mktemp
36558 do
36559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36560 echo "$as_me:$LINENO: checking for $ac_func" >&5
36561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36562 if eval "test \"\${$as_ac_var+set}\" = set"; then
36563   echo $ECHO_N "(cached) $ECHO_C" >&6
36564 else
36565   cat >conftest.$ac_ext <<_ACEOF
36566 /* confdefs.h.  */
36567 _ACEOF
36568 cat confdefs.h >>conftest.$ac_ext
36569 cat >>conftest.$ac_ext <<_ACEOF
36570 /* end confdefs.h.  */
36571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36573 #define $ac_func innocuous_$ac_func
36574
36575 /* System header to define __stub macros and hopefully few prototypes,
36576     which can conflict with char $ac_func (); below.
36577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36578     <limits.h> exists even on freestanding compilers.  */
36579
36580 #ifdef __STDC__
36581 # include <limits.h>
36582 #else
36583 # include <assert.h>
36584 #endif
36585
36586 #undef $ac_func
36587
36588 /* Override any gcc2 internal prototype to avoid an error.  */
36589 #ifdef __cplusplus
36590 extern "C"
36591 {
36592 #endif
36593 /* We use char because int might match the return type of a gcc2
36594    builtin and then its argument prototype would still apply.  */
36595 char $ac_func ();
36596 /* The GNU C library defines this for functions which it implements
36597     to always fail with ENOSYS.  Some functions are actually named
36598     something starting with __ and the normal name is an alias.  */
36599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36600 choke me
36601 #else
36602 char (*f) () = $ac_func;
36603 #endif
36604 #ifdef __cplusplus
36605 }
36606 #endif
36607
36608 int
36609 main ()
36610 {
36611 return f != $ac_func;
36612   ;
36613   return 0;
36614 }
36615 _ACEOF
36616 rm -f conftest.$ac_objext conftest$ac_exeext
36617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36618   (eval $ac_link) 2>conftest.er1
36619   ac_status=$?
36620   grep -v '^ *+' conftest.er1 >conftest.err
36621   rm -f conftest.er1
36622   cat conftest.err >&5
36623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624   (exit $ac_status); } &&
36625          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36627   (eval $ac_try) 2>&5
36628   ac_status=$?
36629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630   (exit $ac_status); }; } &&
36631          { ac_try='test -s conftest$ac_exeext'
36632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36633   (eval $ac_try) 2>&5
36634   ac_status=$?
36635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36636   (exit $ac_status); }; }; then
36637   eval "$as_ac_var=yes"
36638 else
36639   echo "$as_me: failed program was:" >&5
36640 sed 's/^/| /' conftest.$ac_ext >&5
36641
36642 eval "$as_ac_var=no"
36643 fi
36644 rm -f conftest.err conftest.$ac_objext \
36645       conftest$ac_exeext conftest.$ac_ext
36646 fi
36647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36649 if test `eval echo '${'$as_ac_var'}'` = yes; then
36650   cat >>confdefs.h <<_ACEOF
36651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36652 _ACEOF
36653  break
36654 fi
36655 done
36656
36657
36658 echo "$as_me:$LINENO: checking for statfs" >&5
36659 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36660 if test "${wx_cv_func_statfs+set}" = set; then
36661   echo $ECHO_N "(cached) $ECHO_C" >&6
36662 else
36663   cat >conftest.$ac_ext <<_ACEOF
36664 /* confdefs.h.  */
36665 _ACEOF
36666 cat confdefs.h >>conftest.$ac_ext
36667 cat >>conftest.$ac_ext <<_ACEOF
36668 /* end confdefs.h.  */
36669
36670              #if defined(__BSD__)
36671              #include <sys/param.h>
36672              #include <sys/mount.h>
36673              #else
36674              #include <sys/vfs.h>
36675              #endif
36676
36677 int
36678 main ()
36679 {
36680
36681              long l;
36682              struct statfs fs;
36683              statfs("/", &fs);
36684              l = fs.f_bsize;
36685              l += fs.f_blocks;
36686              l += fs.f_bavail;
36687
36688   ;
36689   return 0;
36690 }
36691 _ACEOF
36692 rm -f conftest.$ac_objext
36693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36694   (eval $ac_compile) 2>conftest.er1
36695   ac_status=$?
36696   grep -v '^ *+' conftest.er1 >conftest.err
36697   rm -f conftest.er1
36698   cat conftest.err >&5
36699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700   (exit $ac_status); } &&
36701          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36703   (eval $ac_try) 2>&5
36704   ac_status=$?
36705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706   (exit $ac_status); }; } &&
36707          { ac_try='test -s conftest.$ac_objext'
36708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36709   (eval $ac_try) 2>&5
36710   ac_status=$?
36711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36712   (exit $ac_status); }; }; then
36713   wx_cv_func_statfs=yes
36714 else
36715   echo "$as_me: failed program was:" >&5
36716 sed 's/^/| /' conftest.$ac_ext >&5
36717
36718 wx_cv_func_statfs=no
36719
36720 fi
36721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36722
36723 fi
36724 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36725 echo "${ECHO_T}$wx_cv_func_statfs" >&6
36726
36727 if test "$wx_cv_func_statfs" = "yes"; then
36728         echo "$as_me:$LINENO: checking for statfs declaration" >&5
36729 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36730 if test "${wx_cv_func_statfs_decl+set}" = set; then
36731   echo $ECHO_N "(cached) $ECHO_C" >&6
36732 else
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
36740                  #if defined(__BSD__)
36741                  #include <sys/param.h>
36742                  #include <sys/mount.h>
36743                  #else
36744                  #include <sys/vfs.h>
36745                  #endif
36746
36747 int
36748 main ()
36749 {
36750
36751                 struct statfs fs;
36752                 statfs("", &fs);
36753
36754   ;
36755   return 0;
36756 }
36757 _ACEOF
36758 rm -f conftest.$ac_objext
36759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36760   (eval $ac_compile) 2>conftest.er1
36761   ac_status=$?
36762   grep -v '^ *+' conftest.er1 >conftest.err
36763   rm -f conftest.er1
36764   cat conftest.err >&5
36765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766   (exit $ac_status); } &&
36767          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36769   (eval $ac_try) 2>&5
36770   ac_status=$?
36771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772   (exit $ac_status); }; } &&
36773          { ac_try='test -s conftest.$ac_objext'
36774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36775   (eval $ac_try) 2>&5
36776   ac_status=$?
36777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778   (exit $ac_status); }; }; then
36779   wx_cv_func_statfs_decl=yes
36780 else
36781   echo "$as_me: failed program was:" >&5
36782 sed 's/^/| /' conftest.$ac_ext >&5
36783
36784 wx_cv_func_statfs_decl=no
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_statfs_decl" >&5
36791 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
36792
36793     if test "$wx_cv_func_statfs_decl" = "yes"; then
36794         cat >>confdefs.h <<\_ACEOF
36795 #define HAVE_STATFS_DECL 1
36796 _ACEOF
36797
36798     fi
36799
36800     wx_cv_type_statvfs_t="struct statfs"
36801     cat >>confdefs.h <<\_ACEOF
36802 #define HAVE_STATFS 1
36803 _ACEOF
36804
36805 else
36806     echo "$as_me:$LINENO: checking for statvfs" >&5
36807 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36808 if test "${wx_cv_func_statvfs+set}" = set; then
36809   echo $ECHO_N "(cached) $ECHO_C" >&6
36810 else
36811   cat >conftest.$ac_ext <<_ACEOF
36812 /* confdefs.h.  */
36813 _ACEOF
36814 cat confdefs.h >>conftest.$ac_ext
36815 cat >>conftest.$ac_ext <<_ACEOF
36816 /* end confdefs.h.  */
36817
36818                 #include <stddef.h>
36819                 #include <sys/statvfs.h>
36820
36821 int
36822 main ()
36823 {
36824
36825                 statvfs("/", NULL);
36826
36827   ;
36828   return 0;
36829 }
36830 _ACEOF
36831 rm -f conftest.$ac_objext
36832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36833   (eval $ac_compile) 2>conftest.er1
36834   ac_status=$?
36835   grep -v '^ *+' conftest.er1 >conftest.err
36836   rm -f conftest.er1
36837   cat conftest.err >&5
36838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36839   (exit $ac_status); } &&
36840          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36842   (eval $ac_try) 2>&5
36843   ac_status=$?
36844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36845   (exit $ac_status); }; } &&
36846          { ac_try='test -s conftest.$ac_objext'
36847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36848   (eval $ac_try) 2>&5
36849   ac_status=$?
36850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36851   (exit $ac_status); }; }; then
36852   wx_cv_func_statvfs=yes
36853 else
36854   echo "$as_me: failed program was:" >&5
36855 sed 's/^/| /' conftest.$ac_ext >&5
36856
36857 wx_cv_func_statvfs=no
36858
36859 fi
36860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36861
36862 fi
36863 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36864 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36865
36866     if test "$wx_cv_func_statvfs" = "yes"; then
36867                                                                 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36868 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36869 if test "${wx_cv_type_statvfs_t+set}" = set; then
36870   echo $ECHO_N "(cached) $ECHO_C" >&6
36871 else
36872   cat >conftest.$ac_ext <<_ACEOF
36873 /* confdefs.h.  */
36874 _ACEOF
36875 cat confdefs.h >>conftest.$ac_ext
36876 cat >>conftest.$ac_ext <<_ACEOF
36877 /* end confdefs.h.  */
36878
36879                     #include <sys/statvfs.h>
36880
36881 int
36882 main ()
36883 {
36884
36885                     long l;
36886                     statvfs_t fs;
36887                     statvfs("/", &fs);
36888                     l = fs.f_bsize;
36889                     l += fs.f_blocks;
36890                     l += fs.f_bavail;
36891
36892   ;
36893   return 0;
36894 }
36895 _ACEOF
36896 rm -f conftest.$ac_objext
36897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36898   (eval $ac_compile) 2>conftest.er1
36899   ac_status=$?
36900   grep -v '^ *+' conftest.er1 >conftest.err
36901   rm -f conftest.er1
36902   cat conftest.err >&5
36903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904   (exit $ac_status); } &&
36905          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36907   (eval $ac_try) 2>&5
36908   ac_status=$?
36909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910   (exit $ac_status); }; } &&
36911          { ac_try='test -s conftest.$ac_objext'
36912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36913   (eval $ac_try) 2>&5
36914   ac_status=$?
36915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916   (exit $ac_status); }; }; then
36917   wx_cv_type_statvfs_t=statvfs_t
36918 else
36919   echo "$as_me: failed program was:" >&5
36920 sed 's/^/| /' conftest.$ac_ext >&5
36921
36922
36923                     cat >conftest.$ac_ext <<_ACEOF
36924 /* confdefs.h.  */
36925 _ACEOF
36926 cat confdefs.h >>conftest.$ac_ext
36927 cat >>conftest.$ac_ext <<_ACEOF
36928 /* end confdefs.h.  */
36929
36930                             #include <sys/statvfs.h>
36931
36932 int
36933 main ()
36934 {
36935
36936                             long l;
36937                             struct statvfs fs;
36938                             statvfs("/", &fs);
36939                             l = fs.f_bsize;
36940                             l += fs.f_blocks;
36941                             l += fs.f_bavail;
36942
36943   ;
36944   return 0;
36945 }
36946 _ACEOF
36947 rm -f conftest.$ac_objext
36948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36949   (eval $ac_compile) 2>conftest.er1
36950   ac_status=$?
36951   grep -v '^ *+' conftest.er1 >conftest.err
36952   rm -f conftest.er1
36953   cat conftest.err >&5
36954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955   (exit $ac_status); } &&
36956          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36958   (eval $ac_try) 2>&5
36959   ac_status=$?
36960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36961   (exit $ac_status); }; } &&
36962          { ac_try='test -s conftest.$ac_objext'
36963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36964   (eval $ac_try) 2>&5
36965   ac_status=$?
36966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36967   (exit $ac_status); }; }; then
36968   wx_cv_type_statvfs_t="struct statvfs"
36969 else
36970   echo "$as_me: failed program was:" >&5
36971 sed 's/^/| /' conftest.$ac_ext >&5
36972
36973 wx_cv_type_statvfs_t="unknown"
36974
36975 fi
36976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36977
36978
36979 fi
36980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36981
36982 fi
36983 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36984 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36985
36986         if test "$wx_cv_type_statvfs_t" != "unknown"; then
36987             cat >>confdefs.h <<\_ACEOF
36988 #define HAVE_STATVFS 1
36989 _ACEOF
36990
36991         fi
36992     else
36993                 wx_cv_type_statvfs_t="unknown"
36994     fi
36995 fi
36996
36997 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36998     cat >>confdefs.h <<_ACEOF
36999 #define WX_STATFS_T $wx_cv_type_statvfs_t
37000 _ACEOF
37001
37002 else
37003     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37004 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37005 fi
37006
37007 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37008
37009
37010 for ac_func in fcntl flock
37011 do
37012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37013 echo "$as_me:$LINENO: checking for $ac_func" >&5
37014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37015 if eval "test \"\${$as_ac_var+set}\" = set"; then
37016   echo $ECHO_N "(cached) $ECHO_C" >&6
37017 else
37018   cat >conftest.$ac_ext <<_ACEOF
37019 /* confdefs.h.  */
37020 _ACEOF
37021 cat confdefs.h >>conftest.$ac_ext
37022 cat >>conftest.$ac_ext <<_ACEOF
37023 /* end confdefs.h.  */
37024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37026 #define $ac_func innocuous_$ac_func
37027
37028 /* System header to define __stub macros and hopefully few prototypes,
37029     which can conflict with char $ac_func (); below.
37030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37031     <limits.h> exists even on freestanding compilers.  */
37032
37033 #ifdef __STDC__
37034 # include <limits.h>
37035 #else
37036 # include <assert.h>
37037 #endif
37038
37039 #undef $ac_func
37040
37041 /* Override any gcc2 internal prototype to avoid an error.  */
37042 #ifdef __cplusplus
37043 extern "C"
37044 {
37045 #endif
37046 /* We use char because int might match the return type of a gcc2
37047    builtin and then its argument prototype would still apply.  */
37048 char $ac_func ();
37049 /* The GNU C library defines this for functions which it implements
37050     to always fail with ENOSYS.  Some functions are actually named
37051     something starting with __ and the normal name is an alias.  */
37052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37053 choke me
37054 #else
37055 char (*f) () = $ac_func;
37056 #endif
37057 #ifdef __cplusplus
37058 }
37059 #endif
37060
37061 int
37062 main ()
37063 {
37064 return f != $ac_func;
37065   ;
37066   return 0;
37067 }
37068 _ACEOF
37069 rm -f conftest.$ac_objext conftest$ac_exeext
37070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37071   (eval $ac_link) 2>conftest.er1
37072   ac_status=$?
37073   grep -v '^ *+' conftest.er1 >conftest.err
37074   rm -f conftest.er1
37075   cat conftest.err >&5
37076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37077   (exit $ac_status); } &&
37078          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37080   (eval $ac_try) 2>&5
37081   ac_status=$?
37082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083   (exit $ac_status); }; } &&
37084          { ac_try='test -s conftest$ac_exeext'
37085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37086   (eval $ac_try) 2>&5
37087   ac_status=$?
37088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089   (exit $ac_status); }; }; then
37090   eval "$as_ac_var=yes"
37091 else
37092   echo "$as_me: failed program was:" >&5
37093 sed 's/^/| /' conftest.$ac_ext >&5
37094
37095 eval "$as_ac_var=no"
37096 fi
37097 rm -f conftest.err conftest.$ac_objext \
37098       conftest$ac_exeext conftest.$ac_ext
37099 fi
37100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37102 if test `eval echo '${'$as_ac_var'}'` = yes; then
37103   cat >>confdefs.h <<_ACEOF
37104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37105 _ACEOF
37106  break
37107 fi
37108 done
37109
37110
37111     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37112         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37113 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37114         wxUSE_SNGLINST_CHECKER=no
37115     fi
37116 fi
37117
37118
37119 for ac_func in timegm
37120 do
37121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37122 echo "$as_me:$LINENO: checking for $ac_func" >&5
37123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37124 if eval "test \"\${$as_ac_var+set}\" = set"; then
37125   echo $ECHO_N "(cached) $ECHO_C" >&6
37126 else
37127   cat >conftest.$ac_ext <<_ACEOF
37128 /* confdefs.h.  */
37129 _ACEOF
37130 cat confdefs.h >>conftest.$ac_ext
37131 cat >>conftest.$ac_ext <<_ACEOF
37132 /* end confdefs.h.  */
37133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37135 #define $ac_func innocuous_$ac_func
37136
37137 /* System header to define __stub macros and hopefully few prototypes,
37138     which can conflict with char $ac_func (); below.
37139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37140     <limits.h> exists even on freestanding compilers.  */
37141
37142 #ifdef __STDC__
37143 # include <limits.h>
37144 #else
37145 # include <assert.h>
37146 #endif
37147
37148 #undef $ac_func
37149
37150 /* Override any gcc2 internal prototype to avoid an error.  */
37151 #ifdef __cplusplus
37152 extern "C"
37153 {
37154 #endif
37155 /* We use char because int might match the return type of a gcc2
37156    builtin and then its argument prototype would still apply.  */
37157 char $ac_func ();
37158 /* The GNU C library defines this for functions which it implements
37159     to always fail with ENOSYS.  Some functions are actually named
37160     something starting with __ and the normal name is an alias.  */
37161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37162 choke me
37163 #else
37164 char (*f) () = $ac_func;
37165 #endif
37166 #ifdef __cplusplus
37167 }
37168 #endif
37169
37170 int
37171 main ()
37172 {
37173 return f != $ac_func;
37174   ;
37175   return 0;
37176 }
37177 _ACEOF
37178 rm -f conftest.$ac_objext conftest$ac_exeext
37179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37180   (eval $ac_link) 2>conftest.er1
37181   ac_status=$?
37182   grep -v '^ *+' conftest.er1 >conftest.err
37183   rm -f conftest.er1
37184   cat conftest.err >&5
37185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37186   (exit $ac_status); } &&
37187          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37189   (eval $ac_try) 2>&5
37190   ac_status=$?
37191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192   (exit $ac_status); }; } &&
37193          { ac_try='test -s conftest$ac_exeext'
37194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37195   (eval $ac_try) 2>&5
37196   ac_status=$?
37197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198   (exit $ac_status); }; }; then
37199   eval "$as_ac_var=yes"
37200 else
37201   echo "$as_me: failed program was:" >&5
37202 sed 's/^/| /' conftest.$ac_ext >&5
37203
37204 eval "$as_ac_var=no"
37205 fi
37206 rm -f conftest.err conftest.$ac_objext \
37207       conftest$ac_exeext conftest.$ac_ext
37208 fi
37209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37211 if test `eval echo '${'$as_ac_var'}'` = yes; then
37212   cat >>confdefs.h <<_ACEOF
37213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37214 _ACEOF
37215
37216 fi
37217 done
37218
37219
37220
37221
37222 for ac_func in putenv setenv
37223 do
37224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37225 echo "$as_me:$LINENO: checking for $ac_func" >&5
37226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37227 if eval "test \"\${$as_ac_var+set}\" = set"; then
37228   echo $ECHO_N "(cached) $ECHO_C" >&6
37229 else
37230   cat >conftest.$ac_ext <<_ACEOF
37231 /* confdefs.h.  */
37232 _ACEOF
37233 cat confdefs.h >>conftest.$ac_ext
37234 cat >>conftest.$ac_ext <<_ACEOF
37235 /* end confdefs.h.  */
37236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37238 #define $ac_func innocuous_$ac_func
37239
37240 /* System header to define __stub macros and hopefully few prototypes,
37241     which can conflict with char $ac_func (); below.
37242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37243     <limits.h> exists even on freestanding compilers.  */
37244
37245 #ifdef __STDC__
37246 # include <limits.h>
37247 #else
37248 # include <assert.h>
37249 #endif
37250
37251 #undef $ac_func
37252
37253 /* Override any gcc2 internal prototype to avoid an error.  */
37254 #ifdef __cplusplus
37255 extern "C"
37256 {
37257 #endif
37258 /* We use char because int might match the return type of a gcc2
37259    builtin and then its argument prototype would still apply.  */
37260 char $ac_func ();
37261 /* The GNU C library defines this for functions which it implements
37262     to always fail with ENOSYS.  Some functions are actually named
37263     something starting with __ and the normal name is an alias.  */
37264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37265 choke me
37266 #else
37267 char (*f) () = $ac_func;
37268 #endif
37269 #ifdef __cplusplus
37270 }
37271 #endif
37272
37273 int
37274 main ()
37275 {
37276 return f != $ac_func;
37277   ;
37278   return 0;
37279 }
37280 _ACEOF
37281 rm -f conftest.$ac_objext conftest$ac_exeext
37282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37283   (eval $ac_link) 2>conftest.er1
37284   ac_status=$?
37285   grep -v '^ *+' conftest.er1 >conftest.err
37286   rm -f conftest.er1
37287   cat conftest.err >&5
37288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289   (exit $ac_status); } &&
37290          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37292   (eval $ac_try) 2>&5
37293   ac_status=$?
37294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37295   (exit $ac_status); }; } &&
37296          { ac_try='test -s conftest$ac_exeext'
37297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37298   (eval $ac_try) 2>&5
37299   ac_status=$?
37300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301   (exit $ac_status); }; }; then
37302   eval "$as_ac_var=yes"
37303 else
37304   echo "$as_me: failed program was:" >&5
37305 sed 's/^/| /' conftest.$ac_ext >&5
37306
37307 eval "$as_ac_var=no"
37308 fi
37309 rm -f conftest.err conftest.$ac_objext \
37310       conftest$ac_exeext conftest.$ac_ext
37311 fi
37312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37314 if test `eval echo '${'$as_ac_var'}'` = yes; then
37315   cat >>confdefs.h <<_ACEOF
37316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37317 _ACEOF
37318  break
37319 fi
37320 done
37321
37322
37323 HAVE_SOME_SLEEP_FUNC=0
37324 if test "$USE_BEOS" = 1; then
37325             cat >>confdefs.h <<\_ACEOF
37326 #define HAVE_SLEEP 1
37327 _ACEOF
37328
37329     HAVE_SOME_SLEEP_FUNC=1
37330 fi
37331
37332 if test "$USE_DARWIN" = 1; then
37333             cat >>confdefs.h <<\_ACEOF
37334 #define HAVE_USLEEP 1
37335 _ACEOF
37336
37337     HAVE_SOME_SLEEP_FUNC=1
37338 fi
37339
37340 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37341         POSIX4_LINK=
37342
37343 for ac_func in nanosleep
37344 do
37345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37346 echo "$as_me:$LINENO: checking for $ac_func" >&5
37347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37348 if eval "test \"\${$as_ac_var+set}\" = set"; then
37349   echo $ECHO_N "(cached) $ECHO_C" >&6
37350 else
37351   cat >conftest.$ac_ext <<_ACEOF
37352 /* confdefs.h.  */
37353 _ACEOF
37354 cat confdefs.h >>conftest.$ac_ext
37355 cat >>conftest.$ac_ext <<_ACEOF
37356 /* end confdefs.h.  */
37357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37359 #define $ac_func innocuous_$ac_func
37360
37361 /* System header to define __stub macros and hopefully few prototypes,
37362     which can conflict with char $ac_func (); below.
37363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37364     <limits.h> exists even on freestanding compilers.  */
37365
37366 #ifdef __STDC__
37367 # include <limits.h>
37368 #else
37369 # include <assert.h>
37370 #endif
37371
37372 #undef $ac_func
37373
37374 /* Override any gcc2 internal prototype to avoid an error.  */
37375 #ifdef __cplusplus
37376 extern "C"
37377 {
37378 #endif
37379 /* We use char because int might match the return type of a gcc2
37380    builtin and then its argument prototype would still apply.  */
37381 char $ac_func ();
37382 /* The GNU C library defines this for functions which it implements
37383     to always fail with ENOSYS.  Some functions are actually named
37384     something starting with __ and the normal name is an alias.  */
37385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37386 choke me
37387 #else
37388 char (*f) () = $ac_func;
37389 #endif
37390 #ifdef __cplusplus
37391 }
37392 #endif
37393
37394 int
37395 main ()
37396 {
37397 return f != $ac_func;
37398   ;
37399   return 0;
37400 }
37401 _ACEOF
37402 rm -f conftest.$ac_objext conftest$ac_exeext
37403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37404   (eval $ac_link) 2>conftest.er1
37405   ac_status=$?
37406   grep -v '^ *+' conftest.er1 >conftest.err
37407   rm -f conftest.er1
37408   cat conftest.err >&5
37409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410   (exit $ac_status); } &&
37411          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37413   (eval $ac_try) 2>&5
37414   ac_status=$?
37415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416   (exit $ac_status); }; } &&
37417          { ac_try='test -s conftest$ac_exeext'
37418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37419   (eval $ac_try) 2>&5
37420   ac_status=$?
37421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37422   (exit $ac_status); }; }; then
37423   eval "$as_ac_var=yes"
37424 else
37425   echo "$as_me: failed program was:" >&5
37426 sed 's/^/| /' conftest.$ac_ext >&5
37427
37428 eval "$as_ac_var=no"
37429 fi
37430 rm -f conftest.err conftest.$ac_objext \
37431       conftest$ac_exeext conftest.$ac_ext
37432 fi
37433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37435 if test `eval echo '${'$as_ac_var'}'` = yes; then
37436   cat >>confdefs.h <<_ACEOF
37437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37438 _ACEOF
37439  cat >>confdefs.h <<\_ACEOF
37440 #define HAVE_NANOSLEEP 1
37441 _ACEOF
37442
37443 else
37444
37445             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37446 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37447 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37448   echo $ECHO_N "(cached) $ECHO_C" >&6
37449 else
37450   ac_check_lib_save_LIBS=$LIBS
37451 LIBS="-lposix4  $LIBS"
37452 cat >conftest.$ac_ext <<_ACEOF
37453 /* confdefs.h.  */
37454 _ACEOF
37455 cat confdefs.h >>conftest.$ac_ext
37456 cat >>conftest.$ac_ext <<_ACEOF
37457 /* end confdefs.h.  */
37458
37459 /* Override any gcc2 internal prototype to avoid an error.  */
37460 #ifdef __cplusplus
37461 extern "C"
37462 #endif
37463 /* We use char because int might match the return type of a gcc2
37464    builtin and then its argument prototype would still apply.  */
37465 char nanosleep ();
37466 int
37467 main ()
37468 {
37469 nanosleep ();
37470   ;
37471   return 0;
37472 }
37473 _ACEOF
37474 rm -f conftest.$ac_objext conftest$ac_exeext
37475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37476   (eval $ac_link) 2>conftest.er1
37477   ac_status=$?
37478   grep -v '^ *+' conftest.er1 >conftest.err
37479   rm -f conftest.er1
37480   cat conftest.err >&5
37481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482   (exit $ac_status); } &&
37483          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37485   (eval $ac_try) 2>&5
37486   ac_status=$?
37487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488   (exit $ac_status); }; } &&
37489          { ac_try='test -s conftest$ac_exeext'
37490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37491   (eval $ac_try) 2>&5
37492   ac_status=$?
37493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494   (exit $ac_status); }; }; then
37495   ac_cv_lib_posix4_nanosleep=yes
37496 else
37497   echo "$as_me: failed program was:" >&5
37498 sed 's/^/| /' conftest.$ac_ext >&5
37499
37500 ac_cv_lib_posix4_nanosleep=no
37501 fi
37502 rm -f conftest.err conftest.$ac_objext \
37503       conftest$ac_exeext conftest.$ac_ext
37504 LIBS=$ac_check_lib_save_LIBS
37505 fi
37506 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37507 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37508 if test $ac_cv_lib_posix4_nanosleep = yes; then
37509
37510                     cat >>confdefs.h <<\_ACEOF
37511 #define HAVE_NANOSLEEP 1
37512 _ACEOF
37513
37514                     POSIX4_LINK=" -lposix4"
37515
37516 else
37517
37518
37519 for ac_func in usleep
37520 do
37521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37522 echo "$as_me:$LINENO: checking for $ac_func" >&5
37523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37524 if eval "test \"\${$as_ac_var+set}\" = set"; then
37525   echo $ECHO_N "(cached) $ECHO_C" >&6
37526 else
37527   cat >conftest.$ac_ext <<_ACEOF
37528 /* confdefs.h.  */
37529 _ACEOF
37530 cat confdefs.h >>conftest.$ac_ext
37531 cat >>conftest.$ac_ext <<_ACEOF
37532 /* end confdefs.h.  */
37533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37535 #define $ac_func innocuous_$ac_func
37536
37537 /* System header to define __stub macros and hopefully few prototypes,
37538     which can conflict with char $ac_func (); below.
37539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37540     <limits.h> exists even on freestanding compilers.  */
37541
37542 #ifdef __STDC__
37543 # include <limits.h>
37544 #else
37545 # include <assert.h>
37546 #endif
37547
37548 #undef $ac_func
37549
37550 /* Override any gcc2 internal prototype to avoid an error.  */
37551 #ifdef __cplusplus
37552 extern "C"
37553 {
37554 #endif
37555 /* We use char because int might match the return type of a gcc2
37556    builtin and then its argument prototype would still apply.  */
37557 char $ac_func ();
37558 /* The GNU C library defines this for functions which it implements
37559     to always fail with ENOSYS.  Some functions are actually named
37560     something starting with __ and the normal name is an alias.  */
37561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37562 choke me
37563 #else
37564 char (*f) () = $ac_func;
37565 #endif
37566 #ifdef __cplusplus
37567 }
37568 #endif
37569
37570 int
37571 main ()
37572 {
37573 return f != $ac_func;
37574   ;
37575   return 0;
37576 }
37577 _ACEOF
37578 rm -f conftest.$ac_objext conftest$ac_exeext
37579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37580   (eval $ac_link) 2>conftest.er1
37581   ac_status=$?
37582   grep -v '^ *+' conftest.er1 >conftest.err
37583   rm -f conftest.er1
37584   cat conftest.err >&5
37585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586   (exit $ac_status); } &&
37587          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37589   (eval $ac_try) 2>&5
37590   ac_status=$?
37591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592   (exit $ac_status); }; } &&
37593          { ac_try='test -s conftest$ac_exeext'
37594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595   (eval $ac_try) 2>&5
37596   ac_status=$?
37597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598   (exit $ac_status); }; }; then
37599   eval "$as_ac_var=yes"
37600 else
37601   echo "$as_me: failed program was:" >&5
37602 sed 's/^/| /' conftest.$ac_ext >&5
37603
37604 eval "$as_ac_var=no"
37605 fi
37606 rm -f conftest.err conftest.$ac_objext \
37607       conftest$ac_exeext conftest.$ac_ext
37608 fi
37609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37611 if test `eval echo '${'$as_ac_var'}'` = yes; then
37612   cat >>confdefs.h <<_ACEOF
37613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37614 _ACEOF
37615  cat >>confdefs.h <<\_ACEOF
37616 #define HAVE_USLEEP 1
37617 _ACEOF
37618
37619 else
37620   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37621 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37622
37623 fi
37624 done
37625
37626
37627
37628 fi
37629
37630
37631
37632 fi
37633 done
37634
37635 fi
37636
37637
37638
37639 for ac_func in uname gethostname
37640 do
37641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37642 echo "$as_me:$LINENO: checking for $ac_func" >&5
37643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37644 if eval "test \"\${$as_ac_var+set}\" = set"; then
37645   echo $ECHO_N "(cached) $ECHO_C" >&6
37646 else
37647   cat >conftest.$ac_ext <<_ACEOF
37648 /* confdefs.h.  */
37649 _ACEOF
37650 cat confdefs.h >>conftest.$ac_ext
37651 cat >>conftest.$ac_ext <<_ACEOF
37652 /* end confdefs.h.  */
37653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37655 #define $ac_func innocuous_$ac_func
37656
37657 /* System header to define __stub macros and hopefully few prototypes,
37658     which can conflict with char $ac_func (); below.
37659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37660     <limits.h> exists even on freestanding compilers.  */
37661
37662 #ifdef __STDC__
37663 # include <limits.h>
37664 #else
37665 # include <assert.h>
37666 #endif
37667
37668 #undef $ac_func
37669
37670 /* Override any gcc2 internal prototype to avoid an error.  */
37671 #ifdef __cplusplus
37672 extern "C"
37673 {
37674 #endif
37675 /* We use char because int might match the return type of a gcc2
37676    builtin and then its argument prototype would still apply.  */
37677 char $ac_func ();
37678 /* The GNU C library defines this for functions which it implements
37679     to always fail with ENOSYS.  Some functions are actually named
37680     something starting with __ and the normal name is an alias.  */
37681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37682 choke me
37683 #else
37684 char (*f) () = $ac_func;
37685 #endif
37686 #ifdef __cplusplus
37687 }
37688 #endif
37689
37690 int
37691 main ()
37692 {
37693 return f != $ac_func;
37694   ;
37695   return 0;
37696 }
37697 _ACEOF
37698 rm -f conftest.$ac_objext conftest$ac_exeext
37699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37700   (eval $ac_link) 2>conftest.er1
37701   ac_status=$?
37702   grep -v '^ *+' conftest.er1 >conftest.err
37703   rm -f conftest.er1
37704   cat conftest.err >&5
37705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706   (exit $ac_status); } &&
37707          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37709   (eval $ac_try) 2>&5
37710   ac_status=$?
37711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712   (exit $ac_status); }; } &&
37713          { ac_try='test -s conftest$ac_exeext'
37714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37715   (eval $ac_try) 2>&5
37716   ac_status=$?
37717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718   (exit $ac_status); }; }; then
37719   eval "$as_ac_var=yes"
37720 else
37721   echo "$as_me: failed program was:" >&5
37722 sed 's/^/| /' conftest.$ac_ext >&5
37723
37724 eval "$as_ac_var=no"
37725 fi
37726 rm -f conftest.err conftest.$ac_objext \
37727       conftest$ac_exeext conftest.$ac_ext
37728 fi
37729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37731 if test `eval echo '${'$as_ac_var'}'` = yes; then
37732   cat >>confdefs.h <<_ACEOF
37733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37734 _ACEOF
37735  break
37736 fi
37737 done
37738
37739
37740
37741   for wx_func in strtok_r
37742   do
37743     echo "$as_me:$LINENO: checking for $wx_func" >&5
37744 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37745 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37746   echo $ECHO_N "(cached) $ECHO_C" >&6
37747 else
37748
37749         cat >conftest.$ac_ext <<_ACEOF
37750
37751             /* confdefs.h.  */
37752 _ACEOF
37753 cat confdefs.h >>conftest.$ac_ext
37754 cat >>conftest.$ac_ext <<_ACEOF
37755 /* end confdefs.h.  */
37756
37757                 #define _REENTRANT
37758                 $ac_includes_default
37759
37760 int
37761 main ()
37762 {
37763
37764                 #ifndef $wx_func
37765                   &$wx_func;
37766                 #endif
37767
37768
37769   ;
37770   return 0;
37771 }
37772
37773 _ACEOF
37774 rm -f conftest.$ac_objext conftest$ac_exeext
37775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37776   (eval $ac_link) 2>conftest.er1
37777   ac_status=$?
37778   grep -v '^ *+' conftest.er1 >conftest.err
37779   rm -f conftest.er1
37780   cat conftest.err >&5
37781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782   (exit $ac_status); } &&
37783          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37785   (eval $ac_try) 2>&5
37786   ac_status=$?
37787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788   (exit $ac_status); }; } &&
37789          { ac_try='test -s conftest$ac_exeext'
37790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37791   (eval $ac_try) 2>&5
37792   ac_status=$?
37793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37794   (exit $ac_status); }; }; then
37795   eval wx_cv_func_$wx_func=yes
37796 else
37797   echo "$as_me: failed program was:" >&5
37798 sed 's/^/| /' conftest.$ac_ext >&5
37799
37800 eval wx_cv_func_$wx_func=no
37801 fi
37802 rm -f conftest.err conftest.$ac_objext \
37803       conftest$ac_exeext conftest.$ac_ext
37804
37805 fi
37806 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37807 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37808
37809     if eval test \$wx_cv_func_$wx_func = yes
37810     then
37811       cat >>confdefs.h <<_ACEOF
37812 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37813 _ACEOF
37814
37815
37816     else
37817       :
37818
37819     fi
37820   done
37821
37822
37823 INET_LINK=
37824
37825 for ac_func in inet_addr
37826 do
37827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37828 echo "$as_me:$LINENO: checking for $ac_func" >&5
37829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37830 if eval "test \"\${$as_ac_var+set}\" = set"; then
37831   echo $ECHO_N "(cached) $ECHO_C" >&6
37832 else
37833   cat >conftest.$ac_ext <<_ACEOF
37834 /* confdefs.h.  */
37835 _ACEOF
37836 cat confdefs.h >>conftest.$ac_ext
37837 cat >>conftest.$ac_ext <<_ACEOF
37838 /* end confdefs.h.  */
37839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37841 #define $ac_func innocuous_$ac_func
37842
37843 /* System header to define __stub macros and hopefully few prototypes,
37844     which can conflict with char $ac_func (); below.
37845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37846     <limits.h> exists even on freestanding compilers.  */
37847
37848 #ifdef __STDC__
37849 # include <limits.h>
37850 #else
37851 # include <assert.h>
37852 #endif
37853
37854 #undef $ac_func
37855
37856 /* Override any gcc2 internal prototype to avoid an error.  */
37857 #ifdef __cplusplus
37858 extern "C"
37859 {
37860 #endif
37861 /* We use char because int might match the return type of a gcc2
37862    builtin and then its argument prototype would still apply.  */
37863 char $ac_func ();
37864 /* The GNU C library defines this for functions which it implements
37865     to always fail with ENOSYS.  Some functions are actually named
37866     something starting with __ and the normal name is an alias.  */
37867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37868 choke me
37869 #else
37870 char (*f) () = $ac_func;
37871 #endif
37872 #ifdef __cplusplus
37873 }
37874 #endif
37875
37876 int
37877 main ()
37878 {
37879 return f != $ac_func;
37880   ;
37881   return 0;
37882 }
37883 _ACEOF
37884 rm -f conftest.$ac_objext conftest$ac_exeext
37885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37886   (eval $ac_link) 2>conftest.er1
37887   ac_status=$?
37888   grep -v '^ *+' conftest.er1 >conftest.err
37889   rm -f conftest.er1
37890   cat conftest.err >&5
37891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37892   (exit $ac_status); } &&
37893          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37895   (eval $ac_try) 2>&5
37896   ac_status=$?
37897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37898   (exit $ac_status); }; } &&
37899          { ac_try='test -s conftest$ac_exeext'
37900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37901   (eval $ac_try) 2>&5
37902   ac_status=$?
37903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37904   (exit $ac_status); }; }; then
37905   eval "$as_ac_var=yes"
37906 else
37907   echo "$as_me: failed program was:" >&5
37908 sed 's/^/| /' conftest.$ac_ext >&5
37909
37910 eval "$as_ac_var=no"
37911 fi
37912 rm -f conftest.err conftest.$ac_objext \
37913       conftest$ac_exeext conftest.$ac_ext
37914 fi
37915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37917 if test `eval echo '${'$as_ac_var'}'` = yes; then
37918   cat >>confdefs.h <<_ACEOF
37919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37920 _ACEOF
37921  cat >>confdefs.h <<\_ACEOF
37922 #define HAVE_INET_ADDR 1
37923 _ACEOF
37924
37925 else
37926
37927         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37928 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37929 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37930   echo $ECHO_N "(cached) $ECHO_C" >&6
37931 else
37932   ac_check_lib_save_LIBS=$LIBS
37933 LIBS="-lnsl  $LIBS"
37934 cat >conftest.$ac_ext <<_ACEOF
37935 /* confdefs.h.  */
37936 _ACEOF
37937 cat confdefs.h >>conftest.$ac_ext
37938 cat >>conftest.$ac_ext <<_ACEOF
37939 /* end confdefs.h.  */
37940
37941 /* Override any gcc2 internal prototype to avoid an error.  */
37942 #ifdef __cplusplus
37943 extern "C"
37944 #endif
37945 /* We use char because int might match the return type of a gcc2
37946    builtin and then its argument prototype would still apply.  */
37947 char inet_addr ();
37948 int
37949 main ()
37950 {
37951 inet_addr ();
37952   ;
37953   return 0;
37954 }
37955 _ACEOF
37956 rm -f conftest.$ac_objext conftest$ac_exeext
37957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37958   (eval $ac_link) 2>conftest.er1
37959   ac_status=$?
37960   grep -v '^ *+' conftest.er1 >conftest.err
37961   rm -f conftest.er1
37962   cat conftest.err >&5
37963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964   (exit $ac_status); } &&
37965          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37967   (eval $ac_try) 2>&5
37968   ac_status=$?
37969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970   (exit $ac_status); }; } &&
37971          { ac_try='test -s conftest$ac_exeext'
37972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973   (eval $ac_try) 2>&5
37974   ac_status=$?
37975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976   (exit $ac_status); }; }; then
37977   ac_cv_lib_nsl_inet_addr=yes
37978 else
37979   echo "$as_me: failed program was:" >&5
37980 sed 's/^/| /' conftest.$ac_ext >&5
37981
37982 ac_cv_lib_nsl_inet_addr=no
37983 fi
37984 rm -f conftest.err conftest.$ac_objext \
37985       conftest$ac_exeext conftest.$ac_ext
37986 LIBS=$ac_check_lib_save_LIBS
37987 fi
37988 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37989 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37990 if test $ac_cv_lib_nsl_inet_addr = yes; then
37991   INET_LINK="nsl"
37992 else
37993
37994                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37995 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37996 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37997   echo $ECHO_N "(cached) $ECHO_C" >&6
37998 else
37999   ac_check_lib_save_LIBS=$LIBS
38000 LIBS="-lresolv  $LIBS"
38001 cat >conftest.$ac_ext <<_ACEOF
38002 /* confdefs.h.  */
38003 _ACEOF
38004 cat confdefs.h >>conftest.$ac_ext
38005 cat >>conftest.$ac_ext <<_ACEOF
38006 /* end confdefs.h.  */
38007
38008 /* Override any gcc2 internal prototype to avoid an error.  */
38009 #ifdef __cplusplus
38010 extern "C"
38011 #endif
38012 /* We use char because int might match the return type of a gcc2
38013    builtin and then its argument prototype would still apply.  */
38014 char inet_addr ();
38015 int
38016 main ()
38017 {
38018 inet_addr ();
38019   ;
38020   return 0;
38021 }
38022 _ACEOF
38023 rm -f conftest.$ac_objext conftest$ac_exeext
38024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38025   (eval $ac_link) 2>conftest.er1
38026   ac_status=$?
38027   grep -v '^ *+' conftest.er1 >conftest.err
38028   rm -f conftest.er1
38029   cat conftest.err >&5
38030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38031   (exit $ac_status); } &&
38032          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38034   (eval $ac_try) 2>&5
38035   ac_status=$?
38036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037   (exit $ac_status); }; } &&
38038          { ac_try='test -s conftest$ac_exeext'
38039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38040   (eval $ac_try) 2>&5
38041   ac_status=$?
38042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043   (exit $ac_status); }; }; then
38044   ac_cv_lib_resolv_inet_addr=yes
38045 else
38046   echo "$as_me: failed program was:" >&5
38047 sed 's/^/| /' conftest.$ac_ext >&5
38048
38049 ac_cv_lib_resolv_inet_addr=no
38050 fi
38051 rm -f conftest.err conftest.$ac_objext \
38052       conftest$ac_exeext conftest.$ac_ext
38053 LIBS=$ac_check_lib_save_LIBS
38054 fi
38055 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38056 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38057 if test $ac_cv_lib_resolv_inet_addr = yes; then
38058   INET_LINK="resolv"
38059 else
38060
38061                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38062 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38063 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38064   echo $ECHO_N "(cached) $ECHO_C" >&6
38065 else
38066   ac_check_lib_save_LIBS=$LIBS
38067 LIBS="-lsocket  $LIBS"
38068 cat >conftest.$ac_ext <<_ACEOF
38069 /* confdefs.h.  */
38070 _ACEOF
38071 cat confdefs.h >>conftest.$ac_ext
38072 cat >>conftest.$ac_ext <<_ACEOF
38073 /* end confdefs.h.  */
38074
38075 /* Override any gcc2 internal prototype to avoid an error.  */
38076 #ifdef __cplusplus
38077 extern "C"
38078 #endif
38079 /* We use char because int might match the return type of a gcc2
38080    builtin and then its argument prototype would still apply.  */
38081 char inet_addr ();
38082 int
38083 main ()
38084 {
38085 inet_addr ();
38086   ;
38087   return 0;
38088 }
38089 _ACEOF
38090 rm -f conftest.$ac_objext conftest$ac_exeext
38091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38092   (eval $ac_link) 2>conftest.er1
38093   ac_status=$?
38094   grep -v '^ *+' conftest.er1 >conftest.err
38095   rm -f conftest.er1
38096   cat conftest.err >&5
38097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098   (exit $ac_status); } &&
38099          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38101   (eval $ac_try) 2>&5
38102   ac_status=$?
38103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38104   (exit $ac_status); }; } &&
38105          { ac_try='test -s conftest$ac_exeext'
38106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38107   (eval $ac_try) 2>&5
38108   ac_status=$?
38109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110   (exit $ac_status); }; }; then
38111   ac_cv_lib_socket_inet_addr=yes
38112 else
38113   echo "$as_me: failed program was:" >&5
38114 sed 's/^/| /' conftest.$ac_ext >&5
38115
38116 ac_cv_lib_socket_inet_addr=no
38117 fi
38118 rm -f conftest.err conftest.$ac_objext \
38119       conftest$ac_exeext conftest.$ac_ext
38120 LIBS=$ac_check_lib_save_LIBS
38121 fi
38122 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38123 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38124 if test $ac_cv_lib_socket_inet_addr = yes; then
38125   INET_LINK="socket"
38126
38127 fi
38128
38129
38130
38131 fi
38132
38133
38134
38135 fi
38136
38137
38138
38139 fi
38140 done
38141
38142
38143
38144 for ac_func in inet_aton
38145 do
38146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38147 echo "$as_me:$LINENO: checking for $ac_func" >&5
38148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38149 if eval "test \"\${$as_ac_var+set}\" = set"; then
38150   echo $ECHO_N "(cached) $ECHO_C" >&6
38151 else
38152   cat >conftest.$ac_ext <<_ACEOF
38153 /* confdefs.h.  */
38154 _ACEOF
38155 cat confdefs.h >>conftest.$ac_ext
38156 cat >>conftest.$ac_ext <<_ACEOF
38157 /* end confdefs.h.  */
38158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38160 #define $ac_func innocuous_$ac_func
38161
38162 /* System header to define __stub macros and hopefully few prototypes,
38163     which can conflict with char $ac_func (); below.
38164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38165     <limits.h> exists even on freestanding compilers.  */
38166
38167 #ifdef __STDC__
38168 # include <limits.h>
38169 #else
38170 # include <assert.h>
38171 #endif
38172
38173 #undef $ac_func
38174
38175 /* Override any gcc2 internal prototype to avoid an error.  */
38176 #ifdef __cplusplus
38177 extern "C"
38178 {
38179 #endif
38180 /* We use char because int might match the return type of a gcc2
38181    builtin and then its argument prototype would still apply.  */
38182 char $ac_func ();
38183 /* The GNU C library defines this for functions which it implements
38184     to always fail with ENOSYS.  Some functions are actually named
38185     something starting with __ and the normal name is an alias.  */
38186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38187 choke me
38188 #else
38189 char (*f) () = $ac_func;
38190 #endif
38191 #ifdef __cplusplus
38192 }
38193 #endif
38194
38195 int
38196 main ()
38197 {
38198 return f != $ac_func;
38199   ;
38200   return 0;
38201 }
38202 _ACEOF
38203 rm -f conftest.$ac_objext conftest$ac_exeext
38204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38205   (eval $ac_link) 2>conftest.er1
38206   ac_status=$?
38207   grep -v '^ *+' conftest.er1 >conftest.err
38208   rm -f conftest.er1
38209   cat conftest.err >&5
38210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211   (exit $ac_status); } &&
38212          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38214   (eval $ac_try) 2>&5
38215   ac_status=$?
38216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217   (exit $ac_status); }; } &&
38218          { ac_try='test -s conftest$ac_exeext'
38219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38220   (eval $ac_try) 2>&5
38221   ac_status=$?
38222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38223   (exit $ac_status); }; }; then
38224   eval "$as_ac_var=yes"
38225 else
38226   echo "$as_me: failed program was:" >&5
38227 sed 's/^/| /' conftest.$ac_ext >&5
38228
38229 eval "$as_ac_var=no"
38230 fi
38231 rm -f conftest.err conftest.$ac_objext \
38232       conftest$ac_exeext conftest.$ac_ext
38233 fi
38234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38236 if test `eval echo '${'$as_ac_var'}'` = yes; then
38237   cat >>confdefs.h <<_ACEOF
38238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38239 _ACEOF
38240  cat >>confdefs.h <<\_ACEOF
38241 #define HAVE_INET_ATON 1
38242 _ACEOF
38243
38244 else
38245
38246                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38247 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38248 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38249 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38250   echo $ECHO_N "(cached) $ECHO_C" >&6
38251 else
38252   ac_check_lib_save_LIBS=$LIBS
38253 LIBS="-l$INET_LINK  $LIBS"
38254 cat >conftest.$ac_ext <<_ACEOF
38255 /* confdefs.h.  */
38256 _ACEOF
38257 cat confdefs.h >>conftest.$ac_ext
38258 cat >>conftest.$ac_ext <<_ACEOF
38259 /* end confdefs.h.  */
38260
38261 /* Override any gcc2 internal prototype to avoid an error.  */
38262 #ifdef __cplusplus
38263 extern "C"
38264 #endif
38265 /* We use char because int might match the return type of a gcc2
38266    builtin and then its argument prototype would still apply.  */
38267 char inet_aton ();
38268 int
38269 main ()
38270 {
38271 inet_aton ();
38272   ;
38273   return 0;
38274 }
38275 _ACEOF
38276 rm -f conftest.$ac_objext conftest$ac_exeext
38277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38278   (eval $ac_link) 2>conftest.er1
38279   ac_status=$?
38280   grep -v '^ *+' conftest.er1 >conftest.err
38281   rm -f conftest.er1
38282   cat conftest.err >&5
38283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38284   (exit $ac_status); } &&
38285          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38287   (eval $ac_try) 2>&5
38288   ac_status=$?
38289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38290   (exit $ac_status); }; } &&
38291          { ac_try='test -s conftest$ac_exeext'
38292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38293   (eval $ac_try) 2>&5
38294   ac_status=$?
38295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296   (exit $ac_status); }; }; then
38297   eval "$as_ac_Lib=yes"
38298 else
38299   echo "$as_me: failed program was:" >&5
38300 sed 's/^/| /' conftest.$ac_ext >&5
38301
38302 eval "$as_ac_Lib=no"
38303 fi
38304 rm -f conftest.err conftest.$ac_objext \
38305       conftest$ac_exeext conftest.$ac_ext
38306 LIBS=$ac_check_lib_save_LIBS
38307 fi
38308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38309 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38310 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38311   cat >>confdefs.h <<\_ACEOF
38312 #define HAVE_INET_ATON 1
38313 _ACEOF
38314
38315 fi
38316
38317
38318 fi
38319 done
38320
38321
38322 if test "x$INET_LINK" != "x"; then
38323     cat >>confdefs.h <<\_ACEOF
38324 #define HAVE_INET_ADDR 1
38325 _ACEOF
38326
38327     INET_LINK=" -l$INET_LINK"
38328 fi
38329
38330 fi
38331
38332
38333
38334 EXTRALIBS_ESD=
38335 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38336 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38337 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38338   echo $ECHO_N "(cached) $ECHO_C" >&6
38339 else
38340   ac_check_lib_save_LIBS=$LIBS
38341 LIBS="-lesd  $LIBS"
38342 cat >conftest.$ac_ext <<_ACEOF
38343 /* confdefs.h.  */
38344 _ACEOF
38345 cat confdefs.h >>conftest.$ac_ext
38346 cat >>conftest.$ac_ext <<_ACEOF
38347 /* end confdefs.h.  */
38348
38349 /* Override any gcc2 internal prototype to avoid an error.  */
38350 #ifdef __cplusplus
38351 extern "C"
38352 #endif
38353 /* We use char because int might match the return type of a gcc2
38354    builtin and then its argument prototype would still apply.  */
38355 char esd_close ();
38356 int
38357 main ()
38358 {
38359 esd_close ();
38360   ;
38361   return 0;
38362 }
38363 _ACEOF
38364 rm -f conftest.$ac_objext conftest$ac_exeext
38365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38366   (eval $ac_link) 2>conftest.er1
38367   ac_status=$?
38368   grep -v '^ *+' conftest.er1 >conftest.err
38369   rm -f conftest.er1
38370   cat conftest.err >&5
38371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372   (exit $ac_status); } &&
38373          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38375   (eval $ac_try) 2>&5
38376   ac_status=$?
38377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378   (exit $ac_status); }; } &&
38379          { ac_try='test -s conftest$ac_exeext'
38380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38381   (eval $ac_try) 2>&5
38382   ac_status=$?
38383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384   (exit $ac_status); }; }; then
38385   ac_cv_lib_esd_esd_close=yes
38386 else
38387   echo "$as_me: failed program was:" >&5
38388 sed 's/^/| /' conftest.$ac_ext >&5
38389
38390 ac_cv_lib_esd_esd_close=no
38391 fi
38392 rm -f conftest.err conftest.$ac_objext \
38393       conftest$ac_exeext conftest.$ac_ext
38394 LIBS=$ac_check_lib_save_LIBS
38395 fi
38396 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38397 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38398 if test $ac_cv_lib_esd_esd_close = yes; then
38399
38400
38401 for ac_header in esd.h
38402 do
38403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38405   echo "$as_me:$LINENO: checking for $ac_header" >&5
38406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38408   echo $ECHO_N "(cached) $ECHO_C" >&6
38409 fi
38410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38412 else
38413   # Is the header compilable?
38414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38416 cat >conftest.$ac_ext <<_ACEOF
38417 /* confdefs.h.  */
38418 _ACEOF
38419 cat confdefs.h >>conftest.$ac_ext
38420 cat >>conftest.$ac_ext <<_ACEOF
38421 /* end confdefs.h.  */
38422 $ac_includes_default
38423 #include <$ac_header>
38424 _ACEOF
38425 rm -f conftest.$ac_objext
38426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38427   (eval $ac_compile) 2>conftest.er1
38428   ac_status=$?
38429   grep -v '^ *+' conftest.er1 >conftest.err
38430   rm -f conftest.er1
38431   cat conftest.err >&5
38432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433   (exit $ac_status); } &&
38434          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38436   (eval $ac_try) 2>&5
38437   ac_status=$?
38438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38439   (exit $ac_status); }; } &&
38440          { ac_try='test -s conftest.$ac_objext'
38441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38442   (eval $ac_try) 2>&5
38443   ac_status=$?
38444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38445   (exit $ac_status); }; }; then
38446   ac_header_compiler=yes
38447 else
38448   echo "$as_me: failed program was:" >&5
38449 sed 's/^/| /' conftest.$ac_ext >&5
38450
38451 ac_header_compiler=no
38452 fi
38453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38455 echo "${ECHO_T}$ac_header_compiler" >&6
38456
38457 # Is the header present?
38458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38460 cat >conftest.$ac_ext <<_ACEOF
38461 /* confdefs.h.  */
38462 _ACEOF
38463 cat confdefs.h >>conftest.$ac_ext
38464 cat >>conftest.$ac_ext <<_ACEOF
38465 /* end confdefs.h.  */
38466 #include <$ac_header>
38467 _ACEOF
38468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38470   ac_status=$?
38471   grep -v '^ *+' conftest.er1 >conftest.err
38472   rm -f conftest.er1
38473   cat conftest.err >&5
38474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475   (exit $ac_status); } >/dev/null; then
38476   if test -s conftest.err; then
38477     ac_cpp_err=$ac_cxx_preproc_warn_flag
38478     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
38479   else
38480     ac_cpp_err=
38481   fi
38482 else
38483   ac_cpp_err=yes
38484 fi
38485 if test -z "$ac_cpp_err"; then
38486   ac_header_preproc=yes
38487 else
38488   echo "$as_me: failed program was:" >&5
38489 sed 's/^/| /' conftest.$ac_ext >&5
38490
38491   ac_header_preproc=no
38492 fi
38493 rm -f conftest.err conftest.$ac_ext
38494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38495 echo "${ECHO_T}$ac_header_preproc" >&6
38496
38497 # So?  What about this header?
38498 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38499   yes:no: )
38500     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38504     ac_header_preproc=yes
38505     ;;
38506   no:yes:* )
38507     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38509     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38510 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38511     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38513     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38514 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38517     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38519     (
38520       cat <<\_ASBOX
38521 ## ----------------------------------------- ##
38522 ## Report this to wx-dev@lists.wxwidgets.org ##
38523 ## ----------------------------------------- ##
38524 _ASBOX
38525     ) |
38526       sed "s/^/$as_me: WARNING:     /" >&2
38527     ;;
38528 esac
38529 echo "$as_me:$LINENO: checking for $ac_header" >&5
38530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38532   echo $ECHO_N "(cached) $ECHO_C" >&6
38533 else
38534   eval "$as_ac_Header=\$ac_header_preproc"
38535 fi
38536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38538
38539 fi
38540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38541   cat >>confdefs.h <<_ACEOF
38542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38543 _ACEOF
38544
38545     EXTRALIBS_ESD="-lesd"
38546
38547 fi
38548
38549 done
38550
38551
38552 fi
38553
38554
38555
38556 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38557 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38558 cat >conftest.$ac_ext <<_ACEOF
38559 /* confdefs.h.  */
38560 _ACEOF
38561 cat confdefs.h >>conftest.$ac_ext
38562 cat >>conftest.$ac_ext <<_ACEOF
38563 /* end confdefs.h.  */
38564 #ifdef __linux__
38565                 #include <linux/cdrom.h>
38566                 #else
38567                 /* For Solaris */
38568                 #include <sys/cdio.h>
38569                 #endif
38570
38571 int
38572 main ()
38573 {
38574 struct cdrom_tocentry entry, old_entry;
38575   ;
38576   return 0;
38577 }
38578 _ACEOF
38579 rm -f conftest.$ac_objext
38580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38581   (eval $ac_compile) 2>conftest.er1
38582   ac_status=$?
38583   grep -v '^ *+' conftest.er1 >conftest.err
38584   rm -f conftest.er1
38585   cat conftest.err >&5
38586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587   (exit $ac_status); } &&
38588          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38590   (eval $ac_try) 2>&5
38591   ac_status=$?
38592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38593   (exit $ac_status); }; } &&
38594          { ac_try='test -s conftest.$ac_objext'
38595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38596   (eval $ac_try) 2>&5
38597   ac_status=$?
38598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38599   (exit $ac_status); }; }; then
38600   echo "$as_me:$LINENO: result: yes" >&5
38601 echo "${ECHO_T}yes" >&6
38602                 cat >>confdefs.h <<\_ACEOF
38603 #define HAVE_KNOWN_CDROM_INTERFACE 1
38604 _ACEOF
38605
38606 else
38607   echo "$as_me: failed program was:" >&5
38608 sed 's/^/| /' conftest.$ac_ext >&5
38609
38610 echo "$as_me:$LINENO: result: no" >&5
38611 echo "${ECHO_T}no" >&6
38612 fi
38613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38614
38615
38616 cat >confcache <<\_ACEOF
38617 # This file is a shell script that caches the results of configure
38618 # tests run on this system so they can be shared between configure
38619 # scripts and configure runs, see configure's option --config-cache.
38620 # It is not useful on other systems.  If it contains results you don't
38621 # want to keep, you may remove or edit it.
38622 #
38623 # config.status only pays attention to the cache file if you give it
38624 # the --recheck option to rerun configure.
38625 #
38626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38628 # following values.
38629
38630 _ACEOF
38631
38632 # The following way of writing the cache mishandles newlines in values,
38633 # but we know of no workaround that is simple, portable, and efficient.
38634 # So, don't put newlines in cache variables' values.
38635 # Ultrix sh set writes to stderr and can't be redirected directly,
38636 # and sets the high bit in the cache file unless we assign to the vars.
38637 {
38638   (set) 2>&1 |
38639     case `(ac_space=' '; set | grep ac_space) 2>&1` in
38640     *ac_space=\ *)
38641       # `set' does not quote correctly, so add quotes (double-quote
38642       # substitution turns \\\\ into \\, and sed turns \\ into \).
38643       sed -n \
38644         "s/'/'\\\\''/g;
38645           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38646       ;;
38647     *)
38648       # `set' quotes correctly as required by POSIX, so do not add quotes.
38649       sed -n \
38650         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
38651       ;;
38652     esac;
38653 } |
38654   sed '
38655      t clear
38656      : clear
38657      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38658      t end
38659      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38660      : end' >>confcache
38661 if diff $cache_file confcache >/dev/null 2>&1; then :; else
38662   if test -w $cache_file; then
38663     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38664     cat confcache >$cache_file
38665   else
38666     echo "not updating unwritable cache $cache_file"
38667   fi
38668 fi
38669 rm -f confcache
38670
38671
38672 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38673
38674
38675     THREADS_LINK=
38676     THREADS_CXXFLAGS=
38677
38678     if test "$wxUSE_THREADS" = "yes" ; then
38679         if test "$USE_BEOS" = 1; then
38680             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38681 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38682             wxUSE_THREADS="no"
38683         fi
38684     fi
38685
38686     if test "$wxUSE_THREADS" = "yes" ; then
38687
38688
38689                                 THREAD_OPTS="-pthread"
38690         case "${host}" in
38691           *-*-solaris2* | *-*-sunos4* )
38692                 if test "x$GCC" = "xyes"; then
38693                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38694                 else
38695                     THREAD_OPTS="-mt $THREAD_OPTS"
38696                 fi
38697                 ;;
38698           *-*-freebsd*)
38699                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38700                 ;;
38701           *-*-darwin* | *-*-cygwin* )
38702                                                 THREAD_OPTS=""
38703                 ;;
38704           *-*-aix*)
38705                                 THREAD_OPTS="pthreads"
38706                 ;;
38707           *-hp-hpux* )
38708                 if test "x$GCC" = "xyes"; then
38709                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38710                         THREAD_OPTS=""
38711                 else
38712                                                             THREAD_OPTS="-mt"
38713                 fi
38714                 ;;
38715
38716           *-*-irix* )
38717                                                                 if test "x$GCC" = "xyes"; then
38718                     THREAD_OPTS=""
38719                 fi
38720                 ;;
38721
38722           *-*-*UnixWare*)
38723                                 if test "x$GCC" != "xyes"; then
38724                     THREAD_OPTS="-Ethread"
38725                 fi
38726                 ;;
38727         esac
38728
38729                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38730
38731                 THREADS_OK=no
38732         for flag in $THREAD_OPTS; do
38733             case $flag in
38734                 none)
38735                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38736 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
38737                     ;;
38738
38739                 -*)
38740                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38741 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
38742                     THREADS_CXXFLAGS="$flag"
38743                     ;;
38744
38745                 *)
38746                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38747 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
38748                     THREADS_LINK="-l$flag"
38749                     ;;
38750               esac
38751
38752               save_LIBS="$LIBS"
38753               save_CXXFLAGS="$CXXFLAGS"
38754               LIBS="$THREADS_LINK $LIBS"
38755               CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
38756
38757               cat >conftest.$ac_ext <<_ACEOF
38758 /* confdefs.h.  */
38759 _ACEOF
38760 cat confdefs.h >>conftest.$ac_ext
38761 cat >>conftest.$ac_ext <<_ACEOF
38762 /* end confdefs.h.  */
38763 #include <pthread.h>
38764 int
38765 main ()
38766 {
38767 pthread_create(0,0,0,0);
38768   ;
38769   return 0;
38770 }
38771 _ACEOF
38772 rm -f conftest.$ac_objext conftest$ac_exeext
38773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38774   (eval $ac_link) 2>conftest.er1
38775   ac_status=$?
38776   grep -v '^ *+' conftest.er1 >conftest.err
38777   rm -f conftest.er1
38778   cat conftest.err >&5
38779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780   (exit $ac_status); } &&
38781          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38783   (eval $ac_try) 2>&5
38784   ac_status=$?
38785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786   (exit $ac_status); }; } &&
38787          { ac_try='test -s conftest$ac_exeext'
38788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38789   (eval $ac_try) 2>&5
38790   ac_status=$?
38791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792   (exit $ac_status); }; }; then
38793   THREADS_OK=yes
38794 else
38795   echo "$as_me: failed program was:" >&5
38796 sed 's/^/| /' conftest.$ac_ext >&5
38797
38798 fi
38799 rm -f conftest.err conftest.$ac_objext \
38800       conftest$ac_exeext conftest.$ac_ext
38801
38802               LIBS="$save_LIBS"
38803               CXXFLAGS="$save_CXXFLAGS"
38804
38805               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38806 echo "${ECHO_T}$THREADS_OK" >&6
38807               if test "x$THREADS_OK" = "xyes"; then
38808                       break;
38809               fi
38810
38811               THREADS_LINK=""
38812               THREADS_CXXFLAGS=""
38813       done
38814
38815       if test "x$THREADS_OK" != "xyes"; then
38816           wxUSE_THREADS=no
38817           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38818 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38819       else
38820                               LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
38821           LIBS="$THREADS_LINK $LIBS"
38822
38823           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38824 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38825           flag=no
38826           case "${host}" in
38827             *-aix*)
38828                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38829                 flag="-D_THREAD_SAFE"
38830                 ;;
38831             *-freebsd*)
38832                 flag="-D_THREAD_SAFE"
38833                 ;;
38834             *-hp-hpux* )
38835                 flag="-D_REENTRANT"
38836                 if test "x$GCC" != "xyes"; then
38837                                         flag="$flag -D_RWSTD_MULTI_THREAD"
38838                 fi
38839                 ;;
38840             *solaris* | alpha*-osf*)
38841                 flag="-D_REENTRANT"
38842                 ;;
38843           esac
38844           echo "$as_me:$LINENO: result: ${flag}" >&5
38845 echo "${ECHO_T}${flag}" >&6
38846           if test "x$flag" != xno; then
38847               THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
38848           fi
38849
38850                     WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
38851       fi
38852     fi
38853
38854         if test "$wxUSE_THREADS" = "yes" ; then
38855
38856 for ac_func in thr_setconcurrency
38857 do
38858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38859 echo "$as_me:$LINENO: checking for $ac_func" >&5
38860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38861 if eval "test \"\${$as_ac_var+set}\" = set"; then
38862   echo $ECHO_N "(cached) $ECHO_C" >&6
38863 else
38864   cat >conftest.$ac_ext <<_ACEOF
38865 /* confdefs.h.  */
38866 _ACEOF
38867 cat confdefs.h >>conftest.$ac_ext
38868 cat >>conftest.$ac_ext <<_ACEOF
38869 /* end confdefs.h.  */
38870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38872 #define $ac_func innocuous_$ac_func
38873
38874 /* System header to define __stub macros and hopefully few prototypes,
38875     which can conflict with char $ac_func (); below.
38876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38877     <limits.h> exists even on freestanding compilers.  */
38878
38879 #ifdef __STDC__
38880 # include <limits.h>
38881 #else
38882 # include <assert.h>
38883 #endif
38884
38885 #undef $ac_func
38886
38887 /* Override any gcc2 internal prototype to avoid an error.  */
38888 #ifdef __cplusplus
38889 extern "C"
38890 {
38891 #endif
38892 /* We use char because int might match the return type of a gcc2
38893    builtin and then its argument prototype would still apply.  */
38894 char $ac_func ();
38895 /* The GNU C library defines this for functions which it implements
38896     to always fail with ENOSYS.  Some functions are actually named
38897     something starting with __ and the normal name is an alias.  */
38898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38899 choke me
38900 #else
38901 char (*f) () = $ac_func;
38902 #endif
38903 #ifdef __cplusplus
38904 }
38905 #endif
38906
38907 int
38908 main ()
38909 {
38910 return f != $ac_func;
38911   ;
38912   return 0;
38913 }
38914 _ACEOF
38915 rm -f conftest.$ac_objext conftest$ac_exeext
38916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38917   (eval $ac_link) 2>conftest.er1
38918   ac_status=$?
38919   grep -v '^ *+' conftest.er1 >conftest.err
38920   rm -f conftest.er1
38921   cat conftest.err >&5
38922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38923   (exit $ac_status); } &&
38924          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38926   (eval $ac_try) 2>&5
38927   ac_status=$?
38928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38929   (exit $ac_status); }; } &&
38930          { ac_try='test -s conftest$ac_exeext'
38931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38932   (eval $ac_try) 2>&5
38933   ac_status=$?
38934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38935   (exit $ac_status); }; }; then
38936   eval "$as_ac_var=yes"
38937 else
38938   echo "$as_me: failed program was:" >&5
38939 sed 's/^/| /' conftest.$ac_ext >&5
38940
38941 eval "$as_ac_var=no"
38942 fi
38943 rm -f conftest.err conftest.$ac_objext \
38944       conftest$ac_exeext conftest.$ac_ext
38945 fi
38946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38948 if test `eval echo '${'$as_ac_var'}'` = yes; then
38949   cat >>confdefs.h <<_ACEOF
38950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38951 _ACEOF
38952
38953 fi
38954 done
38955
38956
38957                   echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38958 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38959 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38960   echo $ECHO_N "(cached) $ECHO_C" >&6
38961 else
38962
38963         cat >conftest.$ac_ext <<_ACEOF
38964 /* confdefs.h.  */
38965 _ACEOF
38966 cat confdefs.h >>conftest.$ac_ext
38967 cat >>conftest.$ac_ext <<_ACEOF
38968 /* end confdefs.h.  */
38969 #include <pthread.h>
38970                void ThreadCleanupFunc(void *p);
38971
38972 int
38973 main ()
38974 {
38975
38976                 void *p;
38977                 pthread_cleanup_push(ThreadCleanupFunc, p);
38978                 pthread_cleanup_pop(0);
38979
38980   ;
38981   return 0;
38982 }
38983 _ACEOF
38984 rm -f conftest.$ac_objext
38985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38986   (eval $ac_compile) 2>conftest.er1
38987   ac_status=$?
38988   grep -v '^ *+' conftest.er1 >conftest.err
38989   rm -f conftest.er1
38990   cat conftest.err >&5
38991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38992   (exit $ac_status); } &&
38993          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38995   (eval $ac_try) 2>&5
38996   ac_status=$?
38997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38998   (exit $ac_status); }; } &&
38999          { ac_try='test -s conftest.$ac_objext'
39000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39001   (eval $ac_try) 2>&5
39002   ac_status=$?
39003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39004   (exit $ac_status); }; }; then
39005
39006                wx_cv_func_pthread_cleanup=yes
39007
39008 else
39009   echo "$as_me: failed program was:" >&5
39010 sed 's/^/| /' conftest.$ac_ext >&5
39011
39012
39013                wx_cv_func_pthread_cleanup=no
39014
39015
39016 fi
39017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39018
39019 fi
39020 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39021 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39022       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39023         cat >>confdefs.h <<\_ACEOF
39024 #define wxHAVE_PTHREAD_CLEANUP 1
39025 _ACEOF
39026
39027       fi
39028
39029
39030 for ac_header in sched.h
39031 do
39032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39034   echo "$as_me:$LINENO: checking for $ac_header" >&5
39035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39037   echo $ECHO_N "(cached) $ECHO_C" >&6
39038 fi
39039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39041 else
39042   # Is the header compilable?
39043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39045 cat >conftest.$ac_ext <<_ACEOF
39046 /* confdefs.h.  */
39047 _ACEOF
39048 cat confdefs.h >>conftest.$ac_ext
39049 cat >>conftest.$ac_ext <<_ACEOF
39050 /* end confdefs.h.  */
39051 $ac_includes_default
39052 #include <$ac_header>
39053 _ACEOF
39054 rm -f conftest.$ac_objext
39055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39056   (eval $ac_compile) 2>conftest.er1
39057   ac_status=$?
39058   grep -v '^ *+' conftest.er1 >conftest.err
39059   rm -f conftest.er1
39060   cat conftest.err >&5
39061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062   (exit $ac_status); } &&
39063          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39065   (eval $ac_try) 2>&5
39066   ac_status=$?
39067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39068   (exit $ac_status); }; } &&
39069          { ac_try='test -s conftest.$ac_objext'
39070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39071   (eval $ac_try) 2>&5
39072   ac_status=$?
39073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39074   (exit $ac_status); }; }; then
39075   ac_header_compiler=yes
39076 else
39077   echo "$as_me: failed program was:" >&5
39078 sed 's/^/| /' conftest.$ac_ext >&5
39079
39080 ac_header_compiler=no
39081 fi
39082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39084 echo "${ECHO_T}$ac_header_compiler" >&6
39085
39086 # Is the header present?
39087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39089 cat >conftest.$ac_ext <<_ACEOF
39090 /* confdefs.h.  */
39091 _ACEOF
39092 cat confdefs.h >>conftest.$ac_ext
39093 cat >>conftest.$ac_ext <<_ACEOF
39094 /* end confdefs.h.  */
39095 #include <$ac_header>
39096 _ACEOF
39097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39098   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39099   ac_status=$?
39100   grep -v '^ *+' conftest.er1 >conftest.err
39101   rm -f conftest.er1
39102   cat conftest.err >&5
39103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104   (exit $ac_status); } >/dev/null; then
39105   if test -s conftest.err; then
39106     ac_cpp_err=$ac_cxx_preproc_warn_flag
39107     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
39108   else
39109     ac_cpp_err=
39110   fi
39111 else
39112   ac_cpp_err=yes
39113 fi
39114 if test -z "$ac_cpp_err"; then
39115   ac_header_preproc=yes
39116 else
39117   echo "$as_me: failed program was:" >&5
39118 sed 's/^/| /' conftest.$ac_ext >&5
39119
39120   ac_header_preproc=no
39121 fi
39122 rm -f conftest.err conftest.$ac_ext
39123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39124 echo "${ECHO_T}$ac_header_preproc" >&6
39125
39126 # So?  What about this header?
39127 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39128   yes:no: )
39129     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39133     ac_header_preproc=yes
39134     ;;
39135   no:yes:* )
39136     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39138     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39139 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39140     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39142     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39143 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39146     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39148     (
39149       cat <<\_ASBOX
39150 ## ----------------------------------------- ##
39151 ## Report this to wx-dev@lists.wxwidgets.org ##
39152 ## ----------------------------------------- ##
39153 _ASBOX
39154     ) |
39155       sed "s/^/$as_me: WARNING:     /" >&2
39156     ;;
39157 esac
39158 echo "$as_me:$LINENO: checking for $ac_header" >&5
39159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39161   echo $ECHO_N "(cached) $ECHO_C" >&6
39162 else
39163   eval "$as_ac_Header=\$ac_header_preproc"
39164 fi
39165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39167
39168 fi
39169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39170   cat >>confdefs.h <<_ACEOF
39171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39172 _ACEOF
39173
39174 fi
39175
39176 done
39177
39178       if test "$ac_cv_header_sched_h" = "yes"; then
39179           echo "$as_me:$LINENO: checking for sched_yield" >&5
39180 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39181 if test "${ac_cv_func_sched_yield+set}" = set; then
39182   echo $ECHO_N "(cached) $ECHO_C" >&6
39183 else
39184   cat >conftest.$ac_ext <<_ACEOF
39185 /* confdefs.h.  */
39186 _ACEOF
39187 cat confdefs.h >>conftest.$ac_ext
39188 cat >>conftest.$ac_ext <<_ACEOF
39189 /* end confdefs.h.  */
39190 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39192 #define sched_yield innocuous_sched_yield
39193
39194 /* System header to define __stub macros and hopefully few prototypes,
39195     which can conflict with char sched_yield (); below.
39196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39197     <limits.h> exists even on freestanding compilers.  */
39198
39199 #ifdef __STDC__
39200 # include <limits.h>
39201 #else
39202 # include <assert.h>
39203 #endif
39204
39205 #undef sched_yield
39206
39207 /* Override any gcc2 internal prototype to avoid an error.  */
39208 #ifdef __cplusplus
39209 extern "C"
39210 {
39211 #endif
39212 /* We use char because int might match the return type of a gcc2
39213    builtin and then its argument prototype would still apply.  */
39214 char sched_yield ();
39215 /* The GNU C library defines this for functions which it implements
39216     to always fail with ENOSYS.  Some functions are actually named
39217     something starting with __ and the normal name is an alias.  */
39218 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39219 choke me
39220 #else
39221 char (*f) () = sched_yield;
39222 #endif
39223 #ifdef __cplusplus
39224 }
39225 #endif
39226
39227 int
39228 main ()
39229 {
39230 return f != sched_yield;
39231   ;
39232   return 0;
39233 }
39234 _ACEOF
39235 rm -f conftest.$ac_objext conftest$ac_exeext
39236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39237   (eval $ac_link) 2>conftest.er1
39238   ac_status=$?
39239   grep -v '^ *+' conftest.er1 >conftest.err
39240   rm -f conftest.er1
39241   cat conftest.err >&5
39242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243   (exit $ac_status); } &&
39244          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39246   (eval $ac_try) 2>&5
39247   ac_status=$?
39248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39249   (exit $ac_status); }; } &&
39250          { ac_try='test -s conftest$ac_exeext'
39251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39252   (eval $ac_try) 2>&5
39253   ac_status=$?
39254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39255   (exit $ac_status); }; }; then
39256   ac_cv_func_sched_yield=yes
39257 else
39258   echo "$as_me: failed program was:" >&5
39259 sed 's/^/| /' conftest.$ac_ext >&5
39260
39261 ac_cv_func_sched_yield=no
39262 fi
39263 rm -f conftest.err conftest.$ac_objext \
39264       conftest$ac_exeext conftest.$ac_ext
39265 fi
39266 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39267 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39268 if test $ac_cv_func_sched_yield = yes; then
39269   cat >>confdefs.h <<\_ACEOF
39270 #define HAVE_SCHED_YIELD 1
39271 _ACEOF
39272
39273 else
39274
39275                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39276 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39277 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39278   echo $ECHO_N "(cached) $ECHO_C" >&6
39279 else
39280   ac_check_lib_save_LIBS=$LIBS
39281 LIBS="-lposix4  $LIBS"
39282 cat >conftest.$ac_ext <<_ACEOF
39283 /* confdefs.h.  */
39284 _ACEOF
39285 cat confdefs.h >>conftest.$ac_ext
39286 cat >>conftest.$ac_ext <<_ACEOF
39287 /* end confdefs.h.  */
39288
39289 /* Override any gcc2 internal prototype to avoid an error.  */
39290 #ifdef __cplusplus
39291 extern "C"
39292 #endif
39293 /* We use char because int might match the return type of a gcc2
39294    builtin and then its argument prototype would still apply.  */
39295 char sched_yield ();
39296 int
39297 main ()
39298 {
39299 sched_yield ();
39300   ;
39301   return 0;
39302 }
39303 _ACEOF
39304 rm -f conftest.$ac_objext conftest$ac_exeext
39305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39306   (eval $ac_link) 2>conftest.er1
39307   ac_status=$?
39308   grep -v '^ *+' conftest.er1 >conftest.err
39309   rm -f conftest.er1
39310   cat conftest.err >&5
39311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312   (exit $ac_status); } &&
39313          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39315   (eval $ac_try) 2>&5
39316   ac_status=$?
39317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39318   (exit $ac_status); }; } &&
39319          { ac_try='test -s conftest$ac_exeext'
39320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39321   (eval $ac_try) 2>&5
39322   ac_status=$?
39323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39324   (exit $ac_status); }; }; then
39325   ac_cv_lib_posix4_sched_yield=yes
39326 else
39327   echo "$as_me: failed program was:" >&5
39328 sed 's/^/| /' conftest.$ac_ext >&5
39329
39330 ac_cv_lib_posix4_sched_yield=no
39331 fi
39332 rm -f conftest.err conftest.$ac_objext \
39333       conftest$ac_exeext conftest.$ac_ext
39334 LIBS=$ac_check_lib_save_LIBS
39335 fi
39336 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39337 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39338 if test $ac_cv_lib_posix4_sched_yield = yes; then
39339   cat >>confdefs.h <<\_ACEOF
39340 #define HAVE_SCHED_YIELD 1
39341 _ACEOF
39342  POSIX4_LINK=" -lposix4"
39343 else
39344   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39345 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39346
39347 fi
39348
39349
39350
39351 fi
39352
39353       fi
39354
39355                                           HAVE_PRIOR_FUNCS=0
39356       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39357 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39358 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39359   echo $ECHO_N "(cached) $ECHO_C" >&6
39360 else
39361   cat >conftest.$ac_ext <<_ACEOF
39362 /* confdefs.h.  */
39363 _ACEOF
39364 cat confdefs.h >>conftest.$ac_ext
39365 cat >>conftest.$ac_ext <<_ACEOF
39366 /* end confdefs.h.  */
39367 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39369 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39370
39371 /* System header to define __stub macros and hopefully few prototypes,
39372     which can conflict with char pthread_attr_getschedpolicy (); below.
39373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39374     <limits.h> exists even on freestanding compilers.  */
39375
39376 #ifdef __STDC__
39377 # include <limits.h>
39378 #else
39379 # include <assert.h>
39380 #endif
39381
39382 #undef pthread_attr_getschedpolicy
39383
39384 /* Override any gcc2 internal prototype to avoid an error.  */
39385 #ifdef __cplusplus
39386 extern "C"
39387 {
39388 #endif
39389 /* We use char because int might match the return type of a gcc2
39390    builtin and then its argument prototype would still apply.  */
39391 char pthread_attr_getschedpolicy ();
39392 /* The GNU C library defines this for functions which it implements
39393     to always fail with ENOSYS.  Some functions are actually named
39394     something starting with __ and the normal name is an alias.  */
39395 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39396 choke me
39397 #else
39398 char (*f) () = pthread_attr_getschedpolicy;
39399 #endif
39400 #ifdef __cplusplus
39401 }
39402 #endif
39403
39404 int
39405 main ()
39406 {
39407 return f != pthread_attr_getschedpolicy;
39408   ;
39409   return 0;
39410 }
39411 _ACEOF
39412 rm -f conftest.$ac_objext conftest$ac_exeext
39413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39414   (eval $ac_link) 2>conftest.er1
39415   ac_status=$?
39416   grep -v '^ *+' conftest.er1 >conftest.err
39417   rm -f conftest.er1
39418   cat conftest.err >&5
39419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420   (exit $ac_status); } &&
39421          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39423   (eval $ac_try) 2>&5
39424   ac_status=$?
39425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39426   (exit $ac_status); }; } &&
39427          { ac_try='test -s conftest$ac_exeext'
39428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39429   (eval $ac_try) 2>&5
39430   ac_status=$?
39431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432   (exit $ac_status); }; }; then
39433   ac_cv_func_pthread_attr_getschedpolicy=yes
39434 else
39435   echo "$as_me: failed program was:" >&5
39436 sed 's/^/| /' conftest.$ac_ext >&5
39437
39438 ac_cv_func_pthread_attr_getschedpolicy=no
39439 fi
39440 rm -f conftest.err conftest.$ac_objext \
39441       conftest$ac_exeext conftest.$ac_ext
39442 fi
39443 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39444 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39445 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39446   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39447 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39448 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39449   echo $ECHO_N "(cached) $ECHO_C" >&6
39450 else
39451   cat >conftest.$ac_ext <<_ACEOF
39452 /* confdefs.h.  */
39453 _ACEOF
39454 cat confdefs.h >>conftest.$ac_ext
39455 cat >>conftest.$ac_ext <<_ACEOF
39456 /* end confdefs.h.  */
39457 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39459 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39460
39461 /* System header to define __stub macros and hopefully few prototypes,
39462     which can conflict with char pthread_attr_setschedparam (); below.
39463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39464     <limits.h> exists even on freestanding compilers.  */
39465
39466 #ifdef __STDC__
39467 # include <limits.h>
39468 #else
39469 # include <assert.h>
39470 #endif
39471
39472 #undef pthread_attr_setschedparam
39473
39474 /* Override any gcc2 internal prototype to avoid an error.  */
39475 #ifdef __cplusplus
39476 extern "C"
39477 {
39478 #endif
39479 /* We use char because int might match the return type of a gcc2
39480    builtin and then its argument prototype would still apply.  */
39481 char pthread_attr_setschedparam ();
39482 /* The GNU C library defines this for functions which it implements
39483     to always fail with ENOSYS.  Some functions are actually named
39484     something starting with __ and the normal name is an alias.  */
39485 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39486 choke me
39487 #else
39488 char (*f) () = pthread_attr_setschedparam;
39489 #endif
39490 #ifdef __cplusplus
39491 }
39492 #endif
39493
39494 int
39495 main ()
39496 {
39497 return f != pthread_attr_setschedparam;
39498   ;
39499   return 0;
39500 }
39501 _ACEOF
39502 rm -f conftest.$ac_objext conftest$ac_exeext
39503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39504   (eval $ac_link) 2>conftest.er1
39505   ac_status=$?
39506   grep -v '^ *+' conftest.er1 >conftest.err
39507   rm -f conftest.er1
39508   cat conftest.err >&5
39509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39510   (exit $ac_status); } &&
39511          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39513   (eval $ac_try) 2>&5
39514   ac_status=$?
39515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516   (exit $ac_status); }; } &&
39517          { ac_try='test -s conftest$ac_exeext'
39518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39519   (eval $ac_try) 2>&5
39520   ac_status=$?
39521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39522   (exit $ac_status); }; }; then
39523   ac_cv_func_pthread_attr_setschedparam=yes
39524 else
39525   echo "$as_me: failed program was:" >&5
39526 sed 's/^/| /' conftest.$ac_ext >&5
39527
39528 ac_cv_func_pthread_attr_setschedparam=no
39529 fi
39530 rm -f conftest.err conftest.$ac_objext \
39531       conftest$ac_exeext conftest.$ac_ext
39532 fi
39533 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39534 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39535 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39536   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39537 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39538 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39539   echo $ECHO_N "(cached) $ECHO_C" >&6
39540 else
39541   cat >conftest.$ac_ext <<_ACEOF
39542 /* confdefs.h.  */
39543 _ACEOF
39544 cat confdefs.h >>conftest.$ac_ext
39545 cat >>conftest.$ac_ext <<_ACEOF
39546 /* end confdefs.h.  */
39547 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39549 #define sched_get_priority_max innocuous_sched_get_priority_max
39550
39551 /* System header to define __stub macros and hopefully few prototypes,
39552     which can conflict with char sched_get_priority_max (); below.
39553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39554     <limits.h> exists even on freestanding compilers.  */
39555
39556 #ifdef __STDC__
39557 # include <limits.h>
39558 #else
39559 # include <assert.h>
39560 #endif
39561
39562 #undef sched_get_priority_max
39563
39564 /* Override any gcc2 internal prototype to avoid an error.  */
39565 #ifdef __cplusplus
39566 extern "C"
39567 {
39568 #endif
39569 /* We use char because int might match the return type of a gcc2
39570    builtin and then its argument prototype would still apply.  */
39571 char sched_get_priority_max ();
39572 /* The GNU C library defines this for functions which it implements
39573     to always fail with ENOSYS.  Some functions are actually named
39574     something starting with __ and the normal name is an alias.  */
39575 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39576 choke me
39577 #else
39578 char (*f) () = sched_get_priority_max;
39579 #endif
39580 #ifdef __cplusplus
39581 }
39582 #endif
39583
39584 int
39585 main ()
39586 {
39587 return f != sched_get_priority_max;
39588   ;
39589   return 0;
39590 }
39591 _ACEOF
39592 rm -f conftest.$ac_objext conftest$ac_exeext
39593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39594   (eval $ac_link) 2>conftest.er1
39595   ac_status=$?
39596   grep -v '^ *+' conftest.er1 >conftest.err
39597   rm -f conftest.er1
39598   cat conftest.err >&5
39599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600   (exit $ac_status); } &&
39601          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39603   (eval $ac_try) 2>&5
39604   ac_status=$?
39605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606   (exit $ac_status); }; } &&
39607          { ac_try='test -s conftest$ac_exeext'
39608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39609   (eval $ac_try) 2>&5
39610   ac_status=$?
39611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612   (exit $ac_status); }; }; then
39613   ac_cv_func_sched_get_priority_max=yes
39614 else
39615   echo "$as_me: failed program was:" >&5
39616 sed 's/^/| /' conftest.$ac_ext >&5
39617
39618 ac_cv_func_sched_get_priority_max=no
39619 fi
39620 rm -f conftest.err conftest.$ac_objext \
39621       conftest$ac_exeext conftest.$ac_ext
39622 fi
39623 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39624 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39625 if test $ac_cv_func_sched_get_priority_max = yes; then
39626   HAVE_PRIOR_FUNCS=1
39627 else
39628   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39629 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39630 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39631   echo $ECHO_N "(cached) $ECHO_C" >&6
39632 else
39633   ac_check_lib_save_LIBS=$LIBS
39634 LIBS="-lposix4  $LIBS"
39635 cat >conftest.$ac_ext <<_ACEOF
39636 /* confdefs.h.  */
39637 _ACEOF
39638 cat confdefs.h >>conftest.$ac_ext
39639 cat >>conftest.$ac_ext <<_ACEOF
39640 /* end confdefs.h.  */
39641
39642 /* Override any gcc2 internal prototype to avoid an error.  */
39643 #ifdef __cplusplus
39644 extern "C"
39645 #endif
39646 /* We use char because int might match the return type of a gcc2
39647    builtin and then its argument prototype would still apply.  */
39648 char sched_get_priority_max ();
39649 int
39650 main ()
39651 {
39652 sched_get_priority_max ();
39653   ;
39654   return 0;
39655 }
39656 _ACEOF
39657 rm -f conftest.$ac_objext conftest$ac_exeext
39658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39659   (eval $ac_link) 2>conftest.er1
39660   ac_status=$?
39661   grep -v '^ *+' conftest.er1 >conftest.err
39662   rm -f conftest.er1
39663   cat conftest.err >&5
39664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39665   (exit $ac_status); } &&
39666          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39668   (eval $ac_try) 2>&5
39669   ac_status=$?
39670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671   (exit $ac_status); }; } &&
39672          { ac_try='test -s conftest$ac_exeext'
39673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39674   (eval $ac_try) 2>&5
39675   ac_status=$?
39676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677   (exit $ac_status); }; }; then
39678   ac_cv_lib_posix4_sched_get_priority_max=yes
39679 else
39680   echo "$as_me: failed program was:" >&5
39681 sed 's/^/| /' conftest.$ac_ext >&5
39682
39683 ac_cv_lib_posix4_sched_get_priority_max=no
39684 fi
39685 rm -f conftest.err conftest.$ac_objext \
39686       conftest$ac_exeext conftest.$ac_ext
39687 LIBS=$ac_check_lib_save_LIBS
39688 fi
39689 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39690 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39691 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39692
39693                                 HAVE_PRIOR_FUNCS=1
39694                                 POSIX4_LINK=" -lposix4"
39695
39696 fi
39697
39698
39699 fi
39700
39701
39702 fi
39703
39704
39705 fi
39706
39707
39708       if test "$HAVE_PRIOR_FUNCS" = 1; then
39709         cat >>confdefs.h <<\_ACEOF
39710 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39711 _ACEOF
39712
39713       else
39714         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39715 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39716       fi
39717
39718       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39719 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
39720 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39721   echo $ECHO_N "(cached) $ECHO_C" >&6
39722 else
39723   cat >conftest.$ac_ext <<_ACEOF
39724 /* confdefs.h.  */
39725 _ACEOF
39726 cat confdefs.h >>conftest.$ac_ext
39727 cat >>conftest.$ac_ext <<_ACEOF
39728 /* end confdefs.h.  */
39729 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39731 #define pthread_cancel innocuous_pthread_cancel
39732
39733 /* System header to define __stub macros and hopefully few prototypes,
39734     which can conflict with char pthread_cancel (); below.
39735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39736     <limits.h> exists even on freestanding compilers.  */
39737
39738 #ifdef __STDC__
39739 # include <limits.h>
39740 #else
39741 # include <assert.h>
39742 #endif
39743
39744 #undef pthread_cancel
39745
39746 /* Override any gcc2 internal prototype to avoid an error.  */
39747 #ifdef __cplusplus
39748 extern "C"
39749 {
39750 #endif
39751 /* We use char because int might match the return type of a gcc2
39752    builtin and then its argument prototype would still apply.  */
39753 char pthread_cancel ();
39754 /* The GNU C library defines this for functions which it implements
39755     to always fail with ENOSYS.  Some functions are actually named
39756     something starting with __ and the normal name is an alias.  */
39757 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
39758 choke me
39759 #else
39760 char (*f) () = pthread_cancel;
39761 #endif
39762 #ifdef __cplusplus
39763 }
39764 #endif
39765
39766 int
39767 main ()
39768 {
39769 return f != pthread_cancel;
39770   ;
39771   return 0;
39772 }
39773 _ACEOF
39774 rm -f conftest.$ac_objext conftest$ac_exeext
39775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39776   (eval $ac_link) 2>conftest.er1
39777   ac_status=$?
39778   grep -v '^ *+' conftest.er1 >conftest.err
39779   rm -f conftest.er1
39780   cat conftest.err >&5
39781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782   (exit $ac_status); } &&
39783          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39785   (eval $ac_try) 2>&5
39786   ac_status=$?
39787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39788   (exit $ac_status); }; } &&
39789          { ac_try='test -s conftest$ac_exeext'
39790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39791   (eval $ac_try) 2>&5
39792   ac_status=$?
39793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39794   (exit $ac_status); }; }; then
39795   ac_cv_func_pthread_cancel=yes
39796 else
39797   echo "$as_me: failed program was:" >&5
39798 sed 's/^/| /' conftest.$ac_ext >&5
39799
39800 ac_cv_func_pthread_cancel=no
39801 fi
39802 rm -f conftest.err conftest.$ac_objext \
39803       conftest$ac_exeext conftest.$ac_ext
39804 fi
39805 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39806 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39807 if test $ac_cv_func_pthread_cancel = yes; then
39808   cat >>confdefs.h <<\_ACEOF
39809 #define HAVE_PTHREAD_CANCEL 1
39810 _ACEOF
39811
39812 else
39813   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39814 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39815 fi
39816
39817
39818       echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39819 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39820 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39821   echo $ECHO_N "(cached) $ECHO_C" >&6
39822 else
39823   cat >conftest.$ac_ext <<_ACEOF
39824 /* confdefs.h.  */
39825 _ACEOF
39826 cat confdefs.h >>conftest.$ac_ext
39827 cat >>conftest.$ac_ext <<_ACEOF
39828 /* end confdefs.h.  */
39829 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39831 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39832
39833 /* System header to define __stub macros and hopefully few prototypes,
39834     which can conflict with char pthread_attr_setstacksize (); below.
39835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39836     <limits.h> exists even on freestanding compilers.  */
39837
39838 #ifdef __STDC__
39839 # include <limits.h>
39840 #else
39841 # include <assert.h>
39842 #endif
39843
39844 #undef pthread_attr_setstacksize
39845
39846 /* Override any gcc2 internal prototype to avoid an error.  */
39847 #ifdef __cplusplus
39848 extern "C"
39849 {
39850 #endif
39851 /* We use char because int might match the return type of a gcc2
39852    builtin and then its argument prototype would still apply.  */
39853 char pthread_attr_setstacksize ();
39854 /* The GNU C library defines this for functions which it implements
39855     to always fail with ENOSYS.  Some functions are actually named
39856     something starting with __ and the normal name is an alias.  */
39857 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39858 choke me
39859 #else
39860 char (*f) () = pthread_attr_setstacksize;
39861 #endif
39862 #ifdef __cplusplus
39863 }
39864 #endif
39865
39866 int
39867 main ()
39868 {
39869 return f != pthread_attr_setstacksize;
39870   ;
39871   return 0;
39872 }
39873 _ACEOF
39874 rm -f conftest.$ac_objext conftest$ac_exeext
39875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39876   (eval $ac_link) 2>conftest.er1
39877   ac_status=$?
39878   grep -v '^ *+' conftest.er1 >conftest.err
39879   rm -f conftest.er1
39880   cat conftest.err >&5
39881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39882   (exit $ac_status); } &&
39883          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39885   (eval $ac_try) 2>&5
39886   ac_status=$?
39887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888   (exit $ac_status); }; } &&
39889          { ac_try='test -s conftest$ac_exeext'
39890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39891   (eval $ac_try) 2>&5
39892   ac_status=$?
39893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39894   (exit $ac_status); }; }; then
39895   ac_cv_func_pthread_attr_setstacksize=yes
39896 else
39897   echo "$as_me: failed program was:" >&5
39898 sed 's/^/| /' conftest.$ac_ext >&5
39899
39900 ac_cv_func_pthread_attr_setstacksize=no
39901 fi
39902 rm -f conftest.err conftest.$ac_objext \
39903       conftest$ac_exeext conftest.$ac_ext
39904 fi
39905 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39906 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39907 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39908   cat >>confdefs.h <<\_ACEOF
39909 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39910 _ACEOF
39911
39912 fi
39913
39914
39915
39916       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39917 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39918 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39919   echo $ECHO_N "(cached) $ECHO_C" >&6
39920 else
39921
39922         cat >conftest.$ac_ext <<_ACEOF
39923 /* confdefs.h.  */
39924 _ACEOF
39925 cat confdefs.h >>conftest.$ac_ext
39926 cat >>conftest.$ac_ext <<_ACEOF
39927 /* end confdefs.h.  */
39928 #include <pthread.h>
39929 int
39930 main ()
39931 {
39932
39933                pthread_mutexattr_t attr;
39934                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39935
39936   ;
39937   return 0;
39938 }
39939 _ACEOF
39940 rm -f conftest.$ac_objext
39941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39942   (eval $ac_compile) 2>conftest.er1
39943   ac_status=$?
39944   grep -v '^ *+' conftest.er1 >conftest.err
39945   rm -f conftest.er1
39946   cat conftest.err >&5
39947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948   (exit $ac_status); } &&
39949          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39951   (eval $ac_try) 2>&5
39952   ac_status=$?
39953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954   (exit $ac_status); }; } &&
39955          { ac_try='test -s conftest.$ac_objext'
39956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39957   (eval $ac_try) 2>&5
39958   ac_status=$?
39959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960   (exit $ac_status); }; }; then
39961   wx_cv_type_pthread_mutexattr_t=yes
39962 else
39963   echo "$as_me: failed program was:" >&5
39964 sed 's/^/| /' conftest.$ac_ext >&5
39965
39966 wx_cv_type_pthread_mutexattr_t=no
39967
39968 fi
39969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39970
39971 fi
39972 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39973 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39974
39975       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39976         cat >>confdefs.h <<\_ACEOF
39977 #define HAVE_PTHREAD_MUTEXATTR_T 1
39978 _ACEOF
39979
39980
39981                         echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39982 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39983 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39984   echo $ECHO_N "(cached) $ECHO_C" >&6
39985 else
39986
39987                        cat >conftest.$ac_ext <<_ACEOF
39988 /* confdefs.h.  */
39989 _ACEOF
39990 cat confdefs.h >>conftest.$ac_ext
39991 cat >>conftest.$ac_ext <<_ACEOF
39992 /* end confdefs.h.  */
39993 #include <pthread.h>
39994 int
39995 main ()
39996 {
39997
39998                                pthread_mutexattr_t attr;
39999                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40000
40001   ;
40002   return 0;
40003 }
40004 _ACEOF
40005 rm -f conftest.$ac_objext
40006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40007   (eval $ac_compile) 2>conftest.er1
40008   ac_status=$?
40009   grep -v '^ *+' conftest.er1 >conftest.err
40010   rm -f conftest.er1
40011   cat conftest.err >&5
40012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013   (exit $ac_status); } &&
40014          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40016   (eval $ac_try) 2>&5
40017   ac_status=$?
40018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40019   (exit $ac_status); }; } &&
40020          { ac_try='test -s conftest.$ac_objext'
40021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40022   (eval $ac_try) 2>&5
40023   ac_status=$?
40024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40025   (exit $ac_status); }; }; then
40026   wx_cv_func_pthread_mutexattr_settype_decl=yes
40027 else
40028   echo "$as_me: failed program was:" >&5
40029 sed 's/^/| /' conftest.$ac_ext >&5
40030
40031 wx_cv_func_pthread_mutexattr_settype_decl=no
40032
40033 fi
40034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40035
40036 fi
40037 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40038 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40039         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40040             cat >>confdefs.h <<\_ACEOF
40041 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40042 _ACEOF
40043
40044         fi
40045       else
40046                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40047 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40048 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40049   echo $ECHO_N "(cached) $ECHO_C" >&6
40050 else
40051
40052             cat >conftest.$ac_ext <<_ACEOF
40053 /* confdefs.h.  */
40054 _ACEOF
40055 cat confdefs.h >>conftest.$ac_ext
40056 cat >>conftest.$ac_ext <<_ACEOF
40057 /* end confdefs.h.  */
40058 #include <pthread.h>
40059 int
40060 main ()
40061 {
40062
40063                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40064
40065   ;
40066   return 0;
40067 }
40068 _ACEOF
40069 rm -f conftest.$ac_objext
40070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40071   (eval $ac_compile) 2>conftest.er1
40072   ac_status=$?
40073   grep -v '^ *+' conftest.er1 >conftest.err
40074   rm -f conftest.er1
40075   cat conftest.err >&5
40076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40077   (exit $ac_status); } &&
40078          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40080   (eval $ac_try) 2>&5
40081   ac_status=$?
40082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40083   (exit $ac_status); }; } &&
40084          { ac_try='test -s conftest.$ac_objext'
40085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40086   (eval $ac_try) 2>&5
40087   ac_status=$?
40088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40089   (exit $ac_status); }; }; then
40090
40091                     wx_cv_type_pthread_rec_mutex_init=yes
40092
40093 else
40094   echo "$as_me: failed program was:" >&5
40095 sed 's/^/| /' conftest.$ac_ext >&5
40096
40097
40098                     wx_cv_type_pthread_rec_mutex_init=no
40099
40100
40101 fi
40102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40103
40104 fi
40105 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40106 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40107         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40108           cat >>confdefs.h <<\_ACEOF
40109 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40110 _ACEOF
40111
40112         else
40113                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40114 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40115         fi
40116       fi
40117     fi
40118
40119 else
40120     if test "$wxUSE_THREADS" = "yes" ; then
40121       case "${host}" in
40122         *-*-mingw32* )
40123                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40124 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40125 if test "${wx_cv_cflags_mthread+set}" = set; then
40126   echo $ECHO_N "(cached) $ECHO_C" >&6
40127 else
40128
40129                     CXXFLAGS_OLD="$CXXFLAGS"
40130                     CXXFLAGS="-mthreads $CXXFLAGS"
40131                     cat >conftest.$ac_ext <<_ACEOF
40132 /* confdefs.h.  */
40133 _ACEOF
40134 cat confdefs.h >>conftest.$ac_ext
40135 cat >>conftest.$ac_ext <<_ACEOF
40136 /* end confdefs.h.  */
40137
40138 int
40139 main ()
40140 {
40141
40142   ;
40143   return 0;
40144 }
40145 _ACEOF
40146 rm -f conftest.$ac_objext
40147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40148   (eval $ac_compile) 2>conftest.er1
40149   ac_status=$?
40150   grep -v '^ *+' conftest.er1 >conftest.err
40151   rm -f conftest.er1
40152   cat conftest.err >&5
40153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40154   (exit $ac_status); } &&
40155          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40157   (eval $ac_try) 2>&5
40158   ac_status=$?
40159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160   (exit $ac_status); }; } &&
40161          { ac_try='test -s conftest.$ac_objext'
40162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40163   (eval $ac_try) 2>&5
40164   ac_status=$?
40165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40166   (exit $ac_status); }; }; then
40167   wx_cv_cflags_mthread=yes
40168 else
40169   echo "$as_me: failed program was:" >&5
40170 sed 's/^/| /' conftest.$ac_ext >&5
40171
40172 wx_cv_cflags_mthread=no
40173
40174 fi
40175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40176
40177
40178 fi
40179 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40180 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40181
40182             if test "$wx_cv_cflags_mthread" = "yes"; then
40183                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
40184                 LDFLAGS="$LDFLAGS -mthreads"
40185             else
40186                                 CXXFLAGS="$CXXFLAGS_OLD"
40187             fi
40188         ;;
40189         *-pc-os2*emx )
40190             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40191             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
40192             LDFLAGS="$LDFLAGS -Zmt"
40193         ;;
40194       esac
40195     fi
40196 fi
40197
40198 echo "$as_me:$LINENO: checking for localtime_r" >&5
40199 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40200 if test "${ac_cv_func_localtime_r+set}" = set; then
40201   echo $ECHO_N "(cached) $ECHO_C" >&6
40202 else
40203   cat >conftest.$ac_ext <<_ACEOF
40204 /* confdefs.h.  */
40205 _ACEOF
40206 cat confdefs.h >>conftest.$ac_ext
40207 cat >>conftest.$ac_ext <<_ACEOF
40208 /* end confdefs.h.  */
40209 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40211 #define localtime_r innocuous_localtime_r
40212
40213 /* System header to define __stub macros and hopefully few prototypes,
40214     which can conflict with char localtime_r (); below.
40215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40216     <limits.h> exists even on freestanding compilers.  */
40217
40218 #ifdef __STDC__
40219 # include <limits.h>
40220 #else
40221 # include <assert.h>
40222 #endif
40223
40224 #undef localtime_r
40225
40226 /* Override any gcc2 internal prototype to avoid an error.  */
40227 #ifdef __cplusplus
40228 extern "C"
40229 {
40230 #endif
40231 /* We use char because int might match the return type of a gcc2
40232    builtin and then its argument prototype would still apply.  */
40233 char localtime_r ();
40234 /* The GNU C library defines this for functions which it implements
40235     to always fail with ENOSYS.  Some functions are actually named
40236     something starting with __ and the normal name is an alias.  */
40237 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
40238 choke me
40239 #else
40240 char (*f) () = localtime_r;
40241 #endif
40242 #ifdef __cplusplus
40243 }
40244 #endif
40245
40246 int
40247 main ()
40248 {
40249 return f != localtime_r;
40250   ;
40251   return 0;
40252 }
40253 _ACEOF
40254 rm -f conftest.$ac_objext conftest$ac_exeext
40255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40256   (eval $ac_link) 2>conftest.er1
40257   ac_status=$?
40258   grep -v '^ *+' conftest.er1 >conftest.err
40259   rm -f conftest.er1
40260   cat conftest.err >&5
40261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262   (exit $ac_status); } &&
40263          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40265   (eval $ac_try) 2>&5
40266   ac_status=$?
40267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40268   (exit $ac_status); }; } &&
40269          { ac_try='test -s conftest$ac_exeext'
40270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40271   (eval $ac_try) 2>&5
40272   ac_status=$?
40273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274   (exit $ac_status); }; }; then
40275   ac_cv_func_localtime_r=yes
40276 else
40277   echo "$as_me: failed program was:" >&5
40278 sed 's/^/| /' conftest.$ac_ext >&5
40279
40280 ac_cv_func_localtime_r=no
40281 fi
40282 rm -f conftest.err conftest.$ac_objext \
40283       conftest$ac_exeext conftest.$ac_ext
40284 fi
40285 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40286 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40287 if test $ac_cv_func_localtime_r = yes; then
40288    cat >>confdefs.h <<\_ACEOF
40289 #define HAVE_LOCALTIME_R 1
40290 _ACEOF
40291
40292 fi
40293
40294 echo "$as_me:$LINENO: checking for gmtime_r" >&5
40295 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40296 if test "${ac_cv_func_gmtime_r+set}" = set; then
40297   echo $ECHO_N "(cached) $ECHO_C" >&6
40298 else
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 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40307 #define gmtime_r innocuous_gmtime_r
40308
40309 /* System header to define __stub macros and hopefully few prototypes,
40310     which can conflict with char gmtime_r (); below.
40311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40312     <limits.h> exists even on freestanding compilers.  */
40313
40314 #ifdef __STDC__
40315 # include <limits.h>
40316 #else
40317 # include <assert.h>
40318 #endif
40319
40320 #undef gmtime_r
40321
40322 /* Override any gcc2 internal prototype to avoid an error.  */
40323 #ifdef __cplusplus
40324 extern "C"
40325 {
40326 #endif
40327 /* We use char because int might match the return type of a gcc2
40328    builtin and then its argument prototype would still apply.  */
40329 char gmtime_r ();
40330 /* The GNU C library defines this for functions which it implements
40331     to always fail with ENOSYS.  Some functions are actually named
40332     something starting with __ and the normal name is an alias.  */
40333 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40334 choke me
40335 #else
40336 char (*f) () = gmtime_r;
40337 #endif
40338 #ifdef __cplusplus
40339 }
40340 #endif
40341
40342 int
40343 main ()
40344 {
40345 return f != gmtime_r;
40346   ;
40347   return 0;
40348 }
40349 _ACEOF
40350 rm -f conftest.$ac_objext conftest$ac_exeext
40351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40352   (eval $ac_link) 2>conftest.er1
40353   ac_status=$?
40354   grep -v '^ *+' conftest.er1 >conftest.err
40355   rm -f conftest.er1
40356   cat conftest.err >&5
40357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40358   (exit $ac_status); } &&
40359          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40361   (eval $ac_try) 2>&5
40362   ac_status=$?
40363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40364   (exit $ac_status); }; } &&
40365          { ac_try='test -s conftest$ac_exeext'
40366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40367   (eval $ac_try) 2>&5
40368   ac_status=$?
40369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40370   (exit $ac_status); }; }; then
40371   ac_cv_func_gmtime_r=yes
40372 else
40373   echo "$as_me: failed program was:" >&5
40374 sed 's/^/| /' conftest.$ac_ext >&5
40375
40376 ac_cv_func_gmtime_r=no
40377 fi
40378 rm -f conftest.err conftest.$ac_objext \
40379       conftest$ac_exeext conftest.$ac_ext
40380 fi
40381 echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40382 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40383 if test $ac_cv_func_gmtime_r = yes; then
40384    cat >>confdefs.h <<\_ACEOF
40385 #define HAVE_GMTIME_R 1
40386 _ACEOF
40387
40388 fi
40389
40390 echo "$as_me:$LINENO: checking for readdir_r" >&5
40391 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40392 if test "${ac_cv_func_readdir_r+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 readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40403 #define readdir_r innocuous_readdir_r
40404
40405 /* System header to define __stub macros and hopefully few prototypes,
40406     which can conflict with char readdir_r (); 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 readdir_r
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 readdir_r ();
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_readdir_r) || defined (__stub___readdir_r)
40430 choke me
40431 #else
40432 char (*f) () = readdir_r;
40433 #endif
40434 #ifdef __cplusplus
40435 }
40436 #endif
40437
40438 int
40439 main ()
40440 {
40441 return f != readdir_r;
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_cxx_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_readdir_r=yes
40468 else
40469   echo "$as_me: failed program was:" >&5
40470 sed 's/^/| /' conftest.$ac_ext >&5
40471
40472 ac_cv_func_readdir_r=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_readdir_r" >&5
40478 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40479 if test $ac_cv_func_readdir_r = yes; then
40480    cat >>confdefs.h <<\_ACEOF
40481 #define HAVE_READDIR_R 1
40482 _ACEOF
40483
40484 fi
40485
40486
40487
40488
40489     ac_ext=c
40490 ac_cpp='$CPP $CPPFLAGS'
40491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40494
40495     echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40496 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40497
40498     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40499   echo $ECHO_N "(cached) $ECHO_C" >&6
40500 else
40501
40502
40503 ################################################################
40504
40505 ac_cv_func_which_gethostbyname_r=unknown
40506
40507 #
40508 # ONE ARGUMENT (sanity check)
40509 #
40510
40511 # This should fail, as there is no variant of gethostbyname_r() that takes
40512 # a single argument. If it actually compiles, then we can assume that
40513 # netdb.h is not declaring the function, and the compiler is thereby
40514 # assuming an implicit prototype. In which case, we're out of luck.
40515 #
40516 cat >conftest.$ac_ext <<_ACEOF
40517 /* confdefs.h.  */
40518 _ACEOF
40519 cat confdefs.h >>conftest.$ac_ext
40520 cat >>conftest.$ac_ext <<_ACEOF
40521 /* end confdefs.h.  */
40522 #include <netdb.h>
40523 int
40524 main ()
40525 {
40526
40527             char *name = "www.gnu.org";
40528             (void)gethostbyname_r(name) /* ; */
40529
40530   ;
40531   return 0;
40532 }
40533 _ACEOF
40534 rm -f conftest.$ac_objext
40535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40536   (eval $ac_compile) 2>conftest.er1
40537   ac_status=$?
40538   grep -v '^ *+' conftest.er1 >conftest.err
40539   rm -f conftest.er1
40540   cat conftest.err >&5
40541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40542   (exit $ac_status); } &&
40543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40545   (eval $ac_try) 2>&5
40546   ac_status=$?
40547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40548   (exit $ac_status); }; } &&
40549          { ac_try='test -s conftest.$ac_objext'
40550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40551   (eval $ac_try) 2>&5
40552   ac_status=$?
40553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40554   (exit $ac_status); }; }; then
40555   ac_cv_func_which_gethostbyname_r=no
40556 else
40557   echo "$as_me: failed program was:" >&5
40558 sed 's/^/| /' conftest.$ac_ext >&5
40559
40560 fi
40561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40562
40563 #
40564 # SIX ARGUMENTS
40565 # (e.g. Linux)
40566 #
40567
40568 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40569
40570 cat >conftest.$ac_ext <<_ACEOF
40571 /* confdefs.h.  */
40572 _ACEOF
40573 cat confdefs.h >>conftest.$ac_ext
40574 cat >>conftest.$ac_ext <<_ACEOF
40575 /* end confdefs.h.  */
40576 #include <netdb.h>
40577 int
40578 main ()
40579 {
40580
40581             char *name = "www.gnu.org";
40582             struct hostent ret, *retp;
40583             char buf[1024];
40584             int buflen = 1024;
40585             int my_h_errno;
40586             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40587
40588   ;
40589   return 0;
40590 }
40591 _ACEOF
40592 rm -f conftest.$ac_objext
40593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40594   (eval $ac_compile) 2>conftest.er1
40595   ac_status=$?
40596   grep -v '^ *+' conftest.er1 >conftest.err
40597   rm -f conftest.er1
40598   cat conftest.err >&5
40599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40600   (exit $ac_status); } &&
40601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40603   (eval $ac_try) 2>&5
40604   ac_status=$?
40605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40606   (exit $ac_status); }; } &&
40607          { ac_try='test -s conftest.$ac_objext'
40608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40609   (eval $ac_try) 2>&5
40610   ac_status=$?
40611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40612   (exit $ac_status); }; }; then
40613   ac_cv_func_which_gethostbyname_r=six
40614 else
40615   echo "$as_me: failed program was:" >&5
40616 sed 's/^/| /' conftest.$ac_ext >&5
40617
40618 fi
40619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40620
40621 fi
40622
40623 #
40624 # FIVE ARGUMENTS
40625 # (e.g. Solaris)
40626 #
40627
40628 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40629
40630 cat >conftest.$ac_ext <<_ACEOF
40631 /* confdefs.h.  */
40632 _ACEOF
40633 cat confdefs.h >>conftest.$ac_ext
40634 cat >>conftest.$ac_ext <<_ACEOF
40635 /* end confdefs.h.  */
40636 #include <netdb.h>
40637 int
40638 main ()
40639 {
40640
40641             char *name = "www.gnu.org";
40642             struct hostent ret;
40643             char buf[1024];
40644             int buflen = 1024;
40645             int my_h_errno;
40646             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40647
40648   ;
40649   return 0;
40650 }
40651 _ACEOF
40652 rm -f conftest.$ac_objext
40653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40654   (eval $ac_compile) 2>conftest.er1
40655   ac_status=$?
40656   grep -v '^ *+' conftest.er1 >conftest.err
40657   rm -f conftest.er1
40658   cat conftest.err >&5
40659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40660   (exit $ac_status); } &&
40661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40663   (eval $ac_try) 2>&5
40664   ac_status=$?
40665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40666   (exit $ac_status); }; } &&
40667          { ac_try='test -s conftest.$ac_objext'
40668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40669   (eval $ac_try) 2>&5
40670   ac_status=$?
40671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672   (exit $ac_status); }; }; then
40673   ac_cv_func_which_gethostbyname_r=five
40674 else
40675   echo "$as_me: failed program was:" >&5
40676 sed 's/^/| /' conftest.$ac_ext >&5
40677
40678 fi
40679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40680
40681 fi
40682
40683 #
40684 # THREE ARGUMENTS
40685 # (e.g. AIX, HP-UX, Tru64)
40686 #
40687
40688 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40689
40690 cat >conftest.$ac_ext <<_ACEOF
40691 /* confdefs.h.  */
40692 _ACEOF
40693 cat confdefs.h >>conftest.$ac_ext
40694 cat >>conftest.$ac_ext <<_ACEOF
40695 /* end confdefs.h.  */
40696 #include <netdb.h>
40697 int
40698 main ()
40699 {
40700
40701             char *name = "www.gnu.org";
40702             struct hostent ret;
40703             struct hostent_data data;
40704             (void)gethostbyname_r(name, &ret, &data) /* ; */
40705
40706   ;
40707   return 0;
40708 }
40709 _ACEOF
40710 rm -f conftest.$ac_objext
40711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40712   (eval $ac_compile) 2>conftest.er1
40713   ac_status=$?
40714   grep -v '^ *+' conftest.er1 >conftest.err
40715   rm -f conftest.er1
40716   cat conftest.err >&5
40717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718   (exit $ac_status); } &&
40719          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40721   (eval $ac_try) 2>&5
40722   ac_status=$?
40723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724   (exit $ac_status); }; } &&
40725          { ac_try='test -s conftest.$ac_objext'
40726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40727   (eval $ac_try) 2>&5
40728   ac_status=$?
40729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730   (exit $ac_status); }; }; then
40731   ac_cv_func_which_gethostbyname_r=three
40732 else
40733   echo "$as_me: failed program was:" >&5
40734 sed 's/^/| /' conftest.$ac_ext >&5
40735
40736 fi
40737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40738
40739 fi
40740
40741 ################################################################
40742
40743
40744 fi
40745
40746 case "$ac_cv_func_which_gethostbyname_r" in
40747     three)
40748     echo "$as_me:$LINENO: result: three" >&5
40749 echo "${ECHO_T}three" >&6
40750     cat >>confdefs.h <<\_ACEOF
40751 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40752 _ACEOF
40753
40754     ;;
40755
40756     five)
40757     echo "$as_me:$LINENO: result: five" >&5
40758 echo "${ECHO_T}five" >&6
40759     cat >>confdefs.h <<\_ACEOF
40760 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40761 _ACEOF
40762
40763     ;;
40764
40765     six)
40766     echo "$as_me:$LINENO: result: six" >&5
40767 echo "${ECHO_T}six" >&6
40768     cat >>confdefs.h <<\_ACEOF
40769 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40770 _ACEOF
40771
40772     ;;
40773
40774     no)
40775     echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40776 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40777     ;;
40778
40779     unknown)
40780     echo "$as_me:$LINENO: result: can't tell" >&5
40781 echo "${ECHO_T}can't tell" >&6
40782     ;;
40783
40784     *)
40785     { { echo "$as_me:$LINENO: error: internal error" >&5
40786 echo "$as_me: error: internal error" >&2;}
40787    { (exit 1); exit 1; }; }
40788     ;;
40789 esac
40790
40791 ac_ext=cc
40792 ac_cpp='$CXXCPP $CPPFLAGS'
40793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40796
40797
40798
40799       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40800               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40801           echo "$as_me:$LINENO: checking for gethostbyname" >&5
40802 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40803 if test "${ac_cv_func_gethostbyname+set}" = set; then
40804   echo $ECHO_N "(cached) $ECHO_C" >&6
40805 else
40806   cat >conftest.$ac_ext <<_ACEOF
40807 /* confdefs.h.  */
40808 _ACEOF
40809 cat confdefs.h >>conftest.$ac_ext
40810 cat >>conftest.$ac_ext <<_ACEOF
40811 /* end confdefs.h.  */
40812 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40814 #define gethostbyname innocuous_gethostbyname
40815
40816 /* System header to define __stub macros and hopefully few prototypes,
40817     which can conflict with char gethostbyname (); below.
40818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40819     <limits.h> exists even on freestanding compilers.  */
40820
40821 #ifdef __STDC__
40822 # include <limits.h>
40823 #else
40824 # include <assert.h>
40825 #endif
40826
40827 #undef gethostbyname
40828
40829 /* Override any gcc2 internal prototype to avoid an error.  */
40830 #ifdef __cplusplus
40831 extern "C"
40832 {
40833 #endif
40834 /* We use char because int might match the return type of a gcc2
40835    builtin and then its argument prototype would still apply.  */
40836 char gethostbyname ();
40837 /* The GNU C library defines this for functions which it implements
40838     to always fail with ENOSYS.  Some functions are actually named
40839     something starting with __ and the normal name is an alias.  */
40840 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40841 choke me
40842 #else
40843 char (*f) () = gethostbyname;
40844 #endif
40845 #ifdef __cplusplus
40846 }
40847 #endif
40848
40849 int
40850 main ()
40851 {
40852 return f != gethostbyname;
40853   ;
40854   return 0;
40855 }
40856 _ACEOF
40857 rm -f conftest.$ac_objext conftest$ac_exeext
40858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40859   (eval $ac_link) 2>conftest.er1
40860   ac_status=$?
40861   grep -v '^ *+' conftest.er1 >conftest.err
40862   rm -f conftest.er1
40863   cat conftest.err >&5
40864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40865   (exit $ac_status); } &&
40866          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40868   (eval $ac_try) 2>&5
40869   ac_status=$?
40870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40871   (exit $ac_status); }; } &&
40872          { ac_try='test -s conftest$ac_exeext'
40873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40874   (eval $ac_try) 2>&5
40875   ac_status=$?
40876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40877   (exit $ac_status); }; }; then
40878   ac_cv_func_gethostbyname=yes
40879 else
40880   echo "$as_me: failed program was:" >&5
40881 sed 's/^/| /' conftest.$ac_ext >&5
40882
40883 ac_cv_func_gethostbyname=no
40884 fi
40885 rm -f conftest.err conftest.$ac_objext \
40886       conftest$ac_exeext conftest.$ac_ext
40887 fi
40888 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40889 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40890 if test $ac_cv_func_gethostbyname = yes; then
40891    cat >>confdefs.h <<\_ACEOF
40892 #define HAVE_GETHOSTBYNAME 1
40893 _ACEOF
40894
40895 fi
40896
40897       fi
40898
40899 echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40900 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
40901 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40902   echo $ECHO_N "(cached) $ECHO_C" >&6
40903 else
40904
40905         cat >conftest.$ac_ext <<_ACEOF
40906 /* confdefs.h.  */
40907 _ACEOF
40908 cat confdefs.h >>conftest.$ac_ext
40909 cat >>conftest.$ac_ext <<_ACEOF
40910 /* end confdefs.h.  */
40911 #include <netdb.h>
40912 int
40913 main ()
40914 {
40915
40916                 char *name;
40917                 char *proto;
40918                 struct servent *se, *res;
40919                 char buffer[2048];
40920                 int buflen = 2048;
40921                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40922
40923   ;
40924   return 0;
40925 }
40926 _ACEOF
40927 rm -f conftest.$ac_objext
40928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40929   (eval $ac_compile) 2>conftest.er1
40930   ac_status=$?
40931   grep -v '^ *+' conftest.er1 >conftest.err
40932   rm -f conftest.er1
40933   cat conftest.err >&5
40934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40935   (exit $ac_status); } &&
40936          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40938   (eval $ac_try) 2>&5
40939   ac_status=$?
40940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40941   (exit $ac_status); }; } &&
40942          { ac_try='test -s conftest.$ac_objext'
40943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40944   (eval $ac_try) 2>&5
40945   ac_status=$?
40946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40947   (exit $ac_status); }; }; then
40948   ac_cv_func_which_getservbyname_r=six
40949 else
40950   echo "$as_me: failed program was:" >&5
40951 sed 's/^/| /' conftest.$ac_ext >&5
40952
40953
40954                 cat >conftest.$ac_ext <<_ACEOF
40955 /* confdefs.h.  */
40956 _ACEOF
40957 cat confdefs.h >>conftest.$ac_ext
40958 cat >>conftest.$ac_ext <<_ACEOF
40959 /* end confdefs.h.  */
40960 #include <netdb.h>
40961 int
40962 main ()
40963 {
40964
40965                         char *name;
40966                         char *proto;
40967                         struct servent *se;
40968                         char buffer[2048];
40969                         int buflen = 2048;
40970                         (void) getservbyname_r(name, proto, se, buffer, buflen)
40971
40972   ;
40973   return 0;
40974 }
40975 _ACEOF
40976 rm -f conftest.$ac_objext
40977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40978   (eval $ac_compile) 2>conftest.er1
40979   ac_status=$?
40980   grep -v '^ *+' conftest.er1 >conftest.err
40981   rm -f conftest.er1
40982   cat conftest.err >&5
40983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40984   (exit $ac_status); } &&
40985          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40987   (eval $ac_try) 2>&5
40988   ac_status=$?
40989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40990   (exit $ac_status); }; } &&
40991          { ac_try='test -s conftest.$ac_objext'
40992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40993   (eval $ac_try) 2>&5
40994   ac_status=$?
40995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40996   (exit $ac_status); }; }; then
40997   ac_cv_func_which_getservbyname_r=five
40998 else
40999   echo "$as_me: failed program was:" >&5
41000 sed 's/^/| /' conftest.$ac_ext >&5
41001
41002
41003                         cat >conftest.$ac_ext <<_ACEOF
41004 /* confdefs.h.  */
41005 _ACEOF
41006 cat confdefs.h >>conftest.$ac_ext
41007 cat >>conftest.$ac_ext <<_ACEOF
41008 /* end confdefs.h.  */
41009 #include <netdb.h>
41010 int
41011 main ()
41012 {
41013
41014                                 char *name;
41015                                 char *proto;
41016                                 struct servent *se;
41017                                 struct servent_data data;
41018                                 (void) getservbyname_r(name, proto, se, &data);
41019
41020   ;
41021   return 0;
41022 }
41023 _ACEOF
41024 rm -f conftest.$ac_objext
41025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41026   (eval $ac_compile) 2>conftest.er1
41027   ac_status=$?
41028   grep -v '^ *+' conftest.er1 >conftest.err
41029   rm -f conftest.er1
41030   cat conftest.err >&5
41031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032   (exit $ac_status); } &&
41033          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41035   (eval $ac_try) 2>&5
41036   ac_status=$?
41037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41038   (exit $ac_status); }; } &&
41039          { ac_try='test -s conftest.$ac_objext'
41040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41041   (eval $ac_try) 2>&5
41042   ac_status=$?
41043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41044   (exit $ac_status); }; }; then
41045   ac_cv_func_which_getservbyname_r=four
41046 else
41047   echo "$as_me: failed program was:" >&5
41048 sed 's/^/| /' conftest.$ac_ext >&5
41049
41050 ac_cv_func_which_getservbyname_r=no
41051
41052 fi
41053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41054
41055
41056 fi
41057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41058
41059
41060 fi
41061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41062
41063
41064 fi
41065 echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41066 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
41067
41068 if test $ac_cv_func_which_getservbyname_r = six; then
41069   cat >>confdefs.h <<\_ACEOF
41070 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41071 _ACEOF
41072
41073 elif test $ac_cv_func_which_getservbyname_r = five; then
41074   cat >>confdefs.h <<\_ACEOF
41075 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41076 _ACEOF
41077
41078 elif test $ac_cv_func_which_getservbyname_r = four; then
41079   cat >>confdefs.h <<\_ACEOF
41080 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41081 _ACEOF
41082
41083 fi
41084
41085
41086       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41087               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41088
41089 for ac_func in getservbyname
41090 do
41091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41092 echo "$as_me:$LINENO: checking for $ac_func" >&5
41093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41094 if eval "test \"\${$as_ac_var+set}\" = set"; then
41095   echo $ECHO_N "(cached) $ECHO_C" >&6
41096 else
41097   cat >conftest.$ac_ext <<_ACEOF
41098 /* confdefs.h.  */
41099 _ACEOF
41100 cat confdefs.h >>conftest.$ac_ext
41101 cat >>conftest.$ac_ext <<_ACEOF
41102 /* end confdefs.h.  */
41103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41105 #define $ac_func innocuous_$ac_func
41106
41107 /* System header to define __stub macros and hopefully few prototypes,
41108     which can conflict with char $ac_func (); below.
41109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41110     <limits.h> exists even on freestanding compilers.  */
41111
41112 #ifdef __STDC__
41113 # include <limits.h>
41114 #else
41115 # include <assert.h>
41116 #endif
41117
41118 #undef $ac_func
41119
41120 /* Override any gcc2 internal prototype to avoid an error.  */
41121 #ifdef __cplusplus
41122 extern "C"
41123 {
41124 #endif
41125 /* We use char because int might match the return type of a gcc2
41126    builtin and then its argument prototype would still apply.  */
41127 char $ac_func ();
41128 /* The GNU C library defines this for functions which it implements
41129     to always fail with ENOSYS.  Some functions are actually named
41130     something starting with __ and the normal name is an alias.  */
41131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41132 choke me
41133 #else
41134 char (*f) () = $ac_func;
41135 #endif
41136 #ifdef __cplusplus
41137 }
41138 #endif
41139
41140 int
41141 main ()
41142 {
41143 return f != $ac_func;
41144   ;
41145   return 0;
41146 }
41147 _ACEOF
41148 rm -f conftest.$ac_objext conftest$ac_exeext
41149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41150   (eval $ac_link) 2>conftest.er1
41151   ac_status=$?
41152   grep -v '^ *+' conftest.er1 >conftest.err
41153   rm -f conftest.er1
41154   cat conftest.err >&5
41155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41156   (exit $ac_status); } &&
41157          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41159   (eval $ac_try) 2>&5
41160   ac_status=$?
41161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41162   (exit $ac_status); }; } &&
41163          { ac_try='test -s conftest$ac_exeext'
41164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41165   (eval $ac_try) 2>&5
41166   ac_status=$?
41167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168   (exit $ac_status); }; }; then
41169   eval "$as_ac_var=yes"
41170 else
41171   echo "$as_me: failed program was:" >&5
41172 sed 's/^/| /' conftest.$ac_ext >&5
41173
41174 eval "$as_ac_var=no"
41175 fi
41176 rm -f conftest.err conftest.$ac_objext \
41177       conftest$ac_exeext conftest.$ac_ext
41178 fi
41179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41181 if test `eval echo '${'$as_ac_var'}'` = yes; then
41182   cat >>confdefs.h <<_ACEOF
41183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41184 _ACEOF
41185   cat >>confdefs.h <<\_ACEOF
41186 #define HAVE_GETSERVBYNAME 1
41187 _ACEOF
41188
41189 fi
41190 done
41191
41192       fi
41193
41194 if test "$wxUSE_THREADS" = "yes"; then
41195   cat >>confdefs.h <<\_ACEOF
41196 #define wxUSE_THREADS 1
41197 _ACEOF
41198
41199
41200   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41201 else
41202       if test "$wx_cv_func_strtok_r" = "yes"; then
41203     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41204 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41205     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41206         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41207         echo "$as_me:$LINENO: result: yes" >&5
41208 echo "${ECHO_T}yes" >&6
41209     else
41210         echo "$as_me:$LINENO: result: no" >&5
41211 echo "${ECHO_T}no" >&6
41212     fi
41213   fi
41214 fi
41215
41216 if test "$WXGTK20" = 1 ; then
41217   cat >>confdefs.h <<_ACEOF
41218 #define __WXGTK20__ $WXGTK20
41219 _ACEOF
41220
41221   WXGTK12=1
41222 fi
41223
41224 if test "$WXGTK12" = 1 ; then
41225   cat >>confdefs.h <<_ACEOF
41226 #define __WXGTK12__ $WXGTK12
41227 _ACEOF
41228
41229 fi
41230
41231 if test "$WXGTK127" = 1 ; then
41232   cat >>confdefs.h <<_ACEOF
41233 #define __WXGTK127__ $WXGTK127
41234 _ACEOF
41235
41236 fi
41237
41238 if test "$WXGPE" = 1 ; then
41239   cat >>confdefs.h <<_ACEOF
41240 #define __WXGPE__ $WXGPE
41241 _ACEOF
41242
41243 fi
41244
41245 DEBUG_CFLAGS=
41246 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41247     DEBUG_CFLAGS="-g"
41248     wxUSE_OPTIMISE=no
41249 fi
41250
41251 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41252     wxUSE_DEBUG_INFO=yes
41253     if test "$GCC" = yes; then
41254         DEBUG_CFLAGS="-ggdb"
41255     fi
41256 fi
41257
41258 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41259     cat >>confdefs.h <<\_ACEOF
41260 #define WXDEBUG 1
41261 _ACEOF
41262
41263     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41264 else
41265     if test "$wxUSE_GTK" = 1 ; then
41266         if test "x$wxGTK_VERSION" = "x1" ; then
41267             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41268         fi
41269     fi
41270 fi
41271
41272 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41273     cat >>confdefs.h <<\_ACEOF
41274 #define wxUSE_MEMORY_TRACING 1
41275 _ACEOF
41276
41277     cat >>confdefs.h <<\_ACEOF
41278 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41279 _ACEOF
41280
41281     cat >>confdefs.h <<\_ACEOF
41282 #define wxUSE_DEBUG_NEW_ALWAYS 1
41283 _ACEOF
41284
41285     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41286 fi
41287
41288 if test "$wxUSE_DMALLOC" = "yes" ; then
41289     DMALLOC_LIBS="-ldmallocthcxx"
41290 fi
41291
41292 PROFILE_FLAGS=
41293 if test "$wxUSE_PROFILE" = "yes" ; then
41294     PROFILE_FLAGS=" -pg"
41295 fi
41296
41297 if test "$GCC" = "yes" ; then
41298     if test "$wxUSE_NO_RTTI" = "yes" ; then
41299         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41300     fi
41301     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41302         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41303     fi
41304     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41305         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41306     fi
41307
41308                                                 case "${host}" in
41309       powerpc*-*-aix* )
41310         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41311         ;;
41312       *-hppa* )
41313         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41314         ;;
41315     esac
41316 fi
41317
41318 OPTIMISE_CFLAGS=
41319 if test "$wxUSE_OPTIMISE" = "no" ; then
41320     if test "$GCC" = yes ; then
41321                         OPTIMISE_CFLAGS="-O0"
41322     fi
41323 else
41324     if test "$GCC" = yes ; then
41325         case "${host}" in
41326             *-pc-os2_emx | *-pc-os2-emx )
41327                                                 OPTIMISE_CFLAGS="-O2"
41328             ;;
41329             *)
41330                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41331             ;;
41332         esac
41333     else
41334         OPTIMISE_CFLAGS="-O"
41335     fi
41336 fi
41337
41338
41339 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41340     cat >>confdefs.h <<\_ACEOF
41341 #define WXWIN_COMPATIBILITY_2_4 1
41342 _ACEOF
41343
41344
41345     WXWIN_COMPATIBILITY_2_6="yes"
41346 fi
41347
41348 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41349     cat >>confdefs.h <<\_ACEOF
41350 #define WXWIN_COMPATIBILITY_2_6 1
41351 _ACEOF
41352
41353 fi
41354
41355
41356 if test "$wxUSE_GUI" = "yes"; then
41357     cat >>confdefs.h <<\_ACEOF
41358 #define wxUSE_GUI 1
41359 _ACEOF
41360
41361
41362                                             fi
41363
41364
41365 if test "$wxUSE_UNIX" = "yes"; then
41366   cat >>confdefs.h <<\_ACEOF
41367 #define wxUSE_UNIX 1
41368 _ACEOF
41369
41370 fi
41371
41372
41373 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41374
41375     HAVE_DL_FUNCS=0
41376     HAVE_SHL_FUNCS=0
41377     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41378         if test "$USE_DARWIN" = 1; then
41379                         HAVE_DL_FUNCS=1
41380         elif test "$USE_DOS" = 1; then
41381             HAVE_DL_FUNCS=0
41382         else
41383
41384 for ac_func in dlopen
41385 do
41386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41387 echo "$as_me:$LINENO: checking for $ac_func" >&5
41388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41389 if eval "test \"\${$as_ac_var+set}\" = set"; then
41390   echo $ECHO_N "(cached) $ECHO_C" >&6
41391 else
41392   cat >conftest.$ac_ext <<_ACEOF
41393 /* confdefs.h.  */
41394 _ACEOF
41395 cat confdefs.h >>conftest.$ac_ext
41396 cat >>conftest.$ac_ext <<_ACEOF
41397 /* end confdefs.h.  */
41398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41400 #define $ac_func innocuous_$ac_func
41401
41402 /* System header to define __stub macros and hopefully few prototypes,
41403     which can conflict with char $ac_func (); below.
41404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41405     <limits.h> exists even on freestanding compilers.  */
41406
41407 #ifdef __STDC__
41408 # include <limits.h>
41409 #else
41410 # include <assert.h>
41411 #endif
41412
41413 #undef $ac_func
41414
41415 /* Override any gcc2 internal prototype to avoid an error.  */
41416 #ifdef __cplusplus
41417 extern "C"
41418 {
41419 #endif
41420 /* We use char because int might match the return type of a gcc2
41421    builtin and then its argument prototype would still apply.  */
41422 char $ac_func ();
41423 /* The GNU C library defines this for functions which it implements
41424     to always fail with ENOSYS.  Some functions are actually named
41425     something starting with __ and the normal name is an alias.  */
41426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41427 choke me
41428 #else
41429 char (*f) () = $ac_func;
41430 #endif
41431 #ifdef __cplusplus
41432 }
41433 #endif
41434
41435 int
41436 main ()
41437 {
41438 return f != $ac_func;
41439   ;
41440   return 0;
41441 }
41442 _ACEOF
41443 rm -f conftest.$ac_objext conftest$ac_exeext
41444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41445   (eval $ac_link) 2>conftest.er1
41446   ac_status=$?
41447   grep -v '^ *+' conftest.er1 >conftest.err
41448   rm -f conftest.er1
41449   cat conftest.err >&5
41450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41451   (exit $ac_status); } &&
41452          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41454   (eval $ac_try) 2>&5
41455   ac_status=$?
41456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41457   (exit $ac_status); }; } &&
41458          { ac_try='test -s conftest$ac_exeext'
41459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41460   (eval $ac_try) 2>&5
41461   ac_status=$?
41462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41463   (exit $ac_status); }; }; then
41464   eval "$as_ac_var=yes"
41465 else
41466   echo "$as_me: failed program was:" >&5
41467 sed 's/^/| /' conftest.$ac_ext >&5
41468
41469 eval "$as_ac_var=no"
41470 fi
41471 rm -f conftest.err conftest.$ac_objext \
41472       conftest$ac_exeext conftest.$ac_ext
41473 fi
41474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41476 if test `eval echo '${'$as_ac_var'}'` = yes; then
41477   cat >>confdefs.h <<_ACEOF
41478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41479 _ACEOF
41480
41481                 cat >>confdefs.h <<\_ACEOF
41482 #define HAVE_DLOPEN 1
41483 _ACEOF
41484
41485                 HAVE_DL_FUNCS=1
41486
41487 else
41488
41489                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41490 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41491 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41492   echo $ECHO_N "(cached) $ECHO_C" >&6
41493 else
41494   ac_check_lib_save_LIBS=$LIBS
41495 LIBS="-ldl  $LIBS"
41496 cat >conftest.$ac_ext <<_ACEOF
41497 /* confdefs.h.  */
41498 _ACEOF
41499 cat confdefs.h >>conftest.$ac_ext
41500 cat >>conftest.$ac_ext <<_ACEOF
41501 /* end confdefs.h.  */
41502
41503 /* Override any gcc2 internal prototype to avoid an error.  */
41504 #ifdef __cplusplus
41505 extern "C"
41506 #endif
41507 /* We use char because int might match the return type of a gcc2
41508    builtin and then its argument prototype would still apply.  */
41509 char dlopen ();
41510 int
41511 main ()
41512 {
41513 dlopen ();
41514   ;
41515   return 0;
41516 }
41517 _ACEOF
41518 rm -f conftest.$ac_objext conftest$ac_exeext
41519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41520   (eval $ac_link) 2>conftest.er1
41521   ac_status=$?
41522   grep -v '^ *+' conftest.er1 >conftest.err
41523   rm -f conftest.er1
41524   cat conftest.err >&5
41525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526   (exit $ac_status); } &&
41527          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41529   (eval $ac_try) 2>&5
41530   ac_status=$?
41531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532   (exit $ac_status); }; } &&
41533          { ac_try='test -s conftest$ac_exeext'
41534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41535   (eval $ac_try) 2>&5
41536   ac_status=$?
41537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41538   (exit $ac_status); }; }; then
41539   ac_cv_lib_dl_dlopen=yes
41540 else
41541   echo "$as_me: failed program was:" >&5
41542 sed 's/^/| /' conftest.$ac_ext >&5
41543
41544 ac_cv_lib_dl_dlopen=no
41545 fi
41546 rm -f conftest.err conftest.$ac_objext \
41547       conftest$ac_exeext conftest.$ac_ext
41548 LIBS=$ac_check_lib_save_LIBS
41549 fi
41550 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41551 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41552 if test $ac_cv_lib_dl_dlopen = yes; then
41553
41554                                 cat >>confdefs.h <<\_ACEOF
41555 #define HAVE_DLOPEN 1
41556 _ACEOF
41557
41558                                 HAVE_DL_FUNCS=1
41559                                 DL_LINK=" -ldl$DL_LINK"
41560
41561 else
41562
41563
41564 for ac_func in shl_load
41565 do
41566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41567 echo "$as_me:$LINENO: checking for $ac_func" >&5
41568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41569 if eval "test \"\${$as_ac_var+set}\" = set"; then
41570   echo $ECHO_N "(cached) $ECHO_C" >&6
41571 else
41572   cat >conftest.$ac_ext <<_ACEOF
41573 /* confdefs.h.  */
41574 _ACEOF
41575 cat confdefs.h >>conftest.$ac_ext
41576 cat >>conftest.$ac_ext <<_ACEOF
41577 /* end confdefs.h.  */
41578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41580 #define $ac_func innocuous_$ac_func
41581
41582 /* System header to define __stub macros and hopefully few prototypes,
41583     which can conflict with char $ac_func (); below.
41584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41585     <limits.h> exists even on freestanding compilers.  */
41586
41587 #ifdef __STDC__
41588 # include <limits.h>
41589 #else
41590 # include <assert.h>
41591 #endif
41592
41593 #undef $ac_func
41594
41595 /* Override any gcc2 internal prototype to avoid an error.  */
41596 #ifdef __cplusplus
41597 extern "C"
41598 {
41599 #endif
41600 /* We use char because int might match the return type of a gcc2
41601    builtin and then its argument prototype would still apply.  */
41602 char $ac_func ();
41603 /* The GNU C library defines this for functions which it implements
41604     to always fail with ENOSYS.  Some functions are actually named
41605     something starting with __ and the normal name is an alias.  */
41606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41607 choke me
41608 #else
41609 char (*f) () = $ac_func;
41610 #endif
41611 #ifdef __cplusplus
41612 }
41613 #endif
41614
41615 int
41616 main ()
41617 {
41618 return f != $ac_func;
41619   ;
41620   return 0;
41621 }
41622 _ACEOF
41623 rm -f conftest.$ac_objext conftest$ac_exeext
41624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41625   (eval $ac_link) 2>conftest.er1
41626   ac_status=$?
41627   grep -v '^ *+' conftest.er1 >conftest.err
41628   rm -f conftest.er1
41629   cat conftest.err >&5
41630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41631   (exit $ac_status); } &&
41632          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41634   (eval $ac_try) 2>&5
41635   ac_status=$?
41636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637   (exit $ac_status); }; } &&
41638          { ac_try='test -s conftest$ac_exeext'
41639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41640   (eval $ac_try) 2>&5
41641   ac_status=$?
41642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41643   (exit $ac_status); }; }; then
41644   eval "$as_ac_var=yes"
41645 else
41646   echo "$as_me: failed program was:" >&5
41647 sed 's/^/| /' conftest.$ac_ext >&5
41648
41649 eval "$as_ac_var=no"
41650 fi
41651 rm -f conftest.err conftest.$ac_objext \
41652       conftest$ac_exeext conftest.$ac_ext
41653 fi
41654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41656 if test `eval echo '${'$as_ac_var'}'` = yes; then
41657   cat >>confdefs.h <<_ACEOF
41658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41659 _ACEOF
41660
41661                                                 cat >>confdefs.h <<\_ACEOF
41662 #define HAVE_SHL_LOAD 1
41663 _ACEOF
41664
41665                                                 HAVE_SHL_FUNCS=1
41666
41667 else
41668
41669                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41670 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41671 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41672   echo $ECHO_N "(cached) $ECHO_C" >&6
41673 else
41674   ac_check_lib_save_LIBS=$LIBS
41675 LIBS="-lshl_load  $LIBS"
41676 cat >conftest.$ac_ext <<_ACEOF
41677 /* confdefs.h.  */
41678 _ACEOF
41679 cat confdefs.h >>conftest.$ac_ext
41680 cat >>conftest.$ac_ext <<_ACEOF
41681 /* end confdefs.h.  */
41682
41683 /* Override any gcc2 internal prototype to avoid an error.  */
41684 #ifdef __cplusplus
41685 extern "C"
41686 #endif
41687 /* We use char because int might match the return type of a gcc2
41688    builtin and then its argument prototype would still apply.  */
41689 char dld ();
41690 int
41691 main ()
41692 {
41693 dld ();
41694   ;
41695   return 0;
41696 }
41697 _ACEOF
41698 rm -f conftest.$ac_objext conftest$ac_exeext
41699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41700   (eval $ac_link) 2>conftest.er1
41701   ac_status=$?
41702   grep -v '^ *+' conftest.er1 >conftest.err
41703   rm -f conftest.er1
41704   cat conftest.err >&5
41705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41706   (exit $ac_status); } &&
41707          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41709   (eval $ac_try) 2>&5
41710   ac_status=$?
41711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41712   (exit $ac_status); }; } &&
41713          { ac_try='test -s conftest$ac_exeext'
41714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41715   (eval $ac_try) 2>&5
41716   ac_status=$?
41717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41718   (exit $ac_status); }; }; then
41719   ac_cv_lib_shl_load_dld=yes
41720 else
41721   echo "$as_me: failed program was:" >&5
41722 sed 's/^/| /' conftest.$ac_ext >&5
41723
41724 ac_cv_lib_shl_load_dld=no
41725 fi
41726 rm -f conftest.err conftest.$ac_objext \
41727       conftest$ac_exeext conftest.$ac_ext
41728 LIBS=$ac_check_lib_save_LIBS
41729 fi
41730 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41731 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41732 if test $ac_cv_lib_shl_load_dld = yes; then
41733
41734                                                                 HAVE_SHL_FUNCS=1
41735                                                                 DL_LINK=" -ldld$DL_LINK"
41736
41737 fi
41738
41739
41740 fi
41741 done
41742
41743
41744 fi
41745
41746
41747 fi
41748 done
41749
41750
41751                 if test "$HAVE_DL_FUNCS" = 1; then
41752
41753 for ac_func in dlerror
41754 do
41755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41756 echo "$as_me:$LINENO: checking for $ac_func" >&5
41757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41758 if eval "test \"\${$as_ac_var+set}\" = set"; then
41759   echo $ECHO_N "(cached) $ECHO_C" >&6
41760 else
41761   cat >conftest.$ac_ext <<_ACEOF
41762 /* confdefs.h.  */
41763 _ACEOF
41764 cat confdefs.h >>conftest.$ac_ext
41765 cat >>conftest.$ac_ext <<_ACEOF
41766 /* end confdefs.h.  */
41767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41769 #define $ac_func innocuous_$ac_func
41770
41771 /* System header to define __stub macros and hopefully few prototypes,
41772     which can conflict with char $ac_func (); below.
41773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41774     <limits.h> exists even on freestanding compilers.  */
41775
41776 #ifdef __STDC__
41777 # include <limits.h>
41778 #else
41779 # include <assert.h>
41780 #endif
41781
41782 #undef $ac_func
41783
41784 /* Override any gcc2 internal prototype to avoid an error.  */
41785 #ifdef __cplusplus
41786 extern "C"
41787 {
41788 #endif
41789 /* We use char because int might match the return type of a gcc2
41790    builtin and then its argument prototype would still apply.  */
41791 char $ac_func ();
41792 /* The GNU C library defines this for functions which it implements
41793     to always fail with ENOSYS.  Some functions are actually named
41794     something starting with __ and the normal name is an alias.  */
41795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41796 choke me
41797 #else
41798 char (*f) () = $ac_func;
41799 #endif
41800 #ifdef __cplusplus
41801 }
41802 #endif
41803
41804 int
41805 main ()
41806 {
41807 return f != $ac_func;
41808   ;
41809   return 0;
41810 }
41811 _ACEOF
41812 rm -f conftest.$ac_objext conftest$ac_exeext
41813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41814   (eval $ac_link) 2>conftest.er1
41815   ac_status=$?
41816   grep -v '^ *+' conftest.er1 >conftest.err
41817   rm -f conftest.er1
41818   cat conftest.err >&5
41819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41820   (exit $ac_status); } &&
41821          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41823   (eval $ac_try) 2>&5
41824   ac_status=$?
41825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41826   (exit $ac_status); }; } &&
41827          { ac_try='test -s conftest$ac_exeext'
41828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41829   (eval $ac_try) 2>&5
41830   ac_status=$?
41831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41832   (exit $ac_status); }; }; then
41833   eval "$as_ac_var=yes"
41834 else
41835   echo "$as_me: failed program was:" >&5
41836 sed 's/^/| /' conftest.$ac_ext >&5
41837
41838 eval "$as_ac_var=no"
41839 fi
41840 rm -f conftest.err conftest.$ac_objext \
41841       conftest$ac_exeext conftest.$ac_ext
41842 fi
41843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41845 if test `eval echo '${'$as_ac_var'}'` = yes; then
41846   cat >>confdefs.h <<_ACEOF
41847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41848 _ACEOF
41849  cat >>confdefs.h <<\_ACEOF
41850 #define HAVE_DLERROR 1
41851 _ACEOF
41852
41853 else
41854
41855                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41856 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41857 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41858   echo $ECHO_N "(cached) $ECHO_C" >&6
41859 else
41860   ac_check_lib_save_LIBS=$LIBS
41861 LIBS="-ldl  $LIBS"
41862 cat >conftest.$ac_ext <<_ACEOF
41863 /* confdefs.h.  */
41864 _ACEOF
41865 cat confdefs.h >>conftest.$ac_ext
41866 cat >>conftest.$ac_ext <<_ACEOF
41867 /* end confdefs.h.  */
41868
41869 /* Override any gcc2 internal prototype to avoid an error.  */
41870 #ifdef __cplusplus
41871 extern "C"
41872 #endif
41873 /* We use char because int might match the return type of a gcc2
41874    builtin and then its argument prototype would still apply.  */
41875 char dlerror ();
41876 int
41877 main ()
41878 {
41879 dlerror ();
41880   ;
41881   return 0;
41882 }
41883 _ACEOF
41884 rm -f conftest.$ac_objext conftest$ac_exeext
41885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41886   (eval $ac_link) 2>conftest.er1
41887   ac_status=$?
41888   grep -v '^ *+' conftest.er1 >conftest.err
41889   rm -f conftest.er1
41890   cat conftest.err >&5
41891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41892   (exit $ac_status); } &&
41893          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41895   (eval $ac_try) 2>&5
41896   ac_status=$?
41897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41898   (exit $ac_status); }; } &&
41899          { ac_try='test -s conftest$ac_exeext'
41900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41901   (eval $ac_try) 2>&5
41902   ac_status=$?
41903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41904   (exit $ac_status); }; }; then
41905   ac_cv_lib_dl_dlerror=yes
41906 else
41907   echo "$as_me: failed program was:" >&5
41908 sed 's/^/| /' conftest.$ac_ext >&5
41909
41910 ac_cv_lib_dl_dlerror=no
41911 fi
41912 rm -f conftest.err conftest.$ac_objext \
41913       conftest$ac_exeext conftest.$ac_ext
41914 LIBS=$ac_check_lib_save_LIBS
41915 fi
41916 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41917 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41918 if test $ac_cv_lib_dl_dlerror = yes; then
41919   cat >>confdefs.h <<\_ACEOF
41920 #define HAVE_DLERROR 1
41921 _ACEOF
41922
41923 fi
41924
41925
41926
41927 fi
41928 done
41929
41930         fi
41931         fi
41932
41933         if test "$HAVE_DL_FUNCS" = 0; then
41934             if test "$HAVE_SHL_FUNCS" = 0; then
41935               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41936                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41937 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41938                   wxUSE_DYNAMIC_LOADER=no
41939                   wxUSE_DYNLIB_CLASS=no
41940               else
41941                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41942 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41943               fi
41944             fi
41945         fi
41946     fi
41947 fi
41948
41949 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41950     cat >>confdefs.h <<\_ACEOF
41951 #define wxUSE_DYNAMIC_LOADER 1
41952 _ACEOF
41953
41954 fi
41955 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41956     cat >>confdefs.h <<\_ACEOF
41957 #define wxUSE_DYNLIB_CLASS 1
41958 _ACEOF
41959
41960 fi
41961
41962
41963
41964 if test "$wxUSE_PLUGINS" = "yes" ; then
41965     if test "$wxUSE_SHARED" = "no" ; then
41966         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41967 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41968         wxUSE_PLUGINS=no
41969     fi
41970     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41971         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41972 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41973         wxUSE_PLUGINS=no
41974     fi
41975     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41976         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41977 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41978         wxUSE_PLUGINS=no
41979     fi
41980     if test "$wxUSE_PLUGINS" = "yes" ; then
41981         cat >>confdefs.h <<\_ACEOF
41982 #define wxUSE_PLUGINS 1
41983 _ACEOF
41984
41985     fi
41986 fi
41987
41988
41989 if test "$wxUSE_STL" = "yes"; then
41990   cat >>confdefs.h <<\_ACEOF
41991 #define wxUSE_STL 1
41992 _ACEOF
41993
41994 fi
41995
41996 if test "$wxUSE_APPLE_IEEE" = "yes"; then
41997   cat >>confdefs.h <<\_ACEOF
41998 #define wxUSE_APPLE_IEEE 1
41999 _ACEOF
42000
42001 fi
42002
42003 if test "$wxUSE_TIMER" = "yes"; then
42004   cat >>confdefs.h <<\_ACEOF
42005 #define wxUSE_TIMER 1
42006 _ACEOF
42007
42008 fi
42009
42010 if test "$USE_UNIX" = "1" ; then
42011                 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42012 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
42013 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42014   echo $ECHO_N "(cached) $ECHO_C" >&6
42015 else
42016
42017         cat >conftest.$ac_ext <<_ACEOF
42018 /* confdefs.h.  */
42019 _ACEOF
42020 cat confdefs.h >>conftest.$ac_ext
42021 cat >>conftest.$ac_ext <<_ACEOF
42022 /* end confdefs.h.  */
42023
42024                 #include <sys/ioctl.h>
42025                 #include <sys/soundcard.h>
42026
42027 int
42028 main ()
42029 {
42030
42031                 ioctl(0, SNDCTL_DSP_SPEED, 0);
42032
42033   ;
42034   return 0;
42035 }
42036 _ACEOF
42037 rm -f conftest.$ac_objext conftest$ac_exeext
42038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42039   (eval $ac_link) 2>conftest.er1
42040   ac_status=$?
42041   grep -v '^ *+' conftest.er1 >conftest.err
42042   rm -f conftest.er1
42043   cat conftest.err >&5
42044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42045   (exit $ac_status); } &&
42046          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42048   (eval $ac_try) 2>&5
42049   ac_status=$?
42050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051   (exit $ac_status); }; } &&
42052          { ac_try='test -s conftest$ac_exeext'
42053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42054   (eval $ac_try) 2>&5
42055   ac_status=$?
42056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42057   (exit $ac_status); }; }; then
42058   ac_cv_header_sys_soundcard=yes
42059 else
42060   echo "$as_me: failed program was:" >&5
42061 sed 's/^/| /' conftest.$ac_ext >&5
42062
42063
42064                 saveLibs="$LIBS"
42065                 LIBS="$saveLibs -lossaudio"
42066                 cat >conftest.$ac_ext <<_ACEOF
42067 /* confdefs.h.  */
42068 _ACEOF
42069 cat confdefs.h >>conftest.$ac_ext
42070 cat >>conftest.$ac_ext <<_ACEOF
42071 /* end confdefs.h.  */
42072
42073                         #include <sys/ioctl.h>
42074                         #include <sys/soundcard.h>
42075
42076 int
42077 main ()
42078 {
42079
42080                         ioctl(0, SNDCTL_DSP_SPEED, 0);
42081
42082   ;
42083   return 0;
42084 }
42085 _ACEOF
42086 rm -f conftest.$ac_objext conftest$ac_exeext
42087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42088   (eval $ac_link) 2>conftest.er1
42089   ac_status=$?
42090   grep -v '^ *+' conftest.er1 >conftest.err
42091   rm -f conftest.er1
42092   cat conftest.err >&5
42093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42094   (exit $ac_status); } &&
42095          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42097   (eval $ac_try) 2>&5
42098   ac_status=$?
42099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42100   (exit $ac_status); }; } &&
42101          { ac_try='test -s conftest$ac_exeext'
42102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42103   (eval $ac_try) 2>&5
42104   ac_status=$?
42105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42106   (exit $ac_status); }; }; then
42107   ac_cv_header_sys_soundcard=yes
42108 else
42109   echo "$as_me: failed program was:" >&5
42110 sed 's/^/| /' conftest.$ac_ext >&5
42111
42112
42113                         LIBS="$saveLibs"
42114                         ac_cv_header_sys_soundcard=no
42115
42116
42117 fi
42118 rm -f conftest.err conftest.$ac_objext \
42119       conftest$ac_exeext conftest.$ac_ext
42120
42121
42122 fi
42123 rm -f conftest.err conftest.$ac_objext \
42124       conftest$ac_exeext conftest.$ac_ext
42125
42126 fi
42127 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42128 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
42129
42130     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42131         cat >>confdefs.h <<\_ACEOF
42132 #define HAVE_SYS_SOUNDCARD_H 1
42133 _ACEOF
42134
42135     else
42136         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42137     fi
42138 fi
42139 WITH_PLUGIN_SDL=0
42140 if test "$wxUSE_SOUND" = "yes"; then
42141   if test "$USE_UNIX" = "1" ; then
42142     if test "$wxUSE_LIBSDL" != "no"; then
42143
42144 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42145 if test "${with_sdl_prefix+set}" = set; then
42146   withval="$with_sdl_prefix"
42147   sdl_prefix="$withval"
42148 else
42149   sdl_prefix=""
42150 fi;
42151
42152 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42153 if test "${with_sdl_exec_prefix+set}" = set; then
42154   withval="$with_sdl_exec_prefix"
42155   sdl_exec_prefix="$withval"
42156 else
42157   sdl_exec_prefix=""
42158 fi;
42159 # Check whether --enable-sdltest or --disable-sdltest was given.
42160 if test "${enable_sdltest+set}" = set; then
42161   enableval="$enable_sdltest"
42162
42163 else
42164   enable_sdltest=yes
42165 fi;
42166
42167   if test x$sdl_exec_prefix != x ; then
42168     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42169     if test x${SDL_CONFIG+set} != xset ; then
42170       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42171     fi
42172   fi
42173   if test x$sdl_prefix != x ; then
42174     sdl_args="$sdl_args --prefix=$sdl_prefix"
42175     if test x${SDL_CONFIG+set} != xset ; then
42176       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42177     fi
42178   fi
42179
42180   if test "x$prefix" != xNONE; then
42181     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42182   fi
42183   # Extract the first word of "sdl-config", so it can be a program name with args.
42184 set dummy sdl-config; ac_word=$2
42185 echo "$as_me:$LINENO: checking for $ac_word" >&5
42186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42187 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42188   echo $ECHO_N "(cached) $ECHO_C" >&6
42189 else
42190   case $SDL_CONFIG in
42191   [\\/]* | ?:[\\/]*)
42192   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42193   ;;
42194   *)
42195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42196 for as_dir in $PATH
42197 do
42198   IFS=$as_save_IFS
42199   test -z "$as_dir" && as_dir=.
42200   for ac_exec_ext in '' $ac_executable_extensions; do
42201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42202     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42204     break 2
42205   fi
42206 done
42207 done
42208
42209   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42210   ;;
42211 esac
42212 fi
42213 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42214
42215 if test -n "$SDL_CONFIG"; then
42216   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42217 echo "${ECHO_T}$SDL_CONFIG" >&6
42218 else
42219   echo "$as_me:$LINENO: result: no" >&5
42220 echo "${ECHO_T}no" >&6
42221 fi
42222
42223   min_sdl_version=1.2.0
42224   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42225 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42226   no_sdl=""
42227   if test "$SDL_CONFIG" = "no" ; then
42228     no_sdl=yes
42229   else
42230     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42231     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42232
42233     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42234            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42235     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42236            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42237     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42238            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42239     if test "x$enable_sdltest" = "xyes" ; then
42240       ac_save_CFLAGS="$CFLAGS"
42241       ac_save_CXXFLAGS="$CXXFLAGS"
42242       ac_save_LIBS="$LIBS"
42243       CFLAGS="$CFLAGS $SDL_CFLAGS"
42244       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42245       LIBS="$LIBS $SDL_LIBS"
42246       rm -f conf.sdltest
42247       if test "$cross_compiling" = yes; then
42248   echo $ac_n "cross compiling; assumed OK... $ac_c"
42249 else
42250   cat >conftest.$ac_ext <<_ACEOF
42251 /* confdefs.h.  */
42252 _ACEOF
42253 cat confdefs.h >>conftest.$ac_ext
42254 cat >>conftest.$ac_ext <<_ACEOF
42255 /* end confdefs.h.  */
42256
42257 #include <stdio.h>
42258 #include <stdlib.h>
42259 #include <string.h>
42260 #include "SDL.h"
42261
42262 char*
42263 my_strdup (char *str)
42264 {
42265   char *new_str;
42266
42267   if (str)
42268     {
42269       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42270       strcpy (new_str, str);
42271     }
42272   else
42273     new_str = NULL;
42274
42275   return new_str;
42276 }
42277
42278 int main (int argc, char *argv[])
42279 {
42280   int major, minor, micro;
42281   char *tmp_version;
42282
42283   /* This hangs on some systems (?)
42284   system ("touch conf.sdltest");
42285   */
42286   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42287
42288   /* HP/UX 9 (%@#!) writes to sscanf strings */
42289   tmp_version = my_strdup("$min_sdl_version");
42290   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42291      printf("%s, bad version string\n", "$min_sdl_version");
42292      exit(1);
42293    }
42294
42295    if (($sdl_major_version > major) ||
42296       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42297       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42298     {
42299       return 0;
42300     }
42301   else
42302     {
42303       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42304       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42305       printf("*** best to upgrade to the required version.\n");
42306       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42307       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42308       printf("*** config.cache before re-running configure\n");
42309       return 1;
42310     }
42311 }
42312
42313
42314 _ACEOF
42315 rm -f conftest$ac_exeext
42316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42317   (eval $ac_link) 2>&5
42318   ac_status=$?
42319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42322   (eval $ac_try) 2>&5
42323   ac_status=$?
42324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42325   (exit $ac_status); }; }; then
42326   :
42327 else
42328   echo "$as_me: program exited with status $ac_status" >&5
42329 echo "$as_me: failed program was:" >&5
42330 sed 's/^/| /' conftest.$ac_ext >&5
42331
42332 ( exit $ac_status )
42333 no_sdl=yes
42334 fi
42335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42336 fi
42337        CFLAGS="$ac_save_CFLAGS"
42338        CXXFLAGS="$ac_save_CXXFLAGS"
42339        LIBS="$ac_save_LIBS"
42340      fi
42341   fi
42342   if test "x$no_sdl" = x ; then
42343      echo "$as_me:$LINENO: result: yes" >&5
42344 echo "${ECHO_T}yes" >&6
42345
42346                     EXTRALIBS_SDL="$SDL_LIBS"
42347                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42348                     cat >>confdefs.h <<\_ACEOF
42349 #define wxUSE_LIBSDL 1
42350 _ACEOF
42351
42352
42353   else
42354      echo "$as_me:$LINENO: result: no" >&5
42355 echo "${ECHO_T}no" >&6
42356      if test "$SDL_CONFIG" = "no" ; then
42357        echo "*** The sdl-config script installed by SDL could not be found"
42358        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42359        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42360        echo "*** full path to sdl-config."
42361      else
42362        if test -f conf.sdltest ; then
42363         :
42364        else
42365           echo "*** Could not run SDL test program, checking why..."
42366           CFLAGS="$CFLAGS $SDL_CFLAGS"
42367           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42368           LIBS="$LIBS $SDL_LIBS"
42369           cat >conftest.$ac_ext <<_ACEOF
42370 /* confdefs.h.  */
42371 _ACEOF
42372 cat confdefs.h >>conftest.$ac_ext
42373 cat >>conftest.$ac_ext <<_ACEOF
42374 /* end confdefs.h.  */
42375
42376 #include <stdio.h>
42377 #include "SDL.h"
42378
42379 int main(int argc, char *argv[])
42380 { return 0; }
42381 #undef  main
42382 #define main K_and_R_C_main
42383
42384 int
42385 main ()
42386 {
42387  return 0;
42388   ;
42389   return 0;
42390 }
42391 _ACEOF
42392 rm -f conftest.$ac_objext conftest$ac_exeext
42393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42394   (eval $ac_link) 2>conftest.er1
42395   ac_status=$?
42396   grep -v '^ *+' conftest.er1 >conftest.err
42397   rm -f conftest.er1
42398   cat conftest.err >&5
42399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42400   (exit $ac_status); } &&
42401          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42403   (eval $ac_try) 2>&5
42404   ac_status=$?
42405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42406   (exit $ac_status); }; } &&
42407          { ac_try='test -s conftest$ac_exeext'
42408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42409   (eval $ac_try) 2>&5
42410   ac_status=$?
42411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42412   (exit $ac_status); }; }; then
42413    echo "*** The test program compiled, but did not run. This usually means"
42414           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42415           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42416           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42417           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42418           echo "*** is required on your system"
42419           echo "***"
42420           echo "*** If you have an old version installed, it is best to remove it, although"
42421           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42422 else
42423   echo "$as_me: failed program was:" >&5
42424 sed 's/^/| /' conftest.$ac_ext >&5
42425
42426  echo "*** The test program failed to compile or link. See the file config.log for the"
42427           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42428           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42429           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42430 fi
42431 rm -f conftest.err conftest.$ac_objext \
42432       conftest$ac_exeext conftest.$ac_ext
42433           CFLAGS="$ac_save_CFLAGS"
42434           CXXFLAGS="$ac_save_CXXFLAGS"
42435           LIBS="$ac_save_LIBS"
42436        fi
42437      fi
42438      SDL_CFLAGS=""
42439      SDL_LIBS=""
42440      wxUSE_LIBSDL="no"
42441   fi
42442
42443
42444   rm -f conf.sdltest
42445
42446       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42447         WITH_PLUGIN_SDL=1
42448       fi
42449     fi
42450   fi
42451
42452   cat >>confdefs.h <<\_ACEOF
42453 #define wxUSE_SOUND 1
42454 _ACEOF
42455
42456   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42457 fi
42458
42459 if test "$WXGTK20" = 1; then
42460     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42461         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42462
42463
42464 pkg_failed=no
42465 echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42466 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
42467
42468 if test -n "$PKG_CONFIG"; then
42469     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42470         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42471     else
42472         if test -n "$PKG_CONFIG" && \
42473     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42474   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42475   ac_status=$?
42476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477   (exit $ac_status); }; then
42478   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42479 else
42480   pkg_failed=yes
42481 fi
42482     fi
42483 else
42484         pkg_failed=untried
42485 fi
42486 if test -n "$PKG_CONFIG"; then
42487     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42488         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42489     else
42490         if test -n "$PKG_CONFIG" && \
42491     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42492   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42493   ac_status=$?
42494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42495   (exit $ac_status); }; then
42496   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42497 else
42498   pkg_failed=yes
42499 fi
42500     fi
42501 else
42502         pkg_failed=untried
42503 fi
42504
42505
42506
42507 if test $pkg_failed = yes; then
42508
42509 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42510         _pkg_short_errors_supported=yes
42511 else
42512         _pkg_short_errors_supported=no
42513 fi
42514         if test $_pkg_short_errors_supported = yes; then
42515                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42516         else
42517                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42518         fi
42519         # Put the nasty error message in config.log where it belongs
42520         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42521
42522
42523                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42524 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42525                         wxUSE_LIBGNOMEPRINT="no"
42526
42527
42528 elif test $pkg_failed = untried; then
42529
42530                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42531 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42532                         wxUSE_LIBGNOMEPRINT="no"
42533
42534
42535 else
42536         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42537         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42538         echo "$as_me:$LINENO: result: yes" >&5
42539 echo "${ECHO_T}yes" >&6
42540
42541                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42542                         cat >>confdefs.h <<\_ACEOF
42543 #define wxUSE_LIBGNOMEPRINT 1
42544 _ACEOF
42545
42546
42547 fi
42548         fi
42549     fi
42550 fi
42551
42552 if test "$WXGTK20" = 1; then
42553     if test "$wxUSE_MIMETYPE" = "yes" ; then
42554         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42555
42556
42557 pkg_failed=no
42558 echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42559 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
42560
42561 if test -n "$PKG_CONFIG"; then
42562     if test -n "$GNOMEVFS_CFLAGS"; then
42563         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42564     else
42565         if test -n "$PKG_CONFIG" && \
42566     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42567   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42568   ac_status=$?
42569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42570   (exit $ac_status); }; then
42571   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42572 else
42573   pkg_failed=yes
42574 fi
42575     fi
42576 else
42577         pkg_failed=untried
42578 fi
42579 if test -n "$PKG_CONFIG"; then
42580     if test -n "$GNOMEVFS_LIBS"; then
42581         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42582     else
42583         if test -n "$PKG_CONFIG" && \
42584     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42585   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42586   ac_status=$?
42587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42588   (exit $ac_status); }; then
42589   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42590 else
42591   pkg_failed=yes
42592 fi
42593     fi
42594 else
42595         pkg_failed=untried
42596 fi
42597
42598
42599
42600 if test $pkg_failed = yes; then
42601
42602 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42603         _pkg_short_errors_supported=yes
42604 else
42605         _pkg_short_errors_supported=no
42606 fi
42607         if test $_pkg_short_errors_supported = yes; then
42608                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42609         else
42610                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42611         fi
42612         # Put the nasty error message in config.log where it belongs
42613         echo "$GNOMEVFS_PKG_ERRORS" >&5
42614
42615
42616                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42617 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42618                         wxUSE_LIBGNOMEVFS="no"
42619
42620
42621 elif test $pkg_failed = untried; then
42622
42623                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42624 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42625                         wxUSE_LIBGNOMEVFS="no"
42626
42627
42628 else
42629         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42630         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42631         echo "$as_me:$LINENO: result: yes" >&5
42632 echo "${ECHO_T}yes" >&6
42633
42634                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42635                         cat >>confdefs.h <<\_ACEOF
42636 #define wxUSE_LIBGNOMEVFS 1
42637 _ACEOF
42638
42639
42640 fi
42641         fi
42642     fi
42643 fi
42644
42645 if test "$WXGTK20" = 1; then
42646     if test "$wxUSE_LIBHILDON" = "yes" ; then
42647
42648 pkg_failed=no
42649 echo "$as_me:$LINENO: checking for HILDON" >&5
42650 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
42651
42652 if test -n "$PKG_CONFIG"; then
42653     if test -n "$HILDON_CFLAGS"; then
42654         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42655     else
42656         if test -n "$PKG_CONFIG" && \
42657     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42658   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42659   ac_status=$?
42660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42661   (exit $ac_status); }; then
42662   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42663 else
42664   pkg_failed=yes
42665 fi
42666     fi
42667 else
42668         pkg_failed=untried
42669 fi
42670 if test -n "$PKG_CONFIG"; then
42671     if test -n "$HILDON_LIBS"; then
42672         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42673     else
42674         if test -n "$PKG_CONFIG" && \
42675     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42676   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42677   ac_status=$?
42678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42679   (exit $ac_status); }; then
42680   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42681 else
42682   pkg_failed=yes
42683 fi
42684     fi
42685 else
42686         pkg_failed=untried
42687 fi
42688
42689
42690
42691 if test $pkg_failed = yes; then
42692
42693 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42694         _pkg_short_errors_supported=yes
42695 else
42696         _pkg_short_errors_supported=no
42697 fi
42698         if test $_pkg_short_errors_supported = yes; then
42699                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42700         else
42701                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42702         fi
42703         # Put the nasty error message in config.log where it belongs
42704         echo "$HILDON_PKG_ERRORS" >&5
42705
42706
42707                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42708 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42709                         wxUSE_LIBHILDON="no"
42710
42711
42712 elif test $pkg_failed = untried; then
42713
42714                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42715 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42716                         wxUSE_LIBHILDON="no"
42717
42718
42719 else
42720         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42721         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42722         echo "$as_me:$LINENO: result: yes" >&5
42723 echo "${ECHO_T}yes" >&6
42724
42725                 EXTRALIBS_HILDON="$HILDON_LIBS"
42726                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42727                 cat >>confdefs.h <<\_ACEOF
42728 #define wxUSE_LIBHILDON 1
42729 _ACEOF
42730
42731
42732 fi
42733     fi
42734 fi
42735
42736 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42737   cat >>confdefs.h <<\_ACEOF
42738 #define wxUSE_CMDLINE_PARSER 1
42739 _ACEOF
42740
42741 fi
42742
42743 if test "$wxUSE_STOPWATCH" = "yes"; then
42744   cat >>confdefs.h <<\_ACEOF
42745 #define wxUSE_STOPWATCH 1
42746 _ACEOF
42747
42748 fi
42749
42750 if test "$wxUSE_DATETIME" = "yes"; then
42751   cat >>confdefs.h <<\_ACEOF
42752 #define wxUSE_DATETIME 1
42753 _ACEOF
42754
42755 fi
42756
42757 if test "$wxUSE_FILE" = "yes"; then
42758   cat >>confdefs.h <<\_ACEOF
42759 #define wxUSE_FILE 1
42760 _ACEOF
42761
42762 fi
42763
42764 if test "$wxUSE_FFILE" = "yes"; then
42765   cat >>confdefs.h <<\_ACEOF
42766 #define wxUSE_FFILE 1
42767 _ACEOF
42768
42769 fi
42770
42771 if test "$wxUSE_FILESYSTEM" = "yes"; then
42772   cat >>confdefs.h <<\_ACEOF
42773 #define wxUSE_FILESYSTEM 1
42774 _ACEOF
42775
42776 fi
42777
42778 if test "$wxUSE_FS_ZIP" = "yes"; then
42779   cat >>confdefs.h <<\_ACEOF
42780 #define wxUSE_FS_ZIP 1
42781 _ACEOF
42782
42783 fi
42784
42785 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
42786   cat >>confdefs.h <<\_ACEOF
42787 #define wxUSE_ARCHIVE_STREAMS 1
42788 _ACEOF
42789
42790 fi
42791
42792 if test "$wxUSE_ZIPSTREAM" = "yes"; then
42793   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42794     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42795 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42796   elif test "$wxUSE_ZLIB" = "no"; then
42797     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42798 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42799   else
42800     cat >>confdefs.h <<\_ACEOF
42801 #define wxUSE_ZIPSTREAM 1
42802 _ACEOF
42803
42804   fi
42805 fi
42806
42807 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42808   if test "$USE_UNIX" != 1; then
42809     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42810 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42811     wxUSE_ON_FATAL_EXCEPTION=no
42812   else
42813     cat >>confdefs.h <<\_ACEOF
42814 #define wxUSE_ON_FATAL_EXCEPTION 1
42815 _ACEOF
42816
42817   fi
42818 fi
42819
42820 if test "$wxUSE_STACKWALKER" = "yes"; then
42821     cat >>confdefs.h <<\_ACEOF
42822 #define wxUSE_STACKWALKER 1
42823 _ACEOF
42824
42825 fi
42826
42827 if test "$wxUSE_DEBUGREPORT" = "yes"; then
42828     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42829         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42830 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
42831         wxUSE_DEBUGREPORT=no
42832     else
42833         cat >>confdefs.h <<\_ACEOF
42834 #define wxUSE_DEBUGREPORT 1
42835 _ACEOF
42836
42837         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42838             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42839         fi
42840     fi
42841 fi
42842
42843 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42844   cat >>confdefs.h <<\_ACEOF
42845 #define wxUSE_SNGLINST_CHECKER 1
42846 _ACEOF
42847
42848 fi
42849
42850 if test "$wxUSE_BUSYINFO" = "yes"; then
42851   cat >>confdefs.h <<\_ACEOF
42852 #define wxUSE_BUSYINFO 1
42853 _ACEOF
42854
42855 fi
42856
42857 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42858   cat >>confdefs.h <<\_ACEOF
42859 #define wxUSE_STD_IOSTREAM 1
42860 _ACEOF
42861
42862 fi
42863
42864 if test "$wxUSE_STD_STRING" = "yes"; then
42865   cat >>confdefs.h <<\_ACEOF
42866 #define wxUSE_STD_STRING 1
42867 _ACEOF
42868
42869 fi
42870
42871 if test "$wxUSE_STDPATHS" = "yes"; then
42872   cat >>confdefs.h <<\_ACEOF
42873 #define wxUSE_STDPATHS 1
42874 _ACEOF
42875
42876 fi
42877
42878 if test "$wxUSE_TEXTBUFFER" = "yes"; then
42879     cat >>confdefs.h <<\_ACEOF
42880 #define wxUSE_TEXTBUFFER 1
42881 _ACEOF
42882
42883 fi
42884
42885 if test "$wxUSE_TEXTFILE" = "yes"; then
42886   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42887     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42888 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42889   else
42890     cat >>confdefs.h <<\_ACEOF
42891 #define wxUSE_TEXTFILE 1
42892 _ACEOF
42893
42894   fi
42895 fi
42896
42897 if test "$wxUSE_CONFIG" = "yes" ; then
42898   if test "$wxUSE_TEXTFILE" != "yes"; then
42899     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42900 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42901   else
42902     cat >>confdefs.h <<\_ACEOF
42903 #define wxUSE_CONFIG 1
42904 _ACEOF
42905
42906     cat >>confdefs.h <<\_ACEOF
42907 #define wxUSE_CONFIG_NATIVE 1
42908 _ACEOF
42909
42910     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42911   fi
42912 fi
42913
42914 if test "$wxUSE_INTL" = "yes" ; then
42915   if test "$wxUSE_FILE" != "yes"; then
42916     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42917 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42918   else
42919     cat >>confdefs.h <<\_ACEOF
42920 #define wxUSE_INTL 1
42921 _ACEOF
42922
42923     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42924     GUIDIST="$GUIDIST INTL_DIST"
42925   fi
42926 fi
42927
42928 if test "$wxUSE_LOG" = "yes"; then
42929   cat >>confdefs.h <<\_ACEOF
42930 #define wxUSE_LOG 1
42931 _ACEOF
42932
42933
42934     if test "$wxUSE_LOGGUI" = "yes"; then
42935       cat >>confdefs.h <<\_ACEOF
42936 #define wxUSE_LOGGUI 1
42937 _ACEOF
42938
42939     fi
42940
42941     if test "$wxUSE_LOGWINDOW" = "yes"; then
42942       cat >>confdefs.h <<\_ACEOF
42943 #define wxUSE_LOGWINDOW 1
42944 _ACEOF
42945
42946     fi
42947
42948     if test "$wxUSE_LOGDIALOG" = "yes"; then
42949       cat >>confdefs.h <<\_ACEOF
42950 #define wxUSE_LOG_DIALOG 1
42951 _ACEOF
42952
42953     fi
42954
42955         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
42956 fi
42957
42958 if test "$wxUSE_LONGLONG" = "yes"; then
42959   cat >>confdefs.h <<\_ACEOF
42960 #define wxUSE_LONGLONG 1
42961 _ACEOF
42962
42963 fi
42964
42965 if test "$wxUSE_GEOMETRY" = "yes"; then
42966   cat >>confdefs.h <<\_ACEOF
42967 #define wxUSE_GEOMETRY 1
42968 _ACEOF
42969
42970 fi
42971
42972 if test "$wxUSE_STREAMS" = "yes" ; then
42973   cat >>confdefs.h <<\_ACEOF
42974 #define wxUSE_STREAMS 1
42975 _ACEOF
42976
42977 fi
42978
42979 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42980   cat >>confdefs.h <<\_ACEOF
42981 #define wxUSE_PRINTF_POS_PARAMS 1
42982 _ACEOF
42983
42984 fi
42985
42986
42987
42988 if test "$wxUSE_DATETIME" = "yes"; then
42989
42990 for ac_func in strptime
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_cxx_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
43087 fi
43088 done
43089
43090     if test "$ac_cv_func_strptime" = "yes"; then
43091         echo "$as_me:$LINENO: checking for strptime declaration" >&5
43092 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43093 if test "${wx_cv_func_strptime_decl+set}" = set; then
43094   echo $ECHO_N "(cached) $ECHO_C" >&6
43095 else
43096
43097                 cat >conftest.$ac_ext <<_ACEOF
43098 /* confdefs.h.  */
43099 _ACEOF
43100 cat confdefs.h >>conftest.$ac_ext
43101 cat >>conftest.$ac_ext <<_ACEOF
43102 /* end confdefs.h.  */
43103
43104                         #include <time.h>
43105
43106 int
43107 main ()
43108 {
43109
43110                         struct tm t;
43111                         strptime("foo", "bar", &t);
43112
43113   ;
43114   return 0;
43115 }
43116 _ACEOF
43117 rm -f conftest.$ac_objext
43118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43119   (eval $ac_compile) 2>conftest.er1
43120   ac_status=$?
43121   grep -v '^ *+' conftest.er1 >conftest.err
43122   rm -f conftest.er1
43123   cat conftest.err >&5
43124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125   (exit $ac_status); } &&
43126          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43128   (eval $ac_try) 2>&5
43129   ac_status=$?
43130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43131   (exit $ac_status); }; } &&
43132          { ac_try='test -s conftest.$ac_objext'
43133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43134   (eval $ac_try) 2>&5
43135   ac_status=$?
43136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43137   (exit $ac_status); }; }; then
43138   wx_cv_func_strptime_decl=yes
43139 else
43140   echo "$as_me: failed program was:" >&5
43141 sed 's/^/| /' conftest.$ac_ext >&5
43142
43143 wx_cv_func_strptime_decl=no
43144
43145 fi
43146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43147
43148
43149 fi
43150 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43151 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43152     fi
43153     if test "$wx_cv_func_strptime_decl" = "yes"; then
43154         cat >>confdefs.h <<\_ACEOF
43155 #define HAVE_STRPTIME_DECL 1
43156 _ACEOF
43157
43158     fi
43159
43160             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43161 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43162 if test "${wx_cv_var_timezone+set}" = set; then
43163   echo $ECHO_N "(cached) $ECHO_C" >&6
43164 else
43165
43166                         cat >conftest.$ac_ext <<_ACEOF
43167 /* confdefs.h.  */
43168 _ACEOF
43169 cat confdefs.h >>conftest.$ac_ext
43170 cat >>conftest.$ac_ext <<_ACEOF
43171 /* end confdefs.h.  */
43172
43173                                 #include <time.h>
43174
43175 int
43176 main ()
43177 {
43178
43179                                 int tz;
43180                                 tz = timezone;
43181
43182   ;
43183   return 0;
43184 }
43185 _ACEOF
43186 rm -f conftest.$ac_objext
43187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43188   (eval $ac_compile) 2>conftest.er1
43189   ac_status=$?
43190   grep -v '^ *+' conftest.er1 >conftest.err
43191   rm -f conftest.er1
43192   cat conftest.err >&5
43193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43194   (exit $ac_status); } &&
43195          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43197   (eval $ac_try) 2>&5
43198   ac_status=$?
43199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43200   (exit $ac_status); }; } &&
43201          { ac_try='test -s conftest.$ac_objext'
43202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43203   (eval $ac_try) 2>&5
43204   ac_status=$?
43205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43206   (exit $ac_status); }; }; then
43207
43208                                 wx_cv_var_timezone=timezone
43209
43210 else
43211   echo "$as_me: failed program was:" >&5
43212 sed 's/^/| /' conftest.$ac_ext >&5
43213
43214
43215                                 cat >conftest.$ac_ext <<_ACEOF
43216 /* confdefs.h.  */
43217 _ACEOF
43218 cat confdefs.h >>conftest.$ac_ext
43219 cat >>conftest.$ac_ext <<_ACEOF
43220 /* end confdefs.h.  */
43221
43222                                         #include <time.h>
43223
43224 int
43225 main ()
43226 {
43227
43228                                         int tz;
43229                                         tz = _timezone;
43230
43231   ;
43232   return 0;
43233 }
43234 _ACEOF
43235 rm -f conftest.$ac_objext
43236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43237   (eval $ac_compile) 2>conftest.er1
43238   ac_status=$?
43239   grep -v '^ *+' conftest.er1 >conftest.err
43240   rm -f conftest.er1
43241   cat conftest.err >&5
43242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43243   (exit $ac_status); } &&
43244          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43246   (eval $ac_try) 2>&5
43247   ac_status=$?
43248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43249   (exit $ac_status); }; } &&
43250          { ac_try='test -s conftest.$ac_objext'
43251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43252   (eval $ac_try) 2>&5
43253   ac_status=$?
43254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43255   (exit $ac_status); }; }; then
43256
43257                                         wx_cv_var_timezone=_timezone
43258
43259 else
43260   echo "$as_me: failed program was:" >&5
43261 sed 's/^/| /' conftest.$ac_ext >&5
43262
43263
43264                                         cat >conftest.$ac_ext <<_ACEOF
43265 /* confdefs.h.  */
43266 _ACEOF
43267 cat confdefs.h >>conftest.$ac_ext
43268 cat >>conftest.$ac_ext <<_ACEOF
43269 /* end confdefs.h.  */
43270
43271                                                 #include <time.h>
43272
43273 int
43274 main ()
43275 {
43276
43277                                                 int tz;
43278                                                 tz = __timezone;
43279
43280   ;
43281   return 0;
43282 }
43283 _ACEOF
43284 rm -f conftest.$ac_objext
43285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43286   (eval $ac_compile) 2>conftest.er1
43287   ac_status=$?
43288   grep -v '^ *+' conftest.er1 >conftest.err
43289   rm -f conftest.er1
43290   cat conftest.err >&5
43291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43292   (exit $ac_status); } &&
43293          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43295   (eval $ac_try) 2>&5
43296   ac_status=$?
43297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298   (exit $ac_status); }; } &&
43299          { ac_try='test -s conftest.$ac_objext'
43300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43301   (eval $ac_try) 2>&5
43302   ac_status=$?
43303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304   (exit $ac_status); }; }; then
43305
43306                                                 wx_cv_var_timezone=__timezone
43307
43308 else
43309   echo "$as_me: failed program was:" >&5
43310 sed 's/^/| /' conftest.$ac_ext >&5
43311
43312
43313                                                 if test "$USE_DOS" = 0 ; then
43314                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43315 echo "$as_me: WARNING: no timezone variable" >&2;}
43316                                                 fi
43317
43318
43319 fi
43320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43321
43322
43323 fi
43324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43325
43326
43327 fi
43328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43329
43330
43331 fi
43332 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43333 echo "${ECHO_T}$wx_cv_var_timezone" >&6
43334
43335         if test "x$wx_cv_var_timezone" != x ; then
43336         cat >>confdefs.h <<_ACEOF
43337 #define WX_TIMEZONE $wx_cv_var_timezone
43338 _ACEOF
43339
43340     fi
43341
43342
43343 for ac_func in localtime
43344 do
43345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43346 echo "$as_me:$LINENO: checking for $ac_func" >&5
43347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43348 if eval "test \"\${$as_ac_var+set}\" = set"; then
43349   echo $ECHO_N "(cached) $ECHO_C" >&6
43350 else
43351   cat >conftest.$ac_ext <<_ACEOF
43352 /* confdefs.h.  */
43353 _ACEOF
43354 cat confdefs.h >>conftest.$ac_ext
43355 cat >>conftest.$ac_ext <<_ACEOF
43356 /* end confdefs.h.  */
43357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43359 #define $ac_func innocuous_$ac_func
43360
43361 /* System header to define __stub macros and hopefully few prototypes,
43362     which can conflict with char $ac_func (); below.
43363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43364     <limits.h> exists even on freestanding compilers.  */
43365
43366 #ifdef __STDC__
43367 # include <limits.h>
43368 #else
43369 # include <assert.h>
43370 #endif
43371
43372 #undef $ac_func
43373
43374 /* Override any gcc2 internal prototype to avoid an error.  */
43375 #ifdef __cplusplus
43376 extern "C"
43377 {
43378 #endif
43379 /* We use char because int might match the return type of a gcc2
43380    builtin and then its argument prototype would still apply.  */
43381 char $ac_func ();
43382 /* The GNU C library defines this for functions which it implements
43383     to always fail with ENOSYS.  Some functions are actually named
43384     something starting with __ and the normal name is an alias.  */
43385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43386 choke me
43387 #else
43388 char (*f) () = $ac_func;
43389 #endif
43390 #ifdef __cplusplus
43391 }
43392 #endif
43393
43394 int
43395 main ()
43396 {
43397 return f != $ac_func;
43398   ;
43399   return 0;
43400 }
43401 _ACEOF
43402 rm -f conftest.$ac_objext conftest$ac_exeext
43403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43404   (eval $ac_link) 2>conftest.er1
43405   ac_status=$?
43406   grep -v '^ *+' conftest.er1 >conftest.err
43407   rm -f conftest.er1
43408   cat conftest.err >&5
43409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43410   (exit $ac_status); } &&
43411          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43413   (eval $ac_try) 2>&5
43414   ac_status=$?
43415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416   (exit $ac_status); }; } &&
43417          { ac_try='test -s conftest$ac_exeext'
43418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43419   (eval $ac_try) 2>&5
43420   ac_status=$?
43421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422   (exit $ac_status); }; }; then
43423   eval "$as_ac_var=yes"
43424 else
43425   echo "$as_me: failed program was:" >&5
43426 sed 's/^/| /' conftest.$ac_ext >&5
43427
43428 eval "$as_ac_var=no"
43429 fi
43430 rm -f conftest.err conftest.$ac_objext \
43431       conftest$ac_exeext conftest.$ac_ext
43432 fi
43433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43435 if test `eval echo '${'$as_ac_var'}'` = yes; then
43436   cat >>confdefs.h <<_ACEOF
43437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43438 _ACEOF
43439
43440 fi
43441 done
43442
43443
43444     if test "$ac_cv_func_localtime" = "yes"; then
43445         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43446 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43447 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43448   echo $ECHO_N "(cached) $ECHO_C" >&6
43449 else
43450
43451             cat >conftest.$ac_ext <<_ACEOF
43452 /* confdefs.h.  */
43453 _ACEOF
43454 cat confdefs.h >>conftest.$ac_ext
43455 cat >>conftest.$ac_ext <<_ACEOF
43456 /* end confdefs.h.  */
43457
43458                     #include <time.h>
43459
43460 int
43461 main ()
43462 {
43463
43464                     struct tm tm;
43465                     tm.tm_gmtoff++;
43466
43467   ;
43468   return 0;
43469 }
43470 _ACEOF
43471 rm -f conftest.$ac_objext
43472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43473   (eval $ac_compile) 2>conftest.er1
43474   ac_status=$?
43475   grep -v '^ *+' conftest.er1 >conftest.err
43476   rm -f conftest.er1
43477   cat conftest.err >&5
43478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43479   (exit $ac_status); } &&
43480          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43482   (eval $ac_try) 2>&5
43483   ac_status=$?
43484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43485   (exit $ac_status); }; } &&
43486          { ac_try='test -s conftest.$ac_objext'
43487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43488   (eval $ac_try) 2>&5
43489   ac_status=$?
43490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43491   (exit $ac_status); }; }; then
43492
43493                     wx_cv_struct_tm_has_gmtoff=yes
43494
43495 else
43496   echo "$as_me: failed program was:" >&5
43497 sed 's/^/| /' conftest.$ac_ext >&5
43498
43499 wx_cv_struct_tm_has_gmtoff=no
43500
43501 fi
43502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43503
43504 fi
43505 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43506 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43507     fi
43508
43509     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43510         cat >>confdefs.h <<\_ACEOF
43511 #define WX_GMTOFF_IN_TM 1
43512 _ACEOF
43513
43514     fi
43515
43516
43517
43518 for ac_func in gettimeofday ftime
43519 do
43520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43521 echo "$as_me:$LINENO: checking for $ac_func" >&5
43522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43523 if eval "test \"\${$as_ac_var+set}\" = set"; then
43524   echo $ECHO_N "(cached) $ECHO_C" >&6
43525 else
43526   cat >conftest.$ac_ext <<_ACEOF
43527 /* confdefs.h.  */
43528 _ACEOF
43529 cat confdefs.h >>conftest.$ac_ext
43530 cat >>conftest.$ac_ext <<_ACEOF
43531 /* end confdefs.h.  */
43532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43534 #define $ac_func innocuous_$ac_func
43535
43536 /* System header to define __stub macros and hopefully few prototypes,
43537     which can conflict with char $ac_func (); below.
43538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43539     <limits.h> exists even on freestanding compilers.  */
43540
43541 #ifdef __STDC__
43542 # include <limits.h>
43543 #else
43544 # include <assert.h>
43545 #endif
43546
43547 #undef $ac_func
43548
43549 /* Override any gcc2 internal prototype to avoid an error.  */
43550 #ifdef __cplusplus
43551 extern "C"
43552 {
43553 #endif
43554 /* We use char because int might match the return type of a gcc2
43555    builtin and then its argument prototype would still apply.  */
43556 char $ac_func ();
43557 /* The GNU C library defines this for functions which it implements
43558     to always fail with ENOSYS.  Some functions are actually named
43559     something starting with __ and the normal name is an alias.  */
43560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43561 choke me
43562 #else
43563 char (*f) () = $ac_func;
43564 #endif
43565 #ifdef __cplusplus
43566 }
43567 #endif
43568
43569 int
43570 main ()
43571 {
43572 return f != $ac_func;
43573   ;
43574   return 0;
43575 }
43576 _ACEOF
43577 rm -f conftest.$ac_objext conftest$ac_exeext
43578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43579   (eval $ac_link) 2>conftest.er1
43580   ac_status=$?
43581   grep -v '^ *+' conftest.er1 >conftest.err
43582   rm -f conftest.er1
43583   cat conftest.err >&5
43584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43585   (exit $ac_status); } &&
43586          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43588   (eval $ac_try) 2>&5
43589   ac_status=$?
43590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43591   (exit $ac_status); }; } &&
43592          { ac_try='test -s conftest$ac_exeext'
43593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43594   (eval $ac_try) 2>&5
43595   ac_status=$?
43596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43597   (exit $ac_status); }; }; then
43598   eval "$as_ac_var=yes"
43599 else
43600   echo "$as_me: failed program was:" >&5
43601 sed 's/^/| /' conftest.$ac_ext >&5
43602
43603 eval "$as_ac_var=no"
43604 fi
43605 rm -f conftest.err conftest.$ac_objext \
43606       conftest$ac_exeext conftest.$ac_ext
43607 fi
43608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43610 if test `eval echo '${'$as_ac_var'}'` = yes; then
43611   cat >>confdefs.h <<_ACEOF
43612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43613 _ACEOF
43614  break
43615 fi
43616 done
43617
43618
43619     if test "$ac_cv_func_gettimeofday" = "yes"; then
43620         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43621 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43622 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43623   echo $ECHO_N "(cached) $ECHO_C" >&6
43624 else
43625
43626                         cat >conftest.$ac_ext <<_ACEOF
43627 /* confdefs.h.  */
43628 _ACEOF
43629 cat confdefs.h >>conftest.$ac_ext
43630 cat >>conftest.$ac_ext <<_ACEOF
43631 /* end confdefs.h.  */
43632
43633                     #include <sys/time.h>
43634                     #include <unistd.h>
43635
43636 int
43637 main ()
43638 {
43639
43640                     struct timeval tv;
43641                     gettimeofday(&tv, NULL);
43642
43643   ;
43644   return 0;
43645 }
43646 _ACEOF
43647 rm -f conftest.$ac_objext
43648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43649   (eval $ac_compile) 2>conftest.er1
43650   ac_status=$?
43651   grep -v '^ *+' conftest.er1 >conftest.err
43652   rm -f conftest.er1
43653   cat conftest.err >&5
43654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43655   (exit $ac_status); } &&
43656          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43658   (eval $ac_try) 2>&5
43659   ac_status=$?
43660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661   (exit $ac_status); }; } &&
43662          { ac_try='test -s conftest.$ac_objext'
43663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43664   (eval $ac_try) 2>&5
43665   ac_status=$?
43666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667   (exit $ac_status); }; }; then
43668   wx_cv_func_gettimeofday_has_2_args=yes
43669 else
43670   echo "$as_me: failed program was:" >&5
43671 sed 's/^/| /' conftest.$ac_ext >&5
43672
43673 cat >conftest.$ac_ext <<_ACEOF
43674 /* confdefs.h.  */
43675 _ACEOF
43676 cat confdefs.h >>conftest.$ac_ext
43677 cat >>conftest.$ac_ext <<_ACEOF
43678 /* end confdefs.h.  */
43679
43680                         #include <sys/time.h>
43681                         #include <unistd.h>
43682
43683 int
43684 main ()
43685 {
43686
43687                         struct timeval tv;
43688                         gettimeofday(&tv);
43689
43690   ;
43691   return 0;
43692 }
43693 _ACEOF
43694 rm -f conftest.$ac_objext
43695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43696   (eval $ac_compile) 2>conftest.er1
43697   ac_status=$?
43698   grep -v '^ *+' conftest.er1 >conftest.err
43699   rm -f conftest.er1
43700   cat conftest.err >&5
43701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43702   (exit $ac_status); } &&
43703          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43705   (eval $ac_try) 2>&5
43706   ac_status=$?
43707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43708   (exit $ac_status); }; } &&
43709          { ac_try='test -s conftest.$ac_objext'
43710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43711   (eval $ac_try) 2>&5
43712   ac_status=$?
43713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43714   (exit $ac_status); }; }; then
43715   wx_cv_func_gettimeofday_has_2_args=no
43716 else
43717   echo "$as_me: failed program was:" >&5
43718 sed 's/^/| /' conftest.$ac_ext >&5
43719
43720
43721                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43722 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43723                         wx_cv_func_gettimeofday_has_2_args=unknown
43724
43725
43726 fi
43727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43728
43729 fi
43730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43731
43732 fi
43733 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43734 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43735
43736         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43737             cat >>confdefs.h <<\_ACEOF
43738 #define WX_GETTIMEOFDAY_NO_TZ 1
43739 _ACEOF
43740
43741         fi
43742     fi
43743
43744     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43745 fi
43746
43747
43748 if test "$wxUSE_SOCKETS" = "yes"; then
43749     if test "$wxUSE_MGL" = "1"; then
43750         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43751 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43752         wxUSE_SOCKETS="no"
43753     fi
43754 fi
43755
43756 if test "$wxUSE_SOCKETS" = "yes"; then
43757         if test "$TOOLKIT" != "MSW"; then
43758                 echo "$as_me:$LINENO: checking for socket" >&5
43759 echo $ECHO_N "checking for socket... $ECHO_C" >&6
43760 if test "${ac_cv_func_socket+set}" = set; then
43761   echo $ECHO_N "(cached) $ECHO_C" >&6
43762 else
43763   cat >conftest.$ac_ext <<_ACEOF
43764 /* confdefs.h.  */
43765 _ACEOF
43766 cat confdefs.h >>conftest.$ac_ext
43767 cat >>conftest.$ac_ext <<_ACEOF
43768 /* end confdefs.h.  */
43769 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
43770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43771 #define socket innocuous_socket
43772
43773 /* System header to define __stub macros and hopefully few prototypes,
43774     which can conflict with char socket (); below.
43775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43776     <limits.h> exists even on freestanding compilers.  */
43777
43778 #ifdef __STDC__
43779 # include <limits.h>
43780 #else
43781 # include <assert.h>
43782 #endif
43783
43784 #undef socket
43785
43786 /* Override any gcc2 internal prototype to avoid an error.  */
43787 #ifdef __cplusplus
43788 extern "C"
43789 {
43790 #endif
43791 /* We use char because int might match the return type of a gcc2
43792    builtin and then its argument prototype would still apply.  */
43793 char socket ();
43794 /* The GNU C library defines this for functions which it implements
43795     to always fail with ENOSYS.  Some functions are actually named
43796     something starting with __ and the normal name is an alias.  */
43797 #if defined (__stub_socket) || defined (__stub___socket)
43798 choke me
43799 #else
43800 char (*f) () = socket;
43801 #endif
43802 #ifdef __cplusplus
43803 }
43804 #endif
43805
43806 int
43807 main ()
43808 {
43809 return f != socket;
43810   ;
43811   return 0;
43812 }
43813 _ACEOF
43814 rm -f conftest.$ac_objext conftest$ac_exeext
43815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43816   (eval $ac_link) 2>conftest.er1
43817   ac_status=$?
43818   grep -v '^ *+' conftest.er1 >conftest.err
43819   rm -f conftest.er1
43820   cat conftest.err >&5
43821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43822   (exit $ac_status); } &&
43823          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43825   (eval $ac_try) 2>&5
43826   ac_status=$?
43827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828   (exit $ac_status); }; } &&
43829          { ac_try='test -s conftest$ac_exeext'
43830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43831   (eval $ac_try) 2>&5
43832   ac_status=$?
43833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43834   (exit $ac_status); }; }; then
43835   ac_cv_func_socket=yes
43836 else
43837   echo "$as_me: failed program was:" >&5
43838 sed 's/^/| /' conftest.$ac_ext >&5
43839
43840 ac_cv_func_socket=no
43841 fi
43842 rm -f conftest.err conftest.$ac_objext \
43843       conftest$ac_exeext conftest.$ac_ext
43844 fi
43845 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43846 echo "${ECHO_T}$ac_cv_func_socket" >&6
43847 if test $ac_cv_func_socket = yes; then
43848   :
43849 else
43850
43851                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43852 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43853 if test "${ac_cv_lib_socket_socket+set}" = set; then
43854   echo $ECHO_N "(cached) $ECHO_C" >&6
43855 else
43856   ac_check_lib_save_LIBS=$LIBS
43857 LIBS="-lsocket  $LIBS"
43858 cat >conftest.$ac_ext <<_ACEOF
43859 /* confdefs.h.  */
43860 _ACEOF
43861 cat confdefs.h >>conftest.$ac_ext
43862 cat >>conftest.$ac_ext <<_ACEOF
43863 /* end confdefs.h.  */
43864
43865 /* Override any gcc2 internal prototype to avoid an error.  */
43866 #ifdef __cplusplus
43867 extern "C"
43868 #endif
43869 /* We use char because int might match the return type of a gcc2
43870    builtin and then its argument prototype would still apply.  */
43871 char socket ();
43872 int
43873 main ()
43874 {
43875 socket ();
43876   ;
43877   return 0;
43878 }
43879 _ACEOF
43880 rm -f conftest.$ac_objext conftest$ac_exeext
43881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43882   (eval $ac_link) 2>conftest.er1
43883   ac_status=$?
43884   grep -v '^ *+' conftest.er1 >conftest.err
43885   rm -f conftest.er1
43886   cat conftest.err >&5
43887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43888   (exit $ac_status); } &&
43889          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43891   (eval $ac_try) 2>&5
43892   ac_status=$?
43893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43894   (exit $ac_status); }; } &&
43895          { ac_try='test -s conftest$ac_exeext'
43896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43897   (eval $ac_try) 2>&5
43898   ac_status=$?
43899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43900   (exit $ac_status); }; }; then
43901   ac_cv_lib_socket_socket=yes
43902 else
43903   echo "$as_me: failed program was:" >&5
43904 sed 's/^/| /' conftest.$ac_ext >&5
43905
43906 ac_cv_lib_socket_socket=no
43907 fi
43908 rm -f conftest.err conftest.$ac_objext \
43909       conftest$ac_exeext conftest.$ac_ext
43910 LIBS=$ac_check_lib_save_LIBS
43911 fi
43912 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43913 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43914 if test $ac_cv_lib_socket_socket = yes; then
43915   if test "$INET_LINK" != " -lsocket"; then
43916                         INET_LINK="$INET_LINK -lsocket"
43917                     fi
43918 else
43919
43920                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43921 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43922                         wxUSE_SOCKETS=no
43923
43924
43925 fi
43926
43927
43928
43929 fi
43930
43931     fi
43932 fi
43933
43934 if test "$wxUSE_SOCKETS" = "yes" ; then
43935                 if test "$TOOLKIT" != "MSW"; then
43936                                         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
43937 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43938 if test "${wx_cv_type_getsockname3+set}" = set; then
43939   echo $ECHO_N "(cached) $ECHO_C" >&6
43940 else
43941
43942                 cat >conftest.$ac_ext <<_ACEOF
43943 /* confdefs.h.  */
43944 _ACEOF
43945 cat confdefs.h >>conftest.$ac_ext
43946 cat >>conftest.$ac_ext <<_ACEOF
43947 /* end confdefs.h.  */
43948
43949                         #include <sys/types.h>
43950                         #include <sys/socket.h>
43951
43952 int
43953 main ()
43954 {
43955
43956                         socklen_t len;
43957                         getsockname(0, 0, &len);
43958
43959   ;
43960   return 0;
43961 }
43962 _ACEOF
43963 rm -f conftest.$ac_objext
43964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43965   (eval $ac_compile) 2>conftest.er1
43966   ac_status=$?
43967   grep -v '^ *+' conftest.er1 >conftest.err
43968   rm -f conftest.er1
43969   cat conftest.err >&5
43970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43971   (exit $ac_status); } &&
43972          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43974   (eval $ac_try) 2>&5
43975   ac_status=$?
43976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43977   (exit $ac_status); }; } &&
43978          { ac_try='test -s conftest.$ac_objext'
43979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43980   (eval $ac_try) 2>&5
43981   ac_status=$?
43982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43983   (exit $ac_status); }; }; then
43984   wx_cv_type_getsockname3=socklen_t
43985 else
43986   echo "$as_me: failed program was:" >&5
43987 sed 's/^/| /' conftest.$ac_ext >&5
43988
43989
43990                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
43991                         if test "$GCC" = yes ; then
43992                             CXXFLAGS="-Werror $CXXFLAGS"
43993                         fi
43994
43995                         cat >conftest.$ac_ext <<_ACEOF
43996 /* confdefs.h.  */
43997 _ACEOF
43998 cat confdefs.h >>conftest.$ac_ext
43999 cat >>conftest.$ac_ext <<_ACEOF
44000 /* end confdefs.h.  */
44001
44002                                 #include <sys/types.h>
44003                                 #include <sys/socket.h>
44004
44005 int
44006 main ()
44007 {
44008
44009                                 size_t len;
44010                                 getsockname(0, 0, &len);
44011
44012   ;
44013   return 0;
44014 }
44015 _ACEOF
44016 rm -f conftest.$ac_objext
44017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44018   (eval $ac_compile) 2>conftest.er1
44019   ac_status=$?
44020   grep -v '^ *+' conftest.er1 >conftest.err
44021   rm -f conftest.er1
44022   cat conftest.err >&5
44023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44024   (exit $ac_status); } &&
44025          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44027   (eval $ac_try) 2>&5
44028   ac_status=$?
44029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44030   (exit $ac_status); }; } &&
44031          { ac_try='test -s conftest.$ac_objext'
44032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44033   (eval $ac_try) 2>&5
44034   ac_status=$?
44035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44036   (exit $ac_status); }; }; then
44037   wx_cv_type_getsockname3=size_t
44038 else
44039   echo "$as_me: failed program was:" >&5
44040 sed 's/^/| /' conftest.$ac_ext >&5
44041
44042 cat >conftest.$ac_ext <<_ACEOF
44043 /* confdefs.h.  */
44044 _ACEOF
44045 cat confdefs.h >>conftest.$ac_ext
44046 cat >>conftest.$ac_ext <<_ACEOF
44047 /* end confdefs.h.  */
44048
44049                                     #include <sys/types.h>
44050                                     #include <sys/socket.h>
44051
44052 int
44053 main ()
44054 {
44055
44056                                     int len;
44057                                     getsockname(0, 0, &len);
44058
44059   ;
44060   return 0;
44061 }
44062 _ACEOF
44063 rm -f conftest.$ac_objext
44064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44065   (eval $ac_compile) 2>conftest.er1
44066   ac_status=$?
44067   grep -v '^ *+' conftest.er1 >conftest.err
44068   rm -f conftest.er1
44069   cat conftest.err >&5
44070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44071   (exit $ac_status); } &&
44072          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44074   (eval $ac_try) 2>&5
44075   ac_status=$?
44076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44077   (exit $ac_status); }; } &&
44078          { ac_try='test -s conftest.$ac_objext'
44079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44080   (eval $ac_try) 2>&5
44081   ac_status=$?
44082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44083   (exit $ac_status); }; }; then
44084   wx_cv_type_getsockname3=int
44085 else
44086   echo "$as_me: failed program was:" >&5
44087 sed 's/^/| /' conftest.$ac_ext >&5
44088
44089 wx_cv_type_getsockname3=unknown
44090
44091 fi
44092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44093
44094 fi
44095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44096
44097                         CXXFLAGS="$CXXFLAGS_OLD"
44098
44099
44100 fi
44101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44102
44103 fi
44104 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44105 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44106
44107         if test "$wx_cv_type_getsockname3" = "unknown"; then
44108             wxUSE_SOCKETS=no
44109             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44110 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44111         else
44112             cat >>confdefs.h <<_ACEOF
44113 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44114 _ACEOF
44115
44116         fi
44117                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44118 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44119 if test "${wx_cv_type_getsockopt5+set}" = set; then
44120   echo $ECHO_N "(cached) $ECHO_C" >&6
44121 else
44122
44123                 cat >conftest.$ac_ext <<_ACEOF
44124 /* confdefs.h.  */
44125 _ACEOF
44126 cat confdefs.h >>conftest.$ac_ext
44127 cat >>conftest.$ac_ext <<_ACEOF
44128 /* end confdefs.h.  */
44129
44130                         #include <sys/types.h>
44131                         #include <sys/socket.h>
44132
44133 int
44134 main ()
44135 {
44136
44137                         socklen_t len;
44138                         getsockopt(0, 0, 0, 0, &len);
44139
44140   ;
44141   return 0;
44142 }
44143 _ACEOF
44144 rm -f conftest.$ac_objext
44145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44146   (eval $ac_compile) 2>conftest.er1
44147   ac_status=$?
44148   grep -v '^ *+' conftest.er1 >conftest.err
44149   rm -f conftest.er1
44150   cat conftest.err >&5
44151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44152   (exit $ac_status); } &&
44153          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44155   (eval $ac_try) 2>&5
44156   ac_status=$?
44157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44158   (exit $ac_status); }; } &&
44159          { ac_try='test -s conftest.$ac_objext'
44160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44161   (eval $ac_try) 2>&5
44162   ac_status=$?
44163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44164   (exit $ac_status); }; }; then
44165   wx_cv_type_getsockopt5=socklen_t
44166 else
44167   echo "$as_me: failed program was:" >&5
44168 sed 's/^/| /' conftest.$ac_ext >&5
44169
44170
44171                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
44172                         if test "$GCC" = yes ; then
44173                             CXXFLAGS="-Werror $CXXFLAGS"
44174                         fi
44175
44176                         cat >conftest.$ac_ext <<_ACEOF
44177 /* confdefs.h.  */
44178 _ACEOF
44179 cat confdefs.h >>conftest.$ac_ext
44180 cat >>conftest.$ac_ext <<_ACEOF
44181 /* end confdefs.h.  */
44182
44183                                 #include <sys/types.h>
44184                                 #include <sys/socket.h>
44185
44186 int
44187 main ()
44188 {
44189
44190                                 size_t len;
44191                                 getsockopt(0, 0, 0, 0, &len);
44192
44193   ;
44194   return 0;
44195 }
44196 _ACEOF
44197 rm -f conftest.$ac_objext
44198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44199   (eval $ac_compile) 2>conftest.er1
44200   ac_status=$?
44201   grep -v '^ *+' conftest.er1 >conftest.err
44202   rm -f conftest.er1
44203   cat conftest.err >&5
44204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44205   (exit $ac_status); } &&
44206          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44208   (eval $ac_try) 2>&5
44209   ac_status=$?
44210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44211   (exit $ac_status); }; } &&
44212          { ac_try='test -s conftest.$ac_objext'
44213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44214   (eval $ac_try) 2>&5
44215   ac_status=$?
44216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44217   (exit $ac_status); }; }; then
44218   wx_cv_type_getsockopt5=size_t
44219 else
44220   echo "$as_me: failed program was:" >&5
44221 sed 's/^/| /' conftest.$ac_ext >&5
44222
44223 cat >conftest.$ac_ext <<_ACEOF
44224 /* confdefs.h.  */
44225 _ACEOF
44226 cat confdefs.h >>conftest.$ac_ext
44227 cat >>conftest.$ac_ext <<_ACEOF
44228 /* end confdefs.h.  */
44229
44230                                     #include <sys/types.h>
44231                                     #include <sys/socket.h>
44232
44233 int
44234 main ()
44235 {
44236
44237                                     int len;
44238                                     getsockopt(0, 0, 0, 0, &len);
44239
44240   ;
44241   return 0;
44242 }
44243 _ACEOF
44244 rm -f conftest.$ac_objext
44245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44246   (eval $ac_compile) 2>conftest.er1
44247   ac_status=$?
44248   grep -v '^ *+' conftest.er1 >conftest.err
44249   rm -f conftest.er1
44250   cat conftest.err >&5
44251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44252   (exit $ac_status); } &&
44253          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44255   (eval $ac_try) 2>&5
44256   ac_status=$?
44257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44258   (exit $ac_status); }; } &&
44259          { ac_try='test -s conftest.$ac_objext'
44260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44261   (eval $ac_try) 2>&5
44262   ac_status=$?
44263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44264   (exit $ac_status); }; }; then
44265   wx_cv_type_getsockopt5=int
44266 else
44267   echo "$as_me: failed program was:" >&5
44268 sed 's/^/| /' conftest.$ac_ext >&5
44269
44270 wx_cv_type_getsockopt5=unknown
44271
44272 fi
44273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44274
44275 fi
44276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44277
44278                         CXXFLAGS="$CXXFLAGS_OLD"
44279
44280
44281 fi
44282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44283
44284 fi
44285 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44286 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44287
44288         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44289             wxUSE_SOCKETS=no
44290             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44291 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44292         else
44293             cat >>confdefs.h <<_ACEOF
44294 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44295 _ACEOF
44296
44297         fi
44298     fi
44299 fi
44300
44301 if test "$wxUSE_SOCKETS" = "yes" ; then
44302     cat >>confdefs.h <<\_ACEOF
44303 #define wxUSE_SOCKETS 1
44304 _ACEOF
44305
44306     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44307 fi
44308
44309 if test "$wxUSE_PROTOCOL" = "yes"; then
44310     if test "$wxUSE_SOCKETS" != "yes"; then
44311         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44312 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44313         wxUSE_PROTOCOL=no
44314     fi
44315 fi
44316
44317 if test "$wxUSE_PROTOCOL" = "yes"; then
44318     cat >>confdefs.h <<\_ACEOF
44319 #define wxUSE_PROTOCOL 1
44320 _ACEOF
44321
44322
44323     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44324         cat >>confdefs.h <<\_ACEOF
44325 #define wxUSE_PROTOCOL_HTTP 1
44326 _ACEOF
44327
44328     fi
44329     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44330         cat >>confdefs.h <<\_ACEOF
44331 #define wxUSE_PROTOCOL_FTP 1
44332 _ACEOF
44333
44334     fi
44335     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44336         cat >>confdefs.h <<\_ACEOF
44337 #define wxUSE_PROTOCOL_FILE 1
44338 _ACEOF
44339
44340     fi
44341 else
44342     if test "$wxUSE_FS_INET" = "yes"; then
44343         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44344 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44345         wxUSE_FS_INET="no"
44346     fi
44347 fi
44348
44349 if test "$wxUSE_URL" = "yes"; then
44350     if test "$wxUSE_PROTOCOL" != "yes"; then
44351         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44352 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44353         wxUSE_URL=no
44354     fi
44355     if test "$wxUSE_URL" = "yes"; then
44356         cat >>confdefs.h <<\_ACEOF
44357 #define wxUSE_URL 1
44358 _ACEOF
44359
44360     fi
44361 fi
44362
44363 if test "$wxUSE_VARIANT" = "yes"; then
44364     cat >>confdefs.h <<\_ACEOF
44365 #define wxUSE_VARIANT 1
44366 _ACEOF
44367
44368 fi
44369
44370 if test "$wxUSE_FS_INET" = "yes"; then
44371   cat >>confdefs.h <<\_ACEOF
44372 #define wxUSE_FS_INET 1
44373 _ACEOF
44374
44375 fi
44376
44377
44378 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44379     wxUSE_JOYSTICK=no
44380
44381         if test "$TOOLKIT" = "MSW"; then
44382         wxUSE_JOYSTICK=yes
44383
44384         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44385         if test "$USE_DARWIN" = 1; then
44386                         echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44387 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
44388             cat >conftest.$ac_ext <<_ACEOF
44389 /* confdefs.h.  */
44390 _ACEOF
44391 cat confdefs.h >>conftest.$ac_ext
44392 cat >>conftest.$ac_ext <<_ACEOF
44393 /* end confdefs.h.  */
44394  #include <IOKit/hid/IOHIDLib.h>
44395 int
44396 main ()
44397 {
44398  IOHIDQueueInterface *qi = NULL;
44399                               IOHIDCallbackFunction cb = NULL;
44400                               qi->setEventCallout(NULL, cb, NULL, NULL);
44401   ;
44402   return 0;
44403 }
44404 _ACEOF
44405 rm -f conftest.$ac_objext
44406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44407   (eval $ac_compile) 2>conftest.er1
44408   ac_status=$?
44409   grep -v '^ *+' conftest.er1 >conftest.err
44410   rm -f conftest.er1
44411   cat conftest.err >&5
44412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44413   (exit $ac_status); } &&
44414          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44416   (eval $ac_try) 2>&5
44417   ac_status=$?
44418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44419   (exit $ac_status); }; } &&
44420          { ac_try='test -s conftest.$ac_objext'
44421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44422   (eval $ac_try) 2>&5
44423   ac_status=$?
44424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44425   (exit $ac_status); }; }; then
44426    wxUSE_JOYSTICK=yes
44427
44428 else
44429   echo "$as_me: failed program was:" >&5
44430 sed 's/^/| /' conftest.$ac_ext >&5
44431
44432 fi
44433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44434             echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44435 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44436         fi
44437
44438         else
44439
44440 for ac_header in linux/joystick.h
44441 do
44442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44444   echo "$as_me:$LINENO: checking for $ac_header" >&5
44445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44447   echo $ECHO_N "(cached) $ECHO_C" >&6
44448 fi
44449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44451 else
44452   # Is the header compilable?
44453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44455 cat >conftest.$ac_ext <<_ACEOF
44456 /* confdefs.h.  */
44457 _ACEOF
44458 cat confdefs.h >>conftest.$ac_ext
44459 cat >>conftest.$ac_ext <<_ACEOF
44460 /* end confdefs.h.  */
44461 $ac_includes_default
44462 #include <$ac_header>
44463 _ACEOF
44464 rm -f conftest.$ac_objext
44465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44466   (eval $ac_compile) 2>conftest.er1
44467   ac_status=$?
44468   grep -v '^ *+' conftest.er1 >conftest.err
44469   rm -f conftest.er1
44470   cat conftest.err >&5
44471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44472   (exit $ac_status); } &&
44473          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44475   (eval $ac_try) 2>&5
44476   ac_status=$?
44477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44478   (exit $ac_status); }; } &&
44479          { ac_try='test -s conftest.$ac_objext'
44480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44481   (eval $ac_try) 2>&5
44482   ac_status=$?
44483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484   (exit $ac_status); }; }; then
44485   ac_header_compiler=yes
44486 else
44487   echo "$as_me: failed program was:" >&5
44488 sed 's/^/| /' conftest.$ac_ext >&5
44489
44490 ac_header_compiler=no
44491 fi
44492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44494 echo "${ECHO_T}$ac_header_compiler" >&6
44495
44496 # Is the header present?
44497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44499 cat >conftest.$ac_ext <<_ACEOF
44500 /* confdefs.h.  */
44501 _ACEOF
44502 cat confdefs.h >>conftest.$ac_ext
44503 cat >>conftest.$ac_ext <<_ACEOF
44504 /* end confdefs.h.  */
44505 #include <$ac_header>
44506 _ACEOF
44507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44509   ac_status=$?
44510   grep -v '^ *+' conftest.er1 >conftest.err
44511   rm -f conftest.er1
44512   cat conftest.err >&5
44513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44514   (exit $ac_status); } >/dev/null; then
44515   if test -s conftest.err; then
44516     ac_cpp_err=$ac_cxx_preproc_warn_flag
44517     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
44518   else
44519     ac_cpp_err=
44520   fi
44521 else
44522   ac_cpp_err=yes
44523 fi
44524 if test -z "$ac_cpp_err"; then
44525   ac_header_preproc=yes
44526 else
44527   echo "$as_me: failed program was:" >&5
44528 sed 's/^/| /' conftest.$ac_ext >&5
44529
44530   ac_header_preproc=no
44531 fi
44532 rm -f conftest.err conftest.$ac_ext
44533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44534 echo "${ECHO_T}$ac_header_preproc" >&6
44535
44536 # So?  What about this header?
44537 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
44538   yes:no: )
44539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44543     ac_header_preproc=yes
44544     ;;
44545   no:yes:* )
44546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44558     (
44559       cat <<\_ASBOX
44560 ## ----------------------------------------- ##
44561 ## Report this to wx-dev@lists.wxwidgets.org ##
44562 ## ----------------------------------------- ##
44563 _ASBOX
44564     ) |
44565       sed "s/^/$as_me: WARNING:     /" >&2
44566     ;;
44567 esac
44568 echo "$as_me:$LINENO: checking for $ac_header" >&5
44569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44571   echo $ECHO_N "(cached) $ECHO_C" >&6
44572 else
44573   eval "$as_ac_Header=\$ac_header_preproc"
44574 fi
44575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44577
44578 fi
44579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44580   cat >>confdefs.h <<_ACEOF
44581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44582 _ACEOF
44583  wxUSE_JOYSTICK=yes
44584 fi
44585
44586 done
44587
44588     fi
44589
44590     if test "$wxUSE_JOYSTICK" = "yes"; then
44591         cat >>confdefs.h <<\_ACEOF
44592 #define wxUSE_JOYSTICK 1
44593 _ACEOF
44594
44595         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44596     else
44597         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44598 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
44599     fi
44600 fi
44601
44602
44603
44604 if test "$wxUSE_FONTMAP" = "yes" ; then
44605   cat >>confdefs.h <<\_ACEOF
44606 #define wxUSE_FONTMAP 1
44607 _ACEOF
44608
44609 fi
44610
44611 if test "$wxUSE_UNICODE" = "yes" ; then
44612   cat >>confdefs.h <<\_ACEOF
44613 #define wxUSE_UNICODE 1
44614 _ACEOF
44615
44616
44617   if test "$USE_WIN32" != 1; then
44618       wxUSE_UNICODE_MSLU=no
44619   fi
44620
44621   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44622         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44623 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44624 if test "${ac_cv_lib_unicows_main+set}" = set; then
44625   echo $ECHO_N "(cached) $ECHO_C" >&6
44626 else
44627   ac_check_lib_save_LIBS=$LIBS
44628 LIBS="-lunicows  $LIBS"
44629 cat >conftest.$ac_ext <<_ACEOF
44630 /* confdefs.h.  */
44631 _ACEOF
44632 cat confdefs.h >>conftest.$ac_ext
44633 cat >>conftest.$ac_ext <<_ACEOF
44634 /* end confdefs.h.  */
44635
44636
44637 int
44638 main ()
44639 {
44640 main ();
44641   ;
44642   return 0;
44643 }
44644 _ACEOF
44645 rm -f conftest.$ac_objext conftest$ac_exeext
44646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44647   (eval $ac_link) 2>conftest.er1
44648   ac_status=$?
44649   grep -v '^ *+' conftest.er1 >conftest.err
44650   rm -f conftest.er1
44651   cat conftest.err >&5
44652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44653   (exit $ac_status); } &&
44654          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44656   (eval $ac_try) 2>&5
44657   ac_status=$?
44658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44659   (exit $ac_status); }; } &&
44660          { ac_try='test -s conftest$ac_exeext'
44661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44662   (eval $ac_try) 2>&5
44663   ac_status=$?
44664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665   (exit $ac_status); }; }; then
44666   ac_cv_lib_unicows_main=yes
44667 else
44668   echo "$as_me: failed program was:" >&5
44669 sed 's/^/| /' conftest.$ac_ext >&5
44670
44671 ac_cv_lib_unicows_main=no
44672 fi
44673 rm -f conftest.err conftest.$ac_objext \
44674       conftest$ac_exeext conftest.$ac_ext
44675 LIBS=$ac_check_lib_save_LIBS
44676 fi
44677 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44678 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44679 if test $ac_cv_lib_unicows_main = yes; then
44680
44681                 cat >>confdefs.h <<\_ACEOF
44682 #define wxUSE_UNICODE_MSLU 1
44683 _ACEOF
44684
44685
44686 else
44687
44688                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44689                              Applications will only run on Windows NT/2000/XP!" >&5
44690 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44691                              Applications will only run on Windows NT/2000/XP!" >&2;}
44692                 wxUSE_UNICODE_MSLU=no
44693
44694 fi
44695
44696     fi
44697 fi
44698
44699 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44700   cat >>confdefs.h <<\_ACEOF
44701 #define wxUSE_EXPERIMENTAL_PRINTF 1
44702 _ACEOF
44703
44704 fi
44705
44706
44707 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44708   cat >>confdefs.h <<\_ACEOF
44709 #define wxUSE_POSTSCRIPT 1
44710 _ACEOF
44711
44712 fi
44713
44714 cat >>confdefs.h <<\_ACEOF
44715 #define wxUSE_AFM_FOR_POSTSCRIPT 1
44716 _ACEOF
44717
44718
44719 cat >>confdefs.h <<\_ACEOF
44720 #define wxUSE_NORMALIZED_PS_FONTS 1
44721 _ACEOF
44722
44723
44724
44725 if test "$wxUSE_CONSTRAINTS" = "yes"; then
44726     cat >>confdefs.h <<\_ACEOF
44727 #define wxUSE_CONSTRAINTS 1
44728 _ACEOF
44729
44730     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44731 fi
44732
44733 if test "$wxUSE_MDI" = "yes"; then
44734     cat >>confdefs.h <<\_ACEOF
44735 #define wxUSE_MDI 1
44736 _ACEOF
44737
44738
44739     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44740         cat >>confdefs.h <<\_ACEOF
44741 #define wxUSE_MDI_ARCHITECTURE 1
44742 _ACEOF
44743
44744         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44745     fi
44746 fi
44747
44748 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44749     cat >>confdefs.h <<\_ACEOF
44750 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
44751 _ACEOF
44752
44753     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44754     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44755         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44756     fi
44757 fi
44758
44759 if test "$wxUSE_HELP" = "yes"; then
44760     cat >>confdefs.h <<\_ACEOF
44761 #define wxUSE_HELP 1
44762 _ACEOF
44763
44764     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44765
44766     if test "$wxUSE_MSW" = 1; then
44767       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44768         cat >>confdefs.h <<\_ACEOF
44769 #define wxUSE_MS_HTML_HELP 1
44770 _ACEOF
44771
44772       fi
44773     fi
44774
44775     if test "$wxUSE_WXHTML_HELP" = "yes"; then
44776       if test "$wxUSE_HTML" = "yes"; then
44777         cat >>confdefs.h <<\_ACEOF
44778 #define wxUSE_WXHTML_HELP 1
44779 _ACEOF
44780
44781       else
44782         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44783 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44784         wxUSE_WXHTML_HELP=no
44785       fi
44786     fi
44787 fi
44788
44789 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44790     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44791         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44792 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44793     else
44794         cat >>confdefs.h <<\_ACEOF
44795 #define wxUSE_PRINTING_ARCHITECTURE 1
44796 _ACEOF
44797
44798     fi
44799     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44800 fi
44801
44802 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
44803     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44804 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44805    { (exit 1); exit 1; }; }
44806 fi
44807
44808
44809 if test "$wxUSE_METAFILE" = "yes"; then
44810     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44811         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44812 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44813         wxUSE_METAFILE=no
44814     fi
44815 fi
44816
44817
44818 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
44819                           -o "$wxUSE_CLIPBOARD"     = "yes" \
44820                           -o "$wxUSE_OLE"     = "yes" \
44821                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44822
44823 for ac_header in ole2.h
44824 do
44825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44827   echo "$as_me:$LINENO: checking for $ac_header" >&5
44828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44830   echo $ECHO_N "(cached) $ECHO_C" >&6
44831 fi
44832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44834 else
44835   # Is the header compilable?
44836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44838 cat >conftest.$ac_ext <<_ACEOF
44839 /* confdefs.h.  */
44840 _ACEOF
44841 cat confdefs.h >>conftest.$ac_ext
44842 cat >>conftest.$ac_ext <<_ACEOF
44843 /* end confdefs.h.  */
44844 $ac_includes_default
44845 #include <$ac_header>
44846 _ACEOF
44847 rm -f conftest.$ac_objext
44848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44849   (eval $ac_compile) 2>conftest.er1
44850   ac_status=$?
44851   grep -v '^ *+' conftest.er1 >conftest.err
44852   rm -f conftest.er1
44853   cat conftest.err >&5
44854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44855   (exit $ac_status); } &&
44856          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44858   (eval $ac_try) 2>&5
44859   ac_status=$?
44860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44861   (exit $ac_status); }; } &&
44862          { ac_try='test -s conftest.$ac_objext'
44863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44864   (eval $ac_try) 2>&5
44865   ac_status=$?
44866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44867   (exit $ac_status); }; }; then
44868   ac_header_compiler=yes
44869 else
44870   echo "$as_me: failed program was:" >&5
44871 sed 's/^/| /' conftest.$ac_ext >&5
44872
44873 ac_header_compiler=no
44874 fi
44875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44877 echo "${ECHO_T}$ac_header_compiler" >&6
44878
44879 # Is the header present?
44880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44882 cat >conftest.$ac_ext <<_ACEOF
44883 /* confdefs.h.  */
44884 _ACEOF
44885 cat confdefs.h >>conftest.$ac_ext
44886 cat >>conftest.$ac_ext <<_ACEOF
44887 /* end confdefs.h.  */
44888 #include <$ac_header>
44889 _ACEOF
44890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44891   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44892   ac_status=$?
44893   grep -v '^ *+' conftest.er1 >conftest.err
44894   rm -f conftest.er1
44895   cat conftest.err >&5
44896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44897   (exit $ac_status); } >/dev/null; then
44898   if test -s conftest.err; then
44899     ac_cpp_err=$ac_cxx_preproc_warn_flag
44900     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
44901   else
44902     ac_cpp_err=
44903   fi
44904 else
44905   ac_cpp_err=yes
44906 fi
44907 if test -z "$ac_cpp_err"; then
44908   ac_header_preproc=yes
44909 else
44910   echo "$as_me: failed program was:" >&5
44911 sed 's/^/| /' conftest.$ac_ext >&5
44912
44913   ac_header_preproc=no
44914 fi
44915 rm -f conftest.err conftest.$ac_ext
44916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44917 echo "${ECHO_T}$ac_header_preproc" >&6
44918
44919 # So?  What about this header?
44920 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
44921   yes:no: )
44922     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44926     ac_header_preproc=yes
44927     ;;
44928   no:yes:* )
44929     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44931     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44932 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44933     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44935     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44936 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44939     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44941     (
44942       cat <<\_ASBOX
44943 ## ----------------------------------------- ##
44944 ## Report this to wx-dev@lists.wxwidgets.org ##
44945 ## ----------------------------------------- ##
44946 _ASBOX
44947     ) |
44948       sed "s/^/$as_me: WARNING:     /" >&2
44949     ;;
44950 esac
44951 echo "$as_me:$LINENO: checking for $ac_header" >&5
44952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44954   echo $ECHO_N "(cached) $ECHO_C" >&6
44955 else
44956   eval "$as_ac_Header=\$ac_header_preproc"
44957 fi
44958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44960
44961 fi
44962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44963   cat >>confdefs.h <<_ACEOF
44964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44965 _ACEOF
44966
44967 fi
44968
44969 done
44970
44971
44972     if test "$ac_cv_header_ole2_h" = "yes" ; then
44973         if test "$GCC" = yes ; then
44974             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44975 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44976             cat >conftest.$ac_ext <<_ACEOF
44977 /* confdefs.h.  */
44978 _ACEOF
44979 cat confdefs.h >>conftest.$ac_ext
44980 cat >>conftest.$ac_ext <<_ACEOF
44981 /* end confdefs.h.  */
44982 #include <windows.h>
44983                             #include <ole2.h>
44984 int
44985 main ()
44986 {
44987
44988   ;
44989   return 0;
44990 }
44991 _ACEOF
44992 rm -f conftest.$ac_objext
44993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44994   (eval $ac_compile) 2>conftest.er1
44995   ac_status=$?
44996   grep -v '^ *+' conftest.er1 >conftest.err
44997   rm -f conftest.er1
44998   cat conftest.err >&5
44999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45000   (exit $ac_status); } &&
45001          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45003   (eval $ac_try) 2>&5
45004   ac_status=$?
45005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45006   (exit $ac_status); }; } &&
45007          { ac_try='test -s conftest.$ac_objext'
45008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45009   (eval $ac_try) 2>&5
45010   ac_status=$?
45011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45012   (exit $ac_status); }; }; then
45013   echo "$as_me:$LINENO: result: no" >&5
45014 echo "${ECHO_T}no" >&6
45015 else
45016   echo "$as_me: failed program was:" >&5
45017 sed 's/^/| /' conftest.$ac_ext >&5
45018
45019 echo "$as_me:$LINENO: result: yes" >&5
45020 echo "${ECHO_T}yes" >&6
45021                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45022 fi
45023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45024             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45025             if test "$wxUSE_OLE" = "yes" ; then
45026                 cat >>confdefs.h <<\_ACEOF
45027 #define wxUSE_OLE 1
45028 _ACEOF
45029
45030                 cat >>confdefs.h <<\_ACEOF
45031 #define wxUSE_OLE_AUTOMATION 1
45032 _ACEOF
45033
45034                 cat >>confdefs.h <<\_ACEOF
45035 #define wxUSE_OLE_ACTIVEX 1
45036 _ACEOF
45037
45038                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45039             fi
45040         fi
45041
45042                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45043             cat >>confdefs.h <<\_ACEOF
45044 #define wxUSE_DATAOBJ 1
45045 _ACEOF
45046
45047         fi
45048     else
45049         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45050 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45051
45052         wxUSE_CLIPBOARD=no
45053         wxUSE_DRAG_AND_DROP=no
45054         wxUSE_DATAOBJ=no
45055         wxUSE_OLE=no
45056     fi
45057
45058     if test "$wxUSE_METAFILE" = "yes"; then
45059         cat >>confdefs.h <<\_ACEOF
45060 #define wxUSE_METAFILE 1
45061 _ACEOF
45062
45063
45064                 cat >>confdefs.h <<\_ACEOF
45065 #define wxUSE_ENH_METAFILE 1
45066 _ACEOF
45067
45068     fi
45069 fi
45070
45071 if test "$wxUSE_IPC" = "yes"; then
45072     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45073         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45074 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45075         wxUSE_IPC=no
45076     fi
45077
45078     if test "$wxUSE_IPC" = "yes"; then
45079         cat >>confdefs.h <<\_ACEOF
45080 #define wxUSE_IPC 1
45081 _ACEOF
45082
45083         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45084     fi
45085 fi
45086
45087 if test "$wxUSE_DATAOBJ" = "yes"; then
45088     if test "$wxUSE_MGL" = 1; then
45089         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45090 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45091         wxUSE_DATAOBJ=no
45092     else
45093         cat >>confdefs.h <<\_ACEOF
45094 #define wxUSE_DATAOBJ 1
45095 _ACEOF
45096
45097     fi
45098 else
45099     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45100 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45101     wxUSE_CLIPBOARD=no
45102     wxUSE_DRAG_AND_DROP=no
45103 fi
45104
45105 if test "$wxUSE_CLIPBOARD" = "yes"; then
45106     if test "$wxUSE_MGL" = 1; then
45107         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45108 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45109         wxUSE_CLIPBOARD=no
45110     fi
45111
45112     if test "$wxUSE_CLIPBOARD" = "yes"; then
45113         cat >>confdefs.h <<\_ACEOF
45114 #define wxUSE_CLIPBOARD 1
45115 _ACEOF
45116
45117     fi
45118 fi
45119
45120 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45121     if test "$wxUSE_GTK" = 1; then
45122         if test "$WXGTK12" != 1; then
45123             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45124 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45125             wxUSE_DRAG_AND_DROP=no
45126         fi
45127     fi
45128
45129     if test "$wxUSE_MOTIF" = 1; then
45130         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45131 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45132         wxUSE_DRAG_AND_DROP=no
45133     fi
45134
45135     if test "$wxUSE_X11" = 1; then
45136         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45137 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45138         wxUSE_DRAG_AND_DROP=no
45139     fi
45140
45141     if test "$wxUSE_MGL" = 1; then
45142         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45143 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45144         wxUSE_DRAG_AND_DROP=no
45145     fi
45146
45147     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45148         cat >>confdefs.h <<\_ACEOF
45149 #define wxUSE_DRAG_AND_DROP 1
45150 _ACEOF
45151
45152     fi
45153
45154 fi
45155
45156 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45157     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45158 fi
45159
45160 if test "$wxUSE_SPLINES" = "yes" ; then
45161   cat >>confdefs.h <<\_ACEOF
45162 #define wxUSE_SPLINES 1
45163 _ACEOF
45164
45165 fi
45166
45167 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45168   cat >>confdefs.h <<\_ACEOF
45169 #define wxUSE_MOUSEWHEEL 1
45170 _ACEOF
45171
45172 fi
45173
45174
45175 USES_CONTROLS=0
45176 if test "$wxUSE_CONTROLS" = "yes"; then
45177   USES_CONTROLS=1
45178 fi
45179
45180 if test "$wxUSE_ACCEL" = "yes"; then
45181   cat >>confdefs.h <<\_ACEOF
45182 #define wxUSE_ACCEL 1
45183 _ACEOF
45184
45185   USES_CONTROLS=1
45186 fi
45187
45188 if test "$wxUSE_ACCEL" = "yes"; then
45189   cat >>confdefs.h <<\_ACEOF
45190 #define wxUSE_ANIMATIONCTRL 1
45191 _ACEOF
45192
45193   USES_CONTROLS=1
45194   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45195 fi
45196
45197 if test "$wxUSE_BUTTON" = "yes"; then
45198   cat >>confdefs.h <<\_ACEOF
45199 #define wxUSE_BUTTON 1
45200 _ACEOF
45201
45202   USES_CONTROLS=1
45203 fi
45204
45205 if test "$wxUSE_BMPBUTTON" = "yes"; then
45206   cat >>confdefs.h <<\_ACEOF
45207 #define wxUSE_BMPBUTTON 1
45208 _ACEOF
45209
45210   USES_CONTROLS=1
45211 fi
45212
45213 if test "$wxUSE_CALCTRL" = "yes"; then
45214   cat >>confdefs.h <<\_ACEOF
45215 #define wxUSE_CALENDARCTRL 1
45216 _ACEOF
45217
45218   USES_CONTROLS=1
45219   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45220 fi
45221
45222 if test "$wxUSE_CARET" = "yes"; then
45223   cat >>confdefs.h <<\_ACEOF
45224 #define wxUSE_CARET 1
45225 _ACEOF
45226
45227   USES_CONTROLS=1
45228   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45229 fi
45230
45231 if test "$wxUSE_COMBOBOX" = "yes"; then
45232   cat >>confdefs.h <<\_ACEOF
45233 #define wxUSE_COMBOBOX 1
45234 _ACEOF
45235
45236   USES_CONTROLS=1
45237 fi
45238
45239 if test "$wxUSE_COMBOCTRL" = "yes"; then
45240   cat >>confdefs.h <<\_ACEOF
45241 #define wxUSE_COMBOCTRL 1
45242 _ACEOF
45243
45244   USES_CONTROLS=1
45245 fi
45246
45247 if test "$wxUSE_CHOICE" = "yes"; then
45248   cat >>confdefs.h <<\_ACEOF
45249 #define wxUSE_CHOICE 1
45250 _ACEOF
45251
45252   USES_CONTROLS=1
45253 fi
45254
45255 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45256     cat >>confdefs.h <<\_ACEOF
45257 #define wxUSE_CHOICEBOOK 1
45258 _ACEOF
45259
45260     USES_CONTROLS=1
45261 fi
45262
45263 if test "$wxUSE_CHECKBOX" = "yes"; then
45264   cat >>confdefs.h <<\_ACEOF
45265 #define wxUSE_CHECKBOX 1
45266 _ACEOF
45267
45268   USES_CONTROLS=1
45269 fi
45270
45271 if test "$wxUSE_CHECKLST" = "yes"; then
45272   cat >>confdefs.h <<\_ACEOF
45273 #define wxUSE_CHECKLISTBOX 1
45274 _ACEOF
45275
45276   USES_CONTROLS=1
45277   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45278 fi
45279
45280 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45281   cat >>confdefs.h <<\_ACEOF
45282 #define wxUSE_COLOURPICKERCTRL 1
45283 _ACEOF
45284
45285   USES_CONTROLS=1
45286 fi
45287
45288 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45289   cat >>confdefs.h <<\_ACEOF
45290 #define wxUSE_DATEPICKCTRL 1
45291 _ACEOF
45292
45293   USES_CONTROLS=1
45294 fi
45295
45296 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45297   cat >>confdefs.h <<\_ACEOF
45298 #define wxUSE_DIRPICKERCTRL 1
45299 _ACEOF
45300
45301   USES_CONTROLS=1
45302 fi
45303
45304 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45305   cat >>confdefs.h <<\_ACEOF
45306 #define wxUSE_FILEPICKERCTRL 1
45307 _ACEOF
45308
45309   USES_CONTROLS=1
45310 fi
45311
45312 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45313   cat >>confdefs.h <<\_ACEOF
45314 #define wxUSE_FONTPICKERCTRL 1
45315 _ACEOF
45316
45317   USES_CONTROLS=1
45318 fi
45319
45320 if test "$wxUSE_DISPLAY" = "yes"; then
45321     cat >>confdefs.h <<\_ACEOF
45322 #define wxUSE_DISPLAY 1
45323 _ACEOF
45324
45325     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
45326 fi
45327
45328 if test "$wxUSE_GAUGE" = "yes"; then
45329   cat >>confdefs.h <<\_ACEOF
45330 #define wxUSE_GAUGE 1
45331 _ACEOF
45332
45333   USES_CONTROLS=1
45334 fi
45335
45336 if test "$wxUSE_GRID" = "yes"; then
45337   cat >>confdefs.h <<\_ACEOF
45338 #define wxUSE_GRID 1
45339 _ACEOF
45340
45341   USES_CONTROLS=1
45342   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45343 fi
45344
45345 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45346   cat >>confdefs.h <<\_ACEOF
45347 #define wxUSE_HYPERLINKCTRL 1
45348 _ACEOF
45349
45350   USES_CONTROLS=1
45351 fi
45352
45353 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45354   cat >>confdefs.h <<\_ACEOF
45355 #define wxUSE_BITMAPCOMBOBOX 1
45356 _ACEOF
45357
45358   USES_CONTROLS=1
45359 fi
45360
45361 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45362   cat >>confdefs.h <<\_ACEOF
45363 #define wxUSE_DATAVIEWCTRL 1
45364 _ACEOF
45365
45366   USES_CONTROLS=1
45367   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45368 fi
45369
45370 if test "$wxUSE_IMAGLIST" = "yes"; then
45371     cat >>confdefs.h <<\_ACEOF
45372 #define wxUSE_IMAGLIST 1
45373 _ACEOF
45374
45375 fi
45376
45377 if test "$wxUSE_LISTBOOK" = "yes"; then
45378     cat >>confdefs.h <<\_ACEOF
45379 #define wxUSE_LISTBOOK 1
45380 _ACEOF
45381
45382     USES_CONTROLS=1
45383 fi
45384
45385 if test "$wxUSE_LISTBOX" = "yes"; then
45386     cat >>confdefs.h <<\_ACEOF
45387 #define wxUSE_LISTBOX 1
45388 _ACEOF
45389
45390     USES_CONTROLS=1
45391     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
45392 fi
45393
45394 if test "$wxUSE_LISTCTRL" = "yes"; then
45395     if test "$wxUSE_IMAGLIST" = "yes"; then
45396         cat >>confdefs.h <<\_ACEOF
45397 #define wxUSE_LISTCTRL 1
45398 _ACEOF
45399
45400         USES_CONTROLS=1
45401         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45402     else
45403         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45404 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45405     fi
45406 fi
45407
45408 if test "$wxUSE_NOTEBOOK" = "yes"; then
45409     cat >>confdefs.h <<\_ACEOF
45410 #define wxUSE_NOTEBOOK 1
45411 _ACEOF
45412
45413     USES_CONTROLS=1
45414     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45415 fi
45416
45417 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45418   cat >>confdefs.h <<\_ACEOF
45419 #define wxUSE_ODCOMBOBOX 1
45420 _ACEOF
45421
45422   USES_CONTROLS=1
45423   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45424 fi
45425
45426
45427 if test "$wxUSE_RADIOBOX" = "yes"; then
45428     cat >>confdefs.h <<\_ACEOF
45429 #define wxUSE_RADIOBOX 1
45430 _ACEOF
45431
45432     USES_CONTROLS=1
45433 fi
45434
45435 if test "$wxUSE_RADIOBTN" = "yes"; then
45436     cat >>confdefs.h <<\_ACEOF
45437 #define wxUSE_RADIOBTN 1
45438 _ACEOF
45439
45440     USES_CONTROLS=1
45441 fi
45442
45443 if test "$wxUSE_SASH" = "yes"; then
45444     cat >>confdefs.h <<\_ACEOF
45445 #define wxUSE_SASH 1
45446 _ACEOF
45447
45448     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45449 fi
45450
45451 if test "$wxUSE_SCROLLBAR" = "yes"; then
45452     cat >>confdefs.h <<\_ACEOF
45453 #define wxUSE_SCROLLBAR 1
45454 _ACEOF
45455
45456     USES_CONTROLS=1
45457     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45458 fi
45459
45460 if test "$wxUSE_SLIDER" = "yes"; then
45461     cat >>confdefs.h <<\_ACEOF
45462 #define wxUSE_SLIDER 1
45463 _ACEOF
45464
45465     USES_CONTROLS=1
45466 fi
45467
45468 if test "$wxUSE_SPINBTN" = "yes"; then
45469     cat >>confdefs.h <<\_ACEOF
45470 #define wxUSE_SPINBTN 1
45471 _ACEOF
45472
45473     USES_CONTROLS=1
45474 fi
45475
45476 if test "$wxUSE_SPINCTRL" = "yes"; then
45477     cat >>confdefs.h <<\_ACEOF
45478 #define wxUSE_SPINCTRL 1
45479 _ACEOF
45480
45481     USES_CONTROLS=1
45482 fi
45483
45484 if test "$wxUSE_SPLITTER" = "yes"; then
45485     cat >>confdefs.h <<\_ACEOF
45486 #define wxUSE_SPLITTER 1
45487 _ACEOF
45488
45489     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45490 fi
45491
45492 if test "$wxUSE_STATBMP" = "yes"; then
45493     cat >>confdefs.h <<\_ACEOF
45494 #define wxUSE_STATBMP 1
45495 _ACEOF
45496
45497     USES_CONTROLS=1
45498 fi
45499
45500 if test "$wxUSE_STATBOX" = "yes"; then
45501     cat >>confdefs.h <<\_ACEOF
45502 #define wxUSE_STATBOX 1
45503 _ACEOF
45504
45505     USES_CONTROLS=1
45506 fi
45507
45508 if test "$wxUSE_STATTEXT" = "yes"; then
45509     cat >>confdefs.h <<\_ACEOF
45510 #define wxUSE_STATTEXT 1
45511 _ACEOF
45512
45513     USES_CONTROLS=1
45514 fi
45515
45516 if test "$wxUSE_STATLINE" = "yes"; then
45517     cat >>confdefs.h <<\_ACEOF
45518 #define wxUSE_STATLINE 1
45519 _ACEOF
45520
45521     USES_CONTROLS=1
45522 fi
45523
45524 if test "$wxUSE_STATUSBAR" = "yes"; then
45525         cat >>confdefs.h <<\_ACEOF
45526 #define wxUSE_NATIVE_STATUSBAR 1
45527 _ACEOF
45528
45529     cat >>confdefs.h <<\_ACEOF
45530 #define wxUSE_STATUSBAR 1
45531 _ACEOF
45532
45533     USES_CONTROLS=1
45534
45535     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45536 fi
45537
45538 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45539     cat >>confdefs.h <<\_ACEOF
45540 #define wxUSE_TAB_DIALOG 1
45541 _ACEOF
45542
45543 fi
45544
45545 if test "$wxUSE_TEXTCTRL" = "yes"; then
45546     cat >>confdefs.h <<\_ACEOF
45547 #define wxUSE_TEXTCTRL 1
45548 _ACEOF
45549
45550     USES_CONTROLS=1
45551     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45552 fi
45553
45554 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45555     if test "$wxUSE_COCOA" = 1 ; then
45556         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45557 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45558         wxUSE_TOGGLEBTN=no
45559     fi
45560
45561     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45562         cat >>confdefs.h <<\_ACEOF
45563 #define wxUSE_TOGGLEBTN 1
45564 _ACEOF
45565
45566         USES_CONTROLS=1
45567     fi
45568 fi
45569
45570 if test "$wxUSE_TOOLBAR" = "yes"; then
45571     cat >>confdefs.h <<\_ACEOF
45572 #define wxUSE_TOOLBAR 1
45573 _ACEOF
45574
45575     USES_CONTROLS=1
45576
45577     if test "$wxUSE_UNIVERSAL" = "yes"; then
45578         wxUSE_TOOLBAR_NATIVE="no"
45579     else
45580         wxUSE_TOOLBAR_NATIVE="yes"
45581         cat >>confdefs.h <<\_ACEOF
45582 #define wxUSE_TOOLBAR_NATIVE 1
45583 _ACEOF
45584
45585     fi
45586
45587     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45588 fi
45589
45590 if test "$wxUSE_TOOLTIPS" = "yes"; then
45591     if test "$wxUSE_MOTIF" = 1; then
45592         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45593 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45594     else
45595         if test "$wxUSE_UNIVERSAL" = "yes"; then
45596             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45597 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45598         else
45599             cat >>confdefs.h <<\_ACEOF
45600 #define wxUSE_TOOLTIPS 1
45601 _ACEOF
45602
45603         fi
45604     fi
45605 fi
45606
45607 if test "$wxUSE_TREEBOOK" = "yes"; then
45608     cat >>confdefs.h <<\_ACEOF
45609 #define wxUSE_TREEBOOK 1
45610 _ACEOF
45611
45612     USES_CONTROLS=1
45613 fi
45614
45615 if test "$wxUSE_TOOLBOOK" = "yes"; then
45616     cat >>confdefs.h <<\_ACEOF
45617 #define wxUSE_TOOLBOOK 1
45618 _ACEOF
45619
45620     USES_CONTROLS=1
45621 fi
45622
45623 if test "$wxUSE_TREECTRL" = "yes"; then
45624     if test "$wxUSE_IMAGLIST" = "yes"; then
45625         cat >>confdefs.h <<\_ACEOF
45626 #define wxUSE_TREECTRL 1
45627 _ACEOF
45628
45629         USES_CONTROLS=1
45630         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45631     else
45632         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45633 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45634     fi
45635 fi
45636
45637 if test "$wxUSE_POPUPWIN" = "yes"; then
45638     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45639         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45640 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45641     else
45642         if test "$wxUSE_PM" = 1; then
45643             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45644 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45645         else
45646             cat >>confdefs.h <<\_ACEOF
45647 #define wxUSE_POPUPWIN 1
45648 _ACEOF
45649
45650             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
45651
45652             USES_CONTROLS=1
45653         fi
45654     fi
45655 fi
45656
45657 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
45658     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45659         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45660 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45661     else
45662         cat >>confdefs.h <<\_ACEOF
45663 #define wxUSE_DIALUP_MANAGER 1
45664 _ACEOF
45665
45666         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45667     fi
45668 fi
45669
45670 if test "$wxUSE_TIPWINDOW" = "yes"; then
45671     if test "$wxUSE_PM" = 1; then
45672         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45673 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45674     else
45675         cat >>confdefs.h <<\_ACEOF
45676 #define wxUSE_TIPWINDOW 1
45677 _ACEOF
45678
45679     fi
45680 fi
45681
45682 if test "$USES_CONTROLS" = 1; then
45683     cat >>confdefs.h <<\_ACEOF
45684 #define wxUSE_CONTROLS 1
45685 _ACEOF
45686
45687 fi
45688
45689
45690 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45691     cat >>confdefs.h <<\_ACEOF
45692 #define wxUSE_ACCESSIBILITY 1
45693 _ACEOF
45694
45695     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45696 fi
45697
45698 if test "$wxUSE_DC_CACHEING" = "yes"; then
45699     cat >>confdefs.h <<\_ACEOF
45700 #define wxUSE_DC_CACHEING 1
45701 _ACEOF
45702
45703 fi
45704
45705 if test "$wxUSE_DRAGIMAGE" = "yes"; then
45706     cat >>confdefs.h <<\_ACEOF
45707 #define wxUSE_DRAGIMAGE 1
45708 _ACEOF
45709
45710     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45711 fi
45712
45713 if test "$wxUSE_EXCEPTIONS" = "yes"; then
45714     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45715         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45716 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45717     else
45718         cat >>confdefs.h <<\_ACEOF
45719 #define wxUSE_EXCEPTIONS 1
45720 _ACEOF
45721
45722         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45723     fi
45724 fi
45725
45726 USE_HTML=0
45727 if test "$wxUSE_HTML" = "yes"; then
45728     cat >>confdefs.h <<\_ACEOF
45729 #define wxUSE_HTML 1
45730 _ACEOF
45731
45732     USE_HTML=1
45733     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
45734     if test "$wxUSE_MAC" = 1; then
45735         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45736     fi
45737 fi
45738 if test "$wxUSE_WEBKIT" = "yes"; then
45739     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
45740         old_CPPFLAGS="$CPPFLAGS"
45741         CPPFLAGS="-x objective-c++ $CPPFLAGS"
45742         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45743 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45744 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45745   echo $ECHO_N "(cached) $ECHO_C" >&6
45746 else
45747   cat >conftest.$ac_ext <<_ACEOF
45748 /* confdefs.h.  */
45749 _ACEOF
45750 cat confdefs.h >>conftest.$ac_ext
45751 cat >>conftest.$ac_ext <<_ACEOF
45752 /* end confdefs.h.  */
45753 #include <Carbon/Carbon.h>
45754
45755 #include <WebKit/HIWebView.h>
45756 _ACEOF
45757 rm -f conftest.$ac_objext
45758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45759   (eval $ac_compile) 2>conftest.er1
45760   ac_status=$?
45761   grep -v '^ *+' conftest.er1 >conftest.err
45762   rm -f conftest.er1
45763   cat conftest.err >&5
45764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45765   (exit $ac_status); } &&
45766          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45768   (eval $ac_try) 2>&5
45769   ac_status=$?
45770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45771   (exit $ac_status); }; } &&
45772          { ac_try='test -s conftest.$ac_objext'
45773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45774   (eval $ac_try) 2>&5
45775   ac_status=$?
45776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45777   (exit $ac_status); }; }; then
45778   ac_cv_header_WebKit_HIWebView_h=yes
45779 else
45780   echo "$as_me: failed program was:" >&5
45781 sed 's/^/| /' conftest.$ac_ext >&5
45782
45783 ac_cv_header_WebKit_HIWebView_h=no
45784 fi
45785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45786 fi
45787 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45788 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45789 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45790
45791                            cat >>confdefs.h <<\_ACEOF
45792 #define wxUSE_WEBKIT 1
45793 _ACEOF
45794
45795                            WEBKIT_LINK="-framework WebKit"
45796
45797 else
45798
45799                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45800 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45801                            wxUSE_WEBKIT=no
45802
45803 fi
45804
45805
45806         CPPFLAGS="$old_CPPFLAGS"
45807     elif test "$wxUSE_COCOA" = 1; then
45808         cat >>confdefs.h <<\_ACEOF
45809 #define wxUSE_WEBKIT 1
45810 _ACEOF
45811
45812     else
45813         wxUSE_WEBKIT=no
45814     fi
45815 fi
45816
45817 USE_XRC=0
45818 if test "$wxUSE_XRC" = "yes"; then
45819     if test "$wxUSE_XML" != "yes"; then
45820         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45821 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45822         wxUSE_XRC=no
45823     else
45824         cat >>confdefs.h <<\_ACEOF
45825 #define wxUSE_XRC 1
45826 _ACEOF
45827
45828         USE_XRC=1
45829         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45830     fi
45831 fi
45832
45833 USE_AUI=0
45834 if test "$wxUSE_AUI" = "yes"; then
45835    cat >>confdefs.h <<\_ACEOF
45836 #define wxUSE_AUI 1
45837 _ACEOF
45838
45839    USE_AUI=1
45840    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45841 fi
45842
45843 if test "$wxUSE_MENUS" = "yes"; then
45844     cat >>confdefs.h <<\_ACEOF
45845 #define wxUSE_MENUS 1
45846 _ACEOF
45847
45848     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45849 fi
45850
45851 if test "$wxUSE_METAFILE" = "yes"; then
45852     cat >>confdefs.h <<\_ACEOF
45853 #define wxUSE_METAFILE 1
45854 _ACEOF
45855
45856 fi
45857
45858 if test "$wxUSE_MIMETYPE" = "yes"; then
45859     cat >>confdefs.h <<\_ACEOF
45860 #define wxUSE_MIMETYPE 1
45861 _ACEOF
45862
45863 fi
45864
45865 if test "$wxUSE_MINIFRAME" = "yes"; then
45866     cat >>confdefs.h <<\_ACEOF
45867 #define wxUSE_MINIFRAME 1
45868 _ACEOF
45869
45870     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45871 fi
45872
45873 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45874     cat >>confdefs.h <<\_ACEOF
45875 #define wxUSE_SYSTEM_OPTIONS 1
45876 _ACEOF
45877
45878     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
45879         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
45880         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45881     fi
45882 fi
45883
45884
45885 if test "$wxUSE_VALIDATORS" = "yes"; then
45886     cat >>confdefs.h <<\_ACEOF
45887 #define wxUSE_VALIDATORS 1
45888 _ACEOF
45889
45890     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45891 fi
45892
45893 if test "$wxUSE_PALETTE" = "yes" ; then
45894   cat >>confdefs.h <<\_ACEOF
45895 #define wxUSE_PALETTE 1
45896 _ACEOF
45897
45898 fi
45899
45900 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45901     LIBS=" -lunicows $LIBS"
45902 fi
45903
45904 USE_RICHTEXT=0
45905 if test "$wxUSE_RICHTEXT" = "yes"; then
45906     cat >>confdefs.h <<\_ACEOF
45907 #define wxUSE_RICHTEXT 1
45908 _ACEOF
45909
45910     USE_RICHTEXT=1
45911     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45912 fi
45913
45914 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
45915   cat >>confdefs.h <<\_ACEOF
45916 #define wxUSE_GRAPHICS_CONTEXT 1
45917 _ACEOF
45918
45919 fi
45920
45921
45922 if test "$wxUSE_IMAGE" = "yes" ; then
45923     cat >>confdefs.h <<\_ACEOF
45924 #define wxUSE_IMAGE 1
45925 _ACEOF
45926
45927
45928     if test "$wxUSE_GIF" = "yes" ; then
45929       cat >>confdefs.h <<\_ACEOF
45930 #define wxUSE_GIF 1
45931 _ACEOF
45932
45933     fi
45934
45935     if test "$wxUSE_PCX" = "yes" ; then
45936       cat >>confdefs.h <<\_ACEOF
45937 #define wxUSE_PCX 1
45938 _ACEOF
45939
45940     fi
45941
45942     if test "$wxUSE_IFF" = "yes" ; then
45943       cat >>confdefs.h <<\_ACEOF
45944 #define wxUSE_IFF 1
45945 _ACEOF
45946
45947     fi
45948
45949     if test "$wxUSE_PNM" = "yes" ; then
45950       cat >>confdefs.h <<\_ACEOF
45951 #define wxUSE_PNM 1
45952 _ACEOF
45953
45954     fi
45955
45956     if test "$wxUSE_XPM" = "yes" ; then
45957       cat >>confdefs.h <<\_ACEOF
45958 #define wxUSE_XPM 1
45959 _ACEOF
45960
45961     fi
45962
45963     if test "$wxUSE_ICO_CUR" = "yes" ; then
45964       cat >>confdefs.h <<\_ACEOF
45965 #define wxUSE_ICO_CUR 1
45966 _ACEOF
45967
45968     fi
45969 fi
45970
45971
45972 if test "$wxUSE_ABOUTDLG" = "yes"; then
45973     cat >>confdefs.h <<\_ACEOF
45974 #define wxUSE_ABOUTDLG 1
45975 _ACEOF
45976
45977 fi
45978
45979 if test "$wxUSE_CHOICEDLG" = "yes"; then
45980     cat >>confdefs.h <<\_ACEOF
45981 #define wxUSE_CHOICEDLG 1
45982 _ACEOF
45983
45984 fi
45985
45986 if test "$wxUSE_COLOURDLG" = "yes"; then
45987     cat >>confdefs.h <<\_ACEOF
45988 #define wxUSE_COLOURDLG 1
45989 _ACEOF
45990
45991 fi
45992
45993 if test "$wxUSE_FILEDLG" = "yes"; then
45994     cat >>confdefs.h <<\_ACEOF
45995 #define wxUSE_FILEDLG 1
45996 _ACEOF
45997
45998 fi
45999
46000 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46001     cat >>confdefs.h <<\_ACEOF
46002 #define wxUSE_FINDREPLDLG 1
46003 _ACEOF
46004
46005 fi
46006
46007 if test "$wxUSE_FONTDLG" = "yes"; then
46008     cat >>confdefs.h <<\_ACEOF
46009 #define wxUSE_FONTDLG 1
46010 _ACEOF
46011
46012 fi
46013
46014 if test "$wxUSE_DIRDLG" = "yes"; then
46015     if test "$wxUSE_TREECTRL" != "yes"; then
46016         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46017 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46018     else
46019         cat >>confdefs.h <<\_ACEOF
46020 #define wxUSE_DIRDLG 1
46021 _ACEOF
46022
46023     fi
46024 fi
46025
46026 if test "$wxUSE_MSGDLG" = "yes"; then
46027     cat >>confdefs.h <<\_ACEOF
46028 #define wxUSE_MSGDLG 1
46029 _ACEOF
46030
46031 fi
46032
46033 if test "$wxUSE_NUMBERDLG" = "yes"; then
46034     cat >>confdefs.h <<\_ACEOF
46035 #define wxUSE_NUMBERDLG 1
46036 _ACEOF
46037
46038 fi
46039
46040 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46041     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46042        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46043 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46044     else
46045         cat >>confdefs.h <<\_ACEOF
46046 #define wxUSE_PROGRESSDLG 1
46047 _ACEOF
46048
46049     fi
46050 fi
46051
46052 if test "$wxUSE_SPLASH" = "yes"; then
46053     cat >>confdefs.h <<\_ACEOF
46054 #define wxUSE_SPLASH 1
46055 _ACEOF
46056
46057     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46058 fi
46059
46060 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46061     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46062        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46063 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46064     else
46065         cat >>confdefs.h <<\_ACEOF
46066 #define wxUSE_STARTUP_TIPS 1
46067 _ACEOF
46068
46069     fi
46070 fi
46071
46072 if test "$wxUSE_TEXTDLG" = "yes"; then
46073     cat >>confdefs.h <<\_ACEOF
46074 #define wxUSE_TEXTDLG 1
46075 _ACEOF
46076
46077 fi
46078
46079 if test "$wxUSE_WIZARDDLG" = "yes"; then
46080     cat >>confdefs.h <<\_ACEOF
46081 #define wxUSE_WIZARDDLG 1
46082 _ACEOF
46083
46084     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46085 fi
46086
46087
46088 USE_MEDIA=0
46089
46090 if test "$wxUSE_MEDIACTRL" = "yes"; then
46091     USE_MEDIA=1
46092
46093                 if test "$wxUSE_GTK" = 1; then
46094         wxUSE_GSTREAMER="no"
46095
46096                                                                 GST_VERSION_MAJOR=0
46097         GST_VERSION_MINOR=10
46098         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46099
46100         if test "$wxUSE_GSTREAMER8" = "no"; then
46101
46102 pkg_failed=no
46103 echo "$as_me:$LINENO: checking for GST" >&5
46104 echo $ECHO_N "checking for GST... $ECHO_C" >&6
46105
46106 if test -n "$PKG_CONFIG"; then
46107     if test -n "$GST_CFLAGS"; then
46108         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46109     else
46110         if test -n "$PKG_CONFIG" && \
46111     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46112   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46113   ac_status=$?
46114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46115   (exit $ac_status); }; then
46116   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46117 else
46118   pkg_failed=yes
46119 fi
46120     fi
46121 else
46122         pkg_failed=untried
46123 fi
46124 if test -n "$PKG_CONFIG"; then
46125     if test -n "$GST_LIBS"; then
46126         pkg_cv_GST_LIBS="$GST_LIBS"
46127     else
46128         if test -n "$PKG_CONFIG" && \
46129     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46130   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46131   ac_status=$?
46132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46133   (exit $ac_status); }; then
46134   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46135 else
46136   pkg_failed=yes
46137 fi
46138     fi
46139 else
46140         pkg_failed=untried
46141 fi
46142
46143
46144
46145 if test $pkg_failed = yes; then
46146
46147 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46148         _pkg_short_errors_supported=yes
46149 else
46150         _pkg_short_errors_supported=no
46151 fi
46152         if test $_pkg_short_errors_supported = yes; then
46153                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46154         else
46155                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46156         fi
46157         # Put the nasty error message in config.log where it belongs
46158         echo "$GST_PKG_ERRORS" >&5
46159
46160
46161                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46162 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46163                     GST_VERSION_MINOR=8
46164
46165
46166 elif test $pkg_failed = untried; then
46167
46168                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46169 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46170                     GST_VERSION_MINOR=8
46171
46172
46173 else
46174         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46175         GST_LIBS=$pkg_cv_GST_LIBS
46176         echo "$as_me:$LINENO: result: yes" >&5
46177 echo "${ECHO_T}yes" >&6
46178
46179                     wxUSE_GSTREAMER="yes"
46180                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46181
46182 fi
46183         else
46184                         GST_VERSION_MINOR=8
46185         fi
46186
46187         if test $GST_VERSION_MINOR = "8"; then
46188             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46189
46190 pkg_failed=no
46191 echo "$as_me:$LINENO: checking for GST" >&5
46192 echo $ECHO_N "checking for GST... $ECHO_C" >&6
46193
46194 if test -n "$PKG_CONFIG"; then
46195     if test -n "$GST_CFLAGS"; then
46196         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46197     else
46198         if test -n "$PKG_CONFIG" && \
46199     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46200   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46201   ac_status=$?
46202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46203   (exit $ac_status); }; then
46204   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46205 else
46206   pkg_failed=yes
46207 fi
46208     fi
46209 else
46210         pkg_failed=untried
46211 fi
46212 if test -n "$PKG_CONFIG"; then
46213     if test -n "$GST_LIBS"; then
46214         pkg_cv_GST_LIBS="$GST_LIBS"
46215     else
46216         if test -n "$PKG_CONFIG" && \
46217     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46218   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46219   ac_status=$?
46220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46221   (exit $ac_status); }; then
46222   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46223 else
46224   pkg_failed=yes
46225 fi
46226     fi
46227 else
46228         pkg_failed=untried
46229 fi
46230
46231
46232
46233 if test $pkg_failed = yes; then
46234
46235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46236         _pkg_short_errors_supported=yes
46237 else
46238         _pkg_short_errors_supported=no
46239 fi
46240         if test $_pkg_short_errors_supported = yes; then
46241                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46242         else
46243                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46244         fi
46245         # Put the nasty error message in config.log where it belongs
46246         echo "$GST_PKG_ERRORS" >&5
46247
46248
46249                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46250 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46251
46252 elif test $pkg_failed = untried; then
46253
46254                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46255 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46256
46257 else
46258         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46259         GST_LIBS=$pkg_cv_GST_LIBS
46260         echo "$as_me:$LINENO: result: yes" >&5
46261 echo "${ECHO_T}yes" >&6
46262         wxUSE_GSTREAMER="yes"
46263 fi
46264         fi
46265
46266
46267         if test "$wxUSE_GSTREAMER" = "yes"; then
46268                                     case "${host}" in
46269                 *-*-solaris2* )
46270                     if "$GCC" = yes; then
46271                         GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46272                         GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46273                     fi
46274             esac
46275
46276             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46277             LIBS="$GST_LIBS $LIBS"
46278
46279             cat >>confdefs.h <<\_ACEOF
46280 #define wxUSE_GSTREAMER 1
46281 _ACEOF
46282
46283         else
46284             USE_MEDIA=0
46285         fi
46286     fi
46287
46288     if test $USE_MEDIA = 1; then
46289         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46290         cat >>confdefs.h <<\_ACEOF
46291 #define wxUSE_MEDIACTRL 1
46292 _ACEOF
46293
46294     fi
46295 fi
46296
46297
46298 if test "$cross_compiling" = "yes"; then
46299         OSINFO="\"$host\""
46300 else
46301         OSINFO=`uname -s -r -m`
46302     OSINFO="\"$OSINFO\""
46303 fi
46304
46305 cat >>confdefs.h <<_ACEOF
46306 #define WXWIN_OS_DESCRIPTION $OSINFO
46307 _ACEOF
46308
46309
46310
46311 if test "x$prefix" != "xNONE"; then
46312     wxPREFIX=$prefix
46313 else
46314     wxPREFIX=$ac_default_prefix
46315 fi
46316
46317 cat >>confdefs.h <<_ACEOF
46318 #define wxINSTALL_PREFIX "$wxPREFIX"
46319 _ACEOF
46320
46321
46322
46323
46324 CORE_BASE_LIBS="net base"
46325 CORE_GUI_LIBS="adv core"
46326
46327 if test "$wxUSE_XML" = "yes" ; then
46328     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46329 fi
46330 if test "$wxUSE_ODBC" != "no" ; then
46331     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46332     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46333 fi
46334 if test "$wxUSE_HTML" = "yes" ; then
46335     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46336 fi
46337 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46338     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46339 fi
46340 if test "$wxUSE_XRC" = "yes" ; then
46341     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46342 fi
46343 if test "$wxUSE_AUI" = "yes" ; then
46344     CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46345 fi
46346
46347 if test "$wxUSE_GUI" != "yes"; then
46348     CORE_GUI_LIBS=""
46349 fi
46350
46351
46352
46353
46354
46355 ac_ext=c
46356 ac_cpp='$CPP $CPPFLAGS'
46357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46360
46361
46362
46363 if test "$wxUSE_MAC" = 1 ; then
46364     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46365         if test "$USE_DARWIN" = 1; then
46366             LDFLAGS="$LDFLAGS -framework QuickTime"
46367         else
46368             LDFLAGS="$LDFLAGS -lQuickTimeLib"
46369         fi
46370     fi
46371     if test "$USE_DARWIN" = 1; then
46372         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46373     else
46374         LDFLAGS="$LDFLAGS -lCarbonLib"
46375     fi
46376 fi
46377 if test "$wxUSE_COCOA" = 1 ; then
46378     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46379     if test "$wxUSE_MEDIACTRL" = "yes"; then
46380         LDFLAGS="$LDFLAGS -framework QuickTime"
46381     fi
46382 fi
46383 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46384     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46385 fi
46386
46387 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46388
46389 if test "$wxUSE_GUI" = "yes"; then
46390
46391
46392         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46393                      dynamic erase event exec font image minimal mobile \
46394                      mobile/wxedit mobile/styles propsize render \
46395                      rotate shaped vscroll widgets"
46396
46397     if test "$wxUSE_MONOLITHIC" != "yes"; then
46398         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46399     fi
46400     if test "$TOOLKIT" = "MSW"; then
46401         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46402         if test "$wxUSE_UNIVERSAL" != "yes"; then
46403             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46404         fi
46405     fi
46406     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46407         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46408     fi
46409 else
46410     SAMPLES_SUBDIRS="console"
46411 fi
46412
46413
46414 if test "x$INTELCC" = "xyes" ; then
46415                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46416 elif test "$GCC" = yes ; then
46417     CWARNINGS="-Wall -Wundef"
46418 fi
46419
46420 if test "x$INTELCXX" = "xyes" ; then
46421                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
46422 elif test "$GXX" = yes ; then
46423         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
46424 fi
46425
46426
46427 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46428 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46429
46430
46431 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
46432  -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
46433  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46434  $CPPFLAGS `
46435
46436 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
46437 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
46438 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
46439
46440 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46441
46442
46443 if test "x$MWCC" = "xyes"; then
46444
46445             CC="$CC -cwd source -I-"
46446     CXX="$CXX -cwd source -I-"
46447 fi
46448
46449
46450 LIBS=`echo $LIBS`
46451 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46452 EXTRALIBS_XML="$EXPAT_LINK"
46453 EXTRALIBS_HTML="$MSPACK_LINK"
46454 EXTRALIBS_ODBC="$ODBC_LINK"
46455 if test "$wxUSE_GUI" = "yes"; then
46456     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
46457 fi
46458 if test "$wxUSE_OPENGL" = "yes"; then
46459     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46460 fi
46461
46462 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
46463
46464 WXCONFIG_LIBS="$LIBS"
46465
46466 if test "$wxUSE_REGEX" = "builtin" ; then
46467     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
46468 fi
46469 if test "$wxUSE_EXPAT" = "builtin" ; then
46470     wxconfig_3rdparty="expat $wxconfig_3rdparty"
46471 fi
46472 if test "$wxUSE_ODBC" = "builtin" ; then
46473     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
46474 fi
46475 if test "$wxUSE_LIBTIFF" = "builtin" ; then
46476     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
46477 fi
46478 if test "$wxUSE_LIBJPEG" = "builtin" ; then
46479     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
46480 fi
46481 if test "$wxUSE_LIBPNG" = "builtin" ; then
46482     wxconfig_3rdparty="png $wxconfig_3rdparty"
46483 fi
46484 if test "$wxUSE_ZLIB" = "builtin" ; then
46485     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
46486 fi
46487
46488 for i in $wxconfig_3rdparty ; do
46489     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
46490 done
46491
46492
46493 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46494     WXUNIV=1
46495
46496     case "$wxUNIV_THEMES" in
46497         ''|all)
46498             cat >>confdefs.h <<\_ACEOF
46499 #define wxUSE_ALL_THEMES 1
46500 _ACEOF
46501
46502             ;;
46503
46504         *)
46505             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
46506                 cat >>confdefs.h <<_ACEOF
46507 #define wxUSE_THEME_$t 1
46508 _ACEOF
46509
46510             done
46511     esac
46512 else
46513     WXUNIV=0
46514 fi
46515
46516
46517
46518
46519
46520
46521
46522
46523
46524 if test $wxUSE_MONOLITHIC = "yes" ; then
46525     MONOLITHIC=1
46526 else
46527     MONOLITHIC=0
46528 fi
46529
46530 if test $wxUSE_PLUGINS = "yes" ; then
46531     USE_PLUGINS=1
46532 else
46533     USE_PLUGINS=0
46534 fi
46535
46536 if test $wxUSE_ODBC != "no" ; then
46537     USE_ODBC=1
46538 else
46539     USE_ODBC=0
46540 fi
46541
46542 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46543     USE_QA=1
46544 else
46545     USE_QA=0
46546 fi
46547
46548 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46549     OFFICIAL_BUILD=1
46550 else
46551     OFFICIAL_BUILD=0
46552 fi
46553
46554
46555
46556
46557
46558
46559
46560
46561
46562
46563
46564
46565
46566
46567
46568
46569
46570
46571
46572
46573
46574
46575
46576
46577
46578 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46579
46580
46581
46582
46583
46584
46585
46586
46587 case "$TOOLKIT" in
46588     GTK)
46589         TOOLKIT_DESC="GTK+"
46590         if test "$WXGTK20" = 1; then
46591             TOOLKIT_DESC="$TOOLKIT_DESC 2"
46592             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46593                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46594             fi
46595             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46596                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46597             fi
46598             if test "$wxUSE_LIBHILDON" = "yes"; then
46599                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46600             fi
46601
46602             if test "$TOOLKIT_EXTRA" != ""; then
46603                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46604             fi
46605         fi
46606         ;;
46607
46608     ?*)
46609         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46610         ;;
46611
46612     *)
46613         TOOLKIT_DESC="base only"
46614         ;;
46615 esac
46616
46617 if test "$wxUSE_WINE" = "yes"; then
46618     BAKEFILE_FORCE_PLATFORM=win32
46619 fi
46620
46621 if test "$wxUSE_MAC" = 1 ; then
46622     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46623                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46624             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46625         else
46626                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46627         fi
46628         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46629         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46630         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46631         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
46632         bk_use_pch=no
46633     fi
46634     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46635     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
46636 fi
46637
46638
46639
46640
46641     if test "x$BAKEFILE_HOST" = "x"; then
46642                if test "x${host}" = "x" ; then
46643                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46644 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46645    { (exit 1); exit 1; }; }
46646                fi
46647
46648         BAKEFILE_HOST="${host}"
46649     fi
46650
46651     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46652
46653     if test -n "$ac_tool_prefix"; then
46654   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46656 echo "$as_me:$LINENO: checking for $ac_word" >&5
46657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46658 if test "${ac_cv_prog_RANLIB+set}" = set; then
46659   echo $ECHO_N "(cached) $ECHO_C" >&6
46660 else
46661   if test -n "$RANLIB"; then
46662   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46663 else
46664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46665 for as_dir in $PATH
46666 do
46667   IFS=$as_save_IFS
46668   test -z "$as_dir" && as_dir=.
46669   for ac_exec_ext in '' $ac_executable_extensions; do
46670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46671     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46673     break 2
46674   fi
46675 done
46676 done
46677
46678 fi
46679 fi
46680 RANLIB=$ac_cv_prog_RANLIB
46681 if test -n "$RANLIB"; then
46682   echo "$as_me:$LINENO: result: $RANLIB" >&5
46683 echo "${ECHO_T}$RANLIB" >&6
46684 else
46685   echo "$as_me:$LINENO: result: no" >&5
46686 echo "${ECHO_T}no" >&6
46687 fi
46688
46689 fi
46690 if test -z "$ac_cv_prog_RANLIB"; then
46691   ac_ct_RANLIB=$RANLIB
46692   # Extract the first word of "ranlib", so it can be a program name with args.
46693 set dummy ranlib; ac_word=$2
46694 echo "$as_me:$LINENO: checking for $ac_word" >&5
46695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46696 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46697   echo $ECHO_N "(cached) $ECHO_C" >&6
46698 else
46699   if test -n "$ac_ct_RANLIB"; then
46700   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46701 else
46702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46703 for as_dir in $PATH
46704 do
46705   IFS=$as_save_IFS
46706   test -z "$as_dir" && as_dir=.
46707   for ac_exec_ext in '' $ac_executable_extensions; do
46708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46709     ac_cv_prog_ac_ct_RANLIB="ranlib"
46710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46711     break 2
46712   fi
46713 done
46714 done
46715
46716   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
46717 fi
46718 fi
46719 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46720 if test -n "$ac_ct_RANLIB"; then
46721   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46722 echo "${ECHO_T}$ac_ct_RANLIB" >&6
46723 else
46724   echo "$as_me:$LINENO: result: no" >&5
46725 echo "${ECHO_T}no" >&6
46726 fi
46727
46728   RANLIB=$ac_ct_RANLIB
46729 else
46730   RANLIB="$ac_cv_prog_RANLIB"
46731 fi
46732
46733     # Find a good install program.  We prefer a C program (faster),
46734 # so one script is as good as another.  But avoid the broken or
46735 # incompatible versions:
46736 # SysV /etc/install, /usr/sbin/install
46737 # SunOS /usr/etc/install
46738 # IRIX /sbin/install
46739 # AIX /bin/install
46740 # AmigaOS /C/install, which installs bootblocks on floppy discs
46741 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46742 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
46743 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
46744 # OS/2's system install, which has a completely different semantic
46745 # ./install, which can be erroneously created by make from ./install.sh.
46746 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46747 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46748 if test -z "$INSTALL"; then
46749 if test "${ac_cv_path_install+set}" = set; then
46750   echo $ECHO_N "(cached) $ECHO_C" >&6
46751 else
46752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46753 for as_dir in $PATH
46754 do
46755   IFS=$as_save_IFS
46756   test -z "$as_dir" && as_dir=.
46757   # Account for people who put trailing slashes in PATH elements.
46758 case $as_dir/ in
46759   ./ | .// | /cC/* | \
46760   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
46761   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
46762   /usr/ucb/* ) ;;
46763   *)
46764     # OSF1 and SCO ODT 3.0 have their own names for install.
46765     # Don't use installbsd from OSF since it installs stuff as root
46766     # by default.
46767     for ac_prog in ginstall scoinst install; do
46768       for ac_exec_ext in '' $ac_executable_extensions; do
46769         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46770           if test $ac_prog = install &&
46771             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46772             # AIX install.  It has an incompatible calling convention.
46773             :
46774           elif test $ac_prog = install &&
46775             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46776             # program-specific install script used by HP pwplus--don't use.
46777             :
46778           else
46779             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46780             break 3
46781           fi
46782         fi
46783       done
46784     done
46785     ;;
46786 esac
46787 done
46788
46789
46790 fi
46791   if test "${ac_cv_path_install+set}" = set; then
46792     INSTALL=$ac_cv_path_install
46793   else
46794     # As a last resort, use the slow shell script.  We don't cache a
46795     # path for INSTALL within a source directory, because that will
46796     # break other packages using the cache if that directory is
46797     # removed, or if the path is relative.
46798     INSTALL=$ac_install_sh
46799   fi
46800 fi
46801 echo "$as_me:$LINENO: result: $INSTALL" >&5
46802 echo "${ECHO_T}$INSTALL" >&6
46803
46804 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46805 # It thinks the first close brace ends the variable substitution.
46806 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46807
46808 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46809
46810 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46811
46812     echo "$as_me:$LINENO: checking whether ln -s works" >&5
46813 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46814 LN_S=$as_ln_s
46815 if test "$LN_S" = "ln -s"; then
46816   echo "$as_me:$LINENO: result: yes" >&5
46817 echo "${ECHO_T}yes" >&6
46818 else
46819   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46820 echo "${ECHO_T}no, using $LN_S" >&6
46821 fi
46822
46823
46824     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46825 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
46826 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
46827 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46828   echo $ECHO_N "(cached) $ECHO_C" >&6
46829 else
46830   cat >conftest.make <<\_ACEOF
46831 all:
46832         @echo 'ac_maketemp="$(MAKE)"'
46833 _ACEOF
46834 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46835 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46836 if test -n "$ac_maketemp"; then
46837   eval ac_cv_prog_make_${ac_make}_set=yes
46838 else
46839   eval ac_cv_prog_make_${ac_make}_set=no
46840 fi
46841 rm -f conftest.make
46842 fi
46843 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46844   echo "$as_me:$LINENO: result: yes" >&5
46845 echo "${ECHO_T}yes" >&6
46846   SET_MAKE=
46847 else
46848   echo "$as_me:$LINENO: result: no" >&5
46849 echo "${ECHO_T}no" >&6
46850   SET_MAKE="MAKE=${MAKE-make}"
46851 fi
46852
46853
46854
46855     if test -n "$ac_tool_prefix"; then
46856   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46857 set dummy ${ac_tool_prefix}ar; ac_word=$2
46858 echo "$as_me:$LINENO: checking for $ac_word" >&5
46859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46860 if test "${ac_cv_prog_AR+set}" = set; then
46861   echo $ECHO_N "(cached) $ECHO_C" >&6
46862 else
46863   if test -n "$AR"; then
46864   ac_cv_prog_AR="$AR" # Let the user override the test.
46865 else
46866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46867 for as_dir in $PATH
46868 do
46869   IFS=$as_save_IFS
46870   test -z "$as_dir" && as_dir=.
46871   for ac_exec_ext in '' $ac_executable_extensions; do
46872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46873     ac_cv_prog_AR="${ac_tool_prefix}ar"
46874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46875     break 2
46876   fi
46877 done
46878 done
46879
46880 fi
46881 fi
46882 AR=$ac_cv_prog_AR
46883 if test -n "$AR"; then
46884   echo "$as_me:$LINENO: result: $AR" >&5
46885 echo "${ECHO_T}$AR" >&6
46886 else
46887   echo "$as_me:$LINENO: result: no" >&5
46888 echo "${ECHO_T}no" >&6
46889 fi
46890
46891 fi
46892 if test -z "$ac_cv_prog_AR"; then
46893   ac_ct_AR=$AR
46894   # Extract the first word of "ar", so it can be a program name with args.
46895 set dummy ar; ac_word=$2
46896 echo "$as_me:$LINENO: checking for $ac_word" >&5
46897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46898 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46899   echo $ECHO_N "(cached) $ECHO_C" >&6
46900 else
46901   if test -n "$ac_ct_AR"; then
46902   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46903 else
46904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46905 for as_dir in $PATH
46906 do
46907   IFS=$as_save_IFS
46908   test -z "$as_dir" && as_dir=.
46909   for ac_exec_ext in '' $ac_executable_extensions; do
46910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46911     ac_cv_prog_ac_ct_AR="ar"
46912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46913     break 2
46914   fi
46915 done
46916 done
46917
46918   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46919 fi
46920 fi
46921 ac_ct_AR=$ac_cv_prog_ac_ct_AR
46922 if test -n "$ac_ct_AR"; then
46923   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46924 echo "${ECHO_T}$ac_ct_AR" >&6
46925 else
46926   echo "$as_me:$LINENO: result: no" >&5
46927 echo "${ECHO_T}no" >&6
46928 fi
46929
46930   AR=$ac_ct_AR
46931 else
46932   AR="$ac_cv_prog_AR"
46933 fi
46934
46935     if test -n "$ac_tool_prefix"; then
46936   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46937 set dummy ${ac_tool_prefix}strip; ac_word=$2
46938 echo "$as_me:$LINENO: checking for $ac_word" >&5
46939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46940 if test "${ac_cv_prog_STRIP+set}" = set; then
46941   echo $ECHO_N "(cached) $ECHO_C" >&6
46942 else
46943   if test -n "$STRIP"; then
46944   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46945 else
46946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46947 for as_dir in $PATH
46948 do
46949   IFS=$as_save_IFS
46950   test -z "$as_dir" && as_dir=.
46951   for ac_exec_ext in '' $ac_executable_extensions; do
46952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46953     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46955     break 2
46956   fi
46957 done
46958 done
46959
46960 fi
46961 fi
46962 STRIP=$ac_cv_prog_STRIP
46963 if test -n "$STRIP"; then
46964   echo "$as_me:$LINENO: result: $STRIP" >&5
46965 echo "${ECHO_T}$STRIP" >&6
46966 else
46967   echo "$as_me:$LINENO: result: no" >&5
46968 echo "${ECHO_T}no" >&6
46969 fi
46970
46971 fi
46972 if test -z "$ac_cv_prog_STRIP"; then
46973   ac_ct_STRIP=$STRIP
46974   # Extract the first word of "strip", so it can be a program name with args.
46975 set dummy strip; ac_word=$2
46976 echo "$as_me:$LINENO: checking for $ac_word" >&5
46977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46978 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46979   echo $ECHO_N "(cached) $ECHO_C" >&6
46980 else
46981   if test -n "$ac_ct_STRIP"; then
46982   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46983 else
46984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46985 for as_dir in $PATH
46986 do
46987   IFS=$as_save_IFS
46988   test -z "$as_dir" && as_dir=.
46989   for ac_exec_ext in '' $ac_executable_extensions; do
46990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46991     ac_cv_prog_ac_ct_STRIP="strip"
46992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46993     break 2
46994   fi
46995 done
46996 done
46997
46998   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46999 fi
47000 fi
47001 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47002 if test -n "$ac_ct_STRIP"; then
47003   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47004 echo "${ECHO_T}$ac_ct_STRIP" >&6
47005 else
47006   echo "$as_me:$LINENO: result: no" >&5
47007 echo "${ECHO_T}no" >&6
47008 fi
47009
47010   STRIP=$ac_ct_STRIP
47011 else
47012   STRIP="$ac_cv_prog_STRIP"
47013 fi
47014
47015     if test -n "$ac_tool_prefix"; then
47016   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47017 set dummy ${ac_tool_prefix}nm; ac_word=$2
47018 echo "$as_me:$LINENO: checking for $ac_word" >&5
47019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47020 if test "${ac_cv_prog_NM+set}" = set; then
47021   echo $ECHO_N "(cached) $ECHO_C" >&6
47022 else
47023   if test -n "$NM"; then
47024   ac_cv_prog_NM="$NM" # Let the user override the test.
47025 else
47026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47027 for as_dir in $PATH
47028 do
47029   IFS=$as_save_IFS
47030   test -z "$as_dir" && as_dir=.
47031   for ac_exec_ext in '' $ac_executable_extensions; do
47032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47033     ac_cv_prog_NM="${ac_tool_prefix}nm"
47034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47035     break 2
47036   fi
47037 done
47038 done
47039
47040 fi
47041 fi
47042 NM=$ac_cv_prog_NM
47043 if test -n "$NM"; then
47044   echo "$as_me:$LINENO: result: $NM" >&5
47045 echo "${ECHO_T}$NM" >&6
47046 else
47047   echo "$as_me:$LINENO: result: no" >&5
47048 echo "${ECHO_T}no" >&6
47049 fi
47050
47051 fi
47052 if test -z "$ac_cv_prog_NM"; then
47053   ac_ct_NM=$NM
47054   # Extract the first word of "nm", so it can be a program name with args.
47055 set dummy nm; ac_word=$2
47056 echo "$as_me:$LINENO: checking for $ac_word" >&5
47057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47058 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47059   echo $ECHO_N "(cached) $ECHO_C" >&6
47060 else
47061   if test -n "$ac_ct_NM"; then
47062   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47063 else
47064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47065 for as_dir in $PATH
47066 do
47067   IFS=$as_save_IFS
47068   test -z "$as_dir" && as_dir=.
47069   for ac_exec_ext in '' $ac_executable_extensions; do
47070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47071     ac_cv_prog_ac_ct_NM="nm"
47072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47073     break 2
47074   fi
47075 done
47076 done
47077
47078   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47079 fi
47080 fi
47081 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47082 if test -n "$ac_ct_NM"; then
47083   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47084 echo "${ECHO_T}$ac_ct_NM" >&6
47085 else
47086   echo "$as_me:$LINENO: result: no" >&5
47087 echo "${ECHO_T}no" >&6
47088 fi
47089
47090   NM=$ac_ct_NM
47091 else
47092   NM="$ac_cv_prog_NM"
47093 fi
47094
47095
47096     case ${BAKEFILE_HOST} in
47097         *-hp-hpux* )
47098                                     INSTALL_DIR="mkdir -p"
47099             ;;
47100         *)  INSTALL_DIR="$INSTALL -d"
47101             ;;
47102     esac
47103
47104
47105     LDFLAGS_GUI=
47106     case ${BAKEFILE_HOST} in
47107         *-*-cygwin* | *-*-mingw32* )
47108         LDFLAGS_GUI="-mwindows"
47109     esac
47110
47111
47112     fi
47113
47114         echo "$as_me:$LINENO: checking if make is GNU make" >&5
47115 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47116 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47117   echo $ECHO_N "(cached) $ECHO_C" >&6
47118 else
47119
47120         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47121                 egrep -s GNU > /dev/null); then
47122             bakefile_cv_prog_makeisgnu="yes"
47123         else
47124             bakefile_cv_prog_makeisgnu="no"
47125         fi
47126
47127 fi
47128 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47129 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47130
47131     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47132         IF_GNU_MAKE=""
47133     else
47134         IF_GNU_MAKE="#"
47135     fi
47136
47137
47138
47139     PLATFORM_UNIX=0
47140     PLATFORM_WIN32=0
47141     PLATFORM_MSDOS=0
47142     PLATFORM_MAC=0
47143     PLATFORM_MACOS=0
47144     PLATFORM_MACOSX=0
47145     PLATFORM_OS2=0
47146     PLATFORM_BEOS=0
47147
47148     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47149         case "${BAKEFILE_HOST}" in
47150             *-*-mingw32* )
47151                 PLATFORM_WIN32=1
47152             ;;
47153             *-pc-msdosdjgpp )
47154                 PLATFORM_MSDOS=1
47155             ;;
47156             *-pc-os2_emx | *-pc-os2-emx )
47157                 PLATFORM_OS2=1
47158             ;;
47159             *-*-darwin* )
47160                 PLATFORM_MAC=1
47161                 PLATFORM_MACOSX=1
47162             ;;
47163             *-*-beos* )
47164                 PLATFORM_BEOS=1
47165             ;;
47166             powerpc-apple-macos* )
47167                 PLATFORM_MAC=1
47168                 PLATFORM_MACOS=1
47169             ;;
47170             * )
47171                 PLATFORM_UNIX=1
47172             ;;
47173         esac
47174     else
47175         case "$BAKEFILE_FORCE_PLATFORM" in
47176             win32 )
47177                 PLATFORM_WIN32=1
47178             ;;
47179             msdos )
47180                 PLATFORM_MSDOS=1
47181             ;;
47182             os2 )
47183                 PLATFORM_OS2=1
47184             ;;
47185             darwin )
47186                 PLATFORM_MAC=1
47187                 PLATFORM_MACOSX=1
47188             ;;
47189             unix )
47190                 PLATFORM_UNIX=1
47191             ;;
47192             beos )
47193                 PLATFORM_BEOS=1
47194             ;;
47195             * )
47196                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47197 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47198    { (exit 1); exit 1; }; }
47199             ;;
47200         esac
47201     fi
47202
47203
47204
47205
47206
47207
47208
47209
47210
47211
47212
47213     # Check whether --enable-omf or --disable-omf was given.
47214 if test "${enable_omf+set}" = set; then
47215   enableval="$enable_omf"
47216   bk_os2_use_omf="$enableval"
47217 fi;
47218
47219     case "${BAKEFILE_HOST}" in
47220       *-*-darwin* )
47221                         if test "x$GCC" = "xyes"; then
47222             CFLAGS="$CFLAGS -fno-common"
47223             CXXFLAGS="$CXXFLAGS -fno-common"
47224         fi
47225         if test "x$XLCC" = "xyes"; then
47226             CFLAGS="$CFLAGS -qnocommon"
47227             CXXFLAGS="$CXXFLAGS -qnocommon"
47228         fi
47229         ;;
47230
47231       *-pc-os2_emx | *-pc-os2-emx )
47232         if test "x$bk_os2_use_omf" = "xyes" ; then
47233             AR=emxomfar
47234             RANLIB=:
47235             LDFLAGS="-Zomf $LDFLAGS"
47236             CFLAGS="-Zomf $CFLAGS"
47237             CXXFLAGS="-Zomf $CXXFLAGS"
47238             OS2_LIBEXT="lib"
47239         else
47240             OS2_LIBEXT="a"
47241         fi
47242         ;;
47243
47244       i*86-*-beos* )
47245         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47246         ;;
47247     esac
47248
47249
47250     SO_SUFFIX="so"
47251     SO_SUFFIX_MODULE="so"
47252     EXEEXT=""
47253     LIBPREFIX="lib"
47254     LIBEXT=".a"
47255     DLLPREFIX="lib"
47256     DLLPREFIX_MODULE=""
47257     DLLIMP_SUFFIX=""
47258     dlldir="$libdir"
47259
47260     case "${BAKEFILE_HOST}" in
47261         *-hp-hpux* )
47262             SO_SUFFIX="sl"
47263             SO_SUFFIX_MODULE="sl"
47264         ;;
47265         *-*-aix* )
47266                                                                         SO_SUFFIX="a"
47267             SO_SUFFIX_MODULE="a"
47268         ;;
47269         *-*-cygwin* )
47270             SO_SUFFIX="dll"
47271             SO_SUFFIX_MODULE="dll"
47272             DLLIMP_SUFFIX="dll.a"
47273             EXEEXT=".exe"
47274             DLLPREFIX="cyg"
47275             dlldir="$bindir"
47276         ;;
47277         *-*-mingw32* )
47278             SO_SUFFIX="dll"
47279             SO_SUFFIX_MODULE="dll"
47280             DLLIMP_SUFFIX="dll.a"
47281             EXEEXT=".exe"
47282             DLLPREFIX=""
47283             dlldir="$bindir"
47284         ;;
47285         *-pc-msdosdjgpp )
47286             EXEEXT=".exe"
47287             DLLPREFIX=""
47288             dlldir="$bindir"
47289         ;;
47290         *-pc-os2_emx | *-pc-os2-emx )
47291             SO_SUFFIX="dll"
47292             SO_SUFFIX_MODULE="dll"
47293             DLLIMP_SUFFIX=$OS2_LIBEXT
47294             EXEEXT=".exe"
47295             DLLPREFIX=""
47296             LIBPREFIX=""
47297             LIBEXT=".$OS2_LIBEXT"
47298             dlldir="$bindir"
47299         ;;
47300         *-*-darwin* )
47301             SO_SUFFIX="dylib"
47302             SO_SUFFIX_MODULE="bundle"
47303         ;;
47304     esac
47305
47306     if test "x$DLLIMP_SUFFIX" = "x" ; then
47307         DLLIMP_SUFFIX="$SO_SUFFIX"
47308     fi
47309
47310
47311
47312
47313
47314
47315
47316
47317
47318
47319
47320
47321         PIC_FLAG=""
47322     if test "x$GCC" = "xyes"; then
47323                 PIC_FLAG="-fPIC"
47324     fi
47325
47326         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47327     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
47328     WINDOWS_IMPLIB=0
47329
47330     case "${BAKEFILE_HOST}" in
47331       *-hp-hpux* )
47332                 if test "x$GCC" != "xyes"; then
47333                         LDFLAGS="$LDFLAGS -L/usr/lib"
47334
47335             SHARED_LD_CC="${CC} -b -o"
47336             SHARED_LD_CXX="${CXX} -b -o"
47337             PIC_FLAG="+Z"
47338         fi
47339       ;;
47340
47341       *-*-linux* )
47342         if test "x$GCC" != "xyes"; then
47343             echo "$as_me:$LINENO: checking for Intel compiler" >&5
47344 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47345 if test "${bakefile_cv_prog_icc+set}" = set; then
47346   echo $ECHO_N "(cached) $ECHO_C" >&6
47347 else
47348
47349                 cat >conftest.$ac_ext <<_ACEOF
47350 /* confdefs.h.  */
47351 _ACEOF
47352 cat confdefs.h >>conftest.$ac_ext
47353 cat >>conftest.$ac_ext <<_ACEOF
47354 /* end confdefs.h.  */
47355
47356 int
47357 main ()
47358 {
47359
47360                         #ifndef __INTEL_COMPILER
47361                         This is not ICC
47362                         #endif
47363
47364   ;
47365   return 0;
47366 }
47367 _ACEOF
47368 rm -f conftest.$ac_objext
47369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47370   (eval $ac_compile) 2>conftest.er1
47371   ac_status=$?
47372   grep -v '^ *+' conftest.er1 >conftest.err
47373   rm -f conftest.er1
47374   cat conftest.err >&5
47375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47376   (exit $ac_status); } &&
47377          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47379   (eval $ac_try) 2>&5
47380   ac_status=$?
47381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47382   (exit $ac_status); }; } &&
47383          { ac_try='test -s conftest.$ac_objext'
47384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47385   (eval $ac_try) 2>&5
47386   ac_status=$?
47387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47388   (exit $ac_status); }; }; then
47389   bakefile_cv_prog_icc=yes
47390 else
47391   echo "$as_me: failed program was:" >&5
47392 sed 's/^/| /' conftest.$ac_ext >&5
47393
47394 bakefile_cv_prog_icc=no
47395
47396 fi
47397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47398
47399 fi
47400 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47401 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47402             if test "$bakefile_cv_prog_icc" = "yes"; then
47403                 PIC_FLAG="-KPIC"
47404             fi
47405         fi
47406       ;;
47407
47408       *-*-solaris2* )
47409         if test "x$GCC" != xyes ; then
47410             SHARED_LD_CC="${CC} -G -o"
47411             SHARED_LD_CXX="${CXX} -G -o"
47412             PIC_FLAG="-KPIC"
47413         fi
47414       ;;
47415
47416       *-*-darwin* )
47417
47418 D='$'
47419 cat <<EOF >shared-ld-sh
47420 #!/bin/sh
47421 #-----------------------------------------------------------------------------
47422 #-- Name:        distrib/mac/shared-ld-sh
47423 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
47424 #-- Author:      Gilles Depeyrot
47425 #-- Copyright:   (c) 2002 Gilles Depeyrot
47426 #-- Licence:     any use permitted
47427 #-----------------------------------------------------------------------------
47428
47429 verbose=0
47430 args=""
47431 objects=""
47432 linking_flag="-dynamiclib"
47433 ldargs="-r -keep_private_externs -nostdlib"
47434
47435 while test ${D}# -gt 0; do
47436     case ${D}1 in
47437
47438        -v)
47439         verbose=1
47440         ;;
47441
47442        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47443         # collect these options and values
47444         args="${D}{args} ${D}1 ${D}2"
47445         shift
47446         ;;
47447
47448        -s|-Wl,*)
47449         # collect these load args
47450         ldargs="${D}{ldargs} ${D}1"
47451         ;;
47452
47453        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
47454         # collect these options
47455         args="${D}{args} ${D}1"
47456         ;;
47457
47458        -dynamiclib|-bundle)
47459         linking_flag="${D}1"
47460         ;;
47461
47462        -*)
47463         echo "shared-ld: unhandled option '${D}1'"
47464         exit 1
47465         ;;
47466
47467         *.o | *.a | *.dylib)
47468         # collect object files
47469         objects="${D}{objects} ${D}1"
47470         ;;
47471
47472         *)
47473         echo "shared-ld: unhandled argument '${D}1'"
47474         exit 1
47475         ;;
47476
47477     esac
47478     shift
47479 done
47480
47481 status=0
47482
47483 #
47484 # Link one module containing all the others
47485 #
47486 if test ${D}{verbose} = 1; then
47487     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
47488 fi
47489 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
47490 status=${D}?
47491
47492 #
47493 # Link the shared library from the single module created, but only if the
47494 # previous command didn't fail:
47495 #
47496 if test ${D}{status} = 0; then
47497     if test ${D}{verbose} = 1; then
47498         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47499     fi
47500     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47501     status=${D}?
47502 fi
47503
47504 #
47505 # Remove intermediate module
47506 #
47507 rm -f master.${D}${D}.o
47508
47509 exit ${D}status
47510 EOF
47511
47512         chmod +x shared-ld-sh
47513
47514         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47515         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47516
47517
47518                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47519 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
47520 if test "${bakefile_cv_gcc31+set}" = set; then
47521   echo $ECHO_N "(cached) $ECHO_C" >&6
47522 else
47523
47524            cat >conftest.$ac_ext <<_ACEOF
47525 /* confdefs.h.  */
47526 _ACEOF
47527 cat confdefs.h >>conftest.$ac_ext
47528 cat >>conftest.$ac_ext <<_ACEOF
47529 /* end confdefs.h.  */
47530
47531 int
47532 main ()
47533 {
47534
47535                    #if (__GNUC__ < 3) || \
47536                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
47537                        This is old gcc
47538                    #endif
47539
47540   ;
47541   return 0;
47542 }
47543 _ACEOF
47544 rm -f conftest.$ac_objext
47545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47546   (eval $ac_compile) 2>conftest.er1
47547   ac_status=$?
47548   grep -v '^ *+' conftest.er1 >conftest.err
47549   rm -f conftest.er1
47550   cat conftest.err >&5
47551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47552   (exit $ac_status); } &&
47553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47555   (eval $ac_try) 2>&5
47556   ac_status=$?
47557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47558   (exit $ac_status); }; } &&
47559          { ac_try='test -s conftest.$ac_objext'
47560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47561   (eval $ac_try) 2>&5
47562   ac_status=$?
47563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47564   (exit $ac_status); }; }; then
47565
47566                    bakefile_cv_gcc31=yes
47567
47568 else
47569   echo "$as_me: failed program was:" >&5
47570 sed 's/^/| /' conftest.$ac_ext >&5
47571
47572
47573                    bakefile_cv_gcc31=no
47574
47575
47576 fi
47577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47578
47579 fi
47580 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47581 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
47582         if test "$bakefile_cv_gcc31" = "no"; then
47583                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
47584             SHARED_LD_CXX="$SHARED_LD_CC"
47585         else
47586                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
47587             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
47588         fi
47589
47590         if test "x$GCC" == "xyes"; then
47591             PIC_FLAG="-dynamic -fPIC"
47592         fi
47593         if test "x$XLCC" = "xyes"; then
47594             PIC_FLAG="-dynamic -DPIC"
47595         fi
47596       ;;
47597
47598       *-*-aix* )
47599         if test "x$GCC" = "xyes"; then
47600                                                             PIC_FLAG=""
47601
47602                                                                                     case "${BAKEFILE_HOST}" in
47603                 *-*-aix5* )
47604                     LD_EXPFULL="-Wl,-bexpfull"
47605                     ;;
47606             esac
47607
47608             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47609             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47610         else
47611                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
47612 set dummy makeC++SharedLib; ac_word=$2
47613 echo "$as_me:$LINENO: checking for $ac_word" >&5
47614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47615 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47616   echo $ECHO_N "(cached) $ECHO_C" >&6
47617 else
47618   if test -n "$AIX_CXX_LD"; then
47619   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47620 else
47621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47622 for as_dir in $PATH
47623 do
47624   IFS=$as_save_IFS
47625   test -z "$as_dir" && as_dir=.
47626   for ac_exec_ext in '' $ac_executable_extensions; do
47627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47628     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47630     break 2
47631   fi
47632 done
47633 done
47634
47635   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47636 fi
47637 fi
47638 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47639 if test -n "$AIX_CXX_LD"; then
47640   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47641 echo "${ECHO_T}$AIX_CXX_LD" >&6
47642 else
47643   echo "$as_me:$LINENO: result: no" >&5
47644 echo "${ECHO_T}no" >&6
47645 fi
47646
47647             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
47648             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47649         fi
47650       ;;
47651
47652       *-*-beos* )
47653                         SHARED_LD_CC="${LD} -nostart -o"
47654         SHARED_LD_CXX="${LD} -nostart -o"
47655       ;;
47656
47657       *-*-irix* )
47658                 if test "x$GCC" != "xyes"; then
47659             PIC_FLAG="-KPIC"
47660         fi
47661       ;;
47662
47663       *-*-cygwin* | *-*-mingw32* )
47664         PIC_FLAG=""
47665         SHARED_LD_CC="\$(CC) -shared -o"
47666         SHARED_LD_CXX="\$(CXX) -shared -o"
47667         WINDOWS_IMPLIB=1
47668       ;;
47669
47670       *-pc-os2_emx | *-pc-os2-emx )
47671         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47672         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47673         PIC_FLAG=""
47674
47675 D='$'
47676 cat <<EOF >dllar.sh
47677 #!/bin/sh
47678 #
47679 # dllar - a tool to build both a .dll and an .a file
47680 # from a set of object (.o) files for EMX/OS2.
47681 #
47682 #  Written by Andrew Zabolotny, bit@freya.etu.ru
47683 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47684 #
47685 #  This script will accept a set of files on the command line.
47686 #  All the public symbols from the .o files will be exported into
47687 #  a .DEF file, then linker will be run (through gcc) against them to
47688 #  build a shared library consisting of all given .o files. All libraries
47689 #  (.a) will be first decompressed into component .o files then act as
47690 #  described above. You can optionally give a description (-d "description")
47691 #  which will be put into .DLL. To see the list of accepted options (as well
47692 #  as command-line format) simply run this program without options. The .DLL
47693 #  is built to be imported by name (there is no guarantee that new versions
47694 #  of the library you build will have same ordinals for same symbols).
47695 #
47696 #  dllar is free software; you can redistribute it and/or modify
47697 #  it under the terms of the GNU General Public License as published by
47698 #  the Free Software Foundation; either version 2, or (at your option)
47699 #  any later version.
47700 #
47701 #  dllar is distributed in the hope that it will be useful,
47702 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
47703 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47704 #  GNU General Public License for more details.
47705 #
47706 #  You should have received a copy of the GNU General Public License
47707 #  along with dllar; see the file COPYING.  If not, write to the Free
47708 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47709 #  02111-1307, USA.
47710
47711 # To successfuly run this program you will need:
47712 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
47713 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47714 #  - gcc
47715 #    (used to build the .dll)
47716 #  - emxexp
47717 #    (used to create .def file from .o files)
47718 #  - emximp
47719 #    (used to create .a file from .def file)
47720 #  - GNU text utilites (cat, sort, uniq)
47721 #    used to process emxexp output
47722 #  - GNU file utilities (mv, rm)
47723 #  - GNU sed
47724 #  - lxlite (optional, see flag below)
47725 #    (used for general .dll cleanup)
47726 #
47727
47728 flag_USE_LXLITE=1;
47729
47730 #
47731 # helper functions
47732 # basnam, variant of basename, which does _not_ remove the path, _iff_
47733 #                              second argument (suffix to remove) is given
47734 basnam(){
47735     case ${D}# in
47736     1)
47737         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
47738         ;;
47739     2)
47740         echo ${D}1 | sed 's/'${D}2'${D}//'
47741         ;;
47742     *)
47743         echo "error in basnam ${D}*"
47744         exit 8
47745         ;;
47746     esac
47747 }
47748
47749 # Cleanup temporary files and output
47750 CleanUp() {
47751     cd ${D}curDir
47752     for i in ${D}inputFiles ; do
47753         case ${D}i in
47754         *!)
47755             rm -rf \`basnam ${D}i !\`
47756             ;;
47757         *)
47758             ;;
47759         esac
47760     done
47761
47762     # Kill result in case of failure as there is just to many stupid make/nmake
47763     # things out there which doesn't do this.
47764     if [ ${D}# -eq 0 ]; then
47765         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47766     fi
47767 }
47768
47769 # Print usage and exit script with rc=1.
47770 PrintHelp() {
47771  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47772  echo '       [-name-mangler-script script.sh]'
47773  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47774  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
47775  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
47776  echo '       [*.o] [*.a]'
47777  echo '*> "output_file" should have no extension.'
47778  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
47779  echo '   The import library name is derived from this and is set to "name".a,'
47780  echo '   unless overridden by -import'
47781  echo '*> "importlib_name" should have no extension.'
47782  echo '   If it has the .o, or .a extension, it is automatically removed.'
47783  echo '   This name is used as the import library name and may be longer and'
47784  echo '   more descriptive than the DLL name which has to follow the old '
47785  echo '   8.3 convention of FAT.'
47786  echo '*> "script.sh may be given to override the output_file name by a'
47787  echo '   different name. It is mainly useful if the regular make process'
47788  echo '   of some package does not take into account OS/2 restriction of'
47789  echo '   DLL name lengths. It takes the importlib name as input and is'
47790  echo '   supposed to procude a shorter name as output. The script should'
47791  echo '   expect to get importlib_name without extension and should produce'
47792  echo '   a (max.) 8 letter name without extension.'
47793  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
47794  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47795  echo '   These flags will be put at the start of GCC command line.'
47796  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47797  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
47798  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47799  echo '   If the last character of a symbol is "*", all symbols beginning'
47800  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
47801  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
47802  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
47803  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
47804  echo '   C runtime DLLs.'
47805  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
47806  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47807  echo '   unchanged to GCC at the end of command line.'
47808  echo '*> If you create a DLL from a library and you do not specify -o,'
47809  echo '   the basename for DLL and import library will be set to library name,'
47810  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
47811  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47812  echo '   library will be renamed into gcc_s.a.'
47813  echo '--------'
47814  echo 'Example:'
47815  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47816  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47817  CleanUp
47818  exit 1
47819 }
47820
47821 # Execute a command.
47822 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47823 # @Uses    Whatever CleanUp() uses.
47824 doCommand() {
47825     echo "${D}*"
47826     eval ${D}*
47827     rcCmd=${D}?
47828
47829     if [ ${D}rcCmd -ne 0 ]; then
47830         echo "command failed, exit code="${D}rcCmd
47831         CleanUp
47832         exit ${D}rcCmd
47833     fi
47834 }
47835
47836 # main routine
47837 # setup globals
47838 cmdLine=${D}*
47839 outFile=""
47840 outimpFile=""
47841 inputFiles=""
47842 renameScript=""
47843 description=""
47844 CC=gcc.exe
47845 CFLAGS="-s -Zcrtdll"
47846 EXTRA_CFLAGS=""
47847 EXPORT_BY_ORDINALS=0
47848 exclude_symbols=""
47849 library_flags=""
47850 curDir=\`pwd\`
47851 curDirS=curDir
47852 case ${D}curDirS in
47853 */)
47854   ;;
47855 *)
47856   curDirS=${D}{curDirS}"/"
47857   ;;
47858 esac
47859 # Parse commandline
47860 libsToLink=0
47861 omfLinking=0
47862 while [ ${D}1 ]; do
47863     case ${D}1 in
47864     -ord*)
47865         EXPORT_BY_ORDINALS=1;
47866         ;;
47867     -o*)
47868         shift
47869         outFile=${D}1
47870         ;;
47871     -i*)
47872         shift
47873         outimpFile=${D}1
47874         ;;
47875     -name-mangler-script)
47876         shift
47877         renameScript=${D}1
47878         ;;
47879     -d*)
47880         shift
47881         description=${D}1
47882         ;;
47883     -f*)
47884         shift
47885         CFLAGS=${D}1
47886         ;;
47887     -c*)
47888         shift
47889         CC=${D}1
47890         ;;
47891     -h*)
47892         PrintHelp
47893         ;;
47894     -ex*)
47895         shift
47896         exclude_symbols=${D}{exclude_symbols}${D}1" "
47897         ;;
47898     -libf*)
47899         shift
47900         library_flags=${D}{library_flags}${D}1" "
47901         ;;
47902     -nocrt*)
47903         CFLAGS="-s"
47904         ;;
47905     -nolxl*)
47906         flag_USE_LXLITE=0
47907         ;;
47908     -* | /*)
47909         case ${D}1 in
47910         -L* | -l*)
47911             libsToLink=1
47912             ;;
47913         -Zomf)
47914             omfLinking=1
47915             ;;
47916         *)
47917             ;;
47918         esac
47919         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47920         ;;
47921     *.dll)
47922         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47923         if [ ${D}omfLinking -eq 1 ]; then
47924             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47925         else
47926             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47927         fi
47928         ;;
47929     *)
47930         found=0;
47931         if [ ${D}libsToLink -ne 0 ]; then
47932             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47933         else
47934             for file in ${D}1 ; do
47935                 if [ -f ${D}file ]; then
47936                     inputFiles="${D}{inputFiles} ${D}file"
47937                     found=1
47938                 fi
47939             done
47940             if [ ${D}found -eq 0 ]; then
47941                 echo "ERROR: No file(s) found: "${D}1
47942                 exit 8
47943             fi
47944         fi
47945       ;;
47946     esac
47947     shift
47948 done # iterate cmdline words
47949
47950 #
47951 if [ -z "${D}inputFiles" ]; then
47952     echo "dllar: no input files"
47953     PrintHelp
47954 fi
47955
47956 # Now extract all .o files from .a files
47957 newInputFiles=""
47958 for file in ${D}inputFiles ; do
47959     case ${D}file in
47960     *.a | *.lib)
47961         case ${D}file in
47962         *.a)
47963             suffix=".a"
47964             AR="ar"
47965             ;;
47966         *.lib)
47967             suffix=".lib"
47968             AR="emxomfar"
47969             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47970             ;;
47971         *)
47972             ;;
47973         esac
47974         dirname=\`basnam ${D}file ${D}suffix\`"_%"
47975         mkdir ${D}dirname
47976         if [ ${D}? -ne 0 ]; then
47977             echo "Failed to create subdirectory ./${D}dirname"
47978             CleanUp
47979             exit 8;
47980         fi
47981         # Append '!' to indicate archive
47982         newInputFiles="${D}newInputFiles ${D}{dirname}!"
47983         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47984         cd ${D}curDir
47985         found=0;
47986         for subfile in ${D}dirname/*.o* ; do
47987             if [ -f ${D}subfile ]; then
47988                 found=1
47989                 if [ -s ${D}subfile ]; then
47990                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47991                     newInputFiles="${D}newInputFiles ${D}subfile"
47992                 fi
47993             fi
47994         done
47995         if [ ${D}found -eq 0 ]; then
47996             echo "WARNING: there are no files in archive \\'${D}file\\'"
47997         fi
47998         ;;
47999     *)
48000         newInputFiles="${D}{newInputFiles} ${D}file"
48001         ;;
48002     esac
48003 done
48004 inputFiles="${D}newInputFiles"
48005
48006 # Output filename(s).
48007 do_backup=0;
48008 if [ -z ${D}outFile ]; then
48009     do_backup=1;
48010     set outFile ${D}inputFiles; outFile=${D}2
48011 fi
48012
48013 # If it is an archive, remove the '!' and the '_%' suffixes
48014 case ${D}outFile in
48015 *_%!)
48016     outFile=\`basnam ${D}outFile _%!\`
48017     ;;
48018 *)
48019     ;;
48020 esac
48021 case ${D}outFile in
48022 *.dll)
48023     outFile=\`basnam ${D}outFile .dll\`
48024     ;;
48025 *.DLL)
48026     outFile=\`basnam ${D}outFile .DLL\`
48027     ;;
48028 *.o)
48029     outFile=\`basnam ${D}outFile .o\`
48030     ;;
48031 *.obj)
48032     outFile=\`basnam ${D}outFile .obj\`
48033     ;;
48034 *.a)
48035     outFile=\`basnam ${D}outFile .a\`
48036     ;;
48037 *.lib)
48038     outFile=\`basnam ${D}outFile .lib\`
48039     ;;
48040 *)
48041     ;;
48042 esac
48043 case ${D}outimpFile in
48044 *.a)
48045     outimpFile=\`basnam ${D}outimpFile .a\`
48046     ;;
48047 *.lib)
48048     outimpFile=\`basnam ${D}outimpFile .lib\`
48049     ;;
48050 *)
48051     ;;
48052 esac
48053 if [ -z ${D}outimpFile ]; then
48054     outimpFile=${D}outFile
48055 fi
48056 defFile="${D}{outFile}.def"
48057 arcFile="${D}{outimpFile}.a"
48058 arcFile2="${D}{outimpFile}.lib"
48059
48060 #create ${D}dllFile as something matching 8.3 restrictions,
48061 if [ -z ${D}renameScript ] ; then
48062     dllFile="${D}outFile"
48063 else
48064     dllFile=\`${D}renameScript ${D}outimpFile\`
48065 fi
48066
48067 if [ ${D}do_backup -ne 0 ] ; then
48068     if [ -f ${D}arcFile ] ; then
48069         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48070     fi
48071     if [ -f ${D}arcFile2 ] ; then
48072         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48073     fi
48074 fi
48075
48076 # Extract public symbols from all the object files.
48077 tmpdefFile=${D}{defFile}_%
48078 rm -f ${D}tmpdefFile
48079 for file in ${D}inputFiles ; do
48080     case ${D}file in
48081     *!)
48082         ;;
48083     *)
48084         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48085         ;;
48086     esac
48087 done
48088
48089 # Create the def file.
48090 rm -f ${D}defFile
48091 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48092 dllFile="${D}{dllFile}.dll"
48093 if [ ! -z ${D}description ]; then
48094     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48095 fi
48096 echo "EXPORTS" >> ${D}defFile
48097
48098 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48099 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48100
48101 # Checks if the export is ok or not.
48102 for word in ${D}exclude_symbols; do
48103     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48104     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48105 done
48106
48107
48108 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48109     sed "=" < ${D}tmpdefFile | \\
48110     sed '
48111       N
48112       : loop
48113       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48114       t loop
48115     ' > ${D}{tmpdefFile}%
48116     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48117 else
48118     rm -f ${D}{tmpdefFile}%
48119 fi
48120 cat ${D}tmpdefFile >> ${D}defFile
48121 rm -f ${D}tmpdefFile
48122
48123 # Do linking, create implib, and apply lxlite.
48124 gccCmdl="";
48125 for file in ${D}inputFiles ; do
48126     case ${D}file in
48127     *!)
48128         ;;
48129     *)
48130         gccCmdl="${D}gccCmdl ${D}file"
48131         ;;
48132     esac
48133 done
48134 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48135 touch "${D}{outFile}.dll"
48136
48137 doCommand "emximp -o ${D}arcFile ${D}defFile"
48138 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48139     add_flags="";
48140     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48141         add_flags="-ynd"
48142     fi
48143     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48144 fi
48145 doCommand "emxomf -s -l ${D}arcFile"
48146
48147 # Successful exit.
48148 CleanUp 1
48149 exit 0
48150 EOF
48151
48152         chmod +x dllar.sh
48153       ;;
48154
48155       powerpc-apple-macos* | \
48156       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48157       *-*-sunos4* | \
48158       *-*-osf* | \
48159       *-*-dgux5* | \
48160       *-*-sysv5* | \
48161       *-pc-msdosdjgpp )
48162               ;;
48163
48164       *)
48165                     esac
48166
48167     if test "x$PIC_FLAG" != "x" ; then
48168         PIC_FLAG="$PIC_FLAG -DPIC"
48169     fi
48170
48171     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48172         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48173     fi
48174     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48175         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48176     fi
48177
48178
48179
48180
48181
48182
48183
48184
48185
48186     USE_SOVERSION=0
48187     USE_SOVERLINUX=0
48188     USE_SOVERSOLARIS=0
48189     USE_SOVERCYGWIN=0
48190     USE_SOSYMLINKS=0
48191     USE_MACVERSION=0
48192     SONAME_FLAG=
48193
48194     case "${BAKEFILE_HOST}" in
48195       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
48196         SONAME_FLAG="-Wl,-soname,"
48197         USE_SOVERSION=1
48198         USE_SOVERLINUX=1
48199         USE_SOSYMLINKS=1
48200       ;;
48201
48202       *-*-solaris2* )
48203         SONAME_FLAG="-h "
48204         USE_SOVERSION=1
48205         USE_SOVERSOLARIS=1
48206         USE_SOSYMLINKS=1
48207       ;;
48208
48209       *-*-darwin* )
48210         USE_MACVERSION=1
48211         USE_SOVERSION=1
48212         USE_SOSYMLINKS=1
48213       ;;
48214
48215       *-*-cygwin* )
48216         USE_SOVERSION=1
48217         USE_SOVERCYGWIN=1
48218       ;;
48219     esac
48220
48221
48222
48223
48224
48225
48226
48227
48228
48229
48230     # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48231 if test "${enable_dependency_tracking+set}" = set; then
48232   enableval="$enable_dependency_tracking"
48233   bk_use_trackdeps="$enableval"
48234 fi;
48235
48236     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48237 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
48238
48239     if test "x$bk_use_trackdeps" = "xno" ; then
48240         DEPS_TRACKING=0
48241         echo "$as_me:$LINENO: result: disabled" >&5
48242 echo "${ECHO_T}disabled" >&6
48243     else
48244         DEPS_TRACKING=1
48245
48246         if test "x$GCC" = "xyes"; then
48247             DEPSMODE=gcc
48248             case "${BAKEFILE_HOST}" in
48249                 *-*-darwin* )
48250                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48251                 ;;
48252                 * )
48253                     DEPSFLAG="-MMD"
48254                 ;;
48255             esac
48256             echo "$as_me:$LINENO: result: gcc" >&5
48257 echo "${ECHO_T}gcc" >&6
48258         elif test "x$MWCC" = "xyes"; then
48259             DEPSMODE=mwcc
48260             DEPSFLAG="-MM"
48261             echo "$as_me:$LINENO: result: mwcc" >&5
48262 echo "${ECHO_T}mwcc" >&6
48263         elif test "x$SUNCC" = "xyes"; then
48264             DEPSMODE=unixcc
48265             DEPSFLAG="-xM1"
48266             echo "$as_me:$LINENO: result: Sun cc" >&5
48267 echo "${ECHO_T}Sun cc" >&6
48268         elif test "x$SGICC" = "xyes"; then
48269             DEPSMODE=unixcc
48270             DEPSFLAG="-M"
48271             echo "$as_me:$LINENO: result: SGI cc" >&5
48272 echo "${ECHO_T}SGI cc" >&6
48273         elif test "x$HPCC" = "xyes"; then
48274             DEPSMODE=unixcc
48275             DEPSFLAG="+make"
48276             echo "$as_me:$LINENO: result: HP cc" >&5
48277 echo "${ECHO_T}HP cc" >&6
48278         elif test "x$COMPAQCC" = "xyes"; then
48279             DEPSMODE=gcc
48280             DEPSFLAG="-MD"
48281             echo "$as_me:$LINENO: result: Compaq cc" >&5
48282 echo "${ECHO_T}Compaq cc" >&6
48283         else
48284             DEPS_TRACKING=0
48285             echo "$as_me:$LINENO: result: none" >&5
48286 echo "${ECHO_T}none" >&6
48287         fi
48288
48289         if test $DEPS_TRACKING = 1 ; then
48290
48291 D='$'
48292 cat <<EOF >bk-deps
48293 #!/bin/sh
48294
48295 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48296 # script. It is used to track C/C++ files dependencies in portable way.
48297 #
48298 # Permission is given to use this file in any way.
48299
48300 DEPSMODE=${DEPSMODE}
48301 DEPSDIR=.deps
48302 DEPSFLAG="${DEPSFLAG}"
48303
48304 mkdir -p ${D}DEPSDIR
48305
48306 if test ${D}DEPSMODE = gcc ; then
48307     ${D}* ${D}{DEPSFLAG}
48308     status=${D}?
48309     if test ${D}{status} != 0 ; then
48310         exit ${D}{status}
48311     fi
48312     # move created file to the location we want it in:
48313     while test ${D}# -gt 0; do
48314         case "${D}1" in
48315             -o )
48316                 shift
48317                 objfile=${D}1
48318             ;;
48319             -* )
48320             ;;
48321             * )
48322                 srcfile=${D}1
48323             ;;
48324         esac
48325         shift
48326     done
48327     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48328     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
48329     if test -f ${D}depfile ; then
48330         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48331         rm -f ${D}depfile
48332     else
48333         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
48334         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
48335         if test ! -f ${D}depfile ; then
48336             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48337             depfile="${D}objfile.d"
48338         fi
48339         if test -f ${D}depfile ; then
48340             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48341             rm -f ${D}depfile
48342         fi
48343     fi
48344     exit 0
48345 elif test ${D}DEPSMODE = mwcc ; then
48346     ${D}* || exit ${D}?
48347     # Run mwcc again with -MM and redirect into the dep file we want
48348     # NOTE: We can't use shift here because we need ${D}* to be valid
48349     prevarg=
48350     for arg in ${D}* ; do
48351         if test "${D}prevarg" = "-o"; then
48352             objfile=${D}arg
48353         else
48354             case "${D}arg" in
48355                 -* )
48356                 ;;
48357                 * )
48358                     srcfile=${D}arg
48359                 ;;
48360             esac
48361         fi
48362         prevarg="${D}arg"
48363     done
48364     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
48365     exit 0
48366 elif test ${D}DEPSMODE = unixcc; then
48367     ${D}* || exit ${D}?
48368     # Run compiler again with deps flag and redirect into the dep file.
48369     # It doesn't work if the '-o FILE' option is used, but without it the
48370     # dependency file will contain the wrong name for the object. So it is
48371     # removed from the command line, and the dep file is fixed with sed.
48372     cmd=""
48373     while test ${D}# -gt 0; do
48374         case "${D}1" in
48375             -o )
48376                 shift
48377                 objfile=${D}1
48378             ;;
48379             * )
48380                 eval arg${D}#=\\${D}1
48381                 cmd="${D}cmd \\${D}arg${D}#"
48382             ;;
48383         esac
48384         shift
48385     done
48386     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
48387     exit 0
48388 else
48389     ${D}*
48390     exit ${D}?
48391 fi
48392 EOF
48393
48394             chmod +x bk-deps
48395         fi
48396     fi
48397
48398
48399
48400
48401     case ${BAKEFILE_HOST} in
48402         *-*-cygwin* | *-*-mingw32* )
48403                         if test -n "$ac_tool_prefix"; then
48404   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48405 set dummy ${ac_tool_prefix}windres; ac_word=$2
48406 echo "$as_me:$LINENO: checking for $ac_word" >&5
48407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48408 if test "${ac_cv_prog_WINDRES+set}" = set; then
48409   echo $ECHO_N "(cached) $ECHO_C" >&6
48410 else
48411   if test -n "$WINDRES"; then
48412   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48413 else
48414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48415 for as_dir in $PATH
48416 do
48417   IFS=$as_save_IFS
48418   test -z "$as_dir" && as_dir=.
48419   for ac_exec_ext in '' $ac_executable_extensions; do
48420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48421     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48423     break 2
48424   fi
48425 done
48426 done
48427
48428 fi
48429 fi
48430 WINDRES=$ac_cv_prog_WINDRES
48431 if test -n "$WINDRES"; then
48432   echo "$as_me:$LINENO: result: $WINDRES" >&5
48433 echo "${ECHO_T}$WINDRES" >&6
48434 else
48435   echo "$as_me:$LINENO: result: no" >&5
48436 echo "${ECHO_T}no" >&6
48437 fi
48438
48439 fi
48440 if test -z "$ac_cv_prog_WINDRES"; then
48441   ac_ct_WINDRES=$WINDRES
48442   # Extract the first word of "windres", so it can be a program name with args.
48443 set dummy windres; ac_word=$2
48444 echo "$as_me:$LINENO: checking for $ac_word" >&5
48445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48446 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
48447   echo $ECHO_N "(cached) $ECHO_C" >&6
48448 else
48449   if test -n "$ac_ct_WINDRES"; then
48450   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
48451 else
48452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48453 for as_dir in $PATH
48454 do
48455   IFS=$as_save_IFS
48456   test -z "$as_dir" && as_dir=.
48457   for ac_exec_ext in '' $ac_executable_extensions; do
48458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48459     ac_cv_prog_ac_ct_WINDRES="windres"
48460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48461     break 2
48462   fi
48463 done
48464 done
48465
48466 fi
48467 fi
48468 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48469 if test -n "$ac_ct_WINDRES"; then
48470   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48471 echo "${ECHO_T}$ac_ct_WINDRES" >&6
48472 else
48473   echo "$as_me:$LINENO: result: no" >&5
48474 echo "${ECHO_T}no" >&6
48475 fi
48476
48477   WINDRES=$ac_ct_WINDRES
48478 else
48479   WINDRES="$ac_cv_prog_WINDRES"
48480 fi
48481
48482          ;;
48483
48484       *-*-darwin* | powerpc-apple-macos* )
48485             # Extract the first word of "Rez", so it can be a program name with args.
48486 set dummy Rez; ac_word=$2
48487 echo "$as_me:$LINENO: checking for $ac_word" >&5
48488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48489 if test "${ac_cv_prog_REZ+set}" = set; then
48490   echo $ECHO_N "(cached) $ECHO_C" >&6
48491 else
48492   if test -n "$REZ"; then
48493   ac_cv_prog_REZ="$REZ" # Let the user override the test.
48494 else
48495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48496 for as_dir in $PATH
48497 do
48498   IFS=$as_save_IFS
48499   test -z "$as_dir" && as_dir=.
48500   for ac_exec_ext in '' $ac_executable_extensions; do
48501   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48502     ac_cv_prog_REZ="Rez"
48503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48504     break 2
48505   fi
48506 done
48507 done
48508
48509   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
48510 fi
48511 fi
48512 REZ=$ac_cv_prog_REZ
48513 if test -n "$REZ"; then
48514   echo "$as_me:$LINENO: result: $REZ" >&5
48515 echo "${ECHO_T}$REZ" >&6
48516 else
48517   echo "$as_me:$LINENO: result: no" >&5
48518 echo "${ECHO_T}no" >&6
48519 fi
48520
48521             # Extract the first word of "SetFile", so it can be a program name with args.
48522 set dummy SetFile; ac_word=$2
48523 echo "$as_me:$LINENO: checking for $ac_word" >&5
48524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48525 if test "${ac_cv_prog_SETFILE+set}" = set; then
48526   echo $ECHO_N "(cached) $ECHO_C" >&6
48527 else
48528   if test -n "$SETFILE"; then
48529   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48530 else
48531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48532 for as_dir in $PATH
48533 do
48534   IFS=$as_save_IFS
48535   test -z "$as_dir" && as_dir=.
48536   for ac_exec_ext in '' $ac_executable_extensions; do
48537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48538     ac_cv_prog_SETFILE="SetFile"
48539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48540     break 2
48541   fi
48542 done
48543 done
48544
48545   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48546 fi
48547 fi
48548 SETFILE=$ac_cv_prog_SETFILE
48549 if test -n "$SETFILE"; then
48550   echo "$as_me:$LINENO: result: $SETFILE" >&5
48551 echo "${ECHO_T}$SETFILE" >&6
48552 else
48553   echo "$as_me:$LINENO: result: no" >&5
48554 echo "${ECHO_T}no" >&6
48555 fi
48556
48557         ;;
48558     esac
48559
48560
48561
48562
48563
48564
48565     BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
48566
48567
48568 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
48569
48570
48571
48572     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
48573 if test "${enable_precomp_headers+set}" = set; then
48574   enableval="$enable_precomp_headers"
48575   bk_use_pch="$enableval"
48576 fi;
48577
48578     GCC_PCH=0
48579     ICC_PCH=0
48580     USE_PCH=0
48581
48582     case ${BAKEFILE_HOST} in
48583         *-*-cygwin* )
48584                                                 bk_use_pch="no"
48585             ;;
48586     esac
48587
48588     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48589         if test "x$GCC" = "xyes"; then
48590                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48591 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
48592             cat >conftest.$ac_ext <<_ACEOF
48593 /* confdefs.h.  */
48594 _ACEOF
48595 cat confdefs.h >>conftest.$ac_ext
48596 cat >>conftest.$ac_ext <<_ACEOF
48597 /* end confdefs.h.  */
48598
48599 int
48600 main ()
48601 {
48602
48603                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
48604                         There is no PCH support
48605                     #endif
48606                     #if (__GNUC__ < 3)
48607                         There is no PCH support
48608                     #endif
48609                     #if (__GNUC__ == 3) && \
48610                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
48611                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48612                        ( defined(__INTEL_COMPILER) )
48613                         There is no PCH support
48614                     #endif
48615
48616   ;
48617   return 0;
48618 }
48619 _ACEOF
48620 rm -f conftest.$ac_objext
48621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48622   (eval $ac_compile) 2>conftest.er1
48623   ac_status=$?
48624   grep -v '^ *+' conftest.er1 >conftest.err
48625   rm -f conftest.er1
48626   cat conftest.err >&5
48627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48628   (exit $ac_status); } &&
48629          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
48630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48631   (eval $ac_try) 2>&5
48632   ac_status=$?
48633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48634   (exit $ac_status); }; } &&
48635          { ac_try='test -s conftest.$ac_objext'
48636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48637   (eval $ac_try) 2>&5
48638   ac_status=$?
48639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48640   (exit $ac_status); }; }; then
48641
48642                     echo "$as_me:$LINENO: result: yes" >&5
48643 echo "${ECHO_T}yes" >&6
48644                     GCC_PCH=1
48645
48646 else
48647   echo "$as_me: failed program was:" >&5
48648 sed 's/^/| /' conftest.$ac_ext >&5
48649
48650
48651                     cat >conftest.$ac_ext <<_ACEOF
48652 /* confdefs.h.  */
48653 _ACEOF
48654 cat confdefs.h >>conftest.$ac_ext
48655 cat >>conftest.$ac_ext <<_ACEOF
48656 /* end confdefs.h.  */
48657
48658 int
48659 main ()
48660 {
48661
48662                             #if !defined(__INTEL_COMPILER) || \
48663                                 (__INTEL_COMPILER < 800)
48664                                 There is no PCH support
48665                             #endif
48666
48667   ;
48668   return 0;
48669 }
48670 _ACEOF
48671 rm -f conftest.$ac_objext
48672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48673   (eval $ac_compile) 2>conftest.er1
48674   ac_status=$?
48675   grep -v '^ *+' conftest.er1 >conftest.err
48676   rm -f conftest.er1
48677   cat conftest.err >&5
48678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48679   (exit $ac_status); } &&
48680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
48681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48682   (eval $ac_try) 2>&5
48683   ac_status=$?
48684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48685   (exit $ac_status); }; } &&
48686          { ac_try='test -s conftest.$ac_objext'
48687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48688   (eval $ac_try) 2>&5
48689   ac_status=$?
48690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48691   (exit $ac_status); }; }; then
48692
48693                             echo "$as_me:$LINENO: result: yes" >&5
48694 echo "${ECHO_T}yes" >&6
48695                             ICC_PCH=1
48696
48697 else
48698   echo "$as_me: failed program was:" >&5
48699 sed 's/^/| /' conftest.$ac_ext >&5
48700
48701
48702                             echo "$as_me:$LINENO: result: no" >&5
48703 echo "${ECHO_T}no" >&6
48704
48705 fi
48706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48707
48708 fi
48709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48710             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48711                 USE_PCH=1
48712
48713 D='$'
48714 cat <<EOF >bk-make-pch
48715 #!/bin/sh
48716
48717 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48718 # script. It is used to generated precompiled headers.
48719 #
48720 # Permission is given to use this file in any way.
48721
48722 outfile="${D}{1}"
48723 header="${D}{2}"
48724 shift
48725 shift
48726
48727 compiler=""
48728 headerfile=""
48729
48730 while test ${D}{#} -gt 0; do
48731     add_to_cmdline=1
48732     case "${D}{1}" in
48733         -I* )
48734             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48735             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48736                 headerfile="${D}{incdir}/${D}{header}"
48737             fi
48738         ;;
48739         -use-pch|-use_pch )
48740             shift
48741             add_to_cmdline=0
48742         ;;
48743     esac
48744     if test ${D}add_to_cmdline = 1 ; then
48745         compiler="${D}{compiler} ${D}{1}"
48746     fi
48747     shift
48748 done
48749
48750 if test "x${D}{headerfile}" = "x" ; then
48751     echo "error: can't find header ${D}{header} in include paths" >&2
48752 else
48753     if test -f ${D}{outfile} ; then
48754         rm -f ${D}{outfile}
48755     else
48756         mkdir -p \`dirname ${D}{outfile}\`
48757     fi
48758     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
48759     mkdir -p .deps
48760     if test "x${GCC_PCH}" = "x1" ; then
48761         # can do this because gcc is >= 3.4:
48762         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48763     elif test "x${ICC_PCH}" = "x1" ; then
48764         filename=pch_gen-${D}${D}
48765         file=${D}{filename}.c
48766         dfile=${D}{filename}.d
48767         cat > ${D}file <<EOT
48768 #include "${D}header"
48769 EOT
48770         # using -MF icc complains about differing command lines in creation/use
48771         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48772           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48773           rm -f ${D}file ${D}dfile ${D}{filename}.o
48774     fi
48775     exit ${D}{?}
48776 fi
48777 EOF
48778
48779                 chmod +x bk-make-pch
48780             fi
48781         fi
48782     fi
48783
48784
48785
48786
48787     COND_BUILD_DEBUG="#"
48788     if test "x$BUILD" = "xdebug" ; then
48789         COND_BUILD_DEBUG=""
48790     fi
48791
48792     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48793     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48794         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48795     fi
48796
48797     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48798     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48799         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48800     fi
48801
48802     COND_BUILD_DEBUG_UNICODE_0="#"
48803     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48804         COND_BUILD_DEBUG_UNICODE_0=""
48805     fi
48806
48807     COND_BUILD_DEBUG_UNICODE_1="#"
48808     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48809         COND_BUILD_DEBUG_UNICODE_1=""
48810     fi
48811
48812     COND_BUILD_RELEASE="#"
48813     if test "x$BUILD" = "xrelease" ; then
48814         COND_BUILD_RELEASE=""
48815     fi
48816
48817     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48818     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48819         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48820     fi
48821
48822     COND_BUILD_RELEASE_UNICODE_0="#"
48823     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48824         COND_BUILD_RELEASE_UNICODE_0=""
48825     fi
48826
48827     COND_BUILD_RELEASE_UNICODE_1="#"
48828     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48829         COND_BUILD_RELEASE_UNICODE_1=""
48830     fi
48831
48832     COND_DEBUG_FLAG_1="#"
48833     if test "x$DEBUG_FLAG" = "x1" ; then
48834         COND_DEBUG_FLAG_1=""
48835     fi
48836
48837     COND_DEBUG_INFO_0="#"
48838     if test "x$DEBUG_INFO" = "x0" ; then
48839         COND_DEBUG_INFO_0=""
48840     fi
48841
48842     COND_DEBUG_INFO_1="#"
48843     if test "x$DEBUG_INFO" = "x1" ; then
48844         COND_DEBUG_INFO_1=""
48845     fi
48846
48847     COND_DEPS_TRACKING_0="#"
48848     if test "x$DEPS_TRACKING" = "x0" ; then
48849         COND_DEPS_TRACKING_0=""
48850     fi
48851
48852     COND_DEPS_TRACKING_1="#"
48853     if test "x$DEPS_TRACKING" = "x1" ; then
48854         COND_DEPS_TRACKING_1=""
48855     fi
48856
48857     COND_GCC_PCH_1="#"
48858     if test "x$GCC_PCH" = "x1" ; then
48859         COND_GCC_PCH_1=""
48860     fi
48861
48862     COND_ICC_PCH_1="#"
48863     if test "x$ICC_PCH" = "x1" ; then
48864         COND_ICC_PCH_1=""
48865     fi
48866
48867     COND_MONOLITHIC_0="#"
48868     if test "x$MONOLITHIC" = "x0" ; then
48869         COND_MONOLITHIC_0=""
48870     fi
48871
48872     COND_MONOLITHIC_0_SHARED_0="#"
48873     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48874         COND_MONOLITHIC_0_SHARED_0=""
48875     fi
48876
48877     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48878     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48879         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48880     fi
48881
48882     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48883     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48884         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48885     fi
48886
48887     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48888     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48889         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48890     fi
48891
48892     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48893     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48894         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48895     fi
48896
48897     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48898     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48899         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48900     fi
48901
48902     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48903     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48904         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48905     fi
48906
48907     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48908     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48909         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48910     fi
48911
48912     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48913     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48914         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48915     fi
48916
48917     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48918     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48919         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48920     fi
48921
48922     COND_MONOLITHIC_0_SHARED_1="#"
48923     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48924         COND_MONOLITHIC_0_SHARED_1=""
48925     fi
48926
48927     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48928     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48929         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48930     fi
48931
48932     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48933     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48934         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48935     fi
48936
48937     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48938     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48939         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48940     fi
48941
48942     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48943     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48944         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48945     fi
48946
48947     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48948     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48949         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48950     fi
48951
48952     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48953     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48954         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48955     fi
48956
48957     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48958     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48959         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48960     fi
48961
48962     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48963     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48964         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48965     fi
48966
48967     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48968     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48969         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48970     fi
48971
48972     COND_MONOLITHIC_0_USE_MEDIA_1="#"
48973     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48974         COND_MONOLITHIC_0_USE_MEDIA_1=""
48975     fi
48976
48977     COND_MONOLITHIC_0_USE_ODBC_1="#"
48978     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48979         COND_MONOLITHIC_0_USE_ODBC_1=""
48980     fi
48981
48982     COND_MONOLITHIC_1="#"
48983     if test "x$MONOLITHIC" = "x1" ; then
48984         COND_MONOLITHIC_1=""
48985     fi
48986
48987     COND_MONOLITHIC_1_SHARED_0="#"
48988     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48989         COND_MONOLITHIC_1_SHARED_0=""
48990     fi
48991
48992     COND_MONOLITHIC_1_SHARED_1="#"
48993     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48994         COND_MONOLITHIC_1_SHARED_1=""
48995     fi
48996
48997     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48998     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48999         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49000     fi
49001
49002     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49003     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49004         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49005     fi
49006
49007     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49008     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49009         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49010     fi
49011
49012     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49013     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49014         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49015     fi
49016
49017     COND_PLATFORM_MACOSX_1="#"
49018     if test "x$PLATFORM_MACOSX" = "x1" ; then
49019         COND_PLATFORM_MACOSX_1=""
49020     fi
49021
49022     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49023     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49024         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49025     fi
49026
49027     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49028     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49029         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49030     fi
49031
49032     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49033     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49034         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49035     fi
49036
49037     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49038     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49039         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49040     fi
49041
49042     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49043     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49044         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49045     fi
49046
49047     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49048     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49049         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49050     fi
49051
49052     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49053     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49054         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49055     fi
49056
49057     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49058     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49059         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49060     fi
49061
49062     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49063     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49064         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49065     fi
49066
49067     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49068     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49069         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49070     fi
49071
49072     COND_PLATFORM_MACOS_1="#"
49073     if test "x$PLATFORM_MACOS" = "x1" ; then
49074         COND_PLATFORM_MACOS_1=""
49075     fi
49076
49077     COND_PLATFORM_MAC_1="#"
49078     if test "x$PLATFORM_MAC" = "x1" ; then
49079         COND_PLATFORM_MAC_1=""
49080     fi
49081
49082     COND_PLATFORM_MSDOS_0="#"
49083     if test "x$PLATFORM_MSDOS" = "x0" ; then
49084         COND_PLATFORM_MSDOS_0=""
49085     fi
49086
49087     COND_PLATFORM_MSDOS_1="#"
49088     if test "x$PLATFORM_MSDOS" = "x1" ; then
49089         COND_PLATFORM_MSDOS_1=""
49090     fi
49091
49092     COND_PLATFORM_OS2_1="#"
49093     if test "x$PLATFORM_OS2" = "x1" ; then
49094         COND_PLATFORM_OS2_1=""
49095     fi
49096
49097     COND_PLATFORM_UNIX_0="#"
49098     if test "x$PLATFORM_UNIX" = "x0" ; then
49099         COND_PLATFORM_UNIX_0=""
49100     fi
49101
49102     COND_PLATFORM_UNIX_1="#"
49103     if test "x$PLATFORM_UNIX" = "x1" ; then
49104         COND_PLATFORM_UNIX_1=""
49105     fi
49106
49107     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49108     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49109         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49110     fi
49111
49112     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49113     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49114         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49115     fi
49116
49117     COND_PLATFORM_WIN32_0="#"
49118     if test "x$PLATFORM_WIN32" = "x0" ; then
49119         COND_PLATFORM_WIN32_0=""
49120     fi
49121
49122     COND_PLATFORM_WIN32_1="#"
49123     if test "x$PLATFORM_WIN32" = "x1" ; then
49124         COND_PLATFORM_WIN32_1=""
49125     fi
49126
49127     COND_SHARED_0="#"
49128     if test "x$SHARED" = "x0" ; then
49129         COND_SHARED_0=""
49130     fi
49131
49132     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49133     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49134         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49135     fi
49136
49137     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49138     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49139         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49140     fi
49141
49142     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49143     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49144         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49145     fi
49146
49147     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49148     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49149         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49150     fi
49151
49152     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49153     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49154         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49155     fi
49156
49157     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49158     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49159         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49160     fi
49161
49162     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49163     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49164         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49165     fi
49166
49167     COND_SHARED_0_USE_XRC_1="#"
49168     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49169         COND_SHARED_0_USE_XRC_1=""
49170     fi
49171
49172     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49173     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49174         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49175     fi
49176
49177     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49178     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49179         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49180     fi
49181
49182     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49183     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49184         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49185     fi
49186
49187     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49188     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49189         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49190     fi
49191
49192     COND_SHARED_1="#"
49193     if test "x$SHARED" = "x1" ; then
49194         COND_SHARED_1=""
49195     fi
49196
49197     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49198     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49199         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49200     fi
49201
49202     COND_SHARED_1_USE_XRC_1="#"
49203     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49204         COND_SHARED_1_USE_XRC_1=""
49205     fi
49206
49207     COND_TOOLKIT_="#"
49208     if test "x$TOOLKIT" = "x" ; then
49209         COND_TOOLKIT_=""
49210     fi
49211
49212     COND_TOOLKIT_COCOA="#"
49213     if test "x$TOOLKIT" = "xCOCOA" ; then
49214         COND_TOOLKIT_COCOA=""
49215     fi
49216
49217     COND_TOOLKIT_COCOA_USE_GUI_1="#"
49218     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49219         COND_TOOLKIT_COCOA_USE_GUI_1=""
49220     fi
49221
49222     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49223     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49224         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49225     fi
49226
49227     COND_TOOLKIT_DFB="#"
49228     if test "x$TOOLKIT" = "xDFB" ; then
49229         COND_TOOLKIT_DFB=""
49230     fi
49231
49232     COND_TOOLKIT_DFB_USE_GUI_1="#"
49233     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49234         COND_TOOLKIT_DFB_USE_GUI_1=""
49235     fi
49236
49237     COND_TOOLKIT_GTK="#"
49238     if test "x$TOOLKIT" = "xGTK" ; then
49239         COND_TOOLKIT_GTK=""
49240     fi
49241
49242     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49243     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49244         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49245     fi
49246
49247     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49248     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49249         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49250     fi
49251
49252     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49253     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49254         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49255     fi
49256
49257     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49258     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49259         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49260     fi
49261
49262     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49263     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49264         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49265     fi
49266
49267     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49268     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49269         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49270     fi
49271
49272     COND_TOOLKIT_GTK_USE_GUI_1="#"
49273     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49274         COND_TOOLKIT_GTK_USE_GUI_1=""
49275     fi
49276
49277     COND_TOOLKIT_MAC="#"
49278     if test "x$TOOLKIT" = "xMAC" ; then
49279         COND_TOOLKIT_MAC=""
49280     fi
49281
49282     COND_TOOLKIT_MAC_USE_GUI_1="#"
49283     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49284         COND_TOOLKIT_MAC_USE_GUI_1=""
49285     fi
49286
49287     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49288     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49289         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49290     fi
49291
49292     COND_TOOLKIT_MGL="#"
49293     if test "x$TOOLKIT" = "xMGL" ; then
49294         COND_TOOLKIT_MGL=""
49295     fi
49296
49297     COND_TOOLKIT_MGL_USE_GUI_1="#"
49298     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49299         COND_TOOLKIT_MGL_USE_GUI_1=""
49300     fi
49301
49302     COND_TOOLKIT_MOTIF="#"
49303     if test "x$TOOLKIT" = "xMOTIF" ; then
49304         COND_TOOLKIT_MOTIF=""
49305     fi
49306
49307     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49308     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49309         COND_TOOLKIT_MOTIF_USE_GUI_1=""
49310     fi
49311
49312     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49313     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49314         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49315     fi
49316
49317     COND_TOOLKIT_MSW="#"
49318     if test "x$TOOLKIT" = "xMSW" ; then
49319         COND_TOOLKIT_MSW=""
49320     fi
49321
49322     COND_TOOLKIT_MSW_USE_GUI_1="#"
49323     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49324         COND_TOOLKIT_MSW_USE_GUI_1=""
49325     fi
49326
49327     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49328     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49329         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49330     fi
49331
49332     COND_TOOLKIT_MSW_WXUNIV_0="#"
49333     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49334         COND_TOOLKIT_MSW_WXUNIV_0=""
49335     fi
49336
49337     COND_TOOLKIT_PM="#"
49338     if test "x$TOOLKIT" = "xPM" ; then
49339         COND_TOOLKIT_PM=""
49340     fi
49341
49342     COND_TOOLKIT_PM_USE_GUI_1="#"
49343     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49344         COND_TOOLKIT_PM_USE_GUI_1=""
49345     fi
49346
49347     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49348     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49349         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49350     fi
49351
49352     COND_TOOLKIT_WINCE="#"
49353     if test "x$TOOLKIT" = "xWINCE" ; then
49354         COND_TOOLKIT_WINCE=""
49355     fi
49356
49357     COND_TOOLKIT_WINCE_USE_GUI_1="#"
49358     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49359         COND_TOOLKIT_WINCE_USE_GUI_1=""
49360     fi
49361
49362     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49363     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49364         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49365     fi
49366
49367     COND_TOOLKIT_WINCE_WXUNIV_0="#"
49368     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49369         COND_TOOLKIT_WINCE_WXUNIV_0=""
49370     fi
49371
49372     COND_TOOLKIT_X11="#"
49373     if test "x$TOOLKIT" = "xX11" ; then
49374         COND_TOOLKIT_X11=""
49375     fi
49376
49377     COND_TOOLKIT_X11_USE_GUI_1="#"
49378     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49379         COND_TOOLKIT_X11_USE_GUI_1=""
49380     fi
49381
49382     COND_UNICODE_1="#"
49383     if test "x$UNICODE" = "x1" ; then
49384         COND_UNICODE_1=""
49385     fi
49386
49387     COND_USE_EXCEPTIONS_0="#"
49388     if test "x$USE_EXCEPTIONS" = "x0" ; then
49389         COND_USE_EXCEPTIONS_0=""
49390     fi
49391
49392     COND_USE_EXCEPTIONS_1="#"
49393     if test "x$USE_EXCEPTIONS" = "x1" ; then
49394         COND_USE_EXCEPTIONS_1=""
49395     fi
49396
49397     COND_USE_GUI_0="#"
49398     if test "x$USE_GUI" = "x0" ; then
49399         COND_USE_GUI_0=""
49400     fi
49401
49402     COND_USE_GUI_1="#"
49403     if test "x$USE_GUI" = "x1" ; then
49404         COND_USE_GUI_1=""
49405     fi
49406
49407     COND_USE_GUI_1_WXUNIV_0="#"
49408     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49409         COND_USE_GUI_1_WXUNIV_0=""
49410     fi
49411
49412     COND_USE_GUI_1_WXUNIV_1="#"
49413     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49414         COND_USE_GUI_1_WXUNIV_1=""
49415     fi
49416
49417     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49418     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49419         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49420     fi
49421
49422     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49423     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49424         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49425     fi
49426
49427     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49428     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49429         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49430     fi
49431
49432     COND_USE_ODBC_1="#"
49433     if test "x$USE_ODBC" = "x1" ; then
49434         COND_USE_ODBC_1=""
49435     fi
49436
49437     COND_USE_OPENGL_1="#"
49438     if test "x$USE_OPENGL" = "x1" ; then
49439         COND_USE_OPENGL_1=""
49440     fi
49441
49442     COND_USE_PCH_1="#"
49443     if test "x$USE_PCH" = "x1" ; then
49444         COND_USE_PCH_1=""
49445     fi
49446
49447     COND_USE_PLUGINS_0="#"
49448     if test "x$USE_PLUGINS" = "x0" ; then
49449         COND_USE_PLUGINS_0=""
49450     fi
49451
49452     COND_USE_RTTI_0="#"
49453     if test "x$USE_RTTI" = "x0" ; then
49454         COND_USE_RTTI_0=""
49455     fi
49456
49457     COND_USE_RTTI_1="#"
49458     if test "x$USE_RTTI" = "x1" ; then
49459         COND_USE_RTTI_1=""
49460     fi
49461
49462     COND_USE_SOSYMLINKS_1="#"
49463     if test "x$USE_SOSYMLINKS" = "x1" ; then
49464         COND_USE_SOSYMLINKS_1=""
49465     fi
49466
49467     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49468     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49469         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49470     fi
49471
49472     COND_USE_SOVERLINUX_1="#"
49473     if test "x$USE_SOVERLINUX" = "x1" ; then
49474         COND_USE_SOVERLINUX_1=""
49475     fi
49476
49477     COND_USE_SOVERSION_0="#"
49478     if test "x$USE_SOVERSION" = "x0" ; then
49479         COND_USE_SOVERSION_0=""
49480     fi
49481
49482     COND_USE_SOVERSOLARIS_1="#"
49483     if test "x$USE_SOVERSOLARIS" = "x1" ; then
49484         COND_USE_SOVERSOLARIS_1=""
49485     fi
49486
49487     COND_USE_THREADS_0="#"
49488     if test "x$USE_THREADS" = "x0" ; then
49489         COND_USE_THREADS_0=""
49490     fi
49491
49492     COND_USE_THREADS_1="#"
49493     if test "x$USE_THREADS" = "x1" ; then
49494         COND_USE_THREADS_1=""
49495     fi
49496
49497     COND_USE_XRC_1="#"
49498     if test "x$USE_XRC" = "x1" ; then
49499         COND_USE_XRC_1=""
49500     fi
49501
49502     COND_WINDOWS_IMPLIB_1="#"
49503     if test "x$WINDOWS_IMPLIB" = "x1" ; then
49504         COND_WINDOWS_IMPLIB_1=""
49505     fi
49506
49507     COND_WITH_PLUGIN_SDL_1="#"
49508     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49509         COND_WITH_PLUGIN_SDL_1=""
49510     fi
49511
49512     COND_WXUNIV_0="#"
49513     if test "x$WXUNIV" = "x0" ; then
49514         COND_WXUNIV_0=""
49515     fi
49516
49517     COND_WXUNIV_1="#"
49518     if test "x$WXUNIV" = "x1" ; then
49519         COND_WXUNIV_1=""
49520     fi
49521
49522     COND_WXUSE_EXPAT_BUILTIN="#"
49523     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49524         COND_WXUSE_EXPAT_BUILTIN=""
49525     fi
49526
49527     COND_WXUSE_LIBJPEG_BUILTIN="#"
49528     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49529         COND_WXUSE_LIBJPEG_BUILTIN=""
49530     fi
49531
49532     COND_WXUSE_LIBPNG_BUILTIN="#"
49533     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49534         COND_WXUSE_LIBPNG_BUILTIN=""
49535     fi
49536
49537     COND_WXUSE_LIBTIFF_BUILTIN="#"
49538     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49539         COND_WXUSE_LIBTIFF_BUILTIN=""
49540     fi
49541
49542     COND_WXUSE_ODBC_BUILTIN="#"
49543     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49544         COND_WXUSE_ODBC_BUILTIN=""
49545     fi
49546
49547     COND_WXUSE_REGEX_BUILTIN="#"
49548     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49549         COND_WXUSE_REGEX_BUILTIN=""
49550     fi
49551
49552     COND_WXUSE_ZLIB_BUILTIN="#"
49553     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49554         COND_WXUSE_ZLIB_BUILTIN=""
49555     fi
49556
49557
49558
49559     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49560         { { 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
49561 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;}
49562    { (exit 1); exit 1; }; }
49563     fi
49564
49565     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49566         { { 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
49567 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;}
49568    { (exit 1); exit 1; }; }
49569     fi
49570
49571
49572
49573 if test "$wxUSE_MAC" = 1 ; then
49574     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
49575         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49576         mv temp bk-deps
49577         chmod +x bk-deps
49578     fi
49579 fi
49580
49581 if test "$wxUSE_SHARED" = "yes"; then
49582
49583                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49584     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49585
49586                 case "${host}" in
49587       *-pc-os2_emx | *-pc-os2-emx )
49588         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49589         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49590         cp -p ${srcdir}/src/os2/dllnames.sh .
49591         cp -p ${srcdir}/src/os2/dllar.sh .
49592       ;;
49593     esac
49594 else
49595
49596         EXE_LINKER="$CXX -o"
49597
49598 fi
49599 if test "$wxUSE_OMF" = "yes"; then
49600     case "${host}" in
49601       *-pc-os2_emx | *-pc-os2-emx )
49602         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49603         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49604         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49605       ;;
49606     esac
49607 fi
49608
49609 if test $GCC_PCH = 1 ; then
49610     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
49611 fi
49612
49613 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
49614
49615 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49616
49617
49618
49619
49620
49621
49622
49623
49624
49625
49626
49627
49628
49629
49630
49631
49632
49633
49634
49635
49636
49637
49638
49639
49640
49641
49642
49643
49644
49645
49646
49647
49648
49649
49650
49651
49652
49653
49654
49655
49656
49657
49658
49659
49660
49661
49662
49663
49664
49665
49666
49667
49668
49669
49670
49671
49672
49673
49674
49675
49676
49677 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49678 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
49679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
49680 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
49681   echo $ECHO_N "(cached) $ECHO_C" >&6
49682 else
49683   cat >conftest.make <<\_ACEOF
49684 all:
49685         @echo 'ac_maketemp="$(MAKE)"'
49686 _ACEOF
49687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49688 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
49689 if test -n "$ac_maketemp"; then
49690   eval ac_cv_prog_make_${ac_make}_set=yes
49691 else
49692   eval ac_cv_prog_make_${ac_make}_set=no
49693 fi
49694 rm -f conftest.make
49695 fi
49696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
49697   echo "$as_me:$LINENO: result: yes" >&5
49698 echo "${ECHO_T}yes" >&6
49699   SET_MAKE=
49700 else
49701   echo "$as_me:$LINENO: result: no" >&5
49702 echo "${ECHO_T}no" >&6
49703   SET_MAKE="MAKE=${MAKE-make}"
49704 fi
49705
49706
49707
49708           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49709
49710
49711 if test "$USE_WIN32" = 1; then
49712               ac_config_commands="$ac_config_commands
49713             rcdefs.h
49714         "
49715
49716 fi
49717
49718           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
49719
49720
49721           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
49722
49723
49724                     ac_config_files="$ac_config_files version-script Makefile"
49725
49726
49727           ac_config_commands="$ac_config_commands wx-config"
49728
49729
49730
49731 if test "$wxWITH_SUBDIRS" != "no"; then
49732 if test "$wxUSE_GUI" = "yes"; then
49733     SUBDIRS="samples demos utils contrib"
49734 else         SUBDIRS="samples utils"
49735 fi
49736
49737
49738
49739 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
49740 if test "${with_cppunit_prefix+set}" = set; then
49741   withval="$with_cppunit_prefix"
49742   cppunit_config_prefix="$withval"
49743 else
49744   cppunit_config_prefix=""
49745 fi;
49746
49747 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49748 if test "${with_cppunit_exec_prefix+set}" = set; then
49749   withval="$with_cppunit_exec_prefix"
49750   cppunit_config_exec_prefix="$withval"
49751 else
49752   cppunit_config_exec_prefix=""
49753 fi;
49754
49755   if test x$cppunit_config_exec_prefix != x ; then
49756      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49757      if test x${CPPUNIT_CONFIG+set} != xset ; then
49758         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49759      fi
49760   fi
49761   if test x$cppunit_config_prefix != x ; then
49762      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49763      if test x${CPPUNIT_CONFIG+set} != xset ; then
49764         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49765      fi
49766   fi
49767
49768   # Extract the first word of "cppunit-config", so it can be a program name with args.
49769 set dummy cppunit-config; ac_word=$2
49770 echo "$as_me:$LINENO: checking for $ac_word" >&5
49771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49772 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49773   echo $ECHO_N "(cached) $ECHO_C" >&6
49774 else
49775   case $CPPUNIT_CONFIG in
49776   [\\/]* | ?:[\\/]*)
49777   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49778   ;;
49779   *)
49780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49781 for as_dir in $PATH
49782 do
49783   IFS=$as_save_IFS
49784   test -z "$as_dir" && as_dir=.
49785   for ac_exec_ext in '' $ac_executable_extensions; do
49786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49787     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49789     break 2
49790   fi
49791 done
49792 done
49793
49794   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49795   ;;
49796 esac
49797 fi
49798 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49799
49800 if test -n "$CPPUNIT_CONFIG"; then
49801   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49802 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49803 else
49804   echo "$as_me:$LINENO: result: no" >&5
49805 echo "${ECHO_T}no" >&6
49806 fi
49807
49808   cppunit_version_min=1.8.0
49809
49810   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49811 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49812   no_cppunit=""
49813   if test "$CPPUNIT_CONFIG" = "no" ; then
49814     echo "$as_me:$LINENO: result: no" >&5
49815 echo "${ECHO_T}no" >&6
49816     no_cppunit=yes
49817   else
49818     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49819     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49820     cppunit_version=`$CPPUNIT_CONFIG --version`
49821
49822     cppunit_major_version=`echo $cppunit_version | \
49823            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49824     cppunit_minor_version=`echo $cppunit_version | \
49825            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49826     cppunit_micro_version=`echo $cppunit_version | \
49827            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49828
49829     cppunit_major_min=`echo $cppunit_version_min | \
49830            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49831     cppunit_minor_min=`echo $cppunit_version_min | \
49832            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49833     cppunit_micro_min=`echo $cppunit_version_min | \
49834            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49835
49836     cppunit_version_proper=`expr \
49837         $cppunit_major_version \> $cppunit_major_min \| \
49838         $cppunit_major_version \= $cppunit_major_min \& \
49839         $cppunit_minor_version \> $cppunit_minor_min \| \
49840         $cppunit_major_version \= $cppunit_major_min \& \
49841         $cppunit_minor_version \= $cppunit_minor_min \& \
49842         $cppunit_micro_version \>= $cppunit_micro_min `
49843
49844     if test "$cppunit_version_proper" = "1" ; then
49845       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49846 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49847     else
49848       echo "$as_me:$LINENO: result: no" >&5
49849 echo "${ECHO_T}no" >&6
49850       no_cppunit=yes
49851     fi
49852   fi
49853
49854   if test "x$no_cppunit" = x ; then
49855      SUBDIRS="$SUBDIRS tests"
49856   else
49857      CPPUNIT_CFLAGS=""
49858      CPPUNIT_LIBS=""
49859      :
49860   fi
49861
49862
49863
49864
49865
49866 for subdir in `echo $SUBDIRS`; do
49867     if test -d ${srcdir}/${subdir} ; then
49868         if test "$wxUSE_GUI" = "yes"; then
49869             if test ${subdir} = "samples"; then
49870                                                 makefiles="samples/Makefile.in $makefiles"
49871                 for sample in `echo $SAMPLES_SUBDIRS`; do
49872                     if test -d $srcdir/samples/$sample; then
49873                         makefiles="samples/$sample/Makefile.in $makefiles"
49874                     fi
49875                 done
49876             else
49877                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49878                 eval "disabled=\$$disabled_var"
49879                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49880                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
49881             fi
49882         else                                     if test ${subdir} = "samples"; then
49883                 makefiles="samples/Makefile.in samples/console/Makefile.in"
49884             elif test ${subdir} = "utils"; then
49885                 makefiles=""
49886                 for util in HelpGen tex2rtf ; do
49887                     if test -d $srcdir/utils/$util ; then
49888                         makefiles="utils/$util/Makefile.in \
49889                                    utils/$util/src/Makefile.in \
49890                                    $makefiles"
49891                     fi
49892                 done
49893             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49894             fi
49895         fi
49896
49897         for mkin in $makefiles ; do
49898             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49899                       ac_config_files="$ac_config_files $mk"
49900
49901         done
49902     fi
49903 done
49904 fi
49905 cat >confcache <<\_ACEOF
49906 # This file is a shell script that caches the results of configure
49907 # tests run on this system so they can be shared between configure
49908 # scripts and configure runs, see configure's option --config-cache.
49909 # It is not useful on other systems.  If it contains results you don't
49910 # want to keep, you may remove or edit it.
49911 #
49912 # config.status only pays attention to the cache file if you give it
49913 # the --recheck option to rerun configure.
49914 #
49915 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49916 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49917 # following values.
49918
49919 _ACEOF
49920
49921 # The following way of writing the cache mishandles newlines in values,
49922 # but we know of no workaround that is simple, portable, and efficient.
49923 # So, don't put newlines in cache variables' values.
49924 # Ultrix sh set writes to stderr and can't be redirected directly,
49925 # and sets the high bit in the cache file unless we assign to the vars.
49926 {
49927   (set) 2>&1 |
49928     case `(ac_space=' '; set | grep ac_space) 2>&1` in
49929     *ac_space=\ *)
49930       # `set' does not quote correctly, so add quotes (double-quote
49931       # substitution turns \\\\ into \\, and sed turns \\ into \).
49932       sed -n \
49933         "s/'/'\\\\''/g;
49934           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49935       ;;
49936     *)
49937       # `set' quotes correctly as required by POSIX, so do not add quotes.
49938       sed -n \
49939         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
49940       ;;
49941     esac;
49942 } |
49943   sed '
49944      t clear
49945      : clear
49946      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49947      t end
49948      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49949      : end' >>confcache
49950 if diff $cache_file confcache >/dev/null 2>&1; then :; else
49951   if test -w $cache_file; then
49952     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49953     cat confcache >$cache_file
49954   else
49955     echo "not updating unwritable cache $cache_file"
49956   fi
49957 fi
49958 rm -f confcache
49959
49960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49961 # Let make expand exec_prefix.
49962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49963
49964 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49965 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49966 # trailing colons and then remove the whole line if VPATH becomes empty
49967 # (actually we leave an empty line to preserve line numbers).
49968 if test "x$srcdir" = x.; then
49969   ac_vpsub='/^[  ]*VPATH[        ]*=/{
49970 s/:*\$(srcdir):*/:/;
49971 s/:*\${srcdir}:*/:/;
49972 s/:*@srcdir@:*/:/;
49973 s/^\([^=]*=[     ]*\):*/\1/;
49974 s/:*$//;
49975 s/^[^=]*=[       ]*$//;
49976 }'
49977 fi
49978
49979 DEFS=-DHAVE_CONFIG_H
49980
49981 ac_libobjs=
49982 ac_ltlibobjs=
49983 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49984   # 1. Remove the extension, and $U if already installed.
49985   ac_i=`echo "$ac_i" |
49986          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
49987   # 2. Add them.
49988   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49989   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49990 done
49991 LIBOBJS=$ac_libobjs
49992
49993 LTLIBOBJS=$ac_ltlibobjs
49994
49995
49996
49997 : ${CONFIG_STATUS=./config.status}
49998 ac_clean_files_save=$ac_clean_files
49999 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50000 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50001 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50002 cat >$CONFIG_STATUS <<_ACEOF
50003 #! $SHELL
50004 # Generated by $as_me.
50005 # Run this file to recreate the current configuration.
50006 # Compiler output produced by configure, useful for debugging
50007 # configure, is in config.log if it exists.
50008
50009 debug=false
50010 ac_cs_recheck=false
50011 ac_cs_silent=false
50012 SHELL=\${CONFIG_SHELL-$SHELL}
50013 _ACEOF
50014
50015 cat >>$CONFIG_STATUS <<\_ACEOF
50016 ## --------------------- ##
50017 ## M4sh Initialization.  ##
50018 ## --------------------- ##
50019
50020 # Be Bourne compatible
50021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50022   emulate sh
50023   NULLCMD=:
50024   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50025   # is contrary to our usage.  Disable this feature.
50026   alias -g '${1+"$@"}'='"$@"'
50027 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50028   set -o posix
50029 fi
50030 DUALCASE=1; export DUALCASE # for MKS sh
50031
50032 # Support unset when possible.
50033 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50034   as_unset=unset
50035 else
50036   as_unset=false
50037 fi
50038
50039
50040 # Work around bugs in pre-3.0 UWIN ksh.
50041 $as_unset ENV MAIL MAILPATH
50042 PS1='$ '
50043 PS2='> '
50044 PS4='+ '
50045
50046 # NLS nuisances.
50047 for as_var in \
50048   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50049   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50050   LC_TELEPHONE LC_TIME
50051 do
50052   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50053     eval $as_var=C; export $as_var
50054   else
50055     $as_unset $as_var
50056   fi
50057 done
50058
50059 # Required to use basename.
50060 if expr a : '\(a\)' >/dev/null 2>&1; then
50061   as_expr=expr
50062 else
50063   as_expr=false
50064 fi
50065
50066 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50067   as_basename=basename
50068 else
50069   as_basename=false
50070 fi
50071
50072
50073 # Name of the executable.
50074 as_me=`$as_basename "$0" ||
50075 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50076          X"$0" : 'X\(//\)$' \| \
50077          X"$0" : 'X\(/\)$' \| \
50078          .     : '\(.\)' 2>/dev/null ||
50079 echo X/"$0" |
50080     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50081           /^X\/\(\/\/\)$/{ s//\1/; q; }
50082           /^X\/\(\/\).*/{ s//\1/; q; }
50083           s/.*/./; q'`
50084
50085
50086 # PATH needs CR, and LINENO needs CR and PATH.
50087 # Avoid depending upon Character Ranges.
50088 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50089 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50090 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50091 as_cr_digits='0123456789'
50092 as_cr_alnum=$as_cr_Letters$as_cr_digits
50093
50094 # The user is always right.
50095 if test "${PATH_SEPARATOR+set}" != set; then
50096   echo "#! /bin/sh" >conf$$.sh
50097   echo  "exit 0"   >>conf$$.sh
50098   chmod +x conf$$.sh
50099   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50100     PATH_SEPARATOR=';'
50101   else
50102     PATH_SEPARATOR=:
50103   fi
50104   rm -f conf$$.sh
50105 fi
50106
50107
50108   as_lineno_1=$LINENO
50109   as_lineno_2=$LINENO
50110   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50111   test "x$as_lineno_1" != "x$as_lineno_2" &&
50112   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
50113   # Find who we are.  Look in the path if we contain no path at all
50114   # relative or not.
50115   case $0 in
50116     *[\\/]* ) as_myself=$0 ;;
50117     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50118 for as_dir in $PATH
50119 do
50120   IFS=$as_save_IFS
50121   test -z "$as_dir" && as_dir=.
50122   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50123 done
50124
50125        ;;
50126   esac
50127   # We did not find ourselves, most probably we were run as `sh COMMAND'
50128   # in which case we are not to be found in the path.
50129   if test "x$as_myself" = x; then
50130     as_myself=$0
50131   fi
50132   if test ! -f "$as_myself"; then
50133     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50134 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50135    { (exit 1); exit 1; }; }
50136   fi
50137   case $CONFIG_SHELL in
50138   '')
50139     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50140 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50141 do
50142   IFS=$as_save_IFS
50143   test -z "$as_dir" && as_dir=.
50144   for as_base in sh bash ksh sh5; do
50145          case $as_dir in
50146          /*)
50147            if ("$as_dir/$as_base" -c '
50148   as_lineno_1=$LINENO
50149   as_lineno_2=$LINENO
50150   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50151   test "x$as_lineno_1" != "x$as_lineno_2" &&
50152   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
50153              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50154              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50155              CONFIG_SHELL=$as_dir/$as_base
50156              export CONFIG_SHELL
50157              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50158            fi;;
50159          esac
50160        done
50161 done
50162 ;;
50163   esac
50164
50165   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50166   # uniformly replaced by the line number.  The first 'sed' inserts a
50167   # line-number line before each line; the second 'sed' does the real
50168   # work.  The second script uses 'N' to pair each line-number line
50169   # with the numbered line, and appends trailing '-' during
50170   # substitution so that $LINENO is not a special case at line end.
50171   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50172   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
50173   sed '=' <$as_myself |
50174     sed '
50175       N
50176       s,$,-,
50177       : loop
50178       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50179       t loop
50180       s,-$,,
50181       s,^['$as_cr_digits']*\n,,
50182     ' >$as_me.lineno &&
50183   chmod +x $as_me.lineno ||
50184     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50185 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50186    { (exit 1); exit 1; }; }
50187
50188   # Don't try to exec as it changes $[0], causing all sort of problems
50189   # (the dirname of $[0] is not the place where we might find the
50190   # original and so on.  Autoconf is especially sensible to this).
50191   . ./$as_me.lineno
50192   # Exit status is that of the last command.
50193   exit
50194 }
50195
50196
50197 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50198   *c*,-n*) ECHO_N= ECHO_C='
50199 ' ECHO_T='      ' ;;
50200   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50201   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
50202 esac
50203
50204 if expr a : '\(a\)' >/dev/null 2>&1; then
50205   as_expr=expr
50206 else
50207   as_expr=false
50208 fi
50209
50210 rm -f conf$$ conf$$.exe conf$$.file
50211 echo >conf$$.file
50212 if ln -s conf$$.file conf$$ 2>/dev/null; then
50213   # We could just check for DJGPP; but this test a) works b) is more generic
50214   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50215   if test -f conf$$.exe; then
50216     # Don't use ln at all; we don't have any links
50217     as_ln_s='cp -p'
50218   else
50219     as_ln_s='ln -s'
50220   fi
50221 elif ln conf$$.file conf$$ 2>/dev/null; then
50222   as_ln_s=ln
50223 else
50224   as_ln_s='cp -p'
50225 fi
50226 rm -f conf$$ conf$$.exe conf$$.file
50227
50228 if mkdir -p . 2>/dev/null; then
50229   as_mkdir_p=:
50230 else
50231   test -d ./-p && rmdir ./-p
50232   as_mkdir_p=false
50233 fi
50234
50235 as_executable_p="test -f"
50236
50237 # Sed expression to map a string onto a valid CPP name.
50238 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50239
50240 # Sed expression to map a string onto a valid variable name.
50241 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50242
50243
50244 # IFS
50245 # We need space, tab and new line, in precisely that order.
50246 as_nl='
50247 '
50248 IFS="   $as_nl"
50249
50250 # CDPATH.
50251 $as_unset CDPATH
50252
50253 exec 6>&1
50254
50255 # Open the log real soon, to keep \$[0] and so on meaningful, and to
50256 # report actual input values of CONFIG_FILES etc. instead of their
50257 # values after options handling.  Logging --version etc. is OK.
50258 exec 5>>config.log
50259 {
50260   echo
50261   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50262 ## Running $as_me. ##
50263 _ASBOX
50264 } >&5
50265 cat >&5 <<_CSEOF
50266
50267 This file was extended by wxWidgets $as_me 2.7.1, which was
50268 generated by GNU Autoconf 2.59.  Invocation command line was
50269
50270   CONFIG_FILES    = $CONFIG_FILES
50271   CONFIG_HEADERS  = $CONFIG_HEADERS
50272   CONFIG_LINKS    = $CONFIG_LINKS
50273   CONFIG_COMMANDS = $CONFIG_COMMANDS
50274   $ $0 $@
50275
50276 _CSEOF
50277 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50278 echo >&5
50279 _ACEOF
50280
50281 # Files that config.status was made for.
50282 if test -n "$ac_config_files"; then
50283   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50284 fi
50285
50286 if test -n "$ac_config_headers"; then
50287   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50288 fi
50289
50290 if test -n "$ac_config_links"; then
50291   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50292 fi
50293
50294 if test -n "$ac_config_commands"; then
50295   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50296 fi
50297
50298 cat >>$CONFIG_STATUS <<\_ACEOF
50299
50300 ac_cs_usage="\
50301 \`$as_me' instantiates files from templates according to the
50302 current configuration.
50303
50304 Usage: $0 [OPTIONS] [FILE]...
50305
50306   -h, --help       print this help, then exit
50307   -V, --version    print version number, then exit
50308   -q, --quiet      do not print progress messages
50309   -d, --debug      don't remove temporary files
50310       --recheck    update $as_me by reconfiguring in the same conditions
50311   --file=FILE[:TEMPLATE]
50312                    instantiate the configuration file FILE
50313   --header=FILE[:TEMPLATE]
50314                    instantiate the configuration header FILE
50315
50316 Configuration files:
50317 $config_files
50318
50319 Configuration headers:
50320 $config_headers
50321
50322 Configuration commands:
50323 $config_commands
50324
50325 Report bugs to <bug-autoconf@gnu.org>."
50326 _ACEOF
50327
50328 cat >>$CONFIG_STATUS <<_ACEOF
50329 ac_cs_version="\\
50330 wxWidgets config.status 2.7.1
50331 configured by $0, generated by GNU Autoconf 2.59,
50332   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50333
50334 Copyright (C) 2003 Free Software Foundation, Inc.
50335 This config.status script is free software; the Free Software Foundation
50336 gives unlimited permission to copy, distribute and modify it."
50337 srcdir=$srcdir
50338 INSTALL="$INSTALL"
50339 _ACEOF
50340
50341 cat >>$CONFIG_STATUS <<\_ACEOF
50342 # If no file are specified by the user, then we need to provide default
50343 # value.  By we need to know if files were specified by the user.
50344 ac_need_defaults=:
50345 while test $# != 0
50346 do
50347   case $1 in
50348   --*=*)
50349     ac_option=`expr "x$1" : 'x\([^=]*\)='`
50350     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50351     ac_shift=:
50352     ;;
50353   -*)
50354     ac_option=$1
50355     ac_optarg=$2
50356     ac_shift=shift
50357     ;;
50358   *) # This is not an option, so the user has probably given explicit
50359      # arguments.
50360      ac_option=$1
50361      ac_need_defaults=false;;
50362   esac
50363
50364   case $ac_option in
50365   # Handling of the options.
50366 _ACEOF
50367 cat >>$CONFIG_STATUS <<\_ACEOF
50368   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50369     ac_cs_recheck=: ;;
50370   --version | --vers* | -V )
50371     echo "$ac_cs_version"; exit 0 ;;
50372   --he | --h)
50373     # Conflict between --help and --header
50374     { { echo "$as_me:$LINENO: error: ambiguous option: $1
50375 Try \`$0 --help' for more information." >&5
50376 echo "$as_me: error: ambiguous option: $1
50377 Try \`$0 --help' for more information." >&2;}
50378    { (exit 1); exit 1; }; };;
50379   --help | --hel | -h )
50380     echo "$ac_cs_usage"; exit 0 ;;
50381   --debug | --d* | -d )
50382     debug=: ;;
50383   --file | --fil | --fi | --f )
50384     $ac_shift
50385     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50386     ac_need_defaults=false;;
50387   --header | --heade | --head | --hea )
50388     $ac_shift
50389     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50390     ac_need_defaults=false;;
50391   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50392   | -silent | --silent | --silen | --sile | --sil | --si | --s)
50393     ac_cs_silent=: ;;
50394
50395   # This is an error.
50396   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50397 Try \`$0 --help' for more information." >&5
50398 echo "$as_me: error: unrecognized option: $1
50399 Try \`$0 --help' for more information." >&2;}
50400    { (exit 1); exit 1; }; } ;;
50401
50402   *) ac_config_targets="$ac_config_targets $1" ;;
50403
50404   esac
50405   shift
50406 done
50407
50408 ac_configure_extra_args=
50409
50410 if $ac_cs_silent; then
50411   exec 6>/dev/null
50412   ac_configure_extra_args="$ac_configure_extra_args --silent"
50413 fi
50414
50415 _ACEOF
50416 cat >>$CONFIG_STATUS <<_ACEOF
50417 if \$ac_cs_recheck; then
50418   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50419   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50420 fi
50421
50422 _ACEOF
50423
50424 cat >>$CONFIG_STATUS <<_ACEOF
50425 #
50426 # INIT-COMMANDS section.
50427 #
50428
50429
50430             CPP="$CPP"
50431             infile="$srcdir/include/wx/msw/genrcdefs.h"
50432             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50433
50434
50435  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50436  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50437  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50438                      LN_S="${LN_S}"
50439
50440
50441 _ACEOF
50442
50443
50444
50445 cat >>$CONFIG_STATUS <<\_ACEOF
50446 for ac_config_target in $ac_config_targets
50447 do
50448   case "$ac_config_target" in
50449   # Handling of arguments.
50450   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50451   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
50452   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50453   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50454   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
50455   "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
50456   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50457   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
50458   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50459 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50460    { (exit 1); exit 1; }; };;
50461   esac
50462 done
50463
50464 # If the user did not use the arguments to specify the items to instantiate,
50465 # then the envvar interface is used.  Set only those that are not.
50466 # We use the long form for the default assignment because of an extremely
50467 # bizarre bug on SunOS 4.1.3.
50468 if $ac_need_defaults; then
50469   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50470   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50471   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50472 fi
50473
50474 # Have a temporary directory for convenience.  Make it in the build tree
50475 # simply because there is no reason to put it here, and in addition,
50476 # creating and moving files from /tmp can sometimes cause problems.
50477 # Create a temporary directory, and hook for its removal unless debugging.
50478 $debug ||
50479 {
50480   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50481   trap '{ (exit 1); exit 1; }' 1 2 13 15
50482 }
50483
50484 # Create a (secure) tmp directory for tmp files.
50485
50486 {
50487   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50488   test -n "$tmp" && test -d "$tmp"
50489 }  ||
50490 {
50491   tmp=./confstat$$-$RANDOM
50492   (umask 077 && mkdir $tmp)
50493 } ||
50494 {
50495    echo "$me: cannot create a temporary directory in ." >&2
50496    { (exit 1); exit 1; }
50497 }
50498
50499 _ACEOF
50500
50501 cat >>$CONFIG_STATUS <<_ACEOF
50502
50503 #
50504 # CONFIG_FILES section.
50505 #
50506
50507 # No need to generate the scripts if there are no CONFIG_FILES.
50508 # This happens for instance when ./config.status config.h
50509 if test -n "\$CONFIG_FILES"; then
50510   # Protect against being on the right side of a sed subst in config.status.
50511   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50512    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50513 s,@SHELL@,$SHELL,;t t
50514 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50515 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50516 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50517 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50518 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50519 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50520 s,@exec_prefix@,$exec_prefix,;t t
50521 s,@prefix@,$prefix,;t t
50522 s,@program_transform_name@,$program_transform_name,;t t
50523 s,@bindir@,$bindir,;t t
50524 s,@sbindir@,$sbindir,;t t
50525 s,@libexecdir@,$libexecdir,;t t
50526 s,@datadir@,$datadir,;t t
50527 s,@sysconfdir@,$sysconfdir,;t t
50528 s,@sharedstatedir@,$sharedstatedir,;t t
50529 s,@localstatedir@,$localstatedir,;t t
50530 s,@libdir@,$libdir,;t t
50531 s,@includedir@,$includedir,;t t
50532 s,@oldincludedir@,$oldincludedir,;t t
50533 s,@infodir@,$infodir,;t t
50534 s,@mandir@,$mandir,;t t
50535 s,@build_alias@,$build_alias,;t t
50536 s,@host_alias@,$host_alias,;t t
50537 s,@target_alias@,$target_alias,;t t
50538 s,@DEFS@,$DEFS,;t t
50539 s,@ECHO_C@,$ECHO_C,;t t
50540 s,@ECHO_N@,$ECHO_N,;t t
50541 s,@ECHO_T@,$ECHO_T,;t t
50542 s,@LIBS@,$LIBS,;t t
50543 s,@build@,$build,;t t
50544 s,@build_cpu@,$build_cpu,;t t
50545 s,@build_vendor@,$build_vendor,;t t
50546 s,@build_os@,$build_os,;t t
50547 s,@host@,$host,;t t
50548 s,@host_cpu@,$host_cpu,;t t
50549 s,@host_vendor@,$host_vendor,;t t
50550 s,@host_os@,$host_os,;t t
50551 s,@target@,$target,;t t
50552 s,@target_cpu@,$target_cpu,;t t
50553 s,@target_vendor@,$target_vendor,;t t
50554 s,@target_os@,$target_os,;t t
50555 s,@CC@,$CC,;t t
50556 s,@CFLAGS@,$CFLAGS,;t t
50557 s,@LDFLAGS@,$LDFLAGS,;t t
50558 s,@CPPFLAGS@,$CPPFLAGS,;t t
50559 s,@ac_ct_CC@,$ac_ct_CC,;t t
50560 s,@EXEEXT@,$EXEEXT,;t t
50561 s,@OBJEXT@,$OBJEXT,;t t
50562 s,@CPP@,$CPP,;t t
50563 s,@EGREP@,$EGREP,;t t
50564 s,@CXX@,$CXX,;t t
50565 s,@CXXFLAGS@,$CXXFLAGS,;t t
50566 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50567 s,@RANLIB@,$RANLIB,;t t
50568 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50569 s,@AR@,$AR,;t t
50570 s,@ac_ct_AR@,$ac_ct_AR,;t t
50571 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50572 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50573 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50574 s,@STRIP@,$STRIP,;t t
50575 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
50576 s,@WINDRES@,$WINDRES,;t t
50577 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
50578 s,@DLLTOOL@,$DLLTOOL,;t t
50579 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
50580 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
50581 s,@LN_S@,$LN_S,;t t
50582 s,@CXXCPP@,$CXXCPP,;t t
50583 s,@subdirs@,$subdirs,;t t
50584 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
50585 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
50586 s,@GTK_LIBS@,$GTK_LIBS,;t t
50587 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
50588 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
50589 s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
50590 s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
50591 s,@X_CFLAGS@,$X_CFLAGS,;t t
50592 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
50593 s,@X_LIBS@,$X_LIBS,;t t
50594 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
50595 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
50596 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
50597 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
50598 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
50599 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
50600 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
50601 s,@REZ@,$REZ,;t t
50602 s,@DEREZ@,$DEREZ,;t t
50603 s,@SETFILE@,$SETFILE,;t t
50604 s,@LIBICONV@,$LIBICONV,;t t
50605 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
50606 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
50607 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
50608 s,@SDL_LIBS@,$SDL_LIBS,;t t
50609 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
50610 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
50611 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
50612 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
50613 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
50614 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
50615 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
50616 s,@GST_LIBS@,$GST_LIBS,;t t
50617 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
50618 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
50619 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
50620 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
50621 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
50622 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
50623 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
50624 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
50625 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
50626 s,@VENDOR@,$VENDOR,;t t
50627 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
50628 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
50629 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
50630 s,@WXUNIV@,$WXUNIV,;t t
50631 s,@MONOLITHIC@,$MONOLITHIC,;t t
50632 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
50633 s,@EXTRALIBS@,$EXTRALIBS,;t t
50634 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
50635 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
50636 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
50637 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
50638 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
50639 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
50640 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
50641 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
50642 s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
50643 s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
50644 s,@UNICODE@,$UNICODE,;t t
50645 s,@BUILD@,$BUILD,;t t
50646 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
50647 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
50648 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
50649 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
50650 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
50651 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
50652 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
50653 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
50654 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
50655 s,@SET_MAKE@,$SET_MAKE,;t t
50656 s,@MAKE_SET@,$MAKE_SET,;t t
50657 s,@NM@,$NM,;t t
50658 s,@ac_ct_NM@,$ac_ct_NM,;t t
50659 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
50660 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
50661 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
50662 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
50663 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
50664 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
50665 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
50666 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
50667 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
50668 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
50669 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
50670 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
50671 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
50672 s,@LIBPREFIX@,$LIBPREFIX,;t t
50673 s,@LIBEXT@,$LIBEXT,;t t
50674 s,@DLLPREFIX@,$DLLPREFIX,;t t
50675 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
50676 s,@dlldir@,$dlldir,;t t
50677 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
50678 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
50679 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
50680 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
50681 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
50682 s,@PIC_FLAG@,$PIC_FLAG,;t t
50683 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
50684 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
50685 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
50686 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
50687 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
50688 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
50689 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
50690 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
50691 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
50692 s,@GCC_PCH@,$GCC_PCH,;t t
50693 s,@ICC_PCH@,$ICC_PCH,;t t
50694 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
50695 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
50696 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
50697 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
50698 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
50699 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
50700 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
50701 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
50702 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
50703 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
50704 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
50705 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
50706 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
50707 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
50708 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
50709 s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
50710 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
50711 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
50712 s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
50713 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
50714 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
50715 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
50716 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
50717 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
50718 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
50719 s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
50720 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
50721 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
50722 s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
50723 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
50724 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
50725 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
50726 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
50727 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
50728 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
50729 s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
50730 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
50731 s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
50732 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
50733 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
50734 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
50735 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
50736 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
50737 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
50738 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
50739 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
50740 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
50741 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
50742 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
50743 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50744 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
50745 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
50746 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
50747 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50748 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
50749 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50750 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
50751 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
50752 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
50753 s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
50754 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
50755 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50756 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50757 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50758 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50759 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50760 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50761 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50762 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
50763 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50764 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50765 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
50766 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50767 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50768 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50769 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
50770 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
50771 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50772 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50773 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50774 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50775 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50776 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
50777 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
50778 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
50779 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
50780 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
50781 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
50782 s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
50783 s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
50784 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
50785 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50786 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50787 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50788 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
50789 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50790 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
50791 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
50792 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50793 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50794 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50795 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50796 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50797 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50798 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50799 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50800 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50801 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50802 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
50803 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
50804 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50805 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50806 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
50807 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50808 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50809 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
50810 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
50811 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50812 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50813 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50814 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50815 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50816 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50817 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50818 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50819 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50820 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50821 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50822 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
50823 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50824 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
50825 s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
50826 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
50827 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50828 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
50829 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
50830 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
50831 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50832 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50833 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
50834 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50835 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
50836 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
50837 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
50838 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
50839 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
50840 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50841 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50842 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50843 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50844 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50845 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50846 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50847 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
50848 s,@SHARED@,$SHARED,;t t
50849 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50850 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
50851 s,@USE_GUI@,$USE_GUI,;t t
50852 s,@AFMINSTALL@,$AFMINSTALL,;t t
50853 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50854 s,@TOOLKIT@,$TOOLKIT,;t t
50855 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
50856 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
50857 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
50858 s,@cross_compiling@,$cross_compiling,;t t
50859 s,@WIDGET_SET@,$WIDGET_SET,;t t
50860 s,@WX_RELEASE@,$WX_RELEASE,;t t
50861 s,@WX_VERSION@,$WX_VERSION,;t t
50862 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50863 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50864 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
50865 s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50866 s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50867 s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50868 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
50869 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50870 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
50871 s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
50872 s,@EXE_LINKER@,$EXE_LINKER,;t t
50873 s,@GUIDIST@,$GUIDIST,;t t
50874 s,@DISTDIR@,$DISTDIR,;t t
50875 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50876 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
50877 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50878 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50879 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
50880 s,@RESCOMP@,$RESCOMP,;t t
50881 s,@RESFLAGS@,$RESFLAGS,;t t
50882 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50883 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50884 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50885 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
50886 s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
50887 s,@MACSETFILE@,$MACSETFILE,;t t
50888 s,@GCC@,$GCC,;t t
50889 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50890 s,@LIBOBJS@,$LIBOBJS,;t t
50891 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50892 CEOF
50893
50894 _ACEOF
50895
50896   cat >>$CONFIG_STATUS <<\_ACEOF
50897   # Split the substitutions into bite-sized pieces for seds with
50898   # small command number limits, like on Digital OSF/1 and HP-UX.
50899   ac_max_sed_lines=48
50900   ac_sed_frag=1 # Number of current file.
50901   ac_beg=1 # First line for current file.
50902   ac_end=$ac_max_sed_lines # Line after last line for current file.
50903   ac_more_lines=:
50904   ac_sed_cmds=
50905   while $ac_more_lines; do
50906     if test $ac_beg -gt 1; then
50907       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50908     else
50909       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50910     fi
50911     if test ! -s $tmp/subs.frag; then
50912       ac_more_lines=false
50913     else
50914       # The purpose of the label and of the branching condition is to
50915       # speed up the sed processing (if there are no `@' at all, there
50916       # is no need to browse any of the substitutions).
50917       # These are the two extra sed commands mentioned above.
50918       (echo ':t
50919   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50920       if test -z "$ac_sed_cmds"; then
50921         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
50922       else
50923         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
50924       fi
50925       ac_sed_frag=`expr $ac_sed_frag + 1`
50926       ac_beg=$ac_end
50927       ac_end=`expr $ac_end + $ac_max_sed_lines`
50928     fi
50929   done
50930   if test -z "$ac_sed_cmds"; then
50931     ac_sed_cmds=cat
50932   fi
50933 fi # test -n "$CONFIG_FILES"
50934
50935 _ACEOF
50936 cat >>$CONFIG_STATUS <<\_ACEOF
50937 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50938   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50939   case $ac_file in
50940   - | *:- | *:-:* ) # input from stdin
50941         cat >$tmp/stdin
50942         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50943         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50944   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50945         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50946   * )   ac_file_in=$ac_file.in ;;
50947   esac
50948
50949   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50950   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50952          X"$ac_file" : 'X\(//\)[^/]' \| \
50953          X"$ac_file" : 'X\(//\)$' \| \
50954          X"$ac_file" : 'X\(/\)' \| \
50955          .     : '\(.\)' 2>/dev/null ||
50956 echo X"$ac_file" |
50957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50958           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50959           /^X\(\/\/\)$/{ s//\1/; q; }
50960           /^X\(\/\).*/{ s//\1/; q; }
50961           s/.*/./; q'`
50962   { if $as_mkdir_p; then
50963     mkdir -p "$ac_dir"
50964   else
50965     as_dir="$ac_dir"
50966     as_dirs=
50967     while test ! -d "$as_dir"; do
50968       as_dirs="$as_dir $as_dirs"
50969       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50971          X"$as_dir" : 'X\(//\)[^/]' \| \
50972          X"$as_dir" : 'X\(//\)$' \| \
50973          X"$as_dir" : 'X\(/\)' \| \
50974          .     : '\(.\)' 2>/dev/null ||
50975 echo X"$as_dir" |
50976     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50977           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50978           /^X\(\/\/\)$/{ s//\1/; q; }
50979           /^X\(\/\).*/{ s//\1/; q; }
50980           s/.*/./; q'`
50981     done
50982     test ! -n "$as_dirs" || mkdir $as_dirs
50983   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50984 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50985    { (exit 1); exit 1; }; }; }
50986
50987   ac_builddir=.
50988
50989 if test "$ac_dir" != .; then
50990   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50991   # A "../" for each directory in $ac_dir_suffix.
50992   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50993 else
50994   ac_dir_suffix= ac_top_builddir=
50995 fi
50996
50997 case $srcdir in
50998   .)  # No --srcdir option.  We are building in place.
50999     ac_srcdir=.
51000     if test -z "$ac_top_builddir"; then
51001        ac_top_srcdir=.
51002     else
51003        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51004     fi ;;
51005   [\\/]* | ?:[\\/]* )  # Absolute path.
51006     ac_srcdir=$srcdir$ac_dir_suffix;
51007     ac_top_srcdir=$srcdir ;;
51008   *) # Relative path.
51009     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51010     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51011 esac
51012
51013 # Do not use `cd foo && pwd` to compute absolute paths, because
51014 # the directories may not exist.
51015 case `pwd` in
51016 .) ac_abs_builddir="$ac_dir";;
51017 *)
51018   case "$ac_dir" in
51019   .) ac_abs_builddir=`pwd`;;
51020   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51021   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51022   esac;;
51023 esac
51024 case $ac_abs_builddir in
51025 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51026 *)
51027   case ${ac_top_builddir}. in
51028   .) ac_abs_top_builddir=$ac_abs_builddir;;
51029   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51030   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51031   esac;;
51032 esac
51033 case $ac_abs_builddir in
51034 .) ac_abs_srcdir=$ac_srcdir;;
51035 *)
51036   case $ac_srcdir in
51037   .) ac_abs_srcdir=$ac_abs_builddir;;
51038   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51039   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51040   esac;;
51041 esac
51042 case $ac_abs_builddir in
51043 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51044 *)
51045   case $ac_top_srcdir in
51046   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51047   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51048   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51049   esac;;
51050 esac
51051
51052
51053   case $INSTALL in
51054   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51055   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51056   esac
51057
51058   # Let's still pretend it is `configure' which instantiates (i.e., don't
51059   # use $as_me), people would be surprised to read:
51060   #    /* config.h.  Generated by config.status.  */
51061   if test x"$ac_file" = x-; then
51062     configure_input=
51063   else
51064     configure_input="$ac_file.  "
51065   fi
51066   configure_input=$configure_input"Generated from `echo $ac_file_in |
51067                                      sed 's,.*/,,'` by configure."
51068
51069   # First look for the input files in the build tree, otherwise in the
51070   # src tree.
51071   ac_file_inputs=`IFS=:
51072     for f in $ac_file_in; do
51073       case $f in
51074       -) echo $tmp/stdin ;;
51075       [\\/$]*)
51076          # Absolute (can't be DOS-style, as IFS=:)
51077          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51078 echo "$as_me: error: cannot find input file: $f" >&2;}
51079    { (exit 1); exit 1; }; }
51080          echo "$f";;
51081       *) # Relative
51082          if test -f "$f"; then
51083            # Build tree
51084            echo "$f"
51085          elif test -f "$srcdir/$f"; then
51086            # Source tree
51087            echo "$srcdir/$f"
51088          else
51089            # /dev/null tree
51090            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51091 echo "$as_me: error: cannot find input file: $f" >&2;}
51092    { (exit 1); exit 1; }; }
51093          fi;;
51094       esac
51095     done` || { (exit 1); exit 1; }
51096
51097   if test x"$ac_file" != x-; then
51098     { echo "$as_me:$LINENO: creating $ac_file" >&5
51099 echo "$as_me: creating $ac_file" >&6;}
51100     rm -f "$ac_file"
51101   fi
51102 _ACEOF
51103 cat >>$CONFIG_STATUS <<_ACEOF
51104   sed "$ac_vpsub
51105 $extrasub
51106 _ACEOF
51107 cat >>$CONFIG_STATUS <<\_ACEOF
51108 :t
51109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51110 s,@configure_input@,$configure_input,;t t
51111 s,@srcdir@,$ac_srcdir,;t t
51112 s,@abs_srcdir@,$ac_abs_srcdir,;t t
51113 s,@top_srcdir@,$ac_top_srcdir,;t t
51114 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51115 s,@builddir@,$ac_builddir,;t t
51116 s,@abs_builddir@,$ac_abs_builddir,;t t
51117 s,@top_builddir@,$ac_top_builddir,;t t
51118 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51119 s,@INSTALL@,$ac_INSTALL,;t t
51120 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51121   rm -f $tmp/stdin
51122   if test x"$ac_file" != x-; then
51123     mv $tmp/out $ac_file
51124   else
51125     cat $tmp/out
51126     rm -f $tmp/out
51127   fi
51128
51129   # Run the commands associated with the file.
51130   case $ac_file in
51131     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
51132     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
51133   esac
51134 done
51135 _ACEOF
51136 cat >>$CONFIG_STATUS <<\_ACEOF
51137
51138 #
51139 # CONFIG_HEADER section.
51140 #
51141
51142 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51143 # NAME is the cpp macro being defined and VALUE is the value it is being given.
51144 #
51145 # ac_d sets the value in "#define NAME VALUE" lines.
51146 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
51147 ac_dB='[         ].*$,\1#\2'
51148 ac_dC=' '
51149 ac_dD=',;t'
51150 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
51151 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
51152 ac_uB='$,\1#\2define\3'
51153 ac_uC=' '
51154 ac_uD=',;t'
51155
51156 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51157   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51158   case $ac_file in
51159   - | *:- | *:-:* ) # input from stdin
51160         cat >$tmp/stdin
51161         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51162         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51163   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51164         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51165   * )   ac_file_in=$ac_file.in ;;
51166   esac
51167
51168   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51169 echo "$as_me: creating $ac_file" >&6;}
51170
51171   # First look for the input files in the build tree, otherwise in the
51172   # src tree.
51173   ac_file_inputs=`IFS=:
51174     for f in $ac_file_in; do
51175       case $f in
51176       -) echo $tmp/stdin ;;
51177       [\\/$]*)
51178          # Absolute (can't be DOS-style, as IFS=:)
51179          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51180 echo "$as_me: error: cannot find input file: $f" >&2;}
51181    { (exit 1); exit 1; }; }
51182          # Do quote $f, to prevent DOS paths from being IFS'd.
51183          echo "$f";;
51184       *) # Relative
51185          if test -f "$f"; then
51186            # Build tree
51187            echo "$f"
51188          elif test -f "$srcdir/$f"; then
51189            # Source tree
51190            echo "$srcdir/$f"
51191          else
51192            # /dev/null tree
51193            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51194 echo "$as_me: error: cannot find input file: $f" >&2;}
51195    { (exit 1); exit 1; }; }
51196          fi;;
51197       esac
51198     done` || { (exit 1); exit 1; }
51199   # Remove the trailing spaces.
51200   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
51201
51202 _ACEOF
51203
51204 # Transform confdefs.h into two sed scripts, `conftest.defines' and
51205 # `conftest.undefs', that substitutes the proper values into
51206 # config.h.in to produce config.h.  The first handles `#define'
51207 # templates, and the second `#undef' templates.
51208 # And first: Protect against being on the right side of a sed subst in
51209 # config.status.  Protect against being in an unquoted here document
51210 # in config.status.
51211 rm -f conftest.defines conftest.undefs
51212 # Using a here document instead of a string reduces the quoting nightmare.
51213 # Putting comments in sed scripts is not portable.
51214 #
51215 # `end' is used to avoid that the second main sed command (meant for
51216 # 0-ary CPP macros) applies to n-ary macro definitions.
51217 # See the Autoconf documentation for `clear'.
51218 cat >confdef2sed.sed <<\_ACEOF
51219 s/[\\&,]/\\&/g
51220 s,[\\$`],\\&,g
51221 t clear
51222 : clear
51223 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
51224 t end
51225 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
51226 : end
51227 _ACEOF
51228 # If some macros were called several times there might be several times
51229 # the same #defines, which is useless.  Nevertheless, we may not want to
51230 # sort them, since we want the *last* AC-DEFINE to be honored.
51231 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51232 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51233 rm -f confdef2sed.sed
51234
51235 # This sed command replaces #undef with comments.  This is necessary, for
51236 # example, in the case of _POSIX_SOURCE, which is predefined and required
51237 # on some systems where configure will not decide to define it.
51238 cat >>conftest.undefs <<\_ACEOF
51239 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
51240 _ACEOF
51241
51242 # Break up conftest.defines because some shells have a limit on the size
51243 # of here documents, and old seds have small limits too (100 cmds).
51244 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
51245 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
51246 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51247 echo '  :' >>$CONFIG_STATUS
51248 rm -f conftest.tail
51249 while grep . conftest.defines >/dev/null
51250 do
51251   # Write a limited-size here document to $tmp/defines.sed.
51252   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51253   # Speed up: don't consider the non `#define' lines.
51254   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
51255   # Work around the forget-to-reset-the-flag bug.
51256   echo 't clr' >>$CONFIG_STATUS
51257   echo ': clr' >>$CONFIG_STATUS
51258   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51259   echo 'CEOF
51260   sed -f $tmp/defines.sed $tmp/in >$tmp/out
51261   rm -f $tmp/in
51262   mv $tmp/out $tmp/in
51263 ' >>$CONFIG_STATUS
51264   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51265   rm -f conftest.defines
51266   mv conftest.tail conftest.defines
51267 done
51268 rm -f conftest.defines
51269 echo '  fi # grep' >>$CONFIG_STATUS
51270 echo >>$CONFIG_STATUS
51271
51272 # Break up conftest.undefs because some shells have a limit on the size
51273 # of here documents, and old seds have small limits too (100 cmds).
51274 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
51275 rm -f conftest.tail
51276 while grep . conftest.undefs >/dev/null
51277 do
51278   # Write a limited-size here document to $tmp/undefs.sed.
51279   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51280   # Speed up: don't consider the non `#undef'
51281   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
51282   # Work around the forget-to-reset-the-flag bug.
51283   echo 't clr' >>$CONFIG_STATUS
51284   echo ': clr' >>$CONFIG_STATUS
51285   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51286   echo 'CEOF
51287   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51288   rm -f $tmp/in
51289   mv $tmp/out $tmp/in
51290 ' >>$CONFIG_STATUS
51291   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51292   rm -f conftest.undefs
51293   mv conftest.tail conftest.undefs
51294 done
51295 rm -f conftest.undefs
51296
51297 cat >>$CONFIG_STATUS <<\_ACEOF
51298   # Let's still pretend it is `configure' which instantiates (i.e., don't
51299   # use $as_me), people would be surprised to read:
51300   #    /* config.h.  Generated by config.status.  */
51301   if test x"$ac_file" = x-; then
51302     echo "/* Generated by configure.  */" >$tmp/config.h
51303   else
51304     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
51305   fi
51306   cat $tmp/in >>$tmp/config.h
51307   rm -f $tmp/in
51308   if test x"$ac_file" != x-; then
51309     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51310       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51311 echo "$as_me: $ac_file is unchanged" >&6;}
51312     else
51313       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51315          X"$ac_file" : 'X\(//\)[^/]' \| \
51316          X"$ac_file" : 'X\(//\)$' \| \
51317          X"$ac_file" : 'X\(/\)' \| \
51318          .     : '\(.\)' 2>/dev/null ||
51319 echo X"$ac_file" |
51320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51321           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51322           /^X\(\/\/\)$/{ s//\1/; q; }
51323           /^X\(\/\).*/{ s//\1/; q; }
51324           s/.*/./; q'`
51325       { if $as_mkdir_p; then
51326     mkdir -p "$ac_dir"
51327   else
51328     as_dir="$ac_dir"
51329     as_dirs=
51330     while test ! -d "$as_dir"; do
51331       as_dirs="$as_dir $as_dirs"
51332       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51334          X"$as_dir" : 'X\(//\)[^/]' \| \
51335          X"$as_dir" : 'X\(//\)$' \| \
51336          X"$as_dir" : 'X\(/\)' \| \
51337          .     : '\(.\)' 2>/dev/null ||
51338 echo X"$as_dir" |
51339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51340           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51341           /^X\(\/\/\)$/{ s//\1/; q; }
51342           /^X\(\/\).*/{ s//\1/; q; }
51343           s/.*/./; q'`
51344     done
51345     test ! -n "$as_dirs" || mkdir $as_dirs
51346   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51347 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51348    { (exit 1); exit 1; }; }; }
51349
51350       rm -f $ac_file
51351       mv $tmp/config.h $ac_file
51352     fi
51353   else
51354     cat $tmp/config.h
51355     rm -f $tmp/config.h
51356   fi
51357 done
51358 _ACEOF
51359 cat >>$CONFIG_STATUS <<\_ACEOF
51360
51361 #
51362 # CONFIG_COMMANDS section.
51363 #
51364 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51365   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51366   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51367   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51368 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51369          X"$ac_dest" : 'X\(//\)[^/]' \| \
51370          X"$ac_dest" : 'X\(//\)$' \| \
51371          X"$ac_dest" : 'X\(/\)' \| \
51372          .     : '\(.\)' 2>/dev/null ||
51373 echo X"$ac_dest" |
51374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51375           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51376           /^X\(\/\/\)$/{ s//\1/; q; }
51377           /^X\(\/\).*/{ s//\1/; q; }
51378           s/.*/./; q'`
51379   { if $as_mkdir_p; then
51380     mkdir -p "$ac_dir"
51381   else
51382     as_dir="$ac_dir"
51383     as_dirs=
51384     while test ! -d "$as_dir"; do
51385       as_dirs="$as_dir $as_dirs"
51386       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51388          X"$as_dir" : 'X\(//\)[^/]' \| \
51389          X"$as_dir" : 'X\(//\)$' \| \
51390          X"$as_dir" : 'X\(/\)' \| \
51391          .     : '\(.\)' 2>/dev/null ||
51392 echo X"$as_dir" |
51393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51394           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51395           /^X\(\/\/\)$/{ s//\1/; q; }
51396           /^X\(\/\).*/{ s//\1/; q; }
51397           s/.*/./; q'`
51398     done
51399     test ! -n "$as_dirs" || mkdir $as_dirs
51400   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51401 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51402    { (exit 1); exit 1; }; }; }
51403
51404   ac_builddir=.
51405
51406 if test "$ac_dir" != .; then
51407   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51408   # A "../" for each directory in $ac_dir_suffix.
51409   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51410 else
51411   ac_dir_suffix= ac_top_builddir=
51412 fi
51413
51414 case $srcdir in
51415   .)  # No --srcdir option.  We are building in place.
51416     ac_srcdir=.
51417     if test -z "$ac_top_builddir"; then
51418        ac_top_srcdir=.
51419     else
51420        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51421     fi ;;
51422   [\\/]* | ?:[\\/]* )  # Absolute path.
51423     ac_srcdir=$srcdir$ac_dir_suffix;
51424     ac_top_srcdir=$srcdir ;;
51425   *) # Relative path.
51426     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51427     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51428 esac
51429
51430 # Do not use `cd foo && pwd` to compute absolute paths, because
51431 # the directories may not exist.
51432 case `pwd` in
51433 .) ac_abs_builddir="$ac_dir";;
51434 *)
51435   case "$ac_dir" in
51436   .) ac_abs_builddir=`pwd`;;
51437   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51438   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51439   esac;;
51440 esac
51441 case $ac_abs_builddir in
51442 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51443 *)
51444   case ${ac_top_builddir}. in
51445   .) ac_abs_top_builddir=$ac_abs_builddir;;
51446   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51447   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51448   esac;;
51449 esac
51450 case $ac_abs_builddir in
51451 .) ac_abs_srcdir=$ac_srcdir;;
51452 *)
51453   case $ac_srcdir in
51454   .) ac_abs_srcdir=$ac_abs_builddir;;
51455   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51456   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51457   esac;;
51458 esac
51459 case $ac_abs_builddir in
51460 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51461 *)
51462   case $ac_top_srcdir in
51463   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51464   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51465   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51466   esac;;
51467 esac
51468
51469
51470   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51471 echo "$as_me: executing $ac_dest commands" >&6;}
51472   case $ac_dest in
51473     rcdefs.h )
51474             mkdir -p $outdir &&
51475             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51476          ;;
51477     wx-config )  rm -f wx-config
51478                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51479                     ;;
51480   esac
51481 done
51482 _ACEOF
51483
51484 cat >>$CONFIG_STATUS <<\_ACEOF
51485
51486 { (exit 0); exit 0; }
51487 _ACEOF
51488 chmod +x $CONFIG_STATUS
51489 ac_clean_files=$ac_clean_files_save
51490
51491
51492 # configure is writing to config.log, and then calls config.status.
51493 # config.status does its own redirection, appending to config.log.
51494 # Unfortunately, on DOS this fails, as config.log is still kept open
51495 # by configure, so config.status won't be able to write to it; its
51496 # output is simply discarded.  So we exec the FD to /dev/null,
51497 # effectively closing config.log, so it can be properly (re)opened and
51498 # appended to by config.status.  When coming back to configure, we
51499 # need to make the FD available again.
51500 if test "$no_create" != yes; then
51501   ac_cs_success=:
51502   ac_config_status_args=
51503   test "$silent" = yes &&
51504     ac_config_status_args="$ac_config_status_args --quiet"
51505   exec 5>/dev/null
51506   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51507   exec 5>>config.log
51508   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51509   # would make configure fail if this is the last instruction.
51510   $ac_cs_success || { (exit 1); exit 1; }
51511 fi
51512
51513 #
51514 # CONFIG_SUBDIRS section.
51515 #
51516 if test "$no_recursion" != yes; then
51517
51518   # Remove --cache-file and --srcdir arguments so they do not pile up.
51519   ac_sub_configure_args=
51520   ac_prev=
51521   for ac_arg in $ac_configure_args; do
51522     if test -n "$ac_prev"; then
51523       ac_prev=
51524       continue
51525     fi
51526     case $ac_arg in
51527     -cache-file | --cache-file | --cache-fil | --cache-fi \
51528     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51529       ac_prev=cache_file ;;
51530     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51531     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51532     | --c=*)
51533       ;;
51534     --config-cache | -C)
51535       ;;
51536     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51537       ac_prev=srcdir ;;
51538     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51539       ;;
51540     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51541       ac_prev=prefix ;;
51542     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51543       ;;
51544     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
51545     esac
51546   done
51547
51548   # Always prepend --prefix to ensure using the same prefix
51549   # in subdir configurations.
51550   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
51551
51552   ac_popdir=`pwd`
51553   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51554
51555     # Do not complain, so a configure script can configure whichever
51556     # parts of a large source tree are present.
51557     test -d $srcdir/$ac_dir || continue
51558
51559     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
51560 echo "$as_me: configuring in $ac_dir" >&6;}
51561     { if $as_mkdir_p; then
51562     mkdir -p "$ac_dir"
51563   else
51564     as_dir="$ac_dir"
51565     as_dirs=
51566     while test ! -d "$as_dir"; do
51567       as_dirs="$as_dir $as_dirs"
51568       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51570          X"$as_dir" : 'X\(//\)[^/]' \| \
51571          X"$as_dir" : 'X\(//\)$' \| \
51572          X"$as_dir" : 'X\(/\)' \| \
51573          .     : '\(.\)' 2>/dev/null ||
51574 echo X"$as_dir" |
51575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51576           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51577           /^X\(\/\/\)$/{ s//\1/; q; }
51578           /^X\(\/\).*/{ s//\1/; q; }
51579           s/.*/./; q'`
51580     done
51581     test ! -n "$as_dirs" || mkdir $as_dirs
51582   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51583 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51584    { (exit 1); exit 1; }; }; }
51585
51586     ac_builddir=.
51587
51588 if test "$ac_dir" != .; then
51589   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51590   # A "../" for each directory in $ac_dir_suffix.
51591   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51592 else
51593   ac_dir_suffix= ac_top_builddir=
51594 fi
51595
51596 case $srcdir in
51597   .)  # No --srcdir option.  We are building in place.
51598     ac_srcdir=.
51599     if test -z "$ac_top_builddir"; then
51600        ac_top_srcdir=.
51601     else
51602        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51603     fi ;;
51604   [\\/]* | ?:[\\/]* )  # Absolute path.
51605     ac_srcdir=$srcdir$ac_dir_suffix;
51606     ac_top_srcdir=$srcdir ;;
51607   *) # Relative path.
51608     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51609     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51610 esac
51611
51612 # Do not use `cd foo && pwd` to compute absolute paths, because
51613 # the directories may not exist.
51614 case `pwd` in
51615 .) ac_abs_builddir="$ac_dir";;
51616 *)
51617   case "$ac_dir" in
51618   .) ac_abs_builddir=`pwd`;;
51619   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51620   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51621   esac;;
51622 esac
51623 case $ac_abs_builddir in
51624 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51625 *)
51626   case ${ac_top_builddir}. in
51627   .) ac_abs_top_builddir=$ac_abs_builddir;;
51628   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51629   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51630   esac;;
51631 esac
51632 case $ac_abs_builddir in
51633 .) ac_abs_srcdir=$ac_srcdir;;
51634 *)
51635   case $ac_srcdir in
51636   .) ac_abs_srcdir=$ac_abs_builddir;;
51637   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51638   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51639   esac;;
51640 esac
51641 case $ac_abs_builddir in
51642 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51643 *)
51644   case $ac_top_srcdir in
51645   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51646   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51647   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51648   esac;;
51649 esac
51650
51651
51652     cd $ac_dir
51653
51654     # Check for guested configure; otherwise get Cygnus style configure.
51655     if test -f $ac_srcdir/configure.gnu; then
51656       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
51657     elif test -f $ac_srcdir/configure; then
51658       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
51659     elif test -f $ac_srcdir/configure.in; then
51660       ac_sub_configure=$ac_configure
51661     else
51662       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51663 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51664       ac_sub_configure=
51665     fi
51666
51667     # The recursion is here.
51668     if test -n "$ac_sub_configure"; then
51669       # Make the cache file name correct relative to the subdirectory.
51670       case $cache_file in
51671       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51672       *) # Relative path.
51673         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
51674       esac
51675
51676       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51677 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51678       # The eval makes quoting arguments work.
51679       eval $ac_sub_configure $ac_sub_configure_args \
51680            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
51681         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
51682 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51683    { (exit 1); exit 1; }; }
51684     fi
51685
51686     cd "$ac_popdir"
51687   done
51688 fi
51689
51690
51691 echo
51692 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
51693 echo ""
51694 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
51695 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
51696
51697 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
51698 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
51699 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
51700
51701 echo "  What level of wxWidgets compatibility should be enabled?"
51702 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
51703 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
51704
51705 echo "  Which libraries should wxWidgets use?"
51706 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
51707 echo "                                       png                ${wxUSE_LIBPNG-none}"
51708 echo "                                       regex              ${wxUSE_REGEX}"
51709 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
51710 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51711 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
51712 fi
51713 echo "                                       zlib               ${wxUSE_ZLIB}"
51714 echo "                                       odbc               ${wxUSE_ODBC}"
51715 echo "                                       expat              ${wxUSE_EXPAT}"
51716 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
51717 echo "                                       sdl                ${wxUSE_LIBSDL}"
51718
51719 echo ""
51720