removed wxUSE_TOOLBAR_SIMPLE leftovers from the main sources, it's not used anywhere...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWidgets'
272 PACKAGE_TARNAME='wxwidgets'
273 PACKAGE_VERSION='2.7.0'
274 PACKAGE_STRING='wxWidgets 2.7.0'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ac_pt_PKG_CONFIG 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_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_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
794 ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
795 ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
796 ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
797 ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
798 ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
799 ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
800 ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
801 ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
802 ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
803 ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
804 ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
805 ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
806 ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
807 ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
808 ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
809 ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
810 ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
811 ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
812 ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
813 ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
814 ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
815 ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
816 ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
817 ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
818 ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
819 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
820 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
821 ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
822 ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
823 ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
824 ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
825 ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
826 ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
827 ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
828 ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
829 ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
830 ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
831 ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
832 ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
833 ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
834 ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
835 ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
836 ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
837 ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
838 ac_env_HILDON_LIBS_value=$HILDON_LIBS
839 ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
840 ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
841 ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
842 ac_env_GST_CFLAGS_value=$GST_CFLAGS
843 ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
844 ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
845 ac_env_GST_LIBS_set=${GST_LIBS+set}
846 ac_env_GST_LIBS_value=$GST_LIBS
847 ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
848 ac_cv_env_GST_LIBS_value=$GST_LIBS
849
850 #
851 # Report the --help message.
852 #
853 if test "$ac_init_help" = "long"; then
854   # Omit some internal or obsolete options to make the list less imposing.
855   # This message is too long to be a string in the A/UX 3.1 sh.
856   cat <<_ACEOF
857 \`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
858
859 Usage: $0 [OPTION]... [VAR=VALUE]...
860
861 To assign environment variables (e.g., CC, CFLAGS...), specify them as
862 VAR=VALUE.  See below for descriptions of some of the useful variables.
863
864 Defaults for the options are specified in brackets.
865
866 Configuration:
867   -h, --help              display this help and exit
868       --help=short        display options specific to this package
869       --help=recursive    display the short help of all the included packages
870   -V, --version           display version information and exit
871   -q, --quiet, --silent   do not print \`checking...' messages
872       --cache-file=FILE   cache test results in FILE [disabled]
873   -C, --config-cache      alias for \`--cache-file=config.cache'
874   -n, --no-create         do not create output files
875       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
876
877 _ACEOF
878
879   cat <<_ACEOF
880 Installation directories:
881   --prefix=PREFIX         install architecture-independent files in PREFIX
882                           [$ac_default_prefix]
883   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
884                           [PREFIX]
885
886 By default, \`make install' will install all the files in
887 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
888 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
889 for instance \`--prefix=\$HOME'.
890
891 For better control, use the options below.
892
893 Fine tuning of the installation directories:
894   --bindir=DIR           user executables [EPREFIX/bin]
895   --sbindir=DIR          system admin executables [EPREFIX/sbin]
896   --libexecdir=DIR       program executables [EPREFIX/libexec]
897   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
898   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
899   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
900   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
901   --libdir=DIR           object code libraries [EPREFIX/lib]
902   --includedir=DIR       C header files [PREFIX/include]
903   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
904   --infodir=DIR          info documentation [PREFIX/info]
905   --mandir=DIR           man documentation [PREFIX/man]
906 _ACEOF
907
908   cat <<\_ACEOF
909
910 X features:
911   --x-includes=DIR    X include files are in DIR
912   --x-libraries=DIR   X library files are in DIR
913
914 System types:
915   --build=BUILD     configure for building on BUILD [guessed]
916   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
917   --target=TARGET   configure for building compilers for TARGET [HOST]
918 _ACEOF
919 fi
920
921 if test -n "$ac_init_help"; then
922   case $ac_init_help in
923      short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
924    esac
925   cat <<\_ACEOF
926
927 Optional Features:
928   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
929   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
930   --enable-gui            use GUI classes
931   --enable-monolithic     build wxWidgets as single library
932   --enable-plugins        build parts of wxWidgets as loadable components
933   --enable-universal      use wxWidgets GUI controls instead of native ones
934   --enable-nanox          use NanoX
935   --disable-gtk2          use GTK+ 1.2 instead of 2.0
936   --enable-gpe            use GNOME PDA Environment features if possible
937   --enable-shared         create shared library code
938   --enable-optimise       create optimised code
939   --enable-debug          same as debug_flag and debug_info
940   --enable-stl            use STL for containers
941   --enable-omf            use OMF object format
942   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
943   --enable-debug_info     create code with debugging information
944   --enable-debug_gdb      create code with extra GDB debugging information
945   --enable-debug_cntxt    use wxDebugContext
946   --enable-mem_tracing    create code with memory tracing
947   --enable-profile        create code with profiling information
948   --enable-no_rtti        create code without RTTI information
949   --enable-no_exceptions  create code without C++ exceptions handling
950   --enable-permissive     compile code disregarding strict ANSI
951   --enable-no_deps        create code without dependency information
952   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
953   --enable-compat24       enable wxWidgets 2.4 compatibility
954   --disable-compat26      disable wxWidgets 2.6 compatibility
955   --disable-rpath         disable use of rpath for uninstalled builds
956   --enable-intl           use internationalization system
957   --enable-config         use wxConfig (and derived) classes
958   --enable-protocols      use wxProtocol and derived classes
959   --enable-ftp            use wxFTP (requires wxProtocol
960   --enable-http           use wxHTTP (requires wxProtocol
961   --enable-fileproto      use wxFileProto class (requires wxProtocol
962   --enable-sockets        use socket/network classes
963   --enable-ole            use OLE classes (Win32 only)
964   --enable-dataobj        use data object classes
965   --enable-ipc            use interprocess communication (wxSocket etc.)
966   --enable-apple_ieee     use the Apple IEEE codec
967   --enable-arcstream      use wxArchive streams
968   --enable-backtrace      use wxStackWalker class for getting backtraces
969   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
970   --enable-cmdline        use wxCmdLineParser class
971   --enable-datetime       use wxDateTime class
972   --enable-debugreport    use wxDebugReport class
973   --enable-dialupman      use dialup network classes
974   --enable-dynlib         use wxLibrary class for DLL loading
975   --enable-dynamicloader  use (new) wxDynamicLibrary class
976   --enable-exceptions     build exception-safe library
977   --enable-ffile          use wxFFile class
978   --enable-file           use wxFile class
979   --enable-filesystem     use virtual file systems classes
980   --enable-fontmap        use font encodings conversion classes
981   --enable-fs_inet        use virtual HTTP/FTP filesystems
982   --enable-fs_zip         use virtual ZIP filesystems
983   --enable-geometry       use geometry class
984   --enable-log            use logging system
985   --enable-longlong       use wxLongLong class
986   --enable-mimetype       use wxMimeTypesManager
987   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
988   --enable-snglinst       use wxSingleInstanceChecker class
989   --enable-std_iostreams  use standard C++ stream classes
990   --enable-std_string     use standard C++ string classes
991   --enable-stdpaths       use wxStandardPaths class
992   --enable-stopwatch      use wxStopWatch class
993   --enable-streams        use wxStream etc classes
994   --enable-sysoptions     use wxSystemOptions
995   --enable-textbuf        use wxTextBuffer class
996   --enable-textfile       use wxTextFile class
997   --enable-timer          use wxTimer class
998   --enable-unicode        compile wxString with Unicode support
999   --enable-sound          use wxSound class
1000   --enable-mediactrl      use wxMediaCtrl class
1001   --enable-gstreamer8      force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1002   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1003   --enable-zipstream      use wxZip streams
1004   --enable-url            use wxURL class
1005   --enable-protocol       use wxProtocol class
1006   --enable-protocol-http  HTTP support in wxProtocol
1007   --enable-protocol-ftp   FTP support in wxProtocol
1008   --enable-protocol-file  FILE support in wxProtocol
1009   --enable-threads        use threads
1010   --enable-docview        use document view architecture
1011   --enable-help           use help subsystem
1012   --enable-mshtmlhelp     use MS HTML Help (win32)
1013   --enable-html           use wxHTML sub-library
1014   --enable-htmlhelp       use wxHTML-based help
1015   --enable-xrc            use XRC resources sub-library
1016   --enable-aui            use AUI docking library
1017   --enable-constraints    use layout-constraints system
1018   --enable-printarch      use printing architecture
1019   --enable-mdi            use multiple document interface architecture
1020   --enable-mdidoc         use docview architecture with MDI
1021   --enable-loggui         use standard GUI logger
1022   --enable-logwin         use wxLogWindow
1023   --enable-logdialog      use wxLogDialog
1024   --enable-webkit         use wxWebKitCtrl (Mac)
1025   --enable-richtext       use wxRichTextCtrl
1026   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1027   --enable-prologio       not available; see contrib
1028   --enable-resources      not available; see contrib
1029   --enable-clipboard      use wxClipboard class
1030   --enable-dnd            use Drag'n'Drop classes
1031   --enable-metafile       use win32 metafiles
1032   --enable-controls       use all usual controls
1033   --enable-accel          use accelerators
1034   --enable-button         use wxButton class
1035   --enable-bmpbutton      use wxBitmapButton class
1036   --enable-calendar       use wxCalendarCtrl class
1037   --enable-caret          use wxCaret class
1038   --enable-checkbox       use wxCheckBox class
1039   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1040   --enable-choice         use wxChoice class
1041   --enable-choicebook     use wxChoicebook class
1042   --enable-colourpicker   use wxColourPickerCtrl class
1043   --enable-combobox       use wxComboBox class
1044   --enable-comboctrl      use wxComboCtrl class
1045   --enable-datepick       use wxDatePickerCtrl class
1046   --enable-dirpicker      use wxDirPickerCtrl class
1047   --enable-display        use wxDisplay class
1048   --enable-filepicker     use wxFilePickerCtrl class
1049   --enable-fontpicker     use wxFontPickerCtrl class
1050   --enable-gauge          use wxGauge class
1051   --enable-grid           use wxGrid class
1052   --enable-dataviewctrl,  use wxDataViewCtrl class
1053   --enable-hyperlink      use wxHyperlinkCtrl class
1054   --enable-imaglist       use wxImageList class
1055   --enable-listbook       use wxListbook class
1056   --enable-listbox        use wxListBox class
1057   --enable-listctrl       use wxListCtrl class
1058   --enable-notebook       use wxNotebook class
1059   --enable-odcombobox     use wxOwnerDrawnComboBox class
1060   --enable-radiobox       use wxRadioBox class
1061   --enable-radiobtn       use wxRadioButton class
1062   --enable-sash           use wxSashWindow class
1063   --enable-scrollbar      use wxScrollBar class and scrollable windows
1064   --enable-slider         use wxSlider class
1065   --enable-spinbtn        use wxSpinButton class
1066   --enable-spinctrl       use wxSpinCtrl class
1067   --enable-splitter       use wxSplitterWindow class
1068   --enable-statbmp        use wxStaticBitmap class
1069   --enable-statbox        use wxStaticBox class
1070   --enable-statline       use wxStaticLine class
1071   --enable-stattext       use wxStaticText class
1072   --enable-statusbar      use wxStatusBar class
1073   --enable-tabdialog      use wxTabControl class
1074   --enable-textctrl       use wxTextCtrl class
1075   --enable-togglebtn      use wxToggleButton class
1076   --enable-toolbar        use wxToolBar class
1077   --enable-tbarnative     use native wxToolBar class
1078   --enable-treebook       use wxTreebook class
1079   --enable-toolbook       use wxToolbook class
1080   --enable-treectrl       use wxTreeCtrl class
1081   --enable-tipwindow      use wxTipWindow class
1082   --enable-popupwin       use wxPopUpWindow class
1083   --enable-commondlg      use all common dialogs
1084   --enable-choicedlg      use wxChoiceDialog
1085   --enable-coldlg         use wxColourDialog
1086   --enable-filedlg        use wxFileDialog
1087   --enable-finddlg        use wxFindReplaceDialog
1088   --enable-fontdlg        use wxFontDialog
1089   --enable-dirdlg         use wxDirDialog
1090   --enable-msgdlg         use wxMessageDialog
1091   --enable-numberdlg      use wxNumberEntryDialog
1092   --enable-splash         use wxSplashScreen
1093   --enable-textdlg        use wxTextDialog
1094   --enable-tipdlg         use startup tips
1095   --enable-progressdlg    use wxProgressDialog
1096   --enable-wizarddlg      use wxWizard
1097   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1098   --enable-miniframe      use wxMiniFrame class
1099   --enable-tooltips       use wxToolTip class
1100   --enable-splines        use spline drawing code
1101   --enable-mousewheel     use mousewheel
1102   --enable-validators     use wxValidator and derived classes
1103   --enable-busyinfo       use wxBusyInfo
1104   --enable-joystick       use wxJoystick
1105   --enable-metafiles      use wxMetaFile (Win32 only)
1106   --enable-dragimage      use wxDragImage
1107   --enable-accessibility  enable accessibility support
1108   --enable-dccache        cache temporary wxDC objects (Win32 only)
1109   --enable-palette        use wxPalette class
1110   --enable-image          use wxImage class
1111   --enable-gif            use gif images (GIF file format)
1112   --enable-pcx            use pcx images (PCX file format)
1113   --enable-iff            use iff images (IFF file format)
1114   --enable-pnm            use pnm images (PNM file format)
1115   --enable-xpm            use xpm images (XPM file format)
1116   --enable-icocur         use Windows ICO and CUR formats
1117   --enable-official_build official build of wxWidgets (win32 DLL only)
1118   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1119   --disable-largefile     omit support for large files
1120   --disable-gtktest       do not try to compile and run a test GTK+ program
1121   --disable-gtktest       Do not try to compile and run a test GTK program
1122   --disable-sdltest       Do not try to compile and run a test SDL program
1123   --enable-omf            use OMF object format (OS/2)
1124   --disable-dependency-tracking
1125                           don't use dependency tracking even if the compiler
1126                           can
1127   --disable-precomp-headers
1128                           don't use precompiled headers even if compiler can
1129
1130 Optional Packages:
1131   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1132   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1133   --without-subdirs       don't generate makefiles for samples/demos/...
1134   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1135   --with-motif            use Motif/Lesstif
1136   --with-mac              use Mac OS X
1137   --with-cocoa            use Cocoa
1138   --with-wine             use Wine
1139   --with-msw              use MS-Windows
1140   --with-pm               use OS/2 Presentation Manager
1141   --with-mgl              use SciTech MGL
1142   --with-microwin         use MicroWindows
1143   --with-x11              use X11
1144   --with-libpng           use libpng (PNG image format)
1145   --with-libjpeg          use libjpeg (JPEG file format)
1146   --with-libtiff          use libtiff (TIFF file format)
1147   --with-libxpm           use libxpm (XPM file format)
1148   --with-libmspack        use libmspack (CHM help files loading)
1149   --with-sdl              use SDL for audio on Unix
1150   --with-gnomeprint       use GNOME print for printing under GNOME
1151   --with-gnomevfs         use GNOME VFS for associating MIME types
1152   --with-hildon           use Hildon framework for Nokia 770
1153   --with-opengl           use OpenGL (or Mesa)
1154   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1155   --with-regex            enable support for wxRegEx class
1156   --with-zlib             use zlib for LZW compression
1157   --with-odbc             use the IODBC and wxODBC classes
1158   --with-expat            enable XML support using expat parser
1159   --with-flavour=NAME     specify a name to identify this build
1160   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1161   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1162   --with-x                use the X Window System
1163   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1164   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1165   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1166   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1167   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1168
1169 Some influential environment variables:
1170   CC          C compiler command
1171   CFLAGS      C compiler flags
1172   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1173               nonstandard directory <lib dir>
1174   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1175               headers in a nonstandard directory <include dir>
1176   CPP         C preprocessor
1177   CXX         C++ compiler command
1178   CXXFLAGS    C++ compiler flags
1179   CXXCPP      C++ preprocessor
1180   PKG_CONFIG  path to pkg-config utility
1181   PANGOX_CFLAGS
1182               C compiler flags for PANGOX, overriding pkg-config
1183   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1184   PANGOFT2_CFLAGS
1185               C compiler flags for PANGOFT2, overriding pkg-config
1186   PANGOFT2_LIBS
1187               linker flags for PANGOFT2, overriding pkg-config
1188   PANGOXFT_CFLAGS
1189               C compiler flags for PANGOXFT, overriding pkg-config
1190   PANGOXFT_LIBS
1191               linker flags for PANGOXFT, overriding pkg-config
1192   LIBGNOMEPRINTUI_CFLAGS
1193               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1194   LIBGNOMEPRINTUI_LIBS
1195               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1196   GNOMEVFS_CFLAGS
1197               C compiler flags for GNOMEVFS, overriding pkg-config
1198   GNOMEVFS_LIBS
1199               linker flags for GNOMEVFS, overriding pkg-config
1200   HILDON_CFLAGS
1201               C compiler flags for HILDON, overriding pkg-config
1202   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1203   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1204   GST_LIBS    linker flags for GST, overriding pkg-config
1205
1206 Use these variables to override the choices made by `configure' or to help
1207 it to find libraries and programs with nonstandard names/locations.
1208
1209 Report bugs to <wx-dev@lists.wxwidgets.org>.
1210 _ACEOF
1211 fi
1212
1213 if test "$ac_init_help" = "recursive"; then
1214   # If there are subdirs, report their specific --help.
1215   ac_popdir=`pwd`
1216   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1217     test -d $ac_dir || continue
1218     ac_builddir=.
1219
1220 if test "$ac_dir" != .; then
1221   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1222   # A "../" for each directory in $ac_dir_suffix.
1223   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1224 else
1225   ac_dir_suffix= ac_top_builddir=
1226 fi
1227
1228 case $srcdir in
1229   .)  # No --srcdir option.  We are building in place.
1230     ac_srcdir=.
1231     if test -z "$ac_top_builddir"; then
1232        ac_top_srcdir=.
1233     else
1234        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1235     fi ;;
1236   [\\/]* | ?:[\\/]* )  # Absolute path.
1237     ac_srcdir=$srcdir$ac_dir_suffix;
1238     ac_top_srcdir=$srcdir ;;
1239   *) # Relative path.
1240     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1241     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1242 esac
1243
1244 # Do not use `cd foo && pwd` to compute absolute paths, because
1245 # the directories may not exist.
1246 case `pwd` in
1247 .) ac_abs_builddir="$ac_dir";;
1248 *)
1249   case "$ac_dir" in
1250   .) ac_abs_builddir=`pwd`;;
1251   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1252   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1253   esac;;
1254 esac
1255 case $ac_abs_builddir in
1256 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1257 *)
1258   case ${ac_top_builddir}. in
1259   .) ac_abs_top_builddir=$ac_abs_builddir;;
1260   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1261   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1262   esac;;
1263 esac
1264 case $ac_abs_builddir in
1265 .) ac_abs_srcdir=$ac_srcdir;;
1266 *)
1267   case $ac_srcdir in
1268   .) ac_abs_srcdir=$ac_abs_builddir;;
1269   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1270   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1271   esac;;
1272 esac
1273 case $ac_abs_builddir in
1274 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1275 *)
1276   case $ac_top_srcdir in
1277   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1278   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1279   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1280   esac;;
1281 esac
1282
1283     cd $ac_dir
1284     # Check for guested configure; otherwise get Cygnus style configure.
1285     if test -f $ac_srcdir/configure.gnu; then
1286       echo
1287       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1288     elif test -f $ac_srcdir/configure; then
1289       echo
1290       $SHELL $ac_srcdir/configure  --help=recursive
1291     elif test -f $ac_srcdir/configure.ac ||
1292            test -f $ac_srcdir/configure.in; then
1293       echo
1294       $ac_configure --help
1295     else
1296       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1297     fi
1298     cd "$ac_popdir"
1299   done
1300 fi
1301
1302 test -n "$ac_init_help" && exit 0
1303 if $ac_init_version; then
1304   cat <<\_ACEOF
1305 wxWidgets configure 2.7.0
1306 generated by GNU Autoconf 2.59
1307
1308 Copyright (C) 2003 Free Software Foundation, Inc.
1309 This configure script is free software; the Free Software Foundation
1310 gives unlimited permission to copy, distribute and modify it.
1311 _ACEOF
1312   exit 0
1313 fi
1314 exec 5>config.log
1315 cat >&5 <<_ACEOF
1316 This file contains any messages produced by compilers while
1317 running configure, to aid debugging if configure makes a mistake.
1318
1319 It was created by wxWidgets $as_me 2.7.0, which was
1320 generated by GNU Autoconf 2.59.  Invocation command line was
1321
1322   $ $0 $@
1323
1324 _ACEOF
1325 {
1326 cat <<_ASUNAME
1327 ## --------- ##
1328 ## Platform. ##
1329 ## --------- ##
1330
1331 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1332 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1333 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1334 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1335 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1336
1337 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1338 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1339
1340 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1341 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1342 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1343 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1344 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1345 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1346 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1347
1348 _ASUNAME
1349
1350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351 for as_dir in $PATH
1352 do
1353   IFS=$as_save_IFS
1354   test -z "$as_dir" && as_dir=.
1355   echo "PATH: $as_dir"
1356 done
1357
1358 } >&5
1359
1360 cat >&5 <<_ACEOF
1361
1362
1363 ## ----------- ##
1364 ## Core tests. ##
1365 ## ----------- ##
1366
1367 _ACEOF
1368
1369
1370 # Keep a trace of the command line.
1371 # Strip out --no-create and --no-recursion so they do not pile up.
1372 # Strip out --silent because we don't want to record it for future runs.
1373 # Also quote any args containing shell meta-characters.
1374 # Make two passes to allow for proper duplicate-argument suppression.
1375 ac_configure_args=
1376 ac_configure_args0=
1377 ac_configure_args1=
1378 ac_sep=
1379 ac_must_keep_next=false
1380 for ac_pass in 1 2
1381 do
1382   for ac_arg
1383   do
1384     case $ac_arg in
1385     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1386     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1387     | -silent | --silent | --silen | --sile | --sil)
1388       continue ;;
1389     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1390       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1391     esac
1392     case $ac_pass in
1393     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1394     2)
1395       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1396       if test $ac_must_keep_next = true; then
1397         ac_must_keep_next=false # Got value, back to normal.
1398       else
1399         case $ac_arg in
1400           *=* | --config-cache | -C | -disable-* | --disable-* \
1401           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1402           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1403           | -with-* | --with-* | -without-* | --without-* | --x)
1404             case "$ac_configure_args0 " in
1405               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1406             esac
1407             ;;
1408           -* ) ac_must_keep_next=true ;;
1409         esac
1410       fi
1411       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1412       # Get rid of the leading space.
1413       ac_sep=" "
1414       ;;
1415     esac
1416   done
1417 done
1418 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1419 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1420
1421 # When interrupted or exit'd, cleanup temporary files, and complete
1422 # config.log.  We remove comments because anyway the quotes in there
1423 # would cause problems or look ugly.
1424 # WARNING: Be sure not to use single quotes in there, as some shells,
1425 # such as our DU 5.0 friend, will then `close' the trap.
1426 trap 'exit_status=$?
1427   # Save into config.log some information that might help in debugging.
1428   {
1429     echo
1430
1431     cat <<\_ASBOX
1432 ## ---------------- ##
1433 ## Cache variables. ##
1434 ## ---------------- ##
1435 _ASBOX
1436     echo
1437     # The following way of writing the cache mishandles newlines in values,
1438 {
1439   (set) 2>&1 |
1440     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1441     *ac_space=\ *)
1442       sed -n \
1443         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1444           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1445       ;;
1446     *)
1447       sed -n \
1448         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1449       ;;
1450     esac;
1451 }
1452     echo
1453
1454     cat <<\_ASBOX
1455 ## ----------------- ##
1456 ## Output variables. ##
1457 ## ----------------- ##
1458 _ASBOX
1459     echo
1460     for ac_var in $ac_subst_vars
1461     do
1462       eval ac_val=$`echo $ac_var`
1463       echo "$ac_var='"'"'$ac_val'"'"'"
1464     done | sort
1465     echo
1466
1467     if test -n "$ac_subst_files"; then
1468       cat <<\_ASBOX
1469 ## ------------- ##
1470 ## Output files. ##
1471 ## ------------- ##
1472 _ASBOX
1473       echo
1474       for ac_var in $ac_subst_files
1475       do
1476         eval ac_val=$`echo $ac_var`
1477         echo "$ac_var='"'"'$ac_val'"'"'"
1478       done | sort
1479       echo
1480     fi
1481
1482     if test -s confdefs.h; then
1483       cat <<\_ASBOX
1484 ## ----------- ##
1485 ## confdefs.h. ##
1486 ## ----------- ##
1487 _ASBOX
1488       echo
1489       sed "/^$/d" confdefs.h | sort
1490       echo
1491     fi
1492     test "$ac_signal" != 0 &&
1493       echo "$as_me: caught signal $ac_signal"
1494     echo "$as_me: exit $exit_status"
1495   } >&5
1496   rm -f core *.core &&
1497   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1498     exit $exit_status
1499      ' 0
1500 for ac_signal in 1 2 13 15; do
1501   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1502 done
1503 ac_signal=0
1504
1505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1506 rm -rf conftest* confdefs.h
1507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1508 echo >confdefs.h
1509
1510 # Predefined preprocessor variables.
1511
1512 cat >>confdefs.h <<_ACEOF
1513 #define PACKAGE_NAME "$PACKAGE_NAME"
1514 _ACEOF
1515
1516
1517 cat >>confdefs.h <<_ACEOF
1518 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1519 _ACEOF
1520
1521
1522 cat >>confdefs.h <<_ACEOF
1523 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1524 _ACEOF
1525
1526
1527 cat >>confdefs.h <<_ACEOF
1528 #define PACKAGE_STRING "$PACKAGE_STRING"
1529 _ACEOF
1530
1531
1532 cat >>confdefs.h <<_ACEOF
1533 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1534 _ACEOF
1535
1536
1537 # Let the site file select an alternate cache file if it wants to.
1538 # Prefer explicitly selected file to automatically selected ones.
1539 if test -z "$CONFIG_SITE"; then
1540   if test "x$prefix" != xNONE; then
1541     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1542   else
1543     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1544   fi
1545 fi
1546 for ac_site_file in $CONFIG_SITE; do
1547   if test -r "$ac_site_file"; then
1548     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1549 echo "$as_me: loading site script $ac_site_file" >&6;}
1550     sed 's/^/| /' "$ac_site_file" >&5
1551     . "$ac_site_file"
1552   fi
1553 done
1554
1555 if test -r "$cache_file"; then
1556   # Some versions of bash will fail to source /dev/null (special
1557   # files actually), so we avoid doing that.
1558   if test -f "$cache_file"; then
1559     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1560 echo "$as_me: loading cache $cache_file" >&6;}
1561     case $cache_file in
1562       [\\/]* | ?:[\\/]* ) . $cache_file;;
1563       *)                      . ./$cache_file;;
1564     esac
1565   fi
1566 else
1567   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1568 echo "$as_me: creating cache $cache_file" >&6;}
1569   >$cache_file
1570 fi
1571
1572 # Check that the precious variables saved in the cache have kept the same
1573 # value.
1574 ac_cache_corrupted=false
1575 for ac_var in `(set) 2>&1 |
1576                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1577   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1578   eval ac_new_set=\$ac_env_${ac_var}_set
1579   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1580   eval ac_new_val="\$ac_env_${ac_var}_value"
1581   case $ac_old_set,$ac_new_set in
1582     set,)
1583       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1584 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1585       ac_cache_corrupted=: ;;
1586     ,set)
1587       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1588 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1589       ac_cache_corrupted=: ;;
1590     ,);;
1591     *)
1592       if test "x$ac_old_val" != "x$ac_new_val"; then
1593         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1594 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1595         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1596 echo "$as_me:   former value:  $ac_old_val" >&2;}
1597         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1598 echo "$as_me:   current value: $ac_new_val" >&2;}
1599         ac_cache_corrupted=:
1600       fi;;
1601   esac
1602   # Pass precious variables to config.status.
1603   if test "$ac_new_set" = set; then
1604     case $ac_new_val in
1605     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1606       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1607     *) ac_arg=$ac_var=$ac_new_val ;;
1608     esac
1609     case " $ac_configure_args " in
1610       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1611       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1612     esac
1613   fi
1614 done
1615 if $ac_cache_corrupted; then
1616   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1617 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1618   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1619 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1620    { (exit 1); exit 1; }; }
1621 fi
1622
1623 ac_ext=c
1624 ac_cpp='$CPP $CPPFLAGS'
1625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658 ac_aux_dir=
1659 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1660   if test -f $ac_dir/install-sh; then
1661     ac_aux_dir=$ac_dir
1662     ac_install_sh="$ac_aux_dir/install-sh -c"
1663     break
1664   elif test -f $ac_dir/install.sh; then
1665     ac_aux_dir=$ac_dir
1666     ac_install_sh="$ac_aux_dir/install.sh -c"
1667     break
1668   elif test -f $ac_dir/shtool; then
1669     ac_aux_dir=$ac_dir
1670     ac_install_sh="$ac_aux_dir/shtool install -c"
1671     break
1672   fi
1673 done
1674 if test -z "$ac_aux_dir"; then
1675   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1676 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1677    { (exit 1); exit 1; }; }
1678 fi
1679 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1680 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1681 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1682
1683 # Make sure we can run config.sub.
1684 $ac_config_sub sun4 >/dev/null 2>&1 ||
1685   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1686 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1687    { (exit 1); exit 1; }; }
1688
1689 echo "$as_me:$LINENO: checking build system type" >&5
1690 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1691 if test "${ac_cv_build+set}" = set; then
1692   echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694   ac_cv_build_alias=$build_alias
1695 test -z "$ac_cv_build_alias" &&
1696   ac_cv_build_alias=`$ac_config_guess`
1697 test -z "$ac_cv_build_alias" &&
1698   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1699 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1700    { (exit 1); exit 1; }; }
1701 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1702   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1703 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1704    { (exit 1); exit 1; }; }
1705
1706 fi
1707 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1708 echo "${ECHO_T}$ac_cv_build" >&6
1709 build=$ac_cv_build
1710 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1711 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1712 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1713
1714
1715 echo "$as_me:$LINENO: checking host system type" >&5
1716 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1717 if test "${ac_cv_host+set}" = set; then
1718   echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720   ac_cv_host_alias=$host_alias
1721 test -z "$ac_cv_host_alias" &&
1722   ac_cv_host_alias=$ac_cv_build_alias
1723 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1724   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1725 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1726    { (exit 1); exit 1; }; }
1727
1728 fi
1729 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1730 echo "${ECHO_T}$ac_cv_host" >&6
1731 host=$ac_cv_host
1732 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1733 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1734 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1735
1736
1737 echo "$as_me:$LINENO: checking target system type" >&5
1738 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1739 if test "${ac_cv_target+set}" = set; then
1740   echo $ECHO_N "(cached) $ECHO_C" >&6
1741 else
1742   ac_cv_target_alias=$target_alias
1743 test "x$ac_cv_target_alias" = "x" &&
1744   ac_cv_target_alias=$ac_cv_host_alias
1745 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1746   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1747 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1748    { (exit 1); exit 1; }; }
1749
1750 fi
1751 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1752 echo "${ECHO_T}$ac_cv_target" >&6
1753 target=$ac_cv_target
1754 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1755 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1756 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1757
1758
1759 # The aliases save the names the user supplied, while $host etc.
1760 # will get canonicalized.
1761 test -n "$target_alias" &&
1762   test "$program_prefix$program_suffix$program_transform_name" = \
1763     NONENONEs,x,x, &&
1764   program_prefix=${target_alias}-
1765
1766
1767
1768 wx_major_version_number=2
1769 wx_minor_version_number=7
1770 wx_release_number=0
1771 wx_subrelease_number=0
1772
1773 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1774 WX_VERSION=$WX_RELEASE.$wx_release_number
1775 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1776
1777 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1778
1779
1780
1781
1782 USE_UNIX=1
1783 USE_OS2=0
1784 USE_WIN32=0
1785 USE_DOS=0
1786 USE_BEOS=0
1787 USE_MAC=0
1788
1789 USE_AIX=
1790 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1791 USE_GNU=                            USE_HPUX=
1792 USE_LINUX=
1793 USE_NETBSD=
1794 USE_OPENBSD=
1795 USE_OSF=                            USE_SGI=
1796 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1797 USE_ULTRIX=
1798 USE_UNIXWARE=
1799
1800 USE_ALPHA=
1801
1802 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1803
1804 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1805
1806 DEFAULT_wxUSE_COCOA=0
1807 DEFAULT_wxUSE_GTK=0
1808 DEFAULT_wxUSE_MAC=0
1809 DEFAULT_wxUSE_MGL=0
1810 DEFAULT_wxUSE_MICROWIN=0
1811 DEFAULT_wxUSE_MOTIF=0
1812 DEFAULT_wxUSE_MSW=0
1813 DEFAULT_wxUSE_PM=0
1814 DEFAULT_wxUSE_X11=0
1815
1816 DEFAULT_DEFAULT_wxUSE_COCOA=0
1817 DEFAULT_DEFAULT_wxUSE_GTK=0
1818 DEFAULT_DEFAULT_wxUSE_MAC=0
1819 DEFAULT_DEFAULT_wxUSE_MGL=0
1820 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1821 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1822 DEFAULT_DEFAULT_wxUSE_MSW=0
1823 DEFAULT_DEFAULT_wxUSE_PM=0
1824 DEFAULT_DEFAULT_wxUSE_X11=0
1825
1826 PROGRAM_EXT=
1827 SO_SUFFIX=so
1828 SAMPLES_RPATH_FLAG=
1829 SAMPLES_RPATH_POSTLINK=
1830
1831 DEFAULT_STD_FLAG=yes
1832
1833 case "${host}" in
1834   *-hp-hpux* )
1835     USE_HPUX=1
1836     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1837     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1838     SO_SUFFIX=sl
1839     cat >>confdefs.h <<\_ACEOF
1840 #define __HPUX__ 1
1841 _ACEOF
1842
1843
1844             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
1845   ;;
1846   *-*-linux* )
1847     USE_LINUX=1
1848     cat >>confdefs.h <<\_ACEOF
1849 #define __LINUX__ 1
1850 _ACEOF
1851
1852     TMP=`uname -m`
1853     if test "x$TMP" = "xalpha"; then
1854       USE_ALPHA=1
1855       cat >>confdefs.h <<\_ACEOF
1856 #define __ALPHA__ 1
1857 _ACEOF
1858
1859     fi
1860     DEFAULT_DEFAULT_wxUSE_GTK=1
1861   ;;
1862   *-*-gnu* | *-*-k*bsd*-gnu )
1863     USE_GNU=1
1864     TMP=`uname -m`
1865     if test "x$TMP" = "xalpha"; then
1866       USE_ALPHA=1
1867       cat >>confdefs.h <<\_ACEOF
1868 #define __ALPHA__ 1
1869 _ACEOF
1870
1871     fi
1872     DEFAULT_DEFAULT_wxUSE_GTK=1
1873   ;;
1874   *-*-irix5* | *-*-irix6* )
1875     USE_SGI=1
1876     USE_SVR4=1
1877     cat >>confdefs.h <<\_ACEOF
1878 #define __SGI__ 1
1879 _ACEOF
1880
1881     cat >>confdefs.h <<\_ACEOF
1882 #define __SVR4__ 1
1883 _ACEOF
1884
1885     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1886   ;;
1887   *-*-solaris2* )
1888     USE_SUN=1
1889     USE_SOLARIS=1
1890     USE_SVR4=1
1891     cat >>confdefs.h <<\_ACEOF
1892 #define __SUN__ 1
1893 _ACEOF
1894
1895     cat >>confdefs.h <<\_ACEOF
1896 #define __SOLARIS__ 1
1897 _ACEOF
1898
1899     cat >>confdefs.h <<\_ACEOF
1900 #define __SVR4__ 1
1901 _ACEOF
1902
1903     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1904     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1905   ;;
1906   *-*-sunos4* )
1907     USE_SUN=1
1908     USE_SUNOS=1
1909     USE_BSD=1
1910     cat >>confdefs.h <<\_ACEOF
1911 #define __SUN__ 1
1912 _ACEOF
1913
1914     cat >>confdefs.h <<\_ACEOF
1915 #define __SUNOS__ 1
1916 _ACEOF
1917
1918     cat >>confdefs.h <<\_ACEOF
1919 #define __BSD__ 1
1920 _ACEOF
1921
1922     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1923   ;;
1924   *-*-freebsd*)
1925     USE_BSD=1
1926     USE_FREEBSD=1
1927     cat >>confdefs.h <<\_ACEOF
1928 #define __FREEBSD__ 1
1929 _ACEOF
1930
1931     cat >>confdefs.h <<\_ACEOF
1932 #define __BSD__ 1
1933 _ACEOF
1934
1935     DEFAULT_DEFAULT_wxUSE_GTK=1
1936   ;;
1937   *-*-openbsd*|*-*-mirbsd*)
1938     USE_BSD=1
1939     USE_OPENBSD=1
1940     cat >>confdefs.h <<\_ACEOF
1941 #define __OPENBSD__ 1
1942 _ACEOF
1943
1944     cat >>confdefs.h <<\_ACEOF
1945 #define __BSD__ 1
1946 _ACEOF
1947
1948     DEFAULT_DEFAULT_wxUSE_GTK=1
1949   ;;
1950   *-*-netbsd*)
1951     USE_BSD=1
1952     USE_NETBSD=1
1953     cat >>confdefs.h <<\_ACEOF
1954 #define __NETBSD__ 1
1955 _ACEOF
1956
1957     cat >>confdefs.h <<\_ACEOF
1958 #define __BSD__ 1
1959 _ACEOF
1960
1961     DEFAULT_DEFAULT_wxUSE_GTK=1
1962     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1963
1964             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
1965   ;;
1966   *-*-osf* )
1967     USE_ALPHA=1
1968     USE_OSF=1
1969     cat >>confdefs.h <<\_ACEOF
1970 #define __ALPHA__ 1
1971 _ACEOF
1972
1973     cat >>confdefs.h <<\_ACEOF
1974 #define __OSF__ 1
1975 _ACEOF
1976
1977     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1978     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1979   ;;
1980   *-*-dgux5* )
1981     USE_ALPHA=1
1982     USE_SVR4=1
1983     cat >>confdefs.h <<\_ACEOF
1984 #define __ALPHA__ 1
1985 _ACEOF
1986
1987     cat >>confdefs.h <<\_ACEOF
1988 #define __SVR4__ 1
1989 _ACEOF
1990
1991     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1992   ;;
1993   *-*-sysv5* )
1994     USE_SYSV=1
1995     USE_SVR4=1
1996     cat >>confdefs.h <<\_ACEOF
1997 #define __SYSV__ 1
1998 _ACEOF
1999
2000     cat >>confdefs.h <<\_ACEOF
2001 #define __SVR4__ 1
2002 _ACEOF
2003
2004     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2005   ;;
2006   *-*-aix* )
2007     USE_AIX=1
2008     USE_SYSV=1
2009     USE_SVR4=1
2010                         SO_SUFFIX=a
2011     cat >>confdefs.h <<\_ACEOF
2012 #define __AIX__ 1
2013 _ACEOF
2014
2015     cat >>confdefs.h <<\_ACEOF
2016 #define __SYSV__ 1
2017 _ACEOF
2018
2019     cat >>confdefs.h <<\_ACEOF
2020 #define __SVR4__ 1
2021 _ACEOF
2022
2023     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2024   ;;
2025
2026   *-*-*UnixWare*)
2027     USE_SYSV=1
2028     USE_SVR4=1
2029     USE_UNIXWARE=1
2030     cat >>confdefs.h <<\_ACEOF
2031 #define __UNIXWARE__ 1
2032 _ACEOF
2033
2034   ;;
2035
2036   *-*-cygwin* | *-*-mingw32* )
2037                 SO_SUFFIX=dll
2038     PROGRAM_EXT=".exe"
2039     DEFAULT_DEFAULT_wxUSE_MSW=1
2040     DEFAULT_STD_FLAG=no
2041   ;;
2042
2043   *-pc-msdosdjgpp )
2044     USE_UNIX=0
2045     USE_DOS=1
2046     cat >>confdefs.h <<\_ACEOF
2047 #define __DOS__ 1
2048 _ACEOF
2049
2050     PROGRAM_EXT=".exe"
2051     DEFAULT_DEFAULT_wxUSE_MGL=1
2052   ;;
2053
2054   *-pc-os2_emx | *-pc-os2-emx )
2055     cat >>confdefs.h <<\_ACEOF
2056 #define __EMX__ 1
2057 _ACEOF
2058
2059     USE_OS2=1
2060     cat >>confdefs.h <<\_ACEOF
2061 #define __OS2__ 1
2062 _ACEOF
2063
2064     PROGRAM_EXT=".exe"
2065     DEFAULT_DEFAULT_wxUSE_PM=1
2066         CXX=gcc
2067     LDFLAGS="$LDFLAGS -Zcrtdll"
2068                         ac_executable_extensions=".exe"
2069     export ac_executable_extensions
2070             ac_save_IFS="$IFS"
2071     IFS='\\'
2072     ac_TEMP_PATH=
2073     for ac_dir in $PATH; do
2074       IFS=$ac_save_IFS
2075       if test -z "$ac_TEMP_PATH"; then
2076         ac_TEMP_PATH="$ac_dir"
2077       else
2078         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2079       fi
2080     done
2081     export PATH="$ac_TEMP_PATH"
2082     unset ac_TEMP_PATH
2083     DEFAULT_STD_FLAG=no
2084   ;;
2085
2086   *-*-darwin* )
2087         USE_BSD=1
2088     USE_DARWIN=1
2089     SO_SUFFIX=dylib
2090     cat >>confdefs.h <<\_ACEOF
2091 #define __BSD__ 1
2092 _ACEOF
2093
2094     cat >>confdefs.h <<\_ACEOF
2095 #define __DARWIN__ 1
2096 _ACEOF
2097
2098     cat >>confdefs.h <<\_ACEOF
2099 #define TARGET_CARBON 1
2100 _ACEOF
2101
2102     DEFAULT_DEFAULT_wxUSE_MAC=1
2103     DEFAULT_STD_FLAG=no
2104   ;;
2105   powerpc-apple-macos* )
2106         USE_UNIX=0
2107             ac_cv_c_bigendian=yes
2108     SO_SUFFIX=shlib
2109             DEFAULT_DEFAULT_wxUSE_MAC=1
2110     DEFAULT_STD_FLAG=no
2111   ;;
2112
2113   *-*-beos* )
2114         USE_BEOS=1
2115     cat >>confdefs.h <<\_ACEOF
2116 #define __BEOS__ 1
2117 _ACEOF
2118
2119   ;;
2120
2121   *)
2122     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2123 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2124     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2125 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2126
2127     DEFAULT_DEFAULT_wxUSE_X11=1
2128     DEFAULT_wxUSE_SHARED=no
2129 esac
2130
2131
2132
2133
2134           wx_arg_cache_file="configarg.cache"
2135           echo "loading argument cache $wx_arg_cache_file"
2136           rm -f ${wx_arg_cache_file}.tmp
2137           touch ${wx_arg_cache_file}.tmp
2138           touch ${wx_arg_cache_file}
2139
2140
2141 DEBUG_CONFIGURE=0
2142 if test $DEBUG_CONFIGURE = 1; then
2143   DEFAULT_wxUSE_UNIVERSAL=no
2144   DEFAULT_wxUSE_STL=no
2145
2146   DEFAULT_wxUSE_NANOX=no
2147
2148   DEFAULT_wxUSE_THREADS=yes
2149
2150   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2151   DEFAULT_wxUSE_OPTIMISE=no
2152   DEFAULT_wxUSE_PROFILE=no
2153   DEFAULT_wxUSE_NO_DEPS=no
2154   DEFAULT_wxUSE_NO_RTTI=no
2155   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2156   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2157   DEFAULT_wxUSE_RPATH=yes
2158   DEFAULT_wxUSE_PERMISSIVE=no
2159   DEFAULT_wxUSE_DEBUG_FLAG=yes
2160   DEFAULT_wxUSE_DEBUG_INFO=yes
2161   DEFAULT_wxUSE_DEBUG_GDB=yes
2162   DEFAULT_wxUSE_MEM_TRACING=no
2163   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2164   DEFAULT_wxUSE_DMALLOC=no
2165   DEFAULT_wxUSE_APPLE_IEEE=no
2166
2167   DEFAULT_wxUSE_EXCEPTIONS=no
2168   DEFAULT_wxUSE_LOG=yes
2169   DEFAULT_wxUSE_LOGWINDOW=no
2170   DEFAULT_wxUSE_LOGGUI=no
2171   DEFAULT_wxUSE_LOGDIALOG=no
2172
2173   DEFAULT_wxUSE_GUI=yes
2174   DEFAULT_wxUSE_CONTROLS=no
2175
2176   DEFAULT_wxUSE_REGEX=no
2177   DEFAULT_wxUSE_XML=no
2178   DEFAULT_wxUSE_EXPAT=no
2179   DEFAULT_wxUSE_ZLIB=no
2180   DEFAULT_wxUSE_LIBPNG=no
2181   DEFAULT_wxUSE_LIBJPEG=no
2182   DEFAULT_wxUSE_LIBTIFF=no
2183   DEFAULT_wxUSE_LIBXPM=no
2184   DEFAULT_wxUSE_LIBMSPACK=no
2185   DEFAULT_wxUSE_LIBSDL=no
2186   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2187   DEFAULT_wxUSE_LIBGNOMEVFS=no
2188   DEFAULT_wxUSE_LIBHILDON=no
2189   DEFAULT_wxUSE_ODBC=no
2190   DEFAULT_wxUSE_OPENGL=no
2191
2192   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2193   DEFAULT_wxUSE_STACKWALKER=no
2194   DEFAULT_wxUSE_DEBUGREPORT=no
2195   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2196   DEFAULT_wxUSE_STD_IOSTREAM=no
2197   DEFAULT_wxUSE_STD_STRING=no
2198   DEFAULT_wxUSE_CMDLINE_PARSER=no
2199   DEFAULT_wxUSE_DATETIME=no
2200   DEFAULT_wxUSE_TIMER=no
2201   DEFAULT_wxUSE_STOPWATCH=no
2202   DEFAULT_wxUSE_FILE=no
2203   DEFAULT_wxUSE_FFILE=no
2204   DEFAULT_wxUSE_STDPATHS=no
2205   DEFAULT_wxUSE_TEXTBUFFER=no
2206   DEFAULT_wxUSE_TEXTFILE=no
2207   DEFAULT_wxUSE_SOUND=no
2208   DEFAULT_wxUSE_MEDIACTRL=no
2209   DEFAULT_wxUSE_GSTREAMER8=no
2210   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2211   DEFAULT_wxUSE_INTL=no
2212   DEFAULT_wxUSE_CONFIG=no
2213   DEFAULT_wxUSE_FONTMAP=no
2214   DEFAULT_wxUSE_STREAMS=no
2215   DEFAULT_wxUSE_SOCKETS=no
2216   DEFAULT_wxUSE_OLE=no
2217   DEFAULT_wxUSE_DATAOBJ=no
2218   DEFAULT_wxUSE_DIALUP_MANAGER=no
2219   DEFAULT_wxUSE_JOYSTICK=no
2220   DEFAULT_wxUSE_DYNLIB_CLASS=no
2221   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2222   DEFAULT_wxUSE_LONGLONG=no
2223   DEFAULT_wxUSE_GEOMETRY=no
2224
2225   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2226   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2227   DEFAULT_wxUSE_POSTSCRIPT=no
2228
2229   DEFAULT_wxUSE_CLIPBOARD=no
2230   DEFAULT_wxUSE_TOOLTIPS=no
2231   DEFAULT_wxUSE_DRAG_AND_DROP=no
2232   DEFAULT_wxUSE_DRAGIMAGE=no
2233   DEFAULT_wxUSE_SPLINES=no
2234   DEFAULT_wxUSE_MOUSEWHEEL=no
2235
2236   DEFAULT_wxUSE_MDI=no
2237   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2238   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2239   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2240
2241   DEFAULT_wxUSE_RESOURCES=no
2242   DEFAULT_wxUSE_CONSTRAINTS=no
2243   DEFAULT_wxUSE_IPC=no
2244   DEFAULT_wxUSE_HELP=no
2245   DEFAULT_wxUSE_MS_HTML_HELP=no
2246   DEFAULT_wxUSE_WXHTML_HELP=no
2247   DEFAULT_wxUSE_TREELAYOUT=no
2248   DEFAULT_wxUSE_METAFILE=no
2249   DEFAULT_wxUSE_MIMETYPE=no
2250   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2251   DEFAULT_wxUSE_PROTOCOL=no
2252   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2253   DEFAULT_wxUSE_PROTOCOL_FTP=no
2254   DEFAULT_wxUSE_PROTOCOL_FILE=no
2255   DEFAULT_wxUSE_URL=no
2256
2257   DEFAULT_wxUSE_COMMONDLGS=no
2258   DEFAULT_wxUSE_CHOICEDLG=no
2259   DEFAULT_wxUSE_COLOURDLG=no
2260   DEFAULT_wxUSE_DIRDLG=no
2261   DEFAULT_wxUSE_FILEDLG=no
2262   DEFAULT_wxUSE_FINDREPLDLG=no
2263   DEFAULT_wxUSE_FONTDLG=no
2264   DEFAULT_wxUSE_MSGDLG=no
2265   DEFAULT_wxUSE_NUMBERDLG=no
2266   DEFAULT_wxUSE_TEXTDLG=no
2267   DEFAULT_wxUSE_SPLASH=no
2268   DEFAULT_wxUSE_STARTUP_TIPS=no
2269   DEFAULT_wxUSE_PROGRESSDLG=no
2270   DEFAULT_wxUSE_WIZARDDLG=no
2271
2272   DEFAULT_wxUSE_MENUS=no
2273   DEFAULT_wxUSE_MINIFRAME=no
2274   DEFAULT_wxUSE_HTML=no
2275   DEFAULT_wxUSE_RICHTEXT=no
2276   DEFAULT_wxUSE_XRC=no
2277   DEFAULT_wxUSE_AUI=no
2278   DEFAULT_wxUSE_WEBKIT=no
2279   DEFAULT_wxUSE_FILESYSTEM=no
2280   DEFAULT_wxUSE_FS_INET=no
2281   DEFAULT_wxUSE_FS_ZIP=no
2282   DEFAULT_wxUSE_BUSYINFO=no
2283   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2284   DEFAULT_wxUSE_ZIPSTREAM=no
2285   DEFAULT_wxUSE_VALIDATORS=no
2286
2287   DEFAULT_wxUSE_ACCEL=no
2288   DEFAULT_wxUSE_BUTTON=no
2289   DEFAULT_wxUSE_BMPBUTTON=no
2290   DEFAULT_wxUSE_CALCTRL=no
2291   DEFAULT_wxUSE_CARET=no
2292   DEFAULT_wxUSE_CHECKBOX=no
2293   DEFAULT_wxUSE_CHECKLST=no
2294   DEFAULT_wxUSE_CHOICE=no
2295   DEFAULT_wxUSE_CHOICEBOOK=no
2296   DEFAULT_wxUSE_COLOURPICKERCTRL=no
2297   DEFAULT_wxUSE_COMBOBOX=no
2298   DEFAULT_wxUSE_COMBOCTRL=no
2299   DEFAULT_wxUSE_DATEPICKCTRL=no
2300   DEFAULT_wxUSE_DISPLAY=no
2301   DEFAULT_wxUSE_DIRPICKERCTRL=no
2302   DEFAULT_wxUSE_FILEPICKERCTRL=no
2303   DEFAULT_wxUSE_FONTPICKERCTRL=no
2304   DEFAULT_wxUSE_GAUGE=no
2305   DEFAULT_wxUSE_GRID=no
2306   DEFAULT_wxUSE_HYPERLINKCTRL=no
2307   DEFAULT_wxUSE_DATAVIEWCTRL=no
2308   DEFAULT_wxUSE_IMAGLIST=no
2309   DEFAULT_wxUSE_LISTBOOK=no
2310   DEFAULT_wxUSE_LISTBOX=no
2311   DEFAULT_wxUSE_LISTCTRL=no
2312   DEFAULT_wxUSE_NOTEBOOK=no
2313   DEFAULT_wxUSE_ODCOMBOBOX=no
2314   DEFAULT_wxUSE_RADIOBOX=no
2315   DEFAULT_wxUSE_RADIOBTN=no
2316   DEFAULT_wxUSE_SASH=no
2317   DEFAULT_wxUSE_SCROLLBAR=no
2318   DEFAULT_wxUSE_SLIDER=no
2319   DEFAULT_wxUSE_SPINBTN=no
2320   DEFAULT_wxUSE_SPINCTRL=no
2321   DEFAULT_wxUSE_SPLITTER=no
2322   DEFAULT_wxUSE_STATBMP=no
2323   DEFAULT_wxUSE_STATBOX=no
2324   DEFAULT_wxUSE_STATLINE=no
2325   DEFAULT_wxUSE_STATTEXT=no
2326   DEFAULT_wxUSE_STATUSBAR=yes
2327   DEFAULT_wxUSE_TAB_DIALOG=no
2328   DEFAULT_wxUSE_TEXTCTRL=no
2329   DEFAULT_wxUSE_TOGGLEBTN=no
2330   DEFAULT_wxUSE_TOOLBAR=no
2331   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2332   DEFAULT_wxUSE_TREEBOOK=no
2333   DEFAULT_wxUSE_TOOLBOOK=no
2334   DEFAULT_wxUSE_TREECTRL=no
2335   DEFAULT_wxUSE_POPUPWIN=no
2336   DEFAULT_wxUSE_TIPWINDOW=no
2337
2338   DEFAULT_wxUSE_UNICODE=no
2339   DEFAULT_wxUSE_UNICODE_MSLU=no
2340   DEFAULT_wxUSE_WCSRTOMBS=no
2341
2342   DEFAULT_wxUSE_PALETTE=no
2343   DEFAULT_wxUSE_IMAGE=no
2344   DEFAULT_wxUSE_GIF=no
2345   DEFAULT_wxUSE_PCX=no
2346   DEFAULT_wxUSE_PNM=no
2347   DEFAULT_wxUSE_IFF=no
2348   DEFAULT_wxUSE_XPM=no
2349   DEFAULT_wxUSE_ICO_CUR=no
2350   DEFAULT_wxUSE_ACCESSIBILITY=no
2351
2352   DEFAULT_wxUSE_MONOLITHIC=no
2353   DEFAULT_wxUSE_PLUGINS=no
2354   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2355 else
2356   DEFAULT_wxUSE_UNIVERSAL=no
2357   DEFAULT_wxUSE_STL=no
2358
2359   DEFAULT_wxUSE_NANOX=no
2360
2361   DEFAULT_wxUSE_THREADS=yes
2362
2363   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2364   DEFAULT_wxUSE_OPTIMISE=yes
2365   DEFAULT_wxUSE_PROFILE=no
2366   DEFAULT_wxUSE_NO_DEPS=no
2367   DEFAULT_wxUSE_NO_RTTI=no
2368   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2369   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2370   DEFAULT_wxUSE_RPATH=yes
2371   DEFAULT_wxUSE_PERMISSIVE=no
2372   DEFAULT_wxUSE_DEBUG_FLAG=no
2373   DEFAULT_wxUSE_DEBUG_INFO=no
2374   DEFAULT_wxUSE_DEBUG_GDB=no
2375   DEFAULT_wxUSE_MEM_TRACING=no
2376   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2377   DEFAULT_wxUSE_DMALLOC=no
2378   DEFAULT_wxUSE_APPLE_IEEE=yes
2379
2380   DEFAULT_wxUSE_EXCEPTIONS=yes
2381   DEFAULT_wxUSE_LOG=yes
2382   DEFAULT_wxUSE_LOGWINDOW=yes
2383   DEFAULT_wxUSE_LOGGUI=yes
2384   DEFAULT_wxUSE_LOGDIALOG=yes
2385
2386   DEFAULT_wxUSE_GUI=yes
2387
2388   DEFAULT_wxUSE_REGEX=yes
2389   DEFAULT_wxUSE_XML=yes
2390   DEFAULT_wxUSE_EXPAT=yes
2391   DEFAULT_wxUSE_ZLIB=yes
2392   DEFAULT_wxUSE_LIBPNG=yes
2393   DEFAULT_wxUSE_LIBJPEG=yes
2394   DEFAULT_wxUSE_LIBTIFF=yes
2395   DEFAULT_wxUSE_LIBXPM=yes
2396   DEFAULT_wxUSE_LIBMSPACK=yes
2397   DEFAULT_wxUSE_LIBSDL=no
2398   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2399   DEFAULT_wxUSE_LIBGNOMEVFS=no
2400   DEFAULT_wxUSE_LIBHILDON=no
2401   DEFAULT_wxUSE_ODBC=no
2402   DEFAULT_wxUSE_OPENGL=no
2403
2404   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2405   DEFAULT_wxUSE_STACKWALKER=yes
2406   DEFAULT_wxUSE_DEBUGREPORT=yes
2407   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2408   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2409   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2410   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2411   DEFAULT_wxUSE_DATETIME=yes
2412   DEFAULT_wxUSE_TIMER=yes
2413   DEFAULT_wxUSE_STOPWATCH=yes
2414   DEFAULT_wxUSE_FILE=yes
2415   DEFAULT_wxUSE_FFILE=yes
2416   DEFAULT_wxUSE_STDPATHS=yes
2417   DEFAULT_wxUSE_TEXTBUFFER=yes
2418   DEFAULT_wxUSE_TEXTFILE=yes
2419   DEFAULT_wxUSE_SOUND=yes
2420   DEFAULT_wxUSE_MEDIACTRL=no
2421   DEFAULT_wxUSE_GSTREAMER8=no
2422   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2423   DEFAULT_wxUSE_INTL=yes
2424   DEFAULT_wxUSE_CONFIG=yes
2425   DEFAULT_wxUSE_FONTMAP=yes
2426   DEFAULT_wxUSE_STREAMS=yes
2427   DEFAULT_wxUSE_SOCKETS=yes
2428   DEFAULT_wxUSE_OLE=yes
2429   DEFAULT_wxUSE_DATAOBJ=yes
2430   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2431   DEFAULT_wxUSE_JOYSTICK=yes
2432   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2433   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2434   DEFAULT_wxUSE_LONGLONG=yes
2435   DEFAULT_wxUSE_GEOMETRY=yes
2436
2437   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2438   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2439   DEFAULT_wxUSE_POSTSCRIPT=yes
2440
2441   DEFAULT_wxUSE_CLIPBOARD=yes
2442   DEFAULT_wxUSE_TOOLTIPS=yes
2443   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2444   DEFAULT_wxUSE_DRAGIMAGE=yes
2445   DEFAULT_wxUSE_SPLINES=yes
2446   DEFAULT_wxUSE_MOUSEWHEEL=yes
2447
2448   DEFAULT_wxUSE_MDI=yes
2449   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2450   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2451   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2452
2453   DEFAULT_wxUSE_RESOURCES=no
2454   DEFAULT_wxUSE_CONSTRAINTS=yes
2455   DEFAULT_wxUSE_IPC=yes
2456   DEFAULT_wxUSE_HELP=yes
2457   DEFAULT_wxUSE_MS_HTML_HELP=yes
2458   DEFAULT_wxUSE_WXHTML_HELP=yes
2459   DEFAULT_wxUSE_TREELAYOUT=yes
2460   DEFAULT_wxUSE_METAFILE=yes
2461   DEFAULT_wxUSE_MIMETYPE=yes
2462   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2463   DEFAULT_wxUSE_PROTOCOL=yes
2464   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2465   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2466   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2467   DEFAULT_wxUSE_URL=yes
2468
2469   DEFAULT_wxUSE_COMMONDLGS=yes
2470   DEFAULT_wxUSE_CHOICEDLG=yes
2471   DEFAULT_wxUSE_COLOURDLG=yes
2472   DEFAULT_wxUSE_DIRDLG=yes
2473   DEFAULT_wxUSE_FILEDLG=yes
2474   DEFAULT_wxUSE_FINDREPLDLG=yes
2475   DEFAULT_wxUSE_FONTDLG=yes
2476   DEFAULT_wxUSE_MSGDLG=yes
2477   DEFAULT_wxUSE_NUMBERDLG=yes
2478   DEFAULT_wxUSE_TEXTDLG=yes
2479   DEFAULT_wxUSE_SPLASH=yes
2480   DEFAULT_wxUSE_STARTUP_TIPS=yes
2481   DEFAULT_wxUSE_PROGRESSDLG=yes
2482   DEFAULT_wxUSE_WIZARDDLG=yes
2483
2484   DEFAULT_wxUSE_MENUS=yes
2485   DEFAULT_wxUSE_MINIFRAME=yes
2486   DEFAULT_wxUSE_HTML=yes
2487   DEFAULT_wxUSE_RICHTEXT=yes
2488   DEFAULT_wxUSE_XRC=yes
2489   DEFAULT_wxUSE_AUI=yes
2490   DEFAULT_wxUSE_WEBKIT=yes
2491   DEFAULT_wxUSE_FILESYSTEM=yes
2492   DEFAULT_wxUSE_FS_INET=yes
2493   DEFAULT_wxUSE_FS_ZIP=yes
2494   DEFAULT_wxUSE_BUSYINFO=yes
2495   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2496   DEFAULT_wxUSE_ZIPSTREAM=yes
2497   DEFAULT_wxUSE_VALIDATORS=yes
2498
2499   DEFAULT_wxUSE_ACCEL=yes
2500   DEFAULT_wxUSE_BUTTON=yes
2501   DEFAULT_wxUSE_BMPBUTTON=yes
2502   DEFAULT_wxUSE_CALCTRL=yes
2503   DEFAULT_wxUSE_CARET=yes
2504   DEFAULT_wxUSE_CHECKBOX=yes
2505   DEFAULT_wxUSE_CHECKLST=yes
2506   DEFAULT_wxUSE_CHOICE=yes
2507   DEFAULT_wxUSE_CHOICEBOOK=yes
2508   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
2509   DEFAULT_wxUSE_COMBOBOX=yes
2510   DEFAULT_wxUSE_COMBOCTRL=yes
2511   DEFAULT_wxUSE_DATEPICKCTRL=yes
2512   DEFAULT_wxUSE_DISPLAY=yes
2513   DEFAULT_wxUSE_DIRPICKERCTRL=yes
2514   DEFAULT_wxUSE_FILEPICKERCTRL=yes
2515   DEFAULT_wxUSE_FONTPICKERCTRL=yes
2516   DEFAULT_wxUSE_GAUGE=yes
2517   DEFAULT_wxUSE_GRID=yes
2518   DEFAULT_wxUSE_HYPERLINKCTRL=yes
2519   DEFAULT_wxUSE_DATAVIEWCTRL=no
2520   DEFAULT_wxUSE_IMAGLIST=yes
2521   DEFAULT_wxUSE_LISTBOOK=yes
2522   DEFAULT_wxUSE_LISTBOX=yes
2523   DEFAULT_wxUSE_LISTCTRL=yes
2524   DEFAULT_wxUSE_NOTEBOOK=yes
2525   DEFAULT_wxUSE_ODCOMBOBOX=yes
2526   DEFAULT_wxUSE_RADIOBOX=yes
2527   DEFAULT_wxUSE_RADIOBTN=yes
2528   DEFAULT_wxUSE_SASH=yes
2529   DEFAULT_wxUSE_SCROLLBAR=yes
2530   DEFAULT_wxUSE_SLIDER=yes
2531   DEFAULT_wxUSE_SPINBTN=yes
2532   DEFAULT_wxUSE_SPINCTRL=yes
2533   DEFAULT_wxUSE_SPLITTER=yes
2534   DEFAULT_wxUSE_STATBMP=yes
2535   DEFAULT_wxUSE_STATBOX=yes
2536   DEFAULT_wxUSE_STATLINE=yes
2537   DEFAULT_wxUSE_STATTEXT=yes
2538   DEFAULT_wxUSE_STATUSBAR=yes
2539   DEFAULT_wxUSE_TAB_DIALOG=no
2540   DEFAULT_wxUSE_TEXTCTRL=yes
2541   DEFAULT_wxUSE_TOGGLEBTN=yes
2542   DEFAULT_wxUSE_TOOLBAR=yes
2543   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2544   DEFAULT_wxUSE_TREEBOOK=yes
2545   DEFAULT_wxUSE_TOOLBOOK=yes
2546   DEFAULT_wxUSE_TREECTRL=yes
2547   DEFAULT_wxUSE_POPUPWIN=yes
2548   DEFAULT_wxUSE_TIPWINDOW=yes
2549
2550   DEFAULT_wxUSE_UNICODE=no
2551   DEFAULT_wxUSE_UNICODE_MSLU=yes
2552   DEFAULT_wxUSE_WCSRTOMBS=no
2553
2554   DEFAULT_wxUSE_PALETTE=yes
2555   DEFAULT_wxUSE_IMAGE=yes
2556   DEFAULT_wxUSE_GIF=yes
2557   DEFAULT_wxUSE_PCX=yes
2558   DEFAULT_wxUSE_IFF=no
2559   DEFAULT_wxUSE_PNM=yes
2560   DEFAULT_wxUSE_XPM=yes
2561   DEFAULT_wxUSE_ICO_CUR=yes
2562   DEFAULT_wxUSE_ACCESSIBILITY=no
2563
2564   DEFAULT_wxUSE_MONOLITHIC=no
2565   DEFAULT_wxUSE_PLUGINS=no
2566   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2567
2568     DEFAULT_wxUSE_GTK2=yes
2569 fi
2570
2571
2572
2573
2574 for toolkit in `echo $ALL_TOOLKITS`; do
2575   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2576   if test "x$LINE" != "x" ; then
2577     has_toolkit_in_cache=1
2578     eval "DEFAULT_$LINE"
2579     eval "CACHE_$toolkit=1"
2580
2581     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2582     if test "x$LINE" != "x" ; then
2583         eval "DEFAULT_$LINE"
2584     fi
2585   fi
2586 done
2587
2588
2589
2590           enablestring=
2591           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2592 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2593           no_cache=0
2594           # Check whether --enable-gui or --disable-gui was given.
2595 if test "${enable_gui+set}" = set; then
2596   enableval="$enable_gui"
2597
2598                           if test "$enableval" = yes; then
2599                             ac_cv_use_gui='wxUSE_GUI=yes'
2600                           else
2601                             ac_cv_use_gui='wxUSE_GUI=no'
2602                           fi
2603
2604 else
2605
2606                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2607                           if test "x$LINE" != x ; then
2608                             eval "DEFAULT_$LINE"
2609                           else
2610                             no_cache=1
2611                           fi
2612
2613                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2614
2615 fi;
2616
2617           eval "$ac_cv_use_gui"
2618           if test "$no_cache" != 1; then
2619             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2620           fi
2621
2622           if test "$wxUSE_GUI" = yes; then
2623             echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6
2625           else
2626             echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6
2628           fi
2629
2630
2631           enablestring=
2632           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2633 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2634           no_cache=0
2635           # Check whether --enable-monolithic or --disable-monolithic was given.
2636 if test "${enable_monolithic+set}" = set; then
2637   enableval="$enable_monolithic"
2638
2639                           if test "$enableval" = yes; then
2640                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2641                           else
2642                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2643                           fi
2644
2645 else
2646
2647                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2648                           if test "x$LINE" != x ; then
2649                             eval "DEFAULT_$LINE"
2650                           else
2651                             no_cache=1
2652                           fi
2653
2654                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2655
2656 fi;
2657
2658           eval "$ac_cv_use_monolithic"
2659           if test "$no_cache" != 1; then
2660             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2661           fi
2662
2663           if test "$wxUSE_MONOLITHIC" = yes; then
2664             echo "$as_me:$LINENO: result: yes" >&5
2665 echo "${ECHO_T}yes" >&6
2666           else
2667             echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6
2669           fi
2670
2671
2672           enablestring=
2673           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2674 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2675           no_cache=0
2676           # Check whether --enable-plugins or --disable-plugins was given.
2677 if test "${enable_plugins+set}" = set; then
2678   enableval="$enable_plugins"
2679
2680                           if test "$enableval" = yes; then
2681                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2682                           else
2683                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2684                           fi
2685
2686 else
2687
2688                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2689                           if test "x$LINE" != x ; then
2690                             eval "DEFAULT_$LINE"
2691                           else
2692                             no_cache=1
2693                           fi
2694
2695                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2696
2697 fi;
2698
2699           eval "$ac_cv_use_plugins"
2700           if test "$no_cache" != 1; then
2701             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2702           fi
2703
2704           if test "$wxUSE_PLUGINS" = yes; then
2705             echo "$as_me:$LINENO: result: yes" >&5
2706 echo "${ECHO_T}yes" >&6
2707           else
2708             echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2710           fi
2711
2712
2713           withstring=without
2714           echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2715 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2716           no_cache=0
2717
2718 # Check whether --with-subdirs or --without-subdirs was given.
2719 if test "${with_subdirs+set}" = set; then
2720   withval="$with_subdirs"
2721
2722                         if test "$withval" = yes; then
2723                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2724                         else
2725                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2726                         fi
2727
2728 else
2729
2730                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2731                         if test "x$LINE" != x ; then
2732                           eval "DEFAULT_$LINE"
2733                         else
2734                           no_cache=1
2735                         fi
2736
2737                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2738
2739 fi;
2740
2741           eval "$ac_cv_use_subdirs"
2742           if test "$no_cache" != 1; then
2743             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2744           fi
2745
2746           if test "$wxWITH_SUBDIRS" = yes; then
2747             echo "$as_me:$LINENO: result: yes" >&5
2748 echo "${ECHO_T}yes" >&6
2749           else
2750             echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2752           fi
2753
2754
2755 if test "$wxUSE_GUI" = "yes"; then
2756
2757
2758           enablestring=
2759           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2760 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2761           no_cache=0
2762           # Check whether --enable-universal or --disable-universal was given.
2763 if test "${enable_universal+set}" = set; then
2764   enableval="$enable_universal"
2765
2766                           if test "$enableval" = yes; then
2767                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2768                           else
2769                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2770                           fi
2771
2772 else
2773
2774                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2775                           if test "x$LINE" != x ; then
2776                             eval "DEFAULT_$LINE"
2777                           else
2778                             no_cache=1
2779                           fi
2780
2781                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2782
2783 fi;
2784
2785           eval "$ac_cv_use_universal"
2786           if test "$no_cache" != 1; then
2787             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2788           fi
2789
2790           if test "$wxUSE_UNIVERSAL" = yes; then
2791             echo "$as_me:$LINENO: result: yes" >&5
2792 echo "${ECHO_T}yes" >&6
2793           else
2794             echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2796           fi
2797
2798
2799 # Check whether --with-gtk or --without-gtk was given.
2800 if test "${with_gtk+set}" = set; then
2801   withval="$with_gtk"
2802   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2803 fi;
2804
2805 # Check whether --with-motif or --without-motif was given.
2806 if test "${with_motif+set}" = set; then
2807   withval="$with_motif"
2808   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2809 fi;
2810
2811 # Check whether --with-mac or --without-mac was given.
2812 if test "${with_mac+set}" = set; then
2813   withval="$with_mac"
2814   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2815 fi;
2816
2817 # Check whether --with-cocoa or --without-cocoa was given.
2818 if test "${with_cocoa+set}" = set; then
2819   withval="$with_cocoa"
2820   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2821 fi;
2822
2823 # Check whether --with-wine or --without-wine was given.
2824 if test "${with_wine+set}" = set; then
2825   withval="$with_wine"
2826   wxUSE_WINE="$withval" CACHE_WINE=1
2827 fi;
2828
2829 # Check whether --with-msw or --without-msw was given.
2830 if test "${with_msw+set}" = set; then
2831   withval="$with_msw"
2832   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2833 fi;
2834
2835 # Check whether --with-pm or --without-pm was given.
2836 if test "${with_pm+set}" = set; then
2837   withval="$with_pm"
2838   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2839 fi;
2840
2841 # Check whether --with-mgl or --without-mgl was given.
2842 if test "${with_mgl+set}" = set; then
2843   withval="$with_mgl"
2844   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2845 fi;
2846
2847 # Check whether --with-microwin or --without-microwin was given.
2848 if test "${with_microwin+set}" = set; then
2849   withval="$with_microwin"
2850   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2851 fi;
2852
2853 # Check whether --with-x11 or --without-x11 was given.
2854 if test "${with_x11+set}" = set; then
2855   withval="$with_x11"
2856   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2857 fi;
2858
2859           enablestring=
2860           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2861 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2862           no_cache=0
2863           # Check whether --enable-nanox or --disable-nanox was given.
2864 if test "${enable_nanox+set}" = set; then
2865   enableval="$enable_nanox"
2866
2867                           if test "$enableval" = yes; then
2868                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2869                           else
2870                             ac_cv_use_nanox='wxUSE_NANOX=no'
2871                           fi
2872
2873 else
2874
2875                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2876                           if test "x$LINE" != x ; then
2877                             eval "DEFAULT_$LINE"
2878                           else
2879                             no_cache=1
2880                           fi
2881
2882                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2883
2884 fi;
2885
2886           eval "$ac_cv_use_nanox"
2887           if test "$no_cache" != 1; then
2888             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2889           fi
2890
2891           if test "$wxUSE_NANOX" = yes; then
2892             echo "$as_me:$LINENO: result: yes" >&5
2893 echo "${ECHO_T}yes" >&6
2894           else
2895             echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2897           fi
2898
2899
2900 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2901 if test "${enable_gtk2+set}" = set; then
2902   enableval="$enable_gtk2"
2903   wxUSE_GTK2="$enableval"
2904 fi;
2905
2906           enablestring=
2907           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2908 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2909           no_cache=0
2910           # Check whether --enable-gpe or --disable-gpe was given.
2911 if test "${enable_gpe+set}" = set; then
2912   enableval="$enable_gpe"
2913
2914                           if test "$enableval" = yes; then
2915                             ac_cv_use_gpe='wxUSE_GPE=yes'
2916                           else
2917                             ac_cv_use_gpe='wxUSE_GPE=no'
2918                           fi
2919
2920 else
2921
2922                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2923                           if test "x$LINE" != x ; then
2924                             eval "DEFAULT_$LINE"
2925                           else
2926                             no_cache=1
2927                           fi
2928
2929                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2930
2931 fi;
2932
2933           eval "$ac_cv_use_gpe"
2934           if test "$no_cache" != 1; then
2935             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2936           fi
2937
2938           if test "$wxUSE_GPE" = yes; then
2939             echo "$as_me:$LINENO: result: yes" >&5
2940 echo "${ECHO_T}yes" >&6
2941           else
2942             echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2944           fi
2945
2946
2947
2948           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2949 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2950           no_cache=0
2951
2952 # Check whether --with-libpng or --without-libpng was given.
2953 if test "${with_libpng+set}" = set; then
2954   withval="$with_libpng"
2955
2956                         if test "$withval" = yes; then
2957                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2958                         elif test "$withval" = no; then
2959                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2960                         elif test "$withval" = sys; then
2961                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2962                         elif test "$withval" = builtin; then
2963                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2964                         else
2965                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2966 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2967    { (exit 1); exit 1; }; }
2968                         fi
2969
2970 else
2971
2972                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2973                         if test "x$LINE" != x ; then
2974                           eval "DEFAULT_$LINE"
2975                         else
2976                           no_cache=1
2977                         fi
2978
2979                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2980
2981 fi;
2982
2983           eval "$ac_cv_use_libpng"
2984           if test "$no_cache" != 1; then
2985             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2986           fi
2987
2988           if test "$wxUSE_LIBPNG" = yes; then
2989             echo "$as_me:$LINENO: result: yes" >&5
2990 echo "${ECHO_T}yes" >&6
2991           elif test "$wxUSE_LIBPNG" = no; then
2992             echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6
2994           elif test "$wxUSE_LIBPNG" = sys; then
2995             echo "$as_me:$LINENO: result: system version" >&5
2996 echo "${ECHO_T}system version" >&6
2997           elif test "$wxUSE_LIBPNG" = builtin; then
2998             echo "$as_me:$LINENO: result: builtin version" >&5
2999 echo "${ECHO_T}builtin version" >&6
3000           else
3001             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3002 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3003    { (exit 1); exit 1; }; }
3004           fi
3005
3006
3007           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3008 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3009           no_cache=0
3010
3011 # Check whether --with-libjpeg or --without-libjpeg was given.
3012 if test "${with_libjpeg+set}" = set; then
3013   withval="$with_libjpeg"
3014
3015                         if test "$withval" = yes; then
3016                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3017                         elif test "$withval" = no; then
3018                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3019                         elif test "$withval" = sys; then
3020                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3021                         elif test "$withval" = builtin; then
3022                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3023                         else
3024                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3025 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3026    { (exit 1); exit 1; }; }
3027                         fi
3028
3029 else
3030
3031                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3032                         if test "x$LINE" != x ; then
3033                           eval "DEFAULT_$LINE"
3034                         else
3035                           no_cache=1
3036                         fi
3037
3038                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3039
3040 fi;
3041
3042           eval "$ac_cv_use_libjpeg"
3043           if test "$no_cache" != 1; then
3044             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3045           fi
3046
3047           if test "$wxUSE_LIBJPEG" = yes; then
3048             echo "$as_me:$LINENO: result: yes" >&5
3049 echo "${ECHO_T}yes" >&6
3050           elif test "$wxUSE_LIBJPEG" = no; then
3051             echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6
3053           elif test "$wxUSE_LIBJPEG" = sys; then
3054             echo "$as_me:$LINENO: result: system version" >&5
3055 echo "${ECHO_T}system version" >&6
3056           elif test "$wxUSE_LIBJPEG" = builtin; then
3057             echo "$as_me:$LINENO: result: builtin version" >&5
3058 echo "${ECHO_T}builtin version" >&6
3059           else
3060             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3061 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3062    { (exit 1); exit 1; }; }
3063           fi
3064
3065
3066           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3067 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3068           no_cache=0
3069
3070 # Check whether --with-libtiff or --without-libtiff was given.
3071 if test "${with_libtiff+set}" = set; then
3072   withval="$with_libtiff"
3073
3074                         if test "$withval" = yes; then
3075                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3076                         elif test "$withval" = no; then
3077                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3078                         elif test "$withval" = sys; then
3079                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3080                         elif test "$withval" = builtin; then
3081                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3082                         else
3083                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3084 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3085    { (exit 1); exit 1; }; }
3086                         fi
3087
3088 else
3089
3090                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3091                         if test "x$LINE" != x ; then
3092                           eval "DEFAULT_$LINE"
3093                         else
3094                           no_cache=1
3095                         fi
3096
3097                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3098
3099 fi;
3100
3101           eval "$ac_cv_use_libtiff"
3102           if test "$no_cache" != 1; then
3103             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3104           fi
3105
3106           if test "$wxUSE_LIBTIFF" = yes; then
3107             echo "$as_me:$LINENO: result: yes" >&5
3108 echo "${ECHO_T}yes" >&6
3109           elif test "$wxUSE_LIBTIFF" = no; then
3110             echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3112           elif test "$wxUSE_LIBTIFF" = sys; then
3113             echo "$as_me:$LINENO: result: system version" >&5
3114 echo "${ECHO_T}system version" >&6
3115           elif test "$wxUSE_LIBTIFF" = builtin; then
3116             echo "$as_me:$LINENO: result: builtin version" >&5
3117 echo "${ECHO_T}builtin version" >&6
3118           else
3119             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3120 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3121    { (exit 1); exit 1; }; }
3122           fi
3123
3124
3125           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3126 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3127           no_cache=0
3128
3129 # Check whether --with-libxpm or --without-libxpm was given.
3130 if test "${with_libxpm+set}" = set; then
3131   withval="$with_libxpm"
3132
3133                         if test "$withval" = yes; then
3134                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3135                         elif test "$withval" = no; then
3136                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3137                         elif test "$withval" = sys; then
3138                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3139                         elif test "$withval" = builtin; then
3140                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3141                         else
3142                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3143 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3144    { (exit 1); exit 1; }; }
3145                         fi
3146
3147 else
3148
3149                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3150                         if test "x$LINE" != x ; then
3151                           eval "DEFAULT_$LINE"
3152                         else
3153                           no_cache=1
3154                         fi
3155
3156                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3157
3158 fi;
3159
3160           eval "$ac_cv_use_libxpm"
3161           if test "$no_cache" != 1; then
3162             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3163           fi
3164
3165           if test "$wxUSE_LIBXPM" = yes; then
3166             echo "$as_me:$LINENO: result: yes" >&5
3167 echo "${ECHO_T}yes" >&6
3168           elif test "$wxUSE_LIBXPM" = no; then
3169             echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3171           elif test "$wxUSE_LIBXPM" = sys; then
3172             echo "$as_me:$LINENO: result: system version" >&5
3173 echo "${ECHO_T}system version" >&6
3174           elif test "$wxUSE_LIBXPM" = builtin; then
3175             echo "$as_me:$LINENO: result: builtin version" >&5
3176 echo "${ECHO_T}builtin version" >&6
3177           else
3178             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3179 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3180    { (exit 1); exit 1; }; }
3181           fi
3182
3183
3184           withstring=
3185           echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3186 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3187           no_cache=0
3188
3189 # Check whether --with-libmspack or --without-libmspack was given.
3190 if test "${with_libmspack+set}" = set; then
3191   withval="$with_libmspack"
3192
3193                         if test "$withval" = yes; then
3194                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3195                         else
3196                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3197                         fi
3198
3199 else
3200
3201                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3202                         if test "x$LINE" != x ; then
3203                           eval "DEFAULT_$LINE"
3204                         else
3205                           no_cache=1
3206                         fi
3207
3208                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3209
3210 fi;
3211
3212           eval "$ac_cv_use_libmspack"
3213           if test "$no_cache" != 1; then
3214             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3215           fi
3216
3217           if test "$wxUSE_LIBMSPACK" = yes; then
3218             echo "$as_me:$LINENO: result: yes" >&5
3219 echo "${ECHO_T}yes" >&6
3220           else
3221             echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3223           fi
3224
3225
3226           withstring=
3227           echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3228 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3229           no_cache=0
3230
3231 # Check whether --with-sdl or --without-sdl was given.
3232 if test "${with_sdl+set}" = set; then
3233   withval="$with_sdl"
3234
3235                         if test "$withval" = yes; then
3236                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3237                         else
3238                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3239                         fi
3240
3241 else
3242
3243                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3244                         if test "x$LINE" != x ; then
3245                           eval "DEFAULT_$LINE"
3246                         else
3247                           no_cache=1
3248                         fi
3249
3250                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3251
3252 fi;
3253
3254           eval "$ac_cv_use_sdl"
3255           if test "$no_cache" != 1; then
3256             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3257           fi
3258
3259           if test "$wxUSE_LIBSDL" = yes; then
3260             echo "$as_me:$LINENO: result: yes" >&5
3261 echo "${ECHO_T}yes" >&6
3262           else
3263             echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3265           fi
3266
3267
3268           withstring=
3269           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3270 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3271           no_cache=0
3272
3273 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3274 if test "${with_gnomeprint+set}" = set; then
3275   withval="$with_gnomeprint"
3276
3277                         if test "$withval" = yes; then
3278                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3279                         else
3280                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3281                         fi
3282
3283 else
3284
3285                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3286                         if test "x$LINE" != x ; then
3287                           eval "DEFAULT_$LINE"
3288                         else
3289                           no_cache=1
3290                         fi
3291
3292                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3293
3294 fi;
3295
3296           eval "$ac_cv_use_gnomeprint"
3297           if test "$no_cache" != 1; then
3298             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3299           fi
3300
3301           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3302             echo "$as_me:$LINENO: result: yes" >&5
3303 echo "${ECHO_T}yes" >&6
3304           else
3305             echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3307           fi
3308
3309
3310           withstring=
3311           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3312 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3313           no_cache=0
3314
3315 # Check whether --with-gnomevfs or --without-gnomevfs was given.
3316 if test "${with_gnomevfs+set}" = set; then
3317   withval="$with_gnomevfs"
3318
3319                         if test "$withval" = yes; then
3320                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3321                         else
3322                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3323                         fi
3324
3325 else
3326
3327                         LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3328                         if test "x$LINE" != x ; then
3329                           eval "DEFAULT_$LINE"
3330                         else
3331                           no_cache=1
3332                         fi
3333
3334                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3335
3336 fi;
3337
3338           eval "$ac_cv_use_gnomevfs"
3339           if test "$no_cache" != 1; then
3340             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3341           fi
3342
3343           if test "$wxUSE_LIBGNOMEVFS" = yes; then
3344             echo "$as_me:$LINENO: result: yes" >&5
3345 echo "${ECHO_T}yes" >&6
3346           else
3347             echo "$as_me:$LINENO: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3349           fi
3350
3351
3352           withstring=
3353           echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3354 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3355           no_cache=0
3356
3357 # Check whether --with-hildon or --without-hildon was given.
3358 if test "${with_hildon+set}" = set; then
3359   withval="$with_hildon"
3360
3361                         if test "$withval" = yes; then
3362                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3363                         else
3364                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3365                         fi
3366
3367 else
3368
3369                         LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3370                         if test "x$LINE" != x ; then
3371                           eval "DEFAULT_$LINE"
3372                         else
3373                           no_cache=1
3374                         fi
3375
3376                         ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3377
3378 fi;
3379
3380           eval "$ac_cv_use_hildon"
3381           if test "$no_cache" != 1; then
3382             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3383           fi
3384
3385           if test "$wxUSE_LIBHILDON" = yes; then
3386             echo "$as_me:$LINENO: result: yes" >&5
3387 echo "${ECHO_T}yes" >&6
3388           else
3389             echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3391           fi
3392
3393
3394           withstring=
3395           echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3396 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3397           no_cache=0
3398
3399 # Check whether --with-opengl or --without-opengl was given.
3400 if test "${with_opengl+set}" = set; then
3401   withval="$with_opengl"
3402
3403                         if test "$withval" = yes; then
3404                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3405                         else
3406                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3407                         fi
3408
3409 else
3410
3411                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3412                         if test "x$LINE" != x ; then
3413                           eval "DEFAULT_$LINE"
3414                         else
3415                           no_cache=1
3416                         fi
3417
3418                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3419
3420 fi;
3421
3422           eval "$ac_cv_use_opengl"
3423           if test "$no_cache" != 1; then
3424             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3425           fi
3426
3427           if test "$wxUSE_OPENGL" = yes; then
3428             echo "$as_me:$LINENO: result: yes" >&5
3429 echo "${ECHO_T}yes" >&6
3430           else
3431             echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6
3433           fi
3434
3435
3436 fi
3437
3438
3439           withstring=
3440           echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3441 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3442           no_cache=0
3443
3444 # Check whether --with-dmalloc or --without-dmalloc was given.
3445 if test "${with_dmalloc+set}" = set; then
3446   withval="$with_dmalloc"
3447
3448                         if test "$withval" = yes; then
3449                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3450                         else
3451                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3452                         fi
3453
3454 else
3455
3456                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3457                         if test "x$LINE" != x ; then
3458                           eval "DEFAULT_$LINE"
3459                         else
3460                           no_cache=1
3461                         fi
3462
3463                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3464
3465 fi;
3466
3467           eval "$ac_cv_use_dmalloc"
3468           if test "$no_cache" != 1; then
3469             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3470           fi
3471
3472           if test "$wxUSE_DMALLOC" = yes; then
3473             echo "$as_me:$LINENO: result: yes" >&5
3474 echo "${ECHO_T}yes" >&6
3475           else
3476             echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3478           fi
3479
3480
3481           echo "$as_me:$LINENO: checking for --with-regex" >&5
3482 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3483           no_cache=0
3484
3485 # Check whether --with-regex or --without-regex was given.
3486 if test "${with_regex+set}" = set; then
3487   withval="$with_regex"
3488
3489                         if test "$withval" = yes; then
3490                           ac_cv_use_regex='wxUSE_REGEX=yes'
3491                         elif test "$withval" = no; then
3492                           ac_cv_use_regex='wxUSE_REGEX=no'
3493                         elif test "$withval" = sys; then
3494                           ac_cv_use_regex='wxUSE_REGEX=sys'
3495                         elif test "$withval" = builtin; then
3496                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3497                         else
3498                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3499 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3500    { (exit 1); exit 1; }; }
3501                         fi
3502
3503 else
3504
3505                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3506                         if test "x$LINE" != x ; then
3507                           eval "DEFAULT_$LINE"
3508                         else
3509                           no_cache=1
3510                         fi
3511
3512                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3513
3514 fi;
3515
3516           eval "$ac_cv_use_regex"
3517           if test "$no_cache" != 1; then
3518             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3519           fi
3520
3521           if test "$wxUSE_REGEX" = yes; then
3522             echo "$as_me:$LINENO: result: yes" >&5
3523 echo "${ECHO_T}yes" >&6
3524           elif test "$wxUSE_REGEX" = no; then
3525             echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3527           elif test "$wxUSE_REGEX" = sys; then
3528             echo "$as_me:$LINENO: result: system version" >&5
3529 echo "${ECHO_T}system version" >&6
3530           elif test "$wxUSE_REGEX" = builtin; then
3531             echo "$as_me:$LINENO: result: builtin version" >&5
3532 echo "${ECHO_T}builtin version" >&6
3533           else
3534             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3535 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3536    { (exit 1); exit 1; }; }
3537           fi
3538
3539
3540           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3541 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3542           no_cache=0
3543
3544 # Check whether --with-zlib or --without-zlib was given.
3545 if test "${with_zlib+set}" = set; then
3546   withval="$with_zlib"
3547
3548                         if test "$withval" = yes; then
3549                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3550                         elif test "$withval" = no; then
3551                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3552                         elif test "$withval" = sys; then
3553                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3554                         elif test "$withval" = builtin; then
3555                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3556                         else
3557                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3558 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3559    { (exit 1); exit 1; }; }
3560                         fi
3561
3562 else
3563
3564                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3565                         if test "x$LINE" != x ; then
3566                           eval "DEFAULT_$LINE"
3567                         else
3568                           no_cache=1
3569                         fi
3570
3571                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3572
3573 fi;
3574
3575           eval "$ac_cv_use_zlib"
3576           if test "$no_cache" != 1; then
3577             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3578           fi
3579
3580           if test "$wxUSE_ZLIB" = yes; then
3581             echo "$as_me:$LINENO: result: yes" >&5
3582 echo "${ECHO_T}yes" >&6
3583           elif test "$wxUSE_ZLIB" = no; then
3584             echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586           elif test "$wxUSE_ZLIB" = sys; then
3587             echo "$as_me:$LINENO: result: system version" >&5
3588 echo "${ECHO_T}system version" >&6
3589           elif test "$wxUSE_ZLIB" = builtin; then
3590             echo "$as_me:$LINENO: result: builtin version" >&5
3591 echo "${ECHO_T}builtin version" >&6
3592           else
3593             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3594 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3595    { (exit 1); exit 1; }; }
3596           fi
3597
3598
3599           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3600 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3601           no_cache=0
3602
3603 # Check whether --with-odbc or --without-odbc was given.
3604 if test "${with_odbc+set}" = set; then
3605   withval="$with_odbc"
3606
3607                         if test "$withval" = yes; then
3608                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3609                         elif test "$withval" = no; then
3610                           ac_cv_use_odbc='wxUSE_ODBC=no'
3611                         elif test "$withval" = sys; then
3612                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3613                         elif test "$withval" = builtin; then
3614                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3615                         else
3616                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3617 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3618    { (exit 1); exit 1; }; }
3619                         fi
3620
3621 else
3622
3623                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3624                         if test "x$LINE" != x ; then
3625                           eval "DEFAULT_$LINE"
3626                         else
3627                           no_cache=1
3628                         fi
3629
3630                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3631
3632 fi;
3633
3634           eval "$ac_cv_use_odbc"
3635           if test "$no_cache" != 1; then
3636             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3637           fi
3638
3639           if test "$wxUSE_ODBC" = yes; then
3640             echo "$as_me:$LINENO: result: yes" >&5
3641 echo "${ECHO_T}yes" >&6
3642           elif test "$wxUSE_ODBC" = no; then
3643             echo "$as_me:$LINENO: result: no" >&5
3644 echo "${ECHO_T}no" >&6
3645           elif test "$wxUSE_ODBC" = sys; then
3646             echo "$as_me:$LINENO: result: system version" >&5
3647 echo "${ECHO_T}system version" >&6
3648           elif test "$wxUSE_ODBC" = builtin; then
3649             echo "$as_me:$LINENO: result: builtin version" >&5
3650 echo "${ECHO_T}builtin version" >&6
3651           else
3652             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3653 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3654    { (exit 1); exit 1; }; }
3655           fi
3656
3657
3658           echo "$as_me:$LINENO: checking for --with-expat" >&5
3659 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3660           no_cache=0
3661
3662 # Check whether --with-expat or --without-expat was given.
3663 if test "${with_expat+set}" = set; then
3664   withval="$with_expat"
3665
3666                         if test "$withval" = yes; then
3667                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3668                         elif test "$withval" = no; then
3669                           ac_cv_use_expat='wxUSE_EXPAT=no'
3670                         elif test "$withval" = sys; then
3671                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3672                         elif test "$withval" = builtin; then
3673                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3674                         else
3675                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3676 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3677    { (exit 1); exit 1; }; }
3678                         fi
3679
3680 else
3681
3682                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3683                         if test "x$LINE" != x ; then
3684                           eval "DEFAULT_$LINE"
3685                         else
3686                           no_cache=1
3687                         fi
3688
3689                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3690
3691 fi;
3692
3693           eval "$ac_cv_use_expat"
3694           if test "$no_cache" != 1; then
3695             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3696           fi
3697
3698           if test "$wxUSE_EXPAT" = yes; then
3699             echo "$as_me:$LINENO: result: yes" >&5
3700 echo "${ECHO_T}yes" >&6
3701           elif test "$wxUSE_EXPAT" = no; then
3702             echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3704           elif test "$wxUSE_EXPAT" = sys; then
3705             echo "$as_me:$LINENO: result: system version" >&5
3706 echo "${ECHO_T}system version" >&6
3707           elif test "$wxUSE_EXPAT" = builtin; then
3708             echo "$as_me:$LINENO: result: builtin version" >&5
3709 echo "${ECHO_T}builtin version" >&6
3710           else
3711             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3712 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3713    { (exit 1); exit 1; }; }
3714           fi
3715
3716
3717
3718
3719           enablestring=
3720           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3721 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3722           no_cache=0
3723           # Check whether --enable-shared or --disable-shared was given.
3724 if test "${enable_shared+set}" = set; then
3725   enableval="$enable_shared"
3726
3727                           if test "$enableval" = yes; then
3728                             ac_cv_use_shared='wxUSE_SHARED=yes'
3729                           else
3730                             ac_cv_use_shared='wxUSE_SHARED=no'
3731                           fi
3732
3733 else
3734
3735                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3736                           if test "x$LINE" != x ; then
3737                             eval "DEFAULT_$LINE"
3738                           else
3739                             no_cache=1
3740                           fi
3741
3742                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3743
3744 fi;
3745
3746           eval "$ac_cv_use_shared"
3747           if test "$no_cache" != 1; then
3748             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3749           fi
3750
3751           if test "$wxUSE_SHARED" = yes; then
3752             echo "$as_me:$LINENO: result: yes" >&5
3753 echo "${ECHO_T}yes" >&6
3754           else
3755             echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3757           fi
3758
3759
3760           enablestring=
3761           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3762 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3763           no_cache=0
3764           # Check whether --enable-optimise or --disable-optimise was given.
3765 if test "${enable_optimise+set}" = set; then
3766   enableval="$enable_optimise"
3767
3768                           if test "$enableval" = yes; then
3769                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3770                           else
3771                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3772                           fi
3773
3774 else
3775
3776                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3777                           if test "x$LINE" != x ; then
3778                             eval "DEFAULT_$LINE"
3779                           else
3780                             no_cache=1
3781                           fi
3782
3783                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3784
3785 fi;
3786
3787           eval "$ac_cv_use_optimise"
3788           if test "$no_cache" != 1; then
3789             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3790           fi
3791
3792           if test "$wxUSE_OPTIMISE" = yes; then
3793             echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6
3795           else
3796             echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6
3798           fi
3799
3800
3801           enablestring=
3802           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3803 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3804           no_cache=0
3805           # Check whether --enable-debug or --disable-debug was given.
3806 if test "${enable_debug+set}" = set; then
3807   enableval="$enable_debug"
3808
3809                           if test "$enableval" = yes; then
3810                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3811                           else
3812                             ac_cv_use_debug='wxUSE_DEBUG=no'
3813                           fi
3814
3815 else
3816
3817                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3818                           if test "x$LINE" != x ; then
3819                             eval "DEFAULT_$LINE"
3820                           else
3821                             no_cache=1
3822                           fi
3823
3824                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3825
3826 fi;
3827
3828           eval "$ac_cv_use_debug"
3829           if test "$no_cache" != 1; then
3830             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3831           fi
3832
3833           if test "$wxUSE_DEBUG" = yes; then
3834             echo "$as_me:$LINENO: result: yes" >&5
3835 echo "${ECHO_T}yes" >&6
3836           else
3837             echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3839           fi
3840
3841
3842           enablestring=
3843           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3844 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3845           no_cache=0
3846           # Check whether --enable-stl or --disable-stl was given.
3847 if test "${enable_stl+set}" = set; then
3848   enableval="$enable_stl"
3849
3850                           if test "$enableval" = yes; then
3851                             ac_cv_use_stl='wxUSE_STL=yes'
3852                           else
3853                             ac_cv_use_stl='wxUSE_STL=no'
3854                           fi
3855
3856 else
3857
3858                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3859                           if test "x$LINE" != x ; then
3860                             eval "DEFAULT_$LINE"
3861                           else
3862                             no_cache=1
3863                           fi
3864
3865                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3866
3867 fi;
3868
3869           eval "$ac_cv_use_stl"
3870           if test "$no_cache" != 1; then
3871             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3872           fi
3873
3874           if test "$wxUSE_STL" = yes; then
3875             echo "$as_me:$LINENO: result: yes" >&5
3876 echo "${ECHO_T}yes" >&6
3877           else
3878             echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880           fi
3881
3882 if test "$USE_OS2" = "1"; then
3883     DEFAULT_wxUSE_OMF=no
3884
3885           enablestring=
3886           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3887 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3888           no_cache=0
3889           # Check whether --enable-omf or --disable-omf was given.
3890 if test "${enable_omf+set}" = set; then
3891   enableval="$enable_omf"
3892
3893                           if test "$enableval" = yes; then
3894                             ac_cv_use_omf='wxUSE_OMF=yes'
3895                           else
3896                             ac_cv_use_omf='wxUSE_OMF=no'
3897                           fi
3898
3899 else
3900
3901                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3902                           if test "x$LINE" != x ; then
3903                             eval "DEFAULT_$LINE"
3904                           else
3905                             no_cache=1
3906                           fi
3907
3908                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3909
3910 fi;
3911
3912           eval "$ac_cv_use_omf"
3913           if test "$no_cache" != 1; then
3914             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3915           fi
3916
3917           if test "$wxUSE_OMF" = yes; then
3918             echo "$as_me:$LINENO: result: yes" >&5
3919 echo "${ECHO_T}yes" >&6
3920           else
3921             echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6
3923           fi
3924
3925 fi
3926
3927 if test "$wxUSE_DEBUG" = "yes"; then
3928   DEFAULT_wxUSE_DEBUG_FLAG=yes
3929   DEFAULT_wxUSE_DEBUG_INFO=yes
3930   BUILD=debug
3931 elif test "$wxUSE_DEBUG" = "no"; then
3932   DEFAULT_wxUSE_DEBUG_FLAG=no
3933   DEFAULT_wxUSE_DEBUG_INFO=no
3934   BUILD=release
3935 fi
3936
3937
3938           enablestring=
3939           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3940 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3941           no_cache=0
3942           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3943 if test "${enable_debug_flag+set}" = set; then
3944   enableval="$enable_debug_flag"
3945
3946                           if test "$enableval" = yes; then
3947                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3948                           else
3949                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3950                           fi
3951
3952 else
3953
3954                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3955                           if test "x$LINE" != x ; then
3956                             eval "DEFAULT_$LINE"
3957                           else
3958                             no_cache=1
3959                           fi
3960
3961                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3962
3963 fi;
3964
3965           eval "$ac_cv_use_debug_flag"
3966           if test "$no_cache" != 1; then
3967             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3968           fi
3969
3970           if test "$wxUSE_DEBUG_FLAG" = yes; then
3971             echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6
3973           else
3974             echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3976           fi
3977
3978
3979           enablestring=
3980           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3981 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3982           no_cache=0
3983           # Check whether --enable-debug_info or --disable-debug_info was given.
3984 if test "${enable_debug_info+set}" = set; then
3985   enableval="$enable_debug_info"
3986
3987                           if test "$enableval" = yes; then
3988                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3989                           else
3990                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3991                           fi
3992
3993 else
3994
3995                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3996                           if test "x$LINE" != x ; then
3997                             eval "DEFAULT_$LINE"
3998                           else
3999                             no_cache=1
4000                           fi
4001
4002                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4003
4004 fi;
4005
4006           eval "$ac_cv_use_debug_info"
4007           if test "$no_cache" != 1; then
4008             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4009           fi
4010
4011           if test "$wxUSE_DEBUG_INFO" = yes; then
4012             echo "$as_me:$LINENO: result: yes" >&5
4013 echo "${ECHO_T}yes" >&6
4014           else
4015             echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4017           fi
4018
4019
4020           enablestring=
4021           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4022 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4023           no_cache=0
4024           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4025 if test "${enable_debug_gdb+set}" = set; then
4026   enableval="$enable_debug_gdb"
4027
4028                           if test "$enableval" = yes; then
4029                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4030                           else
4031                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4032                           fi
4033
4034 else
4035
4036                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4037                           if test "x$LINE" != x ; then
4038                             eval "DEFAULT_$LINE"
4039                           else
4040                             no_cache=1
4041                           fi
4042
4043                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4044
4045 fi;
4046
4047           eval "$ac_cv_use_debug_gdb"
4048           if test "$no_cache" != 1; then
4049             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4050           fi
4051
4052           if test "$wxUSE_DEBUG_GDB" = yes; then
4053             echo "$as_me:$LINENO: result: yes" >&5
4054 echo "${ECHO_T}yes" >&6
4055           else
4056             echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058           fi
4059
4060
4061           enablestring=
4062           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4063 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4064           no_cache=0
4065           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4066 if test "${enable_debug_cntxt+set}" = set; then
4067   enableval="$enable_debug_cntxt"
4068
4069                           if test "$enableval" = yes; then
4070                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4071                           else
4072                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4073                           fi
4074
4075 else
4076
4077                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4078                           if test "x$LINE" != x ; then
4079                             eval "DEFAULT_$LINE"
4080                           else
4081                             no_cache=1
4082                           fi
4083
4084                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4085
4086 fi;
4087
4088           eval "$ac_cv_use_debug_cntxt"
4089           if test "$no_cache" != 1; then
4090             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4091           fi
4092
4093           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4094             echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4096           else
4097             echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4099           fi
4100
4101
4102           enablestring=
4103           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4104 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4105           no_cache=0
4106           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4107 if test "${enable_mem_tracing+set}" = set; then
4108   enableval="$enable_mem_tracing"
4109
4110                           if test "$enableval" = yes; then
4111                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4112                           else
4113                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4114                           fi
4115
4116 else
4117
4118                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4119                           if test "x$LINE" != x ; then
4120                             eval "DEFAULT_$LINE"
4121                           else
4122                             no_cache=1
4123                           fi
4124
4125                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4126
4127 fi;
4128
4129           eval "$ac_cv_use_mem_tracing"
4130           if test "$no_cache" != 1; then
4131             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4132           fi
4133
4134           if test "$wxUSE_MEM_TRACING" = yes; then
4135             echo "$as_me:$LINENO: result: yes" >&5
4136 echo "${ECHO_T}yes" >&6
4137           else
4138             echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6
4140           fi
4141
4142
4143           enablestring=
4144           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4145 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4146           no_cache=0
4147           # Check whether --enable-profile or --disable-profile was given.
4148 if test "${enable_profile+set}" = set; then
4149   enableval="$enable_profile"
4150
4151                           if test "$enableval" = yes; then
4152                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4153                           else
4154                             ac_cv_use_profile='wxUSE_PROFILE=no'
4155                           fi
4156
4157 else
4158
4159                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4160                           if test "x$LINE" != x ; then
4161                             eval "DEFAULT_$LINE"
4162                           else
4163                             no_cache=1
4164                           fi
4165
4166                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4167
4168 fi;
4169
4170           eval "$ac_cv_use_profile"
4171           if test "$no_cache" != 1; then
4172             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4173           fi
4174
4175           if test "$wxUSE_PROFILE" = yes; then
4176             echo "$as_me:$LINENO: result: yes" >&5
4177 echo "${ECHO_T}yes" >&6
4178           else
4179             echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181           fi
4182
4183
4184           enablestring=
4185           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4186 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4187           no_cache=0
4188           # Check whether --enable-no_rtti or --disable-no_rtti was given.
4189 if test "${enable_no_rtti+set}" = set; then
4190   enableval="$enable_no_rtti"
4191
4192                           if test "$enableval" = yes; then
4193                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4194                           else
4195                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4196                           fi
4197
4198 else
4199
4200                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4201                           if test "x$LINE" != x ; then
4202                             eval "DEFAULT_$LINE"
4203                           else
4204                             no_cache=1
4205                           fi
4206
4207                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4208
4209 fi;
4210
4211           eval "$ac_cv_use_no_rtti"
4212           if test "$no_cache" != 1; then
4213             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4214           fi
4215
4216           if test "$wxUSE_NO_RTTI" = yes; then
4217             echo "$as_me:$LINENO: result: yes" >&5
4218 echo "${ECHO_T}yes" >&6
4219           else
4220             echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4222           fi
4223
4224
4225           enablestring=
4226           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4227 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4228           no_cache=0
4229           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4230 if test "${enable_no_exceptions+set}" = set; then
4231   enableval="$enable_no_exceptions"
4232
4233                           if test "$enableval" = yes; then
4234                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4235                           else
4236                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4237                           fi
4238
4239 else
4240
4241                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4242                           if test "x$LINE" != x ; then
4243                             eval "DEFAULT_$LINE"
4244                           else
4245                             no_cache=1
4246                           fi
4247
4248                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4249
4250 fi;
4251
4252           eval "$ac_cv_use_no_exceptions"
4253           if test "$no_cache" != 1; then
4254             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4255           fi
4256
4257           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4258             echo "$as_me:$LINENO: result: yes" >&5
4259 echo "${ECHO_T}yes" >&6
4260           else
4261             echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4263           fi
4264
4265
4266           enablestring=
4267           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4268 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4269           no_cache=0
4270           # Check whether --enable-permissive or --disable-permissive was given.
4271 if test "${enable_permissive+set}" = set; then
4272   enableval="$enable_permissive"
4273
4274                           if test "$enableval" = yes; then
4275                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4276                           else
4277                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4278                           fi
4279
4280 else
4281
4282                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4283                           if test "x$LINE" != x ; then
4284                             eval "DEFAULT_$LINE"
4285                           else
4286                             no_cache=1
4287                           fi
4288
4289                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4290
4291 fi;
4292
4293           eval "$ac_cv_use_permissive"
4294           if test "$no_cache" != 1; then
4295             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4296           fi
4297
4298           if test "$wxUSE_PERMISSIVE" = yes; then
4299             echo "$as_me:$LINENO: result: yes" >&5
4300 echo "${ECHO_T}yes" >&6
4301           else
4302             echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304           fi
4305
4306
4307           enablestring=
4308           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4309 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4310           no_cache=0
4311           # Check whether --enable-no_deps or --disable-no_deps was given.
4312 if test "${enable_no_deps+set}" = set; then
4313   enableval="$enable_no_deps"
4314
4315                           if test "$enableval" = yes; then
4316                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4317                           else
4318                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4319                           fi
4320
4321 else
4322
4323                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4324                           if test "x$LINE" != x ; then
4325                             eval "DEFAULT_$LINE"
4326                           else
4327                             no_cache=1
4328                           fi
4329
4330                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4331
4332 fi;
4333
4334           eval "$ac_cv_use_no_deps"
4335           if test "$no_cache" != 1; then
4336             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4337           fi
4338
4339           if test "$wxUSE_NO_DEPS" = yes; then
4340             echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6
4342           else
4343             echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4345           fi
4346
4347
4348           enablestring=
4349           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4350 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4351           no_cache=0
4352           # Check whether --enable-universal_binary or --disable-universal_binary was given.
4353 if test "${enable_universal_binary+set}" = set; then
4354   enableval="$enable_universal_binary"
4355
4356                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
4357
4358 else
4359
4360                           LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4361                           if test "x$LINE" != x ; then
4362                             eval "DEFAULT_$LINE"
4363                             wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4364                           else
4365                             no_cache=1
4366                             wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
4367                           fi
4368
4369 fi;
4370
4371           eval "$wx_cv_use_universal_binary"
4372           if test "$no_cache" != 1; then
4373             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4374           fi
4375
4376           echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4377 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
4378
4379
4380
4381           enablestring=enable
4382           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4383 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4384           no_cache=0
4385           # Check whether --enable-compat24 or --disable-compat24 was given.
4386 if test "${enable_compat24+set}" = set; then
4387   enableval="$enable_compat24"
4388
4389                           if test "$enableval" = yes; then
4390                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4391                           else
4392                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4393                           fi
4394
4395 else
4396
4397                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4398                           if test "x$LINE" != x ; then
4399                             eval "DEFAULT_$LINE"
4400                           else
4401                             no_cache=1
4402                           fi
4403
4404                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4405
4406 fi;
4407
4408           eval "$ac_cv_use_compat24"
4409           if test "$no_cache" != 1; then
4410             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4411           fi
4412
4413           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4414             echo "$as_me:$LINENO: result: yes" >&5
4415 echo "${ECHO_T}yes" >&6
4416           else
4417             echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6
4419           fi
4420
4421
4422           enablestring=disable
4423           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4424 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4425           no_cache=0
4426           # Check whether --enable-compat26 or --disable-compat26 was given.
4427 if test "${enable_compat26+set}" = set; then
4428   enableval="$enable_compat26"
4429
4430                           if test "$enableval" = yes; then
4431                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4432                           else
4433                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4434                           fi
4435
4436 else
4437
4438                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4439                           if test "x$LINE" != x ; then
4440                             eval "DEFAULT_$LINE"
4441                           else
4442                             no_cache=1
4443                           fi
4444
4445                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4446
4447 fi;
4448
4449           eval "$ac_cv_use_compat26"
4450           if test "$no_cache" != 1; then
4451             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4452           fi
4453
4454           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4455             echo "$as_me:$LINENO: result: yes" >&5
4456 echo "${ECHO_T}yes" >&6
4457           else
4458             echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4460           fi
4461
4462
4463
4464           enablestring=
4465           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4466 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4467           no_cache=0
4468           # Check whether --enable-rpath or --disable-rpath was given.
4469 if test "${enable_rpath+set}" = set; then
4470   enableval="$enable_rpath"
4471
4472                           if test "$enableval" = yes; then
4473                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4474                           else
4475                             ac_cv_use_rpath='wxUSE_RPATH=no'
4476                           fi
4477
4478 else
4479
4480                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4481                           if test "x$LINE" != x ; then
4482                             eval "DEFAULT_$LINE"
4483                           else
4484                             no_cache=1
4485                           fi
4486
4487                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4488
4489 fi;
4490
4491           eval "$ac_cv_use_rpath"
4492           if test "$no_cache" != 1; then
4493             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4494           fi
4495
4496           if test "$wxUSE_RPATH" = yes; then
4497             echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6
4499           else
4500             echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6
4502           fi
4503
4504
4505
4506
4507
4508           enablestring=
4509           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4510 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4511           no_cache=0
4512           # Check whether --enable-intl or --disable-intl was given.
4513 if test "${enable_intl+set}" = set; then
4514   enableval="$enable_intl"
4515
4516                           if test "$enableval" = yes; then
4517                             ac_cv_use_intl='wxUSE_INTL=yes'
4518                           else
4519                             ac_cv_use_intl='wxUSE_INTL=no'
4520                           fi
4521
4522 else
4523
4524                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4525                           if test "x$LINE" != x ; then
4526                             eval "DEFAULT_$LINE"
4527                           else
4528                             no_cache=1
4529                           fi
4530
4531                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4532
4533 fi;
4534
4535           eval "$ac_cv_use_intl"
4536           if test "$no_cache" != 1; then
4537             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4538           fi
4539
4540           if test "$wxUSE_INTL" = yes; then
4541             echo "$as_me:$LINENO: result: yes" >&5
4542 echo "${ECHO_T}yes" >&6
4543           else
4544             echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546           fi
4547
4548
4549           enablestring=
4550           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4551 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4552           no_cache=0
4553           # Check whether --enable-config or --disable-config was given.
4554 if test "${enable_config+set}" = set; then
4555   enableval="$enable_config"
4556
4557                           if test "$enableval" = yes; then
4558                             ac_cv_use_config='wxUSE_CONFIG=yes'
4559                           else
4560                             ac_cv_use_config='wxUSE_CONFIG=no'
4561                           fi
4562
4563 else
4564
4565                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4566                           if test "x$LINE" != x ; then
4567                             eval "DEFAULT_$LINE"
4568                           else
4569                             no_cache=1
4570                           fi
4571
4572                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4573
4574 fi;
4575
4576           eval "$ac_cv_use_config"
4577           if test "$no_cache" != 1; then
4578             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4579           fi
4580
4581           if test "$wxUSE_CONFIG" = yes; then
4582             echo "$as_me:$LINENO: result: yes" >&5
4583 echo "${ECHO_T}yes" >&6
4584           else
4585             echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6
4587           fi
4588
4589
4590
4591           enablestring=
4592           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4593 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4594           no_cache=0
4595           # Check whether --enable-protocols or --disable-protocols was given.
4596 if test "${enable_protocols+set}" = set; then
4597   enableval="$enable_protocols"
4598
4599                           if test "$enableval" = yes; then
4600                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4601                           else
4602                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4603                           fi
4604
4605 else
4606
4607                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4608                           if test "x$LINE" != x ; then
4609                             eval "DEFAULT_$LINE"
4610                           else
4611                             no_cache=1
4612                           fi
4613
4614                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4615
4616 fi;
4617
4618           eval "$ac_cv_use_protocols"
4619           if test "$no_cache" != 1; then
4620             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4621           fi
4622
4623           if test "$wxUSE_PROTOCOL" = yes; then
4624             echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6
4626           else
4627             echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6
4629           fi
4630
4631
4632           enablestring=
4633           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4634 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4635           no_cache=0
4636           # Check whether --enable-ftp or --disable-ftp was given.
4637 if test "${enable_ftp+set}" = set; then
4638   enableval="$enable_ftp"
4639
4640                           if test "$enableval" = yes; then
4641                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4642                           else
4643                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4644                           fi
4645
4646 else
4647
4648                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4649                           if test "x$LINE" != x ; then
4650                             eval "DEFAULT_$LINE"
4651                           else
4652                             no_cache=1
4653                           fi
4654
4655                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4656
4657 fi;
4658
4659           eval "$ac_cv_use_ftp"
4660           if test "$no_cache" != 1; then
4661             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4662           fi
4663
4664           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4665             echo "$as_me:$LINENO: result: yes" >&5
4666 echo "${ECHO_T}yes" >&6
4667           else
4668             echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670           fi
4671
4672
4673           enablestring=
4674           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4675 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4676           no_cache=0
4677           # Check whether --enable-http or --disable-http was given.
4678 if test "${enable_http+set}" = set; then
4679   enableval="$enable_http"
4680
4681                           if test "$enableval" = yes; then
4682                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4683                           else
4684                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4685                           fi
4686
4687 else
4688
4689                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4690                           if test "x$LINE" != x ; then
4691                             eval "DEFAULT_$LINE"
4692                           else
4693                             no_cache=1
4694                           fi
4695
4696                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4697
4698 fi;
4699
4700           eval "$ac_cv_use_http"
4701           if test "$no_cache" != 1; then
4702             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4703           fi
4704
4705           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4706             echo "$as_me:$LINENO: result: yes" >&5
4707 echo "${ECHO_T}yes" >&6
4708           else
4709             echo "$as_me:$LINENO: result: no" >&5
4710 echo "${ECHO_T}no" >&6
4711           fi
4712
4713
4714           enablestring=
4715           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4716 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4717           no_cache=0
4718           # Check whether --enable-fileproto or --disable-fileproto was given.
4719 if test "${enable_fileproto+set}" = set; then
4720   enableval="$enable_fileproto"
4721
4722                           if test "$enableval" = yes; then
4723                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4724                           else
4725                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4726                           fi
4727
4728 else
4729
4730                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4731                           if test "x$LINE" != x ; then
4732                             eval "DEFAULT_$LINE"
4733                           else
4734                             no_cache=1
4735                           fi
4736
4737                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4738
4739 fi;
4740
4741           eval "$ac_cv_use_fileproto"
4742           if test "$no_cache" != 1; then
4743             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4744           fi
4745
4746           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4747             echo "$as_me:$LINENO: result: yes" >&5
4748 echo "${ECHO_T}yes" >&6
4749           else
4750             echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6
4752           fi
4753
4754
4755           enablestring=
4756           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4757 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4758           no_cache=0
4759           # Check whether --enable-sockets or --disable-sockets was given.
4760 if test "${enable_sockets+set}" = set; then
4761   enableval="$enable_sockets"
4762
4763                           if test "$enableval" = yes; then
4764                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4765                           else
4766                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4767                           fi
4768
4769 else
4770
4771                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4772                           if test "x$LINE" != x ; then
4773                             eval "DEFAULT_$LINE"
4774                           else
4775                             no_cache=1
4776                           fi
4777
4778                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4779
4780 fi;
4781
4782           eval "$ac_cv_use_sockets"
4783           if test "$no_cache" != 1; then
4784             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4785           fi
4786
4787           if test "$wxUSE_SOCKETS" = yes; then
4788             echo "$as_me:$LINENO: result: yes" >&5
4789 echo "${ECHO_T}yes" >&6
4790           else
4791             echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4793           fi
4794
4795
4796           enablestring=
4797           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4798 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4799           no_cache=0
4800           # Check whether --enable-ole or --disable-ole was given.
4801 if test "${enable_ole+set}" = set; then
4802   enableval="$enable_ole"
4803
4804                           if test "$enableval" = yes; then
4805                             ac_cv_use_ole='wxUSE_OLE=yes'
4806                           else
4807                             ac_cv_use_ole='wxUSE_OLE=no'
4808                           fi
4809
4810 else
4811
4812                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4813                           if test "x$LINE" != x ; then
4814                             eval "DEFAULT_$LINE"
4815                           else
4816                             no_cache=1
4817                           fi
4818
4819                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4820
4821 fi;
4822
4823           eval "$ac_cv_use_ole"
4824           if test "$no_cache" != 1; then
4825             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4826           fi
4827
4828           if test "$wxUSE_OLE" = yes; then
4829             echo "$as_me:$LINENO: result: yes" >&5
4830 echo "${ECHO_T}yes" >&6
4831           else
4832             echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6
4834           fi
4835
4836
4837           enablestring=
4838           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4839 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4840           no_cache=0
4841           # Check whether --enable-dataobj or --disable-dataobj was given.
4842 if test "${enable_dataobj+set}" = set; then
4843   enableval="$enable_dataobj"
4844
4845                           if test "$enableval" = yes; then
4846                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4847                           else
4848                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4849                           fi
4850
4851 else
4852
4853                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4854                           if test "x$LINE" != x ; then
4855                             eval "DEFAULT_$LINE"
4856                           else
4857                             no_cache=1
4858                           fi
4859
4860                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4861
4862 fi;
4863
4864           eval "$ac_cv_use_dataobj"
4865           if test "$no_cache" != 1; then
4866             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4867           fi
4868
4869           if test "$wxUSE_DATAOBJ" = yes; then
4870             echo "$as_me:$LINENO: result: yes" >&5
4871 echo "${ECHO_T}yes" >&6
4872           else
4873             echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4875           fi
4876
4877
4878
4879           enablestring=
4880           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4881 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4882           no_cache=0
4883           # Check whether --enable-ipc or --disable-ipc was given.
4884 if test "${enable_ipc+set}" = set; then
4885   enableval="$enable_ipc"
4886
4887                           if test "$enableval" = yes; then
4888                             ac_cv_use_ipc='wxUSE_IPC=yes'
4889                           else
4890                             ac_cv_use_ipc='wxUSE_IPC=no'
4891                           fi
4892
4893 else
4894
4895                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4896                           if test "x$LINE" != x ; then
4897                             eval "DEFAULT_$LINE"
4898                           else
4899                             no_cache=1
4900                           fi
4901
4902                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4903
4904 fi;
4905
4906           eval "$ac_cv_use_ipc"
4907           if test "$no_cache" != 1; then
4908             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4909           fi
4910
4911           if test "$wxUSE_IPC" = yes; then
4912             echo "$as_me:$LINENO: result: yes" >&5
4913 echo "${ECHO_T}yes" >&6
4914           else
4915             echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6
4917           fi
4918
4919
4920
4921           enablestring=
4922           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4923 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4924           no_cache=0
4925           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4926 if test "${enable_apple_ieee+set}" = set; then
4927   enableval="$enable_apple_ieee"
4928
4929                           if test "$enableval" = yes; then
4930                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4931                           else
4932                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4933                           fi
4934
4935 else
4936
4937                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4938                           if test "x$LINE" != x ; then
4939                             eval "DEFAULT_$LINE"
4940                           else
4941                             no_cache=1
4942                           fi
4943
4944                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4945
4946 fi;
4947
4948           eval "$ac_cv_use_apple_ieee"
4949           if test "$no_cache" != 1; then
4950             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4951           fi
4952
4953           if test "$wxUSE_APPLE_IEEE" = yes; then
4954             echo "$as_me:$LINENO: result: yes" >&5
4955 echo "${ECHO_T}yes" >&6
4956           else
4957             echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6
4959           fi
4960
4961
4962           enablestring=
4963           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4964 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4965           no_cache=0
4966           # Check whether --enable-arcstream or --disable-arcstream was given.
4967 if test "${enable_arcstream+set}" = set; then
4968   enableval="$enable_arcstream"
4969
4970                           if test "$enableval" = yes; then
4971                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
4972                           else
4973                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
4974                           fi
4975
4976 else
4977
4978                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
4979                           if test "x$LINE" != x ; then
4980                             eval "DEFAULT_$LINE"
4981                           else
4982                             no_cache=1
4983                           fi
4984
4985                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
4986
4987 fi;
4988
4989           eval "$ac_cv_use_arcstream"
4990           if test "$no_cache" != 1; then
4991             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4992           fi
4993
4994           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
4995             echo "$as_me:$LINENO: result: yes" >&5
4996 echo "${ECHO_T}yes" >&6
4997           else
4998             echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6
5000           fi
5001
5002
5003           enablestring=
5004           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5005 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
5006           no_cache=0
5007           # Check whether --enable-backtrace or --disable-backtrace was given.
5008 if test "${enable_backtrace+set}" = set; then
5009   enableval="$enable_backtrace"
5010
5011                           if test "$enableval" = yes; then
5012                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5013                           else
5014                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
5015                           fi
5016
5017 else
5018
5019                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
5020                           if test "x$LINE" != x ; then
5021                             eval "DEFAULT_$LINE"
5022                           else
5023                             no_cache=1
5024                           fi
5025
5026                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
5027
5028 fi;
5029
5030           eval "$ac_cv_use_backtrace"
5031           if test "$no_cache" != 1; then
5032             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5033           fi
5034
5035           if test "$wxUSE_STACKWALKER" = yes; then
5036             echo "$as_me:$LINENO: result: yes" >&5
5037 echo "${ECHO_T}yes" >&6
5038           else
5039             echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6
5041           fi
5042
5043
5044           enablestring=
5045           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5046 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5047           no_cache=0
5048           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5049 if test "${enable_catch_segvs+set}" = set; then
5050   enableval="$enable_catch_segvs"
5051
5052                           if test "$enableval" = yes; then
5053                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5054                           else
5055                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5056                           fi
5057
5058 else
5059
5060                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5061                           if test "x$LINE" != x ; then
5062                             eval "DEFAULT_$LINE"
5063                           else
5064                             no_cache=1
5065                           fi
5066
5067                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5068
5069 fi;
5070
5071           eval "$ac_cv_use_catch_segvs"
5072           if test "$no_cache" != 1; then
5073             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5074           fi
5075
5076           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5077             echo "$as_me:$LINENO: result: yes" >&5
5078 echo "${ECHO_T}yes" >&6
5079           else
5080             echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6
5082           fi
5083
5084
5085           enablestring=
5086           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5087 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5088           no_cache=0
5089           # Check whether --enable-cmdline or --disable-cmdline was given.
5090 if test "${enable_cmdline+set}" = set; then
5091   enableval="$enable_cmdline"
5092
5093                           if test "$enableval" = yes; then
5094                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5095                           else
5096                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5097                           fi
5098
5099 else
5100
5101                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5102                           if test "x$LINE" != x ; then
5103                             eval "DEFAULT_$LINE"
5104                           else
5105                             no_cache=1
5106                           fi
5107
5108                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5109
5110 fi;
5111
5112           eval "$ac_cv_use_cmdline"
5113           if test "$no_cache" != 1; then
5114             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5115           fi
5116
5117           if test "$wxUSE_CMDLINE_PARSER" = yes; then
5118             echo "$as_me:$LINENO: result: yes" >&5
5119 echo "${ECHO_T}yes" >&6
5120           else
5121             echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5123           fi
5124
5125
5126           enablestring=
5127           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5128 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5129           no_cache=0
5130           # Check whether --enable-datetime or --disable-datetime was given.
5131 if test "${enable_datetime+set}" = set; then
5132   enableval="$enable_datetime"
5133
5134                           if test "$enableval" = yes; then
5135                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
5136                           else
5137                             ac_cv_use_datetime='wxUSE_DATETIME=no'
5138                           fi
5139
5140 else
5141
5142                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5143                           if test "x$LINE" != x ; then
5144                             eval "DEFAULT_$LINE"
5145                           else
5146                             no_cache=1
5147                           fi
5148
5149                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5150
5151 fi;
5152
5153           eval "$ac_cv_use_datetime"
5154           if test "$no_cache" != 1; then
5155             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5156           fi
5157
5158           if test "$wxUSE_DATETIME" = yes; then
5159             echo "$as_me:$LINENO: result: yes" >&5
5160 echo "${ECHO_T}yes" >&6
5161           else
5162             echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5164           fi
5165
5166
5167           enablestring=
5168           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5169 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5170           no_cache=0
5171           # Check whether --enable-debugreport or --disable-debugreport was given.
5172 if test "${enable_debugreport+set}" = set; then
5173   enableval="$enable_debugreport"
5174
5175                           if test "$enableval" = yes; then
5176                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5177                           else
5178                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5179                           fi
5180
5181 else
5182
5183                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5184                           if test "x$LINE" != x ; then
5185                             eval "DEFAULT_$LINE"
5186                           else
5187                             no_cache=1
5188                           fi
5189
5190                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5191
5192 fi;
5193
5194           eval "$ac_cv_use_debugreport"
5195           if test "$no_cache" != 1; then
5196             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5197           fi
5198
5199           if test "$wxUSE_DEBUGREPORT" = yes; then
5200             echo "$as_me:$LINENO: result: yes" >&5
5201 echo "${ECHO_T}yes" >&6
5202           else
5203             echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6
5205           fi
5206
5207
5208           enablestring=
5209           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5210 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5211           no_cache=0
5212           # Check whether --enable-dialupman or --disable-dialupman was given.
5213 if test "${enable_dialupman+set}" = set; then
5214   enableval="$enable_dialupman"
5215
5216                           if test "$enableval" = yes; then
5217                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5218                           else
5219                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5220                           fi
5221
5222 else
5223
5224                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5225                           if test "x$LINE" != x ; then
5226                             eval "DEFAULT_$LINE"
5227                           else
5228                             no_cache=1
5229                           fi
5230
5231                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5232
5233 fi;
5234
5235           eval "$ac_cv_use_dialupman"
5236           if test "$no_cache" != 1; then
5237             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5238           fi
5239
5240           if test "$wxUSE_DIALUP_MANAGER" = yes; then
5241             echo "$as_me:$LINENO: result: yes" >&5
5242 echo "${ECHO_T}yes" >&6
5243           else
5244             echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6
5246           fi
5247
5248
5249           enablestring=
5250           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5251 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5252           no_cache=0
5253           # Check whether --enable-dynlib or --disable-dynlib was given.
5254 if test "${enable_dynlib+set}" = set; then
5255   enableval="$enable_dynlib"
5256
5257                           if test "$enableval" = yes; then
5258                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5259                           else
5260                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5261                           fi
5262
5263 else
5264
5265                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5266                           if test "x$LINE" != x ; then
5267                             eval "DEFAULT_$LINE"
5268                           else
5269                             no_cache=1
5270                           fi
5271
5272                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5273
5274 fi;
5275
5276           eval "$ac_cv_use_dynlib"
5277           if test "$no_cache" != 1; then
5278             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5279           fi
5280
5281           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5282             echo "$as_me:$LINENO: result: yes" >&5
5283 echo "${ECHO_T}yes" >&6
5284           else
5285             echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5287           fi
5288
5289
5290           enablestring=
5291           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5292 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5293           no_cache=0
5294           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5295 if test "${enable_dynamicloader+set}" = set; then
5296   enableval="$enable_dynamicloader"
5297
5298                           if test "$enableval" = yes; then
5299                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5300                           else
5301                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5302                           fi
5303
5304 else
5305
5306                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5307                           if test "x$LINE" != x ; then
5308                             eval "DEFAULT_$LINE"
5309                           else
5310                             no_cache=1
5311                           fi
5312
5313                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5314
5315 fi;
5316
5317           eval "$ac_cv_use_dynamicloader"
5318           if test "$no_cache" != 1; then
5319             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5320           fi
5321
5322           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5323             echo "$as_me:$LINENO: result: yes" >&5
5324 echo "${ECHO_T}yes" >&6
5325           else
5326             echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5328           fi
5329
5330
5331           enablestring=
5332           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5333 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5334           no_cache=0
5335           # Check whether --enable-exceptions or --disable-exceptions was given.
5336 if test "${enable_exceptions+set}" = set; then
5337   enableval="$enable_exceptions"
5338
5339                           if test "$enableval" = yes; then
5340                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5341                           else
5342                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5343                           fi
5344
5345 else
5346
5347                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5348                           if test "x$LINE" != x ; then
5349                             eval "DEFAULT_$LINE"
5350                           else
5351                             no_cache=1
5352                           fi
5353
5354                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5355
5356 fi;
5357
5358           eval "$ac_cv_use_exceptions"
5359           if test "$no_cache" != 1; then
5360             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5361           fi
5362
5363           if test "$wxUSE_EXCEPTIONS" = yes; then
5364             echo "$as_me:$LINENO: result: yes" >&5
5365 echo "${ECHO_T}yes" >&6
5366           else
5367             echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5369           fi
5370
5371
5372           enablestring=
5373           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5374 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5375           no_cache=0
5376           # Check whether --enable-ffile or --disable-ffile was given.
5377 if test "${enable_ffile+set}" = set; then
5378   enableval="$enable_ffile"
5379
5380                           if test "$enableval" = yes; then
5381                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5382                           else
5383                             ac_cv_use_ffile='wxUSE_FFILE=no'
5384                           fi
5385
5386 else
5387
5388                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5389                           if test "x$LINE" != x ; then
5390                             eval "DEFAULT_$LINE"
5391                           else
5392                             no_cache=1
5393                           fi
5394
5395                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5396
5397 fi;
5398
5399           eval "$ac_cv_use_ffile"
5400           if test "$no_cache" != 1; then
5401             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5402           fi
5403
5404           if test "$wxUSE_FFILE" = yes; then
5405             echo "$as_me:$LINENO: result: yes" >&5
5406 echo "${ECHO_T}yes" >&6
5407           else
5408             echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5410           fi
5411
5412
5413           enablestring=
5414           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5415 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5416           no_cache=0
5417           # Check whether --enable-file or --disable-file was given.
5418 if test "${enable_file+set}" = set; then
5419   enableval="$enable_file"
5420
5421                           if test "$enableval" = yes; then
5422                             ac_cv_use_file='wxUSE_FILE=yes'
5423                           else
5424                             ac_cv_use_file='wxUSE_FILE=no'
5425                           fi
5426
5427 else
5428
5429                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5430                           if test "x$LINE" != x ; then
5431                             eval "DEFAULT_$LINE"
5432                           else
5433                             no_cache=1
5434                           fi
5435
5436                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5437
5438 fi;
5439
5440           eval "$ac_cv_use_file"
5441           if test "$no_cache" != 1; then
5442             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5443           fi
5444
5445           if test "$wxUSE_FILE" = yes; then
5446             echo "$as_me:$LINENO: result: yes" >&5
5447 echo "${ECHO_T}yes" >&6
5448           else
5449             echo "$as_me:$LINENO: result: no" >&5
5450 echo "${ECHO_T}no" >&6
5451           fi
5452
5453
5454           enablestring=
5455           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5456 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5457           no_cache=0
5458           # Check whether --enable-filesystem or --disable-filesystem was given.
5459 if test "${enable_filesystem+set}" = set; then
5460   enableval="$enable_filesystem"
5461
5462                           if test "$enableval" = yes; then
5463                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5464                           else
5465                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5466                           fi
5467
5468 else
5469
5470                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5471                           if test "x$LINE" != x ; then
5472                             eval "DEFAULT_$LINE"
5473                           else
5474                             no_cache=1
5475                           fi
5476
5477                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5478
5479 fi;
5480
5481           eval "$ac_cv_use_filesystem"
5482           if test "$no_cache" != 1; then
5483             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5484           fi
5485
5486           if test "$wxUSE_FILESYSTEM" = yes; then
5487             echo "$as_me:$LINENO: result: yes" >&5
5488 echo "${ECHO_T}yes" >&6
5489           else
5490             echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6
5492           fi
5493
5494
5495           enablestring=
5496           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5497 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5498           no_cache=0
5499           # Check whether --enable-fontmap or --disable-fontmap was given.
5500 if test "${enable_fontmap+set}" = set; then
5501   enableval="$enable_fontmap"
5502
5503                           if test "$enableval" = yes; then
5504                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5505                           else
5506                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5507                           fi
5508
5509 else
5510
5511                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5512                           if test "x$LINE" != x ; then
5513                             eval "DEFAULT_$LINE"
5514                           else
5515                             no_cache=1
5516                           fi
5517
5518                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5519
5520 fi;
5521
5522           eval "$ac_cv_use_fontmap"
5523           if test "$no_cache" != 1; then
5524             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5525           fi
5526
5527           if test "$wxUSE_FONTMAP" = yes; then
5528             echo "$as_me:$LINENO: result: yes" >&5
5529 echo "${ECHO_T}yes" >&6
5530           else
5531             echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5533           fi
5534
5535
5536           enablestring=
5537           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5538 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5539           no_cache=0
5540           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5541 if test "${enable_fs_inet+set}" = set; then
5542   enableval="$enable_fs_inet"
5543
5544                           if test "$enableval" = yes; then
5545                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5546                           else
5547                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5548                           fi
5549
5550 else
5551
5552                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5553                           if test "x$LINE" != x ; then
5554                             eval "DEFAULT_$LINE"
5555                           else
5556                             no_cache=1
5557                           fi
5558
5559                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5560
5561 fi;
5562
5563           eval "$ac_cv_use_fs_inet"
5564           if test "$no_cache" != 1; then
5565             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5566           fi
5567
5568           if test "$wxUSE_FS_INET" = yes; then
5569             echo "$as_me:$LINENO: result: yes" >&5
5570 echo "${ECHO_T}yes" >&6
5571           else
5572             echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6
5574           fi
5575
5576
5577           enablestring=
5578           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5579 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5580           no_cache=0
5581           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5582 if test "${enable_fs_zip+set}" = set; then
5583   enableval="$enable_fs_zip"
5584
5585                           if test "$enableval" = yes; then
5586                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5587                           else
5588                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5589                           fi
5590
5591 else
5592
5593                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5594                           if test "x$LINE" != x ; then
5595                             eval "DEFAULT_$LINE"
5596                           else
5597                             no_cache=1
5598                           fi
5599
5600                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5601
5602 fi;
5603
5604           eval "$ac_cv_use_fs_zip"
5605           if test "$no_cache" != 1; then
5606             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5607           fi
5608
5609           if test "$wxUSE_FS_ZIP" = yes; then
5610             echo "$as_me:$LINENO: result: yes" >&5
5611 echo "${ECHO_T}yes" >&6
5612           else
5613             echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5615           fi
5616
5617
5618           enablestring=
5619           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5620 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5621           no_cache=0
5622           # Check whether --enable-geometry or --disable-geometry was given.
5623 if test "${enable_geometry+set}" = set; then
5624   enableval="$enable_geometry"
5625
5626                           if test "$enableval" = yes; then
5627                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5628                           else
5629                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5630                           fi
5631
5632 else
5633
5634                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5635                           if test "x$LINE" != x ; then
5636                             eval "DEFAULT_$LINE"
5637                           else
5638                             no_cache=1
5639                           fi
5640
5641                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5642
5643 fi;
5644
5645           eval "$ac_cv_use_geometry"
5646           if test "$no_cache" != 1; then
5647             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5648           fi
5649
5650           if test "$wxUSE_GEOMETRY" = yes; then
5651             echo "$as_me:$LINENO: result: yes" >&5
5652 echo "${ECHO_T}yes" >&6
5653           else
5654             echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6
5656           fi
5657
5658
5659           enablestring=
5660           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5661 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5662           no_cache=0
5663           # Check whether --enable-log or --disable-log was given.
5664 if test "${enable_log+set}" = set; then
5665   enableval="$enable_log"
5666
5667                           if test "$enableval" = yes; then
5668                             ac_cv_use_log='wxUSE_LOG=yes'
5669                           else
5670                             ac_cv_use_log='wxUSE_LOG=no'
5671                           fi
5672
5673 else
5674
5675                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5676                           if test "x$LINE" != x ; then
5677                             eval "DEFAULT_$LINE"
5678                           else
5679                             no_cache=1
5680                           fi
5681
5682                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5683
5684 fi;
5685
5686           eval "$ac_cv_use_log"
5687           if test "$no_cache" != 1; then
5688             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5689           fi
5690
5691           if test "$wxUSE_LOG" = yes; then
5692             echo "$as_me:$LINENO: result: yes" >&5
5693 echo "${ECHO_T}yes" >&6
5694           else
5695             echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5697           fi
5698
5699
5700           enablestring=
5701           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5702 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5703           no_cache=0
5704           # Check whether --enable-longlong or --disable-longlong was given.
5705 if test "${enable_longlong+set}" = set; then
5706   enableval="$enable_longlong"
5707
5708                           if test "$enableval" = yes; then
5709                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5710                           else
5711                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5712                           fi
5713
5714 else
5715
5716                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5717                           if test "x$LINE" != x ; then
5718                             eval "DEFAULT_$LINE"
5719                           else
5720                             no_cache=1
5721                           fi
5722
5723                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5724
5725 fi;
5726
5727           eval "$ac_cv_use_longlong"
5728           if test "$no_cache" != 1; then
5729             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5730           fi
5731
5732           if test "$wxUSE_LONGLONG" = yes; then
5733             echo "$as_me:$LINENO: result: yes" >&5
5734 echo "${ECHO_T}yes" >&6
5735           else
5736             echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5738           fi
5739
5740
5741           enablestring=
5742           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5743 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5744           no_cache=0
5745           # Check whether --enable-mimetype or --disable-mimetype was given.
5746 if test "${enable_mimetype+set}" = set; then
5747   enableval="$enable_mimetype"
5748
5749                           if test "$enableval" = yes; then
5750                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5751                           else
5752                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5753                           fi
5754
5755 else
5756
5757                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5758                           if test "x$LINE" != x ; then
5759                             eval "DEFAULT_$LINE"
5760                           else
5761                             no_cache=1
5762                           fi
5763
5764                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5765
5766 fi;
5767
5768           eval "$ac_cv_use_mimetype"
5769           if test "$no_cache" != 1; then
5770             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5771           fi
5772
5773           if test "$wxUSE_MIMETYPE" = yes; then
5774             echo "$as_me:$LINENO: result: yes" >&5
5775 echo "${ECHO_T}yes" >&6
5776           else
5777             echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5779           fi
5780
5781
5782           enablestring=
5783           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5784 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5785           no_cache=0
5786           # Check whether --enable-mslu or --disable-mslu was given.
5787 if test "${enable_mslu+set}" = set; then
5788   enableval="$enable_mslu"
5789
5790                           if test "$enableval" = yes; then
5791                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5792                           else
5793                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5794                           fi
5795
5796 else
5797
5798                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5799                           if test "x$LINE" != x ; then
5800                             eval "DEFAULT_$LINE"
5801                           else
5802                             no_cache=1
5803                           fi
5804
5805                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5806
5807 fi;
5808
5809           eval "$ac_cv_use_mslu"
5810           if test "$no_cache" != 1; then
5811             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5812           fi
5813
5814           if test "$wxUSE_UNICODE_MSLU" = yes; then
5815             echo "$as_me:$LINENO: result: yes" >&5
5816 echo "${ECHO_T}yes" >&6
5817           else
5818             echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5820           fi
5821
5822
5823           enablestring=
5824           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5825 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5826           no_cache=0
5827           # Check whether --enable-snglinst or --disable-snglinst was given.
5828 if test "${enable_snglinst+set}" = set; then
5829   enableval="$enable_snglinst"
5830
5831                           if test "$enableval" = yes; then
5832                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5833                           else
5834                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5835                           fi
5836
5837 else
5838
5839                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5840                           if test "x$LINE" != x ; then
5841                             eval "DEFAULT_$LINE"
5842                           else
5843                             no_cache=1
5844                           fi
5845
5846                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5847
5848 fi;
5849
5850           eval "$ac_cv_use_snglinst"
5851           if test "$no_cache" != 1; then
5852             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5853           fi
5854
5855           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5856             echo "$as_me:$LINENO: result: yes" >&5
5857 echo "${ECHO_T}yes" >&6
5858           else
5859             echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5861           fi
5862
5863
5864           enablestring=
5865           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5866 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5867           no_cache=0
5868           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5869 if test "${enable_std_iostreams+set}" = set; then
5870   enableval="$enable_std_iostreams"
5871
5872                           if test "$enableval" = yes; then
5873                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5874                           else
5875                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5876                           fi
5877
5878 else
5879
5880                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5881                           if test "x$LINE" != x ; then
5882                             eval "DEFAULT_$LINE"
5883                           else
5884                             no_cache=1
5885                           fi
5886
5887                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5888
5889 fi;
5890
5891           eval "$ac_cv_use_std_iostreams"
5892           if test "$no_cache" != 1; then
5893             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5894           fi
5895
5896           if test "$wxUSE_STD_IOSTREAM" = yes; then
5897             echo "$as_me:$LINENO: result: yes" >&5
5898 echo "${ECHO_T}yes" >&6
5899           else
5900             echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6
5902           fi
5903
5904
5905           enablestring=
5906           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5907 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5908           no_cache=0
5909           # Check whether --enable-std_string or --disable-std_string was given.
5910 if test "${enable_std_string+set}" = set; then
5911   enableval="$enable_std_string"
5912
5913                           if test "$enableval" = yes; then
5914                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5915                           else
5916                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5917                           fi
5918
5919 else
5920
5921                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5922                           if test "x$LINE" != x ; then
5923                             eval "DEFAULT_$LINE"
5924                           else
5925                             no_cache=1
5926                           fi
5927
5928                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5929
5930 fi;
5931
5932           eval "$ac_cv_use_std_string"
5933           if test "$no_cache" != 1; then
5934             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5935           fi
5936
5937           if test "$wxUSE_STD_STRING" = yes; then
5938             echo "$as_me:$LINENO: result: yes" >&5
5939 echo "${ECHO_T}yes" >&6
5940           else
5941             echo "$as_me:$LINENO: result: no" >&5
5942 echo "${ECHO_T}no" >&6
5943           fi
5944
5945
5946           enablestring=
5947           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5948 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5949           no_cache=0
5950           # Check whether --enable-stdpaths or --disable-stdpaths was given.
5951 if test "${enable_stdpaths+set}" = set; then
5952   enableval="$enable_stdpaths"
5953
5954                           if test "$enableval" = yes; then
5955                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
5956                           else
5957                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
5958                           fi
5959
5960 else
5961
5962                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
5963                           if test "x$LINE" != x ; then
5964                             eval "DEFAULT_$LINE"
5965                           else
5966                             no_cache=1
5967                           fi
5968
5969                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
5970
5971 fi;
5972
5973           eval "$ac_cv_use_stdpaths"
5974           if test "$no_cache" != 1; then
5975             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
5976           fi
5977
5978           if test "$wxUSE_STDPATHS" = yes; then
5979             echo "$as_me:$LINENO: result: yes" >&5
5980 echo "${ECHO_T}yes" >&6
5981           else
5982             echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6
5984           fi
5985
5986
5987           enablestring=
5988           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5989 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5990           no_cache=0
5991           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5992 if test "${enable_stopwatch+set}" = set; then
5993   enableval="$enable_stopwatch"
5994
5995                           if test "$enableval" = yes; then
5996                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5997                           else
5998                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5999                           fi
6000
6001 else
6002
6003                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6004                           if test "x$LINE" != x ; then
6005                             eval "DEFAULT_$LINE"
6006                           else
6007                             no_cache=1
6008                           fi
6009
6010                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6011
6012 fi;
6013
6014           eval "$ac_cv_use_stopwatch"
6015           if test "$no_cache" != 1; then
6016             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6017           fi
6018
6019           if test "$wxUSE_STOPWATCH" = yes; then
6020             echo "$as_me:$LINENO: result: yes" >&5
6021 echo "${ECHO_T}yes" >&6
6022           else
6023             echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6
6025           fi
6026
6027
6028           enablestring=
6029           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6030 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6031           no_cache=0
6032           # Check whether --enable-streams or --disable-streams was given.
6033 if test "${enable_streams+set}" = set; then
6034   enableval="$enable_streams"
6035
6036                           if test "$enableval" = yes; then
6037                             ac_cv_use_streams='wxUSE_STREAMS=yes'
6038                           else
6039                             ac_cv_use_streams='wxUSE_STREAMS=no'
6040                           fi
6041
6042 else
6043
6044                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6045                           if test "x$LINE" != x ; then
6046                             eval "DEFAULT_$LINE"
6047                           else
6048                             no_cache=1
6049                           fi
6050
6051                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6052
6053 fi;
6054
6055           eval "$ac_cv_use_streams"
6056           if test "$no_cache" != 1; then
6057             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6058           fi
6059
6060           if test "$wxUSE_STREAMS" = yes; then
6061             echo "$as_me:$LINENO: result: yes" >&5
6062 echo "${ECHO_T}yes" >&6
6063           else
6064             echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6
6066           fi
6067
6068
6069           enablestring=
6070           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6071 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6072           no_cache=0
6073           # Check whether --enable-system_options or --disable-system_options was given.
6074 if test "${enable_system_options+set}" = set; then
6075   enableval="$enable_system_options"
6076
6077                           if test "$enableval" = yes; then
6078                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6079                           else
6080                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6081                           fi
6082
6083 else
6084
6085                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6086                           if test "x$LINE" != x ; then
6087                             eval "DEFAULT_$LINE"
6088                           else
6089                             no_cache=1
6090                           fi
6091
6092                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6093
6094 fi;
6095
6096           eval "$ac_cv_use_system_options"
6097           if test "$no_cache" != 1; then
6098             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6099           fi
6100
6101           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6102             echo "$as_me:$LINENO: result: yes" >&5
6103 echo "${ECHO_T}yes" >&6
6104           else
6105             echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6107           fi
6108
6109
6110           enablestring=
6111           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6112 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6113           no_cache=0
6114           # Check whether --enable-textbuf or --disable-textbuf was given.
6115 if test "${enable_textbuf+set}" = set; then
6116   enableval="$enable_textbuf"
6117
6118                           if test "$enableval" = yes; then
6119                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6120                           else
6121                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6122                           fi
6123
6124 else
6125
6126                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6127                           if test "x$LINE" != x ; then
6128                             eval "DEFAULT_$LINE"
6129                           else
6130                             no_cache=1
6131                           fi
6132
6133                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6134
6135 fi;
6136
6137           eval "$ac_cv_use_textbuf"
6138           if test "$no_cache" != 1; then
6139             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6140           fi
6141
6142           if test "$wxUSE_TEXTBUFFER" = yes; then
6143             echo "$as_me:$LINENO: result: yes" >&5
6144 echo "${ECHO_T}yes" >&6
6145           else
6146             echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6
6148           fi
6149
6150
6151           enablestring=
6152           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6153 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6154           no_cache=0
6155           # Check whether --enable-textfile or --disable-textfile was given.
6156 if test "${enable_textfile+set}" = set; then
6157   enableval="$enable_textfile"
6158
6159                           if test "$enableval" = yes; then
6160                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6161                           else
6162                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6163                           fi
6164
6165 else
6166
6167                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6168                           if test "x$LINE" != x ; then
6169                             eval "DEFAULT_$LINE"
6170                           else
6171                             no_cache=1
6172                           fi
6173
6174                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6175
6176 fi;
6177
6178           eval "$ac_cv_use_textfile"
6179           if test "$no_cache" != 1; then
6180             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6181           fi
6182
6183           if test "$wxUSE_TEXTFILE" = yes; then
6184             echo "$as_me:$LINENO: result: yes" >&5
6185 echo "${ECHO_T}yes" >&6
6186           else
6187             echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6
6189           fi
6190
6191
6192           enablestring=
6193           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6194 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6195           no_cache=0
6196           # Check whether --enable-timer or --disable-timer was given.
6197 if test "${enable_timer+set}" = set; then
6198   enableval="$enable_timer"
6199
6200                           if test "$enableval" = yes; then
6201                             ac_cv_use_timer='wxUSE_TIMER=yes'
6202                           else
6203                             ac_cv_use_timer='wxUSE_TIMER=no'
6204                           fi
6205
6206 else
6207
6208                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6209                           if test "x$LINE" != x ; then
6210                             eval "DEFAULT_$LINE"
6211                           else
6212                             no_cache=1
6213                           fi
6214
6215                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6216
6217 fi;
6218
6219           eval "$ac_cv_use_timer"
6220           if test "$no_cache" != 1; then
6221             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6222           fi
6223
6224           if test "$wxUSE_TIMER" = yes; then
6225             echo "$as_me:$LINENO: result: yes" >&5
6226 echo "${ECHO_T}yes" >&6
6227           else
6228             echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6
6230           fi
6231
6232
6233           enablestring=
6234           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6235 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6236           no_cache=0
6237           # Check whether --enable-unicode or --disable-unicode was given.
6238 if test "${enable_unicode+set}" = set; then
6239   enableval="$enable_unicode"
6240
6241                           if test "$enableval" = yes; then
6242                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
6243                           else
6244                             ac_cv_use_unicode='wxUSE_UNICODE=no'
6245                           fi
6246
6247 else
6248
6249                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6250                           if test "x$LINE" != x ; then
6251                             eval "DEFAULT_$LINE"
6252                           else
6253                             no_cache=1
6254                           fi
6255
6256                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6257
6258 fi;
6259
6260           eval "$ac_cv_use_unicode"
6261           if test "$no_cache" != 1; then
6262             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6263           fi
6264
6265           if test "$wxUSE_UNICODE" = yes; then
6266             echo "$as_me:$LINENO: result: yes" >&5
6267 echo "${ECHO_T}yes" >&6
6268           else
6269             echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6
6271           fi
6272
6273
6274           enablestring=
6275           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6276 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6277           no_cache=0
6278           # Check whether --enable-sound or --disable-sound was given.
6279 if test "${enable_sound+set}" = set; then
6280   enableval="$enable_sound"
6281
6282                           if test "$enableval" = yes; then
6283                             ac_cv_use_sound='wxUSE_SOUND=yes'
6284                           else
6285                             ac_cv_use_sound='wxUSE_SOUND=no'
6286                           fi
6287
6288 else
6289
6290                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6291                           if test "x$LINE" != x ; then
6292                             eval "DEFAULT_$LINE"
6293                           else
6294                             no_cache=1
6295                           fi
6296
6297                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6298
6299 fi;
6300
6301           eval "$ac_cv_use_sound"
6302           if test "$no_cache" != 1; then
6303             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6304           fi
6305
6306           if test "$wxUSE_SOUND" = yes; then
6307             echo "$as_me:$LINENO: result: yes" >&5
6308 echo "${ECHO_T}yes" >&6
6309           else
6310             echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6
6312           fi
6313
6314
6315           enablestring=
6316           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6317 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6318           no_cache=0
6319           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6320 if test "${enable_mediactrl+set}" = set; then
6321   enableval="$enable_mediactrl"
6322
6323                           if test "$enableval" = yes; then
6324                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6325                           else
6326                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6327                           fi
6328
6329 else
6330
6331                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6332                           if test "x$LINE" != x ; then
6333                             eval "DEFAULT_$LINE"
6334                           else
6335                             no_cache=1
6336                           fi
6337
6338                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6339
6340 fi;
6341
6342           eval "$ac_cv_use_mediactrl"
6343           if test "$no_cache" != 1; then
6344             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6345           fi
6346
6347           if test "$wxUSE_MEDIACTRL" = yes; then
6348             echo "$as_me:$LINENO: result: yes" >&5
6349 echo "${ECHO_T}yes" >&6
6350           else
6351             echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6
6353           fi
6354
6355
6356           enablestring=
6357           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6358 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6359           no_cache=0
6360           # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6361 if test "${enable_gstreamer8+set}" = set; then
6362   enableval="$enable_gstreamer8"
6363
6364                           if test "$enableval" = yes; then
6365                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6366                           else
6367                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6368                           fi
6369
6370 else
6371
6372                           LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6373                           if test "x$LINE" != x ; then
6374                             eval "DEFAULT_$LINE"
6375                           else
6376                             no_cache=1
6377                           fi
6378
6379                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6380
6381 fi;
6382
6383           eval "$ac_cv_use_gstreamer8"
6384           if test "$no_cache" != 1; then
6385             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6386           fi
6387
6388           if test "$wxUSE_GSTREAMER8" = yes; then
6389             echo "$as_me:$LINENO: result: yes" >&5
6390 echo "${ECHO_T}yes" >&6
6391           else
6392             echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6
6394           fi
6395
6396
6397           enablestring=
6398           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6399 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
6400           no_cache=0
6401           # Check whether --enable-printfposparam or --disable-printfposparam was given.
6402 if test "${enable_printfposparam+set}" = set; then
6403   enableval="$enable_printfposparam"
6404
6405                           if test "$enableval" = yes; then
6406                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
6407                           else
6408                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
6409                           fi
6410
6411 else
6412
6413                           LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
6414                           if test "x$LINE" != x ; then
6415                             eval "DEFAULT_$LINE"
6416                           else
6417                             no_cache=1
6418                           fi
6419
6420                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
6421
6422 fi;
6423
6424           eval "$ac_cv_use_printfposparam"
6425           if test "$no_cache" != 1; then
6426             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
6427           fi
6428
6429           if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
6430             echo "$as_me:$LINENO: result: yes" >&5
6431 echo "${ECHO_T}yes" >&6
6432           else
6433             echo "$as_me:$LINENO: result: no" >&5
6434 echo "${ECHO_T}no" >&6
6435           fi
6436
6437
6438           enablestring=
6439           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6440 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6441           no_cache=0
6442           # Check whether --enable-zipstream or --disable-zipstream was given.
6443 if test "${enable_zipstream+set}" = set; then
6444   enableval="$enable_zipstream"
6445
6446                           if test "$enableval" = yes; then
6447                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6448                           else
6449                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6450                           fi
6451
6452 else
6453
6454                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6455                           if test "x$LINE" != x ; then
6456                             eval "DEFAULT_$LINE"
6457                           else
6458                             no_cache=1
6459                           fi
6460
6461                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6462
6463 fi;
6464
6465           eval "$ac_cv_use_zipstream"
6466           if test "$no_cache" != 1; then
6467             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6468           fi
6469
6470           if test "$wxUSE_ZIPSTREAM" = yes; then
6471             echo "$as_me:$LINENO: result: yes" >&5
6472 echo "${ECHO_T}yes" >&6
6473           else
6474             echo "$as_me:$LINENO: result: no" >&5
6475 echo "${ECHO_T}no" >&6
6476           fi
6477
6478
6479
6480           enablestring=
6481           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6482 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6483           no_cache=0
6484           # Check whether --enable-url or --disable-url was given.
6485 if test "${enable_url+set}" = set; then
6486   enableval="$enable_url"
6487
6488                           if test "$enableval" = yes; then
6489                             ac_cv_use_url='wxUSE_URL=yes'
6490                           else
6491                             ac_cv_use_url='wxUSE_URL=no'
6492                           fi
6493
6494 else
6495
6496                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6497                           if test "x$LINE" != x ; then
6498                             eval "DEFAULT_$LINE"
6499                           else
6500                             no_cache=1
6501                           fi
6502
6503                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6504
6505 fi;
6506
6507           eval "$ac_cv_use_url"
6508           if test "$no_cache" != 1; then
6509             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6510           fi
6511
6512           if test "$wxUSE_URL" = yes; then
6513             echo "$as_me:$LINENO: result: yes" >&5
6514 echo "${ECHO_T}yes" >&6
6515           else
6516             echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6
6518           fi
6519
6520
6521           enablestring=
6522           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6523 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6524           no_cache=0
6525           # Check whether --enable-protocol or --disable-protocol was given.
6526 if test "${enable_protocol+set}" = set; then
6527   enableval="$enable_protocol"
6528
6529                           if test "$enableval" = yes; then
6530                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6531                           else
6532                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6533                           fi
6534
6535 else
6536
6537                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6538                           if test "x$LINE" != x ; then
6539                             eval "DEFAULT_$LINE"
6540                           else
6541                             no_cache=1
6542                           fi
6543
6544                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6545
6546 fi;
6547
6548           eval "$ac_cv_use_protocol"
6549           if test "$no_cache" != 1; then
6550             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6551           fi
6552
6553           if test "$wxUSE_PROTOCOL" = yes; then
6554             echo "$as_me:$LINENO: result: yes" >&5
6555 echo "${ECHO_T}yes" >&6
6556           else
6557             echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6
6559           fi
6560
6561
6562           enablestring=
6563           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6564 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6565           no_cache=0
6566           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6567 if test "${enable_protocol_http+set}" = set; then
6568   enableval="$enable_protocol_http"
6569
6570                           if test "$enableval" = yes; then
6571                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6572                           else
6573                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6574                           fi
6575
6576 else
6577
6578                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6579                           if test "x$LINE" != x ; then
6580                             eval "DEFAULT_$LINE"
6581                           else
6582                             no_cache=1
6583                           fi
6584
6585                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6586
6587 fi;
6588
6589           eval "$ac_cv_use_protocol_http"
6590           if test "$no_cache" != 1; then
6591             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6592           fi
6593
6594           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6595             echo "$as_me:$LINENO: result: yes" >&5
6596 echo "${ECHO_T}yes" >&6
6597           else
6598             echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6
6600           fi
6601
6602
6603           enablestring=
6604           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6605 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6606           no_cache=0
6607           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6608 if test "${enable_protocol_ftp+set}" = set; then
6609   enableval="$enable_protocol_ftp"
6610
6611                           if test "$enableval" = yes; then
6612                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6613                           else
6614                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6615                           fi
6616
6617 else
6618
6619                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6620                           if test "x$LINE" != x ; then
6621                             eval "DEFAULT_$LINE"
6622                           else
6623                             no_cache=1
6624                           fi
6625
6626                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6627
6628 fi;
6629
6630           eval "$ac_cv_use_protocol_ftp"
6631           if test "$no_cache" != 1; then
6632             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6633           fi
6634
6635           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6636             echo "$as_me:$LINENO: result: yes" >&5
6637 echo "${ECHO_T}yes" >&6
6638           else
6639             echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6
6641           fi
6642
6643
6644           enablestring=
6645           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6646 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6647           no_cache=0
6648           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6649 if test "${enable_protocol_file+set}" = set; then
6650   enableval="$enable_protocol_file"
6651
6652                           if test "$enableval" = yes; then
6653                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6654                           else
6655                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6656                           fi
6657
6658 else
6659
6660                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6661                           if test "x$LINE" != x ; then
6662                             eval "DEFAULT_$LINE"
6663                           else
6664                             no_cache=1
6665                           fi
6666
6667                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6668
6669 fi;
6670
6671           eval "$ac_cv_use_protocol_file"
6672           if test "$no_cache" != 1; then
6673             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6674           fi
6675
6676           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6677             echo "$as_me:$LINENO: result: yes" >&5
6678 echo "${ECHO_T}yes" >&6
6679           else
6680             echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6
6682           fi
6683
6684
6685
6686
6687
6688           enablestring=
6689           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6690 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6691           no_cache=0
6692           # Check whether --enable-threads or --disable-threads was given.
6693 if test "${enable_threads+set}" = set; then
6694   enableval="$enable_threads"
6695
6696                           if test "$enableval" = yes; then
6697                             ac_cv_use_threads='wxUSE_THREADS=yes'
6698                           else
6699                             ac_cv_use_threads='wxUSE_THREADS=no'
6700                           fi
6701
6702 else
6703
6704                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6705                           if test "x$LINE" != x ; then
6706                             eval "DEFAULT_$LINE"
6707                           else
6708                             no_cache=1
6709                           fi
6710
6711                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6712
6713 fi;
6714
6715           eval "$ac_cv_use_threads"
6716           if test "$no_cache" != 1; then
6717             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6718           fi
6719
6720           if test "$wxUSE_THREADS" = yes; then
6721             echo "$as_me:$LINENO: result: yes" >&5
6722 echo "${ECHO_T}yes" >&6
6723           else
6724             echo "$as_me:$LINENO: result: no" >&5
6725 echo "${ECHO_T}no" >&6
6726           fi
6727
6728
6729 if test "$wxUSE_GUI" = "yes"; then
6730
6731
6732
6733           enablestring=
6734           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6735 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6736           no_cache=0
6737           # Check whether --enable-docview or --disable-docview was given.
6738 if test "${enable_docview+set}" = set; then
6739   enableval="$enable_docview"
6740
6741                           if test "$enableval" = yes; then
6742                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6743                           else
6744                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6745                           fi
6746
6747 else
6748
6749                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6750                           if test "x$LINE" != x ; then
6751                             eval "DEFAULT_$LINE"
6752                           else
6753                             no_cache=1
6754                           fi
6755
6756                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6757
6758 fi;
6759
6760           eval "$ac_cv_use_docview"
6761           if test "$no_cache" != 1; then
6762             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6763           fi
6764
6765           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6766             echo "$as_me:$LINENO: result: yes" >&5
6767 echo "${ECHO_T}yes" >&6
6768           else
6769             echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6
6771           fi
6772
6773
6774           enablestring=
6775           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6776 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6777           no_cache=0
6778           # Check whether --enable-help or --disable-help was given.
6779 if test "${enable_help+set}" = set; then
6780   enableval="$enable_help"
6781
6782                           if test "$enableval" = yes; then
6783                             ac_cv_use_help='wxUSE_HELP=yes'
6784                           else
6785                             ac_cv_use_help='wxUSE_HELP=no'
6786                           fi
6787
6788 else
6789
6790                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6791                           if test "x$LINE" != x ; then
6792                             eval "DEFAULT_$LINE"
6793                           else
6794                             no_cache=1
6795                           fi
6796
6797                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6798
6799 fi;
6800
6801           eval "$ac_cv_use_help"
6802           if test "$no_cache" != 1; then
6803             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6804           fi
6805
6806           if test "$wxUSE_HELP" = yes; then
6807             echo "$as_me:$LINENO: result: yes" >&5
6808 echo "${ECHO_T}yes" >&6
6809           else
6810             echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6
6812           fi
6813
6814
6815           enablestring=
6816           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6817 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6818           no_cache=0
6819           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6820 if test "${enable_mshtmlhelp+set}" = set; then
6821   enableval="$enable_mshtmlhelp"
6822
6823                           if test "$enableval" = yes; then
6824                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6825                           else
6826                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6827                           fi
6828
6829 else
6830
6831                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6832                           if test "x$LINE" != x ; then
6833                             eval "DEFAULT_$LINE"
6834                           else
6835                             no_cache=1
6836                           fi
6837
6838                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6839
6840 fi;
6841
6842           eval "$ac_cv_use_mshtmlhelp"
6843           if test "$no_cache" != 1; then
6844             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6845           fi
6846
6847           if test "$wxUSE_MS_HTML_HELP" = yes; then
6848             echo "$as_me:$LINENO: result: yes" >&5
6849 echo "${ECHO_T}yes" >&6
6850           else
6851             echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6
6853           fi
6854
6855
6856           enablestring=
6857           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6858 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6859           no_cache=0
6860           # Check whether --enable-html or --disable-html was given.
6861 if test "${enable_html+set}" = set; then
6862   enableval="$enable_html"
6863
6864                           if test "$enableval" = yes; then
6865                             ac_cv_use_html='wxUSE_HTML=yes'
6866                           else
6867                             ac_cv_use_html='wxUSE_HTML=no'
6868                           fi
6869
6870 else
6871
6872                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6873                           if test "x$LINE" != x ; then
6874                             eval "DEFAULT_$LINE"
6875                           else
6876                             no_cache=1
6877                           fi
6878
6879                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6880
6881 fi;
6882
6883           eval "$ac_cv_use_html"
6884           if test "$no_cache" != 1; then
6885             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6886           fi
6887
6888           if test "$wxUSE_HTML" = yes; then
6889             echo "$as_me:$LINENO: result: yes" >&5
6890 echo "${ECHO_T}yes" >&6
6891           else
6892             echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6
6894           fi
6895
6896
6897           enablestring=
6898           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6899 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6900           no_cache=0
6901           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6902 if test "${enable_htmlhelp+set}" = set; then
6903   enableval="$enable_htmlhelp"
6904
6905                           if test "$enableval" = yes; then
6906                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6907                           else
6908                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6909                           fi
6910
6911 else
6912
6913                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6914                           if test "x$LINE" != x ; then
6915                             eval "DEFAULT_$LINE"
6916                           else
6917                             no_cache=1
6918                           fi
6919
6920                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6921
6922 fi;
6923
6924           eval "$ac_cv_use_htmlhelp"
6925           if test "$no_cache" != 1; then
6926             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6927           fi
6928
6929           if test "$wxUSE_WXHTML_HELP" = yes; then
6930             echo "$as_me:$LINENO: result: yes" >&5
6931 echo "${ECHO_T}yes" >&6
6932           else
6933             echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6
6935           fi
6936
6937
6938           enablestring=
6939           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6940 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6941           no_cache=0
6942           # Check whether --enable-xrc or --disable-xrc was given.
6943 if test "${enable_xrc+set}" = set; then
6944   enableval="$enable_xrc"
6945
6946                           if test "$enableval" = yes; then
6947                             ac_cv_use_xrc='wxUSE_XRC=yes'
6948                           else
6949                             ac_cv_use_xrc='wxUSE_XRC=no'
6950                           fi
6951
6952 else
6953
6954                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6955                           if test "x$LINE" != x ; then
6956                             eval "DEFAULT_$LINE"
6957                           else
6958                             no_cache=1
6959                           fi
6960
6961                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6962
6963 fi;
6964
6965           eval "$ac_cv_use_xrc"
6966           if test "$no_cache" != 1; then
6967             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6968           fi
6969
6970           if test "$wxUSE_XRC" = yes; then
6971             echo "$as_me:$LINENO: result: yes" >&5
6972 echo "${ECHO_T}yes" >&6
6973           else
6974             echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6
6976           fi
6977
6978
6979           enablestring=
6980           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
6981 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
6982           no_cache=0
6983           # Check whether --enable-aui or --disable-aui was given.
6984 if test "${enable_aui+set}" = set; then
6985   enableval="$enable_aui"
6986
6987                           if test "$enableval" = yes; then
6988                             ac_cv_use_aui='wxUSE_AUI=yes'
6989                           else
6990                             ac_cv_use_aui='wxUSE_AUI=no'
6991                           fi
6992
6993 else
6994
6995                           LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
6996                           if test "x$LINE" != x ; then
6997                             eval "DEFAULT_$LINE"
6998                           else
6999                             no_cache=1
7000                           fi
7001
7002                           ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7003
7004 fi;
7005
7006           eval "$ac_cv_use_aui"
7007           if test "$no_cache" != 1; then
7008             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7009           fi
7010
7011           if test "$wxUSE_AUI" = yes; then
7012             echo "$as_me:$LINENO: result: yes" >&5
7013 echo "${ECHO_T}yes" >&6
7014           else
7015             echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6
7017           fi
7018
7019
7020           enablestring=
7021           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7022 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7023           no_cache=0
7024           # Check whether --enable-constraints or --disable-constraints was given.
7025 if test "${enable_constraints+set}" = set; then
7026   enableval="$enable_constraints"
7027
7028                           if test "$enableval" = yes; then
7029                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7030                           else
7031                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7032                           fi
7033
7034 else
7035
7036                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7037                           if test "x$LINE" != x ; then
7038                             eval "DEFAULT_$LINE"
7039                           else
7040                             no_cache=1
7041                           fi
7042
7043                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7044
7045 fi;
7046
7047           eval "$ac_cv_use_constraints"
7048           if test "$no_cache" != 1; then
7049             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7050           fi
7051
7052           if test "$wxUSE_CONSTRAINTS" = yes; then
7053             echo "$as_me:$LINENO: result: yes" >&5
7054 echo "${ECHO_T}yes" >&6
7055           else
7056             echo "$as_me:$LINENO: result: no" >&5
7057 echo "${ECHO_T}no" >&6
7058           fi
7059
7060
7061           enablestring=
7062           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7063 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7064           no_cache=0
7065           # Check whether --enable-printarch or --disable-printarch was given.
7066 if test "${enable_printarch+set}" = set; then
7067   enableval="$enable_printarch"
7068
7069                           if test "$enableval" = yes; then
7070                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7071                           else
7072                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7073                           fi
7074
7075 else
7076
7077                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7078                           if test "x$LINE" != x ; then
7079                             eval "DEFAULT_$LINE"
7080                           else
7081                             no_cache=1
7082                           fi
7083
7084                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7085
7086 fi;
7087
7088           eval "$ac_cv_use_printarch"
7089           if test "$no_cache" != 1; then
7090             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7091           fi
7092
7093           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7094             echo "$as_me:$LINENO: result: yes" >&5
7095 echo "${ECHO_T}yes" >&6
7096           else
7097             echo "$as_me:$LINENO: result: no" >&5
7098 echo "${ECHO_T}no" >&6
7099           fi
7100
7101
7102           enablestring=
7103           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7104 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7105           no_cache=0
7106           # Check whether --enable-mdi or --disable-mdi was given.
7107 if test "${enable_mdi+set}" = set; then
7108   enableval="$enable_mdi"
7109
7110                           if test "$enableval" = yes; then
7111                             ac_cv_use_mdi='wxUSE_MDI=yes'
7112                           else
7113                             ac_cv_use_mdi='wxUSE_MDI=no'
7114                           fi
7115
7116 else
7117
7118                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
7119                           if test "x$LINE" != x ; then
7120                             eval "DEFAULT_$LINE"
7121                           else
7122                             no_cache=1
7123                           fi
7124
7125                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
7126
7127 fi;
7128
7129           eval "$ac_cv_use_mdi"
7130           if test "$no_cache" != 1; then
7131             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7132           fi
7133
7134           if test "$wxUSE_MDI" = yes; then
7135             echo "$as_me:$LINENO: result: yes" >&5
7136 echo "${ECHO_T}yes" >&6
7137           else
7138             echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7140           fi
7141
7142
7143           enablestring=
7144           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7145 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7146           no_cache=0
7147           # Check whether --enable-mdidoc or --disable-mdidoc was given.
7148 if test "${enable_mdidoc+set}" = set; then
7149   enableval="$enable_mdidoc"
7150
7151                           if test "$enableval" = yes; then
7152                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7153                           else
7154                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7155                           fi
7156
7157 else
7158
7159                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7160                           if test "x$LINE" != x ; then
7161                             eval "DEFAULT_$LINE"
7162                           else
7163                             no_cache=1
7164                           fi
7165
7166                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7167
7168 fi;
7169
7170           eval "$ac_cv_use_mdidoc"
7171           if test "$no_cache" != 1; then
7172             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7173           fi
7174
7175           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7176             echo "$as_me:$LINENO: result: yes" >&5
7177 echo "${ECHO_T}yes" >&6
7178           else
7179             echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6
7181           fi
7182
7183
7184           enablestring=
7185           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7186 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7187           no_cache=0
7188           # Check whether --enable-loggui or --disable-loggui was given.
7189 if test "${enable_loggui+set}" = set; then
7190   enableval="$enable_loggui"
7191
7192                           if test "$enableval" = yes; then
7193                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7194                           else
7195                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
7196                           fi
7197
7198 else
7199
7200                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7201                           if test "x$LINE" != x ; then
7202                             eval "DEFAULT_$LINE"
7203                           else
7204                             no_cache=1
7205                           fi
7206
7207                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7208
7209 fi;
7210
7211           eval "$ac_cv_use_loggui"
7212           if test "$no_cache" != 1; then
7213             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7214           fi
7215
7216           if test "$wxUSE_LOGGUI" = yes; then
7217             echo "$as_me:$LINENO: result: yes" >&5
7218 echo "${ECHO_T}yes" >&6
7219           else
7220             echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7222           fi
7223
7224
7225           enablestring=
7226           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7227 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7228           no_cache=0
7229           # Check whether --enable-logwin or --disable-logwin was given.
7230 if test "${enable_logwin+set}" = set; then
7231   enableval="$enable_logwin"
7232
7233                           if test "$enableval" = yes; then
7234                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7235                           else
7236                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7237                           fi
7238
7239 else
7240
7241                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7242                           if test "x$LINE" != x ; then
7243                             eval "DEFAULT_$LINE"
7244                           else
7245                             no_cache=1
7246                           fi
7247
7248                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7249
7250 fi;
7251
7252           eval "$ac_cv_use_logwin"
7253           if test "$no_cache" != 1; then
7254             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7255           fi
7256
7257           if test "$wxUSE_LOGWINDOW" = yes; then
7258             echo "$as_me:$LINENO: result: yes" >&5
7259 echo "${ECHO_T}yes" >&6
7260           else
7261             echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7263           fi
7264
7265
7266           enablestring=
7267           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7268 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7269           no_cache=0
7270           # Check whether --enable-logdialog or --disable-logdialog was given.
7271 if test "${enable_logdialog+set}" = set; then
7272   enableval="$enable_logdialog"
7273
7274                           if test "$enableval" = yes; then
7275                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7276                           else
7277                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7278                           fi
7279
7280 else
7281
7282                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7283                           if test "x$LINE" != x ; then
7284                             eval "DEFAULT_$LINE"
7285                           else
7286                             no_cache=1
7287                           fi
7288
7289                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7290
7291 fi;
7292
7293           eval "$ac_cv_use_logdialog"
7294           if test "$no_cache" != 1; then
7295             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7296           fi
7297
7298           if test "$wxUSE_LOGDIALOG" = yes; then
7299             echo "$as_me:$LINENO: result: yes" >&5
7300 echo "${ECHO_T}yes" >&6
7301           else
7302             echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304           fi
7305
7306
7307           enablestring=
7308           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7309 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7310           no_cache=0
7311           # Check whether --enable-webkit or --disable-webkit was given.
7312 if test "${enable_webkit+set}" = set; then
7313   enableval="$enable_webkit"
7314
7315                           if test "$enableval" = yes; then
7316                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7317                           else
7318                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
7319                           fi
7320
7321 else
7322
7323                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7324                           if test "x$LINE" != x ; then
7325                             eval "DEFAULT_$LINE"
7326                           else
7327                             no_cache=1
7328                           fi
7329
7330                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7331
7332 fi;
7333
7334           eval "$ac_cv_use_webkit"
7335           if test "$no_cache" != 1; then
7336             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7337           fi
7338
7339           if test "$wxUSE_WEBKIT" = yes; then
7340             echo "$as_me:$LINENO: result: yes" >&5
7341 echo "${ECHO_T}yes" >&6
7342           else
7343             echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6
7345           fi
7346
7347
7348           enablestring=
7349           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7350 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7351           no_cache=0
7352           # Check whether --enable-html or --disable-html was given.
7353 if test "${enable_html+set}" = set; then
7354   enableval="$enable_html"
7355
7356                           if test "$enableval" = yes; then
7357                             ac_cv_use_html='wxUSE_RICHTEXT=yes'
7358                           else
7359                             ac_cv_use_html='wxUSE_RICHTEXT=no'
7360                           fi
7361
7362 else
7363
7364                           LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7365                           if test "x$LINE" != x ; then
7366                             eval "DEFAULT_$LINE"
7367                           else
7368                             no_cache=1
7369                           fi
7370
7371                           ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7372
7373 fi;
7374
7375           eval "$ac_cv_use_html"
7376           if test "$no_cache" != 1; then
7377             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7378           fi
7379
7380           if test "$wxUSE_RICHTEXT" = yes; then
7381             echo "$as_me:$LINENO: result: yes" >&5
7382 echo "${ECHO_T}yes" >&6
7383           else
7384             echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6
7386           fi
7387
7388
7389
7390           enablestring=
7391           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7392 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7393           no_cache=0
7394           # Check whether --enable-postscript or --disable-postscript was given.
7395 if test "${enable_postscript+set}" = set; then
7396   enableval="$enable_postscript"
7397
7398                           if test "$enableval" = yes; then
7399                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7400                           else
7401                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7402                           fi
7403
7404 else
7405
7406                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7407                           if test "x$LINE" != x ; then
7408                             eval "DEFAULT_$LINE"
7409                           else
7410                             no_cache=1
7411                           fi
7412
7413                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7414
7415 fi;
7416
7417           eval "$ac_cv_use_postscript"
7418           if test "$no_cache" != 1; then
7419             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7420           fi
7421
7422           if test "$wxUSE_POSTSCRIPT" = yes; then
7423             echo "$as_me:$LINENO: result: yes" >&5
7424 echo "${ECHO_T}yes" >&6
7425           else
7426             echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6
7428           fi
7429
7430
7431
7432
7433
7434           enablestring=
7435           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7436 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7437           no_cache=0
7438           # Check whether --enable-prologio or --disable-prologio was given.
7439 if test "${enable_prologio+set}" = set; then
7440   enableval="$enable_prologio"
7441
7442                           if test "$enableval" = yes; then
7443                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7444                           else
7445                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7446                           fi
7447
7448 else
7449
7450                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7451                           if test "x$LINE" != x ; then
7452                             eval "DEFAULT_$LINE"
7453                           else
7454                             no_cache=1
7455                           fi
7456
7457                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7458
7459 fi;
7460
7461           eval "$ac_cv_use_prologio"
7462           if test "$no_cache" != 1; then
7463             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7464           fi
7465
7466           if test "$wxUSE_PROLOGIO" = yes; then
7467             echo "$as_me:$LINENO: result: yes" >&5
7468 echo "${ECHO_T}yes" >&6
7469           else
7470             echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7472           fi
7473
7474
7475           enablestring=
7476           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7477 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7478           no_cache=0
7479           # Check whether --enable-resources or --disable-resources was given.
7480 if test "${enable_resources+set}" = set; then
7481   enableval="$enable_resources"
7482
7483                           if test "$enableval" = yes; then
7484                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7485                           else
7486                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7487                           fi
7488
7489 else
7490
7491                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7492                           if test "x$LINE" != x ; then
7493                             eval "DEFAULT_$LINE"
7494                           else
7495                             no_cache=1
7496                           fi
7497
7498                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7499
7500 fi;
7501
7502           eval "$ac_cv_use_resources"
7503           if test "$no_cache" != 1; then
7504             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7505           fi
7506
7507           if test "$wxUSE_RESOURCES" = yes; then
7508             echo "$as_me:$LINENO: result: yes" >&5
7509 echo "${ECHO_T}yes" >&6
7510           else
7511             echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7513           fi
7514
7515
7516
7517
7518           enablestring=
7519           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7520 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7521           no_cache=0
7522           # Check whether --enable-clipboard or --disable-clipboard was given.
7523 if test "${enable_clipboard+set}" = set; then
7524   enableval="$enable_clipboard"
7525
7526                           if test "$enableval" = yes; then
7527                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7528                           else
7529                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7530                           fi
7531
7532 else
7533
7534                           LINE=`grep "wxUSE_CLIPBOARD" ${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_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7542
7543 fi;
7544
7545           eval "$ac_cv_use_clipboard"
7546           if test "$no_cache" != 1; then
7547             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7548           fi
7549
7550           if test "$wxUSE_CLIPBOARD" = 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           enablestring=
7560           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7561 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7562           no_cache=0
7563           # Check whether --enable-dnd or --disable-dnd was given.
7564 if test "${enable_dnd+set}" = set; then
7565   enableval="$enable_dnd"
7566
7567                           if test "$enableval" = yes; then
7568                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7569                           else
7570                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7571                           fi
7572
7573 else
7574
7575                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7576                           if test "x$LINE" != x ; then
7577                             eval "DEFAULT_$LINE"
7578                           else
7579                             no_cache=1
7580                           fi
7581
7582                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7583
7584 fi;
7585
7586           eval "$ac_cv_use_dnd"
7587           if test "$no_cache" != 1; then
7588             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7589           fi
7590
7591           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7592             echo "$as_me:$LINENO: result: yes" >&5
7593 echo "${ECHO_T}yes" >&6
7594           else
7595             echo "$as_me:$LINENO: result: no" >&5
7596 echo "${ECHO_T}no" >&6
7597           fi
7598
7599
7600           enablestring=
7601           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7602 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7603           no_cache=0
7604           # Check whether --enable-metafile or --disable-metafile was given.
7605 if test "${enable_metafile+set}" = set; then
7606   enableval="$enable_metafile"
7607
7608                           if test "$enableval" = yes; then
7609                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7610                           else
7611                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7612                           fi
7613
7614 else
7615
7616                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7617                           if test "x$LINE" != x ; then
7618                             eval "DEFAULT_$LINE"
7619                           else
7620                             no_cache=1
7621                           fi
7622
7623                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7624
7625 fi;
7626
7627           eval "$ac_cv_use_metafile"
7628           if test "$no_cache" != 1; then
7629             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7630           fi
7631
7632           if test "$wxUSE_METAFILE" = yes; then
7633             echo "$as_me:$LINENO: result: yes" >&5
7634 echo "${ECHO_T}yes" >&6
7635           else
7636             echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6
7638           fi
7639
7640
7641
7642
7643
7644           enablestring=
7645           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7646 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7647           no_cache=0
7648           # Check whether --enable-controls or --disable-controls was given.
7649 if test "${enable_controls+set}" = set; then
7650   enableval="$enable_controls"
7651
7652                           if test "$enableval" = yes; then
7653                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7654                           else
7655                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7656                           fi
7657
7658 else
7659
7660                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7661                           if test "x$LINE" != x ; then
7662                             eval "DEFAULT_$LINE"
7663                           else
7664                             no_cache=1
7665                           fi
7666
7667                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7668
7669 fi;
7670
7671           eval "$ac_cv_use_controls"
7672           if test "$no_cache" != 1; then
7673             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7674           fi
7675
7676           if test "$wxUSE_CONTROLS" = yes; then
7677             echo "$as_me:$LINENO: result: yes" >&5
7678 echo "${ECHO_T}yes" >&6
7679           else
7680             echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6
7682           fi
7683
7684
7685 if test "$wxUSE_CONTROLS" = "yes"; then
7686   DEFAULT_wxUSE_ACCEL=yes
7687   DEFAULT_wxUSE_BMPBUTTON=yes
7688   DEFAULT_wxUSE_BUTTON=yes
7689   DEFAULT_wxUSE_CALCTRL=yes
7690   DEFAULT_wxUSE_CARET=yes
7691   DEFAULT_wxUSE_COMBOBOX=yes
7692   DEFAULT_wxUSE_CHECKBOX=yes
7693   DEFAULT_wxUSE_CHECKLISTBOX=yes
7694   DEFAULT_wxUSE_CHOICE=yes
7695   DEFAULT_wxUSE_CHOICEBOOK=yes
7696   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7697   DEFAULT_wxUSE_COMBOBOX=yes
7698   DEFAULT_wxUSE_DATEPICKCTRL=yes
7699   DEFAULT_wxUSE_DISPLAY=yes
7700   DEFAULT_wxUSE_DIRPICKERCTRL=yes
7701   DEFAULT_wxUSE_FILEPICKERCTRL=yes
7702   DEFAULT_wxUSE_FONTPICKERCTRL=yes
7703   DEFAULT_wxUSE_GAUGE=yes
7704   DEFAULT_wxUSE_GRID=yes
7705   DEFAULT_wxUSE_HYPERLINKCTRL=yes
7706   DEFAULT_wxUSE_DATAVIEWCTRL=no
7707   DEFAULT_wxUSE_IMAGLIST=yes
7708   DEFAULT_wxUSE_LISTBOOK=yes
7709   DEFAULT_wxUSE_LISTBOX=yes
7710   DEFAULT_wxUSE_LISTCTRL=yes
7711   DEFAULT_wxUSE_NOTEBOOK=yes
7712   DEFAULT_wxUSE_RADIOBOX=yes
7713   DEFAULT_wxUSE_RADIOBTN=yes
7714   DEFAULT_wxUSE_SASH=yes
7715   DEFAULT_wxUSE_SCROLLBAR=yes
7716   DEFAULT_wxUSE_SLIDER=yes
7717   DEFAULT_wxUSE_SPINBTN=yes
7718   DEFAULT_wxUSE_SPINCTRL=yes
7719   DEFAULT_wxUSE_SPLITTER=yes
7720   DEFAULT_wxUSE_STATBMP=yes
7721   DEFAULT_wxUSE_STATBOX=yes
7722   DEFAULT_wxUSE_STATLINE=yes
7723   DEFAULT_wxUSE_STATUSBAR=yes
7724   DEFAULT_wxUSE_TAB_DIALOG=yes
7725   DEFAULT_wxUSE_TOGGLEBTN=yes
7726   DEFAULT_wxUSE_TOOLBAR=yes
7727   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7728   DEFAULT_wxUSE_TOOLTIPS=yes
7729   DEFAULT_wxUSE_TREEBOOK=yes
7730   DEFAULT_wxUSE_TOOLBOOK=yes
7731   DEFAULT_wxUSE_TREECTRL=yes
7732   DEFAULT_wxUSE_POPUPWIN=yes
7733   DEFAULT_wxUSE_TIPWINDOW=yes
7734 elif test "$wxUSE_CONTROLS" = "no"; then
7735   DEFAULT_wxUSE_ACCEL=no
7736   DEFAULT_wxUSE_BMPBUTTON=no
7737   DEFAULT_wxUSE_BUTTON=no
7738   DEFAULT_wxUSE_CALCTRL=no
7739   DEFAULT_wxUSE_CARET=no
7740   DEFAULT_wxUSE_COMBOBOX=no
7741   DEFAULT_wxUSE_CHECKBOX=no
7742   DEFAULT_wxUSE_CHECKLISTBOX=no
7743   DEFAULT_wxUSE_CHOICE=no
7744   DEFAULT_wxUSE_CHOICEBOOK=no
7745   DEFAULT_wxUSE_COLOURPICKERCTRL=no
7746   DEFAULT_wxUSE_COMBOBOX=no
7747   DEFAULT_wxUSE_DATEPICKCTRL=no
7748   DEFAULT_wxUSE_DISPLAY=no
7749   DEFAULT_wxUSE_DIRPICKERCTRL=no
7750   DEFAULT_wxUSE_FILEPICKERCTRL=no
7751   DEFAULT_wxUSE_FONTPICKERCTRL=no
7752   DEFAULT_wxUSE_GAUGE=no
7753   DEFAULT_wxUSE_GRID=no
7754   DEFAULT_wxUSE_HYPERLINKCTRL=no
7755   DEFAULT_wxUSE_DATAVIEWCTRL=no
7756   DEFAULT_wxUSE_IMAGLIST=no
7757   DEFAULT_wxUSE_LISTBOOK=no
7758   DEFAULT_wxUSE_LISTBOX=no
7759   DEFAULT_wxUSE_LISTCTRL=no
7760   DEFAULT_wxUSE_NOTEBOOK=no
7761   DEFAULT_wxUSE_RADIOBOX=no
7762   DEFAULT_wxUSE_RADIOBTN=no
7763   DEFAULT_wxUSE_SASH=no
7764   DEFAULT_wxUSE_SCROLLBAR=no
7765   DEFAULT_wxUSE_SLIDER=no
7766   DEFAULT_wxUSE_SPINBTN=no
7767   DEFAULT_wxUSE_SPINCTRL=no
7768   DEFAULT_wxUSE_SPLITTER=no
7769   DEFAULT_wxUSE_STATBMP=no
7770   DEFAULT_wxUSE_STATBOX=no
7771   DEFAULT_wxUSE_STATLINE=no
7772   DEFAULT_wxUSE_STATUSBAR=no
7773   DEFAULT_wxUSE_TAB_DIALOG=no
7774   DEFAULT_wxUSE_TOGGLEBTN=no
7775   DEFAULT_wxUSE_TOOLBAR=no
7776   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7777   DEFAULT_wxUSE_TOOLTIPS=no
7778   DEFAULT_wxUSE_TREEBOOK=no
7779   DEFAULT_wxUSE_TOOLBOOK=no
7780   DEFAULT_wxUSE_TREECTRL=no
7781   DEFAULT_wxUSE_POPUPWIN=no
7782   DEFAULT_wxUSE_TIPWINDOW=no
7783 fi
7784
7785
7786           enablestring=
7787           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7788 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7789           no_cache=0
7790           # Check whether --enable-accel or --disable-accel was given.
7791 if test "${enable_accel+set}" = set; then
7792   enableval="$enable_accel"
7793
7794                           if test "$enableval" = yes; then
7795                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7796                           else
7797                             ac_cv_use_accel='wxUSE_ACCEL=no'
7798                           fi
7799
7800 else
7801
7802                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7803                           if test "x$LINE" != x ; then
7804                             eval "DEFAULT_$LINE"
7805                           else
7806                             no_cache=1
7807                           fi
7808
7809                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7810
7811 fi;
7812
7813           eval "$ac_cv_use_accel"
7814           if test "$no_cache" != 1; then
7815             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7816           fi
7817
7818           if test "$wxUSE_ACCEL" = yes; then
7819             echo "$as_me:$LINENO: result: yes" >&5
7820 echo "${ECHO_T}yes" >&6
7821           else
7822             echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6
7824           fi
7825
7826
7827           enablestring=
7828           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7829 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7830           no_cache=0
7831           # Check whether --enable-button or --disable-button was given.
7832 if test "${enable_button+set}" = set; then
7833   enableval="$enable_button"
7834
7835                           if test "$enableval" = yes; then
7836                             ac_cv_use_button='wxUSE_BUTTON=yes'
7837                           else
7838                             ac_cv_use_button='wxUSE_BUTTON=no'
7839                           fi
7840
7841 else
7842
7843                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7844                           if test "x$LINE" != x ; then
7845                             eval "DEFAULT_$LINE"
7846                           else
7847                             no_cache=1
7848                           fi
7849
7850                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7851
7852 fi;
7853
7854           eval "$ac_cv_use_button"
7855           if test "$no_cache" != 1; then
7856             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7857           fi
7858
7859           if test "$wxUSE_BUTTON" = yes; then
7860             echo "$as_me:$LINENO: result: yes" >&5
7861 echo "${ECHO_T}yes" >&6
7862           else
7863             echo "$as_me:$LINENO: result: no" >&5
7864 echo "${ECHO_T}no" >&6
7865           fi
7866
7867
7868           enablestring=
7869           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7870 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7871           no_cache=0
7872           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7873 if test "${enable_bmpbutton+set}" = set; then
7874   enableval="$enable_bmpbutton"
7875
7876                           if test "$enableval" = yes; then
7877                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7878                           else
7879                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7880                           fi
7881
7882 else
7883
7884                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7885                           if test "x$LINE" != x ; then
7886                             eval "DEFAULT_$LINE"
7887                           else
7888                             no_cache=1
7889                           fi
7890
7891                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7892
7893 fi;
7894
7895           eval "$ac_cv_use_bmpbutton"
7896           if test "$no_cache" != 1; then
7897             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7898           fi
7899
7900           if test "$wxUSE_BMPBUTTON" = yes; then
7901             echo "$as_me:$LINENO: result: yes" >&5
7902 echo "${ECHO_T}yes" >&6
7903           else
7904             echo "$as_me:$LINENO: result: no" >&5
7905 echo "${ECHO_T}no" >&6
7906           fi
7907
7908
7909           enablestring=
7910           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7911 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7912           no_cache=0
7913           # Check whether --enable-calendar or --disable-calendar was given.
7914 if test "${enable_calendar+set}" = set; then
7915   enableval="$enable_calendar"
7916
7917                           if test "$enableval" = yes; then
7918                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7919                           else
7920                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7921                           fi
7922
7923 else
7924
7925                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7926                           if test "x$LINE" != x ; then
7927                             eval "DEFAULT_$LINE"
7928                           else
7929                             no_cache=1
7930                           fi
7931
7932                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7933
7934 fi;
7935
7936           eval "$ac_cv_use_calendar"
7937           if test "$no_cache" != 1; then
7938             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7939           fi
7940
7941           if test "$wxUSE_CALCTRL" = yes; then
7942             echo "$as_me:$LINENO: result: yes" >&5
7943 echo "${ECHO_T}yes" >&6
7944           else
7945             echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6
7947           fi
7948
7949
7950           enablestring=
7951           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7952 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7953           no_cache=0
7954           # Check whether --enable-caret or --disable-caret was given.
7955 if test "${enable_caret+set}" = set; then
7956   enableval="$enable_caret"
7957
7958                           if test "$enableval" = yes; then
7959                             ac_cv_use_caret='wxUSE_CARET=yes'
7960                           else
7961                             ac_cv_use_caret='wxUSE_CARET=no'
7962                           fi
7963
7964 else
7965
7966                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7967                           if test "x$LINE" != x ; then
7968                             eval "DEFAULT_$LINE"
7969                           else
7970                             no_cache=1
7971                           fi
7972
7973                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7974
7975 fi;
7976
7977           eval "$ac_cv_use_caret"
7978           if test "$no_cache" != 1; then
7979             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7980           fi
7981
7982           if test "$wxUSE_CARET" = yes; then
7983             echo "$as_me:$LINENO: result: yes" >&5
7984 echo "${ECHO_T}yes" >&6
7985           else
7986             echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6
7988           fi
7989
7990
7991           enablestring=
7992           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7993 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7994           no_cache=0
7995           # Check whether --enable-checkbox or --disable-checkbox was given.
7996 if test "${enable_checkbox+set}" = set; then
7997   enableval="$enable_checkbox"
7998
7999                           if test "$enableval" = yes; then
8000                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8001                           else
8002                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8003                           fi
8004
8005 else
8006
8007                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8008                           if test "x$LINE" != x ; then
8009                             eval "DEFAULT_$LINE"
8010                           else
8011                             no_cache=1
8012                           fi
8013
8014                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8015
8016 fi;
8017
8018           eval "$ac_cv_use_checkbox"
8019           if test "$no_cache" != 1; then
8020             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8021           fi
8022
8023           if test "$wxUSE_CHECKBOX" = yes; then
8024             echo "$as_me:$LINENO: result: yes" >&5
8025 echo "${ECHO_T}yes" >&6
8026           else
8027             echo "$as_me:$LINENO: result: no" >&5
8028 echo "${ECHO_T}no" >&6
8029           fi
8030
8031
8032           enablestring=
8033           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8034 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8035           no_cache=0
8036           # Check whether --enable-checklst or --disable-checklst was given.
8037 if test "${enable_checklst+set}" = set; then
8038   enableval="$enable_checklst"
8039
8040                           if test "$enableval" = yes; then
8041                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8042                           else
8043                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
8044                           fi
8045
8046 else
8047
8048                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8049                           if test "x$LINE" != x ; then
8050                             eval "DEFAULT_$LINE"
8051                           else
8052                             no_cache=1
8053                           fi
8054
8055                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8056
8057 fi;
8058
8059           eval "$ac_cv_use_checklst"
8060           if test "$no_cache" != 1; then
8061             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8062           fi
8063
8064           if test "$wxUSE_CHECKLST" = yes; then
8065             echo "$as_me:$LINENO: result: yes" >&5
8066 echo "${ECHO_T}yes" >&6
8067           else
8068             echo "$as_me:$LINENO: result: no" >&5
8069 echo "${ECHO_T}no" >&6
8070           fi
8071
8072
8073           enablestring=
8074           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8075 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8076           no_cache=0
8077           # Check whether --enable-choice or --disable-choice was given.
8078 if test "${enable_choice+set}" = set; then
8079   enableval="$enable_choice"
8080
8081                           if test "$enableval" = yes; then
8082                             ac_cv_use_choice='wxUSE_CHOICE=yes'
8083                           else
8084                             ac_cv_use_choice='wxUSE_CHOICE=no'
8085                           fi
8086
8087 else
8088
8089                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8090                           if test "x$LINE" != x ; then
8091                             eval "DEFAULT_$LINE"
8092                           else
8093                             no_cache=1
8094                           fi
8095
8096                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8097
8098 fi;
8099
8100           eval "$ac_cv_use_choice"
8101           if test "$no_cache" != 1; then
8102             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8103           fi
8104
8105           if test "$wxUSE_CHOICE" = yes; then
8106             echo "$as_me:$LINENO: result: yes" >&5
8107 echo "${ECHO_T}yes" >&6
8108           else
8109             echo "$as_me:$LINENO: result: no" >&5
8110 echo "${ECHO_T}no" >&6
8111           fi
8112
8113
8114           enablestring=
8115           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8116 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8117           no_cache=0
8118           # Check whether --enable-choicebook or --disable-choicebook was given.
8119 if test "${enable_choicebook+set}" = set; then
8120   enableval="$enable_choicebook"
8121
8122                           if test "$enableval" = yes; then
8123                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8124                           else
8125                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8126                           fi
8127
8128 else
8129
8130                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8131                           if test "x$LINE" != x ; then
8132                             eval "DEFAULT_$LINE"
8133                           else
8134                             no_cache=1
8135                           fi
8136
8137                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8138
8139 fi;
8140
8141           eval "$ac_cv_use_choicebook"
8142           if test "$no_cache" != 1; then
8143             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8144           fi
8145
8146           if test "$wxUSE_CHOICEBOOK" = yes; then
8147             echo "$as_me:$LINENO: result: yes" >&5
8148 echo "${ECHO_T}yes" >&6
8149           else
8150             echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6
8152           fi
8153
8154
8155           enablestring=
8156           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8157 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8158           no_cache=0
8159           # Check whether --enable-colourpicker or --disable-colourpicker was given.
8160 if test "${enable_colourpicker+set}" = set; then
8161   enableval="$enable_colourpicker"
8162
8163                           if test "$enableval" = yes; then
8164                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8165                           else
8166                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8167                           fi
8168
8169 else
8170
8171                           LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8172                           if test "x$LINE" != x ; then
8173                             eval "DEFAULT_$LINE"
8174                           else
8175                             no_cache=1
8176                           fi
8177
8178                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8179
8180 fi;
8181
8182           eval "$ac_cv_use_colourpicker"
8183           if test "$no_cache" != 1; then
8184             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8185           fi
8186
8187           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8188             echo "$as_me:$LINENO: result: yes" >&5
8189 echo "${ECHO_T}yes" >&6
8190           else
8191             echo "$as_me:$LINENO: result: no" >&5
8192 echo "${ECHO_T}no" >&6
8193           fi
8194
8195
8196           enablestring=
8197           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8198 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8199           no_cache=0
8200           # Check whether --enable-combobox or --disable-combobox was given.
8201 if test "${enable_combobox+set}" = set; then
8202   enableval="$enable_combobox"
8203
8204                           if test "$enableval" = yes; then
8205                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8206                           else
8207                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8208                           fi
8209
8210 else
8211
8212                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8213                           if test "x$LINE" != x ; then
8214                             eval "DEFAULT_$LINE"
8215                           else
8216                             no_cache=1
8217                           fi
8218
8219                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8220
8221 fi;
8222
8223           eval "$ac_cv_use_combobox"
8224           if test "$no_cache" != 1; then
8225             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8226           fi
8227
8228           if test "$wxUSE_COMBOBOX" = yes; then
8229             echo "$as_me:$LINENO: result: yes" >&5
8230 echo "${ECHO_T}yes" >&6
8231           else
8232             echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6
8234           fi
8235
8236
8237           enablestring=
8238           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8239 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
8240           no_cache=0
8241           # Check whether --enable-comboctrl or --disable-comboctrl was given.
8242 if test "${enable_comboctrl+set}" = set; then
8243   enableval="$enable_comboctrl"
8244
8245                           if test "$enableval" = yes; then
8246                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
8247                           else
8248                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
8249                           fi
8250
8251 else
8252
8253                           LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
8254                           if test "x$LINE" != x ; then
8255                             eval "DEFAULT_$LINE"
8256                           else
8257                             no_cache=1
8258                           fi
8259
8260                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
8261
8262 fi;
8263
8264           eval "$ac_cv_use_comboctrl"
8265           if test "$no_cache" != 1; then
8266             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
8267           fi
8268
8269           if test "$wxUSE_COMBOCTRL" = yes; then
8270             echo "$as_me:$LINENO: result: yes" >&5
8271 echo "${ECHO_T}yes" >&6
8272           else
8273             echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6
8275           fi
8276
8277
8278           enablestring=
8279           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8280 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8281           no_cache=0
8282           # Check whether --enable-datepick or --disable-datepick was given.
8283 if test "${enable_datepick+set}" = set; then
8284   enableval="$enable_datepick"
8285
8286                           if test "$enableval" = yes; then
8287                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8288                           else
8289                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8290                           fi
8291
8292 else
8293
8294                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8295                           if test "x$LINE" != x ; then
8296                             eval "DEFAULT_$LINE"
8297                           else
8298                             no_cache=1
8299                           fi
8300
8301                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8302
8303 fi;
8304
8305           eval "$ac_cv_use_datepick"
8306           if test "$no_cache" != 1; then
8307             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8308           fi
8309
8310           if test "$wxUSE_DATEPICKCTRL" = yes; then
8311             echo "$as_me:$LINENO: result: yes" >&5
8312 echo "${ECHO_T}yes" >&6
8313           else
8314             echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6
8316           fi
8317
8318
8319           enablestring=
8320           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8321 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8322           no_cache=0
8323           # Check whether --enable-dirpicker or --disable-dirpicker was given.
8324 if test "${enable_dirpicker+set}" = set; then
8325   enableval="$enable_dirpicker"
8326
8327                           if test "$enableval" = yes; then
8328                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8329                           else
8330                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8331                           fi
8332
8333 else
8334
8335                           LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8336                           if test "x$LINE" != x ; then
8337                             eval "DEFAULT_$LINE"
8338                           else
8339                             no_cache=1
8340                           fi
8341
8342                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8343
8344 fi;
8345
8346           eval "$ac_cv_use_dirpicker"
8347           if test "$no_cache" != 1; then
8348             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8349           fi
8350
8351           if test "$wxUSE_DIRPICKERCTRL" = yes; then
8352             echo "$as_me:$LINENO: result: yes" >&5
8353 echo "${ECHO_T}yes" >&6
8354           else
8355             echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8357           fi
8358
8359
8360           enablestring=
8361           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8362 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8363           no_cache=0
8364           # Check whether --enable-display or --disable-display was given.
8365 if test "${enable_display+set}" = set; then
8366   enableval="$enable_display"
8367
8368                           if test "$enableval" = yes; then
8369                             ac_cv_use_display='wxUSE_DISPLAY=yes'
8370                           else
8371                             ac_cv_use_display='wxUSE_DISPLAY=no'
8372                           fi
8373
8374 else
8375
8376                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8377                           if test "x$LINE" != x ; then
8378                             eval "DEFAULT_$LINE"
8379                           else
8380                             no_cache=1
8381                           fi
8382
8383                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8384
8385 fi;
8386
8387           eval "$ac_cv_use_display"
8388           if test "$no_cache" != 1; then
8389             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8390           fi
8391
8392           if test "$wxUSE_DISPLAY" = yes; then
8393             echo "$as_me:$LINENO: result: yes" >&5
8394 echo "${ECHO_T}yes" >&6
8395           else
8396             echo "$as_me:$LINENO: result: no" >&5
8397 echo "${ECHO_T}no" >&6
8398           fi
8399
8400
8401           enablestring=
8402           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8403 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8404           no_cache=0
8405           # Check whether --enable-filepicker or --disable-filepicker was given.
8406 if test "${enable_filepicker+set}" = set; then
8407   enableval="$enable_filepicker"
8408
8409                           if test "$enableval" = yes; then
8410                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8411                           else
8412                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8413                           fi
8414
8415 else
8416
8417                           LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8418                           if test "x$LINE" != x ; then
8419                             eval "DEFAULT_$LINE"
8420                           else
8421                             no_cache=1
8422                           fi
8423
8424                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8425
8426 fi;
8427
8428           eval "$ac_cv_use_filepicker"
8429           if test "$no_cache" != 1; then
8430             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8431           fi
8432
8433           if test "$wxUSE_FILEPICKERCTRL" = yes; then
8434             echo "$as_me:$LINENO: result: yes" >&5
8435 echo "${ECHO_T}yes" >&6
8436           else
8437             echo "$as_me:$LINENO: result: no" >&5
8438 echo "${ECHO_T}no" >&6
8439           fi
8440
8441
8442           enablestring=
8443           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8444 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8445           no_cache=0
8446           # Check whether --enable-fontpicker or --disable-fontpicker was given.
8447 if test "${enable_fontpicker+set}" = set; then
8448   enableval="$enable_fontpicker"
8449
8450                           if test "$enableval" = yes; then
8451                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8452                           else
8453                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8454                           fi
8455
8456 else
8457
8458                           LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8459                           if test "x$LINE" != x ; then
8460                             eval "DEFAULT_$LINE"
8461                           else
8462                             no_cache=1
8463                           fi
8464
8465                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8466
8467 fi;
8468
8469           eval "$ac_cv_use_fontpicker"
8470           if test "$no_cache" != 1; then
8471             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8472           fi
8473
8474           if test "$wxUSE_FONTPICKERCTRL" = yes; then
8475             echo "$as_me:$LINENO: result: yes" >&5
8476 echo "${ECHO_T}yes" >&6
8477           else
8478             echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6
8480           fi
8481
8482
8483           enablestring=
8484           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8485 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8486           no_cache=0
8487           # Check whether --enable-gauge or --disable-gauge was given.
8488 if test "${enable_gauge+set}" = set; then
8489   enableval="$enable_gauge"
8490
8491                           if test "$enableval" = yes; then
8492                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
8493                           else
8494                             ac_cv_use_gauge='wxUSE_GAUGE=no'
8495                           fi
8496
8497 else
8498
8499                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8500                           if test "x$LINE" != x ; then
8501                             eval "DEFAULT_$LINE"
8502                           else
8503                             no_cache=1
8504                           fi
8505
8506                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8507
8508 fi;
8509
8510           eval "$ac_cv_use_gauge"
8511           if test "$no_cache" != 1; then
8512             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8513           fi
8514
8515           if test "$wxUSE_GAUGE" = yes; then
8516             echo "$as_me:$LINENO: result: yes" >&5
8517 echo "${ECHO_T}yes" >&6
8518           else
8519             echo "$as_me:$LINENO: result: no" >&5
8520 echo "${ECHO_T}no" >&6
8521           fi
8522
8523
8524           enablestring=
8525           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8526 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8527           no_cache=0
8528           # Check whether --enable-grid or --disable-grid was given.
8529 if test "${enable_grid+set}" = set; then
8530   enableval="$enable_grid"
8531
8532                           if test "$enableval" = yes; then
8533                             ac_cv_use_grid='wxUSE_GRID=yes'
8534                           else
8535                             ac_cv_use_grid='wxUSE_GRID=no'
8536                           fi
8537
8538 else
8539
8540                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8541                           if test "x$LINE" != x ; then
8542                             eval "DEFAULT_$LINE"
8543                           else
8544                             no_cache=1
8545                           fi
8546
8547                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8548
8549 fi;
8550
8551           eval "$ac_cv_use_grid"
8552           if test "$no_cache" != 1; then
8553             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8554           fi
8555
8556           if test "$wxUSE_GRID" = yes; then
8557             echo "$as_me:$LINENO: result: yes" >&5
8558 echo "${ECHO_T}yes" >&6
8559           else
8560             echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6
8562           fi
8563
8564
8565           enablestring=
8566           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8567 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8568           no_cache=0
8569           # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8570 if test "${enable_dataviewctrl+set}" = set; then
8571   enableval="$enable_dataviewctrl"
8572
8573                           if test "$enableval" = yes; then
8574                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8575                           else
8576                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8577                           fi
8578
8579 else
8580
8581                           LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8582                           if test "x$LINE" != x ; then
8583                             eval "DEFAULT_$LINE"
8584                           else
8585                             no_cache=1
8586                           fi
8587
8588                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8589
8590 fi;
8591
8592           eval "$ac_cv_use_dataviewctrl"
8593           if test "$no_cache" != 1; then
8594             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8595           fi
8596
8597           if test "$wxUSE_DATAVIEWCTRL" = yes; then
8598             echo "$as_me:$LINENO: result: yes" >&5
8599 echo "${ECHO_T}yes" >&6
8600           else
8601             echo "$as_me:$LINENO: result: no" >&5
8602 echo "${ECHO_T}no" >&6
8603           fi
8604
8605
8606           enablestring=
8607           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8608 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8609           no_cache=0
8610           # Check whether --enable-hyperlink or --disable-hyperlink was given.
8611 if test "${enable_hyperlink+set}" = set; then
8612   enableval="$enable_hyperlink"
8613
8614                           if test "$enableval" = yes; then
8615                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8616                           else
8617                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8618                           fi
8619
8620 else
8621
8622                           LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8623                           if test "x$LINE" != x ; then
8624                             eval "DEFAULT_$LINE"
8625                           else
8626                             no_cache=1
8627                           fi
8628
8629                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8630
8631 fi;
8632
8633           eval "$ac_cv_use_hyperlink"
8634           if test "$no_cache" != 1; then
8635             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8636           fi
8637
8638           if test "$wxUSE_HYPERLINKCTRL" = yes; then
8639             echo "$as_me:$LINENO: result: yes" >&5
8640 echo "${ECHO_T}yes" >&6
8641           else
8642             echo "$as_me:$LINENO: result: no" >&5
8643 echo "${ECHO_T}no" >&6
8644           fi
8645
8646
8647           enablestring=
8648           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8649 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8650           no_cache=0
8651           # Check whether --enable-imaglist or --disable-imaglist was given.
8652 if test "${enable_imaglist+set}" = set; then
8653   enableval="$enable_imaglist"
8654
8655                           if test "$enableval" = yes; then
8656                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8657                           else
8658                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8659                           fi
8660
8661 else
8662
8663                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8664                           if test "x$LINE" != x ; then
8665                             eval "DEFAULT_$LINE"
8666                           else
8667                             no_cache=1
8668                           fi
8669
8670                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8671
8672 fi;
8673
8674           eval "$ac_cv_use_imaglist"
8675           if test "$no_cache" != 1; then
8676             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8677           fi
8678
8679           if test "$wxUSE_IMAGLIST" = yes; then
8680             echo "$as_me:$LINENO: result: yes" >&5
8681 echo "${ECHO_T}yes" >&6
8682           else
8683             echo "$as_me:$LINENO: result: no" >&5
8684 echo "${ECHO_T}no" >&6
8685           fi
8686
8687
8688           enablestring=
8689           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8690 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8691           no_cache=0
8692           # Check whether --enable-listbook or --disable-listbook was given.
8693 if test "${enable_listbook+set}" = set; then
8694   enableval="$enable_listbook"
8695
8696                           if test "$enableval" = yes; then
8697                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8698                           else
8699                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8700                           fi
8701
8702 else
8703
8704                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8705                           if test "x$LINE" != x ; then
8706                             eval "DEFAULT_$LINE"
8707                           else
8708                             no_cache=1
8709                           fi
8710
8711                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8712
8713 fi;
8714
8715           eval "$ac_cv_use_listbook"
8716           if test "$no_cache" != 1; then
8717             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8718           fi
8719
8720           if test "$wxUSE_LISTBOOK" = yes; then
8721             echo "$as_me:$LINENO: result: yes" >&5
8722 echo "${ECHO_T}yes" >&6
8723           else
8724             echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6
8726           fi
8727
8728
8729           enablestring=
8730           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8731 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8732           no_cache=0
8733           # Check whether --enable-listbox or --disable-listbox was given.
8734 if test "${enable_listbox+set}" = set; then
8735   enableval="$enable_listbox"
8736
8737                           if test "$enableval" = yes; then
8738                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8739                           else
8740                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
8741                           fi
8742
8743 else
8744
8745                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8746                           if test "x$LINE" != x ; then
8747                             eval "DEFAULT_$LINE"
8748                           else
8749                             no_cache=1
8750                           fi
8751
8752                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8753
8754 fi;
8755
8756           eval "$ac_cv_use_listbox"
8757           if test "$no_cache" != 1; then
8758             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8759           fi
8760
8761           if test "$wxUSE_LISTBOX" = yes; then
8762             echo "$as_me:$LINENO: result: yes" >&5
8763 echo "${ECHO_T}yes" >&6
8764           else
8765             echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6
8767           fi
8768
8769
8770           enablestring=
8771           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8772 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8773           no_cache=0
8774           # Check whether --enable-listctrl or --disable-listctrl was given.
8775 if test "${enable_listctrl+set}" = set; then
8776   enableval="$enable_listctrl"
8777
8778                           if test "$enableval" = yes; then
8779                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8780                           else
8781                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8782                           fi
8783
8784 else
8785
8786                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8787                           if test "x$LINE" != x ; then
8788                             eval "DEFAULT_$LINE"
8789                           else
8790                             no_cache=1
8791                           fi
8792
8793                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8794
8795 fi;
8796
8797           eval "$ac_cv_use_listctrl"
8798           if test "$no_cache" != 1; then
8799             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8800           fi
8801
8802           if test "$wxUSE_LISTCTRL" = yes; then
8803             echo "$as_me:$LINENO: result: yes" >&5
8804 echo "${ECHO_T}yes" >&6
8805           else
8806             echo "$as_me:$LINENO: result: no" >&5
8807 echo "${ECHO_T}no" >&6
8808           fi
8809
8810
8811           enablestring=
8812           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8813 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8814           no_cache=0
8815           # Check whether --enable-notebook or --disable-notebook was given.
8816 if test "${enable_notebook+set}" = set; then
8817   enableval="$enable_notebook"
8818
8819                           if test "$enableval" = yes; then
8820                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8821                           else
8822                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8823                           fi
8824
8825 else
8826
8827                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8828                           if test "x$LINE" != x ; then
8829                             eval "DEFAULT_$LINE"
8830                           else
8831                             no_cache=1
8832                           fi
8833
8834                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8835
8836 fi;
8837
8838           eval "$ac_cv_use_notebook"
8839           if test "$no_cache" != 1; then
8840             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8841           fi
8842
8843           if test "$wxUSE_NOTEBOOK" = yes; then
8844             echo "$as_me:$LINENO: result: yes" >&5
8845 echo "${ECHO_T}yes" >&6
8846           else
8847             echo "$as_me:$LINENO: result: no" >&5
8848 echo "${ECHO_T}no" >&6
8849           fi
8850
8851
8852           enablestring=
8853           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8854 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
8855           no_cache=0
8856           # Check whether --enable-odcombobox or --disable-odcombobox was given.
8857 if test "${enable_odcombobox+set}" = set; then
8858   enableval="$enable_odcombobox"
8859
8860                           if test "$enableval" = yes; then
8861                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
8862                           else
8863                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
8864                           fi
8865
8866 else
8867
8868                           LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
8869                           if test "x$LINE" != x ; then
8870                             eval "DEFAULT_$LINE"
8871                           else
8872                             no_cache=1
8873                           fi
8874
8875                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
8876
8877 fi;
8878
8879           eval "$ac_cv_use_odcombobox"
8880           if test "$no_cache" != 1; then
8881             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
8882           fi
8883
8884           if test "$wxUSE_ODCOMBOBOX" = yes; then
8885             echo "$as_me:$LINENO: result: yes" >&5
8886 echo "${ECHO_T}yes" >&6
8887           else
8888             echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6
8890           fi
8891
8892
8893           enablestring=
8894           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8895 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8896           no_cache=0
8897           # Check whether --enable-radiobox or --disable-radiobox was given.
8898 if test "${enable_radiobox+set}" = set; then
8899   enableval="$enable_radiobox"
8900
8901                           if test "$enableval" = yes; then
8902                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8903                           else
8904                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8905                           fi
8906
8907 else
8908
8909                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8910                           if test "x$LINE" != x ; then
8911                             eval "DEFAULT_$LINE"
8912                           else
8913                             no_cache=1
8914                           fi
8915
8916                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8917
8918 fi;
8919
8920           eval "$ac_cv_use_radiobox"
8921           if test "$no_cache" != 1; then
8922             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8923           fi
8924
8925           if test "$wxUSE_RADIOBOX" = yes; then
8926             echo "$as_me:$LINENO: result: yes" >&5
8927 echo "${ECHO_T}yes" >&6
8928           else
8929             echo "$as_me:$LINENO: result: no" >&5
8930 echo "${ECHO_T}no" >&6
8931           fi
8932
8933
8934           enablestring=
8935           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8936 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8937           no_cache=0
8938           # Check whether --enable-radiobtn or --disable-radiobtn was given.
8939 if test "${enable_radiobtn+set}" = set; then
8940   enableval="$enable_radiobtn"
8941
8942                           if test "$enableval" = yes; then
8943                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8944                           else
8945                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8946                           fi
8947
8948 else
8949
8950                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8951                           if test "x$LINE" != x ; then
8952                             eval "DEFAULT_$LINE"
8953                           else
8954                             no_cache=1
8955                           fi
8956
8957                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8958
8959 fi;
8960
8961           eval "$ac_cv_use_radiobtn"
8962           if test "$no_cache" != 1; then
8963             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8964           fi
8965
8966           if test "$wxUSE_RADIOBTN" = yes; then
8967             echo "$as_me:$LINENO: result: yes" >&5
8968 echo "${ECHO_T}yes" >&6
8969           else
8970             echo "$as_me:$LINENO: result: no" >&5
8971 echo "${ECHO_T}no" >&6
8972           fi
8973
8974
8975           enablestring=
8976           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8977 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8978           no_cache=0
8979           # Check whether --enable-sash or --disable-sash was given.
8980 if test "${enable_sash+set}" = set; then
8981   enableval="$enable_sash"
8982
8983                           if test "$enableval" = yes; then
8984                             ac_cv_use_sash='wxUSE_SASH=yes'
8985                           else
8986                             ac_cv_use_sash='wxUSE_SASH=no'
8987                           fi
8988
8989 else
8990
8991                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8992                           if test "x$LINE" != x ; then
8993                             eval "DEFAULT_$LINE"
8994                           else
8995                             no_cache=1
8996                           fi
8997
8998                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8999
9000 fi;
9001
9002           eval "$ac_cv_use_sash"
9003           if test "$no_cache" != 1; then
9004             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9005           fi
9006
9007           if test "$wxUSE_SASH" = yes; then
9008             echo "$as_me:$LINENO: result: yes" >&5
9009 echo "${ECHO_T}yes" >&6
9010           else
9011             echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6
9013           fi
9014
9015
9016           enablestring=
9017           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9018 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9019           no_cache=0
9020           # Check whether --enable-scrollbar or --disable-scrollbar was given.
9021 if test "${enable_scrollbar+set}" = set; then
9022   enableval="$enable_scrollbar"
9023
9024                           if test "$enableval" = yes; then
9025                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9026                           else
9027                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9028                           fi
9029
9030 else
9031
9032                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9033                           if test "x$LINE" != x ; then
9034                             eval "DEFAULT_$LINE"
9035                           else
9036                             no_cache=1
9037                           fi
9038
9039                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9040
9041 fi;
9042
9043           eval "$ac_cv_use_scrollbar"
9044           if test "$no_cache" != 1; then
9045             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9046           fi
9047
9048           if test "$wxUSE_SCROLLBAR" = yes; then
9049             echo "$as_me:$LINENO: result: yes" >&5
9050 echo "${ECHO_T}yes" >&6
9051           else
9052             echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6
9054           fi
9055
9056
9057           enablestring=
9058           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9059 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9060           no_cache=0
9061           # Check whether --enable-slider or --disable-slider was given.
9062 if test "${enable_slider+set}" = set; then
9063   enableval="$enable_slider"
9064
9065                           if test "$enableval" = yes; then
9066                             ac_cv_use_slider='wxUSE_SLIDER=yes'
9067                           else
9068                             ac_cv_use_slider='wxUSE_SLIDER=no'
9069                           fi
9070
9071 else
9072
9073                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9074                           if test "x$LINE" != x ; then
9075                             eval "DEFAULT_$LINE"
9076                           else
9077                             no_cache=1
9078                           fi
9079
9080                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9081
9082 fi;
9083
9084           eval "$ac_cv_use_slider"
9085           if test "$no_cache" != 1; then
9086             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9087           fi
9088
9089           if test "$wxUSE_SLIDER" = yes; then
9090             echo "$as_me:$LINENO: result: yes" >&5
9091 echo "${ECHO_T}yes" >&6
9092           else
9093             echo "$as_me:$LINENO: result: no" >&5
9094 echo "${ECHO_T}no" >&6
9095           fi
9096
9097
9098           enablestring=
9099           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9100 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9101           no_cache=0
9102           # Check whether --enable-spinbtn or --disable-spinbtn was given.
9103 if test "${enable_spinbtn+set}" = set; then
9104   enableval="$enable_spinbtn"
9105
9106                           if test "$enableval" = yes; then
9107                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9108                           else
9109                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9110                           fi
9111
9112 else
9113
9114                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9115                           if test "x$LINE" != x ; then
9116                             eval "DEFAULT_$LINE"
9117                           else
9118                             no_cache=1
9119                           fi
9120
9121                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9122
9123 fi;
9124
9125           eval "$ac_cv_use_spinbtn"
9126           if test "$no_cache" != 1; then
9127             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9128           fi
9129
9130           if test "$wxUSE_SPINBTN" = yes; then
9131             echo "$as_me:$LINENO: result: yes" >&5
9132 echo "${ECHO_T}yes" >&6
9133           else
9134             echo "$as_me:$LINENO: result: no" >&5
9135 echo "${ECHO_T}no" >&6
9136           fi
9137
9138
9139           enablestring=
9140           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9141 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9142           no_cache=0
9143           # Check whether --enable-spinctrl or --disable-spinctrl was given.
9144 if test "${enable_spinctrl+set}" = set; then
9145   enableval="$enable_spinctrl"
9146
9147                           if test "$enableval" = yes; then
9148                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9149                           else
9150                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9151                           fi
9152
9153 else
9154
9155                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9156                           if test "x$LINE" != x ; then
9157                             eval "DEFAULT_$LINE"
9158                           else
9159                             no_cache=1
9160                           fi
9161
9162                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9163
9164 fi;
9165
9166           eval "$ac_cv_use_spinctrl"
9167           if test "$no_cache" != 1; then
9168             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9169           fi
9170
9171           if test "$wxUSE_SPINCTRL" = yes; then
9172             echo "$as_me:$LINENO: result: yes" >&5
9173 echo "${ECHO_T}yes" >&6
9174           else
9175             echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9177           fi
9178
9179
9180           enablestring=
9181           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9182 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9183           no_cache=0
9184           # Check whether --enable-splitter or --disable-splitter was given.
9185 if test "${enable_splitter+set}" = set; then
9186   enableval="$enable_splitter"
9187
9188                           if test "$enableval" = yes; then
9189                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9190                           else
9191                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
9192                           fi
9193
9194 else
9195
9196                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9197                           if test "x$LINE" != x ; then
9198                             eval "DEFAULT_$LINE"
9199                           else
9200                             no_cache=1
9201                           fi
9202
9203                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9204
9205 fi;
9206
9207           eval "$ac_cv_use_splitter"
9208           if test "$no_cache" != 1; then
9209             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9210           fi
9211
9212           if test "$wxUSE_SPLITTER" = yes; then
9213             echo "$as_me:$LINENO: result: yes" >&5
9214 echo "${ECHO_T}yes" >&6
9215           else
9216             echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6
9218           fi
9219
9220
9221           enablestring=
9222           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9223 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9224           no_cache=0
9225           # Check whether --enable-statbmp or --disable-statbmp was given.
9226 if test "${enable_statbmp+set}" = set; then
9227   enableval="$enable_statbmp"
9228
9229                           if test "$enableval" = yes; then
9230                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9231                           else
9232                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
9233                           fi
9234
9235 else
9236
9237                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9238                           if test "x$LINE" != x ; then
9239                             eval "DEFAULT_$LINE"
9240                           else
9241                             no_cache=1
9242                           fi
9243
9244                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9245
9246 fi;
9247
9248           eval "$ac_cv_use_statbmp"
9249           if test "$no_cache" != 1; then
9250             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9251           fi
9252
9253           if test "$wxUSE_STATBMP" = yes; then
9254             echo "$as_me:$LINENO: result: yes" >&5
9255 echo "${ECHO_T}yes" >&6
9256           else
9257             echo "$as_me:$LINENO: result: no" >&5
9258 echo "${ECHO_T}no" >&6
9259           fi
9260
9261
9262           enablestring=
9263           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9264 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9265           no_cache=0
9266           # Check whether --enable-statbox or --disable-statbox was given.
9267 if test "${enable_statbox+set}" = set; then
9268   enableval="$enable_statbox"
9269
9270                           if test "$enableval" = yes; then
9271                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
9272                           else
9273                             ac_cv_use_statbox='wxUSE_STATBOX=no'
9274                           fi
9275
9276 else
9277
9278                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9279                           if test "x$LINE" != x ; then
9280                             eval "DEFAULT_$LINE"
9281                           else
9282                             no_cache=1
9283                           fi
9284
9285                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9286
9287 fi;
9288
9289           eval "$ac_cv_use_statbox"
9290           if test "$no_cache" != 1; then
9291             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9292           fi
9293
9294           if test "$wxUSE_STATBOX" = yes; then
9295             echo "$as_me:$LINENO: result: yes" >&5
9296 echo "${ECHO_T}yes" >&6
9297           else
9298             echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6
9300           fi
9301
9302
9303           enablestring=
9304           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9305 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9306           no_cache=0
9307           # Check whether --enable-statline or --disable-statline was given.
9308 if test "${enable_statline+set}" = set; then
9309   enableval="$enable_statline"
9310
9311                           if test "$enableval" = yes; then
9312                             ac_cv_use_statline='wxUSE_STATLINE=yes'
9313                           else
9314                             ac_cv_use_statline='wxUSE_STATLINE=no'
9315                           fi
9316
9317 else
9318
9319                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9320                           if test "x$LINE" != x ; then
9321                             eval "DEFAULT_$LINE"
9322                           else
9323                             no_cache=1
9324                           fi
9325
9326                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9327
9328 fi;
9329
9330           eval "$ac_cv_use_statline"
9331           if test "$no_cache" != 1; then
9332             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9333           fi
9334
9335           if test "$wxUSE_STATLINE" = yes; then
9336             echo "$as_me:$LINENO: result: yes" >&5
9337 echo "${ECHO_T}yes" >&6
9338           else
9339             echo "$as_me:$LINENO: result: no" >&5
9340 echo "${ECHO_T}no" >&6
9341           fi
9342
9343
9344           enablestring=
9345           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9346 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9347           no_cache=0
9348           # Check whether --enable-stattext or --disable-stattext was given.
9349 if test "${enable_stattext+set}" = set; then
9350   enableval="$enable_stattext"
9351
9352                           if test "$enableval" = yes; then
9353                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9354                           else
9355                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
9356                           fi
9357
9358 else
9359
9360                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9361                           if test "x$LINE" != x ; then
9362                             eval "DEFAULT_$LINE"
9363                           else
9364                             no_cache=1
9365                           fi
9366
9367                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9368
9369 fi;
9370
9371           eval "$ac_cv_use_stattext"
9372           if test "$no_cache" != 1; then
9373             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9374           fi
9375
9376           if test "$wxUSE_STATTEXT" = yes; then
9377             echo "$as_me:$LINENO: result: yes" >&5
9378 echo "${ECHO_T}yes" >&6
9379           else
9380             echo "$as_me:$LINENO: result: no" >&5
9381 echo "${ECHO_T}no" >&6
9382           fi
9383
9384
9385           enablestring=
9386           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9387 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9388           no_cache=0
9389           # Check whether --enable-statusbar or --disable-statusbar was given.
9390 if test "${enable_statusbar+set}" = set; then
9391   enableval="$enable_statusbar"
9392
9393                           if test "$enableval" = yes; then
9394                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9395                           else
9396                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9397                           fi
9398
9399 else
9400
9401                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9402                           if test "x$LINE" != x ; then
9403                             eval "DEFAULT_$LINE"
9404                           else
9405                             no_cache=1
9406                           fi
9407
9408                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9409
9410 fi;
9411
9412           eval "$ac_cv_use_statusbar"
9413           if test "$no_cache" != 1; then
9414             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9415           fi
9416
9417           if test "$wxUSE_STATUSBAR" = yes; then
9418             echo "$as_me:$LINENO: result: yes" >&5
9419 echo "${ECHO_T}yes" >&6
9420           else
9421             echo "$as_me:$LINENO: result: no" >&5
9422 echo "${ECHO_T}no" >&6
9423           fi
9424
9425
9426           enablestring=
9427           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9428 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9429           no_cache=0
9430           # Check whether --enable-tabdialog or --disable-tabdialog was given.
9431 if test "${enable_tabdialog+set}" = set; then
9432   enableval="$enable_tabdialog"
9433
9434                           if test "$enableval" = yes; then
9435                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
9436                           else
9437                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
9438                           fi
9439
9440 else
9441
9442                           LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
9443                           if test "x$LINE" != x ; then
9444                             eval "DEFAULT_$LINE"
9445                           else
9446                             no_cache=1
9447                           fi
9448
9449                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
9450
9451 fi;
9452
9453           eval "$ac_cv_use_tabdialog"
9454           if test "$no_cache" != 1; then
9455             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9456           fi
9457
9458           if test "$wxUSE_TAB_DIALOG" = yes; then
9459             echo "$as_me:$LINENO: result: yes" >&5
9460 echo "${ECHO_T}yes" >&6
9461           else
9462             echo "$as_me:$LINENO: result: no" >&5
9463 echo "${ECHO_T}no" >&6
9464           fi
9465
9466
9467           enablestring=
9468           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9469 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9470           no_cache=0
9471           # Check whether --enable-textctrl or --disable-textctrl was given.
9472 if test "${enable_textctrl+set}" = set; then
9473   enableval="$enable_textctrl"
9474
9475                           if test "$enableval" = yes; then
9476                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9477                           else
9478                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9479                           fi
9480
9481 else
9482
9483                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9484                           if test "x$LINE" != x ; then
9485                             eval "DEFAULT_$LINE"
9486                           else
9487                             no_cache=1
9488                           fi
9489
9490                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9491
9492 fi;
9493
9494           eval "$ac_cv_use_textctrl"
9495           if test "$no_cache" != 1; then
9496             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9497           fi
9498
9499           if test "$wxUSE_TEXTCTRL" = yes; then
9500             echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6
9502           else
9503             echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6
9505           fi
9506
9507
9508           enablestring=
9509           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9510 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9511           no_cache=0
9512           # Check whether --enable-togglebtn or --disable-togglebtn was given.
9513 if test "${enable_togglebtn+set}" = set; then
9514   enableval="$enable_togglebtn"
9515
9516                           if test "$enableval" = yes; then
9517                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9518                           else
9519                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9520                           fi
9521
9522 else
9523
9524                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9525                           if test "x$LINE" != x ; then
9526                             eval "DEFAULT_$LINE"
9527                           else
9528                             no_cache=1
9529                           fi
9530
9531                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9532
9533 fi;
9534
9535           eval "$ac_cv_use_togglebtn"
9536           if test "$no_cache" != 1; then
9537             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9538           fi
9539
9540           if test "$wxUSE_TOGGLEBTN" = yes; then
9541             echo "$as_me:$LINENO: result: yes" >&5
9542 echo "${ECHO_T}yes" >&6
9543           else
9544             echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6
9546           fi
9547
9548
9549           enablestring=
9550           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9551 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9552           no_cache=0
9553           # Check whether --enable-toolbar or --disable-toolbar was given.
9554 if test "${enable_toolbar+set}" = set; then
9555   enableval="$enable_toolbar"
9556
9557                           if test "$enableval" = yes; then
9558                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9559                           else
9560                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9561                           fi
9562
9563 else
9564
9565                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9566                           if test "x$LINE" != x ; then
9567                             eval "DEFAULT_$LINE"
9568                           else
9569                             no_cache=1
9570                           fi
9571
9572                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9573
9574 fi;
9575
9576           eval "$ac_cv_use_toolbar"
9577           if test "$no_cache" != 1; then
9578             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9579           fi
9580
9581           if test "$wxUSE_TOOLBAR" = yes; then
9582             echo "$as_me:$LINENO: result: yes" >&5
9583 echo "${ECHO_T}yes" >&6
9584           else
9585             echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6
9587           fi
9588
9589
9590           enablestring=
9591           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9592 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9593           no_cache=0
9594           # Check whether --enable-tbarnative or --disable-tbarnative was given.
9595 if test "${enable_tbarnative+set}" = set; then
9596   enableval="$enable_tbarnative"
9597
9598                           if test "$enableval" = yes; then
9599                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9600                           else
9601                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9602                           fi
9603
9604 else
9605
9606                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9607                           if test "x$LINE" != x ; then
9608                             eval "DEFAULT_$LINE"
9609                           else
9610                             no_cache=1
9611                           fi
9612
9613                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9614
9615 fi;
9616
9617           eval "$ac_cv_use_tbarnative"
9618           if test "$no_cache" != 1; then
9619             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9620           fi
9621
9622           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9623             echo "$as_me:$LINENO: result: yes" >&5
9624 echo "${ECHO_T}yes" >&6
9625           else
9626             echo "$as_me:$LINENO: result: no" >&5
9627 echo "${ECHO_T}no" >&6
9628           fi
9629
9630
9631           enablestring=
9632           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9633 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9634           no_cache=0
9635           # Check whether --enable-treebook or --disable-treebook was given.
9636 if test "${enable_treebook+set}" = set; then
9637   enableval="$enable_treebook"
9638
9639                           if test "$enableval" = yes; then
9640                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9641                           else
9642                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9643                           fi
9644
9645 else
9646
9647                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9648                           if test "x$LINE" != x ; then
9649                             eval "DEFAULT_$LINE"
9650                           else
9651                             no_cache=1
9652                           fi
9653
9654                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9655
9656 fi;
9657
9658           eval "$ac_cv_use_treebook"
9659           if test "$no_cache" != 1; then
9660             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9661           fi
9662
9663           if test "$wxUSE_TREEBOOK" = yes; then
9664             echo "$as_me:$LINENO: result: yes" >&5
9665 echo "${ECHO_T}yes" >&6
9666           else
9667             echo "$as_me:$LINENO: result: no" >&5
9668 echo "${ECHO_T}no" >&6
9669           fi
9670
9671
9672           enablestring=
9673           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9674 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9675           no_cache=0
9676           # Check whether --enable-toolbook or --disable-toolbook was given.
9677 if test "${enable_toolbook+set}" = set; then
9678   enableval="$enable_toolbook"
9679
9680                           if test "$enableval" = yes; then
9681                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9682                           else
9683                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9684                           fi
9685
9686 else
9687
9688                           LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9689                           if test "x$LINE" != x ; then
9690                             eval "DEFAULT_$LINE"
9691                           else
9692                             no_cache=1
9693                           fi
9694
9695                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9696
9697 fi;
9698
9699           eval "$ac_cv_use_toolbook"
9700           if test "$no_cache" != 1; then
9701             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9702           fi
9703
9704           if test "$wxUSE_TOOLBOOK" = yes; then
9705             echo "$as_me:$LINENO: result: yes" >&5
9706 echo "${ECHO_T}yes" >&6
9707           else
9708             echo "$as_me:$LINENO: result: no" >&5
9709 echo "${ECHO_T}no" >&6
9710           fi
9711
9712
9713           enablestring=
9714           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9715 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9716           no_cache=0
9717           # Check whether --enable-treectrl or --disable-treectrl was given.
9718 if test "${enable_treectrl+set}" = set; then
9719   enableval="$enable_treectrl"
9720
9721                           if test "$enableval" = yes; then
9722                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9723                           else
9724                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9725                           fi
9726
9727 else
9728
9729                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9730                           if test "x$LINE" != x ; then
9731                             eval "DEFAULT_$LINE"
9732                           else
9733                             no_cache=1
9734                           fi
9735
9736                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9737
9738 fi;
9739
9740           eval "$ac_cv_use_treectrl"
9741           if test "$no_cache" != 1; then
9742             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9743           fi
9744
9745           if test "$wxUSE_TREECTRL" = yes; then
9746             echo "$as_me:$LINENO: result: yes" >&5
9747 echo "${ECHO_T}yes" >&6
9748           else
9749             echo "$as_me:$LINENO: result: no" >&5
9750 echo "${ECHO_T}no" >&6
9751           fi
9752
9753
9754           enablestring=
9755           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9756 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9757           no_cache=0
9758           # Check whether --enable-tipwindow or --disable-tipwindow was given.
9759 if test "${enable_tipwindow+set}" = set; then
9760   enableval="$enable_tipwindow"
9761
9762                           if test "$enableval" = yes; then
9763                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9764                           else
9765                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9766                           fi
9767
9768 else
9769
9770                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9771                           if test "x$LINE" != x ; then
9772                             eval "DEFAULT_$LINE"
9773                           else
9774                             no_cache=1
9775                           fi
9776
9777                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9778
9779 fi;
9780
9781           eval "$ac_cv_use_tipwindow"
9782           if test "$no_cache" != 1; then
9783             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9784           fi
9785
9786           if test "$wxUSE_TIPWINDOW" = yes; then
9787             echo "$as_me:$LINENO: result: yes" >&5
9788 echo "${ECHO_T}yes" >&6
9789           else
9790             echo "$as_me:$LINENO: result: no" >&5
9791 echo "${ECHO_T}no" >&6
9792           fi
9793
9794
9795           enablestring=
9796           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9797 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9798           no_cache=0
9799           # Check whether --enable-popupwin or --disable-popupwin was given.
9800 if test "${enable_popupwin+set}" = set; then
9801   enableval="$enable_popupwin"
9802
9803                           if test "$enableval" = yes; then
9804                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9805                           else
9806                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9807                           fi
9808
9809 else
9810
9811                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9812                           if test "x$LINE" != x ; then
9813                             eval "DEFAULT_$LINE"
9814                           else
9815                             no_cache=1
9816                           fi
9817
9818                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9819
9820 fi;
9821
9822           eval "$ac_cv_use_popupwin"
9823           if test "$no_cache" != 1; then
9824             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9825           fi
9826
9827           if test "$wxUSE_POPUPWIN" = yes; then
9828             echo "$as_me:$LINENO: result: yes" >&5
9829 echo "${ECHO_T}yes" >&6
9830           else
9831             echo "$as_me:$LINENO: result: no" >&5
9832 echo "${ECHO_T}no" >&6
9833           fi
9834
9835
9836
9837
9838           enablestring=
9839           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9840 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9841           no_cache=0
9842           # Check whether --enable-commondlg or --disable-commondlg was given.
9843 if test "${enable_commondlg+set}" = set; then
9844   enableval="$enable_commondlg"
9845
9846                           if test "$enableval" = yes; then
9847                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9848                           else
9849                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9850                           fi
9851
9852 else
9853
9854                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9855                           if test "x$LINE" != x ; then
9856                             eval "DEFAULT_$LINE"
9857                           else
9858                             no_cache=1
9859                           fi
9860
9861                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9862
9863 fi;
9864
9865           eval "$ac_cv_use_commondlg"
9866           if test "$no_cache" != 1; then
9867             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9868           fi
9869
9870           if test "$wxUSE_COMMONDLGS" = yes; then
9871             echo "$as_me:$LINENO: result: yes" >&5
9872 echo "${ECHO_T}yes" >&6
9873           else
9874             echo "$as_me:$LINENO: result: no" >&5
9875 echo "${ECHO_T}no" >&6
9876           fi
9877
9878
9879           enablestring=
9880           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9881 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9882           no_cache=0
9883           # Check whether --enable-choicedlg or --disable-choicedlg was given.
9884 if test "${enable_choicedlg+set}" = set; then
9885   enableval="$enable_choicedlg"
9886
9887                           if test "$enableval" = yes; then
9888                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9889                           else
9890                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9891                           fi
9892
9893 else
9894
9895                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9896                           if test "x$LINE" != x ; then
9897                             eval "DEFAULT_$LINE"
9898                           else
9899                             no_cache=1
9900                           fi
9901
9902                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9903
9904 fi;
9905
9906           eval "$ac_cv_use_choicedlg"
9907           if test "$no_cache" != 1; then
9908             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9909           fi
9910
9911           if test "$wxUSE_CHOICEDLG" = yes; then
9912             echo "$as_me:$LINENO: result: yes" >&5
9913 echo "${ECHO_T}yes" >&6
9914           else
9915             echo "$as_me:$LINENO: result: no" >&5
9916 echo "${ECHO_T}no" >&6
9917           fi
9918
9919
9920           enablestring=
9921           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9922 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9923           no_cache=0
9924           # Check whether --enable-coldlg or --disable-coldlg was given.
9925 if test "${enable_coldlg+set}" = set; then
9926   enableval="$enable_coldlg"
9927
9928                           if test "$enableval" = yes; then
9929                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9930                           else
9931                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9932                           fi
9933
9934 else
9935
9936                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9937                           if test "x$LINE" != x ; then
9938                             eval "DEFAULT_$LINE"
9939                           else
9940                             no_cache=1
9941                           fi
9942
9943                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9944
9945 fi;
9946
9947           eval "$ac_cv_use_coldlg"
9948           if test "$no_cache" != 1; then
9949             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9950           fi
9951
9952           if test "$wxUSE_COLOURDLG" = yes; then
9953             echo "$as_me:$LINENO: result: yes" >&5
9954 echo "${ECHO_T}yes" >&6
9955           else
9956             echo "$as_me:$LINENO: result: no" >&5
9957 echo "${ECHO_T}no" >&6
9958           fi
9959
9960
9961           enablestring=
9962           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9963 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9964           no_cache=0
9965           # Check whether --enable-filedlg or --disable-filedlg was given.
9966 if test "${enable_filedlg+set}" = set; then
9967   enableval="$enable_filedlg"
9968
9969                           if test "$enableval" = yes; then
9970                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9971                           else
9972                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9973                           fi
9974
9975 else
9976
9977                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9978                           if test "x$LINE" != x ; then
9979                             eval "DEFAULT_$LINE"
9980                           else
9981                             no_cache=1
9982                           fi
9983
9984                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9985
9986 fi;
9987
9988           eval "$ac_cv_use_filedlg"
9989           if test "$no_cache" != 1; then
9990             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9991           fi
9992
9993           if test "$wxUSE_FILEDLG" = yes; then
9994             echo "$as_me:$LINENO: result: yes" >&5
9995 echo "${ECHO_T}yes" >&6
9996           else
9997             echo "$as_me:$LINENO: result: no" >&5
9998 echo "${ECHO_T}no" >&6
9999           fi
10000
10001
10002           enablestring=
10003           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10004 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10005           no_cache=0
10006           # Check whether --enable-finddlg or --disable-finddlg was given.
10007 if test "${enable_finddlg+set}" = set; then
10008   enableval="$enable_finddlg"
10009
10010                           if test "$enableval" = yes; then
10011                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10012                           else
10013                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10014                           fi
10015
10016 else
10017
10018                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10019                           if test "x$LINE" != x ; then
10020                             eval "DEFAULT_$LINE"
10021                           else
10022                             no_cache=1
10023                           fi
10024
10025                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10026
10027 fi;
10028
10029           eval "$ac_cv_use_finddlg"
10030           if test "$no_cache" != 1; then
10031             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10032           fi
10033
10034           if test "$wxUSE_FINDREPLDLG" = yes; then
10035             echo "$as_me:$LINENO: result: yes" >&5
10036 echo "${ECHO_T}yes" >&6
10037           else
10038             echo "$as_me:$LINENO: result: no" >&5
10039 echo "${ECHO_T}no" >&6
10040           fi
10041
10042
10043           enablestring=
10044           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10045 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10046           no_cache=0
10047           # Check whether --enable-fontdlg or --disable-fontdlg was given.
10048 if test "${enable_fontdlg+set}" = set; then
10049   enableval="$enable_fontdlg"
10050
10051                           if test "$enableval" = yes; then
10052                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10053                           else
10054                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10055                           fi
10056
10057 else
10058
10059                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10060                           if test "x$LINE" != x ; then
10061                             eval "DEFAULT_$LINE"
10062                           else
10063                             no_cache=1
10064                           fi
10065
10066                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10067
10068 fi;
10069
10070           eval "$ac_cv_use_fontdlg"
10071           if test "$no_cache" != 1; then
10072             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10073           fi
10074
10075           if test "$wxUSE_FONTDLG" = yes; then
10076             echo "$as_me:$LINENO: result: yes" >&5
10077 echo "${ECHO_T}yes" >&6
10078           else
10079             echo "$as_me:$LINENO: result: no" >&5
10080 echo "${ECHO_T}no" >&6
10081           fi
10082
10083
10084           enablestring=
10085           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10086 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10087           no_cache=0
10088           # Check whether --enable-dirdlg or --disable-dirdlg was given.
10089 if test "${enable_dirdlg+set}" = set; then
10090   enableval="$enable_dirdlg"
10091
10092                           if test "$enableval" = yes; then
10093                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10094                           else
10095                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10096                           fi
10097
10098 else
10099
10100                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10101                           if test "x$LINE" != x ; then
10102                             eval "DEFAULT_$LINE"
10103                           else
10104                             no_cache=1
10105                           fi
10106
10107                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10108
10109 fi;
10110
10111           eval "$ac_cv_use_dirdlg"
10112           if test "$no_cache" != 1; then
10113             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10114           fi
10115
10116           if test "$wxUSE_DIRDLG" = yes; then
10117             echo "$as_me:$LINENO: result: yes" >&5
10118 echo "${ECHO_T}yes" >&6
10119           else
10120             echo "$as_me:$LINENO: result: no" >&5
10121 echo "${ECHO_T}no" >&6
10122           fi
10123
10124
10125           enablestring=
10126           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10127 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10128           no_cache=0
10129           # Check whether --enable-msgdlg or --disable-msgdlg was given.
10130 if test "${enable_msgdlg+set}" = set; then
10131   enableval="$enable_msgdlg"
10132
10133                           if test "$enableval" = yes; then
10134                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10135                           else
10136                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10137                           fi
10138
10139 else
10140
10141                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10142                           if test "x$LINE" != x ; then
10143                             eval "DEFAULT_$LINE"
10144                           else
10145                             no_cache=1
10146                           fi
10147
10148                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10149
10150 fi;
10151
10152           eval "$ac_cv_use_msgdlg"
10153           if test "$no_cache" != 1; then
10154             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10155           fi
10156
10157           if test "$wxUSE_MSGDLG" = yes; then
10158             echo "$as_me:$LINENO: result: yes" >&5
10159 echo "${ECHO_T}yes" >&6
10160           else
10161             echo "$as_me:$LINENO: result: no" >&5
10162 echo "${ECHO_T}no" >&6
10163           fi
10164
10165
10166           enablestring=
10167           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10168 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10169           no_cache=0
10170           # Check whether --enable-numberdlg or --disable-numberdlg was given.
10171 if test "${enable_numberdlg+set}" = set; then
10172   enableval="$enable_numberdlg"
10173
10174                           if test "$enableval" = yes; then
10175                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10176                           else
10177                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10178                           fi
10179
10180 else
10181
10182                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10183                           if test "x$LINE" != x ; then
10184                             eval "DEFAULT_$LINE"
10185                           else
10186                             no_cache=1
10187                           fi
10188
10189                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10190
10191 fi;
10192
10193           eval "$ac_cv_use_numberdlg"
10194           if test "$no_cache" != 1; then
10195             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10196           fi
10197
10198           if test "$wxUSE_NUMBERDLG" = yes; then
10199             echo "$as_me:$LINENO: result: yes" >&5
10200 echo "${ECHO_T}yes" >&6
10201           else
10202             echo "$as_me:$LINENO: result: no" >&5
10203 echo "${ECHO_T}no" >&6
10204           fi
10205
10206
10207           enablestring=
10208           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10209 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10210           no_cache=0
10211           # Check whether --enable-splash or --disable-splash was given.
10212 if test "${enable_splash+set}" = set; then
10213   enableval="$enable_splash"
10214
10215                           if test "$enableval" = yes; then
10216                             ac_cv_use_splash='wxUSE_SPLASH=yes'
10217                           else
10218                             ac_cv_use_splash='wxUSE_SPLASH=no'
10219                           fi
10220
10221 else
10222
10223                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10224                           if test "x$LINE" != x ; then
10225                             eval "DEFAULT_$LINE"
10226                           else
10227                             no_cache=1
10228                           fi
10229
10230                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10231
10232 fi;
10233
10234           eval "$ac_cv_use_splash"
10235           if test "$no_cache" != 1; then
10236             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10237           fi
10238
10239           if test "$wxUSE_SPLASH" = yes; then
10240             echo "$as_me:$LINENO: result: yes" >&5
10241 echo "${ECHO_T}yes" >&6
10242           else
10243             echo "$as_me:$LINENO: result: no" >&5
10244 echo "${ECHO_T}no" >&6
10245           fi
10246
10247
10248           enablestring=
10249           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10250 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10251           no_cache=0
10252           # Check whether --enable-textdlg or --disable-textdlg was given.
10253 if test "${enable_textdlg+set}" = set; then
10254   enableval="$enable_textdlg"
10255
10256                           if test "$enableval" = yes; then
10257                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10258                           else
10259                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10260                           fi
10261
10262 else
10263
10264                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10265                           if test "x$LINE" != x ; then
10266                             eval "DEFAULT_$LINE"
10267                           else
10268                             no_cache=1
10269                           fi
10270
10271                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10272
10273 fi;
10274
10275           eval "$ac_cv_use_textdlg"
10276           if test "$no_cache" != 1; then
10277             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10278           fi
10279
10280           if test "$wxUSE_TEXTDLG" = yes; then
10281             echo "$as_me:$LINENO: result: yes" >&5
10282 echo "${ECHO_T}yes" >&6
10283           else
10284             echo "$as_me:$LINENO: result: no" >&5
10285 echo "${ECHO_T}no" >&6
10286           fi
10287
10288
10289           enablestring=
10290           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10291 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10292           no_cache=0
10293           # Check whether --enable-tipdlg or --disable-tipdlg was given.
10294 if test "${enable_tipdlg+set}" = set; then
10295   enableval="$enable_tipdlg"
10296
10297                           if test "$enableval" = yes; then
10298                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10299                           else
10300                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10301                           fi
10302
10303 else
10304
10305                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10306                           if test "x$LINE" != x ; then
10307                             eval "DEFAULT_$LINE"
10308                           else
10309                             no_cache=1
10310                           fi
10311
10312                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10313
10314 fi;
10315
10316           eval "$ac_cv_use_tipdlg"
10317           if test "$no_cache" != 1; then
10318             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10319           fi
10320
10321           if test "$wxUSE_STARTUP_TIPS" = yes; then
10322             echo "$as_me:$LINENO: result: yes" >&5
10323 echo "${ECHO_T}yes" >&6
10324           else
10325             echo "$as_me:$LINENO: result: no" >&5
10326 echo "${ECHO_T}no" >&6
10327           fi
10328
10329
10330           enablestring=
10331           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10332 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10333           no_cache=0
10334           # Check whether --enable-progressdlg or --disable-progressdlg was given.
10335 if test "${enable_progressdlg+set}" = set; then
10336   enableval="$enable_progressdlg"
10337
10338                           if test "$enableval" = yes; then
10339                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10340                           else
10341                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10342                           fi
10343
10344 else
10345
10346                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10347                           if test "x$LINE" != x ; then
10348                             eval "DEFAULT_$LINE"
10349                           else
10350                             no_cache=1
10351                           fi
10352
10353                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10354
10355 fi;
10356
10357           eval "$ac_cv_use_progressdlg"
10358           if test "$no_cache" != 1; then
10359             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10360           fi
10361
10362           if test "$wxUSE_PROGRESSDLG" = yes; then
10363             echo "$as_me:$LINENO: result: yes" >&5
10364 echo "${ECHO_T}yes" >&6
10365           else
10366             echo "$as_me:$LINENO: result: no" >&5
10367 echo "${ECHO_T}no" >&6
10368           fi
10369
10370
10371           enablestring=
10372           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10373 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10374           no_cache=0
10375           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10376 if test "${enable_wizarddlg+set}" = set; then
10377   enableval="$enable_wizarddlg"
10378
10379                           if test "$enableval" = yes; then
10380                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10381                           else
10382                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10383                           fi
10384
10385 else
10386
10387                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10388                           if test "x$LINE" != x ; then
10389                             eval "DEFAULT_$LINE"
10390                           else
10391                             no_cache=1
10392                           fi
10393
10394                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10395
10396 fi;
10397
10398           eval "$ac_cv_use_wizarddlg"
10399           if test "$no_cache" != 1; then
10400             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10401           fi
10402
10403           if test "$wxUSE_WIZARDDLG" = yes; then
10404             echo "$as_me:$LINENO: result: yes" >&5
10405 echo "${ECHO_T}yes" >&6
10406           else
10407             echo "$as_me:$LINENO: result: no" >&5
10408 echo "${ECHO_T}no" >&6
10409           fi
10410
10411
10412
10413
10414           enablestring=
10415           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10416 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10417           no_cache=0
10418           # Check whether --enable-menus or --disable-menus was given.
10419 if test "${enable_menus+set}" = set; then
10420   enableval="$enable_menus"
10421
10422                           if test "$enableval" = yes; then
10423                             ac_cv_use_menus='wxUSE_MENUS=yes'
10424                           else
10425                             ac_cv_use_menus='wxUSE_MENUS=no'
10426                           fi
10427
10428 else
10429
10430                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10431                           if test "x$LINE" != x ; then
10432                             eval "DEFAULT_$LINE"
10433                           else
10434                             no_cache=1
10435                           fi
10436
10437                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10438
10439 fi;
10440
10441           eval "$ac_cv_use_menus"
10442           if test "$no_cache" != 1; then
10443             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10444           fi
10445
10446           if test "$wxUSE_MENUS" = yes; then
10447             echo "$as_me:$LINENO: result: yes" >&5
10448 echo "${ECHO_T}yes" >&6
10449           else
10450             echo "$as_me:$LINENO: result: no" >&5
10451 echo "${ECHO_T}no" >&6
10452           fi
10453
10454
10455           enablestring=
10456           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10457 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10458           no_cache=0
10459           # Check whether --enable-miniframe or --disable-miniframe was given.
10460 if test "${enable_miniframe+set}" = set; then
10461   enableval="$enable_miniframe"
10462
10463                           if test "$enableval" = yes; then
10464                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10465                           else
10466                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10467                           fi
10468
10469 else
10470
10471                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10472                           if test "x$LINE" != x ; then
10473                             eval "DEFAULT_$LINE"
10474                           else
10475                             no_cache=1
10476                           fi
10477
10478                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10479
10480 fi;
10481
10482           eval "$ac_cv_use_miniframe"
10483           if test "$no_cache" != 1; then
10484             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10485           fi
10486
10487           if test "$wxUSE_MINIFRAME" = yes; then
10488             echo "$as_me:$LINENO: result: yes" >&5
10489 echo "${ECHO_T}yes" >&6
10490           else
10491             echo "$as_me:$LINENO: result: no" >&5
10492 echo "${ECHO_T}no" >&6
10493           fi
10494
10495
10496           enablestring=
10497           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10498 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10499           no_cache=0
10500           # Check whether --enable-tooltips or --disable-tooltips was given.
10501 if test "${enable_tooltips+set}" = set; then
10502   enableval="$enable_tooltips"
10503
10504                           if test "$enableval" = yes; then
10505                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10506                           else
10507                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10508                           fi
10509
10510 else
10511
10512                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10513                           if test "x$LINE" != x ; then
10514                             eval "DEFAULT_$LINE"
10515                           else
10516                             no_cache=1
10517                           fi
10518
10519                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10520
10521 fi;
10522
10523           eval "$ac_cv_use_tooltips"
10524           if test "$no_cache" != 1; then
10525             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10526           fi
10527
10528           if test "$wxUSE_TOOLTIPS" = yes; then
10529             echo "$as_me:$LINENO: result: yes" >&5
10530 echo "${ECHO_T}yes" >&6
10531           else
10532             echo "$as_me:$LINENO: result: no" >&5
10533 echo "${ECHO_T}no" >&6
10534           fi
10535
10536
10537           enablestring=
10538           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10539 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10540           no_cache=0
10541           # Check whether --enable-splines or --disable-splines was given.
10542 if test "${enable_splines+set}" = set; then
10543   enableval="$enable_splines"
10544
10545                           if test "$enableval" = yes; then
10546                             ac_cv_use_splines='wxUSE_SPLINES=yes'
10547                           else
10548                             ac_cv_use_splines='wxUSE_SPLINES=no'
10549                           fi
10550
10551 else
10552
10553                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10554                           if test "x$LINE" != x ; then
10555                             eval "DEFAULT_$LINE"
10556                           else
10557                             no_cache=1
10558                           fi
10559
10560                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10561
10562 fi;
10563
10564           eval "$ac_cv_use_splines"
10565           if test "$no_cache" != 1; then
10566             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10567           fi
10568
10569           if test "$wxUSE_SPLINES" = yes; then
10570             echo "$as_me:$LINENO: result: yes" >&5
10571 echo "${ECHO_T}yes" >&6
10572           else
10573             echo "$as_me:$LINENO: result: no" >&5
10574 echo "${ECHO_T}no" >&6
10575           fi
10576
10577
10578           enablestring=
10579           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10580 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10581           no_cache=0
10582           # Check whether --enable-mousewheel or --disable-mousewheel was given.
10583 if test "${enable_mousewheel+set}" = set; then
10584   enableval="$enable_mousewheel"
10585
10586                           if test "$enableval" = yes; then
10587                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10588                           else
10589                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10590                           fi
10591
10592 else
10593
10594                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10595                           if test "x$LINE" != x ; then
10596                             eval "DEFAULT_$LINE"
10597                           else
10598                             no_cache=1
10599                           fi
10600
10601                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10602
10603 fi;
10604
10605           eval "$ac_cv_use_mousewheel"
10606           if test "$no_cache" != 1; then
10607             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10608           fi
10609
10610           if test "$wxUSE_MOUSEWHEEL" = yes; then
10611             echo "$as_me:$LINENO: result: yes" >&5
10612 echo "${ECHO_T}yes" >&6
10613           else
10614             echo "$as_me:$LINENO: result: no" >&5
10615 echo "${ECHO_T}no" >&6
10616           fi
10617
10618
10619           enablestring=
10620           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10621 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10622           no_cache=0
10623           # Check whether --enable-validators or --disable-validators was given.
10624 if test "${enable_validators+set}" = set; then
10625   enableval="$enable_validators"
10626
10627                           if test "$enableval" = yes; then
10628                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10629                           else
10630                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
10631                           fi
10632
10633 else
10634
10635                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10636                           if test "x$LINE" != x ; then
10637                             eval "DEFAULT_$LINE"
10638                           else
10639                             no_cache=1
10640                           fi
10641
10642                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10643
10644 fi;
10645
10646           eval "$ac_cv_use_validators"
10647           if test "$no_cache" != 1; then
10648             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10649           fi
10650
10651           if test "$wxUSE_VALIDATORS" = yes; then
10652             echo "$as_me:$LINENO: result: yes" >&5
10653 echo "${ECHO_T}yes" >&6
10654           else
10655             echo "$as_me:$LINENO: result: no" >&5
10656 echo "${ECHO_T}no" >&6
10657           fi
10658
10659
10660           enablestring=
10661           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10662 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10663           no_cache=0
10664           # Check whether --enable-busyinfo or --disable-busyinfo was given.
10665 if test "${enable_busyinfo+set}" = set; then
10666   enableval="$enable_busyinfo"
10667
10668                           if test "$enableval" = yes; then
10669                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10670                           else
10671                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10672                           fi
10673
10674 else
10675
10676                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10677                           if test "x$LINE" != x ; then
10678                             eval "DEFAULT_$LINE"
10679                           else
10680                             no_cache=1
10681                           fi
10682
10683                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10684
10685 fi;
10686
10687           eval "$ac_cv_use_busyinfo"
10688           if test "$no_cache" != 1; then
10689             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10690           fi
10691
10692           if test "$wxUSE_BUSYINFO" = yes; then
10693             echo "$as_me:$LINENO: result: yes" >&5
10694 echo "${ECHO_T}yes" >&6
10695           else
10696             echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6
10698           fi
10699
10700
10701           enablestring=
10702           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10703 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10704           no_cache=0
10705           # Check whether --enable-joystick or --disable-joystick was given.
10706 if test "${enable_joystick+set}" = set; then
10707   enableval="$enable_joystick"
10708
10709                           if test "$enableval" = yes; then
10710                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10711                           else
10712                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10713                           fi
10714
10715 else
10716
10717                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10718                           if test "x$LINE" != x ; then
10719                             eval "DEFAULT_$LINE"
10720                           else
10721                             no_cache=1
10722                           fi
10723
10724                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10725
10726 fi;
10727
10728           eval "$ac_cv_use_joystick"
10729           if test "$no_cache" != 1; then
10730             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10731           fi
10732
10733           if test "$wxUSE_JOYSTICK" = yes; then
10734             echo "$as_me:$LINENO: result: yes" >&5
10735 echo "${ECHO_T}yes" >&6
10736           else
10737             echo "$as_me:$LINENO: result: no" >&5
10738 echo "${ECHO_T}no" >&6
10739           fi
10740
10741
10742           enablestring=
10743           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10744 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10745           no_cache=0
10746           # Check whether --enable-metafile or --disable-metafile was given.
10747 if test "${enable_metafile+set}" = set; then
10748   enableval="$enable_metafile"
10749
10750                           if test "$enableval" = yes; then
10751                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
10752                           else
10753                             ac_cv_use_metafile='wxUSE_METAFILE=no'
10754                           fi
10755
10756 else
10757
10758                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10759                           if test "x$LINE" != x ; then
10760                             eval "DEFAULT_$LINE"
10761                           else
10762                             no_cache=1
10763                           fi
10764
10765                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10766
10767 fi;
10768
10769           eval "$ac_cv_use_metafile"
10770           if test "$no_cache" != 1; then
10771             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10772           fi
10773
10774           if test "$wxUSE_METAFILE" = yes; then
10775             echo "$as_me:$LINENO: result: yes" >&5
10776 echo "${ECHO_T}yes" >&6
10777           else
10778             echo "$as_me:$LINENO: result: no" >&5
10779 echo "${ECHO_T}no" >&6
10780           fi
10781
10782
10783           enablestring=
10784           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10785 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10786           no_cache=0
10787           # Check whether --enable-dragimage or --disable-dragimage was given.
10788 if test "${enable_dragimage+set}" = set; then
10789   enableval="$enable_dragimage"
10790
10791                           if test "$enableval" = yes; then
10792                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10793                           else
10794                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10795                           fi
10796
10797 else
10798
10799                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10800                           if test "x$LINE" != x ; then
10801                             eval "DEFAULT_$LINE"
10802                           else
10803                             no_cache=1
10804                           fi
10805
10806                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10807
10808 fi;
10809
10810           eval "$ac_cv_use_dragimage"
10811           if test "$no_cache" != 1; then
10812             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10813           fi
10814
10815           if test "$wxUSE_DRAGIMAGE" = yes; then
10816             echo "$as_me:$LINENO: result: yes" >&5
10817 echo "${ECHO_T}yes" >&6
10818           else
10819             echo "$as_me:$LINENO: result: no" >&5
10820 echo "${ECHO_T}no" >&6
10821           fi
10822
10823
10824           enablestring=
10825           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10826 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10827           no_cache=0
10828           # Check whether --enable-accessibility or --disable-accessibility was given.
10829 if test "${enable_accessibility+set}" = set; then
10830   enableval="$enable_accessibility"
10831
10832                           if test "$enableval" = yes; then
10833                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10834                           else
10835                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10836                           fi
10837
10838 else
10839
10840                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10841                           if test "x$LINE" != x ; then
10842                             eval "DEFAULT_$LINE"
10843                           else
10844                             no_cache=1
10845                           fi
10846
10847                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10848
10849 fi;
10850
10851           eval "$ac_cv_use_accessibility"
10852           if test "$no_cache" != 1; then
10853             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10854           fi
10855
10856           if test "$wxUSE_ACCESSIBILITY" = yes; then
10857             echo "$as_me:$LINENO: result: yes" >&5
10858 echo "${ECHO_T}yes" >&6
10859           else
10860             echo "$as_me:$LINENO: result: no" >&5
10861 echo "${ECHO_T}no" >&6
10862           fi
10863
10864
10865 if test "$wxUSE_MSW" = "1"; then
10866
10867           enablestring=
10868           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10869 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10870           no_cache=0
10871           # Check whether --enable-dccache or --disable-dccache was given.
10872 if test "${enable_dccache+set}" = set; then
10873   enableval="$enable_dccache"
10874
10875                           if test "$enableval" = yes; then
10876                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10877                           else
10878                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10879                           fi
10880
10881 else
10882
10883                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10884                           if test "x$LINE" != x ; then
10885                             eval "DEFAULT_$LINE"
10886                           else
10887                             no_cache=1
10888                           fi
10889
10890                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10891
10892 fi;
10893
10894           eval "$ac_cv_use_dccache"
10895           if test "$no_cache" != 1; then
10896             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10897           fi
10898
10899           if test "$wxUSE_DC_CACHEING" = yes; then
10900             echo "$as_me:$LINENO: result: yes" >&5
10901 echo "${ECHO_T}yes" >&6
10902           else
10903             echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6
10905           fi
10906
10907 fi
10908
10909
10910
10911           enablestring=
10912           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10913 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10914           no_cache=0
10915           # Check whether --enable-palette or --disable-palette was given.
10916 if test "${enable_palette+set}" = set; then
10917   enableval="$enable_palette"
10918
10919                           if test "$enableval" = yes; then
10920                             ac_cv_use_palette='wxUSE_PALETTE=yes'
10921                           else
10922                             ac_cv_use_palette='wxUSE_PALETTE=no'
10923                           fi
10924
10925 else
10926
10927                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10928                           if test "x$LINE" != x ; then
10929                             eval "DEFAULT_$LINE"
10930                           else
10931                             no_cache=1
10932                           fi
10933
10934                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10935
10936 fi;
10937
10938           eval "$ac_cv_use_palette"
10939           if test "$no_cache" != 1; then
10940             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10941           fi
10942
10943           if test "$wxUSE_PALETTE" = yes; then
10944             echo "$as_me:$LINENO: result: yes" >&5
10945 echo "${ECHO_T}yes" >&6
10946           else
10947             echo "$as_me:$LINENO: result: no" >&5
10948 echo "${ECHO_T}no" >&6
10949           fi
10950
10951
10952           enablestring=
10953           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10954 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10955           no_cache=0
10956           # Check whether --enable-image or --disable-image was given.
10957 if test "${enable_image+set}" = set; then
10958   enableval="$enable_image"
10959
10960                           if test "$enableval" = yes; then
10961                             ac_cv_use_image='wxUSE_IMAGE=yes'
10962                           else
10963                             ac_cv_use_image='wxUSE_IMAGE=no'
10964                           fi
10965
10966 else
10967
10968                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10969                           if test "x$LINE" != x ; then
10970                             eval "DEFAULT_$LINE"
10971                           else
10972                             no_cache=1
10973                           fi
10974
10975                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10976
10977 fi;
10978
10979           eval "$ac_cv_use_image"
10980           if test "$no_cache" != 1; then
10981             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10982           fi
10983
10984           if test "$wxUSE_IMAGE" = yes; then
10985             echo "$as_me:$LINENO: result: yes" >&5
10986 echo "${ECHO_T}yes" >&6
10987           else
10988             echo "$as_me:$LINENO: result: no" >&5
10989 echo "${ECHO_T}no" >&6
10990           fi
10991
10992
10993           enablestring=
10994           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10995 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10996           no_cache=0
10997           # Check whether --enable-gif or --disable-gif was given.
10998 if test "${enable_gif+set}" = set; then
10999   enableval="$enable_gif"
11000
11001                           if test "$enableval" = yes; then
11002                             ac_cv_use_gif='wxUSE_GIF=yes'
11003                           else
11004                             ac_cv_use_gif='wxUSE_GIF=no'
11005                           fi
11006
11007 else
11008
11009                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11010                           if test "x$LINE" != x ; then
11011                             eval "DEFAULT_$LINE"
11012                           else
11013                             no_cache=1
11014                           fi
11015
11016                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11017
11018 fi;
11019
11020           eval "$ac_cv_use_gif"
11021           if test "$no_cache" != 1; then
11022             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11023           fi
11024
11025           if test "$wxUSE_GIF" = yes; then
11026             echo "$as_me:$LINENO: result: yes" >&5
11027 echo "${ECHO_T}yes" >&6
11028           else
11029             echo "$as_me:$LINENO: result: no" >&5
11030 echo "${ECHO_T}no" >&6
11031           fi
11032
11033
11034           enablestring=
11035           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11036 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11037           no_cache=0
11038           # Check whether --enable-pcx or --disable-pcx was given.
11039 if test "${enable_pcx+set}" = set; then
11040   enableval="$enable_pcx"
11041
11042                           if test "$enableval" = yes; then
11043                             ac_cv_use_pcx='wxUSE_PCX=yes'
11044                           else
11045                             ac_cv_use_pcx='wxUSE_PCX=no'
11046                           fi
11047
11048 else
11049
11050                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11051                           if test "x$LINE" != x ; then
11052                             eval "DEFAULT_$LINE"
11053                           else
11054                             no_cache=1
11055                           fi
11056
11057                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11058
11059 fi;
11060
11061           eval "$ac_cv_use_pcx"
11062           if test "$no_cache" != 1; then
11063             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11064           fi
11065
11066           if test "$wxUSE_PCX" = yes; then
11067             echo "$as_me:$LINENO: result: yes" >&5
11068 echo "${ECHO_T}yes" >&6
11069           else
11070             echo "$as_me:$LINENO: result: no" >&5
11071 echo "${ECHO_T}no" >&6
11072           fi
11073
11074
11075           enablestring=
11076           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11077 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11078           no_cache=0
11079           # Check whether --enable-iff or --disable-iff was given.
11080 if test "${enable_iff+set}" = set; then
11081   enableval="$enable_iff"
11082
11083                           if test "$enableval" = yes; then
11084                             ac_cv_use_iff='wxUSE_IFF=yes'
11085                           else
11086                             ac_cv_use_iff='wxUSE_IFF=no'
11087                           fi
11088
11089 else
11090
11091                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11092                           if test "x$LINE" != x ; then
11093                             eval "DEFAULT_$LINE"
11094                           else
11095                             no_cache=1
11096                           fi
11097
11098                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11099
11100 fi;
11101
11102           eval "$ac_cv_use_iff"
11103           if test "$no_cache" != 1; then
11104             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11105           fi
11106
11107           if test "$wxUSE_IFF" = yes; then
11108             echo "$as_me:$LINENO: result: yes" >&5
11109 echo "${ECHO_T}yes" >&6
11110           else
11111             echo "$as_me:$LINENO: result: no" >&5
11112 echo "${ECHO_T}no" >&6
11113           fi
11114
11115
11116           enablestring=
11117           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11118 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11119           no_cache=0
11120           # Check whether --enable-pnm or --disable-pnm was given.
11121 if test "${enable_pnm+set}" = set; then
11122   enableval="$enable_pnm"
11123
11124                           if test "$enableval" = yes; then
11125                             ac_cv_use_pnm='wxUSE_PNM=yes'
11126                           else
11127                             ac_cv_use_pnm='wxUSE_PNM=no'
11128                           fi
11129
11130 else
11131
11132                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11133                           if test "x$LINE" != x ; then
11134                             eval "DEFAULT_$LINE"
11135                           else
11136                             no_cache=1
11137                           fi
11138
11139                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11140
11141 fi;
11142
11143           eval "$ac_cv_use_pnm"
11144           if test "$no_cache" != 1; then
11145             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11146           fi
11147
11148           if test "$wxUSE_PNM" = yes; then
11149             echo "$as_me:$LINENO: result: yes" >&5
11150 echo "${ECHO_T}yes" >&6
11151           else
11152             echo "$as_me:$LINENO: result: no" >&5
11153 echo "${ECHO_T}no" >&6
11154           fi
11155
11156
11157           enablestring=
11158           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11159 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11160           no_cache=0
11161           # Check whether --enable-xpm or --disable-xpm was given.
11162 if test "${enable_xpm+set}" = set; then
11163   enableval="$enable_xpm"
11164
11165                           if test "$enableval" = yes; then
11166                             ac_cv_use_xpm='wxUSE_XPM=yes'
11167                           else
11168                             ac_cv_use_xpm='wxUSE_XPM=no'
11169                           fi
11170
11171 else
11172
11173                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11174                           if test "x$LINE" != x ; then
11175                             eval "DEFAULT_$LINE"
11176                           else
11177                             no_cache=1
11178                           fi
11179
11180                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11181
11182 fi;
11183
11184           eval "$ac_cv_use_xpm"
11185           if test "$no_cache" != 1; then
11186             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11187           fi
11188
11189           if test "$wxUSE_XPM" = yes; then
11190             echo "$as_me:$LINENO: result: yes" >&5
11191 echo "${ECHO_T}yes" >&6
11192           else
11193             echo "$as_me:$LINENO: result: no" >&5
11194 echo "${ECHO_T}no" >&6
11195           fi
11196
11197
11198           enablestring=
11199           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11200 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11201           no_cache=0
11202           # Check whether --enable-ico_cur or --disable-ico_cur was given.
11203 if test "${enable_ico_cur+set}" = set; then
11204   enableval="$enable_ico_cur"
11205
11206                           if test "$enableval" = yes; then
11207                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11208                           else
11209                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11210                           fi
11211
11212 else
11213
11214                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11215                           if test "x$LINE" != x ; then
11216                             eval "DEFAULT_$LINE"
11217                           else
11218                             no_cache=1
11219                           fi
11220
11221                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11222
11223 fi;
11224
11225           eval "$ac_cv_use_ico_cur"
11226           if test "$no_cache" != 1; then
11227             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11228           fi
11229
11230           if test "$wxUSE_ICO_CUR" = yes; then
11231             echo "$as_me:$LINENO: result: yes" >&5
11232 echo "${ECHO_T}yes" >&6
11233           else
11234             echo "$as_me:$LINENO: result: no" >&5
11235 echo "${ECHO_T}no" >&6
11236           fi
11237
11238
11239 fi
11240
11241
11242
11243 # Check whether --with-flavour or --without-flavour was given.
11244 if test "${with_flavour+set}" = set; then
11245   withval="$with_flavour"
11246   WX_FLAVOUR="$withval"
11247 fi;
11248
11249
11250
11251           enablestring=
11252           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11253 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11254           no_cache=0
11255           # Check whether --enable-official_build or --disable-official_build was given.
11256 if test "${enable_official_build+set}" = set; then
11257   enableval="$enable_official_build"
11258
11259                           if test "$enableval" = yes; then
11260                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11261                           else
11262                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11263                           fi
11264
11265 else
11266
11267                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11268                           if test "x$LINE" != x ; then
11269                             eval "DEFAULT_$LINE"
11270                           else
11271                             no_cache=1
11272                           fi
11273
11274                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11275
11276 fi;
11277
11278           eval "$ac_cv_use_official_build"
11279           if test "$no_cache" != 1; then
11280             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11281           fi
11282
11283           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11284             echo "$as_me:$LINENO: result: yes" >&5
11285 echo "${ECHO_T}yes" >&6
11286           else
11287             echo "$as_me:$LINENO: result: no" >&5
11288 echo "${ECHO_T}no" >&6
11289           fi
11290
11291 # Check whether --enable-vendor or --disable-vendor was given.
11292 if test "${enable_vendor+set}" = set; then
11293   enableval="$enable_vendor"
11294   VENDOR="$enableval"
11295 fi;
11296 if test "x$VENDOR" = "x"; then
11297     VENDOR="custom"
11298 fi
11299
11300
11301
11302
11303           echo "saving argument cache $wx_arg_cache_file"
11304           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11305
11306
11307
11308 echo "$as_me:$LINENO: checking for toolkit" >&5
11309 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11310
11311 # In Wine, we need to default to MSW, not GTK or MOTIF
11312 if test "$wxUSE_WINE" = "yes"; then
11313     DEFAULT_DEFAULT_wxUSE_GTK=0
11314     DEFAULT_DEFAULT_wxUSE_MOTIF=0
11315     DEFAULT_DEFAULT_wxUSE_MSW=1
11316     wxUSE_SHARED=no
11317 fi
11318
11319
11320 if test "$wxUSE_GUI" = "yes"; then
11321
11322     if test "$USE_BEOS" = 1; then
11323         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11324 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11325    { (exit 1); exit 1; }; }
11326     fi
11327
11328     if test "$TOOLKIT_GIVEN" = 1; then
11329             for toolkit in `echo $ALL_TOOLKITS`; do
11330         var=wxUSE_$toolkit
11331         eval "value=\$${var}"
11332         if test "x$value" = "xno"; then
11333           eval "$var=0"
11334         elif test "x$value" != "x"; then
11335           eval "$var=1"
11336         fi
11337
11338         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11339           eval "wx${toolkit}_VERSION=$value"
11340         fi
11341       done
11342     else
11343             for toolkit in `echo $ALL_TOOLKITS`; do
11344         if test "$has_toolkit_in_cache" != 1; then
11345           var=DEFAULT_DEFAULT_wxUSE_$toolkit
11346         else
11347           var=DEFAULT_wxUSE_$toolkit
11348
11349           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11350           if test "x$version" != "x"; then
11351             eval "wx${toolkit}_VERSION=$version"
11352           fi
11353         fi
11354         eval "wxUSE_$toolkit=\$${var}"
11355       done
11356     fi
11357
11358             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11359                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11360                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11361
11362         case "${host}" in
11363       *-pc-os2_emx | *-pc-os2-emx )
11364         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11365     esac
11366
11367     case "$NUM_TOOLKITS" in
11368       1)
11369       ;;
11370       0)
11371         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11372 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11373    { (exit 1); exit 1; }; }
11374       ;;
11375       *)
11376         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11377 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11378    { (exit 1); exit 1; }; }
11379     esac
11380
11381     # to be removed when --disable-gtk2 isn't needed
11382     if test "x$wxUSE_GTK2" = "xyes"; then
11383         wxGTK_VERSION=2
11384     elif test "x$wxUSE_GTK2" = "xno"; then
11385         wxGTK_VERSION=1
11386     fi
11387
11388         for toolkit in `echo $ALL_TOOLKITS`; do
11389       var=wxUSE_$toolkit
11390       eval "value=\$${var}"
11391       if test "x$value" != x; then
11392         cache_var=CACHE_$toolkit
11393         eval "cache=\$${cache_var}"
11394         if test "$cache" = 1; then
11395           echo "$var=$value" >> ${wx_arg_cache_file}
11396           eval "version=\$wx${toolkit}_VERSION"
11397           if test "x$version" != "x"; then
11398             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11399           fi
11400         fi
11401         if test "$value" = 1; then
11402           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11403           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11404 echo "${ECHO_T}$toolkit_echo" >&6
11405         fi
11406       fi
11407     done
11408 else
11409     if test "x$host_alias" != "x"; then
11410         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11411 echo "${ECHO_T}base ($host_alias hosted) only" >&6
11412     else
11413         echo "$as_me:$LINENO: result: base only" >&5
11414 echo "${ECHO_T}base only" >&6
11415     fi
11416 fi
11417
11418 wants_win32=0
11419 doesnt_want_win32=0
11420 case "${host}" in
11421   *-*-cygwin*)
11422       if test "$wxUSE_MSW" = 1 ; then
11423         wants_win32=1
11424         BAKEFILE_FORCE_PLATFORM=win32
11425       else
11426         doesnt_want_win32=1
11427       fi
11428   ;;
11429   *-*-mingw*)
11430       wants_win32=1
11431   ;;
11432 esac
11433
11434 if test "$wxUSE_WINE" = "yes"; then
11435     wants_win32=1
11436         CC=winegcc
11437     CXX=wineg++
11438     LDFLAGS_GUI="-mwindows"
11439 fi
11440
11441 if test "$wants_win32" = 1 ; then
11442     USE_UNIX=0
11443     USE_WIN32=1
11444     cat >>confdefs.h <<\_ACEOF
11445 #define __WIN32__ 1
11446 _ACEOF
11447
11448     cat >>confdefs.h <<\_ACEOF
11449 #define __WIN95__ 1
11450 _ACEOF
11451
11452     cat >>confdefs.h <<\_ACEOF
11453 #define __WINDOWS__ 1
11454 _ACEOF
11455
11456     cat >>confdefs.h <<\_ACEOF
11457 #define __GNUWIN32__ 1
11458 _ACEOF
11459
11460     cat >>confdefs.h <<\_ACEOF
11461 #define STRICT 1
11462 _ACEOF
11463
11464     cat >>confdefs.h <<\_ACEOF
11465 #define WINVER 0x0400
11466 _ACEOF
11467
11468 fi
11469 if test "$doesnt_want_win32" = 1 ; then
11470     USE_UNIX=1
11471     USE_WIN32=0
11472 fi
11473
11474 if test "$USE_UNIX" = 1 ; then
11475     wxUSE_UNIX=yes
11476     cat >>confdefs.h <<\_ACEOF
11477 #define __UNIX__ 1
11478 _ACEOF
11479
11480 fi
11481
11482
11483 cat >confcache <<\_ACEOF
11484 # This file is a shell script that caches the results of configure
11485 # tests run on this system so they can be shared between configure
11486 # scripts and configure runs, see configure's option --config-cache.
11487 # It is not useful on other systems.  If it contains results you don't
11488 # want to keep, you may remove or edit it.
11489 #
11490 # config.status only pays attention to the cache file if you give it
11491 # the --recheck option to rerun configure.
11492 #
11493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11495 # following values.
11496
11497 _ACEOF
11498
11499 # The following way of writing the cache mishandles newlines in values,
11500 # but we know of no workaround that is simple, portable, and efficient.
11501 # So, don't put newlines in cache variables' values.
11502 # Ultrix sh set writes to stderr and can't be redirected directly,
11503 # and sets the high bit in the cache file unless we assign to the vars.
11504 {
11505   (set) 2>&1 |
11506     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11507     *ac_space=\ *)
11508       # `set' does not quote correctly, so add quotes (double-quote
11509       # substitution turns \\\\ into \\, and sed turns \\ into \).
11510       sed -n \
11511         "s/'/'\\\\''/g;
11512           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11513       ;;
11514     *)
11515       # `set' quotes correctly as required by POSIX, so do not add quotes.
11516       sed -n \
11517         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11518       ;;
11519     esac;
11520 } |
11521   sed '
11522      t clear
11523      : clear
11524      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11525      t end
11526      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11527      : end' >>confcache
11528 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11529   if test -w $cache_file; then
11530     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11531     cat confcache >$cache_file
11532   else
11533     echo "not updating unwritable cache $cache_file"
11534   fi
11535 fi
11536 rm -f confcache
11537
11538 CFLAGS=${CFLAGS:=}
11539
11540
11541
11542     ac_ext=c
11543 ac_cpp='$CPP $CPPFLAGS'
11544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11547 if test -n "$ac_tool_prefix"; then
11548   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11549 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11550 echo "$as_me:$LINENO: checking for $ac_word" >&5
11551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11552 if test "${ac_cv_prog_CC+set}" = set; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   if test -n "$CC"; then
11556   ac_cv_prog_CC="$CC" # Let the user override the test.
11557 else
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11560 do
11561   IFS=$as_save_IFS
11562   test -z "$as_dir" && as_dir=.
11563   for ac_exec_ext in '' $ac_executable_extensions; do
11564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11567     break 2
11568   fi
11569 done
11570 done
11571
11572 fi
11573 fi
11574 CC=$ac_cv_prog_CC
11575 if test -n "$CC"; then
11576   echo "$as_me:$LINENO: result: $CC" >&5
11577 echo "${ECHO_T}$CC" >&6
11578 else
11579   echo "$as_me:$LINENO: result: no" >&5
11580 echo "${ECHO_T}no" >&6
11581 fi
11582
11583 fi
11584 if test -z "$ac_cv_prog_CC"; then
11585   ac_ct_CC=$CC
11586   # Extract the first word of "gcc", so it can be a program name with args.
11587 set dummy gcc; ac_word=$2
11588 echo "$as_me:$LINENO: checking for $ac_word" >&5
11589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593   if test -n "$ac_ct_CC"; then
11594   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11595 else
11596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11598 do
11599   IFS=$as_save_IFS
11600   test -z "$as_dir" && as_dir=.
11601   for ac_exec_ext in '' $ac_executable_extensions; do
11602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603     ac_cv_prog_ac_ct_CC="gcc"
11604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11605     break 2
11606   fi
11607 done
11608 done
11609
11610 fi
11611 fi
11612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11613 if test -n "$ac_ct_CC"; then
11614   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11615 echo "${ECHO_T}$ac_ct_CC" >&6
11616 else
11617   echo "$as_me:$LINENO: result: no" >&5
11618 echo "${ECHO_T}no" >&6
11619 fi
11620
11621   CC=$ac_ct_CC
11622 else
11623   CC="$ac_cv_prog_CC"
11624 fi
11625
11626 if test -z "$CC"; then
11627   if test -n "$ac_tool_prefix"; then
11628   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11629 set dummy ${ac_tool_prefix}cc; ac_word=$2
11630 echo "$as_me:$LINENO: checking for $ac_word" >&5
11631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11632 if test "${ac_cv_prog_CC+set}" = set; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635   if test -n "$CC"; then
11636   ac_cv_prog_CC="$CC" # Let the user override the test.
11637 else
11638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639 for as_dir in $PATH
11640 do
11641   IFS=$as_save_IFS
11642   test -z "$as_dir" && as_dir=.
11643   for ac_exec_ext in '' $ac_executable_extensions; do
11644   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11645     ac_cv_prog_CC="${ac_tool_prefix}cc"
11646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11647     break 2
11648   fi
11649 done
11650 done
11651
11652 fi
11653 fi
11654 CC=$ac_cv_prog_CC
11655 if test -n "$CC"; then
11656   echo "$as_me:$LINENO: result: $CC" >&5
11657 echo "${ECHO_T}$CC" >&6
11658 else
11659   echo "$as_me:$LINENO: result: no" >&5
11660 echo "${ECHO_T}no" >&6
11661 fi
11662
11663 fi
11664 if test -z "$ac_cv_prog_CC"; then
11665   ac_ct_CC=$CC
11666   # Extract the first word of "cc", so it can be a program name with args.
11667 set dummy cc; ac_word=$2
11668 echo "$as_me:$LINENO: checking for $ac_word" >&5
11669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11671   echo $ECHO_N "(cached) $ECHO_C" >&6
11672 else
11673   if test -n "$ac_ct_CC"; then
11674   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11675 else
11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $PATH
11678 do
11679   IFS=$as_save_IFS
11680   test -z "$as_dir" && as_dir=.
11681   for ac_exec_ext in '' $ac_executable_extensions; do
11682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11683     ac_cv_prog_ac_ct_CC="cc"
11684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11685     break 2
11686   fi
11687 done
11688 done
11689
11690 fi
11691 fi
11692 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11693 if test -n "$ac_ct_CC"; then
11694   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11695 echo "${ECHO_T}$ac_ct_CC" >&6
11696 else
11697   echo "$as_me:$LINENO: result: no" >&5
11698 echo "${ECHO_T}no" >&6
11699 fi
11700
11701   CC=$ac_ct_CC
11702 else
11703   CC="$ac_cv_prog_CC"
11704 fi
11705
11706 fi
11707 if test -z "$CC"; then
11708   # Extract the first word of "cc", so it can be a program name with args.
11709 set dummy cc; ac_word=$2
11710 echo "$as_me:$LINENO: checking for $ac_word" >&5
11711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11712 if test "${ac_cv_prog_CC+set}" = set; then
11713   echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715   if test -n "$CC"; then
11716   ac_cv_prog_CC="$CC" # Let the user override the test.
11717 else
11718   ac_prog_rejected=no
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724   for ac_exec_ext in '' $ac_executable_extensions; do
11725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11727        ac_prog_rejected=yes
11728        continue
11729      fi
11730     ac_cv_prog_CC="cc"
11731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11732     break 2
11733   fi
11734 done
11735 done
11736
11737 if test $ac_prog_rejected = yes; then
11738   # We found a bogon in the path, so make sure we never use it.
11739   set dummy $ac_cv_prog_CC
11740   shift
11741   if test $# != 0; then
11742     # We chose a different compiler from the bogus one.
11743     # However, it has the same basename, so the bogon will be chosen
11744     # first if we set CC to just the basename; use the full file name.
11745     shift
11746     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11747   fi
11748 fi
11749 fi
11750 fi
11751 CC=$ac_cv_prog_CC
11752 if test -n "$CC"; then
11753   echo "$as_me:$LINENO: result: $CC" >&5
11754 echo "${ECHO_T}$CC" >&6
11755 else
11756   echo "$as_me:$LINENO: result: no" >&5
11757 echo "${ECHO_T}no" >&6
11758 fi
11759
11760 fi
11761 if test -z "$CC"; then
11762   if test -n "$ac_tool_prefix"; then
11763   for ac_prog in cl
11764   do
11765     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11767 echo "$as_me:$LINENO: checking for $ac_word" >&5
11768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11769 if test "${ac_cv_prog_CC+set}" = set; then
11770   echo $ECHO_N "(cached) $ECHO_C" >&6
11771 else
11772   if test -n "$CC"; then
11773   ac_cv_prog_CC="$CC" # Let the user override the test.
11774 else
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11777 do
11778   IFS=$as_save_IFS
11779   test -z "$as_dir" && as_dir=.
11780   for ac_exec_ext in '' $ac_executable_extensions; do
11781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11784     break 2
11785   fi
11786 done
11787 done
11788
11789 fi
11790 fi
11791 CC=$ac_cv_prog_CC
11792 if test -n "$CC"; then
11793   echo "$as_me:$LINENO: result: $CC" >&5
11794 echo "${ECHO_T}$CC" >&6
11795 else
11796   echo "$as_me:$LINENO: result: no" >&5
11797 echo "${ECHO_T}no" >&6
11798 fi
11799
11800     test -n "$CC" && break
11801   done
11802 fi
11803 if test -z "$CC"; then
11804   ac_ct_CC=$CC
11805   for ac_prog in cl
11806 do
11807   # Extract the first word of "$ac_prog", so it can be a program name with args.
11808 set dummy $ac_prog; ac_word=$2
11809 echo "$as_me:$LINENO: checking for $ac_word" >&5
11810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11812   echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814   if test -n "$ac_ct_CC"; then
11815   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11816 else
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11819 do
11820   IFS=$as_save_IFS
11821   test -z "$as_dir" && as_dir=.
11822   for ac_exec_ext in '' $ac_executable_extensions; do
11823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11824     ac_cv_prog_ac_ct_CC="$ac_prog"
11825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11826     break 2
11827   fi
11828 done
11829 done
11830
11831 fi
11832 fi
11833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11834 if test -n "$ac_ct_CC"; then
11835   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11836 echo "${ECHO_T}$ac_ct_CC" >&6
11837 else
11838   echo "$as_me:$LINENO: result: no" >&5
11839 echo "${ECHO_T}no" >&6
11840 fi
11841
11842   test -n "$ac_ct_CC" && break
11843 done
11844
11845   CC=$ac_ct_CC
11846 fi
11847
11848 fi
11849
11850
11851 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11852 See \`config.log' for more details." >&5
11853 echo "$as_me: error: no acceptable C compiler found in \$PATH
11854 See \`config.log' for more details." >&2;}
11855    { (exit 1); exit 1; }; }
11856
11857 # Provide some information about the compiler.
11858 echo "$as_me:$LINENO:" \
11859      "checking for C compiler version" >&5
11860 ac_compiler=`set X $ac_compile; echo $2`
11861 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11862   (eval $ac_compiler --version </dev/null >&5) 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); }
11866 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11867   (eval $ac_compiler -v </dev/null >&5) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }
11871 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11872   (eval $ac_compiler -V </dev/null >&5) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }
11876
11877 cat >conftest.$ac_ext <<_ACEOF
11878 /* confdefs.h.  */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h.  */
11883
11884 int
11885 main ()
11886 {
11887
11888   ;
11889   return 0;
11890 }
11891 _ACEOF
11892 ac_clean_files_save=$ac_clean_files
11893 ac_clean_files="$ac_clean_files a.out a.exe b.out"
11894 # Try to create an executable without -o first, disregard a.out.
11895 # It will help us diagnose broken compilers, and finding out an intuition
11896 # of exeext.
11897 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11898 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11899 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11900 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11901   (eval $ac_link_default) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; then
11905   # Find the output, starting from the most likely.  This scheme is
11906 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
11907 # resort.
11908
11909 # Be careful to initialize this variable, since it used to be cached.
11910 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11911 ac_cv_exeext=
11912 # b.out is created by i960 compilers.
11913 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11914 do
11915   test -f "$ac_file" || continue
11916   case $ac_file in
11917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11918         ;;
11919     conftest.$ac_ext )
11920         # This is the source file.
11921         ;;
11922     [ab].out )
11923         # We found the default executable, but exeext='' is most
11924         # certainly right.
11925         break;;
11926     *.* )
11927         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11928         # FIXME: I believe we export ac_cv_exeext for Libtool,
11929         # but it would be cool to find out if it's true.  Does anybody
11930         # maintain Libtool? --akim.
11931         export ac_cv_exeext
11932         break;;
11933     * )
11934         break;;
11935   esac
11936 done
11937 else
11938   echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
11942 See \`config.log' for more details." >&5
11943 echo "$as_me: error: C compiler cannot create executables
11944 See \`config.log' for more details." >&2;}
11945    { (exit 77); exit 77; }; }
11946 fi
11947
11948 ac_exeext=$ac_cv_exeext
11949 echo "$as_me:$LINENO: result: $ac_file" >&5
11950 echo "${ECHO_T}$ac_file" >&6
11951
11952 # Check the compiler produces executables we can run.  If not, either
11953 # the compiler is broken, or we cross compile.
11954 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11955 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11956 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11957 # If not cross compiling, check that we can run a simple program.
11958 if test "$cross_compiling" != yes; then
11959   if { ac_try='./$ac_file'
11960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961   (eval $ac_try) 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); }; }; then
11965     cross_compiling=no
11966   else
11967     if test "$cross_compiling" = maybe; then
11968         cross_compiling=yes
11969     else
11970         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11971 If you meant to cross compile, use \`--host'.
11972 See \`config.log' for more details." >&5
11973 echo "$as_me: error: cannot run C compiled programs.
11974 If you meant to cross compile, use \`--host'.
11975 See \`config.log' for more details." >&2;}
11976    { (exit 1); exit 1; }; }
11977     fi
11978   fi
11979 fi
11980 echo "$as_me:$LINENO: result: yes" >&5
11981 echo "${ECHO_T}yes" >&6
11982
11983 rm -f a.out a.exe conftest$ac_cv_exeext b.out
11984 ac_clean_files=$ac_clean_files_save
11985 # Check the compiler produces executables we can run.  If not, either
11986 # the compiler is broken, or we cross compile.
11987 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11988 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11989 echo "$as_me:$LINENO: result: $cross_compiling" >&5
11990 echo "${ECHO_T}$cross_compiling" >&6
11991
11992 echo "$as_me:$LINENO: checking for suffix of executables" >&5
11993 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11995   (eval $ac_link) 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); }; then
11999   # If both `conftest.exe' and `conftest' are `present' (well, observable)
12000 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
12001 # work properly (i.e., refer to `conftest.exe'), while it won't with
12002 # `rm'.
12003 for ac_file in conftest.exe conftest conftest.*; do
12004   test -f "$ac_file" || continue
12005   case $ac_file in
12006     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12007     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12008           export ac_cv_exeext
12009           break;;
12010     * ) break;;
12011   esac
12012 done
12013 else
12014   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12015 See \`config.log' for more details." >&5
12016 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12017 See \`config.log' for more details." >&2;}
12018    { (exit 1); exit 1; }; }
12019 fi
12020
12021 rm -f conftest$ac_cv_exeext
12022 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12023 echo "${ECHO_T}$ac_cv_exeext" >&6
12024
12025 rm -f conftest.$ac_ext
12026 EXEEXT=$ac_cv_exeext
12027 ac_exeext=$EXEEXT
12028 echo "$as_me:$LINENO: checking for suffix of object files" >&5
12029 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12030 if test "${ac_cv_objext+set}" = set; then
12031   echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033   cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h.  */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h.  */
12039
12040 int
12041 main ()
12042 {
12043
12044   ;
12045   return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.o conftest.obj
12049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12050   (eval $ac_compile) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; then
12054   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12055   case $ac_file in
12056     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12057     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12058        break;;
12059   esac
12060 done
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12066 See \`config.log' for more details." >&5
12067 echo "$as_me: error: cannot compute suffix of object files: cannot compile
12068 See \`config.log' for more details." >&2;}
12069    { (exit 1); exit 1; }; }
12070 fi
12071
12072 rm -f conftest.$ac_cv_objext conftest.$ac_ext
12073 fi
12074 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12075 echo "${ECHO_T}$ac_cv_objext" >&6
12076 OBJEXT=$ac_cv_objext
12077 ac_objext=$OBJEXT
12078 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12079 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12080 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12081   echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083   cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h.  */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h.  */
12089
12090 int
12091 main ()
12092 {
12093 #ifndef __GNUC__
12094        choke me
12095 #endif
12096
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 rm -f conftest.$ac_objext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103   (eval $ac_compile) 2>conftest.er1
12104   ac_status=$?
12105   grep -v '^ *+' conftest.er1 >conftest.err
12106   rm -f conftest.er1
12107   cat conftest.err >&5
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); } &&
12110          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; } &&
12116          { ac_try='test -s conftest.$ac_objext'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122   ac_compiler_gnu=yes
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ac_compiler_gnu=no
12128 fi
12129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12131
12132 fi
12133 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12134 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12135 GCC=`test $ac_compiler_gnu = yes && echo yes`
12136 ac_test_CFLAGS=${CFLAGS+set}
12137 ac_save_CFLAGS=$CFLAGS
12138 CFLAGS="$CFLAGS -g"
12139 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12140 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12141 if test "${ac_cv_prog_cc_g+set}" = set; then
12142   echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144   cat >conftest.$ac_ext <<_ACEOF
12145 /* confdefs.h.  */
12146 _ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h.  */
12150
12151 int
12152 main ()
12153 {
12154
12155   ;
12156   return 0;
12157 }
12158 _ACEOF
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161   (eval $ac_compile) 2>conftest.er1
12162   ac_status=$?
12163   grep -v '^ *+' conftest.er1 >conftest.err
12164   rm -f conftest.er1
12165   cat conftest.err >&5
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); } &&
12168          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170   (eval $ac_try) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; } &&
12174          { ac_try='test -s conftest.$ac_objext'
12175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176   (eval $ac_try) 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }; }; then
12180   ac_cv_prog_cc_g=yes
12181 else
12182   echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185 ac_cv_prog_cc_g=no
12186 fi
12187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12188 fi
12189 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12191 if test "$ac_test_CFLAGS" = set; then
12192   CFLAGS=$ac_save_CFLAGS
12193 elif test $ac_cv_prog_cc_g = yes; then
12194   if test "$GCC" = yes; then
12195     CFLAGS="-g -O2"
12196   else
12197     CFLAGS="-g"
12198   fi
12199 else
12200   if test "$GCC" = yes; then
12201     CFLAGS="-O2"
12202   else
12203     CFLAGS=
12204   fi
12205 fi
12206 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12207 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12208 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12209   echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211   ac_cv_prog_cc_stdc=no
12212 ac_save_CC=$CC
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h.  */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h.  */
12219 #include <stdarg.h>
12220 #include <stdio.h>
12221 #include <sys/types.h>
12222 #include <sys/stat.h>
12223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12224 struct buf { int x; };
12225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12226 static char *e (p, i)
12227      char **p;
12228      int i;
12229 {
12230   return p[i];
12231 }
12232 static char *f (char * (*g) (char **, int), char **p, ...)
12233 {
12234   char *s;
12235   va_list v;
12236   va_start (v,p);
12237   s = g (p, va_arg (v,int));
12238   va_end (v);
12239   return s;
12240 }
12241
12242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12243    function prototypes and stuff, but not '\xHH' hex character constants.
12244    These don't provoke an error unfortunately, instead are silently treated
12245    as 'x'.  The following induces an error, until -std1 is added to get
12246    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12247    array size at least.  It's necessary to write '\x00'==0 to get something
12248    that's true only with -std1.  */
12249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12250
12251 int test (int i, double x);
12252 struct s1 {int (*f) (int a);};
12253 struct s2 {int (*f) (double a);};
12254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12255 int argc;
12256 char **argv;
12257 int
12258 main ()
12259 {
12260 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12261   ;
12262   return 0;
12263 }
12264 _ACEOF
12265 # Don't try gcc -ansi; that turns off useful extensions and
12266 # breaks some systems' header files.
12267 # AIX                   -qlanglvl=ansi
12268 # Ultrix and OSF/1      -std1
12269 # HP-UX 10.20 and later -Ae
12270 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12271 # SVR4                  -Xc -D__EXTENSIONS__
12272 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12273 do
12274   CC="$ac_save_CC $ac_arg"
12275   rm -f conftest.$ac_objext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277   (eval $ac_compile) 2>conftest.er1
12278   ac_status=$?
12279   grep -v '^ *+' conftest.er1 >conftest.err
12280   rm -f conftest.er1
12281   cat conftest.err >&5
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); } &&
12284          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286   (eval $ac_try) 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; } &&
12290          { ac_try='test -s conftest.$ac_objext'
12291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292   (eval $ac_try) 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; }; then
12296   ac_cv_prog_cc_stdc=$ac_arg
12297 break
12298 else
12299   echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302 fi
12303 rm -f conftest.err conftest.$ac_objext
12304 done
12305 rm -f conftest.$ac_ext conftest.$ac_objext
12306 CC=$ac_save_CC
12307
12308 fi
12309
12310 case "x$ac_cv_prog_cc_stdc" in
12311   x|xno)
12312     echo "$as_me:$LINENO: result: none needed" >&5
12313 echo "${ECHO_T}none needed" >&6 ;;
12314   *)
12315     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12316 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12317     CC="$CC $ac_cv_prog_cc_stdc" ;;
12318 esac
12319
12320 # Some people use a C++ compiler to compile C.  Since we use `exit',
12321 # in C++ we need to declare it.  In case someone uses the same compiler
12322 # for both compiling C and C++ we need to have the C++ compiler decide
12323 # the declaration of exit, since it's the most demanding environment.
12324 cat >conftest.$ac_ext <<_ACEOF
12325 #ifndef __cplusplus
12326   choke me
12327 #endif
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331   (eval $ac_compile) 2>conftest.er1
12332   ac_status=$?
12333   grep -v '^ *+' conftest.er1 >conftest.err
12334   rm -f conftest.er1
12335   cat conftest.err >&5
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } &&
12338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340   (eval $ac_try) 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; } &&
12344          { ac_try='test -s conftest.$ac_objext'
12345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346   (eval $ac_try) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); }; }; then
12350   for ac_declaration in \
12351    '' \
12352    'extern "C" void std::exit (int) throw (); using std::exit;' \
12353    'extern "C" void std::exit (int); using std::exit;' \
12354    'extern "C" void exit (int) throw ();' \
12355    'extern "C" void exit (int);' \
12356    'void exit (int);'
12357 do
12358   cat >conftest.$ac_ext <<_ACEOF
12359 /* confdefs.h.  */
12360 _ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h.  */
12364 $ac_declaration
12365 #include <stdlib.h>
12366 int
12367 main ()
12368 {
12369 exit (42);
12370   ;
12371   return 0;
12372 }
12373 _ACEOF
12374 rm -f conftest.$ac_objext
12375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12376   (eval $ac_compile) 2>conftest.er1
12377   ac_status=$?
12378   grep -v '^ *+' conftest.er1 >conftest.err
12379   rm -f conftest.er1
12380   cat conftest.err >&5
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); } &&
12383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385   (eval $ac_try) 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); }; } &&
12389          { ac_try='test -s conftest.$ac_objext'
12390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391   (eval $ac_try) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; }; then
12395   :
12396 else
12397   echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400 continue
12401 fi
12402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12403   cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h.  */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h.  */
12409 $ac_declaration
12410 int
12411 main ()
12412 {
12413 exit (42);
12414   ;
12415   return 0;
12416 }
12417 _ACEOF
12418 rm -f conftest.$ac_objext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420   (eval $ac_compile) 2>conftest.er1
12421   ac_status=$?
12422   grep -v '^ *+' conftest.er1 >conftest.err
12423   rm -f conftest.er1
12424   cat conftest.err >&5
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); } &&
12427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
12433          { ac_try='test -s conftest.$ac_objext'
12434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435   (eval $ac_try) 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; }; then
12439   break
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444 fi
12445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12446 done
12447 rm -f conftest*
12448 if test -n "$ac_declaration"; then
12449   echo '#ifdef __cplusplus' >>confdefs.h
12450   echo $ac_declaration      >>confdefs.h
12451   echo '#endif'             >>confdefs.h
12452 fi
12453
12454 else
12455   echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458 fi
12459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12460 ac_ext=c
12461 ac_cpp='$CPP $CPPFLAGS'
12462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12465
12466
12467
12468     ac_ext=c
12469 ac_cpp='$CPP $CPPFLAGS'
12470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12473
12474     echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12475 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12476 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12477   echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479   cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485
12486 int
12487 main ()
12488 {
12489
12490              #ifndef __INTEL_COMPILER
12491                 choke me
12492              #endif
12493
12494   ;
12495   return 0;
12496 }
12497 _ACEOF
12498 rm -f conftest.$ac_objext
12499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12500   (eval $ac_compile) 2>conftest.er1
12501   ac_status=$?
12502   grep -v '^ *+' conftest.er1 >conftest.err
12503   rm -f conftest.er1
12504   cat conftest.err >&5
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); } &&
12507          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509   (eval $ac_try) 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); }; } &&
12513          { ac_try='test -s conftest.$ac_objext'
12514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515   (eval $ac_try) 2>&5
12516   ac_status=$?
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); }; }; then
12519   bakefile_cv_c_compiler___INTEL_COMPILER=yes
12520 else
12521   echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12523
12524 bakefile_cv_c_compiler___INTEL_COMPILER=no
12525
12526 fi
12527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12528
12529
12530 fi
12531 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12532 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12533     ac_ext=c
12534 ac_cpp='$CPP $CPPFLAGS'
12535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12538
12539     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12540         :; INTELCC=yes
12541     else
12542         :;
12543     fi
12544
12545
12546         if test "x$GCC" != "xyes"; then
12547         if test "xCC" = "xC"; then
12548             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
12549 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
12550 if test "${bakefile_cv_c_exto+set}" = set; then
12551   echo $ECHO_N "(cached) $ECHO_C" >&6
12552 else
12553   cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h.  */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h.  */
12559
12560 int
12561 main ()
12562 {
12563
12564   ;
12565   return 0;
12566 }
12567 _ACEOF
12568 rm -f conftest.$ac_objext conftest.$ac_ext.o
12569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570   (eval $ac_compile) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; then
12574   for ac_file in `(ls conftest.* 2>/dev/null)`; do
12575     case $ac_file in
12576         conftest.$ac_ext.o)
12577             bakefile_cv_c_exto="-ext o"
12578             ;;
12579         *)
12580             ;;
12581     esac
12582 done
12583 else
12584   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12585 See \`config.log' for more details." >&5
12586 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12587 See \`config.log' for more details." >&2;}
12588    { (exit 1); exit 1; }; }
12589
12590 fi
12591
12592 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12593
12594 fi
12595 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12596 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12597 if test "x$bakefile_cv_c_exto" '!=' "x"; then
12598     if test "c" = "c"; then
12599         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
12600     fi
12601     if test "c" = "cxx"; then
12602         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
12603     fi
12604 fi
12605
12606             if test "x$bakefile_cv_c_exto" '!=' "x"; then
12607                 unset ac_cv_prog_cc_g
12608                 ac_test_CFLAGS=${CFLAGS+set}
12609 ac_save_CFLAGS=$CFLAGS
12610 CFLAGS="$CFLAGS -g"
12611 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12612 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12613 if test "${ac_cv_prog_cc_g+set}" = set; then
12614   echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616   cat >conftest.$ac_ext <<_ACEOF
12617 /* confdefs.h.  */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h.  */
12622
12623 int
12624 main ()
12625 {
12626
12627   ;
12628   return 0;
12629 }
12630 _ACEOF
12631 rm -f conftest.$ac_objext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633   (eval $ac_compile) 2>conftest.er1
12634   ac_status=$?
12635   grep -v '^ *+' conftest.er1 >conftest.err
12636   rm -f conftest.er1
12637   cat conftest.err >&5
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); } &&
12640          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642   (eval $ac_try) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; } &&
12646          { ac_try='test -s conftest.$ac_objext'
12647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648   (eval $ac_try) 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); }; }; then
12652   ac_cv_prog_cc_g=yes
12653 else
12654   echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657 ac_cv_prog_cc_g=no
12658 fi
12659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12660 fi
12661 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12662 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12663 if test "$ac_test_CFLAGS" = set; then
12664   CFLAGS=$ac_save_CFLAGS
12665 elif test $ac_cv_prog_cc_g = yes; then
12666   if test "$GCC" = yes; then
12667     CFLAGS="-g -O2"
12668   else
12669     CFLAGS="-g"
12670   fi
12671 else
12672   if test "$GCC" = yes; then
12673     CFLAGS="-O2"
12674   else
12675     CFLAGS=
12676   fi
12677 fi
12678             fi
12679         fi
12680
12681                         case `uname -s` in
12682             AIX*)
12683                 ac_ext=c
12684 ac_cpp='$CPP $CPPFLAGS'
12685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12688
12689 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12690 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12691 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12692   echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694   cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700
12701 int
12702 main ()
12703 {
12704 #ifndef __xlC__
12705        choke me
12706 #endif
12707
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 rm -f conftest.$ac_objext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714   (eval $ac_compile) 2>conftest.er1
12715   ac_status=$?
12716   grep -v '^ *+' conftest.er1 >conftest.err
12717   rm -f conftest.er1
12718   cat conftest.err >&5
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } &&
12721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723   (eval $ac_try) 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); }; } &&
12727          { ac_try='test -s conftest.$ac_objext'
12728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729   (eval $ac_try) 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); }; }; then
12733   bakefile_compiler_xlc=yes
12734 else
12735   echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 bakefile_compiler_xlc=no
12739 fi
12740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12741     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12742
12743 fi
12744 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12745 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12746
12747 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12748 ac_ext=c
12749 ac_cpp='$CPP $CPPFLAGS'
12750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12753
12754
12755                 ;;
12756
12757             Darwin)
12758                 ac_ext=c
12759 ac_cpp='$CPP $CPPFLAGS'
12760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12763
12764 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12765 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12766 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12767   echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769   cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h.  */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h.  */
12775
12776 int
12777 main ()
12778 {
12779 #ifndef __MWERKS__
12780        choke me
12781 #endif
12782
12783   ;
12784   return 0;
12785 }
12786 _ACEOF
12787 rm -f conftest.$ac_objext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12789   (eval $ac_compile) 2>conftest.er1
12790   ac_status=$?
12791   grep -v '^ *+' conftest.er1 >conftest.err
12792   rm -f conftest.er1
12793   cat conftest.err >&5
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } &&
12796          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798   (eval $ac_try) 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; } &&
12802          { ac_try='test -s conftest.$ac_objext'
12803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804   (eval $ac_try) 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; }; then
12808   bakefile_compiler_mwerks=yes
12809 else
12810   echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813 bakefile_compiler_mwerks=no
12814 fi
12815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12816     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12817
12818 fi
12819 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12820 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12821
12822 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
12823 ac_ext=c
12824 ac_cpp='$CPP $CPPFLAGS'
12825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12828
12829
12830                 ac_ext=c
12831 ac_cpp='$CPP $CPPFLAGS'
12832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12835
12836 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12837 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12838 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12839   echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841   cat >conftest.$ac_ext <<_ACEOF
12842 /* confdefs.h.  */
12843 _ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h.  */
12847
12848 int
12849 main ()
12850 {
12851 #ifndef __xlC__
12852        choke me
12853 #endif
12854
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest.$ac_objext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12861   (eval $ac_compile) 2>conftest.er1
12862   ac_status=$?
12863   grep -v '^ *+' conftest.er1 >conftest.err
12864   rm -f conftest.er1
12865   cat conftest.err >&5
12866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); } &&
12868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870   (eval $ac_try) 2>&5
12871   ac_status=$?
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); }; } &&
12874          { ac_try='test -s conftest.$ac_objext'
12875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876   (eval $ac_try) 2>&5
12877   ac_status=$?
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); }; }; then
12880   bakefile_compiler_xlc=yes
12881 else
12882   echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885 bakefile_compiler_xlc=no
12886 fi
12887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12888     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12889
12890 fi
12891 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12892 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12893
12894 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12895 ac_ext=c
12896 ac_cpp='$CPP $CPPFLAGS'
12897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12900
12901
12902                 ;;
12903
12904             IRIX*)
12905
12906
12907     ac_ext=c
12908 ac_cpp='$CPP $CPPFLAGS'
12909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12912
12913     echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12914 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12915 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12916   echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918   cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h.  */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h.  */
12924
12925 int
12926 main ()
12927 {
12928
12929              #ifndef _SGI_COMPILER_VERSION
12930                 choke me
12931              #endif
12932
12933   ;
12934   return 0;
12935 }
12936 _ACEOF
12937 rm -f conftest.$ac_objext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939   (eval $ac_compile) 2>conftest.er1
12940   ac_status=$?
12941   grep -v '^ *+' conftest.er1 >conftest.err
12942   rm -f conftest.er1
12943   cat conftest.err >&5
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); } &&
12946          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948   (eval $ac_try) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); }; } &&
12952          { ac_try='test -s conftest.$ac_objext'
12953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954   (eval $ac_try) 2>&5
12955   ac_status=$?
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); }; }; then
12958   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12959 else
12960   echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12962
12963 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12964
12965 fi
12966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12967
12968
12969 fi
12970 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12971 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12972     ac_ext=c
12973 ac_cpp='$CPP $CPPFLAGS'
12974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12977
12978     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12979         :; SGICC=yes
12980     else
12981         :;
12982     fi
12983
12984
12985                 ;;
12986
12987             HP-UX*)
12988
12989
12990     ac_ext=c
12991 ac_cpp='$CPP $CPPFLAGS'
12992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12995
12996     echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12997 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12998 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
12999   echo $ECHO_N "(cached) $ECHO_C" >&6
13000 else
13001   cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h.  */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h.  */
13007
13008 int
13009 main ()
13010 {
13011
13012              #ifndef __HP_cc
13013                 choke me
13014              #endif
13015
13016   ;
13017   return 0;
13018 }
13019 _ACEOF
13020 rm -f conftest.$ac_objext
13021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13022   (eval $ac_compile) 2>conftest.er1
13023   ac_status=$?
13024   grep -v '^ *+' conftest.er1 >conftest.err
13025   rm -f conftest.er1
13026   cat conftest.err >&5
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); } &&
13029          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031   (eval $ac_try) 2>&5
13032   ac_status=$?
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); }; } &&
13035          { ac_try='test -s conftest.$ac_objext'
13036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037   (eval $ac_try) 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; }; then
13041   bakefile_cv_c_compiler___HP_cc=yes
13042 else
13043   echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13045
13046 bakefile_cv_c_compiler___HP_cc=no
13047
13048 fi
13049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13050
13051
13052 fi
13053 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13054 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
13055     ac_ext=c
13056 ac_cpp='$CPP $CPPFLAGS'
13057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13060
13061     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13062         :; HPCC=yes
13063     else
13064         :;
13065     fi
13066
13067
13068                 ;;
13069
13070             OSF1)
13071
13072
13073     ac_ext=c
13074 ac_cpp='$CPP $CPPFLAGS'
13075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13078
13079     echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13080 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13081 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
13082   echo $ECHO_N "(cached) $ECHO_C" >&6
13083 else
13084   cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h.  */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h.  */
13090
13091 int
13092 main ()
13093 {
13094
13095              #ifndef __DECC
13096                 choke me
13097              #endif
13098
13099   ;
13100   return 0;
13101 }
13102 _ACEOF
13103 rm -f conftest.$ac_objext
13104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105   (eval $ac_compile) 2>conftest.er1
13106   ac_status=$?
13107   grep -v '^ *+' conftest.er1 >conftest.err
13108   rm -f conftest.er1
13109   cat conftest.err >&5
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); } &&
13112          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114   (eval $ac_try) 2>&5
13115   ac_status=$?
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); }; } &&
13118          { ac_try='test -s conftest.$ac_objext'
13119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120   (eval $ac_try) 2>&5
13121   ac_status=$?
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); }; }; then
13124   bakefile_cv_c_compiler___DECC=yes
13125 else
13126   echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13128
13129 bakefile_cv_c_compiler___DECC=no
13130
13131 fi
13132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13133
13134
13135 fi
13136 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13137 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
13138     ac_ext=c
13139 ac_cpp='$CPP $CPPFLAGS'
13140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13143
13144     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13145         :; COMPAQCC=yes
13146     else
13147         :;
13148     fi
13149
13150
13151                 ;;
13152
13153             SunOS)
13154
13155
13156     ac_ext=c
13157 ac_cpp='$CPP $CPPFLAGS'
13158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13161
13162     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13163 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13164 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13165   echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167   cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h.  */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h.  */
13173
13174 int
13175 main ()
13176 {
13177
13178              #ifndef __SUNPRO_C
13179                 choke me
13180              #endif
13181
13182   ;
13183   return 0;
13184 }
13185 _ACEOF
13186 rm -f conftest.$ac_objext
13187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188   (eval $ac_compile) 2>conftest.er1
13189   ac_status=$?
13190   grep -v '^ *+' conftest.er1 >conftest.err
13191   rm -f conftest.er1
13192   cat conftest.err >&5
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); } &&
13195          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197   (eval $ac_try) 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; } &&
13201          { ac_try='test -s conftest.$ac_objext'
13202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203   (eval $ac_try) 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); }; }; then
13207   bakefile_cv_c_compiler___SUNPRO_C=yes
13208 else
13209   echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212 bakefile_cv_c_compiler___SUNPRO_C=no
13213
13214 fi
13215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216
13217
13218 fi
13219 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13220 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13221     ac_ext=c
13222 ac_cpp='$CPP $CPPFLAGS'
13223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13226
13227     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13228         :; SUNCC=yes
13229     else
13230         :;
13231     fi
13232
13233
13234                 ;;
13235         esac
13236     fi
13237
13238
13239
13240 ac_ext=c
13241 ac_cpp='$CPP $CPPFLAGS'
13242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13245 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13246 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13247 # On Suns, sometimes $CPP names a directory.
13248 if test -n "$CPP" && test -d "$CPP"; then
13249   CPP=
13250 fi
13251 if test -z "$CPP"; then
13252   if test "${ac_cv_prog_CPP+set}" = set; then
13253   echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255       # Double quotes because CPP needs to be expanded
13256     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13257     do
13258       ac_preproc_ok=false
13259 for ac_c_preproc_warn_flag in '' yes
13260 do
13261   # Use a header file that comes with gcc, so configuring glibc
13262   # with a fresh cross-compiler works.
13263   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13264   # <limits.h> exists even on freestanding compilers.
13265   # On the NeXT, cc -E runs the code through the compiler's parser,
13266   # not just through cpp. "Syntax error" is here to catch this case.
13267   cat >conftest.$ac_ext <<_ACEOF
13268 /* confdefs.h.  */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h.  */
13273 #ifdef __STDC__
13274 # include <limits.h>
13275 #else
13276 # include <assert.h>
13277 #endif
13278                      Syntax error
13279 _ACEOF
13280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13282   ac_status=$?
13283   grep -v '^ *+' conftest.er1 >conftest.err
13284   rm -f conftest.er1
13285   cat conftest.err >&5
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); } >/dev/null; then
13288   if test -s conftest.err; then
13289     ac_cpp_err=$ac_c_preproc_warn_flag
13290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13291   else
13292     ac_cpp_err=
13293   fi
13294 else
13295   ac_cpp_err=yes
13296 fi
13297 if test -z "$ac_cpp_err"; then
13298   :
13299 else
13300   echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13302
13303   # Broken: fails on valid input.
13304 continue
13305 fi
13306 rm -f conftest.err conftest.$ac_ext
13307
13308   # OK, works on sane cases.  Now check whether non-existent headers
13309   # can be detected and how.
13310   cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h.  */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h.  */
13316 #include <ac_nonexistent.h>
13317 _ACEOF
13318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13320   ac_status=$?
13321   grep -v '^ *+' conftest.er1 >conftest.err
13322   rm -f conftest.er1
13323   cat conftest.err >&5
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); } >/dev/null; then
13326   if test -s conftest.err; then
13327     ac_cpp_err=$ac_c_preproc_warn_flag
13328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13329   else
13330     ac_cpp_err=
13331   fi
13332 else
13333   ac_cpp_err=yes
13334 fi
13335 if test -z "$ac_cpp_err"; then
13336   # Broken: success on invalid input.
13337 continue
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342   # Passes both tests.
13343 ac_preproc_ok=:
13344 break
13345 fi
13346 rm -f conftest.err conftest.$ac_ext
13347
13348 done
13349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13350 rm -f conftest.err conftest.$ac_ext
13351 if $ac_preproc_ok; then
13352   break
13353 fi
13354
13355     done
13356     ac_cv_prog_CPP=$CPP
13357
13358 fi
13359   CPP=$ac_cv_prog_CPP
13360 else
13361   ac_cv_prog_CPP=$CPP
13362 fi
13363 echo "$as_me:$LINENO: result: $CPP" >&5
13364 echo "${ECHO_T}$CPP" >&6
13365 ac_preproc_ok=false
13366 for ac_c_preproc_warn_flag in '' yes
13367 do
13368   # Use a header file that comes with gcc, so configuring glibc
13369   # with a fresh cross-compiler works.
13370   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13371   # <limits.h> exists even on freestanding compilers.
13372   # On the NeXT, cc -E runs the code through the compiler's parser,
13373   # not just through cpp. "Syntax error" is here to catch this case.
13374   cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h.  */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h.  */
13380 #ifdef __STDC__
13381 # include <limits.h>
13382 #else
13383 # include <assert.h>
13384 #endif
13385                      Syntax error
13386 _ACEOF
13387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13389   ac_status=$?
13390   grep -v '^ *+' conftest.er1 >conftest.err
13391   rm -f conftest.er1
13392   cat conftest.err >&5
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); } >/dev/null; then
13395   if test -s conftest.err; then
13396     ac_cpp_err=$ac_c_preproc_warn_flag
13397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13398   else
13399     ac_cpp_err=
13400   fi
13401 else
13402   ac_cpp_err=yes
13403 fi
13404 if test -z "$ac_cpp_err"; then
13405   :
13406 else
13407   echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13409
13410   # Broken: fails on valid input.
13411 continue
13412 fi
13413 rm -f conftest.err conftest.$ac_ext
13414
13415   # OK, works on sane cases.  Now check whether non-existent headers
13416   # can be detected and how.
13417   cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 #include <ac_nonexistent.h>
13424 _ACEOF
13425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13426   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13427   ac_status=$?
13428   grep -v '^ *+' conftest.er1 >conftest.err
13429   rm -f conftest.er1
13430   cat conftest.err >&5
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } >/dev/null; then
13433   if test -s conftest.err; then
13434     ac_cpp_err=$ac_c_preproc_warn_flag
13435     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13436   else
13437     ac_cpp_err=
13438   fi
13439 else
13440   ac_cpp_err=yes
13441 fi
13442 if test -z "$ac_cpp_err"; then
13443   # Broken: success on invalid input.
13444 continue
13445 else
13446   echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13448
13449   # Passes both tests.
13450 ac_preproc_ok=:
13451 break
13452 fi
13453 rm -f conftest.err conftest.$ac_ext
13454
13455 done
13456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13457 rm -f conftest.err conftest.$ac_ext
13458 if $ac_preproc_ok; then
13459   :
13460 else
13461   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13462 See \`config.log' for more details." >&5
13463 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13464 See \`config.log' for more details." >&2;}
13465    { (exit 1); exit 1; }; }
13466 fi
13467
13468 ac_ext=c
13469 ac_cpp='$CPP $CPPFLAGS'
13470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13473
13474
13475 echo "$as_me:$LINENO: checking for egrep" >&5
13476 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13477 if test "${ac_cv_prog_egrep+set}" = set; then
13478   echo $ECHO_N "(cached) $ECHO_C" >&6
13479 else
13480   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13481     then ac_cv_prog_egrep='grep -E'
13482     else ac_cv_prog_egrep='egrep'
13483     fi
13484 fi
13485 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13486 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13487  EGREP=$ac_cv_prog_egrep
13488
13489
13490 if test $ac_cv_c_compiler_gnu = yes; then
13491     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13492 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13493 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13494   echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496     ac_pattern="Autoconf.*'x'"
13497   cat >conftest.$ac_ext <<_ACEOF
13498 /* confdefs.h.  */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h.  */
13503 #include <sgtty.h>
13504 Autoconf TIOCGETP
13505 _ACEOF
13506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13507   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13508   ac_cv_prog_gcc_traditional=yes
13509 else
13510   ac_cv_prog_gcc_traditional=no
13511 fi
13512 rm -f conftest*
13513
13514
13515   if test $ac_cv_prog_gcc_traditional = no; then
13516     cat >conftest.$ac_ext <<_ACEOF
13517 /* confdefs.h.  */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h.  */
13522 #include <termio.h>
13523 Autoconf TCGETA
13524 _ACEOF
13525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13526   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13527   ac_cv_prog_gcc_traditional=yes
13528 fi
13529 rm -f conftest*
13530
13531   fi
13532 fi
13533 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13534 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13535   if test $ac_cv_prog_gcc_traditional = yes; then
13536     CC="$CC -traditional"
13537   fi
13538 fi
13539
13540
13541 ac_ext=cc
13542 ac_cpp='$CXXCPP $CPPFLAGS'
13543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13546
13547
13548 CXXFLAGS=${CXXFLAGS:=}
13549
13550
13551
13552     ac_ext=cc
13553 ac_cpp='$CXXCPP $CPPFLAGS'
13554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13557 if test -n "$ac_tool_prefix"; then
13558   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13559   do
13560     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13562 echo "$as_me:$LINENO: checking for $ac_word" >&5
13563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13564 if test "${ac_cv_prog_CXX+set}" = set; then
13565   echo $ECHO_N "(cached) $ECHO_C" >&6
13566 else
13567   if test -n "$CXX"; then
13568   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13569 else
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13572 do
13573   IFS=$as_save_IFS
13574   test -z "$as_dir" && as_dir=.
13575   for ac_exec_ext in '' $ac_executable_extensions; do
13576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13579     break 2
13580   fi
13581 done
13582 done
13583
13584 fi
13585 fi
13586 CXX=$ac_cv_prog_CXX
13587 if test -n "$CXX"; then
13588   echo "$as_me:$LINENO: result: $CXX" >&5
13589 echo "${ECHO_T}$CXX" >&6
13590 else
13591   echo "$as_me:$LINENO: result: no" >&5
13592 echo "${ECHO_T}no" >&6
13593 fi
13594
13595     test -n "$CXX" && break
13596   done
13597 fi
13598 if test -z "$CXX"; then
13599   ac_ct_CXX=$CXX
13600   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13601 do
13602   # Extract the first word of "$ac_prog", so it can be a program name with args.
13603 set dummy $ac_prog; ac_word=$2
13604 echo "$as_me:$LINENO: checking for $ac_word" >&5
13605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13606 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13607   echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609   if test -n "$ac_ct_CXX"; then
13610   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13611 else
13612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613 for as_dir in $PATH
13614 do
13615   IFS=$as_save_IFS
13616   test -z "$as_dir" && as_dir=.
13617   for ac_exec_ext in '' $ac_executable_extensions; do
13618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13619     ac_cv_prog_ac_ct_CXX="$ac_prog"
13620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13621     break 2
13622   fi
13623 done
13624 done
13625
13626 fi
13627 fi
13628 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13629 if test -n "$ac_ct_CXX"; then
13630   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13631 echo "${ECHO_T}$ac_ct_CXX" >&6
13632 else
13633   echo "$as_me:$LINENO: result: no" >&5
13634 echo "${ECHO_T}no" >&6
13635 fi
13636
13637   test -n "$ac_ct_CXX" && break
13638 done
13639 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13640
13641   CXX=$ac_ct_CXX
13642 fi
13643
13644
13645 # Provide some information about the compiler.
13646 echo "$as_me:$LINENO:" \
13647      "checking for C++ compiler version" >&5
13648 ac_compiler=`set X $ac_compile; echo $2`
13649 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13650   (eval $ac_compiler --version </dev/null >&5) 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }
13654 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13655   (eval $ac_compiler -v </dev/null >&5) 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); }
13659 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13660   (eval $ac_compiler -V </dev/null >&5) 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); }
13664
13665 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13666 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13667 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13668   echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
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
13677 int
13678 main ()
13679 {
13680 #ifndef __GNUC__
13681        choke me
13682 #endif
13683
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13690   (eval $ac_compile) 2>conftest.er1
13691   ac_status=$?
13692   grep -v '^ *+' conftest.er1 >conftest.err
13693   rm -f conftest.er1
13694   cat conftest.err >&5
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); } &&
13697          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; } &&
13703          { ac_try='test -s conftest.$ac_objext'
13704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705   (eval $ac_try) 2>&5
13706   ac_status=$?
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); }; }; then
13709   ac_compiler_gnu=yes
13710 else
13711   echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714 ac_compiler_gnu=no
13715 fi
13716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13717 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13718
13719 fi
13720 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13721 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13722 GXX=`test $ac_compiler_gnu = yes && echo yes`
13723 ac_test_CXXFLAGS=${CXXFLAGS+set}
13724 ac_save_CXXFLAGS=$CXXFLAGS
13725 CXXFLAGS="-g"
13726 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13727 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13728 if test "${ac_cv_prog_cxx_g+set}" = set; then
13729   echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731   cat >conftest.$ac_ext <<_ACEOF
13732 /* confdefs.h.  */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h.  */
13737
13738 int
13739 main ()
13740 {
13741
13742   ;
13743   return 0;
13744 }
13745 _ACEOF
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748   (eval $ac_compile) 2>conftest.er1
13749   ac_status=$?
13750   grep -v '^ *+' conftest.er1 >conftest.err
13751   rm -f conftest.er1
13752   cat conftest.err >&5
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } &&
13755          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; } &&
13761          { ac_try='test -s conftest.$ac_objext'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; }; then
13767   ac_cv_prog_cxx_g=yes
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772 ac_cv_prog_cxx_g=no
13773 fi
13774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13775 fi
13776 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13777 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13778 if test "$ac_test_CXXFLAGS" = set; then
13779   CXXFLAGS=$ac_save_CXXFLAGS
13780 elif test $ac_cv_prog_cxx_g = yes; then
13781   if test "$GXX" = yes; then
13782     CXXFLAGS="$CXXFLAGS -g -O2"
13783   else
13784     CXXFLAGS="$CXXFLAGS -g"
13785   fi
13786 else
13787   if test "$GXX" = yes; then
13788     CXXFLAGS="-O2"
13789   else
13790     CXXFLAGS=
13791   fi
13792 fi
13793 for ac_declaration in \
13794    '' \
13795    'extern "C" void std::exit (int) throw (); using std::exit;' \
13796    'extern "C" void std::exit (int); using std::exit;' \
13797    'extern "C" void exit (int) throw ();' \
13798    'extern "C" void exit (int);' \
13799    'void exit (int);'
13800 do
13801   cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h.  */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h.  */
13807 $ac_declaration
13808 #include <stdlib.h>
13809 int
13810 main ()
13811 {
13812 exit (42);
13813   ;
13814   return 0;
13815 }
13816 _ACEOF
13817 rm -f conftest.$ac_objext
13818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13819   (eval $ac_compile) 2>conftest.er1
13820   ac_status=$?
13821   grep -v '^ *+' conftest.er1 >conftest.err
13822   rm -f conftest.er1
13823   cat conftest.err >&5
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); } &&
13826          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828   (eval $ac_try) 2>&5
13829   ac_status=$?
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); }; } &&
13832          { ac_try='test -s conftest.$ac_objext'
13833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834   (eval $ac_try) 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); }; }; then
13838   :
13839 else
13840   echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13842
13843 continue
13844 fi
13845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13846   cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h.  */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h.  */
13852 $ac_declaration
13853 int
13854 main ()
13855 {
13856 exit (42);
13857   ;
13858   return 0;
13859 }
13860 _ACEOF
13861 rm -f conftest.$ac_objext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13863   (eval $ac_compile) 2>conftest.er1
13864   ac_status=$?
13865   grep -v '^ *+' conftest.er1 >conftest.err
13866   rm -f conftest.er1
13867   cat conftest.err >&5
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); } &&
13870          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872   (eval $ac_try) 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); }; } &&
13876          { ac_try='test -s conftest.$ac_objext'
13877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878   (eval $ac_try) 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; }; then
13882   break
13883 else
13884   echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887 fi
13888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13889 done
13890 rm -f conftest*
13891 if test -n "$ac_declaration"; then
13892   echo '#ifdef __cplusplus' >>confdefs.h
13893   echo $ac_declaration      >>confdefs.h
13894   echo '#endif'             >>confdefs.h
13895 fi
13896
13897 ac_ext=cc
13898 ac_cpp='$CXXCPP $CPPFLAGS'
13899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13902
13903
13904
13905     ac_ext=cc
13906 ac_cpp='$CXXCPP $CPPFLAGS'
13907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13910
13911     echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13912 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13913 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916   cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h.  */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h.  */
13922
13923 int
13924 main ()
13925 {
13926
13927              #ifndef __INTEL_COMPILER
13928                 choke me
13929              #endif
13930
13931   ;
13932   return 0;
13933 }
13934 _ACEOF
13935 rm -f conftest.$ac_objext
13936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13937   (eval $ac_compile) 2>conftest.er1
13938   ac_status=$?
13939   grep -v '^ *+' conftest.er1 >conftest.err
13940   rm -f conftest.er1
13941   cat conftest.err >&5
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); } &&
13944          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946   (eval $ac_try) 2>&5
13947   ac_status=$?
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); }; } &&
13950          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13956   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13957 else
13958   echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13960
13961 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13962
13963 fi
13964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13965
13966
13967 fi
13968 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13969 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13970     ac_ext=cc
13971 ac_cpp='$CXXCPP $CPPFLAGS'
13972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13975
13976     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13977         :; INTELCXX=yes
13978     else
13979         :;
13980     fi
13981
13982
13983         if test "x$GCXX" != "xyes"; then
13984         if test "xCXX" = "xC"; then
13985             echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
13986 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
13987 if test "${bakefile_cv_cxx_exto+set}" = set; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990   cat >conftest.$ac_ext <<_ACEOF
13991 /* confdefs.h.  */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h.  */
13996
13997 int
13998 main ()
13999 {
14000
14001   ;
14002   return 0;
14003 }
14004 _ACEOF
14005 rm -f conftest.$ac_objext conftest.$ac_ext.o
14006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14007   (eval $ac_compile) 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); }; then
14011   for ac_file in `(ls conftest.* 2>/dev/null)`; do
14012     case $ac_file in
14013         conftest.$ac_ext.o)
14014             bakefile_cv_cxx_exto="-ext o"
14015             ;;
14016         *)
14017             ;;
14018     esac
14019 done
14020 else
14021   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14022 See \`config.log' for more details." >&5
14023 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14024 See \`config.log' for more details." >&2;}
14025    { (exit 1); exit 1; }; }
14026
14027 fi
14028
14029 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14030
14031 fi
14032 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14033 echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14034 if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
14035     if test "cxx" = "c"; then
14036         CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
14037     fi
14038     if test "cxx" = "cxx"; then
14039         CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
14040     fi
14041 fi
14042
14043             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14044                 unset ac_cv_prog_cc_g
14045                 ac_test_CFLAGS=${CFLAGS+set}
14046 ac_save_CFLAGS=$CFLAGS
14047 CFLAGS="$CFLAGS -g"
14048 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14049 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14050 if test "${ac_cv_prog_cc_g+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h.  */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h.  */
14059
14060 int
14061 main ()
14062 {
14063
14064   ;
14065   return 0;
14066 }
14067 _ACEOF
14068 rm -f conftest.$ac_objext
14069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14070   (eval $ac_compile) 2>conftest.er1
14071   ac_status=$?
14072   grep -v '^ *+' conftest.er1 >conftest.err
14073   rm -f conftest.er1
14074   cat conftest.err >&5
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); } &&
14077          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079   (eval $ac_try) 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); }; } &&
14083          { ac_try='test -s conftest.$ac_objext'
14084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085   (eval $ac_try) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; }; then
14089   ac_cv_prog_cc_g=yes
14090 else
14091   echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14093
14094 ac_cv_prog_cc_g=no
14095 fi
14096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14097 fi
14098 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14100 if test "$ac_test_CFLAGS" = set; then
14101   CFLAGS=$ac_save_CFLAGS
14102 elif test $ac_cv_prog_cc_g = yes; then
14103   if test "$GCC" = yes; then
14104     CFLAGS="-g -O2"
14105   else
14106     CFLAGS="-g"
14107   fi
14108 else
14109   if test "$GCC" = yes; then
14110     CFLAGS="-O2"
14111   else
14112     CFLAGS=
14113   fi
14114 fi
14115             fi
14116         fi
14117
14118                         case `uname -s` in
14119             AIX*)
14120                 ac_ext=cc
14121 ac_cpp='$CXXCPP $CPPFLAGS'
14122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14125
14126 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14127 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14128 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14129   echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131   cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h.  */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h.  */
14137
14138 int
14139 main ()
14140 {
14141 #ifndef __xlC__
14142        choke me
14143 #endif
14144
14145   ;
14146   return 0;
14147 }
14148 _ACEOF
14149 rm -f conftest.$ac_objext
14150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14151   (eval $ac_compile) 2>conftest.er1
14152   ac_status=$?
14153   grep -v '^ *+' conftest.er1 >conftest.err
14154   rm -f conftest.er1
14155   cat conftest.err >&5
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); } &&
14158          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160   (eval $ac_try) 2>&5
14161   ac_status=$?
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); }; } &&
14164          { ac_try='test -s conftest.$ac_objext'
14165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166   (eval $ac_try) 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); }; }; then
14170   bakefile_compiler_xlc=yes
14171 else
14172   echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14174
14175 bakefile_compiler_xlc=no
14176 fi
14177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14178     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14179
14180 fi
14181 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14182 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14183
14184 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14185 ac_ext=cc
14186 ac_cpp='$CXXCPP $CPPFLAGS'
14187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14190
14191
14192                 ;;
14193
14194             Darwin)
14195                 ac_ext=cc
14196 ac_cpp='$CXXCPP $CPPFLAGS'
14197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14200
14201 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14202 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14203 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14204   echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206   cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h.  */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h.  */
14212
14213 int
14214 main ()
14215 {
14216 #ifndef __MWERKS__
14217        choke me
14218 #endif
14219
14220   ;
14221   return 0;
14222 }
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226   (eval $ac_compile) 2>conftest.er1
14227   ac_status=$?
14228   grep -v '^ *+' conftest.er1 >conftest.err
14229   rm -f conftest.er1
14230   cat conftest.err >&5
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); } &&
14233          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235   (eval $ac_try) 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); }; } &&
14239          { ac_try='test -s conftest.$ac_objext'
14240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241   (eval $ac_try) 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); }; }; then
14245   bakefile_compiler_mwerks=yes
14246 else
14247   echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14249
14250 bakefile_compiler_mwerks=no
14251 fi
14252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14253     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14254
14255 fi
14256 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14257 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14258
14259 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
14260 ac_ext=cc
14261 ac_cpp='$CXXCPP $CPPFLAGS'
14262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14265
14266
14267                 ac_ext=cc
14268 ac_cpp='$CXXCPP $CPPFLAGS'
14269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14272
14273 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14274 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14275 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278   cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284
14285 int
14286 main ()
14287 {
14288 #ifndef __xlC__
14289        choke me
14290 #endif
14291
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 rm -f conftest.$ac_objext
14297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14298   (eval $ac_compile) 2>conftest.er1
14299   ac_status=$?
14300   grep -v '^ *+' conftest.er1 >conftest.err
14301   rm -f conftest.er1
14302   cat conftest.err >&5
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); } &&
14305          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307   (eval $ac_try) 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); }; } &&
14311          { ac_try='test -s conftest.$ac_objext'
14312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313   (eval $ac_try) 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; }; then
14317   bakefile_compiler_xlc=yes
14318 else
14319   echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322 bakefile_compiler_xlc=no
14323 fi
14324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14325     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14326
14327 fi
14328 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14329 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14330
14331 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14332 ac_ext=cc
14333 ac_cpp='$CXXCPP $CPPFLAGS'
14334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14337
14338
14339                 ;;
14340
14341             IRIX*)
14342
14343
14344     ac_ext=cc
14345 ac_cpp='$CXXCPP $CPPFLAGS'
14346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14349
14350     echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14351 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14352 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14353   echo $ECHO_N "(cached) $ECHO_C" >&6
14354 else
14355   cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h.  */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h.  */
14361
14362 int
14363 main ()
14364 {
14365
14366              #ifndef _SGI_COMPILER_VERSION
14367                 choke me
14368              #endif
14369
14370   ;
14371   return 0;
14372 }
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376   (eval $ac_compile) 2>conftest.er1
14377   ac_status=$?
14378   grep -v '^ *+' conftest.er1 >conftest.err
14379   rm -f conftest.er1
14380   cat conftest.err >&5
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } &&
14383          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385   (eval $ac_try) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; } &&
14389          { ac_try='test -s conftest.$ac_objext'
14390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391   (eval $ac_try) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; }; then
14395   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14396 else
14397   echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14401
14402 fi
14403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404
14405
14406 fi
14407 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14408 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14409     ac_ext=cc
14410 ac_cpp='$CXXCPP $CPPFLAGS'
14411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14414
14415     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14416         :; SGICXX=yes
14417     else
14418         :;
14419     fi
14420
14421
14422                 ;;
14423
14424             HP-UX*)
14425
14426
14427     ac_ext=cc
14428 ac_cpp='$CXXCPP $CPPFLAGS'
14429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14432
14433     echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14434 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14435 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
14436   echo $ECHO_N "(cached) $ECHO_C" >&6
14437 else
14438   cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h.  */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h.  */
14444
14445 int
14446 main ()
14447 {
14448
14449              #ifndef __HP_aCC
14450                 choke me
14451              #endif
14452
14453   ;
14454   return 0;
14455 }
14456 _ACEOF
14457 rm -f conftest.$ac_objext
14458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14459   (eval $ac_compile) 2>conftest.er1
14460   ac_status=$?
14461   grep -v '^ *+' conftest.er1 >conftest.err
14462   rm -f conftest.er1
14463   cat conftest.err >&5
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); } &&
14466          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468   (eval $ac_try) 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); }; } &&
14472          { ac_try='test -s conftest.$ac_objext'
14473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474   (eval $ac_try) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); }; }; then
14478   bakefile_cv_cxx_compiler___HP_aCC=yes
14479 else
14480   echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14482
14483 bakefile_cv_cxx_compiler___HP_aCC=no
14484
14485 fi
14486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14487
14488
14489 fi
14490 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14491 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
14492     ac_ext=cc
14493 ac_cpp='$CXXCPP $CPPFLAGS'
14494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14497
14498     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14499         :; HPCXX=yes
14500     else
14501         :;
14502     fi
14503
14504
14505                 ;;
14506
14507             OSF1)
14508
14509
14510     ac_ext=cc
14511 ac_cpp='$CXXCPP $CPPFLAGS'
14512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14515
14516     echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14517 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14518 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
14519   echo $ECHO_N "(cached) $ECHO_C" >&6
14520 else
14521   cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h.  */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h.  */
14527
14528 int
14529 main ()
14530 {
14531
14532              #ifndef __DECCXX
14533                 choke me
14534              #endif
14535
14536   ;
14537   return 0;
14538 }
14539 _ACEOF
14540 rm -f conftest.$ac_objext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14542   (eval $ac_compile) 2>conftest.er1
14543   ac_status=$?
14544   grep -v '^ *+' conftest.er1 >conftest.err
14545   rm -f conftest.er1
14546   cat conftest.err >&5
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); } &&
14549          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551   (eval $ac_try) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); }; } &&
14555          { ac_try='test -s conftest.$ac_objext'
14556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557   (eval $ac_try) 2>&5
14558   ac_status=$?
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); }; }; then
14561   bakefile_cv_cxx_compiler___DECCXX=yes
14562 else
14563   echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14565
14566 bakefile_cv_cxx_compiler___DECCXX=no
14567
14568 fi
14569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14570
14571
14572 fi
14573 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14574 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
14575     ac_ext=cc
14576 ac_cpp='$CXXCPP $CPPFLAGS'
14577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14580
14581     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14582         :; COMPAQCXX=yes
14583     else
14584         :;
14585     fi
14586
14587
14588                 ;;
14589
14590             SunOS)
14591
14592
14593     ac_ext=cc
14594 ac_cpp='$CXXCPP $CPPFLAGS'
14595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14598
14599     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14600 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14601 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14602   echo $ECHO_N "(cached) $ECHO_C" >&6
14603 else
14604   cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610
14611 int
14612 main ()
14613 {
14614
14615              #ifndef __SUNPRO_CC
14616                 choke me
14617              #endif
14618
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14625   (eval $ac_compile) 2>conftest.er1
14626   ac_status=$?
14627   grep -v '^ *+' conftest.er1 >conftest.err
14628   rm -f conftest.er1
14629   cat conftest.err >&5
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } &&
14632          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; } &&
14638          { ac_try='test -s conftest.$ac_objext'
14639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640   (eval $ac_try) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }; }; then
14644   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 bakefile_cv_cxx_compiler___SUNPRO_CC=no
14650
14651 fi
14652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14653
14654
14655 fi
14656 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14657 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14658     ac_ext=cc
14659 ac_cpp='$CXXCPP $CPPFLAGS'
14660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14663
14664     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14665         :; SUNCXX=yes
14666     else
14667         :;
14668     fi
14669
14670
14671                 ;;
14672         esac
14673     fi
14674
14675
14676
14677 if test -n "$ac_tool_prefix"; then
14678   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14680 echo "$as_me:$LINENO: checking for $ac_word" >&5
14681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14682 if test "${ac_cv_prog_RANLIB+set}" = set; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685   if test -n "$RANLIB"; then
14686   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14687 else
14688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14689 for as_dir in $PATH
14690 do
14691   IFS=$as_save_IFS
14692   test -z "$as_dir" && as_dir=.
14693   for ac_exec_ext in '' $ac_executable_extensions; do
14694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14695     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14697     break 2
14698   fi
14699 done
14700 done
14701
14702 fi
14703 fi
14704 RANLIB=$ac_cv_prog_RANLIB
14705 if test -n "$RANLIB"; then
14706   echo "$as_me:$LINENO: result: $RANLIB" >&5
14707 echo "${ECHO_T}$RANLIB" >&6
14708 else
14709   echo "$as_me:$LINENO: result: no" >&5
14710 echo "${ECHO_T}no" >&6
14711 fi
14712
14713 fi
14714 if test -z "$ac_cv_prog_RANLIB"; then
14715   ac_ct_RANLIB=$RANLIB
14716   # Extract the first word of "ranlib", so it can be a program name with args.
14717 set dummy ranlib; ac_word=$2
14718 echo "$as_me:$LINENO: checking for $ac_word" >&5
14719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14720 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14721   echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723   if test -n "$ac_ct_RANLIB"; then
14724   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14725 else
14726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727 for as_dir in $PATH
14728 do
14729   IFS=$as_save_IFS
14730   test -z "$as_dir" && as_dir=.
14731   for ac_exec_ext in '' $ac_executable_extensions; do
14732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14733     ac_cv_prog_ac_ct_RANLIB="ranlib"
14734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14735     break 2
14736   fi
14737 done
14738 done
14739
14740   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14741 fi
14742 fi
14743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14744 if test -n "$ac_ct_RANLIB"; then
14745   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14746 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14747 else
14748   echo "$as_me:$LINENO: result: no" >&5
14749 echo "${ECHO_T}no" >&6
14750 fi
14751
14752   RANLIB=$ac_ct_RANLIB
14753 else
14754   RANLIB="$ac_cv_prog_RANLIB"
14755 fi
14756
14757
14758 if test -n "$ac_tool_prefix"; then
14759   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14760 set dummy ${ac_tool_prefix}ar; ac_word=$2
14761 echo "$as_me:$LINENO: checking for $ac_word" >&5
14762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14763 if test "${ac_cv_prog_AR+set}" = set; then
14764   echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766   if test -n "$AR"; then
14767   ac_cv_prog_AR="$AR" # Let the user override the test.
14768 else
14769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770 for as_dir in $PATH
14771 do
14772   IFS=$as_save_IFS
14773   test -z "$as_dir" && as_dir=.
14774   for ac_exec_ext in '' $ac_executable_extensions; do
14775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14776     ac_cv_prog_AR="${ac_tool_prefix}ar"
14777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14778     break 2
14779   fi
14780 done
14781 done
14782
14783 fi
14784 fi
14785 AR=$ac_cv_prog_AR
14786 if test -n "$AR"; then
14787   echo "$as_me:$LINENO: result: $AR" >&5
14788 echo "${ECHO_T}$AR" >&6
14789 else
14790   echo "$as_me:$LINENO: result: no" >&5
14791 echo "${ECHO_T}no" >&6
14792 fi
14793
14794 fi
14795 if test -z "$ac_cv_prog_AR"; then
14796   ac_ct_AR=$AR
14797   # Extract the first word of "ar", so it can be a program name with args.
14798 set dummy ar; ac_word=$2
14799 echo "$as_me:$LINENO: checking for $ac_word" >&5
14800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14801 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14802   echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804   if test -n "$ac_ct_AR"; then
14805   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14806 else
14807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14808 for as_dir in $PATH
14809 do
14810   IFS=$as_save_IFS
14811   test -z "$as_dir" && as_dir=.
14812   for ac_exec_ext in '' $ac_executable_extensions; do
14813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14814     ac_cv_prog_ac_ct_AR="ar"
14815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14816     break 2
14817   fi
14818 done
14819 done
14820
14821 fi
14822 fi
14823 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14824 if test -n "$ac_ct_AR"; then
14825   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14826 echo "${ECHO_T}$ac_ct_AR" >&6
14827 else
14828   echo "$as_me:$LINENO: result: no" >&5
14829 echo "${ECHO_T}no" >&6
14830 fi
14831
14832   AR=$ac_ct_AR
14833 else
14834   AR="$ac_cv_prog_AR"
14835 fi
14836
14837 if test "x$AR" = "x" ; then
14838     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14839 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
14840    { (exit 1); exit 1; }; }
14841 fi
14842
14843 # Find a good install program.  We prefer a C program (faster),
14844 # so one script is as good as another.  But avoid the broken or
14845 # incompatible versions:
14846 # SysV /etc/install, /usr/sbin/install
14847 # SunOS /usr/etc/install
14848 # IRIX /sbin/install
14849 # AIX /bin/install
14850 # AmigaOS /C/install, which installs bootblocks on floppy discs
14851 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14852 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14853 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14854 # OS/2's system install, which has a completely different semantic
14855 # ./install, which can be erroneously created by make from ./install.sh.
14856 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14857 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14858 if test -z "$INSTALL"; then
14859 if test "${ac_cv_path_install+set}" = set; then
14860   echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14863 for as_dir in $PATH
14864 do
14865   IFS=$as_save_IFS
14866   test -z "$as_dir" && as_dir=.
14867   # Account for people who put trailing slashes in PATH elements.
14868 case $as_dir/ in
14869   ./ | .// | /cC/* | \
14870   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14871   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14872   /usr/ucb/* ) ;;
14873   *)
14874     # OSF1 and SCO ODT 3.0 have their own names for install.
14875     # Don't use installbsd from OSF since it installs stuff as root
14876     # by default.
14877     for ac_prog in ginstall scoinst install; do
14878       for ac_exec_ext in '' $ac_executable_extensions; do
14879         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14880           if test $ac_prog = install &&
14881             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14882             # AIX install.  It has an incompatible calling convention.
14883             :
14884           elif test $ac_prog = install &&
14885             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14886             # program-specific install script used by HP pwplus--don't use.
14887             :
14888           else
14889             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14890             break 3
14891           fi
14892         fi
14893       done
14894     done
14895     ;;
14896 esac
14897 done
14898
14899
14900 fi
14901   if test "${ac_cv_path_install+set}" = set; then
14902     INSTALL=$ac_cv_path_install
14903   else
14904     # As a last resort, use the slow shell script.  We don't cache a
14905     # path for INSTALL within a source directory, because that will
14906     # break other packages using the cache if that directory is
14907     # removed, or if the path is relative.
14908     INSTALL=$ac_install_sh
14909   fi
14910 fi
14911 echo "$as_me:$LINENO: result: $INSTALL" >&5
14912 echo "${ECHO_T}$INSTALL" >&6
14913
14914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14915 # It thinks the first close brace ends the variable substitution.
14916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14917
14918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14919
14920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14921
14922
14923 case ${INSTALL} in
14924   /* ) # Absolute
14925      ;;
14926   ?:* ) # Drive letter, considered as absolute.
14927      ;;
14928   *)
14929      INSTALL=`pwd`/${INSTALL} ;;
14930 esac
14931
14932
14933 case "${host}" in
14934
14935                 *-*-darwin* )
14936         INSTALL_PROGRAM="cp -fp"
14937         INSTALL_DATA="cp -fp"
14938         ;;
14939     *)
14940         ;;
14941 esac
14942
14943 if test -n "$ac_tool_prefix"; then
14944   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14945 set dummy ${ac_tool_prefix}strip; ac_word=$2
14946 echo "$as_me:$LINENO: checking for $ac_word" >&5
14947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14948 if test "${ac_cv_prog_STRIP+set}" = set; then
14949   echo $ECHO_N "(cached) $ECHO_C" >&6
14950 else
14951   if test -n "$STRIP"; then
14952   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14953 else
14954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14955 for as_dir in $PATH
14956 do
14957   IFS=$as_save_IFS
14958   test -z "$as_dir" && as_dir=.
14959   for ac_exec_ext in '' $ac_executable_extensions; do
14960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14961     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14963     break 2
14964   fi
14965 done
14966 done
14967
14968 fi
14969 fi
14970 STRIP=$ac_cv_prog_STRIP
14971 if test -n "$STRIP"; then
14972   echo "$as_me:$LINENO: result: $STRIP" >&5
14973 echo "${ECHO_T}$STRIP" >&6
14974 else
14975   echo "$as_me:$LINENO: result: no" >&5
14976 echo "${ECHO_T}no" >&6
14977 fi
14978
14979 fi
14980 if test -z "$ac_cv_prog_STRIP"; then
14981   ac_ct_STRIP=$STRIP
14982   # Extract the first word of "strip", so it can be a program name with args.
14983 set dummy strip; ac_word=$2
14984 echo "$as_me:$LINENO: checking for $ac_word" >&5
14985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14986 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14987   echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989   if test -n "$ac_ct_STRIP"; then
14990   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14991 else
14992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14993 for as_dir in $PATH
14994 do
14995   IFS=$as_save_IFS
14996   test -z "$as_dir" && as_dir=.
14997   for ac_exec_ext in '' $ac_executable_extensions; do
14998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14999     ac_cv_prog_ac_ct_STRIP="strip"
15000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15001     break 2
15002   fi
15003 done
15004 done
15005
15006   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15007 fi
15008 fi
15009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15010 if test -n "$ac_ct_STRIP"; then
15011   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15012 echo "${ECHO_T}$ac_ct_STRIP" >&6
15013 else
15014   echo "$as_me:$LINENO: result: no" >&5
15015 echo "${ECHO_T}no" >&6
15016 fi
15017
15018   STRIP=$ac_ct_STRIP
15019 else
15020   STRIP="$ac_cv_prog_STRIP"
15021 fi
15022
15023
15024 if test "$wxUSE_WINE" = "yes"; then
15025     if test -n "$ac_tool_prefix"; then
15026   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15027 set dummy ${ac_tool_prefix}wrc; ac_word=$2
15028 echo "$as_me:$LINENO: checking for $ac_word" >&5
15029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15030 if test "${ac_cv_prog_WINDRES+set}" = set; then
15031   echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033   if test -n "$WINDRES"; then
15034   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15035 else
15036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15037 for as_dir in $PATH
15038 do
15039   IFS=$as_save_IFS
15040   test -z "$as_dir" && as_dir=.
15041   for ac_exec_ext in '' $ac_executable_extensions; do
15042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15043     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
15044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15045     break 2
15046   fi
15047 done
15048 done
15049
15050 fi
15051 fi
15052 WINDRES=$ac_cv_prog_WINDRES
15053 if test -n "$WINDRES"; then
15054   echo "$as_me:$LINENO: result: $WINDRES" >&5
15055 echo "${ECHO_T}$WINDRES" >&6
15056 else
15057   echo "$as_me:$LINENO: result: no" >&5
15058 echo "${ECHO_T}no" >&6
15059 fi
15060
15061 fi
15062 if test -z "$ac_cv_prog_WINDRES"; then
15063   ac_ct_WINDRES=$WINDRES
15064   # Extract the first word of "wrc", so it can be a program name with args.
15065 set dummy wrc; ac_word=$2
15066 echo "$as_me:$LINENO: checking for $ac_word" >&5
15067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15068 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15069   echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071   if test -n "$ac_ct_WINDRES"; then
15072   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15073 else
15074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15075 for as_dir in $PATH
15076 do
15077   IFS=$as_save_IFS
15078   test -z "$as_dir" && as_dir=.
15079   for ac_exec_ext in '' $ac_executable_extensions; do
15080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15081     ac_cv_prog_ac_ct_WINDRES="wrc"
15082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15083     break 2
15084   fi
15085 done
15086 done
15087
15088 fi
15089 fi
15090 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15091 if test -n "$ac_ct_WINDRES"; then
15092   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15093 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15094 else
15095   echo "$as_me:$LINENO: result: no" >&5
15096 echo "${ECHO_T}no" >&6
15097 fi
15098
15099   WINDRES=$ac_ct_WINDRES
15100 else
15101   WINDRES="$ac_cv_prog_WINDRES"
15102 fi
15103
15104     RESCOMP="$WINDRES"
15105 else
15106     case "${host}" in
15107     *-*-cygwin* | *-*-mingw32* )
15108                                 if test -n "$ac_tool_prefix"; then
15109   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15110 set dummy ${ac_tool_prefix}windres; ac_word=$2
15111 echo "$as_me:$LINENO: checking for $ac_word" >&5
15112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15113 if test "${ac_cv_prog_WINDRES+set}" = set; then
15114   echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116   if test -n "$WINDRES"; then
15117   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15118 else
15119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120 for as_dir in $PATH
15121 do
15122   IFS=$as_save_IFS
15123   test -z "$as_dir" && as_dir=.
15124   for ac_exec_ext in '' $ac_executable_extensions; do
15125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15126     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15128     break 2
15129   fi
15130 done
15131 done
15132
15133 fi
15134 fi
15135 WINDRES=$ac_cv_prog_WINDRES
15136 if test -n "$WINDRES"; then
15137   echo "$as_me:$LINENO: result: $WINDRES" >&5
15138 echo "${ECHO_T}$WINDRES" >&6
15139 else
15140   echo "$as_me:$LINENO: result: no" >&5
15141 echo "${ECHO_T}no" >&6
15142 fi
15143
15144 fi
15145 if test -z "$ac_cv_prog_WINDRES"; then
15146   ac_ct_WINDRES=$WINDRES
15147   # Extract the first word of "windres", so it can be a program name with args.
15148 set dummy windres; ac_word=$2
15149 echo "$as_me:$LINENO: checking for $ac_word" >&5
15150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15151 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15152   echo $ECHO_N "(cached) $ECHO_C" >&6
15153 else
15154   if test -n "$ac_ct_WINDRES"; then
15155   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15156 else
15157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158 for as_dir in $PATH
15159 do
15160   IFS=$as_save_IFS
15161   test -z "$as_dir" && as_dir=.
15162   for ac_exec_ext in '' $ac_executable_extensions; do
15163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15164     ac_cv_prog_ac_ct_WINDRES="windres"
15165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15166     break 2
15167   fi
15168 done
15169 done
15170
15171 fi
15172 fi
15173 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15174 if test -n "$ac_ct_WINDRES"; then
15175   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15176 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15177 else
15178   echo "$as_me:$LINENO: result: no" >&5
15179 echo "${ECHO_T}no" >&6
15180 fi
15181
15182   WINDRES=$ac_ct_WINDRES
15183 else
15184   WINDRES="$ac_cv_prog_WINDRES"
15185 fi
15186
15187         RESCOMP="$WINDRES"
15188         if test -n "$ac_tool_prefix"; then
15189   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15190 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15191 echo "$as_me:$LINENO: checking for $ac_word" >&5
15192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15193 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15194   echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196   if test -n "$DLLTOOL"; then
15197   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15198 else
15199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15200 for as_dir in $PATH
15201 do
15202   IFS=$as_save_IFS
15203   test -z "$as_dir" && as_dir=.
15204   for ac_exec_ext in '' $ac_executable_extensions; do
15205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15206     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15208     break 2
15209   fi
15210 done
15211 done
15212
15213 fi
15214 fi
15215 DLLTOOL=$ac_cv_prog_DLLTOOL
15216 if test -n "$DLLTOOL"; then
15217   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15218 echo "${ECHO_T}$DLLTOOL" >&6
15219 else
15220   echo "$as_me:$LINENO: result: no" >&5
15221 echo "${ECHO_T}no" >&6
15222 fi
15223
15224 fi
15225 if test -z "$ac_cv_prog_DLLTOOL"; then
15226   ac_ct_DLLTOOL=$DLLTOOL
15227   # Extract the first word of "dlltool", so it can be a program name with args.
15228 set dummy dlltool; ac_word=$2
15229 echo "$as_me:$LINENO: checking for $ac_word" >&5
15230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15231 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15232   echo $ECHO_N "(cached) $ECHO_C" >&6
15233 else
15234   if test -n "$ac_ct_DLLTOOL"; then
15235   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15236 else
15237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238 for as_dir in $PATH
15239 do
15240   IFS=$as_save_IFS
15241   test -z "$as_dir" && as_dir=.
15242   for ac_exec_ext in '' $ac_executable_extensions; do
15243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15244     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15246     break 2
15247   fi
15248 done
15249 done
15250
15251 fi
15252 fi
15253 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15254 if test -n "$ac_ct_DLLTOOL"; then
15255   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15256 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15257 else
15258   echo "$as_me:$LINENO: result: no" >&5
15259 echo "${ECHO_T}no" >&6
15260 fi
15261
15262   DLLTOOL=$ac_ct_DLLTOOL
15263 else
15264   DLLTOOL="$ac_cv_prog_DLLTOOL"
15265 fi
15266
15267         ;;
15268     esac
15269 fi
15270
15271 echo "$as_me:$LINENO: checking if make is GNU make" >&5
15272 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15273 if test "${wx_cv_prog_makeisgnu+set}" = set; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276
15277     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15278             egrep -s GNU > /dev/null); then
15279         wx_cv_prog_makeisgnu="yes"
15280     else
15281         wx_cv_prog_makeisgnu="no"
15282     fi
15283
15284 fi
15285 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15286 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15287
15288 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15289     IF_GNU_MAKE=""
15290 else
15291     IF_GNU_MAKE="#"
15292 fi
15293
15294
15295
15296 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15297 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15298 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15299 if test "${wx_cv_prog_makevpath+set}" = set; then
15300   echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302
15303 cat - << EOF > confMake
15304 check : file
15305         cp \$? \$@
15306         cp \$? final_file
15307 EOF
15308
15309 if test ! -d sub ; then
15310   mkdir sub
15311 fi
15312 echo dummy > sub/file
15313 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15314 RESULT=$?
15315 rm -f sub/file check final_file confMake
15316 rmdir sub
15317 if test "$RESULT" = 0; then
15318   wx_cv_prog_makevpath="yes"
15319 else
15320   wx_cv_prog_makevpath="no"
15321 fi
15322
15323 fi
15324 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15325 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15326
15327 if test "x$wx_cv_prog_makevpath" != "xyes"; then
15328 { { echo "$as_me:$LINENO: error:
15329 You need a make-utility that is able to use the variable
15330 VPATH correctly.
15331 If your version of make does not support VPATH correctly,
15332 please install GNU-make (possibly as gmake), and start
15333 configure with the following command:
15334 export MAKE=gmake; ./configure  for sh-type shells
15335 setenv MAKE gmake; ./configure  for csh-type shells
15336 Also please do remember to use gmake in this case every time
15337 you are trying to compile.
15338 " >&5
15339 echo "$as_me: error:
15340 You need a make-utility that is able to use the variable
15341 VPATH correctly.
15342 If your version of make does not support VPATH correctly,
15343 please install GNU-make (possibly as gmake), and start
15344 configure with the following command:
15345 export MAKE=gmake; ./configure  for sh-type shells
15346 setenv MAKE gmake; ./configure  for csh-type shells
15347 Also please do remember to use gmake in this case every time
15348 you are trying to compile.
15349 " >&2;}
15350    { (exit 1); exit 1; }; }
15351 fi fi
15352 echo "$as_me:$LINENO: checking whether ln -s works" >&5
15353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15354 LN_S=$as_ln_s
15355 if test "$LN_S" = "ln -s"; then
15356   echo "$as_me:$LINENO: result: yes" >&5
15357 echo "${ECHO_T}yes" >&6
15358 else
15359   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15360 echo "${ECHO_T}no, using $LN_S" >&6
15361 fi
15362
15363
15364
15365
15366 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
15367     CXXFLAGS="-qunique $CXXFLAGS"
15368 fi
15369
15370 case "${host}" in
15371   powerpc-*-darwin* )
15372     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15373 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15374     cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h.  */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h.  */
15380
15381 int
15382 main ()
15383 {
15384 #ifndef __POWERPC__
15385         choke me for lack of PowerPC
15386 #endif
15387
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394   (eval $ac_compile) 2>conftest.er1
15395   ac_status=$?
15396   grep -v '^ *+' conftest.er1 >conftest.err
15397   rm -f conftest.er1
15398   cat conftest.err >&5
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } &&
15401          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403   (eval $ac_try) 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; } &&
15407          { ac_try='test -s conftest.$ac_objext'
15408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409   (eval $ac_try) 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); }; }; then
15413   echo "$as_me:$LINENO: result: yes" >&5
15414 echo "${ECHO_T}yes" >&6
15415 else
15416   echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15418
15419 echo "$as_me:$LINENO: result: no" >&5
15420 echo "${ECHO_T}no" >&6
15421         cat >>confdefs.h <<\_ACEOF
15422 #define __POWERPC__ 1
15423 _ACEOF
15424
15425
15426 fi
15427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15428   ;;
15429 esac
15430
15431 case "${host}" in
15432   *-*-darwin* )
15433     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15434 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15435     cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h.  */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h.  */
15441 #include <CoreFoundation/CFBase.h>
15442
15443 int
15444 main ()
15445 {
15446
15447   ;
15448   return 0;
15449 }
15450 _ACEOF
15451 rm -f conftest.$ac_objext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15453   (eval $ac_compile) 2>conftest.er1
15454   ac_status=$?
15455   grep -v '^ *+' conftest.er1 >conftest.err
15456   rm -f conftest.er1
15457   cat conftest.err >&5
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); } &&
15460          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462   (eval $ac_try) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); }; } &&
15466          { ac_try='test -s conftest.$ac_objext'
15467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468   (eval $ac_try) 2>&5
15469   ac_status=$?
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); }; }; then
15472   echo "$as_me:$LINENO: result: yes" >&5
15473 echo "${ECHO_T}yes" >&6
15474 else
15475   echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15477
15478 echo "$as_me:$LINENO: result: no" >&5
15479 echo "${ECHO_T}no" >&6
15480         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15481 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15482         cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h.  */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h.  */
15488 #define __CF_USE_FRAMEWORK_INCLUDES__
15489 #include <CoreFoundation/CFBase.h>
15490
15491 int
15492 main ()
15493 {
15494
15495   ;
15496   return 0;
15497 }
15498 _ACEOF
15499 rm -f conftest.$ac_objext
15500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15501   (eval $ac_compile) 2>conftest.er1
15502   ac_status=$?
15503   grep -v '^ *+' conftest.er1 >conftest.err
15504   rm -f conftest.er1
15505   cat conftest.err >&5
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); } &&
15508          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510   (eval $ac_try) 2>&5
15511   ac_status=$?
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); }; } &&
15514          { ac_try='test -s conftest.$ac_objext'
15515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516   (eval $ac_try) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; }; then
15520   echo "$as_me:$LINENO: result: yes" >&5
15521 echo "${ECHO_T}yes" >&6
15522                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
15523 else
15524   echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
15528 See \`config.log' for more details." >&5
15529 echo "$as_me: error: no.  CoreFoundation not available.
15530 See \`config.log' for more details." >&2;}
15531    { (exit 1); exit 1; }; }
15532
15533 fi
15534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15535
15536
15537 fi
15538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15539   ;;
15540 esac
15541
15542 case "${host}" in
15543   *-pc-os2_emx | *-pc-os2-emx )
15544                                                       ac_ext=c
15545 ac_cpp='$CPP $CPPFLAGS'
15546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15549
15550       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15551                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15552 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15553 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15554   echo $ECHO_N "(cached) $ECHO_C" >&6
15555 else
15556   ac_check_lib_save_LIBS=$LIBS
15557 LIBS="-lcExt  $LIBS"
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h.  */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h.  */
15564
15565 /* Override any gcc2 internal prototype to avoid an error.  */
15566 #ifdef __cplusplus
15567 extern "C"
15568 #endif
15569 /* We use char because int might match the return type of a gcc2
15570    builtin and then its argument prototype would still apply.  */
15571 char drand48 ();
15572 int
15573 main ()
15574 {
15575 drand48 ();
15576   ;
15577   return 0;
15578 }
15579 _ACEOF
15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15582   (eval $ac_link) 2>conftest.er1
15583   ac_status=$?
15584   grep -v '^ *+' conftest.er1 >conftest.err
15585   rm -f conftest.er1
15586   cat conftest.err >&5
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); } &&
15589          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591   (eval $ac_try) 2>&5
15592   ac_status=$?
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); }; } &&
15595          { ac_try='test -s conftest$ac_exeext'
15596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597   (eval $ac_try) 2>&5
15598   ac_status=$?
15599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600   (exit $ac_status); }; }; then
15601   ac_cv_lib_cExt_drand48=yes
15602 else
15603   echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15605
15606 ac_cv_lib_cExt_drand48=no
15607 fi
15608 rm -f conftest.err conftest.$ac_objext \
15609       conftest$ac_exeext conftest.$ac_ext
15610 LIBS=$ac_check_lib_save_LIBS
15611 fi
15612 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15613 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15614 if test $ac_cv_lib_cExt_drand48 = yes; then
15615   LIBS="$LIBS -lcExt"
15616 fi
15617
15618       else
15619                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15620       fi
15621                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15622 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
15623 if test "${wx_cv_gccversion+set}" = set; then
15624   echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626
15627           if test "$cross_compiling" = yes; then
15628                 wx_cv_gccversion="EMX2"
15629
15630 else
15631   cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h.  */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h.  */
15637
15638                   #include <stdio.h>
15639
15640                   int main()
15641                   {
15642                       FILE *f=fopen("conftestval", "w");
15643                       if (!f) exit(1);
15644                       fprintf(f,
15645                   #if (__GNUC__ < 3)
15646                               "EMX2"
15647                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15648                               "EMX3"
15649                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15650                               "Innotek5"
15651                   #else
15652                               "Innotek6"
15653                   #endif
15654                       );
15655                       exit(0);
15656                   }
15657
15658 _ACEOF
15659 rm -f conftest$ac_exeext
15660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15661   (eval $ac_link) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666   (eval $ac_try) 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); }; }; then
15670   wx_cv_gccversion=`cat conftestval`
15671 else
15672   echo "$as_me: program exited with status $ac_status" >&5
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 ( exit $ac_status )
15677 wx_cv_gccversion="EMX2"
15678 fi
15679 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15680 fi
15681
15682 fi
15683 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15684 echo "${ECHO_T}$wx_cv_gccversion" >&6
15685       ac_ext=cc
15686 ac_cpp='$CXXCPP $CPPFLAGS'
15687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15690
15691       if test "$wx_cv_gccversion" = "EMX2"; then
15692           LIBS="$LIBS -lstdcpp"
15693           LDFLAGS="$LDFLAGS -Zsysv-signals"
15694       else
15695           if test "$wx_cv_gccversion" = "EMX3"; then
15696               LIBS="$LIBS -lstdcxx -lgcc"
15697               LDFLAGS="$LDFLAGS -Zsysv-signals"
15698           else
15699               LIBS="$LIBS -lstdc++"
15700           fi
15701       fi
15702       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15703         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15704 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15705         wxUSE_OMF=yes
15706         enable_omf=yes
15707       fi
15708         ;;
15709   *)
15710
15711       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
15712 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15713 if test "${ac_cv_string_strcasecmp+set}" = set; then
15714   echo $ECHO_N "(cached) $ECHO_C" >&6
15715 else
15716
15717           cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h.  */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h.  */
15723
15724               #include <string.h>
15725
15726 int
15727 main ()
15728 {
15729
15730                   strcasecmp("foo", "bar");
15731
15732   ;
15733   return 0;
15734 }
15735 _ACEOF
15736 rm -f conftest.$ac_objext conftest$ac_exeext
15737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15738   (eval $ac_link) 2>conftest.er1
15739   ac_status=$?
15740   grep -v '^ *+' conftest.er1 >conftest.err
15741   rm -f conftest.er1
15742   cat conftest.err >&5
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); } &&
15745          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747   (eval $ac_try) 2>&5
15748   ac_status=$?
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); }; } &&
15751          { ac_try='test -s conftest$ac_exeext'
15752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753   (eval $ac_try) 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); }; }; then
15757   ac_cv_string_strcasecmp=yes
15758 else
15759   echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15761
15762 ac_cv_string_strcasecmp=no
15763
15764 fi
15765 rm -f conftest.err conftest.$ac_objext \
15766       conftest$ac_exeext conftest.$ac_ext
15767
15768 fi
15769 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15770 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15771
15772       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15773           cat >>confdefs.h <<\_ACEOF
15774 #define HAVE_STRCASECMP_IN_STRING_H 1
15775 _ACEOF
15776
15777       else
15778           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15779 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15780 if test "${ac_cv_strings_strcasecmp+set}" = set; then
15781   echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783
15784               cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h.  */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h.  */
15790
15791                   #include <strings.h>
15792
15793 int
15794 main ()
15795 {
15796
15797                       strcasecmp("foo", "bar");
15798
15799   ;
15800   return 0;
15801 }
15802 _ACEOF
15803 rm -f conftest.$ac_objext conftest$ac_exeext
15804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15805   (eval $ac_link) 2>conftest.er1
15806   ac_status=$?
15807   grep -v '^ *+' conftest.er1 >conftest.err
15808   rm -f conftest.er1
15809   cat conftest.err >&5
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); } &&
15812          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814   (eval $ac_try) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); }; } &&
15818          { ac_try='test -s conftest$ac_exeext'
15819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820   (eval $ac_try) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; }; then
15824   ac_cv_strings_strcasecmp=yes
15825 else
15826   echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 ac_cv_strings_strcasecmp=no
15830
15831 fi
15832 rm -f conftest.err conftest.$ac_objext \
15833       conftest$ac_exeext conftest.$ac_ext
15834
15835 fi
15836 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15837 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15838
15839           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
15840               cat >>confdefs.h <<\_ACEOF
15841 #define HAVE_STRCASECMP_IN_STRINGS_H 1
15842 _ACEOF
15843
15844           else
15845               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15846 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15847    { (exit 1); exit 1; }; }
15848           fi
15849       fi
15850
15851         ;;
15852 esac
15853
15854
15855 ac_ext=cc
15856 ac_cpp='$CXXCPP $CPPFLAGS'
15857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15860 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15861 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15862 if test -z "$CXXCPP"; then
15863   if test "${ac_cv_prog_CXXCPP+set}" = set; then
15864   echo $ECHO_N "(cached) $ECHO_C" >&6
15865 else
15866       # Double quotes because CXXCPP needs to be expanded
15867     for CXXCPP in "$CXX -E" "/lib/cpp"
15868     do
15869       ac_preproc_ok=false
15870 for ac_cxx_preproc_warn_flag in '' yes
15871 do
15872   # Use a header file that comes with gcc, so configuring glibc
15873   # with a fresh cross-compiler works.
15874   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15875   # <limits.h> exists even on freestanding compilers.
15876   # On the NeXT, cc -E runs the code through the compiler's parser,
15877   # not just through cpp. "Syntax error" is here to catch this case.
15878   cat >conftest.$ac_ext <<_ACEOF
15879 /* confdefs.h.  */
15880 _ACEOF
15881 cat confdefs.h >>conftest.$ac_ext
15882 cat >>conftest.$ac_ext <<_ACEOF
15883 /* end confdefs.h.  */
15884 #ifdef __STDC__
15885 # include <limits.h>
15886 #else
15887 # include <assert.h>
15888 #endif
15889                      Syntax error
15890 _ACEOF
15891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15892   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15893   ac_status=$?
15894   grep -v '^ *+' conftest.er1 >conftest.err
15895   rm -f conftest.er1
15896   cat conftest.err >&5
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } >/dev/null; then
15899   if test -s conftest.err; then
15900     ac_cpp_err=$ac_cxx_preproc_warn_flag
15901     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15902   else
15903     ac_cpp_err=
15904   fi
15905 else
15906   ac_cpp_err=yes
15907 fi
15908 if test -z "$ac_cpp_err"; then
15909   :
15910 else
15911   echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15913
15914   # Broken: fails on valid input.
15915 continue
15916 fi
15917 rm -f conftest.err conftest.$ac_ext
15918
15919   # OK, works on sane cases.  Now check whether non-existent headers
15920   # can be detected and how.
15921   cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h.  */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h.  */
15927 #include <ac_nonexistent.h>
15928 _ACEOF
15929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15931   ac_status=$?
15932   grep -v '^ *+' conftest.er1 >conftest.err
15933   rm -f conftest.er1
15934   cat conftest.err >&5
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); } >/dev/null; then
15937   if test -s conftest.err; then
15938     ac_cpp_err=$ac_cxx_preproc_warn_flag
15939     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15940   else
15941     ac_cpp_err=
15942   fi
15943 else
15944   ac_cpp_err=yes
15945 fi
15946 if test -z "$ac_cpp_err"; then
15947   # Broken: success on invalid input.
15948 continue
15949 else
15950   echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15952
15953   # Passes both tests.
15954 ac_preproc_ok=:
15955 break
15956 fi
15957 rm -f conftest.err conftest.$ac_ext
15958
15959 done
15960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15961 rm -f conftest.err conftest.$ac_ext
15962 if $ac_preproc_ok; then
15963   break
15964 fi
15965
15966     done
15967     ac_cv_prog_CXXCPP=$CXXCPP
15968
15969 fi
15970   CXXCPP=$ac_cv_prog_CXXCPP
15971 else
15972   ac_cv_prog_CXXCPP=$CXXCPP
15973 fi
15974 echo "$as_me:$LINENO: result: $CXXCPP" >&5
15975 echo "${ECHO_T}$CXXCPP" >&6
15976 ac_preproc_ok=false
15977 for ac_cxx_preproc_warn_flag in '' yes
15978 do
15979   # Use a header file that comes with gcc, so configuring glibc
15980   # with a fresh cross-compiler works.
15981   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15982   # <limits.h> exists even on freestanding compilers.
15983   # On the NeXT, cc -E runs the code through the compiler's parser,
15984   # not just through cpp. "Syntax error" is here to catch this case.
15985   cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h.  */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h.  */
15991 #ifdef __STDC__
15992 # include <limits.h>
15993 #else
15994 # include <assert.h>
15995 #endif
15996                      Syntax error
15997 _ACEOF
15998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16000   ac_status=$?
16001   grep -v '^ *+' conftest.er1 >conftest.err
16002   rm -f conftest.er1
16003   cat conftest.err >&5
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); } >/dev/null; then
16006   if test -s conftest.err; then
16007     ac_cpp_err=$ac_cxx_preproc_warn_flag
16008     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16009   else
16010     ac_cpp_err=
16011   fi
16012 else
16013   ac_cpp_err=yes
16014 fi
16015 if test -z "$ac_cpp_err"; then
16016   :
16017 else
16018   echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16020
16021   # Broken: fails on valid input.
16022 continue
16023 fi
16024 rm -f conftest.err conftest.$ac_ext
16025
16026   # OK, works on sane cases.  Now check whether non-existent headers
16027   # can be detected and how.
16028   cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h.  */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h.  */
16034 #include <ac_nonexistent.h>
16035 _ACEOF
16036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16038   ac_status=$?
16039   grep -v '^ *+' conftest.er1 >conftest.err
16040   rm -f conftest.er1
16041   cat conftest.err >&5
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); } >/dev/null; then
16044   if test -s conftest.err; then
16045     ac_cpp_err=$ac_cxx_preproc_warn_flag
16046     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16047   else
16048     ac_cpp_err=
16049   fi
16050 else
16051   ac_cpp_err=yes
16052 fi
16053 if test -z "$ac_cpp_err"; then
16054   # Broken: success on invalid input.
16055 continue
16056 else
16057   echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16059
16060   # Passes both tests.
16061 ac_preproc_ok=:
16062 break
16063 fi
16064 rm -f conftest.err conftest.$ac_ext
16065
16066 done
16067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16068 rm -f conftest.err conftest.$ac_ext
16069 if $ac_preproc_ok; then
16070   :
16071 else
16072   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16073 See \`config.log' for more details." >&5
16074 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16075 See \`config.log' for more details." >&2;}
16076    { (exit 1); exit 1; }; }
16077 fi
16078
16079 ac_ext=cc
16080 ac_cpp='$CXXCPP $CPPFLAGS'
16081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16084
16085
16086 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16087 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16088 if test "${ac_cv_header_stdc+set}" = set; then
16089   echo $ECHO_N "(cached) $ECHO_C" >&6
16090 else
16091   cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h.  */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h.  */
16097 #include <stdlib.h>
16098 #include <stdarg.h>
16099 #include <string.h>
16100 #include <float.h>
16101
16102 int
16103 main ()
16104 {
16105
16106   ;
16107   return 0;
16108 }
16109 _ACEOF
16110 rm -f conftest.$ac_objext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16112   (eval $ac_compile) 2>conftest.er1
16113   ac_status=$?
16114   grep -v '^ *+' conftest.er1 >conftest.err
16115   rm -f conftest.er1
16116   cat conftest.err >&5
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); } &&
16119          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121   (eval $ac_try) 2>&5
16122   ac_status=$?
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); }; } &&
16125          { ac_try='test -s conftest.$ac_objext'
16126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127   (eval $ac_try) 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; }; then
16131   ac_cv_header_stdc=yes
16132 else
16133   echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16135
16136 ac_cv_header_stdc=no
16137 fi
16138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16139
16140 if test $ac_cv_header_stdc = yes; then
16141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16142   cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148 #include <string.h>
16149
16150 _ACEOF
16151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16152   $EGREP "memchr" >/dev/null 2>&1; then
16153   :
16154 else
16155   ac_cv_header_stdc=no
16156 fi
16157 rm -f conftest*
16158
16159 fi
16160
16161 if test $ac_cv_header_stdc = yes; then
16162   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16163   cat >conftest.$ac_ext <<_ACEOF
16164 /* confdefs.h.  */
16165 _ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h.  */
16169 #include <stdlib.h>
16170
16171 _ACEOF
16172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173   $EGREP "free" >/dev/null 2>&1; then
16174   :
16175 else
16176   ac_cv_header_stdc=no
16177 fi
16178 rm -f conftest*
16179
16180 fi
16181
16182 if test $ac_cv_header_stdc = yes; then
16183   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16184   if test "$cross_compiling" = yes; then
16185   :
16186 else
16187   cat >conftest.$ac_ext <<_ACEOF
16188 /* confdefs.h.  */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h.  */
16193 #include <ctype.h>
16194 #if ((' ' & 0x0FF) == 0x020)
16195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16197 #else
16198 # define ISLOWER(c) \
16199                    (('a' <= (c) && (c) <= 'i') \
16200                      || ('j' <= (c) && (c) <= 'r') \
16201                      || ('s' <= (c) && (c) <= 'z'))
16202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16203 #endif
16204
16205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16206 int
16207 main ()
16208 {
16209   int i;
16210   for (i = 0; i < 256; i++)
16211     if (XOR (islower (i), ISLOWER (i))
16212         || toupper (i) != TOUPPER (i))
16213       exit(2);
16214   exit (0);
16215 }
16216 _ACEOF
16217 rm -f conftest$ac_exeext
16218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16219   (eval $ac_link) 2>&5
16220   ac_status=$?
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224   (eval $ac_try) 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; }; then
16228   :
16229 else
16230   echo "$as_me: program exited with status $ac_status" >&5
16231 echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16233
16234 ( exit $ac_status )
16235 ac_cv_header_stdc=no
16236 fi
16237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16238 fi
16239 fi
16240 fi
16241 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16242 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16243 if test $ac_cv_header_stdc = yes; then
16244
16245 cat >>confdefs.h <<\_ACEOF
16246 #define STDC_HEADERS 1
16247 _ACEOF
16248
16249 fi
16250
16251 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
16262                   inttypes.h stdint.h unistd.h
16263 do
16264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16265 echo "$as_me:$LINENO: checking for $ac_header" >&5
16266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16268   echo $ECHO_N "(cached) $ECHO_C" >&6
16269 else
16270   cat >conftest.$ac_ext <<_ACEOF
16271 /* confdefs.h.  */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h.  */
16276 $ac_includes_default
16277
16278 #include <$ac_header>
16279 _ACEOF
16280 rm -f conftest.$ac_objext
16281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16282   (eval $ac_compile) 2>conftest.er1
16283   ac_status=$?
16284   grep -v '^ *+' conftest.er1 >conftest.err
16285   rm -f conftest.er1
16286   cat conftest.err >&5
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); } &&
16289          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291   (eval $ac_try) 2>&5
16292   ac_status=$?
16293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294   (exit $ac_status); }; } &&
16295          { ac_try='test -s conftest.$ac_objext'
16296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297   (eval $ac_try) 2>&5
16298   ac_status=$?
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); }; }; then
16301   eval "$as_ac_Header=yes"
16302 else
16303   echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 eval "$as_ac_Header=no"
16307 fi
16308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16309 fi
16310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16313   cat >>confdefs.h <<_ACEOF
16314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16315 _ACEOF
16316
16317 fi
16318
16319 done
16320
16321
16322
16323 for ac_header in stdlib.h
16324 do
16325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16327   echo "$as_me:$LINENO: checking for $ac_header" >&5
16328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330   echo $ECHO_N "(cached) $ECHO_C" >&6
16331 fi
16332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16334 else
16335   # Is the header compilable?
16336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16338 cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h.  */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h.  */
16344 $ac_includes_default
16345 #include <$ac_header>
16346 _ACEOF
16347 rm -f conftest.$ac_objext
16348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16349   (eval $ac_compile) 2>conftest.er1
16350   ac_status=$?
16351   grep -v '^ *+' conftest.er1 >conftest.err
16352   rm -f conftest.er1
16353   cat conftest.err >&5
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); } &&
16356          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358   (eval $ac_try) 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); }; } &&
16362          { ac_try='test -s conftest.$ac_objext'
16363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364   (eval $ac_try) 2>&5
16365   ac_status=$?
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); }; }; then
16368   ac_header_compiler=yes
16369 else
16370   echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16372
16373 ac_header_compiler=no
16374 fi
16375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16377 echo "${ECHO_T}$ac_header_compiler" >&6
16378
16379 # Is the header present?
16380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388 #include <$ac_header>
16389 _ACEOF
16390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16392   ac_status=$?
16393   grep -v '^ *+' conftest.er1 >conftest.err
16394   rm -f conftest.er1
16395   cat conftest.err >&5
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); } >/dev/null; then
16398   if test -s conftest.err; then
16399     ac_cpp_err=$ac_cxx_preproc_warn_flag
16400     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16401   else
16402     ac_cpp_err=
16403   fi
16404 else
16405   ac_cpp_err=yes
16406 fi
16407 if test -z "$ac_cpp_err"; then
16408   ac_header_preproc=yes
16409 else
16410   echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16412
16413   ac_header_preproc=no
16414 fi
16415 rm -f conftest.err conftest.$ac_ext
16416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16417 echo "${ECHO_T}$ac_header_preproc" >&6
16418
16419 # So?  What about this header?
16420 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16421   yes:no: )
16422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16426     ac_header_preproc=yes
16427     ;;
16428   no:yes:* )
16429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16441     (
16442       cat <<\_ASBOX
16443 ## ----------------------------------------- ##
16444 ## Report this to wx-dev@lists.wxwidgets.org ##
16445 ## ----------------------------------------- ##
16446 _ASBOX
16447     ) |
16448       sed "s/^/$as_me: WARNING:     /" >&2
16449     ;;
16450 esac
16451 echo "$as_me:$LINENO: checking for $ac_header" >&5
16452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16454   echo $ECHO_N "(cached) $ECHO_C" >&6
16455 else
16456   eval "$as_ac_Header=\$ac_header_preproc"
16457 fi
16458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16460
16461 fi
16462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16463   cat >>confdefs.h <<_ACEOF
16464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16465 _ACEOF
16466
16467 fi
16468
16469 done
16470
16471
16472 for ac_header in malloc.h
16473 do
16474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16476   echo "$as_me:$LINENO: checking for $ac_header" >&5
16477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 fi
16481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16483 else
16484   # Is the header compilable?
16485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h.  */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h.  */
16493 $ac_includes_default
16494 #include <$ac_header>
16495 _ACEOF
16496 rm -f conftest.$ac_objext
16497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16498   (eval $ac_compile) 2>conftest.er1
16499   ac_status=$?
16500   grep -v '^ *+' conftest.er1 >conftest.err
16501   rm -f conftest.er1
16502   cat conftest.err >&5
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); } &&
16505          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507   (eval $ac_try) 2>&5
16508   ac_status=$?
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); }; } &&
16511          { ac_try='test -s conftest.$ac_objext'
16512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513   (eval $ac_try) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; }; then
16517   ac_header_compiler=yes
16518 else
16519   echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16521
16522 ac_header_compiler=no
16523 fi
16524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16526 echo "${ECHO_T}$ac_header_compiler" >&6
16527
16528 # Is the header present?
16529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16531 cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h.  */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h.  */
16537 #include <$ac_header>
16538 _ACEOF
16539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16541   ac_status=$?
16542   grep -v '^ *+' conftest.er1 >conftest.err
16543   rm -f conftest.er1
16544   cat conftest.err >&5
16545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546   (exit $ac_status); } >/dev/null; then
16547   if test -s conftest.err; then
16548     ac_cpp_err=$ac_cxx_preproc_warn_flag
16549     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16550   else
16551     ac_cpp_err=
16552   fi
16553 else
16554   ac_cpp_err=yes
16555 fi
16556 if test -z "$ac_cpp_err"; then
16557   ac_header_preproc=yes
16558 else
16559   echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562   ac_header_preproc=no
16563 fi
16564 rm -f conftest.err conftest.$ac_ext
16565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16566 echo "${ECHO_T}$ac_header_preproc" >&6
16567
16568 # So?  What about this header?
16569 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16570   yes:no: )
16571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16575     ac_header_preproc=yes
16576     ;;
16577   no:yes:* )
16578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16580     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16581 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16582     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16584     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16585 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16588     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16590     (
16591       cat <<\_ASBOX
16592 ## ----------------------------------------- ##
16593 ## Report this to wx-dev@lists.wxwidgets.org ##
16594 ## ----------------------------------------- ##
16595 _ASBOX
16596     ) |
16597       sed "s/^/$as_me: WARNING:     /" >&2
16598     ;;
16599 esac
16600 echo "$as_me:$LINENO: checking for $ac_header" >&5
16601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16603   echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605   eval "$as_ac_Header=\$ac_header_preproc"
16606 fi
16607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16609
16610 fi
16611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16612   cat >>confdefs.h <<_ACEOF
16613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16614 _ACEOF
16615
16616 fi
16617
16618 done
16619
16620
16621 for ac_header in unistd.h
16622 do
16623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16625   echo "$as_me:$LINENO: checking for $ac_header" >&5
16626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16628   echo $ECHO_N "(cached) $ECHO_C" >&6
16629 fi
16630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16632 else
16633   # Is the header compilable?
16634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16636 cat >conftest.$ac_ext <<_ACEOF
16637 /* confdefs.h.  */
16638 _ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h.  */
16642 $ac_includes_default
16643 #include <$ac_header>
16644 _ACEOF
16645 rm -f conftest.$ac_objext
16646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16647   (eval $ac_compile) 2>conftest.er1
16648   ac_status=$?
16649   grep -v '^ *+' conftest.er1 >conftest.err
16650   rm -f conftest.er1
16651   cat conftest.err >&5
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); } &&
16654          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656   (eval $ac_try) 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; } &&
16660          { ac_try='test -s conftest.$ac_objext'
16661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662   (eval $ac_try) 2>&5
16663   ac_status=$?
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); }; }; then
16666   ac_header_compiler=yes
16667 else
16668   echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16670
16671 ac_header_compiler=no
16672 fi
16673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16675 echo "${ECHO_T}$ac_header_compiler" >&6
16676
16677 # Is the header present?
16678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686 #include <$ac_header>
16687 _ACEOF
16688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16690   ac_status=$?
16691   grep -v '^ *+' conftest.er1 >conftest.err
16692   rm -f conftest.er1
16693   cat conftest.err >&5
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); } >/dev/null; then
16696   if test -s conftest.err; then
16697     ac_cpp_err=$ac_cxx_preproc_warn_flag
16698     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16699   else
16700     ac_cpp_err=
16701   fi
16702 else
16703   ac_cpp_err=yes
16704 fi
16705 if test -z "$ac_cpp_err"; then
16706   ac_header_preproc=yes
16707 else
16708   echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16710
16711   ac_header_preproc=no
16712 fi
16713 rm -f conftest.err conftest.$ac_ext
16714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16715 echo "${ECHO_T}$ac_header_preproc" >&6
16716
16717 # So?  What about this header?
16718 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16719   yes:no: )
16720     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16724     ac_header_preproc=yes
16725     ;;
16726   no:yes:* )
16727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16729     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16730 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16731     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16733     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16734 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16737     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16739     (
16740       cat <<\_ASBOX
16741 ## ----------------------------------------- ##
16742 ## Report this to wx-dev@lists.wxwidgets.org ##
16743 ## ----------------------------------------- ##
16744 _ASBOX
16745     ) |
16746       sed "s/^/$as_me: WARNING:     /" >&2
16747     ;;
16748 esac
16749 echo "$as_me:$LINENO: checking for $ac_header" >&5
16750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16752   echo $ECHO_N "(cached) $ECHO_C" >&6
16753 else
16754   eval "$as_ac_Header=\$ac_header_preproc"
16755 fi
16756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16758
16759 fi
16760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16761   cat >>confdefs.h <<_ACEOF
16762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16763 _ACEOF
16764
16765 fi
16766
16767 done
16768
16769
16770 for ac_header in wchar.h
16771 do
16772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16774   echo "$as_me:$LINENO: checking for $ac_header" >&5
16775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16777   echo $ECHO_N "(cached) $ECHO_C" >&6
16778 fi
16779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16781 else
16782   # Is the header compilable?
16783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16785 cat >conftest.$ac_ext <<_ACEOF
16786 /* confdefs.h.  */
16787 _ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h.  */
16791 $ac_includes_default
16792 #include <$ac_header>
16793 _ACEOF
16794 rm -f conftest.$ac_objext
16795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16796   (eval $ac_compile) 2>conftest.er1
16797   ac_status=$?
16798   grep -v '^ *+' conftest.er1 >conftest.err
16799   rm -f conftest.er1
16800   cat conftest.err >&5
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); } &&
16803          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805   (eval $ac_try) 2>&5
16806   ac_status=$?
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); }; } &&
16809          { ac_try='test -s conftest.$ac_objext'
16810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811   (eval $ac_try) 2>&5
16812   ac_status=$?
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); }; }; then
16815   ac_header_compiler=yes
16816 else
16817   echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 ac_header_compiler=no
16821 fi
16822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16824 echo "${ECHO_T}$ac_header_compiler" >&6
16825
16826 # Is the header present?
16827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16829 cat >conftest.$ac_ext <<_ACEOF
16830 /* confdefs.h.  */
16831 _ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h.  */
16835 #include <$ac_header>
16836 _ACEOF
16837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16839   ac_status=$?
16840   grep -v '^ *+' conftest.er1 >conftest.err
16841   rm -f conftest.er1
16842   cat conftest.err >&5
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); } >/dev/null; then
16845   if test -s conftest.err; then
16846     ac_cpp_err=$ac_cxx_preproc_warn_flag
16847     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16848   else
16849     ac_cpp_err=
16850   fi
16851 else
16852   ac_cpp_err=yes
16853 fi
16854 if test -z "$ac_cpp_err"; then
16855   ac_header_preproc=yes
16856 else
16857   echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860   ac_header_preproc=no
16861 fi
16862 rm -f conftest.err conftest.$ac_ext
16863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16864 echo "${ECHO_T}$ac_header_preproc" >&6
16865
16866 # So?  What about this header?
16867 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16868   yes:no: )
16869     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16873     ac_header_preproc=yes
16874     ;;
16875   no:yes:* )
16876     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16878     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16879 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16880     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16882     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16883 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16886     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16888     (
16889       cat <<\_ASBOX
16890 ## ----------------------------------------- ##
16891 ## Report this to wx-dev@lists.wxwidgets.org ##
16892 ## ----------------------------------------- ##
16893 _ASBOX
16894     ) |
16895       sed "s/^/$as_me: WARNING:     /" >&2
16896     ;;
16897 esac
16898 echo "$as_me:$LINENO: checking for $ac_header" >&5
16899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16901   echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903   eval "$as_ac_Header=\$ac_header_preproc"
16904 fi
16905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16907
16908 fi
16909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16910   cat >>confdefs.h <<_ACEOF
16911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16912 _ACEOF
16913
16914 fi
16915
16916 done
16917
16918
16919 if test "$ac_cv_header_wchar_h" != "yes"; then
16920
16921 for ac_header in wcstr.h
16922 do
16923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16925   echo "$as_me:$LINENO: checking for $ac_header" >&5
16926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16928   echo $ECHO_N "(cached) $ECHO_C" >&6
16929 fi
16930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16932 else
16933   # Is the header compilable?
16934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16936 cat >conftest.$ac_ext <<_ACEOF
16937 /* confdefs.h.  */
16938 _ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h.  */
16942 $ac_includes_default
16943 #include <$ac_header>
16944 _ACEOF
16945 rm -f conftest.$ac_objext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947   (eval $ac_compile) 2>conftest.er1
16948   ac_status=$?
16949   grep -v '^ *+' conftest.er1 >conftest.err
16950   rm -f conftest.er1
16951   cat conftest.err >&5
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); } &&
16954          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956   (eval $ac_try) 2>&5
16957   ac_status=$?
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); }; } &&
16960          { ac_try='test -s conftest.$ac_objext'
16961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962   (eval $ac_try) 2>&5
16963   ac_status=$?
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); }; }; then
16966   ac_header_compiler=yes
16967 else
16968   echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16970
16971 ac_header_compiler=no
16972 fi
16973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16975 echo "${ECHO_T}$ac_header_compiler" >&6
16976
16977 # Is the header present?
16978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16980 cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h.  */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h.  */
16986 #include <$ac_header>
16987 _ACEOF
16988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16990   ac_status=$?
16991   grep -v '^ *+' conftest.er1 >conftest.err
16992   rm -f conftest.er1
16993   cat conftest.err >&5
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); } >/dev/null; then
16996   if test -s conftest.err; then
16997     ac_cpp_err=$ac_cxx_preproc_warn_flag
16998     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16999   else
17000     ac_cpp_err=
17001   fi
17002 else
17003   ac_cpp_err=yes
17004 fi
17005 if test -z "$ac_cpp_err"; then
17006   ac_header_preproc=yes
17007 else
17008   echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011   ac_header_preproc=no
17012 fi
17013 rm -f conftest.err conftest.$ac_ext
17014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17015 echo "${ECHO_T}$ac_header_preproc" >&6
17016
17017 # So?  What about this header?
17018 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17019   yes:no: )
17020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17024     ac_header_preproc=yes
17025     ;;
17026   no:yes:* )
17027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17039     (
17040       cat <<\_ASBOX
17041 ## ----------------------------------------- ##
17042 ## Report this to wx-dev@lists.wxwidgets.org ##
17043 ## ----------------------------------------- ##
17044 _ASBOX
17045     ) |
17046       sed "s/^/$as_me: WARNING:     /" >&2
17047     ;;
17048 esac
17049 echo "$as_me:$LINENO: checking for $ac_header" >&5
17050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17052   echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054   eval "$as_ac_Header=\$ac_header_preproc"
17055 fi
17056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17058
17059 fi
17060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17061   cat >>confdefs.h <<_ACEOF
17062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17063 _ACEOF
17064
17065 fi
17066
17067 done
17068
17069 fi
17070
17071
17072 for ac_header in fnmatch.h
17073 do
17074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17076   echo "$as_me:$LINENO: checking for $ac_header" >&5
17077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17079   echo $ECHO_N "(cached) $ECHO_C" >&6
17080 fi
17081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17083 else
17084   # Is the header compilable?
17085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17087 cat >conftest.$ac_ext <<_ACEOF
17088 /* confdefs.h.  */
17089 _ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h.  */
17093 $ac_includes_default
17094 #include <$ac_header>
17095 _ACEOF
17096 rm -f conftest.$ac_objext
17097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17098   (eval $ac_compile) 2>conftest.er1
17099   ac_status=$?
17100   grep -v '^ *+' conftest.er1 >conftest.err
17101   rm -f conftest.er1
17102   cat conftest.err >&5
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); } &&
17105          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107   (eval $ac_try) 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; } &&
17111          { ac_try='test -s conftest.$ac_objext'
17112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113   (eval $ac_try) 2>&5
17114   ac_status=$?
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); }; }; then
17117   ac_header_compiler=yes
17118 else
17119   echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 ac_header_compiler=no
17123 fi
17124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17126 echo "${ECHO_T}$ac_header_compiler" >&6
17127
17128 # Is the header present?
17129 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17131 cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h.  */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h.  */
17137 #include <$ac_header>
17138 _ACEOF
17139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17141   ac_status=$?
17142   grep -v '^ *+' conftest.er1 >conftest.err
17143   rm -f conftest.er1
17144   cat conftest.err >&5
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); } >/dev/null; then
17147   if test -s conftest.err; then
17148     ac_cpp_err=$ac_cxx_preproc_warn_flag
17149     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17150   else
17151     ac_cpp_err=
17152   fi
17153 else
17154   ac_cpp_err=yes
17155 fi
17156 if test -z "$ac_cpp_err"; then
17157   ac_header_preproc=yes
17158 else
17159   echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162   ac_header_preproc=no
17163 fi
17164 rm -f conftest.err conftest.$ac_ext
17165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17166 echo "${ECHO_T}$ac_header_preproc" >&6
17167
17168 # So?  What about this header?
17169 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17170   yes:no: )
17171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17175     ac_header_preproc=yes
17176     ;;
17177   no:yes:* )
17178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17190     (
17191       cat <<\_ASBOX
17192 ## ----------------------------------------- ##
17193 ## Report this to wx-dev@lists.wxwidgets.org ##
17194 ## ----------------------------------------- ##
17195 _ASBOX
17196     ) |
17197       sed "s/^/$as_me: WARNING:     /" >&2
17198     ;;
17199 esac
17200 echo "$as_me:$LINENO: checking for $ac_header" >&5
17201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17203   echo $ECHO_N "(cached) $ECHO_C" >&6
17204 else
17205   eval "$as_ac_Header=\$ac_header_preproc"
17206 fi
17207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17209
17210 fi
17211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17212   cat >>confdefs.h <<_ACEOF
17213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17214 _ACEOF
17215
17216 fi
17217
17218 done
17219
17220
17221
17222 for ac_header in langinfo.h
17223 do
17224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17226   echo "$as_me:$LINENO: checking for $ac_header" >&5
17227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17229   echo $ECHO_N "(cached) $ECHO_C" >&6
17230 fi
17231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17233 else
17234   # Is the header compilable?
17235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17237 cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h.  */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h.  */
17243 $ac_includes_default
17244 #include <$ac_header>
17245 _ACEOF
17246 rm -f conftest.$ac_objext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17248   (eval $ac_compile) 2>conftest.er1
17249   ac_status=$?
17250   grep -v '^ *+' conftest.er1 >conftest.err
17251   rm -f conftest.er1
17252   cat conftest.err >&5
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); } &&
17255          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257   (eval $ac_try) 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; } &&
17261          { ac_try='test -s conftest.$ac_objext'
17262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263   (eval $ac_try) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; }; then
17267   ac_header_compiler=yes
17268 else
17269   echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272 ac_header_compiler=no
17273 fi
17274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17276 echo "${ECHO_T}$ac_header_compiler" >&6
17277
17278 # Is the header present?
17279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h.  */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h.  */
17287 #include <$ac_header>
17288 _ACEOF
17289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17291   ac_status=$?
17292   grep -v '^ *+' conftest.er1 >conftest.err
17293   rm -f conftest.er1
17294   cat conftest.err >&5
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } >/dev/null; then
17297   if test -s conftest.err; then
17298     ac_cpp_err=$ac_cxx_preproc_warn_flag
17299     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17300   else
17301     ac_cpp_err=
17302   fi
17303 else
17304   ac_cpp_err=yes
17305 fi
17306 if test -z "$ac_cpp_err"; then
17307   ac_header_preproc=yes
17308 else
17309   echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312   ac_header_preproc=no
17313 fi
17314 rm -f conftest.err conftest.$ac_ext
17315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17316 echo "${ECHO_T}$ac_header_preproc" >&6
17317
17318 # So?  What about this header?
17319 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17320   yes:no: )
17321     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17325     ac_header_preproc=yes
17326     ;;
17327   no:yes:* )
17328     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17330     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17331 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17332     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17334     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17335 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17338     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17340     (
17341       cat <<\_ASBOX
17342 ## ----------------------------------------- ##
17343 ## Report this to wx-dev@lists.wxwidgets.org ##
17344 ## ----------------------------------------- ##
17345 _ASBOX
17346     ) |
17347       sed "s/^/$as_me: WARNING:     /" >&2
17348     ;;
17349 esac
17350 echo "$as_me:$LINENO: checking for $ac_header" >&5
17351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17353   echo $ECHO_N "(cached) $ECHO_C" >&6
17354 else
17355   eval "$as_ac_Header=\$ac_header_preproc"
17356 fi
17357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17359
17360 fi
17361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17362   cat >>confdefs.h <<_ACEOF
17363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17364 _ACEOF
17365
17366 fi
17367
17368 done
17369
17370
17371 case "${host}" in
17372   *-pc-os2_emx | *-pc-os2-emx )
17373                   if test $ac_cv_header_langinfo_h = "yes" \
17374                 -a \(   "$wx_cv_gccversion" = "EMX2" \
17375                      -o "$wx_cv_gccversion" = "EMX3" \
17376                      -o "$wx_cv_gccversion" = "Innotek5" \); then
17377           LIBS="$LIBS -lintl"
17378       fi
17379   ;;
17380 esac
17381
17382 if test "$USE_UNIX" = 1 ; then
17383
17384 for ac_header in sys/select.h
17385 do
17386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17388   echo "$as_me:$LINENO: checking for $ac_header" >&5
17389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17391   echo $ECHO_N "(cached) $ECHO_C" >&6
17392 fi
17393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17395 else
17396   # Is the header compilable?
17397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17399 cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h.  */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h.  */
17405 $ac_includes_default
17406 #include <$ac_header>
17407 _ACEOF
17408 rm -f conftest.$ac_objext
17409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17410   (eval $ac_compile) 2>conftest.er1
17411   ac_status=$?
17412   grep -v '^ *+' conftest.er1 >conftest.err
17413   rm -f conftest.er1
17414   cat conftest.err >&5
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); } &&
17417          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419   (eval $ac_try) 2>&5
17420   ac_status=$?
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); }; } &&
17423          { ac_try='test -s conftest.$ac_objext'
17424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425   (eval $ac_try) 2>&5
17426   ac_status=$?
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); }; }; then
17429   ac_header_compiler=yes
17430 else
17431   echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17433
17434 ac_header_compiler=no
17435 fi
17436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17438 echo "${ECHO_T}$ac_header_compiler" >&6
17439
17440 # Is the header present?
17441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17443 cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h.  */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h.  */
17449 #include <$ac_header>
17450 _ACEOF
17451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17453   ac_status=$?
17454   grep -v '^ *+' conftest.er1 >conftest.err
17455   rm -f conftest.er1
17456   cat conftest.err >&5
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); } >/dev/null; then
17459   if test -s conftest.err; then
17460     ac_cpp_err=$ac_cxx_preproc_warn_flag
17461     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17462   else
17463     ac_cpp_err=
17464   fi
17465 else
17466   ac_cpp_err=yes
17467 fi
17468 if test -z "$ac_cpp_err"; then
17469   ac_header_preproc=yes
17470 else
17471   echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474   ac_header_preproc=no
17475 fi
17476 rm -f conftest.err conftest.$ac_ext
17477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17478 echo "${ECHO_T}$ac_header_preproc" >&6
17479
17480 # So?  What about this header?
17481 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17482   yes:no: )
17483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17487     ac_header_preproc=yes
17488     ;;
17489   no:yes:* )
17490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17502     (
17503       cat <<\_ASBOX
17504 ## ----------------------------------------- ##
17505 ## Report this to wx-dev@lists.wxwidgets.org ##
17506 ## ----------------------------------------- ##
17507 _ASBOX
17508     ) |
17509       sed "s/^/$as_me: WARNING:     /" >&2
17510     ;;
17511 esac
17512 echo "$as_me:$LINENO: checking for $ac_header" >&5
17513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17515   echo $ECHO_N "(cached) $ECHO_C" >&6
17516 else
17517   eval "$as_ac_Header=\$ac_header_preproc"
17518 fi
17519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17521
17522 fi
17523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17524   cat >>confdefs.h <<_ACEOF
17525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17526 _ACEOF
17527
17528 fi
17529
17530 done
17531
17532 fi
17533
17534
17535 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17536 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17537 if test "${ac_cv_c_const+set}" = set; then
17538   echo $ECHO_N "(cached) $ECHO_C" >&6
17539 else
17540   cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h.  */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h.  */
17546
17547 int
17548 main ()
17549 {
17550 /* FIXME: Include the comments suggested by Paul. */
17551 #ifndef __cplusplus
17552   /* Ultrix mips cc rejects this.  */
17553   typedef int charset[2];
17554   const charset x;
17555   /* SunOS 4.1.1 cc rejects this.  */
17556   char const *const *ccp;
17557   char **p;
17558   /* NEC SVR4.0.2 mips cc rejects this.  */
17559   struct point {int x, y;};
17560   static struct point const zero = {0,0};
17561   /* AIX XL C 1.02.0.0 rejects this.
17562      It does not let you subtract one const X* pointer from another in
17563      an arm of an if-expression whose if-part is not a constant
17564      expression */
17565   const char *g = "string";
17566   ccp = &g + (g ? g-g : 0);
17567   /* HPUX 7.0 cc rejects these. */
17568   ++ccp;
17569   p = (char**) ccp;
17570   ccp = (char const *const *) p;
17571   { /* SCO 3.2v4 cc rejects this.  */
17572     char *t;
17573     char const *s = 0 ? (char *) 0 : (char const *) 0;
17574
17575     *t++ = 0;
17576   }
17577   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17578     int x[] = {25, 17};
17579     const int *foo = &x[0];
17580     ++foo;
17581   }
17582   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17583     typedef const int *iptr;
17584     iptr p = 0;
17585     ++p;
17586   }
17587   { /* AIX XL C 1.02.0.0 rejects this saying
17588        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17589     struct s { int j; const int *ap[3]; };
17590     struct s *b; b->j = 5;
17591   }
17592   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17593     const int foo = 10;
17594   }
17595 #endif
17596
17597   ;
17598   return 0;
17599 }
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17603   (eval $ac_compile) 2>conftest.er1
17604   ac_status=$?
17605   grep -v '^ *+' conftest.er1 >conftest.err
17606   rm -f conftest.er1
17607   cat conftest.err >&5
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); } &&
17610          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612   (eval $ac_try) 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; } &&
17616          { ac_try='test -s conftest.$ac_objext'
17617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618   (eval $ac_try) 2>&5
17619   ac_status=$?
17620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); }; }; then
17622   ac_cv_c_const=yes
17623 else
17624   echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627 ac_cv_c_const=no
17628 fi
17629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17630 fi
17631 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17632 echo "${ECHO_T}$ac_cv_c_const" >&6
17633 if test $ac_cv_c_const = no; then
17634
17635 cat >>confdefs.h <<\_ACEOF
17636 #define const
17637 _ACEOF
17638
17639 fi
17640
17641 echo "$as_me:$LINENO: checking for inline" >&5
17642 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17643 if test "${ac_cv_c_inline+set}" = set; then
17644   echo $ECHO_N "(cached) $ECHO_C" >&6
17645 else
17646   ac_cv_c_inline=no
17647 for ac_kw in inline __inline__ __inline; do
17648   cat >conftest.$ac_ext <<_ACEOF
17649 /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17654 #ifndef __cplusplus
17655 typedef int foo_t;
17656 static $ac_kw foo_t static_foo () {return 0; }
17657 $ac_kw foo_t foo () {return 0; }
17658 #endif
17659
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_cv_c_inline=$ac_kw; break
17683 else
17684   echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687 fi
17688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17689 done
17690
17691 fi
17692 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17693 echo "${ECHO_T}$ac_cv_c_inline" >&6
17694
17695
17696 case $ac_cv_c_inline in
17697   inline | yes) ;;
17698   *)
17699     case $ac_cv_c_inline in
17700       no) ac_val=;;
17701       *) ac_val=$ac_cv_c_inline;;
17702     esac
17703     cat >>confdefs.h <<_ACEOF
17704 #ifndef __cplusplus
17705 #define inline $ac_val
17706 #endif
17707 _ACEOF
17708     ;;
17709 esac
17710
17711
17712 echo "$as_me:$LINENO: checking for char" >&5
17713 echo $ECHO_N "checking for char... $ECHO_C" >&6
17714 if test "${ac_cv_type_char+set}" = set; then
17715   echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717   cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h.  */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h.  */
17723 $ac_includes_default
17724 int
17725 main ()
17726 {
17727 if ((char *) 0)
17728   return 0;
17729 if (sizeof (char))
17730   return 0;
17731   ;
17732   return 0;
17733 }
17734 _ACEOF
17735 rm -f conftest.$ac_objext
17736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17737   (eval $ac_compile) 2>conftest.er1
17738   ac_status=$?
17739   grep -v '^ *+' conftest.er1 >conftest.err
17740   rm -f conftest.er1
17741   cat conftest.err >&5
17742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743   (exit $ac_status); } &&
17744          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746   (eval $ac_try) 2>&5
17747   ac_status=$?
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); }; } &&
17750          { ac_try='test -s conftest.$ac_objext'
17751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752   (eval $ac_try) 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); }; }; then
17756   ac_cv_type_char=yes
17757 else
17758   echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761 ac_cv_type_char=no
17762 fi
17763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17764 fi
17765 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17766 echo "${ECHO_T}$ac_cv_type_char" >&6
17767
17768 echo "$as_me:$LINENO: checking size of char" >&5
17769 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17770 if test "${ac_cv_sizeof_char+set}" = set; then
17771   echo $ECHO_N "(cached) $ECHO_C" >&6
17772 else
17773   if test "$ac_cv_type_char" = yes; then
17774   # The cast to unsigned long works around a bug in the HP C Compiler
17775   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17776   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17777   # This bug is HP SR number 8606223364.
17778   if test "$cross_compiling" = yes; then
17779   # Depending upon the size, compute the lo and hi bounds.
17780 cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h.  */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h.  */
17786 $ac_includes_default
17787 int
17788 main ()
17789 {
17790 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17791 test_array [0] = 0
17792
17793   ;
17794   return 0;
17795 }
17796 _ACEOF
17797 rm -f conftest.$ac_objext
17798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17799   (eval $ac_compile) 2>conftest.er1
17800   ac_status=$?
17801   grep -v '^ *+' conftest.er1 >conftest.err
17802   rm -f conftest.er1
17803   cat conftest.err >&5
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); } &&
17806          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808   (eval $ac_try) 2>&5
17809   ac_status=$?
17810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811   (exit $ac_status); }; } &&
17812          { ac_try='test -s conftest.$ac_objext'
17813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814   (eval $ac_try) 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; }; then
17818   ac_lo=0 ac_mid=0
17819   while :; do
17820     cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826 $ac_includes_default
17827 int
17828 main ()
17829 {
17830 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17831 test_array [0] = 0
17832
17833   ;
17834   return 0;
17835 }
17836 _ACEOF
17837 rm -f conftest.$ac_objext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17839   (eval $ac_compile) 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } &&
17846          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848   (eval $ac_try) 2>&5
17849   ac_status=$?
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); }; } &&
17852          { ac_try='test -s conftest.$ac_objext'
17853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854   (eval $ac_try) 2>&5
17855   ac_status=$?
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); }; }; then
17858   ac_hi=$ac_mid; break
17859 else
17860   echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17862
17863 ac_lo=`expr $ac_mid + 1`
17864                     if test $ac_lo -le $ac_mid; then
17865                       ac_lo= ac_hi=
17866                       break
17867                     fi
17868                     ac_mid=`expr 2 '*' $ac_mid + 1`
17869 fi
17870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17871   done
17872 else
17873   echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17875
17876 cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h.  */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h.  */
17882 $ac_includes_default
17883 int
17884 main ()
17885 {
17886 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17887 test_array [0] = 0
17888
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 rm -f conftest.$ac_objext
17894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17895   (eval $ac_compile) 2>conftest.er1
17896   ac_status=$?
17897   grep -v '^ *+' conftest.er1 >conftest.err
17898   rm -f conftest.er1
17899   cat conftest.err >&5
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); } &&
17902          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904   (eval $ac_try) 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); }; } &&
17908          { ac_try='test -s conftest.$ac_objext'
17909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910   (eval $ac_try) 2>&5
17911   ac_status=$?
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); }; }; then
17914   ac_hi=-1 ac_mid=-1
17915   while :; do
17916     cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h.  */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h.  */
17922 $ac_includes_default
17923 int
17924 main ()
17925 {
17926 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17927 test_array [0] = 0
17928
17929   ;
17930   return 0;
17931 }
17932 _ACEOF
17933 rm -f conftest.$ac_objext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935   (eval $ac_compile) 2>conftest.er1
17936   ac_status=$?
17937   grep -v '^ *+' conftest.er1 >conftest.err
17938   rm -f conftest.er1
17939   cat conftest.err >&5
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); } &&
17942          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944   (eval $ac_try) 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); }; } &&
17948          { ac_try='test -s conftest.$ac_objext'
17949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950   (eval $ac_try) 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); }; }; then
17954   ac_lo=$ac_mid; break
17955 else
17956   echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 ac_hi=`expr '(' $ac_mid ')' - 1`
17960                        if test $ac_mid -le $ac_hi; then
17961                          ac_lo= ac_hi=
17962                          break
17963                        fi
17964                        ac_mid=`expr 2 '*' $ac_mid`
17965 fi
17966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17967   done
17968 else
17969   echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17971
17972 ac_lo= ac_hi=
17973 fi
17974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17975 fi
17976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17977 # Binary search between lo and hi bounds.
17978 while test "x$ac_lo" != "x$ac_hi"; do
17979   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17980   cat >conftest.$ac_ext <<_ACEOF
17981 /* confdefs.h.  */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h.  */
17986 $ac_includes_default
17987 int
17988 main ()
17989 {
17990 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17991 test_array [0] = 0
17992
17993   ;
17994   return 0;
17995 }
17996 _ACEOF
17997 rm -f conftest.$ac_objext
17998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17999   (eval $ac_compile) 2>conftest.er1
18000   ac_status=$?
18001   grep -v '^ *+' conftest.er1 >conftest.err
18002   rm -f conftest.er1
18003   cat conftest.err >&5
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); } &&
18006          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008   (eval $ac_try) 2>&5
18009   ac_status=$?
18010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011   (exit $ac_status); }; } &&
18012          { ac_try='test -s conftest.$ac_objext'
18013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014   (eval $ac_try) 2>&5
18015   ac_status=$?
18016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017   (exit $ac_status); }; }; then
18018   ac_hi=$ac_mid
18019 else
18020   echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023 ac_lo=`expr '(' $ac_mid ')' + 1`
18024 fi
18025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18026 done
18027 case $ac_lo in
18028 ?*) ac_cv_sizeof_char=$ac_lo;;
18029 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18030 See \`config.log' for more details." >&5
18031 echo "$as_me: error: cannot compute sizeof (char), 77
18032 See \`config.log' for more details." >&2;}
18033    { (exit 1); exit 1; }; } ;;
18034 esac
18035 else
18036   if test "$cross_compiling" = yes; then
18037   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18038 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18039    { (exit 1); exit 1; }; }
18040 else
18041   cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047 $ac_includes_default
18048 long longval () { return (long) (sizeof (char)); }
18049 unsigned long ulongval () { return (long) (sizeof (char)); }
18050 #include <stdio.h>
18051 #include <stdlib.h>
18052 int
18053 main ()
18054 {
18055
18056   FILE *f = fopen ("conftest.val", "w");
18057   if (! f)
18058     exit (1);
18059   if (((long) (sizeof (char))) < 0)
18060     {
18061       long i = longval ();
18062       if (i != ((long) (sizeof (char))))
18063         exit (1);
18064       fprintf (f, "%ld\n", i);
18065     }
18066   else
18067     {
18068       unsigned long i = ulongval ();
18069       if (i != ((long) (sizeof (char))))
18070         exit (1);
18071       fprintf (f, "%lu\n", i);
18072     }
18073   exit (ferror (f) || fclose (f) != 0);
18074
18075   ;
18076   return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest$ac_exeext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18081   (eval $ac_link) 2>&5
18082   ac_status=$?
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086   (eval $ac_try) 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); }; }; then
18090   ac_cv_sizeof_char=`cat conftest.val`
18091 else
18092   echo "$as_me: program exited with status $ac_status" >&5
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18095
18096 ( exit $ac_status )
18097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18098 See \`config.log' for more details." >&5
18099 echo "$as_me: error: cannot compute sizeof (char), 77
18100 See \`config.log' for more details." >&2;}
18101    { (exit 1); exit 1; }; }
18102 fi
18103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18104 fi
18105 fi
18106 rm -f conftest.val
18107 else
18108   ac_cv_sizeof_char=0
18109 fi
18110 fi
18111 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18112 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18113 cat >>confdefs.h <<_ACEOF
18114 #define SIZEOF_CHAR $ac_cv_sizeof_char
18115 _ACEOF
18116
18117
18118 echo "$as_me:$LINENO: checking for short" >&5
18119 echo $ECHO_N "checking for short... $ECHO_C" >&6
18120 if test "${ac_cv_type_short+set}" = set; then
18121   echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123   cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h.  */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h.  */
18129 $ac_includes_default
18130 int
18131 main ()
18132 {
18133 if ((short *) 0)
18134   return 0;
18135 if (sizeof (short))
18136   return 0;
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 rm -f conftest.$ac_objext
18142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18143   (eval $ac_compile) 2>conftest.er1
18144   ac_status=$?
18145   grep -v '^ *+' conftest.er1 >conftest.err
18146   rm -f conftest.er1
18147   cat conftest.err >&5
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); } &&
18150          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152   (eval $ac_try) 2>&5
18153   ac_status=$?
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); }; } &&
18156          { ac_try='test -s conftest.$ac_objext'
18157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158   (eval $ac_try) 2>&5
18159   ac_status=$?
18160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161   (exit $ac_status); }; }; then
18162   ac_cv_type_short=yes
18163 else
18164   echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18166
18167 ac_cv_type_short=no
18168 fi
18169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18170 fi
18171 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18172 echo "${ECHO_T}$ac_cv_type_short" >&6
18173
18174 echo "$as_me:$LINENO: checking size of short" >&5
18175 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18176 if test "${ac_cv_sizeof_short+set}" = set; then
18177   echo $ECHO_N "(cached) $ECHO_C" >&6
18178 else
18179   if test "$ac_cv_type_short" = yes; then
18180   # The cast to unsigned long works around a bug in the HP C Compiler
18181   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18182   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18183   # This bug is HP SR number 8606223364.
18184   if test "$cross_compiling" = yes; then
18185   # Depending upon the size, compute the lo and hi bounds.
18186 cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h.  */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h.  */
18192 $ac_includes_default
18193 int
18194 main ()
18195 {
18196 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18197 test_array [0] = 0
18198
18199   ;
18200   return 0;
18201 }
18202 _ACEOF
18203 rm -f conftest.$ac_objext
18204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18205   (eval $ac_compile) 2>conftest.er1
18206   ac_status=$?
18207   grep -v '^ *+' conftest.er1 >conftest.err
18208   rm -f conftest.er1
18209   cat conftest.err >&5
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); } &&
18212          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214   (eval $ac_try) 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); }; } &&
18218          { ac_try='test -s conftest.$ac_objext'
18219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220   (eval $ac_try) 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; }; then
18224   ac_lo=0 ac_mid=0
18225   while :; do
18226     cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h.  */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h.  */
18232 $ac_includes_default
18233 int
18234 main ()
18235 {
18236 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18237 test_array [0] = 0
18238
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 rm -f conftest.$ac_objext
18244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18245   (eval $ac_compile) 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } &&
18252          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254   (eval $ac_try) 2>&5
18255   ac_status=$?
18256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257   (exit $ac_status); }; } &&
18258          { ac_try='test -s conftest.$ac_objext'
18259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260   (eval $ac_try) 2>&5
18261   ac_status=$?
18262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); }; }; then
18264   ac_hi=$ac_mid; break
18265 else
18266   echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18268
18269 ac_lo=`expr $ac_mid + 1`
18270                     if test $ac_lo -le $ac_mid; then
18271                       ac_lo= ac_hi=
18272                       break
18273                     fi
18274                     ac_mid=`expr 2 '*' $ac_mid + 1`
18275 fi
18276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18277   done
18278 else
18279   echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18281
18282 cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h.  */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h.  */
18288 $ac_includes_default
18289 int
18290 main ()
18291 {
18292 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18293 test_array [0] = 0
18294
18295   ;
18296   return 0;
18297 }
18298 _ACEOF
18299 rm -f conftest.$ac_objext
18300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18301   (eval $ac_compile) 2>conftest.er1
18302   ac_status=$?
18303   grep -v '^ *+' conftest.er1 >conftest.err
18304   rm -f conftest.er1
18305   cat conftest.err >&5
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); } &&
18308          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310   (eval $ac_try) 2>&5
18311   ac_status=$?
18312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313   (exit $ac_status); }; } &&
18314          { ac_try='test -s conftest.$ac_objext'
18315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316   (eval $ac_try) 2>&5
18317   ac_status=$?
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); }; }; then
18320   ac_hi=-1 ac_mid=-1
18321   while :; do
18322     cat >conftest.$ac_ext <<_ACEOF
18323 /* confdefs.h.  */
18324 _ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h.  */
18328 $ac_includes_default
18329 int
18330 main ()
18331 {
18332 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18333 test_array [0] = 0
18334
18335   ;
18336   return 0;
18337 }
18338 _ACEOF
18339 rm -f conftest.$ac_objext
18340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18341   (eval $ac_compile) 2>conftest.er1
18342   ac_status=$?
18343   grep -v '^ *+' conftest.er1 >conftest.err
18344   rm -f conftest.er1
18345   cat conftest.err >&5
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); } &&
18348          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350   (eval $ac_try) 2>&5
18351   ac_status=$?
18352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353   (exit $ac_status); }; } &&
18354          { ac_try='test -s conftest.$ac_objext'
18355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356   (eval $ac_try) 2>&5
18357   ac_status=$?
18358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); }; }; then
18360   ac_lo=$ac_mid; break
18361 else
18362   echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18364
18365 ac_hi=`expr '(' $ac_mid ')' - 1`
18366                        if test $ac_mid -le $ac_hi; then
18367                          ac_lo= ac_hi=
18368                          break
18369                        fi
18370                        ac_mid=`expr 2 '*' $ac_mid`
18371 fi
18372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18373   done
18374 else
18375   echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18377
18378 ac_lo= ac_hi=
18379 fi
18380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18381 fi
18382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18383 # Binary search between lo and hi bounds.
18384 while test "x$ac_lo" != "x$ac_hi"; do
18385   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18386   cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h.  */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h.  */
18392 $ac_includes_default
18393 int
18394 main ()
18395 {
18396 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18397 test_array [0] = 0
18398
18399   ;
18400   return 0;
18401 }
18402 _ACEOF
18403 rm -f conftest.$ac_objext
18404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18405   (eval $ac_compile) 2>conftest.er1
18406   ac_status=$?
18407   grep -v '^ *+' conftest.er1 >conftest.err
18408   rm -f conftest.er1
18409   cat conftest.err >&5
18410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411   (exit $ac_status); } &&
18412          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414   (eval $ac_try) 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); }; } &&
18418          { ac_try='test -s conftest.$ac_objext'
18419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420   (eval $ac_try) 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); }; }; then
18424   ac_hi=$ac_mid
18425 else
18426   echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429 ac_lo=`expr '(' $ac_mid ')' + 1`
18430 fi
18431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18432 done
18433 case $ac_lo in
18434 ?*) ac_cv_sizeof_short=$ac_lo;;
18435 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18436 See \`config.log' for more details." >&5
18437 echo "$as_me: error: cannot compute sizeof (short), 77
18438 See \`config.log' for more details." >&2;}
18439    { (exit 1); exit 1; }; } ;;
18440 esac
18441 else
18442   if test "$cross_compiling" = yes; then
18443   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18444 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18445    { (exit 1); exit 1; }; }
18446 else
18447   cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h.  */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h.  */
18453 $ac_includes_default
18454 long longval () { return (long) (sizeof (short)); }
18455 unsigned long ulongval () { return (long) (sizeof (short)); }
18456 #include <stdio.h>
18457 #include <stdlib.h>
18458 int
18459 main ()
18460 {
18461
18462   FILE *f = fopen ("conftest.val", "w");
18463   if (! f)
18464     exit (1);
18465   if (((long) (sizeof (short))) < 0)
18466     {
18467       long i = longval ();
18468       if (i != ((long) (sizeof (short))))
18469         exit (1);
18470       fprintf (f, "%ld\n", i);
18471     }
18472   else
18473     {
18474       unsigned long i = ulongval ();
18475       if (i != ((long) (sizeof (short))))
18476         exit (1);
18477       fprintf (f, "%lu\n", i);
18478     }
18479   exit (ferror (f) || fclose (f) != 0);
18480
18481   ;
18482   return 0;
18483 }
18484 _ACEOF
18485 rm -f conftest$ac_exeext
18486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18487   (eval $ac_link) 2>&5
18488   ac_status=$?
18489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492   (eval $ac_try) 2>&5
18493   ac_status=$?
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); }; }; then
18496   ac_cv_sizeof_short=`cat conftest.val`
18497 else
18498   echo "$as_me: program exited with status $ac_status" >&5
18499 echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18501
18502 ( exit $ac_status )
18503 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18504 See \`config.log' for more details." >&5
18505 echo "$as_me: error: cannot compute sizeof (short), 77
18506 See \`config.log' for more details." >&2;}
18507    { (exit 1); exit 1; }; }
18508 fi
18509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18510 fi
18511 fi
18512 rm -f conftest.val
18513 else
18514   ac_cv_sizeof_short=0
18515 fi
18516 fi
18517 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18518 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18519 cat >>confdefs.h <<_ACEOF
18520 #define SIZEOF_SHORT $ac_cv_sizeof_short
18521 _ACEOF
18522
18523
18524 echo "$as_me:$LINENO: checking for void *" >&5
18525 echo $ECHO_N "checking for void *... $ECHO_C" >&6
18526 if test "${ac_cv_type_void_p+set}" = set; then
18527   echo $ECHO_N "(cached) $ECHO_C" >&6
18528 else
18529   cat >conftest.$ac_ext <<_ACEOF
18530 /* confdefs.h.  */
18531 _ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h.  */
18535 $ac_includes_default
18536 int
18537 main ()
18538 {
18539 if ((void * *) 0)
18540   return 0;
18541 if (sizeof (void *))
18542   return 0;
18543   ;
18544   return 0;
18545 }
18546 _ACEOF
18547 rm -f conftest.$ac_objext
18548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18549   (eval $ac_compile) 2>conftest.er1
18550   ac_status=$?
18551   grep -v '^ *+' conftest.er1 >conftest.err
18552   rm -f conftest.er1
18553   cat conftest.err >&5
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); } &&
18556          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558   (eval $ac_try) 2>&5
18559   ac_status=$?
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); }; } &&
18562          { ac_try='test -s conftest.$ac_objext'
18563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564   (eval $ac_try) 2>&5
18565   ac_status=$?
18566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567   (exit $ac_status); }; }; then
18568   ac_cv_type_void_p=yes
18569 else
18570   echo "$as_me: failed program was:" >&5
18571 sed 's/^/| /' conftest.$ac_ext >&5
18572
18573 ac_cv_type_void_p=no
18574 fi
18575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18576 fi
18577 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18578 echo "${ECHO_T}$ac_cv_type_void_p" >&6
18579
18580 echo "$as_me:$LINENO: checking size of void *" >&5
18581 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18582 if test "${ac_cv_sizeof_void_p+set}" = set; then
18583   echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585   if test "$ac_cv_type_void_p" = yes; then
18586   # The cast to unsigned long works around a bug in the HP C Compiler
18587   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18588   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18589   # This bug is HP SR number 8606223364.
18590   if test "$cross_compiling" = yes; then
18591   # Depending upon the size, compute the lo and hi bounds.
18592 cat >conftest.$ac_ext <<_ACEOF
18593 /* confdefs.h.  */
18594 _ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h.  */
18598 $ac_includes_default
18599 int
18600 main ()
18601 {
18602 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18603 test_array [0] = 0
18604
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611   (eval $ac_compile) 2>conftest.er1
18612   ac_status=$?
18613   grep -v '^ *+' conftest.er1 >conftest.err
18614   rm -f conftest.er1
18615   cat conftest.err >&5
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); } &&
18618          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620   (eval $ac_try) 2>&5
18621   ac_status=$?
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); }; } &&
18624          { ac_try='test -s conftest.$ac_objext'
18625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626   (eval $ac_try) 2>&5
18627   ac_status=$?
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); }; }; then
18630   ac_lo=0 ac_mid=0
18631   while :; do
18632     cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h.  */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h.  */
18638 $ac_includes_default
18639 int
18640 main ()
18641 {
18642 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18643 test_array [0] = 0
18644
18645   ;
18646   return 0;
18647 }
18648 _ACEOF
18649 rm -f conftest.$ac_objext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18651   (eval $ac_compile) 2>conftest.er1
18652   ac_status=$?
18653   grep -v '^ *+' conftest.er1 >conftest.err
18654   rm -f conftest.er1
18655   cat conftest.err >&5
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); } &&
18658          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660   (eval $ac_try) 2>&5
18661   ac_status=$?
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); }; } &&
18664          { ac_try='test -s conftest.$ac_objext'
18665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666   (eval $ac_try) 2>&5
18667   ac_status=$?
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); }; }; then
18670   ac_hi=$ac_mid; break
18671 else
18672   echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18674
18675 ac_lo=`expr $ac_mid + 1`
18676                     if test $ac_lo -le $ac_mid; then
18677                       ac_lo= ac_hi=
18678                       break
18679                     fi
18680                     ac_mid=`expr 2 '*' $ac_mid + 1`
18681 fi
18682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18683   done
18684 else
18685   echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18687
18688 cat >conftest.$ac_ext <<_ACEOF
18689 /* confdefs.h.  */
18690 _ACEOF
18691 cat confdefs.h >>conftest.$ac_ext
18692 cat >>conftest.$ac_ext <<_ACEOF
18693 /* end confdefs.h.  */
18694 $ac_includes_default
18695 int
18696 main ()
18697 {
18698 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18699 test_array [0] = 0
18700
18701   ;
18702   return 0;
18703 }
18704 _ACEOF
18705 rm -f conftest.$ac_objext
18706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18707   (eval $ac_compile) 2>conftest.er1
18708   ac_status=$?
18709   grep -v '^ *+' conftest.er1 >conftest.err
18710   rm -f conftest.er1
18711   cat conftest.err >&5
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); } &&
18714          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716   (eval $ac_try) 2>&5
18717   ac_status=$?
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); }; } &&
18720          { ac_try='test -s conftest.$ac_objext'
18721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722   (eval $ac_try) 2>&5
18723   ac_status=$?
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); }; }; then
18726   ac_hi=-1 ac_mid=-1
18727   while :; do
18728     cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h.  */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h.  */
18734 $ac_includes_default
18735 int
18736 main ()
18737 {
18738 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18739 test_array [0] = 0
18740
18741   ;
18742   return 0;
18743 }
18744 _ACEOF
18745 rm -f conftest.$ac_objext
18746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747   (eval $ac_compile) 2>conftest.er1
18748   ac_status=$?
18749   grep -v '^ *+' conftest.er1 >conftest.err
18750   rm -f conftest.er1
18751   cat conftest.err >&5
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); } &&
18754          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756   (eval $ac_try) 2>&5
18757   ac_status=$?
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); }; } &&
18760          { ac_try='test -s conftest.$ac_objext'
18761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762   (eval $ac_try) 2>&5
18763   ac_status=$?
18764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); }; }; then
18766   ac_lo=$ac_mid; break
18767 else
18768   echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18770
18771 ac_hi=`expr '(' $ac_mid ')' - 1`
18772                        if test $ac_mid -le $ac_hi; then
18773                          ac_lo= ac_hi=
18774                          break
18775                        fi
18776                        ac_mid=`expr 2 '*' $ac_mid`
18777 fi
18778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18779   done
18780 else
18781   echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 ac_lo= ac_hi=
18785 fi
18786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18787 fi
18788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18789 # Binary search between lo and hi bounds.
18790 while test "x$ac_lo" != "x$ac_hi"; do
18791   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18792   cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h.  */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h.  */
18798 $ac_includes_default
18799 int
18800 main ()
18801 {
18802 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18803 test_array [0] = 0
18804
18805   ;
18806   return 0;
18807 }
18808 _ACEOF
18809 rm -f conftest.$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811   (eval $ac_compile) 2>conftest.er1
18812   ac_status=$?
18813   grep -v '^ *+' conftest.er1 >conftest.err
18814   rm -f conftest.er1
18815   cat conftest.err >&5
18816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817   (exit $ac_status); } &&
18818          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820   (eval $ac_try) 2>&5
18821   ac_status=$?
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); }; } &&
18824          { ac_try='test -s conftest.$ac_objext'
18825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826   (eval $ac_try) 2>&5
18827   ac_status=$?
18828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829   (exit $ac_status); }; }; then
18830   ac_hi=$ac_mid
18831 else
18832   echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18834
18835 ac_lo=`expr '(' $ac_mid ')' + 1`
18836 fi
18837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18838 done
18839 case $ac_lo in
18840 ?*) ac_cv_sizeof_void_p=$ac_lo;;
18841 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18842 See \`config.log' for more details." >&5
18843 echo "$as_me: error: cannot compute sizeof (void *), 77
18844 See \`config.log' for more details." >&2;}
18845    { (exit 1); exit 1; }; } ;;
18846 esac
18847 else
18848   if test "$cross_compiling" = yes; then
18849   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18850 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18851    { (exit 1); exit 1; }; }
18852 else
18853   cat >conftest.$ac_ext <<_ACEOF
18854 /* confdefs.h.  */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h.  */
18859 $ac_includes_default
18860 long longval () { return (long) (sizeof (void *)); }
18861 unsigned long ulongval () { return (long) (sizeof (void *)); }
18862 #include <stdio.h>
18863 #include <stdlib.h>
18864 int
18865 main ()
18866 {
18867
18868   FILE *f = fopen ("conftest.val", "w");
18869   if (! f)
18870     exit (1);
18871   if (((long) (sizeof (void *))) < 0)
18872     {
18873       long i = longval ();
18874       if (i != ((long) (sizeof (void *))))
18875         exit (1);
18876       fprintf (f, "%ld\n", i);
18877     }
18878   else
18879     {
18880       unsigned long i = ulongval ();
18881       if (i != ((long) (sizeof (void *))))
18882         exit (1);
18883       fprintf (f, "%lu\n", i);
18884     }
18885   exit (ferror (f) || fclose (f) != 0);
18886
18887   ;
18888   return 0;
18889 }
18890 _ACEOF
18891 rm -f conftest$ac_exeext
18892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18893   (eval $ac_link) 2>&5
18894   ac_status=$?
18895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898   (eval $ac_try) 2>&5
18899   ac_status=$?
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); }; }; then
18902   ac_cv_sizeof_void_p=`cat conftest.val`
18903 else
18904   echo "$as_me: program exited with status $ac_status" >&5
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908 ( exit $ac_status )
18909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18910 See \`config.log' for more details." >&5
18911 echo "$as_me: error: cannot compute sizeof (void *), 77
18912 See \`config.log' for more details." >&2;}
18913    { (exit 1); exit 1; }; }
18914 fi
18915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18916 fi
18917 fi
18918 rm -f conftest.val
18919 else
18920   ac_cv_sizeof_void_p=0
18921 fi
18922 fi
18923 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18924 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18925 cat >>confdefs.h <<_ACEOF
18926 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18927 _ACEOF
18928
18929
18930 echo "$as_me:$LINENO: checking for int" >&5
18931 echo $ECHO_N "checking for int... $ECHO_C" >&6
18932 if test "${ac_cv_type_int+set}" = set; then
18933   echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935   cat >conftest.$ac_ext <<_ACEOF
18936 /* confdefs.h.  */
18937 _ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h.  */
18941 $ac_includes_default
18942 int
18943 main ()
18944 {
18945 if ((int *) 0)
18946   return 0;
18947 if (sizeof (int))
18948   return 0;
18949   ;
18950   return 0;
18951 }
18952 _ACEOF
18953 rm -f conftest.$ac_objext
18954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18955   (eval $ac_compile) 2>conftest.er1
18956   ac_status=$?
18957   grep -v '^ *+' conftest.er1 >conftest.err
18958   rm -f conftest.er1
18959   cat conftest.err >&5
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); } &&
18962          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964   (eval $ac_try) 2>&5
18965   ac_status=$?
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); }; } &&
18968          { ac_try='test -s conftest.$ac_objext'
18969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970   (eval $ac_try) 2>&5
18971   ac_status=$?
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); }; }; then
18974   ac_cv_type_int=yes
18975 else
18976   echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 ac_cv_type_int=no
18980 fi
18981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18982 fi
18983 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18984 echo "${ECHO_T}$ac_cv_type_int" >&6
18985
18986 echo "$as_me:$LINENO: checking size of int" >&5
18987 echo $ECHO_N "checking size of int... $ECHO_C" >&6
18988 if test "${ac_cv_sizeof_int+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   if test "$ac_cv_type_int" = yes; then
18992   # The cast to unsigned long works around a bug in the HP C Compiler
18993   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18994   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18995   # This bug is HP SR number 8606223364.
18996   if test "$cross_compiling" = yes; then
18997   # Depending upon the size, compute the lo and hi bounds.
18998 cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h.  */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h.  */
19004 $ac_includes_default
19005 int
19006 main ()
19007 {
19008 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19009 test_array [0] = 0
19010
19011   ;
19012   return 0;
19013 }
19014 _ACEOF
19015 rm -f conftest.$ac_objext
19016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19017   (eval $ac_compile) 2>conftest.er1
19018   ac_status=$?
19019   grep -v '^ *+' conftest.er1 >conftest.err
19020   rm -f conftest.er1
19021   cat conftest.err >&5
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); } &&
19024          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026   (eval $ac_try) 2>&5
19027   ac_status=$?
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); }; } &&
19030          { ac_try='test -s conftest.$ac_objext'
19031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032   (eval $ac_try) 2>&5
19033   ac_status=$?
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); }; }; then
19036   ac_lo=0 ac_mid=0
19037   while :; do
19038     cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h.  */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h.  */
19044 $ac_includes_default
19045 int
19046 main ()
19047 {
19048 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19049 test_array [0] = 0
19050
19051   ;
19052   return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext
19056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19057   (eval $ac_compile) 2>conftest.er1
19058   ac_status=$?
19059   grep -v '^ *+' conftest.er1 >conftest.err
19060   rm -f conftest.er1
19061   cat conftest.err >&5
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); } &&
19064          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066   (eval $ac_try) 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); }; } &&
19070          { ac_try='test -s conftest.$ac_objext'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; }; then
19076   ac_hi=$ac_mid; break
19077 else
19078   echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 ac_lo=`expr $ac_mid + 1`
19082                     if test $ac_lo -le $ac_mid; then
19083                       ac_lo= ac_hi=
19084                       break
19085                     fi
19086                     ac_mid=`expr 2 '*' $ac_mid + 1`
19087 fi
19088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19089   done
19090 else
19091   echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19093
19094 cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h.  */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h.  */
19100 $ac_includes_default
19101 int
19102 main ()
19103 {
19104 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19105 test_array [0] = 0
19106
19107   ;
19108   return 0;
19109 }
19110 _ACEOF
19111 rm -f conftest.$ac_objext
19112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19113   (eval $ac_compile) 2>conftest.er1
19114   ac_status=$?
19115   grep -v '^ *+' conftest.er1 >conftest.err
19116   rm -f conftest.er1
19117   cat conftest.err >&5
19118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119   (exit $ac_status); } &&
19120          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122   (eval $ac_try) 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); }; } &&
19126          { ac_try='test -s conftest.$ac_objext'
19127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128   (eval $ac_try) 2>&5
19129   ac_status=$?
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); }; }; then
19132   ac_hi=-1 ac_mid=-1
19133   while :; do
19134     cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h.  */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h.  */
19140 $ac_includes_default
19141 int
19142 main ()
19143 {
19144 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19145 test_array [0] = 0
19146
19147   ;
19148   return 0;
19149 }
19150 _ACEOF
19151 rm -f conftest.$ac_objext
19152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19153   (eval $ac_compile) 2>conftest.er1
19154   ac_status=$?
19155   grep -v '^ *+' conftest.er1 >conftest.err
19156   rm -f conftest.er1
19157   cat conftest.err >&5
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); } &&
19160          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162   (eval $ac_try) 2>&5
19163   ac_status=$?
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); }; } &&
19166          { ac_try='test -s conftest.$ac_objext'
19167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168   (eval $ac_try) 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; }; then
19172   ac_lo=$ac_mid; break
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177 ac_hi=`expr '(' $ac_mid ')' - 1`
19178                        if test $ac_mid -le $ac_hi; then
19179                          ac_lo= ac_hi=
19180                          break
19181                        fi
19182                        ac_mid=`expr 2 '*' $ac_mid`
19183 fi
19184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19185   done
19186 else
19187   echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19189
19190 ac_lo= ac_hi=
19191 fi
19192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19193 fi
19194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19195 # Binary search between lo and hi bounds.
19196 while test "x$ac_lo" != "x$ac_hi"; do
19197   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19198   cat >conftest.$ac_ext <<_ACEOF
19199 /* confdefs.h.  */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h.  */
19204 $ac_includes_default
19205 int
19206 main ()
19207 {
19208 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19209 test_array [0] = 0
19210
19211   ;
19212   return 0;
19213 }
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19217   (eval $ac_compile) 2>conftest.er1
19218   ac_status=$?
19219   grep -v '^ *+' conftest.er1 >conftest.err
19220   rm -f conftest.er1
19221   cat conftest.err >&5
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); } &&
19224          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226   (eval $ac_try) 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); }; } &&
19230          { ac_try='test -s conftest.$ac_objext'
19231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232   (eval $ac_try) 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); }; }; then
19236   ac_hi=$ac_mid
19237 else
19238   echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19240
19241 ac_lo=`expr '(' $ac_mid ')' + 1`
19242 fi
19243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19244 done
19245 case $ac_lo in
19246 ?*) ac_cv_sizeof_int=$ac_lo;;
19247 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19248 See \`config.log' for more details." >&5
19249 echo "$as_me: error: cannot compute sizeof (int), 77
19250 See \`config.log' for more details." >&2;}
19251    { (exit 1); exit 1; }; } ;;
19252 esac
19253 else
19254   if test "$cross_compiling" = yes; then
19255   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19256 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19257    { (exit 1); exit 1; }; }
19258 else
19259   cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h.  */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h.  */
19265 $ac_includes_default
19266 long longval () { return (long) (sizeof (int)); }
19267 unsigned long ulongval () { return (long) (sizeof (int)); }
19268 #include <stdio.h>
19269 #include <stdlib.h>
19270 int
19271 main ()
19272 {
19273
19274   FILE *f = fopen ("conftest.val", "w");
19275   if (! f)
19276     exit (1);
19277   if (((long) (sizeof (int))) < 0)
19278     {
19279       long i = longval ();
19280       if (i != ((long) (sizeof (int))))
19281         exit (1);
19282       fprintf (f, "%ld\n", i);
19283     }
19284   else
19285     {
19286       unsigned long i = ulongval ();
19287       if (i != ((long) (sizeof (int))))
19288         exit (1);
19289       fprintf (f, "%lu\n", i);
19290     }
19291   exit (ferror (f) || fclose (f) != 0);
19292
19293   ;
19294   return 0;
19295 }
19296 _ACEOF
19297 rm -f conftest$ac_exeext
19298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19299   (eval $ac_link) 2>&5
19300   ac_status=$?
19301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304   (eval $ac_try) 2>&5
19305   ac_status=$?
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); }; }; then
19308   ac_cv_sizeof_int=`cat conftest.val`
19309 else
19310   echo "$as_me: program exited with status $ac_status" >&5
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19313
19314 ( exit $ac_status )
19315 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19316 See \`config.log' for more details." >&5
19317 echo "$as_me: error: cannot compute sizeof (int), 77
19318 See \`config.log' for more details." >&2;}
19319    { (exit 1); exit 1; }; }
19320 fi
19321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19322 fi
19323 fi
19324 rm -f conftest.val
19325 else
19326   ac_cv_sizeof_int=0
19327 fi
19328 fi
19329 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19330 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19331 cat >>confdefs.h <<_ACEOF
19332 #define SIZEOF_INT $ac_cv_sizeof_int
19333 _ACEOF
19334
19335
19336 echo "$as_me:$LINENO: checking for long" >&5
19337 echo $ECHO_N "checking for long... $ECHO_C" >&6
19338 if test "${ac_cv_type_long+set}" = set; then
19339   echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341   cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347 $ac_includes_default
19348 int
19349 main ()
19350 {
19351 if ((long *) 0)
19352   return 0;
19353 if (sizeof (long))
19354   return 0;
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19361   (eval $ac_compile) 2>conftest.er1
19362   ac_status=$?
19363   grep -v '^ *+' conftest.er1 >conftest.err
19364   rm -f conftest.er1
19365   cat conftest.err >&5
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); } &&
19368          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370   (eval $ac_try) 2>&5
19371   ac_status=$?
19372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); }; } &&
19374          { ac_try='test -s conftest.$ac_objext'
19375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376   (eval $ac_try) 2>&5
19377   ac_status=$?
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); }; }; then
19380   ac_cv_type_long=yes
19381 else
19382   echo "$as_me: failed program was:" >&5
19383 sed 's/^/| /' conftest.$ac_ext >&5
19384
19385 ac_cv_type_long=no
19386 fi
19387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19388 fi
19389 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19390 echo "${ECHO_T}$ac_cv_type_long" >&6
19391
19392 echo "$as_me:$LINENO: checking size of long" >&5
19393 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19394 if test "${ac_cv_sizeof_long+set}" = set; then
19395   echo $ECHO_N "(cached) $ECHO_C" >&6
19396 else
19397   if test "$ac_cv_type_long" = yes; then
19398   # The cast to unsigned long works around a bug in the HP C Compiler
19399   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19400   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19401   # This bug is HP SR number 8606223364.
19402   if test "$cross_compiling" = yes; then
19403   # Depending upon the size, compute the lo and hi bounds.
19404 cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h.  */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h.  */
19410 $ac_includes_default
19411 int
19412 main ()
19413 {
19414 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19415 test_array [0] = 0
19416
19417   ;
19418   return 0;
19419 }
19420 _ACEOF
19421 rm -f conftest.$ac_objext
19422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19423   (eval $ac_compile) 2>conftest.er1
19424   ac_status=$?
19425   grep -v '^ *+' conftest.er1 >conftest.err
19426   rm -f conftest.er1
19427   cat conftest.err >&5
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); } &&
19430          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432   (eval $ac_try) 2>&5
19433   ac_status=$?
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); }; } &&
19436          { ac_try='test -s conftest.$ac_objext'
19437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438   (eval $ac_try) 2>&5
19439   ac_status=$?
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); }; }; then
19442   ac_lo=0 ac_mid=0
19443   while :; do
19444     cat >conftest.$ac_ext <<_ACEOF
19445 /* confdefs.h.  */
19446 _ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h.  */
19450 $ac_includes_default
19451 int
19452 main ()
19453 {
19454 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19455 test_array [0] = 0
19456
19457   ;
19458   return 0;
19459 }
19460 _ACEOF
19461 rm -f conftest.$ac_objext
19462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19463   (eval $ac_compile) 2>conftest.er1
19464   ac_status=$?
19465   grep -v '^ *+' conftest.er1 >conftest.err
19466   rm -f conftest.er1
19467   cat conftest.err >&5
19468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469   (exit $ac_status); } &&
19470          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472   (eval $ac_try) 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; } &&
19476          { ac_try='test -s conftest.$ac_objext'
19477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478   (eval $ac_try) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; }; then
19482   ac_hi=$ac_mid; break
19483 else
19484   echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 ac_lo=`expr $ac_mid + 1`
19488                     if test $ac_lo -le $ac_mid; then
19489                       ac_lo= ac_hi=
19490                       break
19491                     fi
19492                     ac_mid=`expr 2 '*' $ac_mid + 1`
19493 fi
19494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19495   done
19496 else
19497   echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19499
19500 cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h.  */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h.  */
19506 $ac_includes_default
19507 int
19508 main ()
19509 {
19510 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19511 test_array [0] = 0
19512
19513   ;
19514   return 0;
19515 }
19516 _ACEOF
19517 rm -f conftest.$ac_objext
19518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19519   (eval $ac_compile) 2>conftest.er1
19520   ac_status=$?
19521   grep -v '^ *+' conftest.er1 >conftest.err
19522   rm -f conftest.er1
19523   cat conftest.err >&5
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); } &&
19526          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528   (eval $ac_try) 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; } &&
19532          { ac_try='test -s conftest.$ac_objext'
19533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534   (eval $ac_try) 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); }; }; then
19538   ac_hi=-1 ac_mid=-1
19539   while :; do
19540     cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h.  */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h.  */
19546 $ac_includes_default
19547 int
19548 main ()
19549 {
19550 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19551 test_array [0] = 0
19552
19553   ;
19554   return 0;
19555 }
19556 _ACEOF
19557 rm -f conftest.$ac_objext
19558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19559   (eval $ac_compile) 2>conftest.er1
19560   ac_status=$?
19561   grep -v '^ *+' conftest.er1 >conftest.err
19562   rm -f conftest.er1
19563   cat conftest.err >&5
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); } &&
19566          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568   (eval $ac_try) 2>&5
19569   ac_status=$?
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); }; } &&
19572          { ac_try='test -s conftest.$ac_objext'
19573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574   (eval $ac_try) 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; }; then
19578   ac_lo=$ac_mid; break
19579 else
19580   echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19582
19583 ac_hi=`expr '(' $ac_mid ')' - 1`
19584                        if test $ac_mid -le $ac_hi; then
19585                          ac_lo= ac_hi=
19586                          break
19587                        fi
19588                        ac_mid=`expr 2 '*' $ac_mid`
19589 fi
19590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19591   done
19592 else
19593   echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19595
19596 ac_lo= ac_hi=
19597 fi
19598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19599 fi
19600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601 # Binary search between lo and hi bounds.
19602 while test "x$ac_lo" != "x$ac_hi"; do
19603   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19604   cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610 $ac_includes_default
19611 int
19612 main ()
19613 {
19614 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19615 test_array [0] = 0
19616
19617   ;
19618   return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest.$ac_objext
19622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19623   (eval $ac_compile) 2>conftest.er1
19624   ac_status=$?
19625   grep -v '^ *+' conftest.er1 >conftest.err
19626   rm -f conftest.er1
19627   cat conftest.err >&5
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } &&
19630          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632   (eval $ac_try) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); }; } &&
19636          { ac_try='test -s conftest.$ac_objext'
19637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638   (eval $ac_try) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; }; then
19642   ac_hi=$ac_mid
19643 else
19644   echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19646
19647 ac_lo=`expr '(' $ac_mid ')' + 1`
19648 fi
19649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19650 done
19651 case $ac_lo in
19652 ?*) ac_cv_sizeof_long=$ac_lo;;
19653 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19654 See \`config.log' for more details." >&5
19655 echo "$as_me: error: cannot compute sizeof (long), 77
19656 See \`config.log' for more details." >&2;}
19657    { (exit 1); exit 1; }; } ;;
19658 esac
19659 else
19660   if test "$cross_compiling" = yes; then
19661   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19662 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19663    { (exit 1); exit 1; }; }
19664 else
19665   cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h.  */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h.  */
19671 $ac_includes_default
19672 long longval () { return (long) (sizeof (long)); }
19673 unsigned long ulongval () { return (long) (sizeof (long)); }
19674 #include <stdio.h>
19675 #include <stdlib.h>
19676 int
19677 main ()
19678 {
19679
19680   FILE *f = fopen ("conftest.val", "w");
19681   if (! f)
19682     exit (1);
19683   if (((long) (sizeof (long))) < 0)
19684     {
19685       long i = longval ();
19686       if (i != ((long) (sizeof (long))))
19687         exit (1);
19688       fprintf (f, "%ld\n", i);
19689     }
19690   else
19691     {
19692       unsigned long i = ulongval ();
19693       if (i != ((long) (sizeof (long))))
19694         exit (1);
19695       fprintf (f, "%lu\n", i);
19696     }
19697   exit (ferror (f) || fclose (f) != 0);
19698
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest$ac_exeext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705   (eval $ac_link) 2>&5
19706   ac_status=$?
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710   (eval $ac_try) 2>&5
19711   ac_status=$?
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); }; }; then
19714   ac_cv_sizeof_long=`cat conftest.val`
19715 else
19716   echo "$as_me: program exited with status $ac_status" >&5
19717 echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19719
19720 ( exit $ac_status )
19721 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19722 See \`config.log' for more details." >&5
19723 echo "$as_me: error: cannot compute sizeof (long), 77
19724 See \`config.log' for more details." >&2;}
19725    { (exit 1); exit 1; }; }
19726 fi
19727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19728 fi
19729 fi
19730 rm -f conftest.val
19731 else
19732   ac_cv_sizeof_long=0
19733 fi
19734 fi
19735 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19736 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19737 cat >>confdefs.h <<_ACEOF
19738 #define SIZEOF_LONG $ac_cv_sizeof_long
19739 _ACEOF
19740
19741
19742 echo "$as_me:$LINENO: checking for size_t" >&5
19743 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19744 if test "${ac_cv_type_size_t+set}" = set; then
19745   echo $ECHO_N "(cached) $ECHO_C" >&6
19746 else
19747   cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753 $ac_includes_default
19754 int
19755 main ()
19756 {
19757 if ((size_t *) 0)
19758   return 0;
19759 if (sizeof (size_t))
19760   return 0;
19761   ;
19762   return 0;
19763 }
19764 _ACEOF
19765 rm -f conftest.$ac_objext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19767   (eval $ac_compile) 2>conftest.er1
19768   ac_status=$?
19769   grep -v '^ *+' conftest.er1 >conftest.err
19770   rm -f conftest.er1
19771   cat conftest.err >&5
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); } &&
19774          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776   (eval $ac_try) 2>&5
19777   ac_status=$?
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); }; } &&
19780          { ac_try='test -s conftest.$ac_objext'
19781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782   (eval $ac_try) 2>&5
19783   ac_status=$?
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); }; }; then
19786   ac_cv_type_size_t=yes
19787 else
19788   echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19790
19791 ac_cv_type_size_t=no
19792 fi
19793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19794 fi
19795 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19796 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19797
19798 echo "$as_me:$LINENO: checking size of size_t" >&5
19799 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19800 if test "${ac_cv_sizeof_size_t+set}" = set; then
19801   echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803   if test "$ac_cv_type_size_t" = yes; then
19804   # The cast to unsigned long works around a bug in the HP C Compiler
19805   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19806   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19807   # This bug is HP SR number 8606223364.
19808   if test "$cross_compiling" = yes; then
19809   # Depending upon the size, compute the lo and hi bounds.
19810 cat >conftest.$ac_ext <<_ACEOF
19811 /* confdefs.h.  */
19812 _ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h.  */
19816 $ac_includes_default
19817 int
19818 main ()
19819 {
19820 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19821 test_array [0] = 0
19822
19823   ;
19824   return 0;
19825 }
19826 _ACEOF
19827 rm -f conftest.$ac_objext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19829   (eval $ac_compile) 2>conftest.er1
19830   ac_status=$?
19831   grep -v '^ *+' conftest.er1 >conftest.err
19832   rm -f conftest.er1
19833   cat conftest.err >&5
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); } &&
19836          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838   (eval $ac_try) 2>&5
19839   ac_status=$?
19840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841   (exit $ac_status); }; } &&
19842          { ac_try='test -s conftest.$ac_objext'
19843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844   (eval $ac_try) 2>&5
19845   ac_status=$?
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); }; }; then
19848   ac_lo=0 ac_mid=0
19849   while :; do
19850     cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h.  */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h.  */
19856 $ac_includes_default
19857 int
19858 main ()
19859 {
19860 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19861 test_array [0] = 0
19862
19863   ;
19864   return 0;
19865 }
19866 _ACEOF
19867 rm -f conftest.$ac_objext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19869   (eval $ac_compile) 2>conftest.er1
19870   ac_status=$?
19871   grep -v '^ *+' conftest.er1 >conftest.err
19872   rm -f conftest.er1
19873   cat conftest.err >&5
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); } &&
19876          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878   (eval $ac_try) 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); }; } &&
19882          { ac_try='test -s conftest.$ac_objext'
19883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884   (eval $ac_try) 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; }; then
19888   ac_hi=$ac_mid; break
19889 else
19890   echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 ac_lo=`expr $ac_mid + 1`
19894                     if test $ac_lo -le $ac_mid; then
19895                       ac_lo= ac_hi=
19896                       break
19897                     fi
19898                     ac_mid=`expr 2 '*' $ac_mid + 1`
19899 fi
19900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19901   done
19902 else
19903   echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19905
19906 cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h.  */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h.  */
19912 $ac_includes_default
19913 int
19914 main ()
19915 {
19916 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19917 test_array [0] = 0
19918
19919   ;
19920   return 0;
19921 }
19922 _ACEOF
19923 rm -f conftest.$ac_objext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925   (eval $ac_compile) 2>conftest.er1
19926   ac_status=$?
19927   grep -v '^ *+' conftest.er1 >conftest.err
19928   rm -f conftest.er1
19929   cat conftest.err >&5
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); } &&
19932          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934   (eval $ac_try) 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); }; } &&
19938          { ac_try='test -s conftest.$ac_objext'
19939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940   (eval $ac_try) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; }; then
19944   ac_hi=-1 ac_mid=-1
19945   while :; do
19946     cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h.  */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h.  */
19952 $ac_includes_default
19953 int
19954 main ()
19955 {
19956 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19957 test_array [0] = 0
19958
19959   ;
19960   return 0;
19961 }
19962 _ACEOF
19963 rm -f conftest.$ac_objext
19964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19965   (eval $ac_compile) 2>conftest.er1
19966   ac_status=$?
19967   grep -v '^ *+' conftest.er1 >conftest.err
19968   rm -f conftest.er1
19969   cat conftest.err >&5
19970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); } &&
19972          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974   (eval $ac_try) 2>&5
19975   ac_status=$?
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); }; } &&
19978          { ac_try='test -s conftest.$ac_objext'
19979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980   (eval $ac_try) 2>&5
19981   ac_status=$?
19982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983   (exit $ac_status); }; }; then
19984   ac_lo=$ac_mid; break
19985 else
19986   echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989 ac_hi=`expr '(' $ac_mid ')' - 1`
19990                        if test $ac_mid -le $ac_hi; then
19991                          ac_lo= ac_hi=
19992                          break
19993                        fi
19994                        ac_mid=`expr 2 '*' $ac_mid`
19995 fi
19996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19997   done
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002 ac_lo= ac_hi=
20003 fi
20004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20005 fi
20006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20007 # Binary search between lo and hi bounds.
20008 while test "x$ac_lo" != "x$ac_hi"; do
20009   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20010   cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h.  */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h.  */
20016 $ac_includes_default
20017 int
20018 main ()
20019 {
20020 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20021 test_array [0] = 0
20022
20023   ;
20024   return 0;
20025 }
20026 _ACEOF
20027 rm -f conftest.$ac_objext
20028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20029   (eval $ac_compile) 2>conftest.er1
20030   ac_status=$?
20031   grep -v '^ *+' conftest.er1 >conftest.err
20032   rm -f conftest.er1
20033   cat conftest.err >&5
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } &&
20036          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038   (eval $ac_try) 2>&5
20039   ac_status=$?
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); }; } &&
20042          { ac_try='test -s conftest.$ac_objext'
20043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044   (eval $ac_try) 2>&5
20045   ac_status=$?
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); }; }; then
20048   ac_hi=$ac_mid
20049 else
20050   echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20052
20053 ac_lo=`expr '(' $ac_mid ')' + 1`
20054 fi
20055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20056 done
20057 case $ac_lo in
20058 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20059 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20060 See \`config.log' for more details." >&5
20061 echo "$as_me: error: cannot compute sizeof (size_t), 77
20062 See \`config.log' for more details." >&2;}
20063    { (exit 1); exit 1; }; } ;;
20064 esac
20065 else
20066   if test "$cross_compiling" = yes; then
20067   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20068 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20069    { (exit 1); exit 1; }; }
20070 else
20071   cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h.  */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h.  */
20077 $ac_includes_default
20078 long longval () { return (long) (sizeof (size_t)); }
20079 unsigned long ulongval () { return (long) (sizeof (size_t)); }
20080 #include <stdio.h>
20081 #include <stdlib.h>
20082 int
20083 main ()
20084 {
20085
20086   FILE *f = fopen ("conftest.val", "w");
20087   if (! f)
20088     exit (1);
20089   if (((long) (sizeof (size_t))) < 0)
20090     {
20091       long i = longval ();
20092       if (i != ((long) (sizeof (size_t))))
20093         exit (1);
20094       fprintf (f, "%ld\n", i);
20095     }
20096   else
20097     {
20098       unsigned long i = ulongval ();
20099       if (i != ((long) (sizeof (size_t))))
20100         exit (1);
20101       fprintf (f, "%lu\n", i);
20102     }
20103   exit (ferror (f) || fclose (f) != 0);
20104
20105   ;
20106   return 0;
20107 }
20108 _ACEOF
20109 rm -f conftest$ac_exeext
20110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20111   (eval $ac_link) 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116   (eval $ac_try) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); }; }; then
20120   ac_cv_sizeof_size_t=`cat conftest.val`
20121 else
20122   echo "$as_me: program exited with status $ac_status" >&5
20123 echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20125
20126 ( exit $ac_status )
20127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20128 See \`config.log' for more details." >&5
20129 echo "$as_me: error: cannot compute sizeof (size_t), 77
20130 See \`config.log' for more details." >&2;}
20131    { (exit 1); exit 1; }; }
20132 fi
20133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20134 fi
20135 fi
20136 rm -f conftest.val
20137 else
20138   ac_cv_sizeof_size_t=0
20139 fi
20140 fi
20141 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20142 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20143 cat >>confdefs.h <<_ACEOF
20144 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20145 _ACEOF
20146
20147
20148
20149 case "${host}" in
20150     arm-*-linux* )
20151         echo "$as_me:$LINENO: checking for long long" >&5
20152 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20153 if test "${ac_cv_type_long_long+set}" = set; then
20154   echo $ECHO_N "(cached) $ECHO_C" >&6
20155 else
20156   cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162 $ac_includes_default
20163 int
20164 main ()
20165 {
20166 if ((long long *) 0)
20167   return 0;
20168 if (sizeof (long long))
20169   return 0;
20170   ;
20171   return 0;
20172 }
20173 _ACEOF
20174 rm -f conftest.$ac_objext
20175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20176   (eval $ac_compile) 2>conftest.er1
20177   ac_status=$?
20178   grep -v '^ *+' conftest.er1 >conftest.err
20179   rm -f conftest.er1
20180   cat conftest.err >&5
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); } &&
20183          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185   (eval $ac_try) 2>&5
20186   ac_status=$?
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); }; } &&
20189          { ac_try='test -s conftest.$ac_objext'
20190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191   (eval $ac_try) 2>&5
20192   ac_status=$?
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); }; }; then
20195   ac_cv_type_long_long=yes
20196 else
20197   echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20199
20200 ac_cv_type_long_long=no
20201 fi
20202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20203 fi
20204 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20205 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20206
20207 echo "$as_me:$LINENO: checking size of long long" >&5
20208 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20209 if test "${ac_cv_sizeof_long_long+set}" = set; then
20210   echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212   if test "$ac_cv_type_long_long" = yes; then
20213   # The cast to unsigned long works around a bug in the HP C Compiler
20214   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20215   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20216   # This bug is HP SR number 8606223364.
20217   if test "$cross_compiling" = yes; then
20218   # Depending upon the size, compute the lo and hi bounds.
20219 cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h.  */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h.  */
20225 $ac_includes_default
20226 int
20227 main ()
20228 {
20229 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20230 test_array [0] = 0
20231
20232   ;
20233   return 0;
20234 }
20235 _ACEOF
20236 rm -f conftest.$ac_objext
20237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20238   (eval $ac_compile) 2>conftest.er1
20239   ac_status=$?
20240   grep -v '^ *+' conftest.er1 >conftest.err
20241   rm -f conftest.er1
20242   cat conftest.err >&5
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); } &&
20245          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247   (eval $ac_try) 2>&5
20248   ac_status=$?
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); }; } &&
20251          { ac_try='test -s conftest.$ac_objext'
20252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253   (eval $ac_try) 2>&5
20254   ac_status=$?
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); }; }; then
20257   ac_lo=0 ac_mid=0
20258   while :; do
20259     cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h.  */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h.  */
20265 $ac_includes_default
20266 int
20267 main ()
20268 {
20269 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20270 test_array [0] = 0
20271
20272   ;
20273   return 0;
20274 }
20275 _ACEOF
20276 rm -f conftest.$ac_objext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20278   (eval $ac_compile) 2>conftest.er1
20279   ac_status=$?
20280   grep -v '^ *+' conftest.er1 >conftest.err
20281   rm -f conftest.er1
20282   cat conftest.err >&5
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); } &&
20285          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287   (eval $ac_try) 2>&5
20288   ac_status=$?
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); }; } &&
20291          { ac_try='test -s conftest.$ac_objext'
20292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293   (eval $ac_try) 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; }; then
20297   ac_hi=$ac_mid; break
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 ac_lo=`expr $ac_mid + 1`
20303                     if test $ac_lo -le $ac_mid; then
20304                       ac_lo= ac_hi=
20305                       break
20306                     fi
20307                     ac_mid=`expr 2 '*' $ac_mid + 1`
20308 fi
20309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20310   done
20311 else
20312   echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20314
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321 $ac_includes_default
20322 int
20323 main ()
20324 {
20325 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20326 test_array [0] = 0
20327
20328   ;
20329   return 0;
20330 }
20331 _ACEOF
20332 rm -f conftest.$ac_objext
20333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20334   (eval $ac_compile) 2>conftest.er1
20335   ac_status=$?
20336   grep -v '^ *+' conftest.er1 >conftest.err
20337   rm -f conftest.er1
20338   cat conftest.err >&5
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); } &&
20341          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343   (eval $ac_try) 2>&5
20344   ac_status=$?
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); }; } &&
20347          { ac_try='test -s conftest.$ac_objext'
20348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349   (eval $ac_try) 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); }; }; then
20353   ac_hi=-1 ac_mid=-1
20354   while :; do
20355     cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h.  */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h.  */
20361 $ac_includes_default
20362 int
20363 main ()
20364 {
20365 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20366 test_array [0] = 0
20367
20368   ;
20369   return 0;
20370 }
20371 _ACEOF
20372 rm -f conftest.$ac_objext
20373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20374   (eval $ac_compile) 2>conftest.er1
20375   ac_status=$?
20376   grep -v '^ *+' conftest.er1 >conftest.err
20377   rm -f conftest.er1
20378   cat conftest.err >&5
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); } &&
20381          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383   (eval $ac_try) 2>&5
20384   ac_status=$?
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); }; } &&
20387          { ac_try='test -s conftest.$ac_objext'
20388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389   (eval $ac_try) 2>&5
20390   ac_status=$?
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); }; }; then
20393   ac_lo=$ac_mid; break
20394 else
20395   echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20397
20398 ac_hi=`expr '(' $ac_mid ')' - 1`
20399                        if test $ac_mid -le $ac_hi; then
20400                          ac_lo= ac_hi=
20401                          break
20402                        fi
20403                        ac_mid=`expr 2 '*' $ac_mid`
20404 fi
20405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20406   done
20407 else
20408   echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20410
20411 ac_lo= ac_hi=
20412 fi
20413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20414 fi
20415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20416 # Binary search between lo and hi bounds.
20417 while test "x$ac_lo" != "x$ac_hi"; do
20418   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20419   cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h.  */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h.  */
20425 $ac_includes_default
20426 int
20427 main ()
20428 {
20429 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20430 test_array [0] = 0
20431
20432   ;
20433   return 0;
20434 }
20435 _ACEOF
20436 rm -f conftest.$ac_objext
20437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20438   (eval $ac_compile) 2>conftest.er1
20439   ac_status=$?
20440   grep -v '^ *+' conftest.er1 >conftest.err
20441   rm -f conftest.er1
20442   cat conftest.err >&5
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); } &&
20445          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447   (eval $ac_try) 2>&5
20448   ac_status=$?
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); }; } &&
20451          { ac_try='test -s conftest.$ac_objext'
20452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453   (eval $ac_try) 2>&5
20454   ac_status=$?
20455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456   (exit $ac_status); }; }; then
20457   ac_hi=$ac_mid
20458 else
20459   echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20461
20462 ac_lo=`expr '(' $ac_mid ')' + 1`
20463 fi
20464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20465 done
20466 case $ac_lo in
20467 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20468 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20469 See \`config.log' for more details." >&5
20470 echo "$as_me: error: cannot compute sizeof (long long), 77
20471 See \`config.log' for more details." >&2;}
20472    { (exit 1); exit 1; }; } ;;
20473 esac
20474 else
20475   if test "$cross_compiling" = yes; then
20476   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20477 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20478    { (exit 1); exit 1; }; }
20479 else
20480   cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h.  */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h.  */
20486 $ac_includes_default
20487 long longval () { return (long) (sizeof (long long)); }
20488 unsigned long ulongval () { return (long) (sizeof (long long)); }
20489 #include <stdio.h>
20490 #include <stdlib.h>
20491 int
20492 main ()
20493 {
20494
20495   FILE *f = fopen ("conftest.val", "w");
20496   if (! f)
20497     exit (1);
20498   if (((long) (sizeof (long long))) < 0)
20499     {
20500       long i = longval ();
20501       if (i != ((long) (sizeof (long long))))
20502         exit (1);
20503       fprintf (f, "%ld\n", i);
20504     }
20505   else
20506     {
20507       unsigned long i = ulongval ();
20508       if (i != ((long) (sizeof (long long))))
20509         exit (1);
20510       fprintf (f, "%lu\n", i);
20511     }
20512   exit (ferror (f) || fclose (f) != 0);
20513
20514   ;
20515   return 0;
20516 }
20517 _ACEOF
20518 rm -f conftest$ac_exeext
20519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20520   (eval $ac_link) 2>&5
20521   ac_status=$?
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525   (eval $ac_try) 2>&5
20526   ac_status=$?
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); }; }; then
20529   ac_cv_sizeof_long_long=`cat conftest.val`
20530 else
20531   echo "$as_me: program exited with status $ac_status" >&5
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535 ( exit $ac_status )
20536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20537 See \`config.log' for more details." >&5
20538 echo "$as_me: error: cannot compute sizeof (long long), 77
20539 See \`config.log' for more details." >&2;}
20540    { (exit 1); exit 1; }; }
20541 fi
20542 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20543 fi
20544 fi
20545 rm -f conftest.val
20546 else
20547   ac_cv_sizeof_long_long=0
20548 fi
20549 fi
20550 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20551 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20552 cat >>confdefs.h <<_ACEOF
20553 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20554 _ACEOF
20555
20556
20557     ;;
20558     *-hp-hpux* )
20559         echo "$as_me:$LINENO: checking for long long" >&5
20560 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20561 if test "${ac_cv_type_long_long+set}" = set; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h.  */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h.  */
20570 $ac_includes_default
20571 int
20572 main ()
20573 {
20574 if ((long long *) 0)
20575   return 0;
20576 if (sizeof (long long))
20577   return 0;
20578   ;
20579   return 0;
20580 }
20581 _ACEOF
20582 rm -f conftest.$ac_objext
20583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20584   (eval $ac_compile) 2>conftest.er1
20585   ac_status=$?
20586   grep -v '^ *+' conftest.er1 >conftest.err
20587   rm -f conftest.er1
20588   cat conftest.err >&5
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); } &&
20591          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593   (eval $ac_try) 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); }; } &&
20597          { ac_try='test -s conftest.$ac_objext'
20598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599   (eval $ac_try) 2>&5
20600   ac_status=$?
20601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602   (exit $ac_status); }; }; then
20603   ac_cv_type_long_long=yes
20604 else
20605   echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 ac_cv_type_long_long=no
20609 fi
20610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20611 fi
20612 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20613 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20614
20615 echo "$as_me:$LINENO: checking size of long long" >&5
20616 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20617 if test "${ac_cv_sizeof_long_long+set}" = set; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620   if test "$ac_cv_type_long_long" = yes; then
20621   # The cast to unsigned long works around a bug in the HP C Compiler
20622   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20623   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20624   # This bug is HP SR number 8606223364.
20625   if test "$cross_compiling" = yes; then
20626   # Depending upon the size, compute the lo and hi bounds.
20627 cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h.  */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h.  */
20633 $ac_includes_default
20634 int
20635 main ()
20636 {
20637 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20638 test_array [0] = 0
20639
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646   (eval $ac_compile) 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } &&
20653          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655   (eval $ac_try) 2>&5
20656   ac_status=$?
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); }; } &&
20659          { ac_try='test -s conftest.$ac_objext'
20660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661   (eval $ac_try) 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); }; }; then
20665   ac_lo=0 ac_mid=0
20666   while :; do
20667     cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h.  */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h.  */
20673 $ac_includes_default
20674 int
20675 main ()
20676 {
20677 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20678 test_array [0] = 0
20679
20680   ;
20681   return 0;
20682 }
20683 _ACEOF
20684 rm -f conftest.$ac_objext
20685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20686   (eval $ac_compile) 2>conftest.er1
20687   ac_status=$?
20688   grep -v '^ *+' conftest.er1 >conftest.err
20689   rm -f conftest.er1
20690   cat conftest.err >&5
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); } &&
20693          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695   (eval $ac_try) 2>&5
20696   ac_status=$?
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); }; } &&
20699          { ac_try='test -s conftest.$ac_objext'
20700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701   (eval $ac_try) 2>&5
20702   ac_status=$?
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); }; }; then
20705   ac_hi=$ac_mid; break
20706 else
20707   echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20709
20710 ac_lo=`expr $ac_mid + 1`
20711                     if test $ac_lo -le $ac_mid; then
20712                       ac_lo= ac_hi=
20713                       break
20714                     fi
20715                     ac_mid=`expr 2 '*' $ac_mid + 1`
20716 fi
20717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20718   done
20719 else
20720   echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20722
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h.  */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h.  */
20729 $ac_includes_default
20730 int
20731 main ()
20732 {
20733 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20734 test_array [0] = 0
20735
20736   ;
20737   return 0;
20738 }
20739 _ACEOF
20740 rm -f conftest.$ac_objext
20741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20742   (eval $ac_compile) 2>conftest.er1
20743   ac_status=$?
20744   grep -v '^ *+' conftest.er1 >conftest.err
20745   rm -f conftest.er1
20746   cat conftest.err >&5
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } &&
20749          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; } &&
20755          { ac_try='test -s conftest.$ac_objext'
20756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757   (eval $ac_try) 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); }; }; then
20761   ac_hi=-1 ac_mid=-1
20762   while :; do
20763     cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 $ac_includes_default
20770 int
20771 main ()
20772 {
20773 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20774 test_array [0] = 0
20775
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 rm -f conftest.$ac_objext
20781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20782   (eval $ac_compile) 2>conftest.er1
20783   ac_status=$?
20784   grep -v '^ *+' conftest.er1 >conftest.err
20785   rm -f conftest.er1
20786   cat conftest.err >&5
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } &&
20789          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20791   (eval $ac_try) 2>&5
20792   ac_status=$?
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); }; } &&
20795          { ac_try='test -s conftest.$ac_objext'
20796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797   (eval $ac_try) 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); }; }; then
20801   ac_lo=$ac_mid; break
20802 else
20803   echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20805
20806 ac_hi=`expr '(' $ac_mid ')' - 1`
20807                        if test $ac_mid -le $ac_hi; then
20808                          ac_lo= ac_hi=
20809                          break
20810                        fi
20811                        ac_mid=`expr 2 '*' $ac_mid`
20812 fi
20813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20814   done
20815 else
20816   echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819 ac_lo= ac_hi=
20820 fi
20821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20822 fi
20823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20824 # Binary search between lo and hi bounds.
20825 while test "x$ac_lo" != "x$ac_hi"; do
20826   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20827   cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h.  */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h.  */
20833 $ac_includes_default
20834 int
20835 main ()
20836 {
20837 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20838 test_array [0] = 0
20839
20840   ;
20841   return 0;
20842 }
20843 _ACEOF
20844 rm -f conftest.$ac_objext
20845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20846   (eval $ac_compile) 2>conftest.er1
20847   ac_status=$?
20848   grep -v '^ *+' conftest.er1 >conftest.err
20849   rm -f conftest.er1
20850   cat conftest.err >&5
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); } &&
20853          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855   (eval $ac_try) 2>&5
20856   ac_status=$?
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); }; } &&
20859          { ac_try='test -s conftest.$ac_objext'
20860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861   (eval $ac_try) 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); }; }; then
20865   ac_hi=$ac_mid
20866 else
20867   echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20869
20870 ac_lo=`expr '(' $ac_mid ')' + 1`
20871 fi
20872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20873 done
20874 case $ac_lo in
20875 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20876 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20877 See \`config.log' for more details." >&5
20878 echo "$as_me: error: cannot compute sizeof (long long), 77
20879 See \`config.log' for more details." >&2;}
20880    { (exit 1); exit 1; }; } ;;
20881 esac
20882 else
20883   if test "$cross_compiling" = yes; then
20884   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20885 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20886    { (exit 1); exit 1; }; }
20887 else
20888   cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h.  */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h.  */
20894 $ac_includes_default
20895 long longval () { return (long) (sizeof (long long)); }
20896 unsigned long ulongval () { return (long) (sizeof (long long)); }
20897 #include <stdio.h>
20898 #include <stdlib.h>
20899 int
20900 main ()
20901 {
20902
20903   FILE *f = fopen ("conftest.val", "w");
20904   if (! f)
20905     exit (1);
20906   if (((long) (sizeof (long long))) < 0)
20907     {
20908       long i = longval ();
20909       if (i != ((long) (sizeof (long long))))
20910         exit (1);
20911       fprintf (f, "%ld\n", i);
20912     }
20913   else
20914     {
20915       unsigned long i = ulongval ();
20916       if (i != ((long) (sizeof (long long))))
20917         exit (1);
20918       fprintf (f, "%lu\n", i);
20919     }
20920   exit (ferror (f) || fclose (f) != 0);
20921
20922   ;
20923   return 0;
20924 }
20925 _ACEOF
20926 rm -f conftest$ac_exeext
20927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20928   (eval $ac_link) 2>&5
20929   ac_status=$?
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933   (eval $ac_try) 2>&5
20934   ac_status=$?
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); }; }; then
20937   ac_cv_sizeof_long_long=`cat conftest.val`
20938 else
20939   echo "$as_me: program exited with status $ac_status" >&5
20940 echo "$as_me: failed program was:" >&5
20941 sed 's/^/| /' conftest.$ac_ext >&5
20942
20943 ( exit $ac_status )
20944 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20945 See \`config.log' for more details." >&5
20946 echo "$as_me: error: cannot compute sizeof (long long), 77
20947 See \`config.log' for more details." >&2;}
20948    { (exit 1); exit 1; }; }
20949 fi
20950 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20951 fi
20952 fi
20953 rm -f conftest.val
20954 else
20955   ac_cv_sizeof_long_long=0
20956 fi
20957 fi
20958 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20959 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20960 cat >>confdefs.h <<_ACEOF
20961 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20962 _ACEOF
20963
20964
20965         if test "$ac_cv_sizeof_long_long" != "0"; then
20966                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
20967         fi
20968     ;;
20969     * )
20970         echo "$as_me:$LINENO: checking for long long" >&5
20971 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20972 if test "${ac_cv_type_long_long+set}" = set; then
20973   echo $ECHO_N "(cached) $ECHO_C" >&6
20974 else
20975   cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981 $ac_includes_default
20982 int
20983 main ()
20984 {
20985 if ((long long *) 0)
20986   return 0;
20987 if (sizeof (long long))
20988   return 0;
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_cv_type_long_long=yes
21015 else
21016   echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 ac_cv_type_long_long=no
21020 fi
21021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21022 fi
21023 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21024 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21025
21026 echo "$as_me:$LINENO: checking size of long long" >&5
21027 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21028 if test "${ac_cv_sizeof_long_long+set}" = set; then
21029   echo $ECHO_N "(cached) $ECHO_C" >&6
21030 else
21031   if test "$ac_cv_type_long_long" = yes; then
21032   # The cast to unsigned long works around a bug in the HP C Compiler
21033   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21034   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21035   # This bug is HP SR number 8606223364.
21036   if test "$cross_compiling" = yes; then
21037   # Depending upon the size, compute the lo and hi bounds.
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h.  */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h.  */
21044 $ac_includes_default
21045 int
21046 main ()
21047 {
21048 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21049 test_array [0] = 0
21050
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057   (eval $ac_compile) 2>conftest.er1
21058   ac_status=$?
21059   grep -v '^ *+' conftest.er1 >conftest.err
21060   rm -f conftest.er1
21061   cat conftest.err >&5
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); } &&
21064          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066   (eval $ac_try) 2>&5
21067   ac_status=$?
21068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); }; } &&
21070          { ac_try='test -s conftest.$ac_objext'
21071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072   (eval $ac_try) 2>&5
21073   ac_status=$?
21074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075   (exit $ac_status); }; }; then
21076   ac_lo=0 ac_mid=0
21077   while :; do
21078     cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h.  */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h.  */
21084 $ac_includes_default
21085 int
21086 main ()
21087 {
21088 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21089 test_array [0] = 0
21090
21091   ;
21092   return 0;
21093 }
21094 _ACEOF
21095 rm -f conftest.$ac_objext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21097   (eval $ac_compile) 2>conftest.er1
21098   ac_status=$?
21099   grep -v '^ *+' conftest.er1 >conftest.err
21100   rm -f conftest.er1
21101   cat conftest.err >&5
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); } &&
21104          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106   (eval $ac_try) 2>&5
21107   ac_status=$?
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); }; } &&
21110          { ac_try='test -s conftest.$ac_objext'
21111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112   (eval $ac_try) 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); }; }; then
21116   ac_hi=$ac_mid; break
21117 else
21118   echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21120
21121 ac_lo=`expr $ac_mid + 1`
21122                     if test $ac_lo -le $ac_mid; then
21123                       ac_lo= ac_hi=
21124                       break
21125                     fi
21126                     ac_mid=`expr 2 '*' $ac_mid + 1`
21127 fi
21128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21129   done
21130 else
21131   echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21133
21134 cat >conftest.$ac_ext <<_ACEOF
21135 /* confdefs.h.  */
21136 _ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h.  */
21140 $ac_includes_default
21141 int
21142 main ()
21143 {
21144 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21145 test_array [0] = 0
21146
21147   ;
21148   return 0;
21149 }
21150 _ACEOF
21151 rm -f conftest.$ac_objext
21152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21153   (eval $ac_compile) 2>conftest.er1
21154   ac_status=$?
21155   grep -v '^ *+' conftest.er1 >conftest.err
21156   rm -f conftest.er1
21157   cat conftest.err >&5
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); } &&
21160          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162   (eval $ac_try) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; } &&
21166          { ac_try='test -s conftest.$ac_objext'
21167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168   (eval $ac_try) 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); }; }; then
21172   ac_hi=-1 ac_mid=-1
21173   while :; do
21174     cat >conftest.$ac_ext <<_ACEOF
21175 /* confdefs.h.  */
21176 _ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h.  */
21180 $ac_includes_default
21181 int
21182 main ()
21183 {
21184 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21185 test_array [0] = 0
21186
21187   ;
21188   return 0;
21189 }
21190 _ACEOF
21191 rm -f conftest.$ac_objext
21192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21193   (eval $ac_compile) 2>conftest.er1
21194   ac_status=$?
21195   grep -v '^ *+' conftest.er1 >conftest.err
21196   rm -f conftest.er1
21197   cat conftest.err >&5
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); } &&
21200          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202   (eval $ac_try) 2>&5
21203   ac_status=$?
21204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205   (exit $ac_status); }; } &&
21206          { ac_try='test -s conftest.$ac_objext'
21207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208   (eval $ac_try) 2>&5
21209   ac_status=$?
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); }; }; then
21212   ac_lo=$ac_mid; break
21213 else
21214   echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217 ac_hi=`expr '(' $ac_mid ')' - 1`
21218                        if test $ac_mid -le $ac_hi; then
21219                          ac_lo= ac_hi=
21220                          break
21221                        fi
21222                        ac_mid=`expr 2 '*' $ac_mid`
21223 fi
21224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21225   done
21226 else
21227   echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21229
21230 ac_lo= ac_hi=
21231 fi
21232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21233 fi
21234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21235 # Binary search between lo and hi bounds.
21236 while test "x$ac_lo" != "x$ac_hi"; do
21237   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21238   cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h.  */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h.  */
21244 $ac_includes_default
21245 int
21246 main ()
21247 {
21248 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21249 test_array [0] = 0
21250
21251   ;
21252   return 0;
21253 }
21254 _ACEOF
21255 rm -f conftest.$ac_objext
21256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21257   (eval $ac_compile) 2>conftest.er1
21258   ac_status=$?
21259   grep -v '^ *+' conftest.er1 >conftest.err
21260   rm -f conftest.er1
21261   cat conftest.err >&5
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); } &&
21264          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266   (eval $ac_try) 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); }; } &&
21270          { ac_try='test -s conftest.$ac_objext'
21271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272   (eval $ac_try) 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); }; }; then
21276   ac_hi=$ac_mid
21277 else
21278   echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21280
21281 ac_lo=`expr '(' $ac_mid ')' + 1`
21282 fi
21283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21284 done
21285 case $ac_lo in
21286 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21287 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21288 See \`config.log' for more details." >&5
21289 echo "$as_me: error: cannot compute sizeof (long long), 77
21290 See \`config.log' for more details." >&2;}
21291    { (exit 1); exit 1; }; } ;;
21292 esac
21293 else
21294   if test "$cross_compiling" = yes; then
21295   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21296 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21297    { (exit 1); exit 1; }; }
21298 else
21299   cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h.  */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h.  */
21305 $ac_includes_default
21306 long longval () { return (long) (sizeof (long long)); }
21307 unsigned long ulongval () { return (long) (sizeof (long long)); }
21308 #include <stdio.h>
21309 #include <stdlib.h>
21310 int
21311 main ()
21312 {
21313
21314   FILE *f = fopen ("conftest.val", "w");
21315   if (! f)
21316     exit (1);
21317   if (((long) (sizeof (long long))) < 0)
21318     {
21319       long i = longval ();
21320       if (i != ((long) (sizeof (long long))))
21321         exit (1);
21322       fprintf (f, "%ld\n", i);
21323     }
21324   else
21325     {
21326       unsigned long i = ulongval ();
21327       if (i != ((long) (sizeof (long long))))
21328         exit (1);
21329       fprintf (f, "%lu\n", i);
21330     }
21331   exit (ferror (f) || fclose (f) != 0);
21332
21333   ;
21334   return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest$ac_exeext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339   (eval $ac_link) 2>&5
21340   ac_status=$?
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344   (eval $ac_try) 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); }; }; then
21348   ac_cv_sizeof_long_long=`cat conftest.val`
21349 else
21350   echo "$as_me: program exited with status $ac_status" >&5
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 ( exit $ac_status )
21355 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21356 See \`config.log' for more details." >&5
21357 echo "$as_me: error: cannot compute sizeof (long long), 77
21358 See \`config.log' for more details." >&2;}
21359    { (exit 1); exit 1; }; }
21360 fi
21361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21362 fi
21363 fi
21364 rm -f conftest.val
21365 else
21366   ac_cv_sizeof_long_long=0
21367 fi
21368 fi
21369 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21370 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21371 cat >>confdefs.h <<_ACEOF
21372 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21373 _ACEOF
21374
21375
21376 esac
21377
21378 echo "$as_me:$LINENO: checking for wchar_t" >&5
21379 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21380 if test "${ac_cv_type_wchar_t+set}" = set; then
21381   echo $ECHO_N "(cached) $ECHO_C" >&6
21382 else
21383   cat >conftest.$ac_ext <<_ACEOF
21384 /* confdefs.h.  */
21385 _ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h.  */
21389
21390         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21391         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21392         #  error "fake wchar_t"
21393         #endif
21394         #ifdef HAVE_WCHAR_H
21395         #  ifdef __CYGWIN__
21396         #    include <stddef.h>
21397         #  endif
21398         #  include <wchar.h>
21399         #endif
21400         #ifdef HAVE_STDLIB_H
21401         #  include <stdlib.h>
21402         #endif
21403         #include <stdio.h>
21404
21405
21406
21407 int
21408 main ()
21409 {
21410 if ((wchar_t *) 0)
21411   return 0;
21412 if (sizeof (wchar_t))
21413   return 0;
21414   ;
21415   return 0;
21416 }
21417 _ACEOF
21418 rm -f conftest.$ac_objext
21419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21420   (eval $ac_compile) 2>conftest.er1
21421   ac_status=$?
21422   grep -v '^ *+' conftest.er1 >conftest.err
21423   rm -f conftest.er1
21424   cat conftest.err >&5
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } &&
21427          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429   (eval $ac_try) 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); }; } &&
21433          { ac_try='test -s conftest.$ac_objext'
21434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435   (eval $ac_try) 2>&5
21436   ac_status=$?
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); }; }; then
21439   ac_cv_type_wchar_t=yes
21440 else
21441   echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21443
21444 ac_cv_type_wchar_t=no
21445 fi
21446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21447 fi
21448 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21449 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21450
21451 echo "$as_me:$LINENO: checking size of wchar_t" >&5
21452 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21453 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21454   echo $ECHO_N "(cached) $ECHO_C" >&6
21455 else
21456   if test "$ac_cv_type_wchar_t" = yes; then
21457   # The cast to unsigned long works around a bug in the HP C Compiler
21458   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21459   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21460   # This bug is HP SR number 8606223364.
21461   if test "$cross_compiling" = yes; then
21462   # Depending upon the size, compute the lo and hi bounds.
21463 cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h.  */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h.  */
21469
21470         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21471         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21472         #  error "fake wchar_t"
21473         #endif
21474         #ifdef HAVE_WCHAR_H
21475         #  ifdef __CYGWIN__
21476         #    include <stddef.h>
21477         #  endif
21478         #  include <wchar.h>
21479         #endif
21480         #ifdef HAVE_STDLIB_H
21481         #  include <stdlib.h>
21482         #endif
21483         #include <stdio.h>
21484
21485
21486
21487 int
21488 main ()
21489 {
21490 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21491 test_array [0] = 0
21492
21493   ;
21494   return 0;
21495 }
21496 _ACEOF
21497 rm -f conftest.$ac_objext
21498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21499   (eval $ac_compile) 2>conftest.er1
21500   ac_status=$?
21501   grep -v '^ *+' conftest.er1 >conftest.err
21502   rm -f conftest.er1
21503   cat conftest.err >&5
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); } &&
21506          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508   (eval $ac_try) 2>&5
21509   ac_status=$?
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); }; } &&
21512          { ac_try='test -s conftest.$ac_objext'
21513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514   (eval $ac_try) 2>&5
21515   ac_status=$?
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); }; }; then
21518   ac_lo=0 ac_mid=0
21519   while :; do
21520     cat >conftest.$ac_ext <<_ACEOF
21521 /* confdefs.h.  */
21522 _ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h.  */
21526
21527         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21528         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21529         #  error "fake wchar_t"
21530         #endif
21531         #ifdef HAVE_WCHAR_H
21532         #  ifdef __CYGWIN__
21533         #    include <stddef.h>
21534         #  endif
21535         #  include <wchar.h>
21536         #endif
21537         #ifdef HAVE_STDLIB_H
21538         #  include <stdlib.h>
21539         #endif
21540         #include <stdio.h>
21541
21542
21543
21544 int
21545 main ()
21546 {
21547 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21548 test_array [0] = 0
21549
21550   ;
21551   return 0;
21552 }
21553 _ACEOF
21554 rm -f conftest.$ac_objext
21555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21556   (eval $ac_compile) 2>conftest.er1
21557   ac_status=$?
21558   grep -v '^ *+' conftest.er1 >conftest.err
21559   rm -f conftest.er1
21560   cat conftest.err >&5
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); } &&
21563          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565   (eval $ac_try) 2>&5
21566   ac_status=$?
21567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); }; } &&
21569          { ac_try='test -s conftest.$ac_objext'
21570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571   (eval $ac_try) 2>&5
21572   ac_status=$?
21573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574   (exit $ac_status); }; }; then
21575   ac_hi=$ac_mid; break
21576 else
21577   echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21579
21580 ac_lo=`expr $ac_mid + 1`
21581                     if test $ac_lo -le $ac_mid; then
21582                       ac_lo= ac_hi=
21583                       break
21584                     fi
21585                     ac_mid=`expr 2 '*' $ac_mid + 1`
21586 fi
21587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21588   done
21589 else
21590   echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593 cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h.  */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h.  */
21599
21600         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21601         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21602         #  error "fake wchar_t"
21603         #endif
21604         #ifdef HAVE_WCHAR_H
21605         #  ifdef __CYGWIN__
21606         #    include <stddef.h>
21607         #  endif
21608         #  include <wchar.h>
21609         #endif
21610         #ifdef HAVE_STDLIB_H
21611         #  include <stdlib.h>
21612         #endif
21613         #include <stdio.h>
21614
21615
21616
21617 int
21618 main ()
21619 {
21620 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21621 test_array [0] = 0
21622
21623   ;
21624   return 0;
21625 }
21626 _ACEOF
21627 rm -f conftest.$ac_objext
21628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21629   (eval $ac_compile) 2>conftest.er1
21630   ac_status=$?
21631   grep -v '^ *+' conftest.er1 >conftest.err
21632   rm -f conftest.er1
21633   cat conftest.err >&5
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); } &&
21636          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638   (eval $ac_try) 2>&5
21639   ac_status=$?
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); }; } &&
21642          { ac_try='test -s conftest.$ac_objext'
21643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644   (eval $ac_try) 2>&5
21645   ac_status=$?
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); }; }; then
21648   ac_hi=-1 ac_mid=-1
21649   while :; do
21650     cat >conftest.$ac_ext <<_ACEOF
21651 /* confdefs.h.  */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h.  */
21656
21657         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21658         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21659         #  error "fake wchar_t"
21660         #endif
21661         #ifdef HAVE_WCHAR_H
21662         #  ifdef __CYGWIN__
21663         #    include <stddef.h>
21664         #  endif
21665         #  include <wchar.h>
21666         #endif
21667         #ifdef HAVE_STDLIB_H
21668         #  include <stdlib.h>
21669         #endif
21670         #include <stdio.h>
21671
21672
21673
21674 int
21675 main ()
21676 {
21677 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21678 test_array [0] = 0
21679
21680   ;
21681   return 0;
21682 }
21683 _ACEOF
21684 rm -f conftest.$ac_objext
21685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21686   (eval $ac_compile) 2>conftest.er1
21687   ac_status=$?
21688   grep -v '^ *+' conftest.er1 >conftest.err
21689   rm -f conftest.er1
21690   cat conftest.err >&5
21691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); } &&
21693          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695   (eval $ac_try) 2>&5
21696   ac_status=$?
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); }; } &&
21699          { ac_try='test -s conftest.$ac_objext'
21700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701   (eval $ac_try) 2>&5
21702   ac_status=$?
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); }; }; then
21705   ac_lo=$ac_mid; break
21706 else
21707   echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21709
21710 ac_hi=`expr '(' $ac_mid ')' - 1`
21711                        if test $ac_mid -le $ac_hi; then
21712                          ac_lo= ac_hi=
21713                          break
21714                        fi
21715                        ac_mid=`expr 2 '*' $ac_mid`
21716 fi
21717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21718   done
21719 else
21720   echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21722
21723 ac_lo= ac_hi=
21724 fi
21725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21726 fi
21727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21728 # Binary search between lo and hi bounds.
21729 while test "x$ac_lo" != "x$ac_hi"; do
21730   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21731   cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h.  */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h.  */
21737
21738         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21739         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21740         #  error "fake wchar_t"
21741         #endif
21742         #ifdef HAVE_WCHAR_H
21743         #  ifdef __CYGWIN__
21744         #    include <stddef.h>
21745         #  endif
21746         #  include <wchar.h>
21747         #endif
21748         #ifdef HAVE_STDLIB_H
21749         #  include <stdlib.h>
21750         #endif
21751         #include <stdio.h>
21752
21753
21754
21755 int
21756 main ()
21757 {
21758 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21759 test_array [0] = 0
21760
21761   ;
21762   return 0;
21763 }
21764 _ACEOF
21765 rm -f conftest.$ac_objext
21766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21767   (eval $ac_compile) 2>conftest.er1
21768   ac_status=$?
21769   grep -v '^ *+' conftest.er1 >conftest.err
21770   rm -f conftest.er1
21771   cat conftest.err >&5
21772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773   (exit $ac_status); } &&
21774          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776   (eval $ac_try) 2>&5
21777   ac_status=$?
21778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779   (exit $ac_status); }; } &&
21780          { ac_try='test -s conftest.$ac_objext'
21781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782   (eval $ac_try) 2>&5
21783   ac_status=$?
21784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785   (exit $ac_status); }; }; then
21786   ac_hi=$ac_mid
21787 else
21788   echo "$as_me: failed program was:" >&5
21789 sed 's/^/| /' conftest.$ac_ext >&5
21790
21791 ac_lo=`expr '(' $ac_mid ')' + 1`
21792 fi
21793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21794 done
21795 case $ac_lo in
21796 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21797 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21798 See \`config.log' for more details." >&5
21799 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21800 See \`config.log' for more details." >&2;}
21801    { (exit 1); exit 1; }; } ;;
21802 esac
21803 else
21804   if test "$cross_compiling" = yes; then
21805   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21806 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21807    { (exit 1); exit 1; }; }
21808 else
21809   cat >conftest.$ac_ext <<_ACEOF
21810 /* confdefs.h.  */
21811 _ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h.  */
21815
21816         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21817         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21818         #  error "fake wchar_t"
21819         #endif
21820         #ifdef HAVE_WCHAR_H
21821         #  ifdef __CYGWIN__
21822         #    include <stddef.h>
21823         #  endif
21824         #  include <wchar.h>
21825         #endif
21826         #ifdef HAVE_STDLIB_H
21827         #  include <stdlib.h>
21828         #endif
21829         #include <stdio.h>
21830
21831
21832
21833 long longval () { return (long) (sizeof (wchar_t)); }
21834 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21835 #include <stdio.h>
21836 #include <stdlib.h>
21837 int
21838 main ()
21839 {
21840
21841   FILE *f = fopen ("conftest.val", "w");
21842   if (! f)
21843     exit (1);
21844   if (((long) (sizeof (wchar_t))) < 0)
21845     {
21846       long i = longval ();
21847       if (i != ((long) (sizeof (wchar_t))))
21848         exit (1);
21849       fprintf (f, "%ld\n", i);
21850     }
21851   else
21852     {
21853       unsigned long i = ulongval ();
21854       if (i != ((long) (sizeof (wchar_t))))
21855         exit (1);
21856       fprintf (f, "%lu\n", i);
21857     }
21858   exit (ferror (f) || fclose (f) != 0);
21859
21860   ;
21861   return 0;
21862 }
21863 _ACEOF
21864 rm -f conftest$ac_exeext
21865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21866   (eval $ac_link) 2>&5
21867   ac_status=$?
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871   (eval $ac_try) 2>&5
21872   ac_status=$?
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); }; }; then
21875   ac_cv_sizeof_wchar_t=`cat conftest.val`
21876 else
21877   echo "$as_me: program exited with status $ac_status" >&5
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21880
21881 ( exit $ac_status )
21882 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21883 See \`config.log' for more details." >&5
21884 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21885 See \`config.log' for more details." >&2;}
21886    { (exit 1); exit 1; }; }
21887 fi
21888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21889 fi
21890 fi
21891 rm -f conftest.val
21892 else
21893   ac_cv_sizeof_wchar_t=0
21894 fi
21895 fi
21896 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21897 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21898 cat >>confdefs.h <<_ACEOF
21899 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21900 _ACEOF
21901
21902
21903 if test "$ac_cv_sizeof_wchar_t" != "0"; then
21904     wxUSE_WCHAR_T=yes
21905 else
21906     wxUSE_WCHAR_T=no
21907 fi
21908
21909 echo "$as_me:$LINENO: checking for va_copy" >&5
21910 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21911 if test "${wx_cv_func_va_copy+set}" = set; then
21912   echo $ECHO_N "(cached) $ECHO_C" >&6
21913 else
21914
21915         cat >conftest.$ac_ext <<_ACEOF
21916
21917             #include <stdarg.h>
21918             void foo(char *f, ...)
21919             {
21920                 va_list ap1, ap2;
21921                 va_start(ap1, f);
21922                 va_copy(ap2, ap1);
21923                 va_end(ap2);
21924                 va_end(ap1);
21925             }
21926             int main()
21927             {
21928                 foo("hi", 17);
21929                 return 0;
21930             }
21931 _ACEOF
21932 rm -f conftest.$ac_objext conftest$ac_exeext
21933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21934   (eval $ac_link) 2>conftest.er1
21935   ac_status=$?
21936   grep -v '^ *+' conftest.er1 >conftest.err
21937   rm -f conftest.er1
21938   cat conftest.err >&5
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); } &&
21941          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943   (eval $ac_try) 2>&5
21944   ac_status=$?
21945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946   (exit $ac_status); }; } &&
21947          { ac_try='test -s conftest$ac_exeext'
21948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949   (eval $ac_try) 2>&5
21950   ac_status=$?
21951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952   (exit $ac_status); }; }; then
21953   wx_cv_func_va_copy=yes
21954 else
21955   echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958 wx_cv_func_va_copy=no
21959
21960 fi
21961 rm -f conftest.err conftest.$ac_objext \
21962       conftest$ac_exeext conftest.$ac_ext
21963
21964
21965 fi
21966 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21967 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21968
21969 if test $wx_cv_func_va_copy = "yes"; then
21970     cat >>confdefs.h <<\_ACEOF
21971 #define HAVE_VA_COPY 1
21972 _ACEOF
21973
21974 else
21975         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21976 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21977 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21978   echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980
21981             if test "$cross_compiling" = yes; then
21982                   wx_cv_type_va_list_lvalue=yes
21983
21984 else
21985   cat >conftest.$ac_ext <<_ACEOF
21986
21987                 #include <stdarg.h>
21988                 int foo(char *f, ...)
21989                 {
21990                     va_list ap1, ap2;
21991                     va_start(ap1, f);
21992                     ap2 = ap1;
21993                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21994                         return 1;
21995                     va_end(ap2);
21996                     va_end(ap1);
21997                     return 0;
21998                 }
21999                 int main()
22000                 {
22001                     return foo("hi", 17);
22002                 }
22003 _ACEOF
22004 rm -f conftest$ac_exeext
22005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22006   (eval $ac_link) 2>&5
22007   ac_status=$?
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011   (eval $ac_try) 2>&5
22012   ac_status=$?
22013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014   (exit $ac_status); }; }; then
22015   wx_cv_type_va_list_lvalue=yes
22016 else
22017   echo "$as_me: program exited with status $ac_status" >&5
22018 echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22020
22021 ( exit $ac_status )
22022 wx_cv_type_va_list_lvalue=no
22023 fi
22024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22025 fi
22026
22027
22028 fi
22029 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22030 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22031
22032     if test $wx_cv_type_va_list_lvalue != "yes"; then
22033                         cat >>confdefs.h <<\_ACEOF
22034 #define VA_LIST_IS_ARRAY 1
22035 _ACEOF
22036
22037     fi
22038 fi
22039
22040 # Check whether --enable-largefile or --disable-largefile was given.
22041 if test "${enable_largefile+set}" = set; then
22042   enableval="$enable_largefile"
22043
22044 fi;
22045 if test "$enable_largefile" != no; then
22046             wx_largefile=no
22047
22048     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22049 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22050 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22051   echo $ECHO_N "(cached) $ECHO_C" >&6
22052 else
22053
22054           cat >conftest.$ac_ext <<_ACEOF
22055 /* confdefs.h.  */
22056 _ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h.  */
22060 #define _FILE_OFFSET_BITS 64
22061                           #include <sys/types.h>
22062 int
22063 main ()
22064 {
22065 typedef struct {
22066     unsigned int field: sizeof(off_t) == 8;
22067 } wxlf;
22068
22069   ;
22070   return 0;
22071 }
22072 _ACEOF
22073 rm -f conftest.$ac_objext
22074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22075   (eval $ac_compile) 2>conftest.er1
22076   ac_status=$?
22077   grep -v '^ *+' conftest.er1 >conftest.err
22078   rm -f conftest.er1
22079   cat conftest.err >&5
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } &&
22082          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084   (eval $ac_try) 2>&5
22085   ac_status=$?
22086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); }; } &&
22088          { ac_try='test -s conftest.$ac_objext'
22089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090   (eval $ac_try) 2>&5
22091   ac_status=$?
22092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093   (exit $ac_status); }; }; then
22094   ac_cv_sys_file_offset_bits=64
22095 else
22096   echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099 ac_cv_sys_file_offset_bits=no
22100 fi
22101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22102
22103
22104 fi
22105 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22106 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22107
22108     if test "$ac_cv_sys_file_offset_bits" != no; then
22109         wx_largefile=yes
22110         cat >>confdefs.h <<_ACEOF
22111 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22112 _ACEOF
22113
22114     fi
22115
22116     if test "x$wx_largefile" != "xyes"; then
22117
22118     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22119 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22120 if test "${ac_cv_sys_large_files+set}" = set; then
22121   echo $ECHO_N "(cached) $ECHO_C" >&6
22122 else
22123
22124           cat >conftest.$ac_ext <<_ACEOF
22125 /* confdefs.h.  */
22126 _ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h.  */
22130 #define _LARGE_FILES 1
22131                           #include <sys/types.h>
22132 int
22133 main ()
22134 {
22135 typedef struct {
22136     unsigned int field: sizeof(off_t) == 8;
22137 } wxlf;
22138
22139   ;
22140   return 0;
22141 }
22142 _ACEOF
22143 rm -f conftest.$ac_objext
22144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22145   (eval $ac_compile) 2>conftest.er1
22146   ac_status=$?
22147   grep -v '^ *+' conftest.er1 >conftest.err
22148   rm -f conftest.er1
22149   cat conftest.err >&5
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); } &&
22152          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154   (eval $ac_try) 2>&5
22155   ac_status=$?
22156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157   (exit $ac_status); }; } &&
22158          { ac_try='test -s conftest.$ac_objext'
22159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160   (eval $ac_try) 2>&5
22161   ac_status=$?
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); }; }; then
22164   ac_cv_sys_large_files=1
22165 else
22166   echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169 ac_cv_sys_large_files=no
22170 fi
22171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22172
22173
22174 fi
22175 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22176 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22177
22178     if test "$ac_cv_sys_large_files" != no; then
22179         wx_largefile=yes
22180         cat >>confdefs.h <<_ACEOF
22181 #define _LARGE_FILES $ac_cv_sys_large_files
22182 _ACEOF
22183
22184     fi
22185
22186     fi
22187
22188     echo "$as_me:$LINENO: checking if large file support is available" >&5
22189 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22190     if test "x$wx_largefile" = "xyes"; then
22191         cat >>confdefs.h <<\_ACEOF
22192 #define HAVE_LARGEFILE_SUPPORT 1
22193 _ACEOF
22194
22195     fi
22196     echo "$as_me:$LINENO: result: $wx_largefile" >&5
22197 echo "${ECHO_T}$wx_largefile" >&6
22198 fi
22199
22200
22201 if test "x$wx_largefile" = "xyes"; then
22202     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
22203         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
22204
22205                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22206             echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22207 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22208 if test "${wx_cv_STDC_EXT_required+set}" = set; then
22209   echo $ECHO_N "(cached) $ECHO_C" >&6
22210 else
22211
22212                     cat >conftest.$ac_ext <<_ACEOF
22213 /* confdefs.h.  */
22214 _ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h.  */
22218
22219 int
22220 main ()
22221 {
22222
22223                             #ifndef __STDC_EXT__
22224                                 choke me
22225                             #endif
22226
22227   ;
22228   return 0;
22229 }
22230 _ACEOF
22231 rm -f conftest.$ac_objext
22232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22233   (eval $ac_compile) 2>conftest.er1
22234   ac_status=$?
22235   grep -v '^ *+' conftest.er1 >conftest.err
22236   rm -f conftest.er1
22237   cat conftest.err >&5
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); } &&
22240          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242   (eval $ac_try) 2>&5
22243   ac_status=$?
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); }; } &&
22246          { ac_try='test -s conftest.$ac_objext'
22247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248   (eval $ac_try) 2>&5
22249   ac_status=$?
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); }; }; then
22252   wx_cv_STDC_EXT_required=no
22253 else
22254   echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22256
22257 wx_cv_STDC_EXT_required=yes
22258
22259 fi
22260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22261
22262
22263 fi
22264 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22265 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22266             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
22267                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
22268             fi
22269         fi
22270     else
22271         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
22272     fi
22273         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22274 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22275 if test "${ac_cv_sys_largefile_source+set}" = set; then
22276   echo $ECHO_N "(cached) $ECHO_C" >&6
22277 else
22278   while :; do
22279   ac_cv_sys_largefile_source=no
22280   cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h.  */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h.  */
22286 #include <stdio.h>
22287 int
22288 main ()
22289 {
22290 return !fseeko;
22291   ;
22292   return 0;
22293 }
22294 _ACEOF
22295 rm -f conftest.$ac_objext
22296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22297   (eval $ac_compile) 2>conftest.er1
22298   ac_status=$?
22299   grep -v '^ *+' conftest.er1 >conftest.err
22300   rm -f conftest.er1
22301   cat conftest.err >&5
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); } &&
22304          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306   (eval $ac_try) 2>&5
22307   ac_status=$?
22308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); }; } &&
22310          { ac_try='test -s conftest.$ac_objext'
22311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312   (eval $ac_try) 2>&5
22313   ac_status=$?
22314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315   (exit $ac_status); }; }; then
22316   break
22317 else
22318   echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22320
22321 fi
22322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22323   cat >conftest.$ac_ext <<_ACEOF
22324 /* confdefs.h.  */
22325 _ACEOF
22326 cat confdefs.h >>conftest.$ac_ext
22327 cat >>conftest.$ac_ext <<_ACEOF
22328 /* end confdefs.h.  */
22329 #define _LARGEFILE_SOURCE 1
22330 #include <stdio.h>
22331 int
22332 main ()
22333 {
22334 return !fseeko;
22335   ;
22336   return 0;
22337 }
22338 _ACEOF
22339 rm -f conftest.$ac_objext
22340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22341   (eval $ac_compile) 2>conftest.er1
22342   ac_status=$?
22343   grep -v '^ *+' conftest.er1 >conftest.err
22344   rm -f conftest.er1
22345   cat conftest.err >&5
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); } &&
22348          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350   (eval $ac_try) 2>&5
22351   ac_status=$?
22352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353   (exit $ac_status); }; } &&
22354          { ac_try='test -s conftest.$ac_objext'
22355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356   (eval $ac_try) 2>&5
22357   ac_status=$?
22358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359   (exit $ac_status); }; }; then
22360   ac_cv_sys_largefile_source=1; break
22361 else
22362   echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22364
22365 fi
22366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22367   break
22368 done
22369 fi
22370 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22371 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22372 if test "$ac_cv_sys_largefile_source" != no; then
22373
22374 cat >>confdefs.h <<_ACEOF
22375 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22376 _ACEOF
22377
22378 fi
22379 rm -f conftest*
22380
22381 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22382 # in glibc 2.1.3, but that breaks too many other things.
22383 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22384 echo "$as_me:$LINENO: checking for fseeko" >&5
22385 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22386 if test "${ac_cv_func_fseeko+set}" = set; then
22387   echo $ECHO_N "(cached) $ECHO_C" >&6
22388 else
22389   cat >conftest.$ac_ext <<_ACEOF
22390 /* confdefs.h.  */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h.  */
22395 #include <stdio.h>
22396 int
22397 main ()
22398 {
22399 return fseeko && fseeko (stdin, 0, 0);
22400   ;
22401   return 0;
22402 }
22403 _ACEOF
22404 rm -f conftest.$ac_objext conftest$ac_exeext
22405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22406   (eval $ac_link) 2>conftest.er1
22407   ac_status=$?
22408   grep -v '^ *+' conftest.er1 >conftest.err
22409   rm -f conftest.er1
22410   cat conftest.err >&5
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); } &&
22413          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415   (eval $ac_try) 2>&5
22416   ac_status=$?
22417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418   (exit $ac_status); }; } &&
22419          { ac_try='test -s conftest$ac_exeext'
22420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421   (eval $ac_try) 2>&5
22422   ac_status=$?
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); }; }; then
22425   ac_cv_func_fseeko=yes
22426 else
22427   echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22429
22430 ac_cv_func_fseeko=no
22431 fi
22432 rm -f conftest.err conftest.$ac_objext \
22433       conftest$ac_exeext conftest.$ac_ext
22434 fi
22435 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22436 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22437 if test $ac_cv_func_fseeko = yes; then
22438
22439 cat >>confdefs.h <<\_ACEOF
22440 #define HAVE_FSEEKO 1
22441 _ACEOF
22442
22443 fi
22444
22445     if test "$ac_cv_sys_largefile_source" != no; then
22446         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
22447     fi
22448 fi
22449
22450 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22451 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22452 if test "${ac_cv_c_bigendian+set}" = set; then
22453   echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455   ac_cv_c_bigendian=unknown
22456 # See if sys/param.h defines the BYTE_ORDER macro.
22457 cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h.  */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h.  */
22463 #include <sys/types.h>
22464 #include <sys/param.h>
22465 int
22466 main ()
22467 {
22468
22469 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22470  bogus endian macros
22471 #endif
22472   ;
22473   return 0;
22474 }
22475 _ACEOF
22476 rm -f conftest.$ac_objext
22477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22478   (eval $ac_compile) 2>conftest.er1
22479   ac_status=$?
22480   grep -v '^ *+' conftest.er1 >conftest.err
22481   rm -f conftest.er1
22482   cat conftest.err >&5
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); } &&
22485          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487   (eval $ac_try) 2>&5
22488   ac_status=$?
22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); }; } &&
22491          { ac_try='test -s conftest.$ac_objext'
22492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493   (eval $ac_try) 2>&5
22494   ac_status=$?
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); }; }; then
22497   # It does; now see whether it defined to BIG_ENDIAN or not.
22498 cat >conftest.$ac_ext <<_ACEOF
22499 /* confdefs.h.  */
22500 _ACEOF
22501 cat confdefs.h >>conftest.$ac_ext
22502 cat >>conftest.$ac_ext <<_ACEOF
22503 /* end confdefs.h.  */
22504 #include <sys/types.h>
22505 #include <sys/param.h>
22506 int
22507 main ()
22508 {
22509
22510 #if BYTE_ORDER != BIG_ENDIAN
22511  not big endian
22512 #endif
22513   ;
22514   return 0;
22515 }
22516 _ACEOF
22517 rm -f conftest.$ac_objext
22518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22519   (eval $ac_compile) 2>conftest.er1
22520   ac_status=$?
22521   grep -v '^ *+' conftest.er1 >conftest.err
22522   rm -f conftest.er1
22523   cat conftest.err >&5
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); } &&
22526          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528   (eval $ac_try) 2>&5
22529   ac_status=$?
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); }; } &&
22532          { ac_try='test -s conftest.$ac_objext'
22533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534   (eval $ac_try) 2>&5
22535   ac_status=$?
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); }; }; then
22538   ac_cv_c_bigendian=yes
22539 else
22540   echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22542
22543 ac_cv_c_bigendian=no
22544 fi
22545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22546 else
22547   echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22549
22550 fi
22551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22552 if test $ac_cv_c_bigendian = unknown; then
22553 if test "$cross_compiling" = yes; then
22554   ac_cv_c_bigendian=unknown
22555 else
22556   cat >conftest.$ac_ext <<_ACEOF
22557 /* confdefs.h.  */
22558 _ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h.  */
22562 main () {
22563   /* Are we little or big endian?  From Harbison&Steele.  */
22564   union
22565   {
22566     long l;
22567     char c[sizeof (long)];
22568   } u;
22569   u.l = 1;
22570   exit (u.c[sizeof (long) - 1] == 1);
22571 }
22572 _ACEOF
22573 rm -f conftest$ac_exeext
22574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22575   (eval $ac_link) 2>&5
22576   ac_status=$?
22577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580   (eval $ac_try) 2>&5
22581   ac_status=$?
22582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583   (exit $ac_status); }; }; then
22584   ac_cv_c_bigendian=no
22585 else
22586   echo "$as_me: program exited with status $ac_status" >&5
22587 echo "$as_me: failed program was:" >&5
22588 sed 's/^/| /' conftest.$ac_ext >&5
22589
22590 ( exit $ac_status )
22591 ac_cv_c_bigendian=yes
22592 fi
22593 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22594 fi
22595 fi
22596 fi
22597 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22598 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22599 if test $ac_cv_c_bigendian = unknown; then
22600   { 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
22601 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;}
22602 fi
22603 if test $ac_cv_c_bigendian = yes; then
22604   cat >>confdefs.h <<\_ACEOF
22605 #define WORDS_BIGENDIAN 1
22606 _ACEOF
22607
22608 fi
22609
22610
22611
22612
22613
22614     ac_ext=cc
22615 ac_cpp='$CXXCPP $CPPFLAGS'
22616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22619
22620
22621
22622 for ac_header in iostream
22623 do
22624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22626   echo "$as_me:$LINENO: checking for $ac_header" >&5
22627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22629   echo $ECHO_N "(cached) $ECHO_C" >&6
22630 fi
22631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22633 else
22634   # Is the header compilable?
22635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22637 cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h.  */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h.  */
22643 $ac_includes_default
22644 #include <$ac_header>
22645 _ACEOF
22646 rm -f conftest.$ac_objext
22647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22648   (eval $ac_compile) 2>conftest.er1
22649   ac_status=$?
22650   grep -v '^ *+' conftest.er1 >conftest.err
22651   rm -f conftest.er1
22652   cat conftest.err >&5
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); } &&
22655          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22657   (eval $ac_try) 2>&5
22658   ac_status=$?
22659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660   (exit $ac_status); }; } &&
22661          { ac_try='test -s conftest.$ac_objext'
22662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663   (eval $ac_try) 2>&5
22664   ac_status=$?
22665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666   (exit $ac_status); }; }; then
22667   ac_header_compiler=yes
22668 else
22669   echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22671
22672 ac_header_compiler=no
22673 fi
22674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22676 echo "${ECHO_T}$ac_header_compiler" >&6
22677
22678 # Is the header present?
22679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22681 cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h.  */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h.  */
22687 #include <$ac_header>
22688 _ACEOF
22689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22691   ac_status=$?
22692   grep -v '^ *+' conftest.er1 >conftest.err
22693   rm -f conftest.er1
22694   cat conftest.err >&5
22695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696   (exit $ac_status); } >/dev/null; then
22697   if test -s conftest.err; then
22698     ac_cpp_err=$ac_cxx_preproc_warn_flag
22699     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22700   else
22701     ac_cpp_err=
22702   fi
22703 else
22704   ac_cpp_err=yes
22705 fi
22706 if test -z "$ac_cpp_err"; then
22707   ac_header_preproc=yes
22708 else
22709   echo "$as_me: failed program was:" >&5
22710 sed 's/^/| /' conftest.$ac_ext >&5
22711
22712   ac_header_preproc=no
22713 fi
22714 rm -f conftest.err conftest.$ac_ext
22715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22716 echo "${ECHO_T}$ac_header_preproc" >&6
22717
22718 # So?  What about this header?
22719 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22720   yes:no: )
22721     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22725     ac_header_preproc=yes
22726     ;;
22727   no:yes:* )
22728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22730     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22731 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22732     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22734     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22735 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22738     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22740     (
22741       cat <<\_ASBOX
22742 ## ----------------------------------------- ##
22743 ## Report this to wx-dev@lists.wxwidgets.org ##
22744 ## ----------------------------------------- ##
22745 _ASBOX
22746     ) |
22747       sed "s/^/$as_me: WARNING:     /" >&2
22748     ;;
22749 esac
22750 echo "$as_me:$LINENO: checking for $ac_header" >&5
22751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22753   echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755   eval "$as_ac_Header=\$ac_header_preproc"
22756 fi
22757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22759
22760 fi
22761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22762   cat >>confdefs.h <<_ACEOF
22763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22764 _ACEOF
22765
22766 fi
22767
22768 done
22769
22770
22771     if test "$ac_cv_header_iostream" = "yes" ; then
22772       :
22773     else
22774       cat >>confdefs.h <<\_ACEOF
22775 #define wxUSE_IOSTREAMH 1
22776 _ACEOF
22777
22778     fi
22779
22780     ac_ext=cc
22781 ac_cpp='$CXXCPP $CPPFLAGS'
22782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22785
22786
22787
22788
22789   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22790 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22791 if test "${wx_cv_cpp_bool+set}" = set; then
22792   echo $ECHO_N "(cached) $ECHO_C" >&6
22793 else
22794
22795
22796
22797     ac_ext=cc
22798 ac_cpp='$CXXCPP $CPPFLAGS'
22799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22802
22803
22804     cat >conftest.$ac_ext <<_ACEOF
22805 /* confdefs.h.  */
22806 _ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h.  */
22810
22811
22812 int
22813 main ()
22814 {
22815
22816         bool b = true;
22817
22818         return 0;
22819
22820   ;
22821   return 0;
22822 }
22823 _ACEOF
22824 rm -f conftest.$ac_objext
22825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22826   (eval $ac_compile) 2>conftest.er1
22827   ac_status=$?
22828   grep -v '^ *+' conftest.er1 >conftest.err
22829   rm -f conftest.er1
22830   cat conftest.err >&5
22831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832   (exit $ac_status); } &&
22833          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22835   (eval $ac_try) 2>&5
22836   ac_status=$?
22837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838   (exit $ac_status); }; } &&
22839          { ac_try='test -s conftest.$ac_objext'
22840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22841   (eval $ac_try) 2>&5
22842   ac_status=$?
22843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844   (exit $ac_status); }; }; then
22845
22846         wx_cv_cpp_bool=yes
22847
22848 else
22849   echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852
22853         wx_cv_cpp_bool=no
22854
22855
22856 fi
22857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22858
22859     ac_ext=cc
22860 ac_cpp='$CXXCPP $CPPFLAGS'
22861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22864
22865
22866 fi
22867 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22868 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22869
22870   if test "$wx_cv_cpp_bool" = "yes"; then
22871     cat >>confdefs.h <<\_ACEOF
22872 #define HAVE_BOOL 1
22873 _ACEOF
22874
22875   fi
22876
22877
22878
22879   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22880 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22881 if test "${wx_cv_explicit+set}" = set; then
22882   echo $ECHO_N "(cached) $ECHO_C" >&6
22883 else
22884
22885
22886
22887     ac_ext=cc
22888 ac_cpp='$CXXCPP $CPPFLAGS'
22889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22892
22893
22894             cat >conftest.$ac_ext <<_ACEOF
22895 /* confdefs.h.  */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h.  */
22900
22901         class Foo { public: explicit Foo(int) {} };
22902
22903 int
22904 main ()
22905 {
22906
22907         return 0;
22908
22909   ;
22910   return 0;
22911 }
22912 _ACEOF
22913 rm -f conftest.$ac_objext
22914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22915   (eval $ac_compile) 2>conftest.er1
22916   ac_status=$?
22917   grep -v '^ *+' conftest.er1 >conftest.err
22918   rm -f conftest.er1
22919   cat conftest.err >&5
22920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921   (exit $ac_status); } &&
22922          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924   (eval $ac_try) 2>&5
22925   ac_status=$?
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); }; } &&
22928          { ac_try='test -s conftest.$ac_objext'
22929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930   (eval $ac_try) 2>&5
22931   ac_status=$?
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); }; }; then
22934
22935         cat >conftest.$ac_ext <<_ACEOF
22936 /* confdefs.h.  */
22937 _ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h.  */
22941
22942                 class Foo { public: explicit Foo(int) {} };
22943                 static void TakeFoo(const Foo& foo) { }
22944
22945 int
22946 main ()
22947 {
22948
22949                 TakeFoo(17);
22950                 return 0;
22951
22952   ;
22953   return 0;
22954 }
22955 _ACEOF
22956 rm -f conftest.$ac_objext
22957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22958   (eval $ac_compile) 2>conftest.er1
22959   ac_status=$?
22960   grep -v '^ *+' conftest.er1 >conftest.err
22961   rm -f conftest.er1
22962   cat conftest.err >&5
22963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964   (exit $ac_status); } &&
22965          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967   (eval $ac_try) 2>&5
22968   ac_status=$?
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); }; } &&
22971          { ac_try='test -s conftest.$ac_objext'
22972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973   (eval $ac_try) 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; }; then
22977   wx_cv_explicit=no
22978 else
22979   echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22981
22982 wx_cv_explicit=yes
22983
22984 fi
22985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22986
22987 else
22988   echo "$as_me: failed program was:" >&5
22989 sed 's/^/| /' conftest.$ac_ext >&5
22990
22991 wx_cv_explicit=no
22992
22993 fi
22994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22995
22996     ac_ext=cc
22997 ac_cpp='$CXXCPP $CPPFLAGS'
22998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23001
23002
23003 fi
23004 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23005 echo "${ECHO_T}$wx_cv_explicit" >&6
23006
23007   if test "$wx_cv_explicit" = "yes"; then
23008     cat >>confdefs.h <<\_ACEOF
23009 #define HAVE_EXPLICIT 1
23010 _ACEOF
23011
23012   fi
23013
23014
23015 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23016 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23017 if test "${ac_cv_cxx_const_cast+set}" = set; then
23018   echo $ECHO_N "(cached) $ECHO_C" >&6
23019 else
23020
23021
23022  ac_ext=cc
23023 ac_cpp='$CXXCPP $CPPFLAGS'
23024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23027
23028  cat >conftest.$ac_ext <<_ACEOF
23029 /* confdefs.h.  */
23030 _ACEOF
23031 cat confdefs.h >>conftest.$ac_ext
23032 cat >>conftest.$ac_ext <<_ACEOF
23033 /* end confdefs.h.  */
23034
23035 int
23036 main ()
23037 {
23038 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23039   ;
23040   return 0;
23041 }
23042 _ACEOF
23043 rm -f conftest.$ac_objext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23045   (eval $ac_compile) 2>conftest.er1
23046   ac_status=$?
23047   grep -v '^ *+' conftest.er1 >conftest.err
23048   rm -f conftest.er1
23049   cat conftest.err >&5
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); } &&
23052          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054   (eval $ac_try) 2>&5
23055   ac_status=$?
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); }; } &&
23058          { ac_try='test -s conftest.$ac_objext'
23059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060   (eval $ac_try) 2>&5
23061   ac_status=$?
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); }; }; then
23064   ac_cv_cxx_const_cast=yes
23065 else
23066   echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069 ac_cv_cxx_const_cast=no
23070 fi
23071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23072  ac_ext=cc
23073 ac_cpp='$CXXCPP $CPPFLAGS'
23074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23077
23078
23079 fi
23080 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23081 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23082 if test "$ac_cv_cxx_const_cast" = yes; then
23083
23084 cat >>confdefs.h <<\_ACEOF
23085 #define HAVE_CONST_CAST
23086 _ACEOF
23087
23088 fi
23089
23090 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23091 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23092 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23093   echo $ECHO_N "(cached) $ECHO_C" >&6
23094 else
23095
23096
23097  ac_ext=cc
23098 ac_cpp='$CXXCPP $CPPFLAGS'
23099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23102
23103  cat >conftest.$ac_ext <<_ACEOF
23104 /* confdefs.h.  */
23105 _ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h.  */
23109 #include <typeinfo>
23110 class Base { public : Base () {} virtual void f () = 0;};
23111 class Derived : public Base { public : Derived () {} virtual void f () {} };
23112 class Unrelated { public : Unrelated () {} };
23113 int g (Unrelated&) { return 0; }
23114 int
23115 main ()
23116 {
23117
23118 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23119   ;
23120   return 0;
23121 }
23122 _ACEOF
23123 rm -f conftest.$ac_objext
23124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23125   (eval $ac_compile) 2>conftest.er1
23126   ac_status=$?
23127   grep -v '^ *+' conftest.er1 >conftest.err
23128   rm -f conftest.er1
23129   cat conftest.err >&5
23130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131   (exit $ac_status); } &&
23132          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134   (eval $ac_try) 2>&5
23135   ac_status=$?
23136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137   (exit $ac_status); }; } &&
23138          { ac_try='test -s conftest.$ac_objext'
23139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140   (eval $ac_try) 2>&5
23141   ac_status=$?
23142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); }; }; then
23144   ac_cv_cxx_reinterpret_cast=yes
23145 else
23146   echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23148
23149 ac_cv_cxx_reinterpret_cast=no
23150 fi
23151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23152  ac_ext=cc
23153 ac_cpp='$CXXCPP $CPPFLAGS'
23154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23157
23158
23159 fi
23160 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23161 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23162 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23163
23164 cat >>confdefs.h <<\_ACEOF
23165 #define HAVE_REINTERPRET_CAST
23166 _ACEOF
23167
23168 fi
23169
23170 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23171 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23172 if test "${ac_cv_cxx_static_cast+set}" = set; then
23173   echo $ECHO_N "(cached) $ECHO_C" >&6
23174 else
23175
23176
23177  ac_ext=cc
23178 ac_cpp='$CXXCPP $CPPFLAGS'
23179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23182
23183  cat >conftest.$ac_ext <<_ACEOF
23184 /* confdefs.h.  */
23185 _ACEOF
23186 cat confdefs.h >>conftest.$ac_ext
23187 cat >>conftest.$ac_ext <<_ACEOF
23188 /* end confdefs.h.  */
23189 #include <typeinfo>
23190 class Base { public : Base () {} virtual void f () = 0; };
23191 class Derived : public Base { public : Derived () {} virtual void f () {} };
23192 int g (Derived&) { return 0; }
23193 int
23194 main ()
23195 {
23196
23197 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23198   ;
23199   return 0;
23200 }
23201 _ACEOF
23202 rm -f conftest.$ac_objext
23203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23204   (eval $ac_compile) 2>conftest.er1
23205   ac_status=$?
23206   grep -v '^ *+' conftest.er1 >conftest.err
23207   rm -f conftest.er1
23208   cat conftest.err >&5
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); } &&
23211          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213   (eval $ac_try) 2>&5
23214   ac_status=$?
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); }; } &&
23217          { ac_try='test -s conftest.$ac_objext'
23218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23219   (eval $ac_try) 2>&5
23220   ac_status=$?
23221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222   (exit $ac_status); }; }; then
23223   ac_cv_cxx_static_cast=yes
23224 else
23225   echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23227
23228 ac_cv_cxx_static_cast=no
23229 fi
23230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23231  ac_ext=cc
23232 ac_cpp='$CXXCPP $CPPFLAGS'
23233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23236
23237
23238 fi
23239 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23240 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23241 if test "$ac_cv_cxx_static_cast" = yes; then
23242
23243 cat >>confdefs.h <<\_ACEOF
23244 #define HAVE_STATIC_CAST
23245 _ACEOF
23246
23247 fi
23248
23249
23250 if test "x$SUNCXX" = xyes; then
23251     CXXFLAGS="-features=tmplife $CXXFLAGS"
23252 fi
23253
23254 if test "x$SUNCC" = xyes; then
23255     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
23256 fi
23257
23258 if test "x$SGICC" = "xyes"; then
23259     CFLAGS="-woff 3970 $CFLAGS"
23260 fi
23261 if test "x$SGICXX" = "xyes"; then
23262     CXXFLAGS="-woff 3970 $CXXFLAGS"
23263 fi
23264
23265 if test "x$HPCC" = "xyes"; then
23266                     CFLAGS="+W 2011,2450 $CFLAGS"
23267 fi
23268 if test "x$HPCXX" = "xyes"; then
23269             CXXFLAGS="+W 2340 $CXXFLAGS"
23270 fi
23271
23272 if test "x$COMPAQCXX" = "xyes"; then
23273                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23274 fi
23275
23276 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
23277     if test "$wxUSE_UNICODE" = "yes"; then
23278         std_string="std::wstring"
23279         char_type="wchar_t"
23280     else
23281         std_string="std::string"
23282         char_type="char"
23283     fi
23284
23285         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23286 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
23287     cat >conftest.$ac_ext <<_ACEOF
23288 /* confdefs.h.  */
23289 _ACEOF
23290 cat confdefs.h >>conftest.$ac_ext
23291 cat >>conftest.$ac_ext <<_ACEOF
23292 /* end confdefs.h.  */
23293 #include <string>
23294 int
23295 main ()
23296 {
23297 $std_string foo;
23298   ;
23299   return 0;
23300 }
23301 _ACEOF
23302 rm -f conftest.$ac_objext
23303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23304   (eval $ac_compile) 2>conftest.er1
23305   ac_status=$?
23306   grep -v '^ *+' conftest.er1 >conftest.err
23307   rm -f conftest.er1
23308   cat conftest.err >&5
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); } &&
23311          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313   (eval $ac_try) 2>&5
23314   ac_status=$?
23315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316   (exit $ac_status); }; } &&
23317          { ac_try='test -s conftest.$ac_objext'
23318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23319   (eval $ac_try) 2>&5
23320   ac_status=$?
23321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322   (exit $ac_status); }; }; then
23323   echo "$as_me:$LINENO: result: yes" >&5
23324 echo "${ECHO_T}yes" >&6
23325                     cat >>confdefs.h <<\_ACEOF
23326 #define HAVE_STD_WSTRING 1
23327 _ACEOF
23328
23329 else
23330   echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333 echo "$as_me:$LINENO: result: no" >&5
23334 echo "${ECHO_T}no" >&6
23335                     echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23336 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
23337                     cat >conftest.$ac_ext <<_ACEOF
23338 /* confdefs.h.  */
23339 _ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h.  */
23343
23344                         #ifdef HAVE_WCHAR_H
23345                         #  ifdef __CYGWIN__
23346                         #    include <stddef.h>
23347                         #  endif
23348                         #  include <wchar.h>
23349                         #endif
23350                         #ifdef HAVE_STDLIB_H
23351                         #  include <stdlib.h>
23352                         #endif
23353                         #include <stdio.h>
23354                         #include <string>
23355
23356 int
23357 main ()
23358 {
23359 std::basic_string<$char_type> foo;
23360                          const $char_type* dummy = foo.c_str();
23361   ;
23362   return 0;
23363 }
23364 _ACEOF
23365 rm -f conftest.$ac_objext
23366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23367   (eval $ac_compile) 2>conftest.er1
23368   ac_status=$?
23369   grep -v '^ *+' conftest.er1 >conftest.err
23370   rm -f conftest.er1
23371   cat conftest.err >&5
23372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373   (exit $ac_status); } &&
23374          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23376   (eval $ac_try) 2>&5
23377   ac_status=$?
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); }; } &&
23380          { ac_try='test -s conftest.$ac_objext'
23381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23382   (eval $ac_try) 2>&5
23383   ac_status=$?
23384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385   (exit $ac_status); }; }; then
23386   echo "$as_me:$LINENO: result: yes" >&5
23387 echo "${ECHO_T}yes" >&6
23388 else
23389   echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23391
23392 echo "$as_me:$LINENO: result: no" >&5
23393 echo "${ECHO_T}no" >&6
23394                          if test "$wxUSE_STL" = "yes"; then
23395                              { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23396 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23397    { (exit 1); exit 1; }; }
23398                          elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23399                              { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23400 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23401    { (exit 1); exit 1; }; }
23402                          else
23403                              { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23404 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23405                              wxUSE_STD_STRING=no
23406                          fi
23407
23408
23409 fi
23410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23411
23412 fi
23413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23414 fi
23415
23416 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23417     echo "$as_me:$LINENO: checking for std::istream" >&5
23418 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23419 if test "${ac_cv_type_std__istream+set}" = set; then
23420   echo $ECHO_N "(cached) $ECHO_C" >&6
23421 else
23422   cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h.  */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h.  */
23428 #include <iostream>
23429
23430 int
23431 main ()
23432 {
23433 if ((std::istream *) 0)
23434   return 0;
23435 if (sizeof (std::istream))
23436   return 0;
23437   ;
23438   return 0;
23439 }
23440 _ACEOF
23441 rm -f conftest.$ac_objext
23442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23443   (eval $ac_compile) 2>conftest.er1
23444   ac_status=$?
23445   grep -v '^ *+' conftest.er1 >conftest.err
23446   rm -f conftest.er1
23447   cat conftest.err >&5
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); } &&
23450          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452   (eval $ac_try) 2>&5
23453   ac_status=$?
23454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455   (exit $ac_status); }; } &&
23456          { ac_try='test -s conftest.$ac_objext'
23457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458   (eval $ac_try) 2>&5
23459   ac_status=$?
23460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); }; }; then
23462   ac_cv_type_std__istream=yes
23463 else
23464   echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23466
23467 ac_cv_type_std__istream=no
23468 fi
23469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23470 fi
23471 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23472 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23473 if test $ac_cv_type_std__istream = yes; then
23474
23475 cat >>confdefs.h <<_ACEOF
23476 #define HAVE_STD__ISTREAM 1
23477 _ACEOF
23478
23479
23480 else
23481   wxUSE_STD_IOSTREAM=no
23482 fi
23483 echo "$as_me:$LINENO: checking for std::ostream" >&5
23484 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23485 if test "${ac_cv_type_std__ostream+set}" = set; then
23486   echo $ECHO_N "(cached) $ECHO_C" >&6
23487 else
23488   cat >conftest.$ac_ext <<_ACEOF
23489 /* confdefs.h.  */
23490 _ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h.  */
23494 #include <iostream>
23495
23496 int
23497 main ()
23498 {
23499 if ((std::ostream *) 0)
23500   return 0;
23501 if (sizeof (std::ostream))
23502   return 0;
23503   ;
23504   return 0;
23505 }
23506 _ACEOF
23507 rm -f conftest.$ac_objext
23508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23509   (eval $ac_compile) 2>conftest.er1
23510   ac_status=$?
23511   grep -v '^ *+' conftest.er1 >conftest.err
23512   rm -f conftest.er1
23513   cat conftest.err >&5
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); } &&
23516          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518   (eval $ac_try) 2>&5
23519   ac_status=$?
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); }; } &&
23522          { ac_try='test -s conftest.$ac_objext'
23523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524   (eval $ac_try) 2>&5
23525   ac_status=$?
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); }; }; then
23528   ac_cv_type_std__ostream=yes
23529 else
23530   echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533 ac_cv_type_std__ostream=no
23534 fi
23535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23536 fi
23537 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23538 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23539 if test $ac_cv_type_std__ostream = yes; then
23540
23541 cat >>confdefs.h <<_ACEOF
23542 #define HAVE_STD__OSTREAM 1
23543 _ACEOF
23544
23545
23546 else
23547   wxUSE_STD_IOSTREAM=no
23548 fi
23549
23550
23551     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
23552         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23553             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23554 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23555    { (exit 1); exit 1; }; }
23556         else
23557             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
23558 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
23559         fi
23560     fi
23561 fi
23562
23563 if test "$wxUSE_STL" = "yes"; then
23564         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23565 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
23566     cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h.  */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h.  */
23572 #include <string>
23573                     #include <functional>
23574                     #include <algorithm>
23575                     #include <vector>
23576                     #include <list>
23577 int
23578 main ()
23579 {
23580 std::vector<int> moo;
23581                      std::list<int> foo;
23582                      std::vector<int>::iterator it =
23583                          std::find_if(moo.begin(), moo.end(),
23584                                       std::bind2nd(std::less<int>(), 3));
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 rm -f conftest.$ac_objext
23590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23591   (eval $ac_compile) 2>conftest.er1
23592   ac_status=$?
23593   grep -v '^ *+' conftest.er1 >conftest.err
23594   rm -f conftest.er1
23595   cat conftest.err >&5
23596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); } &&
23598          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600   (eval $ac_try) 2>&5
23601   ac_status=$?
23602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603   (exit $ac_status); }; } &&
23604          { ac_try='test -s conftest.$ac_objext'
23605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606   (eval $ac_try) 2>&5
23607   ac_status=$?
23608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609   (exit $ac_status); }; }; then
23610   echo "$as_me:$LINENO: result: yes" >&5
23611 echo "${ECHO_T}yes" >&6
23612 else
23613   echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23615
23616 echo "$as_me:$LINENO: result: no" >&5
23617 echo "${ECHO_T}no" >&6
23618                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23619 echo "$as_me: error: Basic STL functionality missing" >&2;}
23620    { (exit 1); exit 1; }; }
23621 fi
23622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23623
23624         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23625 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23626     cat >conftest.$ac_ext <<_ACEOF
23627 /* confdefs.h.  */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h.  */
23632 #include <string>
23633 int
23634 main ()
23635 {
23636 std::string foo, bar;
23637                     foo.compare(bar);
23638                     foo.compare(1, 1, bar);
23639                     foo.compare(1, 1, bar, 1, 1);
23640                     foo.compare("");
23641                     foo.compare(1, 1, "");
23642                     foo.compare(1, 1, "", 2);
23643   ;
23644   return 0;
23645 }
23646 _ACEOF
23647 rm -f conftest.$ac_objext
23648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23649   (eval $ac_compile) 2>conftest.er1
23650   ac_status=$?
23651   grep -v '^ *+' conftest.er1 >conftest.err
23652   rm -f conftest.er1
23653   cat conftest.err >&5
23654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655   (exit $ac_status); } &&
23656          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658   (eval $ac_try) 2>&5
23659   ac_status=$?
23660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661   (exit $ac_status); }; } &&
23662          { ac_try='test -s conftest.$ac_objext'
23663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23664   (eval $ac_try) 2>&5
23665   ac_status=$?
23666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667   (exit $ac_status); }; }; then
23668   echo "$as_me:$LINENO: result: yes" >&5
23669 echo "${ECHO_T}yes" >&6
23670                     cat >>confdefs.h <<\_ACEOF
23671 #define HAVE_STD_STRING_COMPARE 1
23672 _ACEOF
23673
23674 else
23675   echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677
23678 echo "$as_me:$LINENO: result: no" >&5
23679 echo "${ECHO_T}no" >&6
23680 fi
23681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23682
23683         if test "${ac_cv_header_hash_map+set}" = set; then
23684   echo "$as_me:$LINENO: checking for hash_map" >&5
23685 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23686 if test "${ac_cv_header_hash_map+set}" = set; then
23687   echo $ECHO_N "(cached) $ECHO_C" >&6
23688 fi
23689 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23690 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23691 else
23692   # Is the header compilable?
23693 echo "$as_me:$LINENO: checking hash_map usability" >&5
23694 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23695 cat >conftest.$ac_ext <<_ACEOF
23696 /* confdefs.h.  */
23697 _ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h.  */
23701 $ac_includes_default
23702 #include <hash_map>
23703 _ACEOF
23704 rm -f conftest.$ac_objext
23705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23706   (eval $ac_compile) 2>conftest.er1
23707   ac_status=$?
23708   grep -v '^ *+' conftest.er1 >conftest.err
23709   rm -f conftest.er1
23710   cat conftest.err >&5
23711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712   (exit $ac_status); } &&
23713          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715   (eval $ac_try) 2>&5
23716   ac_status=$?
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); }; } &&
23719          { ac_try='test -s conftest.$ac_objext'
23720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721   (eval $ac_try) 2>&5
23722   ac_status=$?
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); }; }; then
23725   ac_header_compiler=yes
23726 else
23727   echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23729
23730 ac_header_compiler=no
23731 fi
23732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23734 echo "${ECHO_T}$ac_header_compiler" >&6
23735
23736 # Is the header present?
23737 echo "$as_me:$LINENO: checking hash_map presence" >&5
23738 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23739 cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h.  */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h.  */
23745 #include <hash_map>
23746 _ACEOF
23747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23748   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23749   ac_status=$?
23750   grep -v '^ *+' conftest.er1 >conftest.err
23751   rm -f conftest.er1
23752   cat conftest.err >&5
23753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754   (exit $ac_status); } >/dev/null; then
23755   if test -s conftest.err; then
23756     ac_cpp_err=$ac_cxx_preproc_warn_flag
23757     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23758   else
23759     ac_cpp_err=
23760   fi
23761 else
23762   ac_cpp_err=yes
23763 fi
23764 if test -z "$ac_cpp_err"; then
23765   ac_header_preproc=yes
23766 else
23767   echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23769
23770   ac_header_preproc=no
23771 fi
23772 rm -f conftest.err conftest.$ac_ext
23773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23774 echo "${ECHO_T}$ac_header_preproc" >&6
23775
23776 # So?  What about this header?
23777 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23778   yes:no: )
23779     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23780 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23781     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23782 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23783     ac_header_preproc=yes
23784     ;;
23785   no:yes:* )
23786     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23787 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
23788     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
23789 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
23790     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23791 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23792     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23793 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23794     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23795 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
23796     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23797 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
23798     (
23799       cat <<\_ASBOX
23800 ## ----------------------------------------- ##
23801 ## Report this to wx-dev@lists.wxwidgets.org ##
23802 ## ----------------------------------------- ##
23803 _ASBOX
23804     ) |
23805       sed "s/^/$as_me: WARNING:     /" >&2
23806     ;;
23807 esac
23808 echo "$as_me:$LINENO: checking for hash_map" >&5
23809 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23810 if test "${ac_cv_header_hash_map+set}" = set; then
23811   echo $ECHO_N "(cached) $ECHO_C" >&6
23812 else
23813   ac_cv_header_hash_map=$ac_header_preproc
23814 fi
23815 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23816 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23817
23818 fi
23819 if test $ac_cv_header_hash_map = yes; then
23820   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23821 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23822                      cat >conftest.$ac_ext <<_ACEOF
23823 /* confdefs.h.  */
23824 _ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h.  */
23828 #include <hash_map>
23829                                      #include <hash_set>
23830 int
23831 main ()
23832 {
23833 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23834                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23835   ;
23836   return 0;
23837 }
23838 _ACEOF
23839 rm -f conftest.$ac_objext
23840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23841   (eval $ac_compile) 2>conftest.er1
23842   ac_status=$?
23843   grep -v '^ *+' conftest.er1 >conftest.err
23844   rm -f conftest.er1
23845   cat conftest.err >&5
23846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847   (exit $ac_status); } &&
23848          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850   (eval $ac_try) 2>&5
23851   ac_status=$?
23852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853   (exit $ac_status); }; } &&
23854          { ac_try='test -s conftest.$ac_objext'
23855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23856   (eval $ac_try) 2>&5
23857   ac_status=$?
23858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859   (exit $ac_status); }; }; then
23860   echo "$as_me:$LINENO: result: yes" >&5
23861 echo "${ECHO_T}yes" >&6
23862                                      cat >>confdefs.h <<\_ACEOF
23863 #define HAVE_HASH_MAP 1
23864 _ACEOF
23865
23866                                      cat >>confdefs.h <<\_ACEOF
23867 #define HAVE_STD_HASH_MAP 1
23868 _ACEOF
23869
23870 else
23871   echo "$as_me: failed program was:" >&5
23872 sed 's/^/| /' conftest.$ac_ext >&5
23873
23874 echo "$as_me:$LINENO: result: no" >&5
23875 echo "${ECHO_T}no" >&6
23876 fi
23877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23878
23879 fi
23880
23881
23882
23883     if test "${ac_cv_header_ext_hash_map+set}" = set; then
23884   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23885 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23886 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23887   echo $ECHO_N "(cached) $ECHO_C" >&6
23888 fi
23889 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23890 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23891 else
23892   # Is the header compilable?
23893 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23894 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23895 cat >conftest.$ac_ext <<_ACEOF
23896 /* confdefs.h.  */
23897 _ACEOF
23898 cat confdefs.h >>conftest.$ac_ext
23899 cat >>conftest.$ac_ext <<_ACEOF
23900 /* end confdefs.h.  */
23901 $ac_includes_default
23902 #include <ext/hash_map>
23903 _ACEOF
23904 rm -f conftest.$ac_objext
23905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23906   (eval $ac_compile) 2>conftest.er1
23907   ac_status=$?
23908   grep -v '^ *+' conftest.er1 >conftest.err
23909   rm -f conftest.er1
23910   cat conftest.err >&5
23911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); } &&
23913          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915   (eval $ac_try) 2>&5
23916   ac_status=$?
23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); }; } &&
23919          { ac_try='test -s conftest.$ac_objext'
23920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921   (eval $ac_try) 2>&5
23922   ac_status=$?
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); }; }; then
23925   ac_header_compiler=yes
23926 else
23927   echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23929
23930 ac_header_compiler=no
23931 fi
23932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23934 echo "${ECHO_T}$ac_header_compiler" >&6
23935
23936 # Is the header present?
23937 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23938 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23939 cat >conftest.$ac_ext <<_ACEOF
23940 /* confdefs.h.  */
23941 _ACEOF
23942 cat confdefs.h >>conftest.$ac_ext
23943 cat >>conftest.$ac_ext <<_ACEOF
23944 /* end confdefs.h.  */
23945 #include <ext/hash_map>
23946 _ACEOF
23947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23949   ac_status=$?
23950   grep -v '^ *+' conftest.er1 >conftest.err
23951   rm -f conftest.er1
23952   cat conftest.err >&5
23953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954   (exit $ac_status); } >/dev/null; then
23955   if test -s conftest.err; then
23956     ac_cpp_err=$ac_cxx_preproc_warn_flag
23957     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23958   else
23959     ac_cpp_err=
23960   fi
23961 else
23962   ac_cpp_err=yes
23963 fi
23964 if test -z "$ac_cpp_err"; then
23965   ac_header_preproc=yes
23966 else
23967   echo "$as_me: failed program was:" >&5
23968 sed 's/^/| /' conftest.$ac_ext >&5
23969
23970   ac_header_preproc=no
23971 fi
23972 rm -f conftest.err conftest.$ac_ext
23973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23974 echo "${ECHO_T}$ac_header_preproc" >&6
23975
23976 # So?  What about this header?
23977 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23978   yes:no: )
23979     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23980 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23981     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23982 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23983     ac_header_preproc=yes
23984     ;;
23985   no:yes:* )
23986     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23987 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
23988     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
23989 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
23990     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23991 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23992     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23993 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23994     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23995 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
23996     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23997 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
23998     (
23999       cat <<\_ASBOX
24000 ## ----------------------------------------- ##
24001 ## Report this to wx-dev@lists.wxwidgets.org ##
24002 ## ----------------------------------------- ##
24003 _ASBOX
24004     ) |
24005       sed "s/^/$as_me: WARNING:     /" >&2
24006     ;;
24007 esac
24008 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24009 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24010 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24011   echo $ECHO_N "(cached) $ECHO_C" >&6
24012 else
24013   ac_cv_header_ext_hash_map=$ac_header_preproc
24014 fi
24015 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24016 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24017
24018 fi
24019 if test $ac_cv_header_ext_hash_map = yes; then
24020   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24021 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24022                      cat >conftest.$ac_ext <<_ACEOF
24023 /* confdefs.h.  */
24024 _ACEOF
24025 cat confdefs.h >>conftest.$ac_ext
24026 cat >>conftest.$ac_ext <<_ACEOF
24027 /* end confdefs.h.  */
24028 #include <ext/hash_map>
24029                                      #include <ext/hash_set>
24030 int
24031 main ()
24032 {
24033 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24034                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24035   ;
24036   return 0;
24037 }
24038 _ACEOF
24039 rm -f conftest.$ac_objext
24040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24041   (eval $ac_compile) 2>conftest.er1
24042   ac_status=$?
24043   grep -v '^ *+' conftest.er1 >conftest.err
24044   rm -f conftest.er1
24045   cat conftest.err >&5
24046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); } &&
24048          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050   (eval $ac_try) 2>&5
24051   ac_status=$?
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); }; } &&
24054          { ac_try='test -s conftest.$ac_objext'
24055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056   (eval $ac_try) 2>&5
24057   ac_status=$?
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); }; }; then
24060   echo "$as_me:$LINENO: result: yes" >&5
24061 echo "${ECHO_T}yes" >&6
24062                                      cat >>confdefs.h <<\_ACEOF
24063 #define HAVE_EXT_HASH_MAP 1
24064 _ACEOF
24065
24066                                      cat >>confdefs.h <<\_ACEOF
24067 #define HAVE_GNU_CXX_HASH_MAP 1
24068 _ACEOF
24069
24070 else
24071   echo "$as_me: failed program was:" >&5
24072 sed 's/^/| /' conftest.$ac_ext >&5
24073
24074 echo "$as_me:$LINENO: result: no" >&5
24075 echo "${ECHO_T}no" >&6
24076 fi
24077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24078
24079 fi
24080
24081
24082 fi
24083
24084
24085 SEARCH_INCLUDE="\
24086     /usr/local/include        \
24087                               \
24088     /usr/Motif-2.1/include    \
24089     /usr/Motif-1.2/include    \
24090     /usr/include/Motif1.2     \
24091                               \
24092     /usr/dt/include           \
24093     /usr/openwin/include      \
24094                               \
24095     /usr/include/Xm           \
24096                               \
24097     /usr/X11R6/include        \
24098     /usr/X11R6.4/include      \
24099     /usr/X11R5/include        \
24100     /usr/X11R4/include        \
24101                               \
24102     /usr/include/X11R6        \
24103     /usr/include/X11R5        \
24104     /usr/include/X11R4        \
24105                               \
24106     /usr/local/X11R6/include  \
24107     /usr/local/X11R5/include  \
24108     /usr/local/X11R4/include  \
24109                               \
24110     /usr/local/include/X11R6  \
24111     /usr/local/include/X11R5  \
24112     /usr/local/include/X11R4  \
24113                               \
24114     /usr/X11/include          \
24115     /usr/include/X11          \
24116     /usr/local/X11/include    \
24117     /usr/local/include/X11    \
24118                               \
24119     /usr/XFree86/include/X11  \
24120     /usr/pkg/include          \
24121                               \
24122     /usr/openwin/share/include"
24123
24124 echo "$as_me:$LINENO: checking for libraries directory" >&5
24125 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
24126
24127 case "${host}" in
24128     *-*-irix6* )
24129         if test "${wx_cv_std_libpath+set}" = set; then
24130   echo $ECHO_N "(cached) $ECHO_C" >&6
24131 else
24132
24133                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24134                     for e in a so sl dylib dll.a; do
24135                         libc="$d/libc.$e"
24136                         if test -f $libc; then
24137                             save_LIBS="$LIBS"
24138                             LIBS="$libc"
24139                             cat >conftest.$ac_ext <<_ACEOF
24140 int main() { return 0; }
24141 _ACEOF
24142 rm -f conftest.$ac_objext conftest$ac_exeext
24143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24144   (eval $ac_link) 2>conftest.er1
24145   ac_status=$?
24146   grep -v '^ *+' conftest.er1 >conftest.err
24147   rm -f conftest.er1
24148   cat conftest.err >&5
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); } &&
24151          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153   (eval $ac_try) 2>&5
24154   ac_status=$?
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); }; } &&
24157          { ac_try='test -s conftest$ac_exeext'
24158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159   (eval $ac_try) 2>&5
24160   ac_status=$?
24161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); }; }; then
24163   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24164 else
24165   echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168 fi
24169 rm -f conftest.err conftest.$ac_objext \
24170       conftest$ac_exeext conftest.$ac_ext
24171                             LIBS="$save_LIBS"
24172                             if test "x$wx_cv_std_libpath" != "x"; then
24173                                 break 2
24174                             fi
24175                         fi
24176                     done
24177                 done
24178                 if test "x$wx_cv_std_libpath" = "x"; then
24179                     wx_cv_std_libpath="lib"
24180                 fi
24181
24182
24183 fi
24184
24185         ;;
24186
24187     *-*-solaris2* )
24188                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24189             wx_cv_std_libpath="lib/64"
24190         else
24191             wx_cv_std_libpath="lib"
24192         fi
24193         ;;
24194
24195     *-*-linux* )
24196                 if test "$ac_cv_sizeof_void_p" = 8 -a \
24197                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24198             wx_cv_std_libpath="lib64"
24199         else
24200             wx_cv_std_libpath="lib"
24201         fi
24202         ;;
24203
24204     *)
24205         wx_cv_std_libpath="lib";
24206         ;;
24207 esac
24208
24209 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24210 echo "${ECHO_T}$wx_cv_std_libpath" >&6
24211
24212 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
24213
24214 if test "$build" != "$host" -a "$GCC" = yes; then
24215                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24216         cross_root=`dirname $cross_root`
24217         cross_root=`dirname $cross_root`
24218
24219                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24220         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24221         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
24222
24223                 if test -z "$PKG_CONFIG_PATH"; then
24224             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24225             export PKG_CONFIG_PATH
24226         fi
24227
24228                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
24229
24230 ac_find_includes=
24231 for ac_dir in $SEARCH_INCLUDE /usr/include;
24232   do
24233     if test -f "$ac_dir/X11/Intrinsic.h"; then
24234       ac_find_includes=$ac_dir
24235       break
24236     fi
24237   done
24238
24239             x_includes=$ac_find_includes
24240         fi
24241         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24242
24243   ac_find_libraries=
24244   for ac_dir in $SEARCH_LIB;
24245   do
24246     for ac_extension in a so sl dylib dll.a; do
24247       if test -f "$ac_dir/libXt.$ac_extension"; then
24248         ac_find_libraries=$ac_dir
24249         break 2
24250       fi
24251     done
24252   done
24253
24254             x_libraries=$ac_find_libraries
24255         fi
24256     fi
24257 fi
24258
24259
24260 cat >confcache <<\_ACEOF
24261 # This file is a shell script that caches the results of configure
24262 # tests run on this system so they can be shared between configure
24263 # scripts and configure runs, see configure's option --config-cache.
24264 # It is not useful on other systems.  If it contains results you don't
24265 # want to keep, you may remove or edit it.
24266 #
24267 # config.status only pays attention to the cache file if you give it
24268 # the --recheck option to rerun configure.
24269 #
24270 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24271 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24272 # following values.
24273
24274 _ACEOF
24275
24276 # The following way of writing the cache mishandles newlines in values,
24277 # but we know of no workaround that is simple, portable, and efficient.
24278 # So, don't put newlines in cache variables' values.
24279 # Ultrix sh set writes to stderr and can't be redirected directly,
24280 # and sets the high bit in the cache file unless we assign to the vars.
24281 {
24282   (set) 2>&1 |
24283     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24284     *ac_space=\ *)
24285       # `set' does not quote correctly, so add quotes (double-quote
24286       # substitution turns \\\\ into \\, and sed turns \\ into \).
24287       sed -n \
24288         "s/'/'\\\\''/g;
24289           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24290       ;;
24291     *)
24292       # `set' quotes correctly as required by POSIX, so do not add quotes.
24293       sed -n \
24294         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24295       ;;
24296     esac;
24297 } |
24298   sed '
24299      t clear
24300      : clear
24301      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24302      t end
24303      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24304      : end' >>confcache
24305 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24306   if test -w $cache_file; then
24307     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24308     cat confcache >$cache_file
24309   else
24310     echo "not updating unwritable cache $cache_file"
24311   fi
24312 fi
24313 rm -f confcache
24314
24315 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24316     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24317 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24318 if test "${wx_cv_lib_glibc21+set}" = set; then
24319   echo $ECHO_N "(cached) $ECHO_C" >&6
24320 else
24321
24322         cat >conftest.$ac_ext <<_ACEOF
24323 /* confdefs.h.  */
24324 _ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h.  */
24328 #include <features.h>
24329 int
24330 main ()
24331 {
24332
24333                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
24334                 not glibc 2.1
24335                 #endif
24336
24337   ;
24338   return 0;
24339 }
24340 _ACEOF
24341 rm -f conftest.$ac_objext
24342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24343   (eval $ac_compile) 2>conftest.er1
24344   ac_status=$?
24345   grep -v '^ *+' conftest.er1 >conftest.err
24346   rm -f conftest.er1
24347   cat conftest.err >&5
24348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349   (exit $ac_status); } &&
24350          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24352   (eval $ac_try) 2>&5
24353   ac_status=$?
24354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355   (exit $ac_status); }; } &&
24356          { ac_try='test -s conftest.$ac_objext'
24357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24358   (eval $ac_try) 2>&5
24359   ac_status=$?
24360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361   (exit $ac_status); }; }; then
24362
24363                 wx_cv_lib_glibc21=yes
24364
24365 else
24366   echo "$as_me: failed program was:" >&5
24367 sed 's/^/| /' conftest.$ac_ext >&5
24368
24369
24370                 wx_cv_lib_glibc21=no
24371
24372
24373 fi
24374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24375
24376 fi
24377 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24378 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24379     if test "$wx_cv_lib_glibc21" = "yes"; then
24380         cat >>confdefs.h <<\_ACEOF
24381 #define wxHAVE_GLIBC2 1
24382 _ACEOF
24383
24384     fi
24385 fi
24386
24387 if test "x$wx_cv_lib_glibc21" = "xyes"; then
24388     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24389         cat >>confdefs.h <<\_ACEOF
24390 #define _GNU_SOURCE 1
24391 _ACEOF
24392
24393     fi
24394 fi
24395
24396 have_cos=0
24397 have_floor=0
24398
24399 for ac_func in cos
24400 do
24401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24402 echo "$as_me:$LINENO: checking for $ac_func" >&5
24403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24404 if eval "test \"\${$as_ac_var+set}\" = set"; then
24405   echo $ECHO_N "(cached) $ECHO_C" >&6
24406 else
24407   cat >conftest.$ac_ext <<_ACEOF
24408 /* confdefs.h.  */
24409 _ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h.  */
24413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24415 #define $ac_func innocuous_$ac_func
24416
24417 /* System header to define __stub macros and hopefully few prototypes,
24418     which can conflict with char $ac_func (); below.
24419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24420     <limits.h> exists even on freestanding compilers.  */
24421
24422 #ifdef __STDC__
24423 # include <limits.h>
24424 #else
24425 # include <assert.h>
24426 #endif
24427
24428 #undef $ac_func
24429
24430 /* Override any gcc2 internal prototype to avoid an error.  */
24431 #ifdef __cplusplus
24432 extern "C"
24433 {
24434 #endif
24435 /* We use char because int might match the return type of a gcc2
24436    builtin and then its argument prototype would still apply.  */
24437 char $ac_func ();
24438 /* The GNU C library defines this for functions which it implements
24439     to always fail with ENOSYS.  Some functions are actually named
24440     something starting with __ and the normal name is an alias.  */
24441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24442 choke me
24443 #else
24444 char (*f) () = $ac_func;
24445 #endif
24446 #ifdef __cplusplus
24447 }
24448 #endif
24449
24450 int
24451 main ()
24452 {
24453 return f != $ac_func;
24454   ;
24455   return 0;
24456 }
24457 _ACEOF
24458 rm -f conftest.$ac_objext conftest$ac_exeext
24459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24460   (eval $ac_link) 2>conftest.er1
24461   ac_status=$?
24462   grep -v '^ *+' conftest.er1 >conftest.err
24463   rm -f conftest.er1
24464   cat conftest.err >&5
24465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466   (exit $ac_status); } &&
24467          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24469   (eval $ac_try) 2>&5
24470   ac_status=$?
24471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472   (exit $ac_status); }; } &&
24473          { ac_try='test -s conftest$ac_exeext'
24474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24475   (eval $ac_try) 2>&5
24476   ac_status=$?
24477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478   (exit $ac_status); }; }; then
24479   eval "$as_ac_var=yes"
24480 else
24481   echo "$as_me: failed program was:" >&5
24482 sed 's/^/| /' conftest.$ac_ext >&5
24483
24484 eval "$as_ac_var=no"
24485 fi
24486 rm -f conftest.err conftest.$ac_objext \
24487       conftest$ac_exeext conftest.$ac_ext
24488 fi
24489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24491 if test `eval echo '${'$as_ac_var'}'` = yes; then
24492   cat >>confdefs.h <<_ACEOF
24493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24494 _ACEOF
24495  have_cos=1
24496 fi
24497 done
24498
24499
24500 for ac_func in floor
24501 do
24502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24503 echo "$as_me:$LINENO: checking for $ac_func" >&5
24504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24505 if eval "test \"\${$as_ac_var+set}\" = set"; then
24506   echo $ECHO_N "(cached) $ECHO_C" >&6
24507 else
24508   cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h.  */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h.  */
24514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24516 #define $ac_func innocuous_$ac_func
24517
24518 /* System header to define __stub macros and hopefully few prototypes,
24519     which can conflict with char $ac_func (); below.
24520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24521     <limits.h> exists even on freestanding compilers.  */
24522
24523 #ifdef __STDC__
24524 # include <limits.h>
24525 #else
24526 # include <assert.h>
24527 #endif
24528
24529 #undef $ac_func
24530
24531 /* Override any gcc2 internal prototype to avoid an error.  */
24532 #ifdef __cplusplus
24533 extern "C"
24534 {
24535 #endif
24536 /* We use char because int might match the return type of a gcc2
24537    builtin and then its argument prototype would still apply.  */
24538 char $ac_func ();
24539 /* The GNU C library defines this for functions which it implements
24540     to always fail with ENOSYS.  Some functions are actually named
24541     something starting with __ and the normal name is an alias.  */
24542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24543 choke me
24544 #else
24545 char (*f) () = $ac_func;
24546 #endif
24547 #ifdef __cplusplus
24548 }
24549 #endif
24550
24551 int
24552 main ()
24553 {
24554 return f != $ac_func;
24555   ;
24556   return 0;
24557 }
24558 _ACEOF
24559 rm -f conftest.$ac_objext conftest$ac_exeext
24560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24561   (eval $ac_link) 2>conftest.er1
24562   ac_status=$?
24563   grep -v '^ *+' conftest.er1 >conftest.err
24564   rm -f conftest.er1
24565   cat conftest.err >&5
24566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567   (exit $ac_status); } &&
24568          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570   (eval $ac_try) 2>&5
24571   ac_status=$?
24572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573   (exit $ac_status); }; } &&
24574          { ac_try='test -s conftest$ac_exeext'
24575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24576   (eval $ac_try) 2>&5
24577   ac_status=$?
24578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579   (exit $ac_status); }; }; then
24580   eval "$as_ac_var=yes"
24581 else
24582   echo "$as_me: failed program was:" >&5
24583 sed 's/^/| /' conftest.$ac_ext >&5
24584
24585 eval "$as_ac_var=no"
24586 fi
24587 rm -f conftest.err conftest.$ac_objext \
24588       conftest$ac_exeext conftest.$ac_ext
24589 fi
24590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24592 if test `eval echo '${'$as_ac_var'}'` = yes; then
24593   cat >>confdefs.h <<_ACEOF
24594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24595 _ACEOF
24596  have_floor=1
24597 fi
24598 done
24599
24600 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24601 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24602 if test "$have_cos" = 1 -a "$have_floor" = 1; then
24603     echo "$as_me:$LINENO: result: yes" >&5
24604 echo "${ECHO_T}yes" >&6
24605 else
24606     echo "$as_me:$LINENO: result: no" >&5
24607 echo "${ECHO_T}no" >&6
24608     LIBS="$LIBS -lm"
24609     # use different functions to avoid configure caching
24610     have_sin=0
24611     have_ceil=0
24612
24613 for ac_func in sin
24614 do
24615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24616 echo "$as_me:$LINENO: checking for $ac_func" >&5
24617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24618 if eval "test \"\${$as_ac_var+set}\" = set"; then
24619   echo $ECHO_N "(cached) $ECHO_C" >&6
24620 else
24621   cat >conftest.$ac_ext <<_ACEOF
24622 /* confdefs.h.  */
24623 _ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h.  */
24627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24629 #define $ac_func innocuous_$ac_func
24630
24631 /* System header to define __stub macros and hopefully few prototypes,
24632     which can conflict with char $ac_func (); below.
24633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24634     <limits.h> exists even on freestanding compilers.  */
24635
24636 #ifdef __STDC__
24637 # include <limits.h>
24638 #else
24639 # include <assert.h>
24640 #endif
24641
24642 #undef $ac_func
24643
24644 /* Override any gcc2 internal prototype to avoid an error.  */
24645 #ifdef __cplusplus
24646 extern "C"
24647 {
24648 #endif
24649 /* We use char because int might match the return type of a gcc2
24650    builtin and then its argument prototype would still apply.  */
24651 char $ac_func ();
24652 /* The GNU C library defines this for functions which it implements
24653     to always fail with ENOSYS.  Some functions are actually named
24654     something starting with __ and the normal name is an alias.  */
24655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24656 choke me
24657 #else
24658 char (*f) () = $ac_func;
24659 #endif
24660 #ifdef __cplusplus
24661 }
24662 #endif
24663
24664 int
24665 main ()
24666 {
24667 return f != $ac_func;
24668   ;
24669   return 0;
24670 }
24671 _ACEOF
24672 rm -f conftest.$ac_objext conftest$ac_exeext
24673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24674   (eval $ac_link) 2>conftest.er1
24675   ac_status=$?
24676   grep -v '^ *+' conftest.er1 >conftest.err
24677   rm -f conftest.er1
24678   cat conftest.err >&5
24679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680   (exit $ac_status); } &&
24681          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683   (eval $ac_try) 2>&5
24684   ac_status=$?
24685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686   (exit $ac_status); }; } &&
24687          { ac_try='test -s conftest$ac_exeext'
24688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689   (eval $ac_try) 2>&5
24690   ac_status=$?
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); }; }; then
24693   eval "$as_ac_var=yes"
24694 else
24695   echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24697
24698 eval "$as_ac_var=no"
24699 fi
24700 rm -f conftest.err conftest.$ac_objext \
24701       conftest$ac_exeext conftest.$ac_ext
24702 fi
24703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24705 if test `eval echo '${'$as_ac_var'}'` = yes; then
24706   cat >>confdefs.h <<_ACEOF
24707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24708 _ACEOF
24709  have_sin=1
24710 fi
24711 done
24712
24713
24714 for ac_func in ceil
24715 do
24716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24717 echo "$as_me:$LINENO: checking for $ac_func" >&5
24718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24719 if eval "test \"\${$as_ac_var+set}\" = set"; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   cat >conftest.$ac_ext <<_ACEOF
24723 /* confdefs.h.  */
24724 _ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h.  */
24728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24730 #define $ac_func innocuous_$ac_func
24731
24732 /* System header to define __stub macros and hopefully few prototypes,
24733     which can conflict with char $ac_func (); below.
24734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24735     <limits.h> exists even on freestanding compilers.  */
24736
24737 #ifdef __STDC__
24738 # include <limits.h>
24739 #else
24740 # include <assert.h>
24741 #endif
24742
24743 #undef $ac_func
24744
24745 /* Override any gcc2 internal prototype to avoid an error.  */
24746 #ifdef __cplusplus
24747 extern "C"
24748 {
24749 #endif
24750 /* We use char because int might match the return type of a gcc2
24751    builtin and then its argument prototype would still apply.  */
24752 char $ac_func ();
24753 /* The GNU C library defines this for functions which it implements
24754     to always fail with ENOSYS.  Some functions are actually named
24755     something starting with __ and the normal name is an alias.  */
24756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24757 choke me
24758 #else
24759 char (*f) () = $ac_func;
24760 #endif
24761 #ifdef __cplusplus
24762 }
24763 #endif
24764
24765 int
24766 main ()
24767 {
24768 return f != $ac_func;
24769   ;
24770   return 0;
24771 }
24772 _ACEOF
24773 rm -f conftest.$ac_objext conftest$ac_exeext
24774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24775   (eval $ac_link) 2>conftest.er1
24776   ac_status=$?
24777   grep -v '^ *+' conftest.er1 >conftest.err
24778   rm -f conftest.er1
24779   cat conftest.err >&5
24780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781   (exit $ac_status); } &&
24782          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24784   (eval $ac_try) 2>&5
24785   ac_status=$?
24786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787   (exit $ac_status); }; } &&
24788          { ac_try='test -s conftest$ac_exeext'
24789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24790   (eval $ac_try) 2>&5
24791   ac_status=$?
24792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793   (exit $ac_status); }; }; then
24794   eval "$as_ac_var=yes"
24795 else
24796   echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24798
24799 eval "$as_ac_var=no"
24800 fi
24801 rm -f conftest.err conftest.$ac_objext \
24802       conftest$ac_exeext conftest.$ac_ext
24803 fi
24804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24806 if test `eval echo '${'$as_ac_var'}'` = yes; then
24807   cat >>confdefs.h <<_ACEOF
24808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24809 _ACEOF
24810  have_ceil=1
24811 fi
24812 done
24813
24814     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24815 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24816     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24817         echo "$as_me:$LINENO: result: yes" >&5
24818 echo "${ECHO_T}yes" >&6
24819     else
24820         echo "$as_me:$LINENO: result: no" >&5
24821 echo "${ECHO_T}no" >&6
24822         # not sure we should warn the user, crash, etc.
24823     fi
24824 fi
24825
24826
24827
24828 if test "$wxUSE_REGEX" != "no"; then
24829     cat >>confdefs.h <<\_ACEOF
24830 #define wxUSE_REGEX 1
24831 _ACEOF
24832
24833
24834     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24835         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24836 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24837         wxUSE_REGEX=builtin
24838     fi
24839
24840     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24841                         if test "${ac_cv_header_regex_h+set}" = set; then
24842   echo "$as_me:$LINENO: checking for regex.h" >&5
24843 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24844 if test "${ac_cv_header_regex_h+set}" = set; then
24845   echo $ECHO_N "(cached) $ECHO_C" >&6
24846 fi
24847 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24848 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24849 else
24850   # Is the header compilable?
24851 echo "$as_me:$LINENO: checking regex.h usability" >&5
24852 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24853 cat >conftest.$ac_ext <<_ACEOF
24854 /* confdefs.h.  */
24855 _ACEOF
24856 cat confdefs.h >>conftest.$ac_ext
24857 cat >>conftest.$ac_ext <<_ACEOF
24858 /* end confdefs.h.  */
24859 $ac_includes_default
24860 #include <regex.h>
24861 _ACEOF
24862 rm -f conftest.$ac_objext
24863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24864   (eval $ac_compile) 2>conftest.er1
24865   ac_status=$?
24866   grep -v '^ *+' conftest.er1 >conftest.err
24867   rm -f conftest.er1
24868   cat conftest.err >&5
24869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870   (exit $ac_status); } &&
24871          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24873   (eval $ac_try) 2>&5
24874   ac_status=$?
24875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876   (exit $ac_status); }; } &&
24877          { ac_try='test -s conftest.$ac_objext'
24878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879   (eval $ac_try) 2>&5
24880   ac_status=$?
24881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882   (exit $ac_status); }; }; then
24883   ac_header_compiler=yes
24884 else
24885   echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24887
24888 ac_header_compiler=no
24889 fi
24890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24892 echo "${ECHO_T}$ac_header_compiler" >&6
24893
24894 # Is the header present?
24895 echo "$as_me:$LINENO: checking regex.h presence" >&5
24896 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24897 cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h.  */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h.  */
24903 #include <regex.h>
24904 _ACEOF
24905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24907   ac_status=$?
24908   grep -v '^ *+' conftest.er1 >conftest.err
24909   rm -f conftest.er1
24910   cat conftest.err >&5
24911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); } >/dev/null; then
24913   if test -s conftest.err; then
24914     ac_cpp_err=$ac_cxx_preproc_warn_flag
24915     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24916   else
24917     ac_cpp_err=
24918   fi
24919 else
24920   ac_cpp_err=yes
24921 fi
24922 if test -z "$ac_cpp_err"; then
24923   ac_header_preproc=yes
24924 else
24925   echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928   ac_header_preproc=no
24929 fi
24930 rm -f conftest.err conftest.$ac_ext
24931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24932 echo "${ECHO_T}$ac_header_preproc" >&6
24933
24934 # So?  What about this header?
24935 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24936   yes:no: )
24937     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24938 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24939     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24940 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24941     ac_header_preproc=yes
24942     ;;
24943   no:yes:* )
24944     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24945 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24946     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
24947 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
24948     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24949 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24950     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
24951 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24952     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24953 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24954     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24955 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24956     (
24957       cat <<\_ASBOX
24958 ## ----------------------------------------- ##
24959 ## Report this to wx-dev@lists.wxwidgets.org ##
24960 ## ----------------------------------------- ##
24961 _ASBOX
24962     ) |
24963       sed "s/^/$as_me: WARNING:     /" >&2
24964     ;;
24965 esac
24966 echo "$as_me:$LINENO: checking for regex.h" >&5
24967 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24968 if test "${ac_cv_header_regex_h+set}" = set; then
24969   echo $ECHO_N "(cached) $ECHO_C" >&6
24970 else
24971   ac_cv_header_regex_h=$ac_header_preproc
24972 fi
24973 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24974 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24975
24976 fi
24977 if test $ac_cv_header_regex_h = yes; then
24978
24979
24980 for ac_func in regcomp re_search
24981 do
24982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24983 echo "$as_me:$LINENO: checking for $ac_func" >&5
24984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24985 if eval "test \"\${$as_ac_var+set}\" = set"; then
24986   echo $ECHO_N "(cached) $ECHO_C" >&6
24987 else
24988   cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h.  */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h.  */
24994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24996 #define $ac_func innocuous_$ac_func
24997
24998 /* System header to define __stub macros and hopefully few prototypes,
24999     which can conflict with char $ac_func (); below.
25000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25001     <limits.h> exists even on freestanding compilers.  */
25002
25003 #ifdef __STDC__
25004 # include <limits.h>
25005 #else
25006 # include <assert.h>
25007 #endif
25008
25009 #undef $ac_func
25010
25011 /* Override any gcc2 internal prototype to avoid an error.  */
25012 #ifdef __cplusplus
25013 extern "C"
25014 {
25015 #endif
25016 /* We use char because int might match the return type of a gcc2
25017    builtin and then its argument prototype would still apply.  */
25018 char $ac_func ();
25019 /* The GNU C library defines this for functions which it implements
25020     to always fail with ENOSYS.  Some functions are actually named
25021     something starting with __ and the normal name is an alias.  */
25022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25023 choke me
25024 #else
25025 char (*f) () = $ac_func;
25026 #endif
25027 #ifdef __cplusplus
25028 }
25029 #endif
25030
25031 int
25032 main ()
25033 {
25034 return f != $ac_func;
25035   ;
25036   return 0;
25037 }
25038 _ACEOF
25039 rm -f conftest.$ac_objext conftest$ac_exeext
25040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25041   (eval $ac_link) 2>conftest.er1
25042   ac_status=$?
25043   grep -v '^ *+' conftest.er1 >conftest.err
25044   rm -f conftest.er1
25045   cat conftest.err >&5
25046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047   (exit $ac_status); } &&
25048          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25050   (eval $ac_try) 2>&5
25051   ac_status=$?
25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); }; } &&
25054          { ac_try='test -s conftest$ac_exeext'
25055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25056   (eval $ac_try) 2>&5
25057   ac_status=$?
25058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059   (exit $ac_status); }; }; then
25060   eval "$as_ac_var=yes"
25061 else
25062   echo "$as_me: failed program was:" >&5
25063 sed 's/^/| /' conftest.$ac_ext >&5
25064
25065 eval "$as_ac_var=no"
25066 fi
25067 rm -f conftest.err conftest.$ac_objext \
25068       conftest$ac_exeext conftest.$ac_ext
25069 fi
25070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25072 if test `eval echo '${'$as_ac_var'}'` = yes; then
25073   cat >>confdefs.h <<_ACEOF
25074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25075 _ACEOF
25076
25077 fi
25078 done
25079
25080 fi
25081
25082
25083
25084         if test "x$ac_cv_func_regcomp" != "xyes"; then
25085             if test "$wxUSE_REGEX" = "sys" ; then
25086                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25087 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25088    { (exit 1); exit 1; }; }
25089             else
25090                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25091 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25092                 wxUSE_REGEX=builtin
25093             fi
25094         else
25095                         wxUSE_REGEX=sys
25096                         cat >>confdefs.h <<\_ACEOF
25097 #define WX_NO_REGEX_ADVANCED 1
25098 _ACEOF
25099
25100         fi
25101     fi
25102 fi
25103
25104
25105 ZLIB_LINK=
25106 if test "$wxUSE_ZLIB" != "no" ; then
25107     cat >>confdefs.h <<\_ACEOF
25108 #define wxUSE_ZLIB 1
25109 _ACEOF
25110
25111
25112     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25113                                                 if test "$USE_DARWIN" = 1; then
25114             system_zlib_h_ok="yes"
25115         else
25116                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25117 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25118 if test "${ac_cv_header_zlib_h+set}" = set; then
25119   echo $ECHO_N "(cached) $ECHO_C" >&6
25120 else
25121   if test "$cross_compiling" = yes; then
25122                       unset ac_cv_header_zlib_h
25123
25124 else
25125   cat >conftest.$ac_ext <<_ACEOF
25126 /* confdefs.h.  */
25127 _ACEOF
25128 cat confdefs.h >>conftest.$ac_ext
25129 cat >>conftest.$ac_ext <<_ACEOF
25130 /* end confdefs.h.  */
25131
25132                         #include <zlib.h>
25133                         #include <stdio.h>
25134
25135                         int main()
25136                         {
25137                             FILE *f=fopen("conftestval", "w");
25138                             if (!f) exit(1);
25139                             fprintf(f, "%s",
25140                                     ZLIB_VERSION[0] == '1' &&
25141                                     (ZLIB_VERSION[2] > '1' ||
25142                                     (ZLIB_VERSION[2] == '1' &&
25143                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25144                             exit(0);
25145                         }
25146
25147 _ACEOF
25148 rm -f conftest$ac_exeext
25149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25150   (eval $ac_link) 2>&5
25151   ac_status=$?
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25155   (eval $ac_try) 2>&5
25156   ac_status=$?
25157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158   (exit $ac_status); }; }; then
25159   ac_cv_header_zlib_h=`cat conftestval`
25160 else
25161   echo "$as_me: program exited with status $ac_status" >&5
25162 echo "$as_me: failed program was:" >&5
25163 sed 's/^/| /' conftest.$ac_ext >&5
25164
25165 ( exit $ac_status )
25166 ac_cv_header_zlib_h=no
25167 fi
25168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25169 fi
25170
25171 fi
25172 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25173 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25174                                     if test "${ac_cv_header_zlib_h+set}" = set; then
25175   echo "$as_me:$LINENO: checking for zlib.h" >&5
25176 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25177 if test "${ac_cv_header_zlib_h+set}" = set; then
25178   echo $ECHO_N "(cached) $ECHO_C" >&6
25179 fi
25180 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25181 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25182 else
25183   # Is the header compilable?
25184 echo "$as_me:$LINENO: checking zlib.h usability" >&5
25185 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25186 cat >conftest.$ac_ext <<_ACEOF
25187 /* confdefs.h.  */
25188 _ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h.  */
25192 $ac_includes_default
25193 #include <zlib.h>
25194 _ACEOF
25195 rm -f conftest.$ac_objext
25196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25197   (eval $ac_compile) 2>conftest.er1
25198   ac_status=$?
25199   grep -v '^ *+' conftest.er1 >conftest.err
25200   rm -f conftest.er1
25201   cat conftest.err >&5
25202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203   (exit $ac_status); } &&
25204          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206   (eval $ac_try) 2>&5
25207   ac_status=$?
25208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209   (exit $ac_status); }; } &&
25210          { ac_try='test -s conftest.$ac_objext'
25211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212   (eval $ac_try) 2>&5
25213   ac_status=$?
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); }; }; then
25216   ac_header_compiler=yes
25217 else
25218   echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25220
25221 ac_header_compiler=no
25222 fi
25223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25225 echo "${ECHO_T}$ac_header_compiler" >&6
25226
25227 # Is the header present?
25228 echo "$as_me:$LINENO: checking zlib.h presence" >&5
25229 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25230 cat >conftest.$ac_ext <<_ACEOF
25231 /* confdefs.h.  */
25232 _ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h.  */
25236 #include <zlib.h>
25237 _ACEOF
25238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25240   ac_status=$?
25241   grep -v '^ *+' conftest.er1 >conftest.err
25242   rm -f conftest.er1
25243   cat conftest.err >&5
25244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245   (exit $ac_status); } >/dev/null; then
25246   if test -s conftest.err; then
25247     ac_cpp_err=$ac_cxx_preproc_warn_flag
25248     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25249   else
25250     ac_cpp_err=
25251   fi
25252 else
25253   ac_cpp_err=yes
25254 fi
25255 if test -z "$ac_cpp_err"; then
25256   ac_header_preproc=yes
25257 else
25258   echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25260
25261   ac_header_preproc=no
25262 fi
25263 rm -f conftest.err conftest.$ac_ext
25264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25265 echo "${ECHO_T}$ac_header_preproc" >&6
25266
25267 # So?  What about this header?
25268 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25269   yes:no: )
25270     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25271 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25272     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25273 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25274     ac_header_preproc=yes
25275     ;;
25276   no:yes:* )
25277     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25278 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25279     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25280 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25281     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25282 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25283     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25284 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25285     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25286 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25287     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25288 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25289     (
25290       cat <<\_ASBOX
25291 ## ----------------------------------------- ##
25292 ## Report this to wx-dev@lists.wxwidgets.org ##
25293 ## ----------------------------------------- ##
25294 _ASBOX
25295     ) |
25296       sed "s/^/$as_me: WARNING:     /" >&2
25297     ;;
25298 esac
25299 echo "$as_me:$LINENO: checking for zlib.h" >&5
25300 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25301 if test "${ac_cv_header_zlib_h+set}" = set; then
25302   echo $ECHO_N "(cached) $ECHO_C" >&6
25303 else
25304   ac_cv_header_zlib_h=$ac_header_preproc
25305 fi
25306 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25307 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25308
25309 fi
25310
25311
25312
25313             system_zlib_h_ok=$ac_cv_header_zlib_h
25314         fi
25315
25316         if test "$system_zlib_h_ok" = "yes"; then
25317             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25318 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25319 if test "${ac_cv_lib_z_deflate+set}" = set; then
25320   echo $ECHO_N "(cached) $ECHO_C" >&6
25321 else
25322   ac_check_lib_save_LIBS=$LIBS
25323 LIBS="-lz  $LIBS"
25324 cat >conftest.$ac_ext <<_ACEOF
25325 /* confdefs.h.  */
25326 _ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h.  */
25330
25331 /* Override any gcc2 internal prototype to avoid an error.  */
25332 #ifdef __cplusplus
25333 extern "C"
25334 #endif
25335 /* We use char because int might match the return type of a gcc2
25336    builtin and then its argument prototype would still apply.  */
25337 char deflate ();
25338 int
25339 main ()
25340 {
25341 deflate ();
25342   ;
25343   return 0;
25344 }
25345 _ACEOF
25346 rm -f conftest.$ac_objext conftest$ac_exeext
25347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25348   (eval $ac_link) 2>conftest.er1
25349   ac_status=$?
25350   grep -v '^ *+' conftest.er1 >conftest.err
25351   rm -f conftest.er1
25352   cat conftest.err >&5
25353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354   (exit $ac_status); } &&
25355          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25357   (eval $ac_try) 2>&5
25358   ac_status=$?
25359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360   (exit $ac_status); }; } &&
25361          { ac_try='test -s conftest$ac_exeext'
25362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25363   (eval $ac_try) 2>&5
25364   ac_status=$?
25365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); }; }; then
25367   ac_cv_lib_z_deflate=yes
25368 else
25369   echo "$as_me: failed program was:" >&5
25370 sed 's/^/| /' conftest.$ac_ext >&5
25371
25372 ac_cv_lib_z_deflate=no
25373 fi
25374 rm -f conftest.err conftest.$ac_objext \
25375       conftest$ac_exeext conftest.$ac_ext
25376 LIBS=$ac_check_lib_save_LIBS
25377 fi
25378 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25379 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25380 if test $ac_cv_lib_z_deflate = yes; then
25381   ZLIB_LINK=" -lz"
25382 fi
25383
25384         fi
25385
25386         if test "x$ZLIB_LINK" = "x" ; then
25387             if test "$wxUSE_ZLIB" = "sys" ; then
25388                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25389 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25390    { (exit 1); exit 1; }; }
25391             else
25392                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25393 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25394                 wxUSE_ZLIB=builtin
25395             fi
25396         else
25397                         wxUSE_ZLIB=sys
25398         fi
25399     fi
25400 fi
25401
25402
25403 PNG_LINK=
25404 if test "$wxUSE_LIBPNG" != "no" ; then
25405     cat >>confdefs.h <<\_ACEOF
25406 #define wxUSE_LIBPNG 1
25407 _ACEOF
25408
25409
25410     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25411         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25412 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25413         wxUSE_LIBPNG=sys
25414     fi
25415
25416                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25417         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25418 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25419         wxUSE_LIBPNG=builtin
25420     fi
25421
25422     if test "$wxUSE_MGL" != 1 ; then
25423                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25424                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25425 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25426 if test "${ac_cv_header_png_h+set}" = set; then
25427   echo $ECHO_N "(cached) $ECHO_C" >&6
25428 else
25429   if test "$cross_compiling" = yes; then
25430                       unset ac_cv_header_png_h
25431
25432 else
25433   cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h.  */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h.  */
25439
25440                         #include <png.h>
25441                         #include <stdio.h>
25442
25443                         int main()
25444                         {
25445                             FILE *f=fopen("conftestval", "w");
25446                             if (!f) exit(1);
25447                             fprintf(f, "%s",
25448                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
25449                             exit(0);
25450                         }
25451
25452 _ACEOF
25453 rm -f conftest$ac_exeext
25454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25455   (eval $ac_link) 2>&5
25456   ac_status=$?
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460   (eval $ac_try) 2>&5
25461   ac_status=$?
25462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463   (exit $ac_status); }; }; then
25464   ac_cv_header_png_h=`cat conftestval`
25465 else
25466   echo "$as_me: program exited with status $ac_status" >&5
25467 echo "$as_me: failed program was:" >&5
25468 sed 's/^/| /' conftest.$ac_ext >&5
25469
25470 ( exit $ac_status )
25471 ac_cv_header_png_h=no
25472 fi
25473 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25474 fi
25475
25476 fi
25477 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25478 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25479             if test "${ac_cv_header_png_h+set}" = set; then
25480   echo "$as_me:$LINENO: checking for png.h" >&5
25481 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25482 if test "${ac_cv_header_png_h+set}" = set; then
25483   echo $ECHO_N "(cached) $ECHO_C" >&6
25484 fi
25485 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25486 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25487 else
25488   # Is the header compilable?
25489 echo "$as_me:$LINENO: checking png.h usability" >&5
25490 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25491 cat >conftest.$ac_ext <<_ACEOF
25492 /* confdefs.h.  */
25493 _ACEOF
25494 cat confdefs.h >>conftest.$ac_ext
25495 cat >>conftest.$ac_ext <<_ACEOF
25496 /* end confdefs.h.  */
25497 $ac_includes_default
25498 #include <png.h>
25499 _ACEOF
25500 rm -f conftest.$ac_objext
25501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25502   (eval $ac_compile) 2>conftest.er1
25503   ac_status=$?
25504   grep -v '^ *+' conftest.er1 >conftest.err
25505   rm -f conftest.er1
25506   cat conftest.err >&5
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); } &&
25509          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25511   (eval $ac_try) 2>&5
25512   ac_status=$?
25513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514   (exit $ac_status); }; } &&
25515          { ac_try='test -s conftest.$ac_objext'
25516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517   (eval $ac_try) 2>&5
25518   ac_status=$?
25519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520   (exit $ac_status); }; }; then
25521   ac_header_compiler=yes
25522 else
25523   echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.$ac_ext >&5
25525
25526 ac_header_compiler=no
25527 fi
25528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25530 echo "${ECHO_T}$ac_header_compiler" >&6
25531
25532 # Is the header present?
25533 echo "$as_me:$LINENO: checking png.h presence" >&5
25534 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25535 cat >conftest.$ac_ext <<_ACEOF
25536 /* confdefs.h.  */
25537 _ACEOF
25538 cat confdefs.h >>conftest.$ac_ext
25539 cat >>conftest.$ac_ext <<_ACEOF
25540 /* end confdefs.h.  */
25541 #include <png.h>
25542 _ACEOF
25543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25545   ac_status=$?
25546   grep -v '^ *+' conftest.er1 >conftest.err
25547   rm -f conftest.er1
25548   cat conftest.err >&5
25549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550   (exit $ac_status); } >/dev/null; then
25551   if test -s conftest.err; then
25552     ac_cpp_err=$ac_cxx_preproc_warn_flag
25553     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25554   else
25555     ac_cpp_err=
25556   fi
25557 else
25558   ac_cpp_err=yes
25559 fi
25560 if test -z "$ac_cpp_err"; then
25561   ac_header_preproc=yes
25562 else
25563   echo "$as_me: failed program was:" >&5
25564 sed 's/^/| /' conftest.$ac_ext >&5
25565
25566   ac_header_preproc=no
25567 fi
25568 rm -f conftest.err conftest.$ac_ext
25569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25570 echo "${ECHO_T}$ac_header_preproc" >&6
25571
25572 # So?  What about this header?
25573 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25574   yes:no: )
25575     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25576 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25577     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25578 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25579     ac_header_preproc=yes
25580     ;;
25581   no:yes:* )
25582     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25583 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
25584     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
25585 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
25586     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25587 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25588     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
25589 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25590     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25591 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
25592     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25593 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
25594     (
25595       cat <<\_ASBOX
25596 ## ----------------------------------------- ##
25597 ## Report this to wx-dev@lists.wxwidgets.org ##
25598 ## ----------------------------------------- ##
25599 _ASBOX
25600     ) |
25601       sed "s/^/$as_me: WARNING:     /" >&2
25602     ;;
25603 esac
25604 echo "$as_me:$LINENO: checking for png.h" >&5
25605 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25606 if test "${ac_cv_header_png_h+set}" = set; then
25607   echo $ECHO_N "(cached) $ECHO_C" >&6
25608 else
25609   ac_cv_header_png_h=$ac_header_preproc
25610 fi
25611 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25612 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25613
25614 fi
25615
25616
25617
25618             if test "$ac_cv_header_png_h" = "yes"; then
25619                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25620 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25621 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25622   echo $ECHO_N "(cached) $ECHO_C" >&6
25623 else
25624   ac_check_lib_save_LIBS=$LIBS
25625 LIBS="-lpng -lz -lm $LIBS"
25626 cat >conftest.$ac_ext <<_ACEOF
25627 /* confdefs.h.  */
25628 _ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h.  */
25632
25633 /* Override any gcc2 internal prototype to avoid an error.  */
25634 #ifdef __cplusplus
25635 extern "C"
25636 #endif
25637 /* We use char because int might match the return type of a gcc2
25638    builtin and then its argument prototype would still apply.  */
25639 char png_check_sig ();
25640 int
25641 main ()
25642 {
25643 png_check_sig ();
25644   ;
25645   return 0;
25646 }
25647 _ACEOF
25648 rm -f conftest.$ac_objext conftest$ac_exeext
25649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25650   (eval $ac_link) 2>conftest.er1
25651   ac_status=$?
25652   grep -v '^ *+' conftest.er1 >conftest.err
25653   rm -f conftest.er1
25654   cat conftest.err >&5
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); } &&
25657          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659   (eval $ac_try) 2>&5
25660   ac_status=$?
25661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662   (exit $ac_status); }; } &&
25663          { ac_try='test -s conftest$ac_exeext'
25664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665   (eval $ac_try) 2>&5
25666   ac_status=$?
25667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); }; }; then
25669   ac_cv_lib_png_png_check_sig=yes
25670 else
25671   echo "$as_me: failed program was:" >&5
25672 sed 's/^/| /' conftest.$ac_ext >&5
25673
25674 ac_cv_lib_png_png_check_sig=no
25675 fi
25676 rm -f conftest.err conftest.$ac_objext \
25677       conftest$ac_exeext conftest.$ac_ext
25678 LIBS=$ac_check_lib_save_LIBS
25679 fi
25680 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25681 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25682 if test $ac_cv_lib_png_png_check_sig = yes; then
25683   PNG_LINK=" -lpng -lz"
25684 fi
25685
25686             fi
25687
25688             if test "x$PNG_LINK" = "x" ; then
25689                 if test "$wxUSE_LIBPNG" = "sys" ; then
25690                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25691 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25692    { (exit 1); exit 1; }; }
25693                 else
25694                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25695 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25696                     wxUSE_LIBPNG=builtin
25697                 fi
25698             else
25699                                 wxUSE_LIBPNG=sys
25700             fi
25701         fi
25702     fi
25703
25704     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25705 fi
25706
25707
25708 JPEG_LINK=
25709 if test "$wxUSE_LIBJPEG" != "no" ; then
25710     cat >>confdefs.h <<\_ACEOF
25711 #define wxUSE_LIBJPEG 1
25712 _ACEOF
25713
25714
25715     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25716         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25717 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25718         wxUSE_LIBJPEG=sys
25719     fi
25720
25721     if test "$wxUSE_MGL" != 1 ; then
25722                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25723                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25724 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25725             if test "${ac_cv_header_jpeglib_h+set}" = set; then
25726   echo $ECHO_N "(cached) $ECHO_C" >&6
25727 else
25728   cat >conftest.$ac_ext <<_ACEOF
25729 /* confdefs.h.  */
25730 _ACEOF
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h.  */
25734
25735                         #undef HAVE_STDLIB_H
25736                         #include <stdio.h>
25737                         #include <jpeglib.h>
25738
25739 int
25740 main ()
25741 {
25742
25743
25744   ;
25745   return 0;
25746 }
25747 _ACEOF
25748 rm -f conftest.$ac_objext
25749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25750   (eval $ac_compile) 2>conftest.er1
25751   ac_status=$?
25752   grep -v '^ *+' conftest.er1 >conftest.err
25753   rm -f conftest.er1
25754   cat conftest.err >&5
25755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756   (exit $ac_status); } &&
25757          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25759   (eval $ac_try) 2>&5
25760   ac_status=$?
25761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762   (exit $ac_status); }; } &&
25763          { ac_try='test -s conftest.$ac_objext'
25764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25765   (eval $ac_try) 2>&5
25766   ac_status=$?
25767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768   (exit $ac_status); }; }; then
25769   ac_cv_header_jpeglib_h=yes
25770 else
25771   echo "$as_me: failed program was:" >&5
25772 sed 's/^/| /' conftest.$ac_ext >&5
25773
25774 ac_cv_header_jpeglib_h=no
25775
25776 fi
25777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25778
25779 fi
25780
25781             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25782 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25783
25784             if test "$ac_cv_header_jpeglib_h" = "yes"; then
25785                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25786 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25787 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25788   echo $ECHO_N "(cached) $ECHO_C" >&6
25789 else
25790   ac_check_lib_save_LIBS=$LIBS
25791 LIBS="-ljpeg  $LIBS"
25792 cat >conftest.$ac_ext <<_ACEOF
25793 /* confdefs.h.  */
25794 _ACEOF
25795 cat confdefs.h >>conftest.$ac_ext
25796 cat >>conftest.$ac_ext <<_ACEOF
25797 /* end confdefs.h.  */
25798
25799 /* Override any gcc2 internal prototype to avoid an error.  */
25800 #ifdef __cplusplus
25801 extern "C"
25802 #endif
25803 /* We use char because int might match the return type of a gcc2
25804    builtin and then its argument prototype would still apply.  */
25805 char jpeg_read_header ();
25806 int
25807 main ()
25808 {
25809 jpeg_read_header ();
25810   ;
25811   return 0;
25812 }
25813 _ACEOF
25814 rm -f conftest.$ac_objext conftest$ac_exeext
25815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25816   (eval $ac_link) 2>conftest.er1
25817   ac_status=$?
25818   grep -v '^ *+' conftest.er1 >conftest.err
25819   rm -f conftest.er1
25820   cat conftest.err >&5
25821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822   (exit $ac_status); } &&
25823          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25825   (eval $ac_try) 2>&5
25826   ac_status=$?
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); }; } &&
25829          { ac_try='test -s conftest$ac_exeext'
25830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25831   (eval $ac_try) 2>&5
25832   ac_status=$?
25833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); }; }; then
25835   ac_cv_lib_jpeg_jpeg_read_header=yes
25836 else
25837   echo "$as_me: failed program was:" >&5
25838 sed 's/^/| /' conftest.$ac_ext >&5
25839
25840 ac_cv_lib_jpeg_jpeg_read_header=no
25841 fi
25842 rm -f conftest.err conftest.$ac_objext \
25843       conftest$ac_exeext conftest.$ac_ext
25844 LIBS=$ac_check_lib_save_LIBS
25845 fi
25846 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25847 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25848 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25849   JPEG_LINK=" -ljpeg"
25850 fi
25851
25852             fi
25853
25854             if test "x$JPEG_LINK" = "x" ; then
25855                 if test "$wxUSE_LIBJPEG" = "sys" ; then
25856                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25857 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25858    { (exit 1); exit 1; }; }
25859                 else
25860                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25861 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25862                     wxUSE_LIBJPEG=builtin
25863                 fi
25864             else
25865                                 wxUSE_LIBJPEG=sys
25866             fi
25867         fi
25868     fi
25869 fi
25870
25871
25872 TIFF_LINK=
25873 TIFF_PREREQ_LINKS=-lm
25874 if test "$wxUSE_LIBTIFF" != "no" ; then
25875     cat >>confdefs.h <<\_ACEOF
25876 #define wxUSE_LIBTIFF 1
25877 _ACEOF
25878
25879
25880     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25881                         if test "$wxUSE_LIBJPEG" = "sys"; then
25882             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25883         fi
25884         if test "$wxUSE_ZLIB" = "sys"; then
25885             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25886         fi
25887         if test "${ac_cv_header_tiffio_h+set}" = set; then
25888   echo "$as_me:$LINENO: checking for tiffio.h" >&5
25889 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25890 if test "${ac_cv_header_tiffio_h+set}" = set; then
25891   echo $ECHO_N "(cached) $ECHO_C" >&6
25892 fi
25893 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25894 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25895 else
25896   # Is the header compilable?
25897 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25898 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25899 cat >conftest.$ac_ext <<_ACEOF
25900 /* confdefs.h.  */
25901 _ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h.  */
25905 $ac_includes_default
25906 #include <tiffio.h>
25907 _ACEOF
25908 rm -f conftest.$ac_objext
25909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25910   (eval $ac_compile) 2>conftest.er1
25911   ac_status=$?
25912   grep -v '^ *+' conftest.er1 >conftest.err
25913   rm -f conftest.er1
25914   cat conftest.err >&5
25915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); } &&
25917          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919   (eval $ac_try) 2>&5
25920   ac_status=$?
25921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922   (exit $ac_status); }; } &&
25923          { ac_try='test -s conftest.$ac_objext'
25924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25925   (eval $ac_try) 2>&5
25926   ac_status=$?
25927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928   (exit $ac_status); }; }; then
25929   ac_header_compiler=yes
25930 else
25931   echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25933
25934 ac_header_compiler=no
25935 fi
25936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25938 echo "${ECHO_T}$ac_header_compiler" >&6
25939
25940 # Is the header present?
25941 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25942 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25943 cat >conftest.$ac_ext <<_ACEOF
25944 /* confdefs.h.  */
25945 _ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h.  */
25949 #include <tiffio.h>
25950 _ACEOF
25951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25953   ac_status=$?
25954   grep -v '^ *+' conftest.er1 >conftest.err
25955   rm -f conftest.er1
25956   cat conftest.err >&5
25957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958   (exit $ac_status); } >/dev/null; then
25959   if test -s conftest.err; then
25960     ac_cpp_err=$ac_cxx_preproc_warn_flag
25961     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25962   else
25963     ac_cpp_err=
25964   fi
25965 else
25966   ac_cpp_err=yes
25967 fi
25968 if test -z "$ac_cpp_err"; then
25969   ac_header_preproc=yes
25970 else
25971   echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25973
25974   ac_header_preproc=no
25975 fi
25976 rm -f conftest.err conftest.$ac_ext
25977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25978 echo "${ECHO_T}$ac_header_preproc" >&6
25979
25980 # So?  What about this header?
25981 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25982   yes:no: )
25983     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25984 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25985     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25986 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25987     ac_header_preproc=yes
25988     ;;
25989   no:yes:* )
25990     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25991 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
25992     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
25993 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
25994     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25995 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25996     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
25997 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25998     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25999 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
26000     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26001 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
26002     (
26003       cat <<\_ASBOX
26004 ## ----------------------------------------- ##
26005 ## Report this to wx-dev@lists.wxwidgets.org ##
26006 ## ----------------------------------------- ##
26007 _ASBOX
26008     ) |
26009       sed "s/^/$as_me: WARNING:     /" >&2
26010     ;;
26011 esac
26012 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26013 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26014 if test "${ac_cv_header_tiffio_h+set}" = set; then
26015   echo $ECHO_N "(cached) $ECHO_C" >&6
26016 else
26017   ac_cv_header_tiffio_h=$ac_header_preproc
26018 fi
26019 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26020 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26021
26022 fi
26023 if test $ac_cv_header_tiffio_h = yes; then
26024
26025                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26026 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26027 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26028   echo $ECHO_N "(cached) $ECHO_C" >&6
26029 else
26030   ac_check_lib_save_LIBS=$LIBS
26031 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26032 cat >conftest.$ac_ext <<_ACEOF
26033 /* confdefs.h.  */
26034 _ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h.  */
26038
26039 /* Override any gcc2 internal prototype to avoid an error.  */
26040 #ifdef __cplusplus
26041 extern "C"
26042 #endif
26043 /* We use char because int might match the return type of a gcc2
26044    builtin and then its argument prototype would still apply.  */
26045 char TIFFError ();
26046 int
26047 main ()
26048 {
26049 TIFFError ();
26050   ;
26051   return 0;
26052 }
26053 _ACEOF
26054 rm -f conftest.$ac_objext conftest$ac_exeext
26055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26056   (eval $ac_link) 2>conftest.er1
26057   ac_status=$?
26058   grep -v '^ *+' conftest.er1 >conftest.err
26059   rm -f conftest.er1
26060   cat conftest.err >&5
26061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062   (exit $ac_status); } &&
26063          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26065   (eval $ac_try) 2>&5
26066   ac_status=$?
26067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068   (exit $ac_status); }; } &&
26069          { ac_try='test -s conftest$ac_exeext'
26070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26071   (eval $ac_try) 2>&5
26072   ac_status=$?
26073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074   (exit $ac_status); }; }; then
26075   ac_cv_lib_tiff_TIFFError=yes
26076 else
26077   echo "$as_me: failed program was:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26079
26080 ac_cv_lib_tiff_TIFFError=no
26081 fi
26082 rm -f conftest.err conftest.$ac_objext \
26083       conftest$ac_exeext conftest.$ac_ext
26084 LIBS=$ac_check_lib_save_LIBS
26085 fi
26086 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26087 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26088 if test $ac_cv_lib_tiff_TIFFError = yes; then
26089   TIFF_LINK=" -ltiff"
26090 fi
26091
26092
26093
26094 fi
26095
26096
26097
26098         if test "x$TIFF_LINK" = "x" ; then
26099             if test "$wxUSE_LIBTIFF" = "sys" ; then
26100                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26101 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26102    { (exit 1); exit 1; }; }
26103             else
26104                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26105 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26106                 wxUSE_LIBTIFF=builtin
26107             fi
26108         else
26109                         wxUSE_LIBTIFF=sys
26110         fi
26111     fi
26112 fi
26113
26114
26115 if test "$wxUSE_WCHAR_T" != "yes"; then
26116     if test "$wxUSE_EXPAT" != "no"; then
26117         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26118 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26119         wxUSE_EXPAT=no
26120     fi
26121     if test "$wxUSE_XML" != "no"; then
26122         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26123 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26124         wxUSE_XML=no
26125     fi
26126 fi
26127
26128 if test "$wxUSE_EXPAT" != "no"; then
26129     wxUSE_XML=yes
26130     cat >>confdefs.h <<\_ACEOF
26131 #define wxUSE_EXPAT 1
26132 _ACEOF
26133
26134     cat >>confdefs.h <<\_ACEOF
26135 #define wxUSE_XML 1
26136 _ACEOF
26137
26138
26139     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26140         if test "${ac_cv_header_expat_h+set}" = set; then
26141   echo "$as_me:$LINENO: checking for expat.h" >&5
26142 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26143 if test "${ac_cv_header_expat_h+set}" = set; then
26144   echo $ECHO_N "(cached) $ECHO_C" >&6
26145 fi
26146 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26147 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26148 else
26149   # Is the header compilable?
26150 echo "$as_me:$LINENO: checking expat.h usability" >&5
26151 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26152 cat >conftest.$ac_ext <<_ACEOF
26153 /* confdefs.h.  */
26154 _ACEOF
26155 cat confdefs.h >>conftest.$ac_ext
26156 cat >>conftest.$ac_ext <<_ACEOF
26157 /* end confdefs.h.  */
26158 $ac_includes_default
26159 #include <expat.h>
26160 _ACEOF
26161 rm -f conftest.$ac_objext
26162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26163   (eval $ac_compile) 2>conftest.er1
26164   ac_status=$?
26165   grep -v '^ *+' conftest.er1 >conftest.err
26166   rm -f conftest.er1
26167   cat conftest.err >&5
26168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169   (exit $ac_status); } &&
26170          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172   (eval $ac_try) 2>&5
26173   ac_status=$?
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); }; } &&
26176          { ac_try='test -s conftest.$ac_objext'
26177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178   (eval $ac_try) 2>&5
26179   ac_status=$?
26180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); }; }; then
26182   ac_header_compiler=yes
26183 else
26184   echo "$as_me: failed program was:" >&5
26185 sed 's/^/| /' conftest.$ac_ext >&5
26186
26187 ac_header_compiler=no
26188 fi
26189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26191 echo "${ECHO_T}$ac_header_compiler" >&6
26192
26193 # Is the header present?
26194 echo "$as_me:$LINENO: checking expat.h presence" >&5
26195 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26196 cat >conftest.$ac_ext <<_ACEOF
26197 /* confdefs.h.  */
26198 _ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h.  */
26202 #include <expat.h>
26203 _ACEOF
26204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26206   ac_status=$?
26207   grep -v '^ *+' conftest.er1 >conftest.err
26208   rm -f conftest.er1
26209   cat conftest.err >&5
26210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211   (exit $ac_status); } >/dev/null; then
26212   if test -s conftest.err; then
26213     ac_cpp_err=$ac_cxx_preproc_warn_flag
26214     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26215   else
26216     ac_cpp_err=
26217   fi
26218 else
26219   ac_cpp_err=yes
26220 fi
26221 if test -z "$ac_cpp_err"; then
26222   ac_header_preproc=yes
26223 else
26224   echo "$as_me: failed program was:" >&5
26225 sed 's/^/| /' conftest.$ac_ext >&5
26226
26227   ac_header_preproc=no
26228 fi
26229 rm -f conftest.err conftest.$ac_ext
26230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26231 echo "${ECHO_T}$ac_header_preproc" >&6
26232
26233 # So?  What about this header?
26234 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26235   yes:no: )
26236     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26237 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26238     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26239 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26240     ac_header_preproc=yes
26241     ;;
26242   no:yes:* )
26243     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26244 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
26245     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
26246 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
26247     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26248 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26249     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
26250 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26251     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26252 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
26253     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26254 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
26255     (
26256       cat <<\_ASBOX
26257 ## ----------------------------------------- ##
26258 ## Report this to wx-dev@lists.wxwidgets.org ##
26259 ## ----------------------------------------- ##
26260 _ASBOX
26261     ) |
26262       sed "s/^/$as_me: WARNING:     /" >&2
26263     ;;
26264 esac
26265 echo "$as_me:$LINENO: checking for expat.h" >&5
26266 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26267 if test "${ac_cv_header_expat_h+set}" = set; then
26268   echo $ECHO_N "(cached) $ECHO_C" >&6
26269 else
26270   ac_cv_header_expat_h=$ac_header_preproc
26271 fi
26272 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26273 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26274
26275 fi
26276 if test $ac_cv_header_expat_h = yes; then
26277   found_expat_h=1
26278 fi
26279
26280
26281         if test "x$found_expat_h" = "x1"; then
26282                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26283 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26284 if test "${wx_cv_expat_is_not_broken+set}" = set; then
26285   echo $ECHO_N "(cached) $ECHO_C" >&6
26286 else
26287
26288                 cat >conftest.$ac_ext <<_ACEOF
26289 /* confdefs.h.  */
26290 _ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h.  */
26294 #include <expat.h>
26295 int
26296 main ()
26297 {
26298
26299   ;
26300   return 0;
26301 }
26302 _ACEOF
26303 rm -f conftest.$ac_objext
26304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26305   (eval $ac_compile) 2>conftest.er1
26306   ac_status=$?
26307   grep -v '^ *+' conftest.er1 >conftest.err
26308   rm -f conftest.er1
26309   cat conftest.err >&5
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); } &&
26312          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26314   (eval $ac_try) 2>&5
26315   ac_status=$?
26316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317   (exit $ac_status); }; } &&
26318          { ac_try='test -s conftest.$ac_objext'
26319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26320   (eval $ac_try) 2>&5
26321   ac_status=$?
26322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323   (exit $ac_status); }; }; then
26324   wx_cv_expat_is_not_broken=yes
26325 else
26326   echo "$as_me: failed program was:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26328
26329 wx_cv_expat_is_not_broken=no
26330
26331 fi
26332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26333
26334
26335 fi
26336 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26337 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26338             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26339                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26340 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26341 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26342   echo $ECHO_N "(cached) $ECHO_C" >&6
26343 else
26344   ac_check_lib_save_LIBS=$LIBS
26345 LIBS="-lexpat  $LIBS"
26346 cat >conftest.$ac_ext <<_ACEOF
26347 /* confdefs.h.  */
26348 _ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h.  */
26352
26353 /* Override any gcc2 internal prototype to avoid an error.  */
26354 #ifdef __cplusplus
26355 extern "C"
26356 #endif
26357 /* We use char because int might match the return type of a gcc2
26358    builtin and then its argument prototype would still apply.  */
26359 char XML_ParserCreate ();
26360 int
26361 main ()
26362 {
26363 XML_ParserCreate ();
26364   ;
26365   return 0;
26366 }
26367 _ACEOF
26368 rm -f conftest.$ac_objext conftest$ac_exeext
26369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26370   (eval $ac_link) 2>conftest.er1
26371   ac_status=$?
26372   grep -v '^ *+' conftest.er1 >conftest.err
26373   rm -f conftest.er1
26374   cat conftest.err >&5
26375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376   (exit $ac_status); } &&
26377          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26379   (eval $ac_try) 2>&5
26380   ac_status=$?
26381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382   (exit $ac_status); }; } &&
26383          { ac_try='test -s conftest$ac_exeext'
26384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385   (eval $ac_try) 2>&5
26386   ac_status=$?
26387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388   (exit $ac_status); }; }; then
26389   ac_cv_lib_expat_XML_ParserCreate=yes
26390 else
26391   echo "$as_me: failed program was:" >&5
26392 sed 's/^/| /' conftest.$ac_ext >&5
26393
26394 ac_cv_lib_expat_XML_ParserCreate=no
26395 fi
26396 rm -f conftest.err conftest.$ac_objext \
26397       conftest$ac_exeext conftest.$ac_ext
26398 LIBS=$ac_check_lib_save_LIBS
26399 fi
26400 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26401 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26402 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26403   EXPAT_LINK=" -lexpat"
26404 fi
26405
26406             fi
26407         fi
26408         if test "x$EXPAT_LINK" = "x" ; then
26409             if test "$wxUSE_EXPAT" = "sys" ; then
26410                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26411 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26412    { (exit 1); exit 1; }; }
26413             else
26414                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26415 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26416                 wxUSE_EXPAT=builtin
26417             fi
26418         else
26419                         wxUSE_EXPAT=sys
26420         fi
26421     fi
26422     if test "$wxUSE_EXPAT" = "builtin" ; then
26423
26424
26425 subdirs="$subdirs src/expat"
26426
26427     fi
26428 fi
26429
26430
26431
26432 if test "$wxUSE_LIBMSPACK" != "no"; then
26433     if test "${ac_cv_header_mspack_h+set}" = set; then
26434   echo "$as_me:$LINENO: checking for mspack.h" >&5
26435 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26436 if test "${ac_cv_header_mspack_h+set}" = set; then
26437   echo $ECHO_N "(cached) $ECHO_C" >&6
26438 fi
26439 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26440 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26441 else
26442   # Is the header compilable?
26443 echo "$as_me:$LINENO: checking mspack.h usability" >&5
26444 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26445 cat >conftest.$ac_ext <<_ACEOF
26446 /* confdefs.h.  */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h.  */
26451 $ac_includes_default
26452 #include <mspack.h>
26453 _ACEOF
26454 rm -f conftest.$ac_objext
26455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26456   (eval $ac_compile) 2>conftest.er1
26457   ac_status=$?
26458   grep -v '^ *+' conftest.er1 >conftest.err
26459   rm -f conftest.er1
26460   cat conftest.err >&5
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); } &&
26463          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465   (eval $ac_try) 2>&5
26466   ac_status=$?
26467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468   (exit $ac_status); }; } &&
26469          { ac_try='test -s conftest.$ac_objext'
26470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26471   (eval $ac_try) 2>&5
26472   ac_status=$?
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); }; }; then
26475   ac_header_compiler=yes
26476 else
26477   echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.$ac_ext >&5
26479
26480 ac_header_compiler=no
26481 fi
26482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26484 echo "${ECHO_T}$ac_header_compiler" >&6
26485
26486 # Is the header present?
26487 echo "$as_me:$LINENO: checking mspack.h presence" >&5
26488 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26489 cat >conftest.$ac_ext <<_ACEOF
26490 /* confdefs.h.  */
26491 _ACEOF
26492 cat confdefs.h >>conftest.$ac_ext
26493 cat >>conftest.$ac_ext <<_ACEOF
26494 /* end confdefs.h.  */
26495 #include <mspack.h>
26496 _ACEOF
26497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26498   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26499   ac_status=$?
26500   grep -v '^ *+' conftest.er1 >conftest.err
26501   rm -f conftest.er1
26502   cat conftest.err >&5
26503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504   (exit $ac_status); } >/dev/null; then
26505   if test -s conftest.err; then
26506     ac_cpp_err=$ac_cxx_preproc_warn_flag
26507     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26508   else
26509     ac_cpp_err=
26510   fi
26511 else
26512   ac_cpp_err=yes
26513 fi
26514 if test -z "$ac_cpp_err"; then
26515   ac_header_preproc=yes
26516 else
26517   echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26519
26520   ac_header_preproc=no
26521 fi
26522 rm -f conftest.err conftest.$ac_ext
26523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26524 echo "${ECHO_T}$ac_header_preproc" >&6
26525
26526 # So?  What about this header?
26527 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26528   yes:no: )
26529     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26530 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26531     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26532 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26533     ac_header_preproc=yes
26534     ;;
26535   no:yes:* )
26536     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26537 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
26538     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
26539 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
26540     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26541 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26542     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
26543 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26544     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26545 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
26546     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26547 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
26548     (
26549       cat <<\_ASBOX
26550 ## ----------------------------------------- ##
26551 ## Report this to wx-dev@lists.wxwidgets.org ##
26552 ## ----------------------------------------- ##
26553 _ASBOX
26554     ) |
26555       sed "s/^/$as_me: WARNING:     /" >&2
26556     ;;
26557 esac
26558 echo "$as_me:$LINENO: checking for mspack.h" >&5
26559 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26560 if test "${ac_cv_header_mspack_h+set}" = set; then
26561   echo $ECHO_N "(cached) $ECHO_C" >&6
26562 else
26563   ac_cv_header_mspack_h=$ac_header_preproc
26564 fi
26565 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26566 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26567
26568 fi
26569 if test $ac_cv_header_mspack_h = yes; then
26570   found_mspack_h=1
26571 fi
26572
26573
26574     if test "x$found_mspack_h" = "x1"; then
26575         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26576 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26577 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26578   echo $ECHO_N "(cached) $ECHO_C" >&6
26579 else
26580   ac_check_lib_save_LIBS=$LIBS
26581 LIBS="-lmspack  $LIBS"
26582 cat >conftest.$ac_ext <<_ACEOF
26583 /* confdefs.h.  */
26584 _ACEOF
26585 cat confdefs.h >>conftest.$ac_ext
26586 cat >>conftest.$ac_ext <<_ACEOF
26587 /* end confdefs.h.  */
26588
26589 /* Override any gcc2 internal prototype to avoid an error.  */
26590 #ifdef __cplusplus
26591 extern "C"
26592 #endif
26593 /* We use char because int might match the return type of a gcc2
26594    builtin and then its argument prototype would still apply.  */
26595 char mspack_create_chm_decompressor ();
26596 int
26597 main ()
26598 {
26599 mspack_create_chm_decompressor ();
26600   ;
26601   return 0;
26602 }
26603 _ACEOF
26604 rm -f conftest.$ac_objext conftest$ac_exeext
26605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26606   (eval $ac_link) 2>conftest.er1
26607   ac_status=$?
26608   grep -v '^ *+' conftest.er1 >conftest.err
26609   rm -f conftest.er1
26610   cat conftest.err >&5
26611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612   (exit $ac_status); } &&
26613          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26615   (eval $ac_try) 2>&5
26616   ac_status=$?
26617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618   (exit $ac_status); }; } &&
26619          { ac_try='test -s conftest$ac_exeext'
26620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26621   (eval $ac_try) 2>&5
26622   ac_status=$?
26623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624   (exit $ac_status); }; }; then
26625   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26626 else
26627   echo "$as_me: failed program was:" >&5
26628 sed 's/^/| /' conftest.$ac_ext >&5
26629
26630 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26631 fi
26632 rm -f conftest.err conftest.$ac_objext \
26633       conftest$ac_exeext conftest.$ac_ext
26634 LIBS=$ac_check_lib_save_LIBS
26635 fi
26636 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26637 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26638 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26639   MSPACK_LINK=" -lmspack"
26640 fi
26641
26642     fi
26643     if test "x$MSPACK_LINK" = "x" ; then
26644         wxUSE_LIBMSPACK=no
26645     fi
26646 fi
26647
26648 if test "$wxUSE_LIBMSPACK" != "no"; then
26649     cat >>confdefs.h <<\_ACEOF
26650 #define wxUSE_LIBMSPACK 1
26651 _ACEOF
26652
26653 fi
26654
26655
26656
26657 AFMINSTALL=
26658 WIN32INSTALL=
26659
26660 TOOLKIT=
26661 TOOLKIT_INCLUDE=
26662 WIDGET_SET=
26663
26664 if test "$USE_WIN32" = 1 ; then
26665
26666 for ac_header in w32api.h
26667 do
26668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26670   echo "$as_me:$LINENO: checking for $ac_header" >&5
26671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26673   echo $ECHO_N "(cached) $ECHO_C" >&6
26674 fi
26675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26677 else
26678   # Is the header compilable?
26679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26681 cat >conftest.$ac_ext <<_ACEOF
26682 /* confdefs.h.  */
26683 _ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h.  */
26687 $ac_includes_default
26688 #include <$ac_header>
26689 _ACEOF
26690 rm -f conftest.$ac_objext
26691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26692   (eval $ac_compile) 2>conftest.er1
26693   ac_status=$?
26694   grep -v '^ *+' conftest.er1 >conftest.err
26695   rm -f conftest.er1
26696   cat conftest.err >&5
26697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698   (exit $ac_status); } &&
26699          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26701   (eval $ac_try) 2>&5
26702   ac_status=$?
26703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704   (exit $ac_status); }; } &&
26705          { ac_try='test -s conftest.$ac_objext'
26706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26707   (eval $ac_try) 2>&5
26708   ac_status=$?
26709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710   (exit $ac_status); }; }; then
26711   ac_header_compiler=yes
26712 else
26713   echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26715
26716 ac_header_compiler=no
26717 fi
26718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26720 echo "${ECHO_T}$ac_header_compiler" >&6
26721
26722 # Is the header present?
26723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26725 cat >conftest.$ac_ext <<_ACEOF
26726 /* confdefs.h.  */
26727 _ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h.  */
26731 #include <$ac_header>
26732 _ACEOF
26733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26734   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26735   ac_status=$?
26736   grep -v '^ *+' conftest.er1 >conftest.err
26737   rm -f conftest.er1
26738   cat conftest.err >&5
26739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740   (exit $ac_status); } >/dev/null; then
26741   if test -s conftest.err; then
26742     ac_cpp_err=$ac_cxx_preproc_warn_flag
26743     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26744   else
26745     ac_cpp_err=
26746   fi
26747 else
26748   ac_cpp_err=yes
26749 fi
26750 if test -z "$ac_cpp_err"; then
26751   ac_header_preproc=yes
26752 else
26753   echo "$as_me: failed program was:" >&5
26754 sed 's/^/| /' conftest.$ac_ext >&5
26755
26756   ac_header_preproc=no
26757 fi
26758 rm -f conftest.err conftest.$ac_ext
26759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26760 echo "${ECHO_T}$ac_header_preproc" >&6
26761
26762 # So?  What about this header?
26763 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26764   yes:no: )
26765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26769     ac_header_preproc=yes
26770     ;;
26771   no:yes:* )
26772     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26774     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26775 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26776     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26778     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26779 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26782     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26784     (
26785       cat <<\_ASBOX
26786 ## ----------------------------------------- ##
26787 ## Report this to wx-dev@lists.wxwidgets.org ##
26788 ## ----------------------------------------- ##
26789 _ASBOX
26790     ) |
26791       sed "s/^/$as_me: WARNING:     /" >&2
26792     ;;
26793 esac
26794 echo "$as_me:$LINENO: checking for $ac_header" >&5
26795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26797   echo $ECHO_N "(cached) $ECHO_C" >&6
26798 else
26799   eval "$as_ac_Header=\$ac_header_preproc"
26800 fi
26801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26803
26804 fi
26805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26806   cat >>confdefs.h <<_ACEOF
26807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26808 _ACEOF
26809
26810 fi
26811
26812 done
26813
26814     if test "${ac_cv_header_windows_h+set}" = set; then
26815   echo "$as_me:$LINENO: checking for windows.h" >&5
26816 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26817 if test "${ac_cv_header_windows_h+set}" = set; then
26818   echo $ECHO_N "(cached) $ECHO_C" >&6
26819 fi
26820 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26821 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26822 else
26823   # Is the header compilable?
26824 echo "$as_me:$LINENO: checking windows.h usability" >&5
26825 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26826 cat >conftest.$ac_ext <<_ACEOF
26827 /* confdefs.h.  */
26828 _ACEOF
26829 cat confdefs.h >>conftest.$ac_ext
26830 cat >>conftest.$ac_ext <<_ACEOF
26831 /* end confdefs.h.  */
26832 $ac_includes_default
26833 #include <windows.h>
26834 _ACEOF
26835 rm -f conftest.$ac_objext
26836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26837   (eval $ac_compile) 2>conftest.er1
26838   ac_status=$?
26839   grep -v '^ *+' conftest.er1 >conftest.err
26840   rm -f conftest.er1
26841   cat conftest.err >&5
26842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843   (exit $ac_status); } &&
26844          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26846   (eval $ac_try) 2>&5
26847   ac_status=$?
26848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849   (exit $ac_status); }; } &&
26850          { ac_try='test -s conftest.$ac_objext'
26851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852   (eval $ac_try) 2>&5
26853   ac_status=$?
26854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); }; }; then
26856   ac_header_compiler=yes
26857 else
26858   echo "$as_me: failed program was:" >&5
26859 sed 's/^/| /' conftest.$ac_ext >&5
26860
26861 ac_header_compiler=no
26862 fi
26863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26865 echo "${ECHO_T}$ac_header_compiler" >&6
26866
26867 # Is the header present?
26868 echo "$as_me:$LINENO: checking windows.h presence" >&5
26869 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26870 cat >conftest.$ac_ext <<_ACEOF
26871 /* confdefs.h.  */
26872 _ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h.  */
26876 #include <windows.h>
26877 _ACEOF
26878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26880   ac_status=$?
26881   grep -v '^ *+' conftest.er1 >conftest.err
26882   rm -f conftest.er1
26883   cat conftest.err >&5
26884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885   (exit $ac_status); } >/dev/null; then
26886   if test -s conftest.err; then
26887     ac_cpp_err=$ac_cxx_preproc_warn_flag
26888     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26889   else
26890     ac_cpp_err=
26891   fi
26892 else
26893   ac_cpp_err=yes
26894 fi
26895 if test -z "$ac_cpp_err"; then
26896   ac_header_preproc=yes
26897 else
26898   echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26900
26901   ac_header_preproc=no
26902 fi
26903 rm -f conftest.err conftest.$ac_ext
26904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26905 echo "${ECHO_T}$ac_header_preproc" >&6
26906
26907 # So?  What about this header?
26908 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26909   yes:no: )
26910     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26911 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26912     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26913 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26914     ac_header_preproc=yes
26915     ;;
26916   no:yes:* )
26917     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26918 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
26919     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
26920 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
26921     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26922 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26923     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
26924 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26925     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26926 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
26927     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26928 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
26929     (
26930       cat <<\_ASBOX
26931 ## ----------------------------------------- ##
26932 ## Report this to wx-dev@lists.wxwidgets.org ##
26933 ## ----------------------------------------- ##
26934 _ASBOX
26935     ) |
26936       sed "s/^/$as_me: WARNING:     /" >&2
26937     ;;
26938 esac
26939 echo "$as_me:$LINENO: checking for windows.h" >&5
26940 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26941 if test "${ac_cv_header_windows_h+set}" = set; then
26942   echo $ECHO_N "(cached) $ECHO_C" >&6
26943 else
26944   ac_cv_header_windows_h=$ac_header_preproc
26945 fi
26946 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26947 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26948
26949 fi
26950 if test $ac_cv_header_windows_h = yes; then
26951   :
26952 else
26953
26954         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26955 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26956    { (exit 1); exit 1; }; }
26957
26958 fi
26959
26960
26961
26962             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26963
26964     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26965         LIBS="$LIBS -loleacc"
26966     fi
26967
26968     case "${host}" in
26969         *-*-cygwin* )
26970                         LIBS="$LIBS -lkernel32 -luser32"
26971     esac
26972
26973         if test "$wxUSE_ODBC" = "sys" ; then
26974         wxUSE_ODBC = "yes"
26975     fi
26976     if test "$wxUSE_ODBC" = "yes" ; then
26977         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26978         cat >>confdefs.h <<\_ACEOF
26979 #define wxUSE_ODBC 1
26980 _ACEOF
26981
26982     fi
26983
26984         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
26985     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26986
26987                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
26988
26989         WIN32INSTALL=win32install
26990 fi
26991
26992 if test "$wxUSE_GUI" = "yes"; then
26993     USE_GUI=1
26994
26995     GUI_TK_LIBRARY=
26996
26997     WXGTK12=
26998     WXGTK127=
26999     WXGTK20=
27000     WXGPE=
27001
27002     if test "$wxUSE_COCOA" = 1 ; then
27003         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27004             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27005 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27006             wxUSE_PRINTING_ARCHITECTURE=no
27007         fi
27008         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27009             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27010 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27011             wxUSE_DRAG_AND_DROP=no
27012         fi
27013         if test "$wxUSE_DRAGIMAGE" = "yes"; then
27014             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27015 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27016             wxUSE_DRAGIMAGE=no
27017         fi
27018     fi
27019
27020     if test "$wxUSE_MSW" = 1 ; then
27021         TOOLKIT=MSW
27022         GUIDIST=MSW_DIST
27023
27024                 case "${host}" in
27025             *-*-mingw32* )
27026                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27027         esac
27028     fi
27029
27030     if test "$wxUSE_GTK" = 1; then
27031                 ac_ext=c
27032 ac_cpp='$CPP $CPPFLAGS'
27033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27036
27037
27038         echo "$as_me:$LINENO: checking for GTK+ version" >&5
27039 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27040
27041         gtk_version_cached=1
27042         if test "${wx_cv_lib_gtk+set}" = set; then
27043   echo $ECHO_N "(cached) $ECHO_C" >&6
27044 else
27045
27046                                                 gtk_version_cached=0
27047                 echo "$as_me:$LINENO: result: " >&5
27048 echo "${ECHO_T}" >&6
27049
27050                                                 GTK_MODULES=
27051                 if test "$wxUSE_THREADS" = "yes"; then
27052                     GTK_MODULES=gthread
27053                 fi
27054
27055                                 wx_cv_lib_gtk=
27056                 if test "x$wxGTK_VERSION" != "x1"
27057                 then
27058                                                                                 case "${host}" in
27059                         *-*-solaris2* )
27060                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27061                             enable_gtktest=no
27062                             fi
27063                     esac
27064
27065                     # Check whether --enable-gtktest or --disable-gtktest was given.
27066 if test "${enable_gtktest+set}" = set; then
27067   enableval="$enable_gtktest"
27068
27069 else
27070   enable_gtktest=yes
27071 fi;
27072
27073   pkg_config_args=gtk+-2.0
27074   for module in . $GTK_MODULES
27075   do
27076       case "$module" in
27077          gthread)
27078              pkg_config_args="$pkg_config_args gthread-2.0"
27079          ;;
27080       esac
27081   done
27082
27083   no_gtk=""
27084
27085   # Extract the first word of "pkg-config", so it can be a program name with args.
27086 set dummy pkg-config; ac_word=$2
27087 echo "$as_me:$LINENO: checking for $ac_word" >&5
27088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27089 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27090   echo $ECHO_N "(cached) $ECHO_C" >&6
27091 else
27092   case $PKG_CONFIG in
27093   [\\/]* | ?:[\\/]*)
27094   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27095   ;;
27096   *)
27097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27098 for as_dir in $PATH
27099 do
27100   IFS=$as_save_IFS
27101   test -z "$as_dir" && as_dir=.
27102   for ac_exec_ext in '' $ac_executable_extensions; do
27103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27104     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27106     break 2
27107   fi
27108 done
27109 done
27110
27111   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27112   ;;
27113 esac
27114 fi
27115 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27116
27117 if test -n "$PKG_CONFIG"; then
27118   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27119 echo "${ECHO_T}$PKG_CONFIG" >&6
27120 else
27121   echo "$as_me:$LINENO: result: no" >&5
27122 echo "${ECHO_T}no" >&6
27123 fi
27124
27125
27126   if test x$PKG_CONFIG != xno ; then
27127     if pkg-config --atleast-pkgconfig-version 0.7 ; then
27128       :
27129     else
27130       echo "*** pkg-config too old; version 0.7 or better required."
27131       no_gtk=yes
27132       PKG_CONFIG=no
27133     fi
27134   else
27135     no_gtk=yes
27136   fi
27137
27138   min_gtk_version=2.0.0
27139   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27140 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27141
27142   if test x$PKG_CONFIG != xno ; then
27143     ## don't try to run the test against uninstalled libtool libs
27144     if $PKG_CONFIG --uninstalled $pkg_config_args; then
27145           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27146           enable_gtktest=no
27147     fi
27148
27149     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27150           :
27151     else
27152           no_gtk=yes
27153     fi
27154   fi
27155
27156   if test x"$no_gtk" = x ; then
27157     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27158     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27159     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27160            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27161     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27162            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27163     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27164            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27165     if test "x$enable_gtktest" = "xyes" ; then
27166       ac_save_CFLAGS="$CFLAGS"
27167       ac_save_LIBS="$LIBS"
27168       CFLAGS="$CFLAGS $GTK_CFLAGS"
27169       LIBS="$GTK_LIBS $LIBS"
27170       rm -f conf.gtktest
27171       if test "$cross_compiling" = yes; then
27172   echo $ac_n "cross compiling; assumed OK... $ac_c"
27173 else
27174   cat >conftest.$ac_ext <<_ACEOF
27175 /* confdefs.h.  */
27176 _ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h.  */
27180
27181 #include <gtk/gtk.h>
27182 #include <stdio.h>
27183 #include <stdlib.h>
27184
27185 int
27186 main ()
27187 {
27188   int major, minor, micro;
27189   char *tmp_version;
27190
27191   system ("touch conf.gtktest");
27192
27193   /* HP/UX 9 (%@#!) writes to sscanf strings */
27194   tmp_version = g_strdup("$min_gtk_version");
27195   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27196      printf("%s, bad version string\n", "$min_gtk_version");
27197      exit(1);
27198    }
27199
27200   if ((gtk_major_version != $gtk_config_major_version) ||
27201       (gtk_minor_version != $gtk_config_minor_version) ||
27202       (gtk_micro_version != $gtk_config_micro_version))
27203     {
27204       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27205              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27206              gtk_major_version, gtk_minor_version, gtk_micro_version);
27207       printf ("*** was found! If pkg-config was correct, then it is best\n");
27208       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27209       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27210       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27211       printf("*** required on your system.\n");
27212       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27213       printf("*** to point to the correct configuration files\n");
27214     }
27215   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27216            (gtk_minor_version != GTK_MINOR_VERSION) ||
27217            (gtk_micro_version != GTK_MICRO_VERSION))
27218     {
27219       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27220              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27221       printf("*** library (version %d.%d.%d)\n",
27222              gtk_major_version, gtk_minor_version, gtk_micro_version);
27223     }
27224   else
27225     {
27226       if ((gtk_major_version > major) ||
27227         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27228         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27229       {
27230         return 0;
27231        }
27232      else
27233       {
27234         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27235                gtk_major_version, gtk_minor_version, gtk_micro_version);
27236         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27237                major, minor, micro);
27238         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27239         printf("***\n");
27240         printf("*** If you have already installed a sufficiently new version, this error\n");
27241         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27242         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27243         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27244         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27245         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27246         printf("*** so that the correct libraries are found at run-time))\n");
27247       }
27248     }
27249   return 1;
27250 }
27251
27252 _ACEOF
27253 rm -f conftest$ac_exeext
27254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27255   (eval $ac_link) 2>&5
27256   ac_status=$?
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260   (eval $ac_try) 2>&5
27261   ac_status=$?
27262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263   (exit $ac_status); }; }; then
27264   :
27265 else
27266   echo "$as_me: program exited with status $ac_status" >&5
27267 echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27269
27270 ( exit $ac_status )
27271 no_gtk=yes
27272 fi
27273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27274 fi
27275        CFLAGS="$ac_save_CFLAGS"
27276        LIBS="$ac_save_LIBS"
27277      fi
27278   fi
27279   if test "x$no_gtk" = x ; then
27280      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27281 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27282      wx_cv_lib_gtk=2.0
27283   else
27284      echo "$as_me:$LINENO: result: no" >&5
27285 echo "${ECHO_T}no" >&6
27286      if test "$PKG_CONFIG" = "no" ; then
27287        echo "*** A new enough version of pkg-config was not found."
27288        echo "*** See http://pkgconfig.sourceforge.net"
27289      else
27290        if test -f conf.gtktest ; then
27291         :
27292        else
27293           echo "*** Could not run GTK+ test program, checking why..."
27294           ac_save_CFLAGS="$CFLAGS"
27295           ac_save_LIBS="$LIBS"
27296           CFLAGS="$CFLAGS $GTK_CFLAGS"
27297           LIBS="$LIBS $GTK_LIBS"
27298           cat >conftest.$ac_ext <<_ACEOF
27299 /* confdefs.h.  */
27300 _ACEOF
27301 cat confdefs.h >>conftest.$ac_ext
27302 cat >>conftest.$ac_ext <<_ACEOF
27303 /* end confdefs.h.  */
27304
27305 #include <gtk/gtk.h>
27306 #include <stdio.h>
27307
27308 int
27309 main ()
27310 {
27311  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27312   ;
27313   return 0;
27314 }
27315 _ACEOF
27316 rm -f conftest.$ac_objext conftest$ac_exeext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27318   (eval $ac_link) 2>conftest.er1
27319   ac_status=$?
27320   grep -v '^ *+' conftest.er1 >conftest.err
27321   rm -f conftest.er1
27322   cat conftest.err >&5
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } &&
27325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327   (eval $ac_try) 2>&5
27328   ac_status=$?
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); }; } &&
27331          { ac_try='test -s conftest$ac_exeext'
27332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333   (eval $ac_try) 2>&5
27334   ac_status=$?
27335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); }; }; then
27337    echo "*** The test program compiled, but did not run. This usually means"
27338           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27339           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27340           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27341           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27342           echo "*** is required on your system"
27343           echo "***"
27344           echo "*** If you have an old version installed, it is best to remove it, although"
27345           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27346 else
27347   echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27349
27350  echo "*** The test program failed to compile or link. See the file config.log for the"
27351           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27352 fi
27353 rm -f conftest.err conftest.$ac_objext \
27354       conftest$ac_exeext conftest.$ac_ext
27355           CFLAGS="$ac_save_CFLAGS"
27356           LIBS="$ac_save_LIBS"
27357        fi
27358      fi
27359      GTK_CFLAGS=""
27360      GTK_LIBS=""
27361      :
27362   fi
27363
27364
27365   rm -f conf.gtktest
27366
27367
27368                                         case "${host}" in
27369                         *-*-solaris2* )
27370                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27371                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27372                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27373                             fi
27374                                                         if test "$wxUSE_SHARED" != "yes"; then
27375                                 GTK_LIBS="$GTK_LIBS -lX11"
27376                             fi
27377                     esac
27378                 fi
27379
27380                                 if test -z "$wx_cv_lib_gtk"; then
27381                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
27382
27383 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27384 if test "${with_gtk_prefix+set}" = set; then
27385   withval="$with_gtk_prefix"
27386   gtk_config_prefix="$withval"
27387 else
27388   gtk_config_prefix=""
27389 fi;
27390
27391 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27392 if test "${with_gtk_exec_prefix+set}" = set; then
27393   withval="$with_gtk_exec_prefix"
27394   gtk_config_exec_prefix="$withval"
27395 else
27396   gtk_config_exec_prefix=""
27397 fi;
27398 # Check whether --enable-gtktest or --disable-gtktest was given.
27399 if test "${enable_gtktest+set}" = set; then
27400   enableval="$enable_gtktest"
27401
27402 else
27403   enable_gtktest=yes
27404 fi;
27405
27406   for module in . $GTK_MODULES
27407   do
27408       case "$module" in
27409          gthread)
27410              gtk_config_args="$gtk_config_args gthread"
27411          ;;
27412       esac
27413   done
27414
27415   if test x$gtk_config_exec_prefix != x ; then
27416      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27417      if test x${GTK_CONFIG+set} != xset ; then
27418         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27419      fi
27420   fi
27421   if test x$gtk_config_prefix != x ; then
27422      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27423      if test x${GTK_CONFIG+set} != xset ; then
27424         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27425      fi
27426   fi
27427
27428   # Extract the first word of "gtk-config", so it can be a program name with args.
27429 set dummy gtk-config; ac_word=$2
27430 echo "$as_me:$LINENO: checking for $ac_word" >&5
27431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27432 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27433   echo $ECHO_N "(cached) $ECHO_C" >&6
27434 else
27435   case $GTK_CONFIG in
27436   [\\/]* | ?:[\\/]*)
27437   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27438   ;;
27439   *)
27440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27441 for as_dir in $PATH
27442 do
27443   IFS=$as_save_IFS
27444   test -z "$as_dir" && as_dir=.
27445   for ac_exec_ext in '' $ac_executable_extensions; do
27446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27447     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27449     break 2
27450   fi
27451 done
27452 done
27453
27454   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27455   ;;
27456 esac
27457 fi
27458 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27459
27460 if test -n "$GTK_CONFIG"; then
27461   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27462 echo "${ECHO_T}$GTK_CONFIG" >&6
27463 else
27464   echo "$as_me:$LINENO: result: no" >&5
27465 echo "${ECHO_T}no" >&6
27466 fi
27467
27468   min_gtk_version=1.2.7
27469   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27470 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27471   no_gtk=""
27472   if test "$GTK_CONFIG" = "no" ; then
27473     no_gtk=yes
27474   else
27475     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27476     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27477     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27478            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27479     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27480            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27481     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27482            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27483     if test "x$enable_gtktest" = "xyes" ; then
27484       ac_save_CFLAGS="$CFLAGS"
27485       ac_save_LIBS="$LIBS"
27486       CFLAGS="$CFLAGS $GTK_CFLAGS"
27487       LIBS="$GTK_LIBS $LIBS"
27488       rm -f conf.gtktest
27489       if test "$cross_compiling" = yes; then
27490   echo $ac_n "cross compiling; assumed OK... $ac_c"
27491 else
27492   cat >conftest.$ac_ext <<_ACEOF
27493 /* confdefs.h.  */
27494 _ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h.  */
27498
27499 #include <gtk/gtk.h>
27500 #include <stdio.h>
27501 #include <stdlib.h>
27502
27503 int
27504 main ()
27505 {
27506   int major, minor, micro;
27507   char *tmp_version;
27508
27509   system ("touch conf.gtktest");
27510
27511   /* HP/UX 9 (%@#!) writes to sscanf strings */
27512   tmp_version = g_strdup("$min_gtk_version");
27513   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27514      printf("%s, bad version string\n", "$min_gtk_version");
27515      exit(1);
27516    }
27517
27518   if ((gtk_major_version != $gtk_config_major_version) ||
27519       (gtk_minor_version != $gtk_config_minor_version) ||
27520       (gtk_micro_version != $gtk_config_micro_version))
27521     {
27522       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27523              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27524              gtk_major_version, gtk_minor_version, gtk_micro_version);
27525       printf ("*** was found! If gtk-config was correct, then it is best\n");
27526       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27527       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27528       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27529       printf("*** required on your system.\n");
27530       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27531       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27532       printf("*** before re-running configure\n");
27533     }
27534 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27535   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27536            (gtk_minor_version != GTK_MINOR_VERSION) ||
27537            (gtk_micro_version != GTK_MICRO_VERSION))
27538     {
27539       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27540              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27541       printf("*** library (version %d.%d.%d)\n",
27542              gtk_major_version, gtk_minor_version, gtk_micro_version);
27543     }
27544 #endif /* defined (GTK_MAJOR_VERSION) ... */
27545   else
27546     {
27547       if ((gtk_major_version > major) ||
27548         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27549         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27550       {
27551         return 0;
27552        }
27553      else
27554       {
27555         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27556                gtk_major_version, gtk_minor_version, gtk_micro_version);
27557         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27558                major, minor, micro);
27559         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27560         printf("***\n");
27561         printf("*** If you have already installed a sufficiently new version, this error\n");
27562         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27563         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27564         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27565         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27566         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27567         printf("*** so that the correct libraries are found at run-time))\n");
27568       }
27569     }
27570   return 1;
27571 }
27572
27573 _ACEOF
27574 rm -f conftest$ac_exeext
27575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27576   (eval $ac_link) 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581   (eval $ac_try) 2>&5
27582   ac_status=$?
27583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584   (exit $ac_status); }; }; then
27585   :
27586 else
27587   echo "$as_me: program exited with status $ac_status" >&5
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27590
27591 ( exit $ac_status )
27592 no_gtk=yes
27593 fi
27594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27595 fi
27596        CFLAGS="$ac_save_CFLAGS"
27597        LIBS="$ac_save_LIBS"
27598      fi
27599   fi
27600   if test "x$no_gtk" = x ; then
27601      echo "$as_me:$LINENO: result: yes" >&5
27602 echo "${ECHO_T}yes" >&6
27603      wx_cv_lib_gtk=1.2.7
27604   else
27605      echo "$as_me:$LINENO: result: no" >&5
27606 echo "${ECHO_T}no" >&6
27607      if test "$GTK_CONFIG" = "no" ; then
27608        echo "*** The gtk-config script installed by GTK could not be found"
27609        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27610        echo "*** your path, or set the GTK_CONFIG environment variable to the"
27611        echo "*** full path to gtk-config."
27612      else
27613        if test -f conf.gtktest ; then
27614         :
27615        else
27616           echo "*** Could not run GTK test program, checking why..."
27617           CFLAGS="$CFLAGS $GTK_CFLAGS"
27618           LIBS="$LIBS $GTK_LIBS"
27619           cat >conftest.$ac_ext <<_ACEOF
27620 /* confdefs.h.  */
27621 _ACEOF
27622 cat confdefs.h >>conftest.$ac_ext
27623 cat >>conftest.$ac_ext <<_ACEOF
27624 /* end confdefs.h.  */
27625
27626 #include <gtk/gtk.h>
27627 #include <stdio.h>
27628
27629 int
27630 main ()
27631 {
27632  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27633   ;
27634   return 0;
27635 }
27636 _ACEOF
27637 rm -f conftest.$ac_objext conftest$ac_exeext
27638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27639   (eval $ac_link) 2>conftest.er1
27640   ac_status=$?
27641   grep -v '^ *+' conftest.er1 >conftest.err
27642   rm -f conftest.er1
27643   cat conftest.err >&5
27644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645   (exit $ac_status); } &&
27646          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648   (eval $ac_try) 2>&5
27649   ac_status=$?
27650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651   (exit $ac_status); }; } &&
27652          { ac_try='test -s conftest$ac_exeext'
27653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654   (eval $ac_try) 2>&5
27655   ac_status=$?
27656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657   (exit $ac_status); }; }; then
27658    echo "*** The test program compiled, but did not run. This usually means"
27659           echo "*** that the run-time linker is not finding GTK or finding the wrong"
27660           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27661           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27662           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27663           echo "*** is required on your system"
27664           echo "***"
27665           echo "*** If you have an old version installed, it is best to remove it, although"
27666           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27667           echo "***"
27668           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27669           echo "*** came with the system with the command"
27670           echo "***"
27671           echo "***    rpm --erase --nodeps gtk gtk-devel"
27672 else
27673   echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.$ac_ext >&5
27675
27676  echo "*** The test program failed to compile or link. See the file config.log for the"
27677           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27678           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27679           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27680 fi
27681 rm -f conftest.err conftest.$ac_objext \
27682       conftest$ac_exeext conftest.$ac_ext
27683           CFLAGS="$ac_save_CFLAGS"
27684           LIBS="$ac_save_LIBS"
27685        fi
27686      fi
27687      GTK_CFLAGS=""
27688      GTK_LIBS=""
27689      :
27690   fi
27691
27692
27693   rm -f conf.gtktest
27694
27695
27696                         if test -z "$wx_cv_lib_gtk"; then
27697
27698 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27699 if test "${with_gtk_prefix+set}" = set; then
27700   withval="$with_gtk_prefix"
27701   gtk_config_prefix="$withval"
27702 else
27703   gtk_config_prefix=""
27704 fi;
27705
27706 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27707 if test "${with_gtk_exec_prefix+set}" = set; then
27708   withval="$with_gtk_exec_prefix"
27709   gtk_config_exec_prefix="$withval"
27710 else
27711   gtk_config_exec_prefix=""
27712 fi;
27713 # Check whether --enable-gtktest or --disable-gtktest was given.
27714 if test "${enable_gtktest+set}" = set; then
27715   enableval="$enable_gtktest"
27716
27717 else
27718   enable_gtktest=yes
27719 fi;
27720
27721   for module in . $GTK_MODULES
27722   do
27723       case "$module" in
27724          gthread)
27725              gtk_config_args="$gtk_config_args gthread"
27726          ;;
27727       esac
27728   done
27729
27730   if test x$gtk_config_exec_prefix != x ; then
27731      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27732      if test x${GTK_CONFIG+set} != xset ; then
27733         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27734      fi
27735   fi
27736   if test x$gtk_config_prefix != x ; then
27737      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27738      if test x${GTK_CONFIG+set} != xset ; then
27739         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27740      fi
27741   fi
27742
27743   # Extract the first word of "gtk-config", so it can be a program name with args.
27744 set dummy gtk-config; ac_word=$2
27745 echo "$as_me:$LINENO: checking for $ac_word" >&5
27746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27747 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27748   echo $ECHO_N "(cached) $ECHO_C" >&6
27749 else
27750   case $GTK_CONFIG in
27751   [\\/]* | ?:[\\/]*)
27752   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27753   ;;
27754   *)
27755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27756 for as_dir in $PATH
27757 do
27758   IFS=$as_save_IFS
27759   test -z "$as_dir" && as_dir=.
27760   for ac_exec_ext in '' $ac_executable_extensions; do
27761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27762     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27764     break 2
27765   fi
27766 done
27767 done
27768
27769   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27770   ;;
27771 esac
27772 fi
27773 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27774
27775 if test -n "$GTK_CONFIG"; then
27776   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27777 echo "${ECHO_T}$GTK_CONFIG" >&6
27778 else
27779   echo "$as_me:$LINENO: result: no" >&5
27780 echo "${ECHO_T}no" >&6
27781 fi
27782
27783   min_gtk_version=1.2.3
27784   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27785 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27786   no_gtk=""
27787   if test "$GTK_CONFIG" = "no" ; then
27788     no_gtk=yes
27789   else
27790     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27791     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27792     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27793            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27794     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27795            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27796     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27797            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27798     if test "x$enable_gtktest" = "xyes" ; then
27799       ac_save_CFLAGS="$CFLAGS"
27800       ac_save_LIBS="$LIBS"
27801       CFLAGS="$CFLAGS $GTK_CFLAGS"
27802       LIBS="$GTK_LIBS $LIBS"
27803       rm -f conf.gtktest
27804       if test "$cross_compiling" = yes; then
27805   echo $ac_n "cross compiling; assumed OK... $ac_c"
27806 else
27807   cat >conftest.$ac_ext <<_ACEOF
27808 /* confdefs.h.  */
27809 _ACEOF
27810 cat confdefs.h >>conftest.$ac_ext
27811 cat >>conftest.$ac_ext <<_ACEOF
27812 /* end confdefs.h.  */
27813
27814 #include <gtk/gtk.h>
27815 #include <stdio.h>
27816 #include <stdlib.h>
27817
27818 int
27819 main ()
27820 {
27821   int major, minor, micro;
27822   char *tmp_version;
27823
27824   system ("touch conf.gtktest");
27825
27826   /* HP/UX 9 (%@#!) writes to sscanf strings */
27827   tmp_version = g_strdup("$min_gtk_version");
27828   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27829      printf("%s, bad version string\n", "$min_gtk_version");
27830      exit(1);
27831    }
27832
27833   if ((gtk_major_version != $gtk_config_major_version) ||
27834       (gtk_minor_version != $gtk_config_minor_version) ||
27835       (gtk_micro_version != $gtk_config_micro_version))
27836     {
27837       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27838              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27839              gtk_major_version, gtk_minor_version, gtk_micro_version);
27840       printf ("*** was found! If gtk-config was correct, then it is best\n");
27841       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27842       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27843       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27844       printf("*** required on your system.\n");
27845       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27846       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27847       printf("*** before re-running configure\n");
27848     }
27849 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27850   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27851            (gtk_minor_version != GTK_MINOR_VERSION) ||
27852            (gtk_micro_version != GTK_MICRO_VERSION))
27853     {
27854       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27855              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27856       printf("*** library (version %d.%d.%d)\n",
27857              gtk_major_version, gtk_minor_version, gtk_micro_version);
27858     }
27859 #endif /* defined (GTK_MAJOR_VERSION) ... */
27860   else
27861     {
27862       if ((gtk_major_version > major) ||
27863         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27864         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27865       {
27866         return 0;
27867        }
27868      else
27869       {
27870         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27871                gtk_major_version, gtk_minor_version, gtk_micro_version);
27872         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27873                major, minor, micro);
27874         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27875         printf("***\n");
27876         printf("*** If you have already installed a sufficiently new version, this error\n");
27877         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27878         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27879         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27880         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27881         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27882         printf("*** so that the correct libraries are found at run-time))\n");
27883       }
27884     }
27885   return 1;
27886 }
27887
27888 _ACEOF
27889 rm -f conftest$ac_exeext
27890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27891   (eval $ac_link) 2>&5
27892   ac_status=$?
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27896   (eval $ac_try) 2>&5
27897   ac_status=$?
27898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899   (exit $ac_status); }; }; then
27900   :
27901 else
27902   echo "$as_me: program exited with status $ac_status" >&5
27903 echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27905
27906 ( exit $ac_status )
27907 no_gtk=yes
27908 fi
27909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27910 fi
27911        CFLAGS="$ac_save_CFLAGS"
27912        LIBS="$ac_save_LIBS"
27913      fi
27914   fi
27915   if test "x$no_gtk" = x ; then
27916      echo "$as_me:$LINENO: result: yes" >&5
27917 echo "${ECHO_T}yes" >&6
27918      wx_cv_lib_gtk=1.2.3
27919   else
27920      echo "$as_me:$LINENO: result: no" >&5
27921 echo "${ECHO_T}no" >&6
27922      if test "$GTK_CONFIG" = "no" ; then
27923        echo "*** The gtk-config script installed by GTK could not be found"
27924        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27925        echo "*** your path, or set the GTK_CONFIG environment variable to the"
27926        echo "*** full path to gtk-config."
27927      else
27928        if test -f conf.gtktest ; then
27929         :
27930        else
27931           echo "*** Could not run GTK test program, checking why..."
27932           CFLAGS="$CFLAGS $GTK_CFLAGS"
27933           LIBS="$LIBS $GTK_LIBS"
27934           cat >conftest.$ac_ext <<_ACEOF
27935 /* confdefs.h.  */
27936 _ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h.  */
27940
27941 #include <gtk/gtk.h>
27942 #include <stdio.h>
27943
27944 int
27945 main ()
27946 {
27947  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27948   ;
27949   return 0;
27950 }
27951 _ACEOF
27952 rm -f conftest.$ac_objext conftest$ac_exeext
27953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27954   (eval $ac_link) 2>conftest.er1
27955   ac_status=$?
27956   grep -v '^ *+' conftest.er1 >conftest.err
27957   rm -f conftest.er1
27958   cat conftest.err >&5
27959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); } &&
27961          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963   (eval $ac_try) 2>&5
27964   ac_status=$?
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); }; } &&
27967          { ac_try='test -s conftest$ac_exeext'
27968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969   (eval $ac_try) 2>&5
27970   ac_status=$?
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); }; }; then
27973    echo "*** The test program compiled, but did not run. This usually means"
27974           echo "*** that the run-time linker is not finding GTK or finding the wrong"
27975           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27976           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27977           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27978           echo "*** is required on your system"
27979           echo "***"
27980           echo "*** If you have an old version installed, it is best to remove it, although"
27981           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27982           echo "***"
27983           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27984           echo "*** came with the system with the command"
27985           echo "***"
27986           echo "***    rpm --erase --nodeps gtk gtk-devel"
27987 else
27988   echo "$as_me: failed program was:" >&5
27989 sed 's/^/| /' conftest.$ac_ext >&5
27990
27991  echo "*** The test program failed to compile or link. See the file config.log for the"
27992           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27993           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27994           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27995 fi
27996 rm -f conftest.err conftest.$ac_objext \
27997       conftest$ac_exeext conftest.$ac_ext
27998           CFLAGS="$ac_save_CFLAGS"
27999           LIBS="$ac_save_LIBS"
28000        fi
28001      fi
28002      GTK_CFLAGS=""
28003      GTK_LIBS=""
28004      :
28005   fi
28006
28007
28008   rm -f conf.gtktest
28009
28010                         fi
28011                     fi
28012                 fi
28013
28014                 if test -z "$wx_cv_lib_gtk"; then
28015                                         wx_cv_lib_gtk=none
28016                 else
28017                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
28018                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28019                 fi
28020
28021
28022 fi
28023
28024
28025                         if test "$gtk_version_cached" = 1; then
28026             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28027 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28028         fi
28029
28030         case "$wx_cv_lib_gtk" in
28031             2.0)    WXGTK20=1
28032                     TOOLKIT_VERSION=2
28033                     ;;
28034             1.2.7)  WXGTK127=1
28035                     WXGTK12=1
28036                     ;;
28037             1.2.3)  WXGTK12=1
28038                     ;;
28039             *)      { { echo "$as_me:$LINENO: error:
28040 The development files for GTK+ were not found. For GTK+ 2, please
28041 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28042 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28043 and that the version is 1.2.3 or above. Also check that the
28044 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28045 --libs' are in the LD_LIBRARY_PATH or equivalent.
28046                             " >&5
28047 echo "$as_me: error:
28048 The development files for GTK+ were not found. For GTK+ 2, please
28049 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28050 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28051 and that the version is 1.2.3 or above. Also check that the
28052 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28053 --libs' are in the LD_LIBRARY_PATH or equivalent.
28054                             " >&2;}
28055    { (exit 1); exit 1; }; }
28056                     ;;
28057         esac
28058
28059         if test "$WXGTK20" = 1; then
28060             save_CFLAGS="$CFLAGS"
28061             save_LIBS="$LIBS"
28062             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28063             LIBS="$LIBS $wx_cv_libs_gtk"
28064
28065                                                             echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
28066 echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
28067             cat >conftest.$ac_ext <<_ACEOF
28068 /* confdefs.h.  */
28069 _ACEOF
28070 cat confdefs.h >>conftest.$ac_ext
28071 cat >>conftest.$ac_ext <<_ACEOF
28072 /* end confdefs.h.  */
28073
28074                             #include <gtk/gtk.h>
28075
28076 int
28077 main ()
28078 {
28079
28080                             void *f = gtk_icon_size_lookup;
28081
28082   ;
28083   return 0;
28084 }
28085 _ACEOF
28086 rm -f conftest.$ac_objext
28087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28088   (eval $ac_compile) 2>conftest.er1
28089   ac_status=$?
28090   grep -v '^ *+' conftest.er1 >conftest.err
28091   rm -f conftest.er1
28092   cat conftest.err >&5
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); } &&
28095          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28097   (eval $ac_try) 2>&5
28098   ac_status=$?
28099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100   (exit $ac_status); }; } &&
28101          { ac_try='test -s conftest.$ac_objext'
28102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28103   (eval $ac_try) 2>&5
28104   ac_status=$?
28105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106   (exit $ac_status); }; }; then
28107
28108                             echo "$as_me:$LINENO: result: no" >&5
28109 echo "${ECHO_T}no" >&6
28110
28111 else
28112   echo "$as_me: failed program was:" >&5
28113 sed 's/^/| /' conftest.$ac_ext >&5
28114
28115
28116                             cat >>confdefs.h <<\_ACEOF
28117 #define NEED_GTK_ICON_SIZE_LOOKUP 1
28118 _ACEOF
28119
28120                             echo "$as_me:$LINENO: result: yes" >&5
28121 echo "${ECHO_T}yes" >&6
28122
28123 fi
28124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28125
28126                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28127 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28128             cat >conftest.$ac_ext <<_ACEOF
28129 /* confdefs.h.  */
28130 _ACEOF
28131 cat confdefs.h >>conftest.$ac_ext
28132 cat >>conftest.$ac_ext <<_ACEOF
28133 /* end confdefs.h.  */
28134
28135                             #include <gtk/gtk.h>
28136
28137 int
28138 main ()
28139 {
28140
28141                             #if !GTK_CHECK_VERSION(2,6,0)
28142                             Not GTK+ 2.6
28143                             #endif
28144
28145   ;
28146   return 0;
28147 }
28148 _ACEOF
28149 rm -f conftest.$ac_objext
28150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28151   (eval $ac_compile) 2>conftest.er1
28152   ac_status=$?
28153   grep -v '^ *+' conftest.er1 >conftest.err
28154   rm -f conftest.er1
28155   cat conftest.err >&5
28156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157   (exit $ac_status); } &&
28158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160   (eval $ac_try) 2>&5
28161   ac_status=$?
28162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163   (exit $ac_status); }; } &&
28164          { ac_try='test -s conftest.$ac_objext'
28165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166   (eval $ac_try) 2>&5
28167   ac_status=$?
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); }; }; then
28170
28171                             cat >>confdefs.h <<\_ACEOF
28172 #define __WXGTK26__ 1
28173 _ACEOF
28174
28175                             cat >>confdefs.h <<\_ACEOF
28176 #define __WXGTK24__ 1
28177 _ACEOF
28178
28179                             echo "$as_me:$LINENO: result: yes" >&5
28180 echo "${ECHO_T}yes" >&6
28181                             ac_wxgtk26=1
28182
28183 else
28184   echo "$as_me: failed program was:" >&5
28185 sed 's/^/| /' conftest.$ac_ext >&5
28186
28187
28188                             echo "$as_me:$LINENO: result: no" >&5
28189 echo "${ECHO_T}no" >&6
28190                             ac_wxgtk26=0
28191
28192 fi
28193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28194
28195             if test "$ac_wxgtk26" = 0; then
28196                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28197 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28198             cat >conftest.$ac_ext <<_ACEOF
28199 /* confdefs.h.  */
28200 _ACEOF
28201 cat confdefs.h >>conftest.$ac_ext
28202 cat >>conftest.$ac_ext <<_ACEOF
28203 /* end confdefs.h.  */
28204
28205                             #include <gtk/gtk.h>
28206
28207 int
28208 main ()
28209 {
28210
28211                             #if !GTK_CHECK_VERSION(2,4,0)
28212                             Not GTK+ 2.4
28213                             #endif
28214
28215   ;
28216   return 0;
28217 }
28218 _ACEOF
28219 rm -f conftest.$ac_objext
28220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28221   (eval $ac_compile) 2>conftest.er1
28222   ac_status=$?
28223   grep -v '^ *+' conftest.er1 >conftest.err
28224   rm -f conftest.er1
28225   cat conftest.err >&5
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); } &&
28228          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230   (eval $ac_try) 2>&5
28231   ac_status=$?
28232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233   (exit $ac_status); }; } &&
28234          { ac_try='test -s conftest.$ac_objext'
28235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236   (eval $ac_try) 2>&5
28237   ac_status=$?
28238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239   (exit $ac_status); }; }; then
28240
28241                             cat >>confdefs.h <<\_ACEOF
28242 #define __WXGTK24__ 1
28243 _ACEOF
28244
28245                             echo "$as_me:$LINENO: result: yes" >&5
28246 echo "${ECHO_T}yes" >&6
28247
28248 else
28249   echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28251
28252
28253                             echo "$as_me:$LINENO: result: no" >&5
28254 echo "${ECHO_T}no" >&6
28255
28256 fi
28257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28258             fi
28259
28260             CFLAGS="$save_CFLAGS"
28261             LIBS="$save_LIBS"
28262         else
28263             if test "$wxUSE_UNICODE" = "yes"; then
28264                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28265 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28266                 wxUSE_UNICODE=no
28267             fi
28268         fi
28269
28270         ac_ext=cc
28271 ac_cpp='$CXXCPP $CPPFLAGS'
28272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28275
28276
28277                         if test "$USE_DARWIN" != 1; then
28278
28279 for ac_func in poll
28280 do
28281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28282 echo "$as_me:$LINENO: checking for $ac_func" >&5
28283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28284 if eval "test \"\${$as_ac_var+set}\" = set"; then
28285   echo $ECHO_N "(cached) $ECHO_C" >&6
28286 else
28287   cat >conftest.$ac_ext <<_ACEOF
28288 /* confdefs.h.  */
28289 _ACEOF
28290 cat confdefs.h >>conftest.$ac_ext
28291 cat >>conftest.$ac_ext <<_ACEOF
28292 /* end confdefs.h.  */
28293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28295 #define $ac_func innocuous_$ac_func
28296
28297 /* System header to define __stub macros and hopefully few prototypes,
28298     which can conflict with char $ac_func (); below.
28299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28300     <limits.h> exists even on freestanding compilers.  */
28301
28302 #ifdef __STDC__
28303 # include <limits.h>
28304 #else
28305 # include <assert.h>
28306 #endif
28307
28308 #undef $ac_func
28309
28310 /* Override any gcc2 internal prototype to avoid an error.  */
28311 #ifdef __cplusplus
28312 extern "C"
28313 {
28314 #endif
28315 /* We use char because int might match the return type of a gcc2
28316    builtin and then its argument prototype would still apply.  */
28317 char $ac_func ();
28318 /* The GNU C library defines this for functions which it implements
28319     to always fail with ENOSYS.  Some functions are actually named
28320     something starting with __ and the normal name is an alias.  */
28321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28322 choke me
28323 #else
28324 char (*f) () = $ac_func;
28325 #endif
28326 #ifdef __cplusplus
28327 }
28328 #endif
28329
28330 int
28331 main ()
28332 {
28333 return f != $ac_func;
28334   ;
28335   return 0;
28336 }
28337 _ACEOF
28338 rm -f conftest.$ac_objext conftest$ac_exeext
28339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28340   (eval $ac_link) 2>conftest.er1
28341   ac_status=$?
28342   grep -v '^ *+' conftest.er1 >conftest.err
28343   rm -f conftest.er1
28344   cat conftest.err >&5
28345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346   (exit $ac_status); } &&
28347          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28349   (eval $ac_try) 2>&5
28350   ac_status=$?
28351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352   (exit $ac_status); }; } &&
28353          { ac_try='test -s conftest$ac_exeext'
28354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355   (eval $ac_try) 2>&5
28356   ac_status=$?
28357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358   (exit $ac_status); }; }; then
28359   eval "$as_ac_var=yes"
28360 else
28361   echo "$as_me: failed program was:" >&5
28362 sed 's/^/| /' conftest.$ac_ext >&5
28363
28364 eval "$as_ac_var=no"
28365 fi
28366 rm -f conftest.err conftest.$ac_objext \
28367       conftest$ac_exeext conftest.$ac_ext
28368 fi
28369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28371 if test `eval echo '${'$as_ac_var'}'` = yes; then
28372   cat >>confdefs.h <<_ACEOF
28373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28374 _ACEOF
28375
28376 fi
28377 done
28378
28379         fi
28380
28381         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28382         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28383
28384         AFMINSTALL=afminstall
28385         TOOLKIT=GTK
28386         GUIDIST=GTK_DIST
28387
28388                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28389 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28390 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28391   echo $ECHO_N "(cached) $ECHO_C" >&6
28392 else
28393   ac_check_lib_save_LIBS=$LIBS
28394 LIBS="-lgdk  $LIBS"
28395 cat >conftest.$ac_ext <<_ACEOF
28396 /* confdefs.h.  */
28397 _ACEOF
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h.  */
28401
28402 /* Override any gcc2 internal prototype to avoid an error.  */
28403 #ifdef __cplusplus
28404 extern "C"
28405 #endif
28406 /* We use char because int might match the return type of a gcc2
28407    builtin and then its argument prototype would still apply.  */
28408 char gdk_im_open ();
28409 int
28410 main ()
28411 {
28412 gdk_im_open ();
28413   ;
28414   return 0;
28415 }
28416 _ACEOF
28417 rm -f conftest.$ac_objext conftest$ac_exeext
28418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28419   (eval $ac_link) 2>conftest.er1
28420   ac_status=$?
28421   grep -v '^ *+' conftest.er1 >conftest.err
28422   rm -f conftest.er1
28423   cat conftest.err >&5
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); } &&
28426          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28428   (eval $ac_try) 2>&5
28429   ac_status=$?
28430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431   (exit $ac_status); }; } &&
28432          { ac_try='test -s conftest$ac_exeext'
28433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28434   (eval $ac_try) 2>&5
28435   ac_status=$?
28436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437   (exit $ac_status); }; }; then
28438   ac_cv_lib_gdk_gdk_im_open=yes
28439 else
28440   echo "$as_me: failed program was:" >&5
28441 sed 's/^/| /' conftest.$ac_ext >&5
28442
28443 ac_cv_lib_gdk_gdk_im_open=no
28444 fi
28445 rm -f conftest.err conftest.$ac_objext \
28446       conftest$ac_exeext conftest.$ac_ext
28447 LIBS=$ac_check_lib_save_LIBS
28448 fi
28449 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28450 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28451 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28452   cat >>confdefs.h <<\_ACEOF
28453 #define HAVE_XIM 1
28454 _ACEOF
28455
28456 fi
28457
28458
28459
28460                 if test "$wxUSE_GPE" = "yes"; then
28461             echo "$as_me:$LINENO: checking for gpewidget library" >&5
28462 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28463
28464   ac_find_libraries=
28465   for ac_dir in $SEARCH_LIB;
28466   do
28467     for ac_extension in a so sl dylib dll.a; do
28468       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28469         ac_find_libraries=$ac_dir
28470         break 2
28471       fi
28472     done
28473   done
28474
28475             if test "$ac_find_libraries" != "" ; then
28476
28477     if test "$ac_find_libraries" = "default location"; then
28478     ac_path_to_link=""
28479   else
28480     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28481     result=$?
28482     if test $result = 0; then
28483       ac_path_to_link=""
28484     else
28485       ac_path_to_link=" -L$ac_find_libraries"
28486     fi
28487   fi
28488
28489                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28490                 WXGPE=1
28491                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28492 echo "${ECHO_T}found in $ac_find_libraries" >&6
28493             else
28494                 echo "$as_me:$LINENO: result: not found" >&5
28495 echo "${ECHO_T}not found" >&6
28496             fi
28497
28498                                                                                                                     fi
28499     fi
28500
28501     if test "$wxUSE_MGL" = 1; then
28502        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28503 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28504         if test "x$MGL_ROOT" = x ; then
28505             echo "$as_me:$LINENO: result: not found" >&5
28506 echo "${ECHO_T}not found" >&6
28507             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28508 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28509    { (exit 1); exit 1; }; }
28510         else
28511             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28512 echo "${ECHO_T}$MGL_ROOT" >&6
28513         fi
28514
28515         echo "$as_me:$LINENO: checking for libmgl location" >&5
28516 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28517                                 case "${host}" in
28518             *-*-linux* )
28519                                           if test "x$wxUSE_SHARED" = xyes ; then
28520                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28521               else
28522                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28523               fi
28524               ;;
28525             *-pc-msdosdjgpp )
28526               mgl_os_candidates="dos32/dj2"
28527               ;;
28528             *)
28529               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28530 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28531    { (exit 1); exit 1; }; }
28532         esac
28533
28534         mgl_lib_type=""
28535         mgl_os=""
28536
28537         for mgl_os_i in $mgl_os_candidates ; do
28538             if test "x$mgl_os" = x ; then
28539                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28540                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28541                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28542                         mgl_lib_type=debug
28543                         mgl_os=$mgl_os_i
28544                     fi
28545                 fi
28546                 if test "x$mgl_lib_type" = x ; then
28547                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28548                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28549                         mgl_lib_type=release
28550                         mgl_os=$mgl_os_i
28551                     fi
28552                 fi
28553             fi
28554         done
28555
28556         if test "x$mgl_os" = x ; then
28557             echo "$as_me:$LINENO: result: not found" >&5
28558 echo "${ECHO_T}not found" >&6
28559             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28560 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28561    { (exit 1); exit 1; }; }
28562         fi
28563         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28564 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28565
28566         wxUSE_UNIVERSAL="yes"
28567
28568         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28569         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28570
28571         AFMINSTALL=afminstall
28572         TOOLKIT=MGL
28573         GUIDIST=MGL_DIST
28574     fi
28575
28576     if test "$wxUSE_MICROWIN" = 1; then
28577         echo "$as_me:$LINENO: checking for MicroWindows" >&5
28578 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28579         if test "x$MICROWINDOWS" = x ; then
28580             echo "$as_me:$LINENO: result: not found" >&5
28581 echo "${ECHO_T}not found" >&6
28582             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28583 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28584    { (exit 1); exit 1; }; }
28585         else
28586             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28587 echo "${ECHO_T}$MICROWINDOWS" >&6
28588         fi
28589
28590         if test -f $MICROWINDOWS/lib/libmwin.a; then
28591             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28592 echo "${ECHO_T}MicroWindows' libraries found." >&6
28593         else
28594             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28595 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28596    { (exit 1); exit 1; }; }
28597         fi
28598
28599         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28600         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28601
28602         wxUSE_UNIVERSAL="yes"
28603
28604         AFMINSTALL=afminstall
28605         TOOLKIT=MICROWIN
28606         GUIDIST=MICROWIN_DIST
28607
28608         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28609     fi
28610
28611         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
28612
28613 if test "x$ac_path_x_has_been_run" != xyes; then
28614   echo "$as_me:$LINENO: checking for X" >&5
28615 echo $ECHO_N "checking for X... $ECHO_C" >&6
28616
28617 ac_path_x_has_been_run=yes
28618
28619 # Check whether --with-x or --without-x was given.
28620 if test "${with_x+set}" = set; then
28621   withval="$with_x"
28622
28623 fi;
28624 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28625 if test "x$with_x" = xno; then
28626   # The user explicitly disabled X.
28627   have_x=disabled
28628 else
28629   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28630     # Both variables are already set.
28631     have_x=yes
28632   else
28633     if test "${ac_cv_have_x+set}" = set; then
28634   echo $ECHO_N "(cached) $ECHO_C" >&6
28635 else
28636   # One or both of the vars are not set, and there is no cached value.
28637 ac_x_includes=no ac_x_libraries=no
28638 rm -fr conftest.dir
28639 if mkdir conftest.dir; then
28640   cd conftest.dir
28641   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28642   cat >Imakefile <<'_ACEOF'
28643 acfindx:
28644         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28645 _ACEOF
28646   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28647     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28648     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28649     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28650     for ac_extension in a so sl; do
28651       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
28652          test -f $ac_im_libdir/libX11.$ac_extension; then
28653         ac_im_usrlibdir=$ac_im_libdir; break
28654       fi
28655     done
28656     # Screen out bogus values from the imake configuration.  They are
28657     # bogus both because they are the default anyway, and because
28658     # using them would break gcc on systems where it needs fixed includes.
28659     case $ac_im_incroot in
28660         /usr/include) ;;
28661         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28662     esac
28663     case $ac_im_usrlibdir in
28664         /usr/lib | /lib) ;;
28665         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28666     esac
28667   fi
28668   cd ..
28669   rm -fr conftest.dir
28670 fi
28671
28672 # Standard set of common directories for X headers.
28673 # Check X11 before X11Rn because it is often a symlink to the current release.
28674 ac_x_header_dirs='
28675 /usr/X11/include
28676 /usr/X11R6/include
28677 /usr/X11R5/include
28678 /usr/X11R4/include
28679
28680 /usr/include/X11
28681 /usr/include/X11R6
28682 /usr/include/X11R5
28683 /usr/include/X11R4
28684
28685 /usr/local/X11/include
28686 /usr/local/X11R6/include
28687 /usr/local/X11R5/include
28688 /usr/local/X11R4/include
28689
28690 /usr/local/include/X11
28691 /usr/local/include/X11R6
28692 /usr/local/include/X11R5
28693 /usr/local/include/X11R4
28694
28695 /usr/X386/include
28696 /usr/x386/include
28697 /usr/XFree86/include/X11
28698
28699 /usr/include
28700 /usr/local/include
28701 /usr/unsupported/include
28702 /usr/athena/include
28703 /usr/local/x11r5/include
28704 /usr/lpp/Xamples/include
28705
28706 /usr/openwin/include
28707 /usr/openwin/share/include'
28708
28709 if test "$ac_x_includes" = no; then
28710   # Guess where to find include files, by looking for a specified header file.
28711   # First, try using that file with no special directory specified.
28712   cat >conftest.$ac_ext <<_ACEOF
28713 /* confdefs.h.  */
28714 _ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h.  */
28718 #include <X11/Intrinsic.h>
28719 _ACEOF
28720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28722   ac_status=$?
28723   grep -v '^ *+' conftest.er1 >conftest.err
28724   rm -f conftest.er1
28725   cat conftest.err >&5
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); } >/dev/null; then
28728   if test -s conftest.err; then
28729     ac_cpp_err=$ac_cxx_preproc_warn_flag
28730     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28731   else
28732     ac_cpp_err=
28733   fi
28734 else
28735   ac_cpp_err=yes
28736 fi
28737 if test -z "$ac_cpp_err"; then
28738   # We can compile using X headers with no special include directory.
28739 ac_x_includes=
28740 else
28741   echo "$as_me: failed program was:" >&5
28742 sed 's/^/| /' conftest.$ac_ext >&5
28743
28744   for ac_dir in $ac_x_header_dirs; do
28745   if test -r "$ac_dir/X11/Intrinsic.h"; then
28746     ac_x_includes=$ac_dir
28747     break
28748   fi
28749 done
28750 fi
28751 rm -f conftest.err conftest.$ac_ext
28752 fi # $ac_x_includes = no
28753
28754 if test "$ac_x_libraries" = no; then
28755   # Check for the libraries.
28756   # See if we find them without any special options.
28757   # Don't add to $LIBS permanently.
28758   ac_save_LIBS=$LIBS
28759   LIBS="-lXt $LIBS"
28760   cat >conftest.$ac_ext <<_ACEOF
28761 /* confdefs.h.  */
28762 _ACEOF
28763 cat confdefs.h >>conftest.$ac_ext
28764 cat >>conftest.$ac_ext <<_ACEOF
28765 /* end confdefs.h.  */
28766 #include <X11/Intrinsic.h>
28767 int
28768 main ()
28769 {
28770 XtMalloc (0)
28771   ;
28772   return 0;
28773 }
28774 _ACEOF
28775 rm -f conftest.$ac_objext conftest$ac_exeext
28776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28777   (eval $ac_link) 2>conftest.er1
28778   ac_status=$?
28779   grep -v '^ *+' conftest.er1 >conftest.err
28780   rm -f conftest.er1
28781   cat conftest.err >&5
28782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783   (exit $ac_status); } &&
28784          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28786   (eval $ac_try) 2>&5
28787   ac_status=$?
28788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789   (exit $ac_status); }; } &&
28790          { ac_try='test -s conftest$ac_exeext'
28791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792   (eval $ac_try) 2>&5
28793   ac_status=$?
28794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795   (exit $ac_status); }; }; then
28796   LIBS=$ac_save_LIBS
28797 # We can link X programs with no special library path.
28798 ac_x_libraries=
28799 else
28800   echo "$as_me: failed program was:" >&5
28801 sed 's/^/| /' conftest.$ac_ext >&5
28802
28803 LIBS=$ac_save_LIBS
28804 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28805 do
28806   # Don't even attempt the hair of trying to link an X program!
28807   for ac_extension in a so sl; do
28808     if test -r $ac_dir/libXt.$ac_extension; then
28809       ac_x_libraries=$ac_dir
28810       break 2
28811     fi
28812   done
28813 done
28814 fi
28815 rm -f conftest.err conftest.$ac_objext \
28816       conftest$ac_exeext conftest.$ac_ext
28817 fi # $ac_x_libraries = no
28818
28819 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28820   # Didn't find X anywhere.  Cache the known absence of X.
28821   ac_cv_have_x="have_x=no"
28822 else
28823   # Record where we found X for the cache.
28824   ac_cv_have_x="have_x=yes \
28825                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
28826 fi
28827 fi
28828
28829   fi
28830   eval "$ac_cv_have_x"
28831 fi # $with_x != no
28832
28833 if test "$have_x" != yes; then
28834   echo "$as_me:$LINENO: result: $have_x" >&5
28835 echo "${ECHO_T}$have_x" >&6
28836   no_x=yes
28837 else
28838   # If each of the values was on the command line, it overrides each guess.
28839   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28840   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28841   # Update the cache value to reflect the command line values.
28842   ac_cv_have_x="have_x=yes \
28843                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
28844   # It might be that x_includes is empty (headers are found in the
28845   # standard search path. Then output the corresponding message
28846   ac_out_x_includes=$x_includes
28847   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28848   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28849 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
28850 fi
28851
28852 fi
28853 if test "$no_x" = yes; then
28854   # Not all programs may use this symbol, but it does not hurt to define it.
28855
28856 cat >>confdefs.h <<\_ACEOF
28857 #define X_DISPLAY_MISSING 1
28858 _ACEOF
28859
28860   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28861 else
28862   if test -n "$x_includes"; then
28863     X_CFLAGS="$X_CFLAGS -I$x_includes"
28864   fi
28865
28866   # It would also be nice to do this for all -L options, not just this one.
28867   if test -n "$x_libraries"; then
28868     X_LIBS="$X_LIBS -L$x_libraries"
28869     # For Solaris; some versions of Sun CC require a space after -R and
28870     # others require no space.  Words are not sufficient . . . .
28871     case `(uname -sr) 2>/dev/null` in
28872     "SunOS 5"*)
28873       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28874 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28875       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28876       cat >conftest.$ac_ext <<_ACEOF
28877 /* confdefs.h.  */
28878 _ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h.  */
28882
28883 int
28884 main ()
28885 {
28886
28887   ;
28888   return 0;
28889 }
28890 _ACEOF
28891 rm -f conftest.$ac_objext conftest$ac_exeext
28892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28893   (eval $ac_link) 2>conftest.er1
28894   ac_status=$?
28895   grep -v '^ *+' conftest.er1 >conftest.err
28896   rm -f conftest.er1
28897   cat conftest.err >&5
28898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899   (exit $ac_status); } &&
28900          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28902   (eval $ac_try) 2>&5
28903   ac_status=$?
28904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905   (exit $ac_status); }; } &&
28906          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28912   ac_R_nospace=yes
28913 else
28914   echo "$as_me: failed program was:" >&5
28915 sed 's/^/| /' conftest.$ac_ext >&5
28916
28917 ac_R_nospace=no
28918 fi
28919 rm -f conftest.err conftest.$ac_objext \
28920       conftest$ac_exeext conftest.$ac_ext
28921       if test $ac_R_nospace = yes; then
28922         echo "$as_me:$LINENO: result: no" >&5
28923 echo "${ECHO_T}no" >&6
28924         X_LIBS="$X_LIBS -R$x_libraries"
28925       else
28926         LIBS="$ac_xsave_LIBS -R $x_libraries"
28927         cat >conftest.$ac_ext <<_ACEOF
28928 /* confdefs.h.  */
28929 _ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h.  */
28933
28934 int
28935 main ()
28936 {
28937
28938   ;
28939   return 0;
28940 }
28941 _ACEOF
28942 rm -f conftest.$ac_objext conftest$ac_exeext
28943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28944   (eval $ac_link) 2>conftest.er1
28945   ac_status=$?
28946   grep -v '^ *+' conftest.er1 >conftest.err
28947   rm -f conftest.er1
28948   cat conftest.err >&5
28949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950   (exit $ac_status); } &&
28951          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953   (eval $ac_try) 2>&5
28954   ac_status=$?
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); }; } &&
28957          { ac_try='test -s conftest$ac_exeext'
28958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959   (eval $ac_try) 2>&5
28960   ac_status=$?
28961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); }; }; then
28963   ac_R_space=yes
28964 else
28965   echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28967
28968 ac_R_space=no
28969 fi
28970 rm -f conftest.err conftest.$ac_objext \
28971       conftest$ac_exeext conftest.$ac_ext
28972         if test $ac_R_space = yes; then
28973           echo "$as_me:$LINENO: result: yes" >&5
28974 echo "${ECHO_T}yes" >&6
28975           X_LIBS="$X_LIBS -R $x_libraries"
28976         else
28977           echo "$as_me:$LINENO: result: neither works" >&5
28978 echo "${ECHO_T}neither works" >&6
28979         fi
28980       fi
28981       LIBS=$ac_xsave_LIBS
28982     esac
28983   fi
28984
28985   # Check for system-dependent libraries X programs must link with.
28986   # Do this before checking for the system-independent R6 libraries
28987   # (-lICE), since we may need -lsocket or whatever for X linking.
28988
28989   if test "$ISC" = yes; then
28990     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28991   else
28992     # Martyn Johnson says this is needed for Ultrix, if the X
28993     # libraries were built with DECnet support.  And Karl Berry says
28994     # the Alpha needs dnet_stub (dnet does not exist).
28995     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28996     cat >conftest.$ac_ext <<_ACEOF
28997 /* confdefs.h.  */
28998 _ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h.  */
29002
29003 /* Override any gcc2 internal prototype to avoid an error.  */
29004 #ifdef __cplusplus
29005 extern "C"
29006 #endif
29007 /* We use char because int might match the return type of a gcc2
29008    builtin and then its argument prototype would still apply.  */
29009 char XOpenDisplay ();
29010 int
29011 main ()
29012 {
29013 XOpenDisplay ();
29014   ;
29015   return 0;
29016 }
29017 _ACEOF
29018 rm -f conftest.$ac_objext conftest$ac_exeext
29019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29020   (eval $ac_link) 2>conftest.er1
29021   ac_status=$?
29022   grep -v '^ *+' conftest.er1 >conftest.err
29023   rm -f conftest.er1
29024   cat conftest.err >&5
29025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026   (exit $ac_status); } &&
29027          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029   (eval $ac_try) 2>&5
29030   ac_status=$?
29031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032   (exit $ac_status); }; } &&
29033          { ac_try='test -s conftest$ac_exeext'
29034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29035   (eval $ac_try) 2>&5
29036   ac_status=$?
29037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038   (exit $ac_status); }; }; then
29039   :
29040 else
29041   echo "$as_me: failed program was:" >&5
29042 sed 's/^/| /' conftest.$ac_ext >&5
29043
29044 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29045 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29046 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29047   echo $ECHO_N "(cached) $ECHO_C" >&6
29048 else
29049   ac_check_lib_save_LIBS=$LIBS
29050 LIBS="-ldnet  $LIBS"
29051 cat >conftest.$ac_ext <<_ACEOF
29052 /* confdefs.h.  */
29053 _ACEOF
29054 cat confdefs.h >>conftest.$ac_ext
29055 cat >>conftest.$ac_ext <<_ACEOF
29056 /* end confdefs.h.  */
29057
29058 /* Override any gcc2 internal prototype to avoid an error.  */
29059 #ifdef __cplusplus
29060 extern "C"
29061 #endif
29062 /* We use char because int might match the return type of a gcc2
29063    builtin and then its argument prototype would still apply.  */
29064 char dnet_ntoa ();
29065 int
29066 main ()
29067 {
29068 dnet_ntoa ();
29069   ;
29070   return 0;
29071 }
29072 _ACEOF
29073 rm -f conftest.$ac_objext conftest$ac_exeext
29074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29075   (eval $ac_link) 2>conftest.er1
29076   ac_status=$?
29077   grep -v '^ *+' conftest.er1 >conftest.err
29078   rm -f conftest.er1
29079   cat conftest.err >&5
29080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081   (exit $ac_status); } &&
29082          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29084   (eval $ac_try) 2>&5
29085   ac_status=$?
29086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087   (exit $ac_status); }; } &&
29088          { ac_try='test -s conftest$ac_exeext'
29089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090   (eval $ac_try) 2>&5
29091   ac_status=$?
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); }; }; then
29094   ac_cv_lib_dnet_dnet_ntoa=yes
29095 else
29096   echo "$as_me: failed program was:" >&5
29097 sed 's/^/| /' conftest.$ac_ext >&5
29098
29099 ac_cv_lib_dnet_dnet_ntoa=no
29100 fi
29101 rm -f conftest.err conftest.$ac_objext \
29102       conftest$ac_exeext conftest.$ac_ext
29103 LIBS=$ac_check_lib_save_LIBS
29104 fi
29105 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29106 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29107 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29108   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29109 fi
29110
29111     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29112       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29113 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29114 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29115   echo $ECHO_N "(cached) $ECHO_C" >&6
29116 else
29117   ac_check_lib_save_LIBS=$LIBS
29118 LIBS="-ldnet_stub  $LIBS"
29119 cat >conftest.$ac_ext <<_ACEOF
29120 /* confdefs.h.  */
29121 _ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h.  */
29125
29126 /* Override any gcc2 internal prototype to avoid an error.  */
29127 #ifdef __cplusplus
29128 extern "C"
29129 #endif
29130 /* We use char because int might match the return type of a gcc2
29131    builtin and then its argument prototype would still apply.  */
29132 char dnet_ntoa ();
29133 int
29134 main ()
29135 {
29136 dnet_ntoa ();
29137   ;
29138   return 0;
29139 }
29140 _ACEOF
29141 rm -f conftest.$ac_objext conftest$ac_exeext
29142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29143   (eval $ac_link) 2>conftest.er1
29144   ac_status=$?
29145   grep -v '^ *+' conftest.er1 >conftest.err
29146   rm -f conftest.er1
29147   cat conftest.err >&5
29148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149   (exit $ac_status); } &&
29150          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29152   (eval $ac_try) 2>&5
29153   ac_status=$?
29154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155   (exit $ac_status); }; } &&
29156          { ac_try='test -s conftest$ac_exeext'
29157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158   (eval $ac_try) 2>&5
29159   ac_status=$?
29160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161   (exit $ac_status); }; }; then
29162   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29163 else
29164   echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29166
29167 ac_cv_lib_dnet_stub_dnet_ntoa=no
29168 fi
29169 rm -f conftest.err conftest.$ac_objext \
29170       conftest$ac_exeext conftest.$ac_ext
29171 LIBS=$ac_check_lib_save_LIBS
29172 fi
29173 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29174 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29175 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29176   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29177 fi
29178
29179     fi
29180 fi
29181 rm -f conftest.err conftest.$ac_objext \
29182       conftest$ac_exeext conftest.$ac_ext
29183     LIBS="$ac_xsave_LIBS"
29184
29185     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29186     # to get the SysV transport functions.
29187     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29188     # needs -lnsl.
29189     # The nsl library prevents programs from opening the X display
29190     # on Irix 5.2, according to T.E. Dickey.
29191     # The functions gethostbyname, getservbyname, and inet_addr are
29192     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29193     echo "$as_me:$LINENO: checking for gethostbyname" >&5
29194 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29195 if test "${ac_cv_func_gethostbyname+set}" = set; then
29196   echo $ECHO_N "(cached) $ECHO_C" >&6
29197 else
29198   cat >conftest.$ac_ext <<_ACEOF
29199 /* confdefs.h.  */
29200 _ACEOF
29201 cat confdefs.h >>conftest.$ac_ext
29202 cat >>conftest.$ac_ext <<_ACEOF
29203 /* end confdefs.h.  */
29204 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29206 #define gethostbyname innocuous_gethostbyname
29207
29208 /* System header to define __stub macros and hopefully few prototypes,
29209     which can conflict with char gethostbyname (); below.
29210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29211     <limits.h> exists even on freestanding compilers.  */
29212
29213 #ifdef __STDC__
29214 # include <limits.h>
29215 #else
29216 # include <assert.h>
29217 #endif
29218
29219 #undef gethostbyname
29220
29221 /* Override any gcc2 internal prototype to avoid an error.  */
29222 #ifdef __cplusplus
29223 extern "C"
29224 {
29225 #endif
29226 /* We use char because int might match the return type of a gcc2
29227    builtin and then its argument prototype would still apply.  */
29228 char gethostbyname ();
29229 /* The GNU C library defines this for functions which it implements
29230     to always fail with ENOSYS.  Some functions are actually named
29231     something starting with __ and the normal name is an alias.  */
29232 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29233 choke me
29234 #else
29235 char (*f) () = gethostbyname;
29236 #endif
29237 #ifdef __cplusplus
29238 }
29239 #endif
29240
29241 int
29242 main ()
29243 {
29244 return f != gethostbyname;
29245   ;
29246   return 0;
29247 }
29248 _ACEOF
29249 rm -f conftest.$ac_objext conftest$ac_exeext
29250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29251   (eval $ac_link) 2>conftest.er1
29252   ac_status=$?
29253   grep -v '^ *+' conftest.er1 >conftest.err
29254   rm -f conftest.er1
29255   cat conftest.err >&5
29256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257   (exit $ac_status); } &&
29258          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260   (eval $ac_try) 2>&5
29261   ac_status=$?
29262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263   (exit $ac_status); }; } &&
29264          { ac_try='test -s conftest$ac_exeext'
29265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29266   (eval $ac_try) 2>&5
29267   ac_status=$?
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); }; }; then
29270   ac_cv_func_gethostbyname=yes
29271 else
29272   echo "$as_me: failed program was:" >&5
29273 sed 's/^/| /' conftest.$ac_ext >&5
29274
29275 ac_cv_func_gethostbyname=no
29276 fi
29277 rm -f conftest.err conftest.$ac_objext \
29278       conftest$ac_exeext conftest.$ac_ext
29279 fi
29280 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29281 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29282
29283     if test $ac_cv_func_gethostbyname = no; then
29284       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29285 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29286 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29287   echo $ECHO_N "(cached) $ECHO_C" >&6
29288 else
29289   ac_check_lib_save_LIBS=$LIBS
29290 LIBS="-lnsl  $LIBS"
29291 cat >conftest.$ac_ext <<_ACEOF
29292 /* confdefs.h.  */
29293 _ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h.  */
29297
29298 /* Override any gcc2 internal prototype to avoid an error.  */
29299 #ifdef __cplusplus
29300 extern "C"
29301 #endif
29302 /* We use char because int might match the return type of a gcc2
29303    builtin and then its argument prototype would still apply.  */
29304 char gethostbyname ();
29305 int
29306 main ()
29307 {
29308 gethostbyname ();
29309   ;
29310   return 0;
29311 }
29312 _ACEOF
29313 rm -f conftest.$ac_objext conftest$ac_exeext
29314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29315   (eval $ac_link) 2>conftest.er1
29316   ac_status=$?
29317   grep -v '^ *+' conftest.er1 >conftest.err
29318   rm -f conftest.er1
29319   cat conftest.err >&5
29320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321   (exit $ac_status); } &&
29322          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29324   (eval $ac_try) 2>&5
29325   ac_status=$?
29326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327   (exit $ac_status); }; } &&
29328          { ac_try='test -s conftest$ac_exeext'
29329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330   (eval $ac_try) 2>&5
29331   ac_status=$?
29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333   (exit $ac_status); }; }; then
29334   ac_cv_lib_nsl_gethostbyname=yes
29335 else
29336   echo "$as_me: failed program was:" >&5
29337 sed 's/^/| /' conftest.$ac_ext >&5
29338
29339 ac_cv_lib_nsl_gethostbyname=no
29340 fi
29341 rm -f conftest.err conftest.$ac_objext \
29342       conftest$ac_exeext conftest.$ac_ext
29343 LIBS=$ac_check_lib_save_LIBS
29344 fi
29345 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29346 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29347 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29348   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29349 fi
29350
29351       if test $ac_cv_lib_nsl_gethostbyname = no; then
29352         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29353 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29354 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29355   echo $ECHO_N "(cached) $ECHO_C" >&6
29356 else
29357   ac_check_lib_save_LIBS=$LIBS
29358 LIBS="-lbsd  $LIBS"
29359 cat >conftest.$ac_ext <<_ACEOF
29360 /* confdefs.h.  */
29361 _ACEOF
29362 cat confdefs.h >>conftest.$ac_ext
29363 cat >>conftest.$ac_ext <<_ACEOF
29364 /* end confdefs.h.  */
29365
29366 /* Override any gcc2 internal prototype to avoid an error.  */
29367 #ifdef __cplusplus
29368 extern "C"
29369 #endif
29370 /* We use char because int might match the return type of a gcc2
29371    builtin and then its argument prototype would still apply.  */
29372 char gethostbyname ();
29373 int
29374 main ()
29375 {
29376 gethostbyname ();
29377   ;
29378   return 0;
29379 }
29380 _ACEOF
29381 rm -f conftest.$ac_objext conftest$ac_exeext
29382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29383   (eval $ac_link) 2>conftest.er1
29384   ac_status=$?
29385   grep -v '^ *+' conftest.er1 >conftest.err
29386   rm -f conftest.er1
29387   cat conftest.err >&5
29388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389   (exit $ac_status); } &&
29390          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29392   (eval $ac_try) 2>&5
29393   ac_status=$?
29394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395   (exit $ac_status); }; } &&
29396          { ac_try='test -s conftest$ac_exeext'
29397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29398   (eval $ac_try) 2>&5
29399   ac_status=$?
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); }; }; then
29402   ac_cv_lib_bsd_gethostbyname=yes
29403 else
29404   echo "$as_me: failed program was:" >&5
29405 sed 's/^/| /' conftest.$ac_ext >&5
29406
29407 ac_cv_lib_bsd_gethostbyname=no
29408 fi
29409 rm -f conftest.err conftest.$ac_objext \
29410       conftest$ac_exeext conftest.$ac_ext
29411 LIBS=$ac_check_lib_save_LIBS
29412 fi
29413 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29414 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29415 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29416   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29417 fi
29418
29419       fi
29420     fi
29421
29422     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29423     # socket/setsockopt and other routines are undefined under SCO ODT
29424     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29425     # on later versions), says Simon Leinen: it contains gethostby*
29426     # variants that don't use the name server (or something).  -lsocket
29427     # must be given before -lnsl if both are needed.  We assume that
29428     # if connect needs -lnsl, so does gethostbyname.
29429     echo "$as_me:$LINENO: checking for connect" >&5
29430 echo $ECHO_N "checking for connect... $ECHO_C" >&6
29431 if test "${ac_cv_func_connect+set}" = set; then
29432   echo $ECHO_N "(cached) $ECHO_C" >&6
29433 else
29434   cat >conftest.$ac_ext <<_ACEOF
29435 /* confdefs.h.  */
29436 _ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h.  */
29440 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29442 #define connect innocuous_connect
29443
29444 /* System header to define __stub macros and hopefully few prototypes,
29445     which can conflict with char connect (); below.
29446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29447     <limits.h> exists even on freestanding compilers.  */
29448
29449 #ifdef __STDC__
29450 # include <limits.h>
29451 #else
29452 # include <assert.h>
29453 #endif
29454
29455 #undef connect
29456
29457 /* Override any gcc2 internal prototype to avoid an error.  */
29458 #ifdef __cplusplus
29459 extern "C"
29460 {
29461 #endif
29462 /* We use char because int might match the return type of a gcc2
29463    builtin and then its argument prototype would still apply.  */
29464 char connect ();
29465 /* The GNU C library defines this for functions which it implements
29466     to always fail with ENOSYS.  Some functions are actually named
29467     something starting with __ and the normal name is an alias.  */
29468 #if defined (__stub_connect) || defined (__stub___connect)
29469 choke me
29470 #else
29471 char (*f) () = connect;
29472 #endif
29473 #ifdef __cplusplus
29474 }
29475 #endif
29476
29477 int
29478 main ()
29479 {
29480 return f != connect;
29481   ;
29482   return 0;
29483 }
29484 _ACEOF
29485 rm -f conftest.$ac_objext conftest$ac_exeext
29486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29487   (eval $ac_link) 2>conftest.er1
29488   ac_status=$?
29489   grep -v '^ *+' conftest.er1 >conftest.err
29490   rm -f conftest.er1
29491   cat conftest.err >&5
29492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493   (exit $ac_status); } &&
29494          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496   (eval $ac_try) 2>&5
29497   ac_status=$?
29498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499   (exit $ac_status); }; } &&
29500          { ac_try='test -s conftest$ac_exeext'
29501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29502   (eval $ac_try) 2>&5
29503   ac_status=$?
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); }; }; then
29506   ac_cv_func_connect=yes
29507 else
29508   echo "$as_me: failed program was:" >&5
29509 sed 's/^/| /' conftest.$ac_ext >&5
29510
29511 ac_cv_func_connect=no
29512 fi
29513 rm -f conftest.err conftest.$ac_objext \
29514       conftest$ac_exeext conftest.$ac_ext
29515 fi
29516 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29517 echo "${ECHO_T}$ac_cv_func_connect" >&6
29518
29519     if test $ac_cv_func_connect = no; then
29520       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29521 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29522 if test "${ac_cv_lib_socket_connect+set}" = set; then
29523   echo $ECHO_N "(cached) $ECHO_C" >&6
29524 else
29525   ac_check_lib_save_LIBS=$LIBS
29526 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29527 cat >conftest.$ac_ext <<_ACEOF
29528 /* confdefs.h.  */
29529 _ACEOF
29530 cat confdefs.h >>conftest.$ac_ext
29531 cat >>conftest.$ac_ext <<_ACEOF
29532 /* end confdefs.h.  */
29533
29534 /* Override any gcc2 internal prototype to avoid an error.  */
29535 #ifdef __cplusplus
29536 extern "C"
29537 #endif
29538 /* We use char because int might match the return type of a gcc2
29539    builtin and then its argument prototype would still apply.  */
29540 char connect ();
29541 int
29542 main ()
29543 {
29544 connect ();
29545   ;
29546   return 0;
29547 }
29548 _ACEOF
29549 rm -f conftest.$ac_objext conftest$ac_exeext
29550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29551   (eval $ac_link) 2>conftest.er1
29552   ac_status=$?
29553   grep -v '^ *+' conftest.er1 >conftest.err
29554   rm -f conftest.er1
29555   cat conftest.err >&5
29556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557   (exit $ac_status); } &&
29558          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29560   (eval $ac_try) 2>&5
29561   ac_status=$?
29562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563   (exit $ac_status); }; } &&
29564          { ac_try='test -s conftest$ac_exeext'
29565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29566   (eval $ac_try) 2>&5
29567   ac_status=$?
29568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569   (exit $ac_status); }; }; then
29570   ac_cv_lib_socket_connect=yes
29571 else
29572   echo "$as_me: failed program was:" >&5
29573 sed 's/^/| /' conftest.$ac_ext >&5
29574
29575 ac_cv_lib_socket_connect=no
29576 fi
29577 rm -f conftest.err conftest.$ac_objext \
29578       conftest$ac_exeext conftest.$ac_ext
29579 LIBS=$ac_check_lib_save_LIBS
29580 fi
29581 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29582 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29583 if test $ac_cv_lib_socket_connect = yes; then
29584   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29585 fi
29586
29587     fi
29588
29589     # Guillermo Gomez says -lposix is necessary on A/UX.
29590     echo "$as_me:$LINENO: checking for remove" >&5
29591 echo $ECHO_N "checking for remove... $ECHO_C" >&6
29592 if test "${ac_cv_func_remove+set}" = set; then
29593   echo $ECHO_N "(cached) $ECHO_C" >&6
29594 else
29595   cat >conftest.$ac_ext <<_ACEOF
29596 /* confdefs.h.  */
29597 _ACEOF
29598 cat confdefs.h >>conftest.$ac_ext
29599 cat >>conftest.$ac_ext <<_ACEOF
29600 /* end confdefs.h.  */
29601 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
29602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29603 #define remove innocuous_remove
29604
29605 /* System header to define __stub macros and hopefully few prototypes,
29606     which can conflict with char remove (); below.
29607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29608     <limits.h> exists even on freestanding compilers.  */
29609
29610 #ifdef __STDC__
29611 # include <limits.h>
29612 #else
29613 # include <assert.h>
29614 #endif
29615
29616 #undef remove
29617
29618 /* Override any gcc2 internal prototype to avoid an error.  */
29619 #ifdef __cplusplus
29620 extern "C"
29621 {
29622 #endif
29623 /* We use char because int might match the return type of a gcc2
29624    builtin and then its argument prototype would still apply.  */
29625 char remove ();
29626 /* The GNU C library defines this for functions which it implements
29627     to always fail with ENOSYS.  Some functions are actually named
29628     something starting with __ and the normal name is an alias.  */
29629 #if defined (__stub_remove) || defined (__stub___remove)
29630 choke me
29631 #else
29632 char (*f) () = remove;
29633 #endif
29634 #ifdef __cplusplus
29635 }
29636 #endif
29637
29638 int
29639 main ()
29640 {
29641 return f != remove;
29642   ;
29643   return 0;
29644 }
29645 _ACEOF
29646 rm -f conftest.$ac_objext conftest$ac_exeext
29647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29648   (eval $ac_link) 2>conftest.er1
29649   ac_status=$?
29650   grep -v '^ *+' conftest.er1 >conftest.err
29651   rm -f conftest.er1
29652   cat conftest.err >&5
29653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654   (exit $ac_status); } &&
29655          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657   (eval $ac_try) 2>&5
29658   ac_status=$?
29659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660   (exit $ac_status); }; } &&
29661          { ac_try='test -s conftest$ac_exeext'
29662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29663   (eval $ac_try) 2>&5
29664   ac_status=$?
29665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666   (exit $ac_status); }; }; then
29667   ac_cv_func_remove=yes
29668 else
29669   echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29671
29672 ac_cv_func_remove=no
29673 fi
29674 rm -f conftest.err conftest.$ac_objext \
29675       conftest$ac_exeext conftest.$ac_ext
29676 fi
29677 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29678 echo "${ECHO_T}$ac_cv_func_remove" >&6
29679
29680     if test $ac_cv_func_remove = no; then
29681       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29682 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29683 if test "${ac_cv_lib_posix_remove+set}" = set; then
29684   echo $ECHO_N "(cached) $ECHO_C" >&6
29685 else
29686   ac_check_lib_save_LIBS=$LIBS
29687 LIBS="-lposix  $LIBS"
29688 cat >conftest.$ac_ext <<_ACEOF
29689 /* confdefs.h.  */
29690 _ACEOF
29691 cat confdefs.h >>conftest.$ac_ext
29692 cat >>conftest.$ac_ext <<_ACEOF
29693 /* end confdefs.h.  */
29694
29695 /* Override any gcc2 internal prototype to avoid an error.  */
29696 #ifdef __cplusplus
29697 extern "C"
29698 #endif
29699 /* We use char because int might match the return type of a gcc2
29700    builtin and then its argument prototype would still apply.  */
29701 char remove ();
29702 int
29703 main ()
29704 {
29705 remove ();
29706   ;
29707   return 0;
29708 }
29709 _ACEOF
29710 rm -f conftest.$ac_objext conftest$ac_exeext
29711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29712   (eval $ac_link) 2>conftest.er1
29713   ac_status=$?
29714   grep -v '^ *+' conftest.er1 >conftest.err
29715   rm -f conftest.er1
29716   cat conftest.err >&5
29717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718   (exit $ac_status); } &&
29719          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721   (eval $ac_try) 2>&5
29722   ac_status=$?
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); }; } &&
29725          { ac_try='test -s conftest$ac_exeext'
29726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727   (eval $ac_try) 2>&5
29728   ac_status=$?
29729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730   (exit $ac_status); }; }; then
29731   ac_cv_lib_posix_remove=yes
29732 else
29733   echo "$as_me: failed program was:" >&5
29734 sed 's/^/| /' conftest.$ac_ext >&5
29735
29736 ac_cv_lib_posix_remove=no
29737 fi
29738 rm -f conftest.err conftest.$ac_objext \
29739       conftest$ac_exeext conftest.$ac_ext
29740 LIBS=$ac_check_lib_save_LIBS
29741 fi
29742 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29743 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29744 if test $ac_cv_lib_posix_remove = yes; then
29745   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29746 fi
29747
29748     fi
29749
29750     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29751     echo "$as_me:$LINENO: checking for shmat" >&5
29752 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29753 if test "${ac_cv_func_shmat+set}" = set; then
29754   echo $ECHO_N "(cached) $ECHO_C" >&6
29755 else
29756   cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h.  */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h.  */
29762 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29764 #define shmat innocuous_shmat
29765
29766 /* System header to define __stub macros and hopefully few prototypes,
29767     which can conflict with char shmat (); below.
29768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29769     <limits.h> exists even on freestanding compilers.  */
29770
29771 #ifdef __STDC__
29772 # include <limits.h>
29773 #else
29774 # include <assert.h>
29775 #endif
29776
29777 #undef shmat
29778
29779 /* Override any gcc2 internal prototype to avoid an error.  */
29780 #ifdef __cplusplus
29781 extern "C"
29782 {
29783 #endif
29784 /* We use char because int might match the return type of a gcc2
29785    builtin and then its argument prototype would still apply.  */
29786 char shmat ();
29787 /* The GNU C library defines this for functions which it implements
29788     to always fail with ENOSYS.  Some functions are actually named
29789     something starting with __ and the normal name is an alias.  */
29790 #if defined (__stub_shmat) || defined (__stub___shmat)
29791 choke me
29792 #else
29793 char (*f) () = shmat;
29794 #endif
29795 #ifdef __cplusplus
29796 }
29797 #endif
29798
29799 int
29800 main ()
29801 {
29802 return f != shmat;
29803   ;
29804   return 0;
29805 }
29806 _ACEOF
29807 rm -f conftest.$ac_objext conftest$ac_exeext
29808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29809   (eval $ac_link) 2>conftest.er1
29810   ac_status=$?
29811   grep -v '^ *+' conftest.er1 >conftest.err
29812   rm -f conftest.er1
29813   cat conftest.err >&5
29814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815   (exit $ac_status); } &&
29816          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818   (eval $ac_try) 2>&5
29819   ac_status=$?
29820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821   (exit $ac_status); }; } &&
29822          { ac_try='test -s conftest$ac_exeext'
29823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824   (eval $ac_try) 2>&5
29825   ac_status=$?
29826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827   (exit $ac_status); }; }; then
29828   ac_cv_func_shmat=yes
29829 else
29830   echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29832
29833 ac_cv_func_shmat=no
29834 fi
29835 rm -f conftest.err conftest.$ac_objext \
29836       conftest$ac_exeext conftest.$ac_ext
29837 fi
29838 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29839 echo "${ECHO_T}$ac_cv_func_shmat" >&6
29840
29841     if test $ac_cv_func_shmat = no; then
29842       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29843 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29844 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29845   echo $ECHO_N "(cached) $ECHO_C" >&6
29846 else
29847   ac_check_lib_save_LIBS=$LIBS
29848 LIBS="-lipc  $LIBS"
29849 cat >conftest.$ac_ext <<_ACEOF
29850 /* confdefs.h.  */
29851 _ACEOF
29852 cat confdefs.h >>conftest.$ac_ext
29853 cat >>conftest.$ac_ext <<_ACEOF
29854 /* end confdefs.h.  */
29855
29856 /* Override any gcc2 internal prototype to avoid an error.  */
29857 #ifdef __cplusplus
29858 extern "C"
29859 #endif
29860 /* We use char because int might match the return type of a gcc2
29861    builtin and then its argument prototype would still apply.  */
29862 char shmat ();
29863 int
29864 main ()
29865 {
29866 shmat ();
29867   ;
29868   return 0;
29869 }
29870 _ACEOF
29871 rm -f conftest.$ac_objext conftest$ac_exeext
29872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29873   (eval $ac_link) 2>conftest.er1
29874   ac_status=$?
29875   grep -v '^ *+' conftest.er1 >conftest.err
29876   rm -f conftest.er1
29877   cat conftest.err >&5
29878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879   (exit $ac_status); } &&
29880          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29882   (eval $ac_try) 2>&5
29883   ac_status=$?
29884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); }; } &&
29886          { ac_try='test -s conftest$ac_exeext'
29887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29888   (eval $ac_try) 2>&5
29889   ac_status=$?
29890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891   (exit $ac_status); }; }; then
29892   ac_cv_lib_ipc_shmat=yes
29893 else
29894   echo "$as_me: failed program was:" >&5
29895 sed 's/^/| /' conftest.$ac_ext >&5
29896
29897 ac_cv_lib_ipc_shmat=no
29898 fi
29899 rm -f conftest.err conftest.$ac_objext \
29900       conftest$ac_exeext conftest.$ac_ext
29901 LIBS=$ac_check_lib_save_LIBS
29902 fi
29903 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29904 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29905 if test $ac_cv_lib_ipc_shmat = yes; then
29906   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29907 fi
29908
29909     fi
29910   fi
29911
29912   # Check for libraries that X11R6 Xt/Xaw programs need.
29913   ac_save_LDFLAGS=$LDFLAGS
29914   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29915   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29916   # check for ICE first), but we must link in the order -lSM -lICE or
29917   # we get undefined symbols.  So assume we have SM if we have ICE.
29918   # These have to be linked with before -lX11, unlike the other
29919   # libraries we check for below, so use a different variable.
29920   # John Interrante, Karl Berry
29921   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29922 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29923 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29924   echo $ECHO_N "(cached) $ECHO_C" >&6
29925 else
29926   ac_check_lib_save_LIBS=$LIBS
29927 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29928 cat >conftest.$ac_ext <<_ACEOF
29929 /* confdefs.h.  */
29930 _ACEOF
29931 cat confdefs.h >>conftest.$ac_ext
29932 cat >>conftest.$ac_ext <<_ACEOF
29933 /* end confdefs.h.  */
29934
29935 /* Override any gcc2 internal prototype to avoid an error.  */
29936 #ifdef __cplusplus
29937 extern "C"
29938 #endif
29939 /* We use char because int might match the return type of a gcc2
29940    builtin and then its argument prototype would still apply.  */
29941 char IceConnectionNumber ();
29942 int
29943 main ()
29944 {
29945 IceConnectionNumber ();
29946   ;
29947   return 0;
29948 }
29949 _ACEOF
29950 rm -f conftest.$ac_objext conftest$ac_exeext
29951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29952   (eval $ac_link) 2>conftest.er1
29953   ac_status=$?
29954   grep -v '^ *+' conftest.er1 >conftest.err
29955   rm -f conftest.er1
29956   cat conftest.err >&5
29957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958   (exit $ac_status); } &&
29959          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961   (eval $ac_try) 2>&5
29962   ac_status=$?
29963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964   (exit $ac_status); }; } &&
29965          { ac_try='test -s conftest$ac_exeext'
29966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967   (eval $ac_try) 2>&5
29968   ac_status=$?
29969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970   (exit $ac_status); }; }; then
29971   ac_cv_lib_ICE_IceConnectionNumber=yes
29972 else
29973   echo "$as_me: failed program was:" >&5
29974 sed 's/^/| /' conftest.$ac_ext >&5
29975
29976 ac_cv_lib_ICE_IceConnectionNumber=no
29977 fi
29978 rm -f conftest.err conftest.$ac_objext \
29979       conftest$ac_exeext conftest.$ac_ext
29980 LIBS=$ac_check_lib_save_LIBS
29981 fi
29982 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29983 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29984 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29985   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29986 fi
29987
29988   LDFLAGS=$ac_save_LDFLAGS
29989
29990 fi
29991
29992
29993         if test "$no_x" = "yes"; then
29994           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29995 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29996    { (exit 1); exit 1; }; }
29997         fi
29998
29999                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30000         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
30001         AFMINSTALL=afminstall
30002         COMPILED_X_PROGRAM=0
30003
30004     fi
30005
30006     if test "$wxUSE_X11" = 1; then
30007         if test "$wxUSE_NANOX" = "yes"; then
30008             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30009 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30010             if test "x$MICROWIN" = x ; then
30011                 echo "$as_me:$LINENO: result: not found" >&5
30012 echo "${ECHO_T}not found" >&6
30013                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30014 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30015    { (exit 1); exit 1; }; }
30016             else
30017                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30018 echo "${ECHO_T}$MICROWIN" >&6
30019                 cat >>confdefs.h <<\_ACEOF
30020 #define wxUSE_NANOX 1
30021 _ACEOF
30022
30023             fi
30024         fi
30025
30026         if test "$wxUSE_UNICODE" = "yes"; then
30027
30028
30029 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30030         if test -n "$ac_tool_prefix"; then
30031   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30032 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30033 echo "$as_me:$LINENO: checking for $ac_word" >&5
30034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30035 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30036   echo $ECHO_N "(cached) $ECHO_C" >&6
30037 else
30038   case $PKG_CONFIG in
30039   [\\/]* | ?:[\\/]*)
30040   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30041   ;;
30042   *)
30043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30044 for as_dir in $PATH
30045 do
30046   IFS=$as_save_IFS
30047   test -z "$as_dir" && as_dir=.
30048   for ac_exec_ext in '' $ac_executable_extensions; do
30049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30050     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30052     break 2
30053   fi
30054 done
30055 done
30056
30057   ;;
30058 esac
30059 fi
30060 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30061
30062 if test -n "$PKG_CONFIG"; then
30063   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30064 echo "${ECHO_T}$PKG_CONFIG" >&6
30065 else
30066   echo "$as_me:$LINENO: result: no" >&5
30067 echo "${ECHO_T}no" >&6
30068 fi
30069
30070 fi
30071 if test -z "$ac_cv_path_PKG_CONFIG"; then
30072   ac_pt_PKG_CONFIG=$PKG_CONFIG
30073   # Extract the first word of "pkg-config", so it can be a program name with args.
30074 set dummy pkg-config; ac_word=$2
30075 echo "$as_me:$LINENO: checking for $ac_word" >&5
30076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30077 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30078   echo $ECHO_N "(cached) $ECHO_C" >&6
30079 else
30080   case $ac_pt_PKG_CONFIG in
30081   [\\/]* | ?:[\\/]*)
30082   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30083   ;;
30084   *)
30085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30086 for as_dir in $PATH
30087 do
30088   IFS=$as_save_IFS
30089   test -z "$as_dir" && as_dir=.
30090   for ac_exec_ext in '' $ac_executable_extensions; do
30091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30092     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30094     break 2
30095   fi
30096 done
30097 done
30098
30099   ;;
30100 esac
30101 fi
30102 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30103
30104 if test -n "$ac_pt_PKG_CONFIG"; then
30105   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30106 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
30107 else
30108   echo "$as_me:$LINENO: result: no" >&5
30109 echo "${ECHO_T}no" >&6
30110 fi
30111
30112   PKG_CONFIG=$ac_pt_PKG_CONFIG
30113 else
30114   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30115 fi
30116
30117 fi
30118 if test -n "$PKG_CONFIG"; then
30119         _pkg_min_version=0.9.0
30120         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30121 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30122         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30123                 echo "$as_me:$LINENO: result: yes" >&5
30124 echo "${ECHO_T}yes" >&6
30125         else
30126                 echo "$as_me:$LINENO: result: no" >&5
30127 echo "${ECHO_T}no" >&6
30128                 PKG_CONFIG=""
30129         fi
30130
30131 fi
30132
30133 pkg_failed=no
30134 echo "$as_me:$LINENO: checking for PANGOX" >&5
30135 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
30136
30137 if test -n "$PKG_CONFIG"; then
30138     if test -n "$PANGOX_CFLAGS"; then
30139         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30140     else
30141         if test -n "$PKG_CONFIG" && \
30142     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30143   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30144   ac_status=$?
30145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146   (exit $ac_status); }; then
30147   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30148 else
30149   pkg_failed=yes
30150 fi
30151     fi
30152 else
30153         pkg_failed=untried
30154 fi
30155 if test -n "$PKG_CONFIG"; then
30156     if test -n "$PANGOX_LIBS"; then
30157         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30158     else
30159         if test -n "$PKG_CONFIG" && \
30160     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30161   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30162   ac_status=$?
30163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164   (exit $ac_status); }; then
30165   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30166 else
30167   pkg_failed=yes
30168 fi
30169     fi
30170 else
30171         pkg_failed=untried
30172 fi
30173
30174
30175
30176 if test $pkg_failed = yes; then
30177
30178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30179         _pkg_short_errors_supported=yes
30180 else
30181         _pkg_short_errors_supported=no
30182 fi
30183         if test $_pkg_short_errors_supported = yes; then
30184                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30185         else
30186                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
30187         fi
30188         # Put the nasty error message in config.log where it belongs
30189         echo "$PANGOX_PKG_ERRORS" >&5
30190
30191
30192                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30193 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30194    { (exit 1); exit 1; }; }
30195
30196
30197 elif test $pkg_failed = untried; then
30198
30199                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30200 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30201    { (exit 1); exit 1; }; }
30202
30203
30204 else
30205         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30206         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30207         echo "$as_me:$LINENO: result: yes" >&5
30208 echo "${ECHO_T}yes" >&6
30209
30210                         CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30211                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30212
30213 fi
30214
30215 pkg_failed=no
30216 echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30217 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30218
30219 if test -n "$PKG_CONFIG"; then
30220     if test -n "$PANGOFT2_CFLAGS"; then
30221         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30222     else
30223         if test -n "$PKG_CONFIG" && \
30224     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30225   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30226   ac_status=$?
30227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228   (exit $ac_status); }; then
30229   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30230 else
30231   pkg_failed=yes
30232 fi
30233     fi
30234 else
30235         pkg_failed=untried
30236 fi
30237 if test -n "$PKG_CONFIG"; then
30238     if test -n "$PANGOFT2_LIBS"; then
30239         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30240     else
30241         if test -n "$PKG_CONFIG" && \
30242     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30243   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30244   ac_status=$?
30245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246   (exit $ac_status); }; then
30247   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30248 else
30249   pkg_failed=yes
30250 fi
30251     fi
30252 else
30253         pkg_failed=untried
30254 fi
30255
30256
30257
30258 if test $pkg_failed = yes; then
30259
30260 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30261         _pkg_short_errors_supported=yes
30262 else
30263         _pkg_short_errors_supported=no
30264 fi
30265         if test $_pkg_short_errors_supported = yes; then
30266                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30267         else
30268                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30269         fi
30270         # Put the nasty error message in config.log where it belongs
30271         echo "$PANGOFT2_PKG_ERRORS" >&5
30272
30273
30274                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30275 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30276                         wxUSE_PRINTING_ARCHITECTURE="no"
30277
30278
30279 elif test $pkg_failed = untried; then
30280
30281                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30282 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30283                         wxUSE_PRINTING_ARCHITECTURE="no"
30284
30285
30286 else
30287         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30288         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30289         echo "$as_me:$LINENO: result: yes" >&5
30290 echo "${ECHO_T}yes" >&6
30291
30292                         CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30293                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
30294
30295 fi
30296
30297 pkg_failed=no
30298 echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30299 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
30300
30301 if test -n "$PKG_CONFIG"; then
30302     if test -n "$PANGOXFT_CFLAGS"; then
30303         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30304     else
30305         if test -n "$PKG_CONFIG" && \
30306     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30307   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30308   ac_status=$?
30309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310   (exit $ac_status); }; then
30311   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
30312 else
30313   pkg_failed=yes
30314 fi
30315     fi
30316 else
30317         pkg_failed=untried
30318 fi
30319 if test -n "$PKG_CONFIG"; then
30320     if test -n "$PANGOXFT_LIBS"; then
30321         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30322     else
30323         if test -n "$PKG_CONFIG" && \
30324     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30325   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30326   ac_status=$?
30327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328   (exit $ac_status); }; then
30329   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30330 else
30331   pkg_failed=yes
30332 fi
30333     fi
30334 else
30335         pkg_failed=untried
30336 fi
30337
30338
30339
30340 if test $pkg_failed = yes; then
30341
30342 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30343         _pkg_short_errors_supported=yes
30344 else
30345         _pkg_short_errors_supported=no
30346 fi
30347         if test $_pkg_short_errors_supported = yes; then
30348                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30349         else
30350                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30351         fi
30352         # Put the nasty error message in config.log where it belongs
30353         echo "$PANGOXFT_PKG_ERRORS" >&5
30354
30355
30356                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30357 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30358
30359
30360 elif test $pkg_failed = untried; then
30361
30362                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30363 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30364
30365
30366 else
30367         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30368         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30369         echo "$as_me:$LINENO: result: yes" >&5
30370 echo "${ECHO_T}yes" >&6
30371
30372                         cat >>confdefs.h <<\_ACEOF
30373 #define HAVE_PANGO_XFT 1
30374 _ACEOF
30375
30376                         CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
30377                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30378
30379 fi
30380                 save_CXXFLAGS="$CXXFLAGS"
30381                 save_LIBS="$LIBS"
30382                 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30383                 LIBS="$LIBS $PANGOX_LIBS"
30384
30385 for ac_func in pango_font_family_is_monospace
30386 do
30387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30388 echo "$as_me:$LINENO: checking for $ac_func" >&5
30389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30390 if eval "test \"\${$as_ac_var+set}\" = set"; then
30391   echo $ECHO_N "(cached) $ECHO_C" >&6
30392 else
30393   cat >conftest.$ac_ext <<_ACEOF
30394 /* confdefs.h.  */
30395 _ACEOF
30396 cat confdefs.h >>conftest.$ac_ext
30397 cat >>conftest.$ac_ext <<_ACEOF
30398 /* end confdefs.h.  */
30399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30401 #define $ac_func innocuous_$ac_func
30402
30403 /* System header to define __stub macros and hopefully few prototypes,
30404     which can conflict with char $ac_func (); below.
30405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30406     <limits.h> exists even on freestanding compilers.  */
30407
30408 #ifdef __STDC__
30409 # include <limits.h>
30410 #else
30411 # include <assert.h>
30412 #endif
30413
30414 #undef $ac_func
30415
30416 /* Override any gcc2 internal prototype to avoid an error.  */
30417 #ifdef __cplusplus
30418 extern "C"
30419 {
30420 #endif
30421 /* We use char because int might match the return type of a gcc2
30422    builtin and then its argument prototype would still apply.  */
30423 char $ac_func ();
30424 /* The GNU C library defines this for functions which it implements
30425     to always fail with ENOSYS.  Some functions are actually named
30426     something starting with __ and the normal name is an alias.  */
30427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30428 choke me
30429 #else
30430 char (*f) () = $ac_func;
30431 #endif
30432 #ifdef __cplusplus
30433 }
30434 #endif
30435
30436 int
30437 main ()
30438 {
30439 return f != $ac_func;
30440   ;
30441   return 0;
30442 }
30443 _ACEOF
30444 rm -f conftest.$ac_objext conftest$ac_exeext
30445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30446   (eval $ac_link) 2>conftest.er1
30447   ac_status=$?
30448   grep -v '^ *+' conftest.er1 >conftest.err
30449   rm -f conftest.er1
30450   cat conftest.err >&5
30451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452   (exit $ac_status); } &&
30453          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30455   (eval $ac_try) 2>&5
30456   ac_status=$?
30457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458   (exit $ac_status); }; } &&
30459          { ac_try='test -s conftest$ac_exeext'
30460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30461   (eval $ac_try) 2>&5
30462   ac_status=$?
30463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464   (exit $ac_status); }; }; then
30465   eval "$as_ac_var=yes"
30466 else
30467   echo "$as_me: failed program was:" >&5
30468 sed 's/^/| /' conftest.$ac_ext >&5
30469
30470 eval "$as_ac_var=no"
30471 fi
30472 rm -f conftest.err conftest.$ac_objext \
30473       conftest$ac_exeext conftest.$ac_ext
30474 fi
30475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30477 if test `eval echo '${'$as_ac_var'}'` = yes; then
30478   cat >>confdefs.h <<_ACEOF
30479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30480 _ACEOF
30481
30482 fi
30483 done
30484
30485                 CXXFLAGS="$save_CXXFLAGS"
30486                 LIBS="$save_LIBS"
30487         fi
30488
30489         wxUSE_UNIVERSAL="yes"
30490
30491         if test "$wxUSE_NANOX" = "yes"; then
30492             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30493             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"
30494             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30495         else
30496             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30497         fi
30498
30499         TOOLKIT=X11
30500         GUIDIST=X11_DIST
30501     fi
30502
30503     if test "$wxUSE_MOTIF" = 1; then
30504         if test "$wxUSE_UNICODE" = "yes"; then
30505             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30506 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30507    { (exit 1); exit 1; }; }
30508         fi
30509
30510         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30511 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
30512
30513 ac_find_includes=
30514 for ac_dir in $SEARCH_INCLUDE /usr/include;
30515   do
30516     if test -f "$ac_dir/Xm/Xm.h"; then
30517       ac_find_includes=$ac_dir
30518       break
30519     fi
30520   done
30521
30522         if test "$ac_find_includes" != "" ; then
30523             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30524 echo "${ECHO_T}found in $ac_find_includes" >&6
30525
30526     if test "x$ac_find_includes" = "x/usr/include"; then
30527     ac_path_to_include=""
30528   else
30529     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30530     result=$?
30531     if test $result = 0; then
30532       ac_path_to_include=""
30533     else
30534       ac_path_to_include=" -I$ac_find_includes"
30535     fi
30536   fi
30537
30538             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30539         else
30540             save_CXXFLAGS=$CXXFLAGS
30541             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30542
30543             cat >conftest.$ac_ext <<_ACEOF
30544 /* confdefs.h.  */
30545 _ACEOF
30546 cat confdefs.h >>conftest.$ac_ext
30547 cat >>conftest.$ac_ext <<_ACEOF
30548 /* end confdefs.h.  */
30549
30550                     #include <Xm/Xm.h>
30551
30552 int
30553 main ()
30554 {
30555
30556                     int version;
30557                     version = xmUseVersion;
30558
30559   ;
30560   return 0;
30561 }
30562 _ACEOF
30563 rm -f conftest.$ac_objext
30564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30565   (eval $ac_compile) 2>conftest.er1
30566   ac_status=$?
30567   grep -v '^ *+' conftest.er1 >conftest.err
30568   rm -f conftest.er1
30569   cat conftest.err >&5
30570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571   (exit $ac_status); } &&
30572          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30574   (eval $ac_try) 2>&5
30575   ac_status=$?
30576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577   (exit $ac_status); }; } &&
30578          { ac_try='test -s conftest.$ac_objext'
30579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30580   (eval $ac_try) 2>&5
30581   ac_status=$?
30582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583   (exit $ac_status); }; }; then
30584
30585                     echo "$as_me:$LINENO: result: found in default search path" >&5
30586 echo "${ECHO_T}found in default search path" >&6
30587                     COMPILED_X_PROGRAM=1
30588
30589 else
30590   echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.$ac_ext >&5
30592
30593
30594                     echo "$as_me:$LINENO: result: no" >&5
30595 echo "${ECHO_T}no" >&6
30596                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30597 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
30598    { (exit 1); exit 1; }; }
30599
30600
30601 fi
30602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30603
30604             CXXFLAGS=$save_CXXFLAGS
30605         fi
30606
30607
30608         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
30609 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30610
30611   ac_find_libraries=
30612   for ac_dir in $SEARCH_LIB;
30613   do
30614     for ac_extension in a so sl dylib dll.a; do
30615       if test -f "$ac_dir/libXm.$ac_extension"; then
30616         ac_find_libraries=$ac_dir
30617         break 2
30618       fi
30619     done
30620   done
30621
30622
30623         if test "x$ac_find_libraries" != "x" ; then
30624             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30625 echo "${ECHO_T}found in $ac_find_libraries" >&6
30626
30627
30628     if test "$ac_find_libraries" = "default location"; then
30629     ac_path_to_link=""
30630   else
30631     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30632     result=$?
30633     if test $result = 0; then
30634       ac_path_to_link=""
30635     else
30636       ac_path_to_link=" -L$ac_find_libraries"
30637     fi
30638   fi
30639
30640             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30641         else
30642                                                 save_CXXFLAGS=$CXXFLAGS
30643             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30644             save_LIBS="$LIBS"
30645             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
30646
30647             cat >conftest.$ac_ext <<_ACEOF
30648 /* confdefs.h.  */
30649 _ACEOF
30650 cat confdefs.h >>conftest.$ac_ext
30651 cat >>conftest.$ac_ext <<_ACEOF
30652 /* end confdefs.h.  */
30653
30654                     #include <Xm/Xm.h>
30655
30656 int
30657 main ()
30658 {
30659
30660                     int version;
30661                     version = xmUseVersion;
30662
30663   ;
30664   return 0;
30665 }
30666 _ACEOF
30667 rm -f conftest.$ac_objext conftest$ac_exeext
30668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30669   (eval $ac_link) 2>conftest.er1
30670   ac_status=$?
30671   grep -v '^ *+' conftest.er1 >conftest.err
30672   rm -f conftest.er1
30673   cat conftest.err >&5
30674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675   (exit $ac_status); } &&
30676          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30678   (eval $ac_try) 2>&5
30679   ac_status=$?
30680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681   (exit $ac_status); }; } &&
30682          { ac_try='test -s conftest$ac_exeext'
30683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30684   (eval $ac_try) 2>&5
30685   ac_status=$?
30686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687   (exit $ac_status); }; }; then
30688
30689                     echo "$as_me:$LINENO: result: found in default search path" >&5
30690 echo "${ECHO_T}found in default search path" >&6
30691                     COMPILED_X_PROGRAM=1
30692
30693 else
30694   echo "$as_me: failed program was:" >&5
30695 sed 's/^/| /' conftest.$ac_ext >&5
30696
30697
30698                     echo "$as_me:$LINENO: result: no" >&5
30699 echo "${ECHO_T}no" >&6
30700                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
30701 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30702    { (exit 1); exit 1; }; }
30703
30704
30705 fi
30706 rm -f conftest.err conftest.$ac_objext \
30707       conftest$ac_exeext conftest.$ac_ext
30708
30709             CXXFLAGS=$save_CXXFLAGS
30710             LIBS="$save_LIBS"
30711         fi
30712
30713         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30714 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30715         libp_link=""
30716         libsm_ice_link=""
30717         libs_found=0
30718         for libp in "" " -lXp"; do
30719             if test "$libs_found" = "0"; then
30720                 for libsm_ice in "" " -lSM -lICE"; do
30721                     if test "$libs_found" = "0"; then
30722                         save_LIBS="$LIBS"
30723                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
30724                         save_CXXFLAGS=$CXXFLAGS
30725                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30726
30727                         cat >conftest.$ac_ext <<_ACEOF
30728 /* confdefs.h.  */
30729 _ACEOF
30730 cat confdefs.h >>conftest.$ac_ext
30731 cat >>conftest.$ac_ext <<_ACEOF
30732 /* end confdefs.h.  */
30733
30734                                 #include <Xm/Xm.h>
30735                                 #include <Xm/List.h>
30736
30737 int
30738 main ()
30739 {
30740
30741                                 XmString string = NULL;
30742                                 Widget w = NULL;
30743                                 int position = 0;
30744                                 XmListAddItem(w, string, position);
30745
30746   ;
30747   return 0;
30748 }
30749 _ACEOF
30750 rm -f conftest.$ac_objext conftest$ac_exeext
30751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30752   (eval $ac_link) 2>conftest.er1
30753   ac_status=$?
30754   grep -v '^ *+' conftest.er1 >conftest.err
30755   rm -f conftest.er1
30756   cat conftest.err >&5
30757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758   (exit $ac_status); } &&
30759          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761   (eval $ac_try) 2>&5
30762   ac_status=$?
30763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764   (exit $ac_status); }; } &&
30765          { ac_try='test -s conftest$ac_exeext'
30766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30767   (eval $ac_try) 2>&5
30768   ac_status=$?
30769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770   (exit $ac_status); }; }; then
30771
30772                                 libp_link="$libp"
30773                                 libsm_ice_link="$libsm_ice"
30774                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30775 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30776                                 libs_found=1
30777
30778 else
30779   echo "$as_me: failed program was:" >&5
30780 sed 's/^/| /' conftest.$ac_ext >&5
30781
30782
30783
30784 fi
30785 rm -f conftest.err conftest.$ac_objext \
30786       conftest$ac_exeext conftest.$ac_ext
30787
30788                         LIBS="$save_LIBS"
30789                         CXXFLAGS=$save_CXXFLAGS
30790                     fi
30791                 done
30792             fi
30793         done
30794
30795         if test "$libs_found" = "0"; then
30796             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30797 echo "${ECHO_T}can't find the right libraries" >&6
30798             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30799 echo "$as_me: error: can't link a simple motif program" >&2;}
30800    { (exit 1); exit 1; }; }
30801         fi
30802
30803                         echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30804 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30805 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30806   echo $ECHO_N "(cached) $ECHO_C" >&6
30807 else
30808   ac_check_lib_save_LIBS=$LIBS
30809 LIBS="-lSgm  $LIBS"
30810 cat >conftest.$ac_ext <<_ACEOF
30811 /* confdefs.h.  */
30812 _ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h.  */
30816
30817 /* Override any gcc2 internal prototype to avoid an error.  */
30818 #ifdef __cplusplus
30819 extern "C"
30820 #endif
30821 /* We use char because int might match the return type of a gcc2
30822    builtin and then its argument prototype would still apply.  */
30823 char SgCreateList ();
30824 int
30825 main ()
30826 {
30827 SgCreateList ();
30828   ;
30829   return 0;
30830 }
30831 _ACEOF
30832 rm -f conftest.$ac_objext conftest$ac_exeext
30833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30834   (eval $ac_link) 2>conftest.er1
30835   ac_status=$?
30836   grep -v '^ *+' conftest.er1 >conftest.err
30837   rm -f conftest.er1
30838   cat conftest.err >&5
30839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840   (exit $ac_status); } &&
30841          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30843   (eval $ac_try) 2>&5
30844   ac_status=$?
30845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846   (exit $ac_status); }; } &&
30847          { ac_try='test -s conftest$ac_exeext'
30848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30849   (eval $ac_try) 2>&5
30850   ac_status=$?
30851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852   (exit $ac_status); }; }; then
30853   ac_cv_lib_Sgm_SgCreateList=yes
30854 else
30855   echo "$as_me: failed program was:" >&5
30856 sed 's/^/| /' conftest.$ac_ext >&5
30857
30858 ac_cv_lib_Sgm_SgCreateList=no
30859 fi
30860 rm -f conftest.err conftest.$ac_objext \
30861       conftest$ac_exeext conftest.$ac_ext
30862 LIBS=$ac_check_lib_save_LIBS
30863 fi
30864 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30865 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30866 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30867   libsgm_link=" -lSgm"
30868 fi
30869
30870
30871         save_CXXFLAGS=$CXXFLAGS
30872         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30873
30874         echo "$as_me:$LINENO: checking for Motif 2" >&5
30875 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
30876 if test "${wx_cv_lib_motif2+set}" = set; then
30877   echo $ECHO_N "(cached) $ECHO_C" >&6
30878 else
30879   cat >conftest.$ac_ext <<_ACEOF
30880 /* confdefs.h.  */
30881 _ACEOF
30882 cat confdefs.h >>conftest.$ac_ext
30883 cat >>conftest.$ac_ext <<_ACEOF
30884 /* end confdefs.h.  */
30885
30886                             #include <Xm/Xm.h>
30887
30888 int
30889 main ()
30890 {
30891
30892                             #if XmVersion < 2000
30893                             Not Motif 2
30894                             #endif
30895
30896   ;
30897   return 0;
30898 }
30899 _ACEOF
30900 rm -f conftest.$ac_objext
30901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30902   (eval $ac_compile) 2>conftest.er1
30903   ac_status=$?
30904   grep -v '^ *+' conftest.er1 >conftest.err
30905   rm -f conftest.er1
30906   cat conftest.err >&5
30907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908   (exit $ac_status); } &&
30909          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30911   (eval $ac_try) 2>&5
30912   ac_status=$?
30913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914   (exit $ac_status); }; } &&
30915          { ac_try='test -s conftest.$ac_objext'
30916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30917   (eval $ac_try) 2>&5
30918   ac_status=$?
30919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920   (exit $ac_status); }; }; then
30921   wx_cv_lib_motif2="yes"
30922 else
30923   echo "$as_me: failed program was:" >&5
30924 sed 's/^/| /' conftest.$ac_ext >&5
30925
30926 wx_cv_lib_motif2="no"
30927 fi
30928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30929 fi
30930 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30931 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30932         if test "$wx_cv_lib_motif2" = "yes"; then
30933             cat >>confdefs.h <<\_ACEOF
30934 #define __WXMOTIF20__ 1
30935 _ACEOF
30936
30937         else
30938             cat >>confdefs.h <<\_ACEOF
30939 #define __WXMOTIF20__ 0
30940 _ACEOF
30941
30942         fi
30943
30944         echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30945 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
30946 if test "${wx_cv_lib_lesstif+set}" = set; then
30947   echo $ECHO_N "(cached) $ECHO_C" >&6
30948 else
30949   cat >conftest.$ac_ext <<_ACEOF
30950 /* confdefs.h.  */
30951 _ACEOF
30952 cat confdefs.h >>conftest.$ac_ext
30953 cat >>conftest.$ac_ext <<_ACEOF
30954 /* end confdefs.h.  */
30955
30956                             #include <Xm/Xm.h>
30957
30958 int
30959 main ()
30960 {
30961
30962                             #if !defined(LesstifVersion) || LesstifVersion <= 0
30963                             Not Lesstif
30964                             #endif
30965
30966   ;
30967   return 0;
30968 }
30969 _ACEOF
30970 rm -f conftest.$ac_objext
30971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30972   (eval $ac_compile) 2>conftest.er1
30973   ac_status=$?
30974   grep -v '^ *+' conftest.er1 >conftest.err
30975   rm -f conftest.er1
30976   cat conftest.err >&5
30977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978   (exit $ac_status); } &&
30979          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981   (eval $ac_try) 2>&5
30982   ac_status=$?
30983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984   (exit $ac_status); }; } &&
30985          { ac_try='test -s conftest.$ac_objext'
30986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987   (eval $ac_try) 2>&5
30988   ac_status=$?
30989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990   (exit $ac_status); }; }; then
30991   wx_cv_lib_lesstif="yes"
30992 else
30993   echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30995
30996 wx_cv_lib_lesstif="no"
30997 fi
30998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30999
31000 fi
31001 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31002 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31003         if test "$wx_cv_lib_lesstif" = "yes"; then
31004             cat >>confdefs.h <<\_ACEOF
31005 #define __WXLESSTIF__ 1
31006 _ACEOF
31007
31008         else
31009             cat >>confdefs.h <<\_ACEOF
31010 #define __WXLESSTIF__ 0
31011 _ACEOF
31012
31013         fi
31014
31015         CXXFLAGS=$save_CXXFLAGS
31016
31017         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
31018         TOOLKIT=MOTIF
31019         GUIDIST=MOTIF_DIST
31020     fi
31021
31022         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31023                 if test "$wxUSE_LIBXPM" = "sys"; then
31024             echo "$as_me:$LINENO: checking for Xpm library" >&5
31025 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31026
31027   ac_find_libraries=
31028   for ac_dir in $SEARCH_LIB;
31029   do
31030     for ac_extension in a so sl dylib dll.a; do
31031       if test -f "$ac_dir/libXpm.$ac_extension"; then
31032         ac_find_libraries=$ac_dir
31033         break 2
31034       fi
31035     done
31036   done
31037
31038             if test "$ac_find_libraries" != "" ; then
31039
31040     if test "$ac_find_libraries" = "default location"; then
31041     ac_path_to_link=""
31042   else
31043     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31044     result=$?
31045     if test $result = 0; then
31046       ac_path_to_link=""
31047     else
31048       ac_path_to_link=" -L$ac_find_libraries"
31049     fi
31050   fi
31051
31052                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31053                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31054 echo "${ECHO_T}found in $ac_find_libraries" >&6
31055
31056                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31057 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31058 if test "${wx_cv_x11_xpm_h+set}" = set; then
31059   echo $ECHO_N "(cached) $ECHO_C" >&6
31060 else
31061
31062                         save_CXXFLAGS=$CXXFLAGS
31063                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31064
31065                         cat >conftest.$ac_ext <<_ACEOF
31066 /* confdefs.h.  */
31067 _ACEOF
31068 cat confdefs.h >>conftest.$ac_ext
31069 cat >>conftest.$ac_ext <<_ACEOF
31070 /* end confdefs.h.  */
31071
31072                                 #include <X11/xpm.h>
31073
31074 int
31075 main ()
31076 {
31077
31078                                 int version;
31079                                 version = XpmLibraryVersion();
31080
31081   ;
31082   return 0;
31083 }
31084 _ACEOF
31085 rm -f conftest.$ac_objext
31086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31087   (eval $ac_compile) 2>conftest.er1
31088   ac_status=$?
31089   grep -v '^ *+' conftest.er1 >conftest.err
31090   rm -f conftest.er1
31091   cat conftest.err >&5
31092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093   (exit $ac_status); } &&
31094          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31096   (eval $ac_try) 2>&5
31097   ac_status=$?
31098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099   (exit $ac_status); }; } &&
31100          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
31106   wx_cv_x11_xpm_h=yes
31107 else
31108   echo "$as_me: failed program was:" >&5
31109 sed 's/^/| /' conftest.$ac_ext >&5
31110
31111 wx_cv_x11_xpm_h=no
31112
31113 fi
31114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31115
31116                         CXXFLAGS=$save_CXXFLAGS
31117
31118
31119 fi
31120 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31121 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31122
31123                 if test $wx_cv_x11_xpm_h = "yes"; then
31124                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31125                     cat >>confdefs.h <<\_ACEOF
31126 #define wxHAVE_LIB_XPM 1
31127 _ACEOF
31128
31129                 else
31130                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31131 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31132                 fi
31133             fi
31134
31135         fi
31136
31137                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31138 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31139 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31140   echo $ECHO_N "(cached) $ECHO_C" >&6
31141 else
31142   ac_check_lib_save_LIBS=$LIBS
31143 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31144 cat >conftest.$ac_ext <<_ACEOF
31145 /* confdefs.h.  */
31146 _ACEOF
31147 cat confdefs.h >>conftest.$ac_ext
31148 cat >>conftest.$ac_ext <<_ACEOF
31149 /* end confdefs.h.  */
31150
31151 /* Override any gcc2 internal prototype to avoid an error.  */
31152 #ifdef __cplusplus
31153 extern "C"
31154 #endif
31155 /* We use char because int might match the return type of a gcc2
31156    builtin and then its argument prototype would still apply.  */
31157 char XShapeQueryExtension ();
31158 int
31159 main ()
31160 {
31161 XShapeQueryExtension ();
31162   ;
31163   return 0;
31164 }
31165 _ACEOF
31166 rm -f conftest.$ac_objext conftest$ac_exeext
31167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31168   (eval $ac_link) 2>conftest.er1
31169   ac_status=$?
31170   grep -v '^ *+' conftest.er1 >conftest.err
31171   rm -f conftest.er1
31172   cat conftest.err >&5
31173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174   (exit $ac_status); } &&
31175          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31177   (eval $ac_try) 2>&5
31178   ac_status=$?
31179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180   (exit $ac_status); }; } &&
31181          { ac_try='test -s conftest$ac_exeext'
31182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31183   (eval $ac_try) 2>&5
31184   ac_status=$?
31185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186   (exit $ac_status); }; }; then
31187   ac_cv_lib_Xext_XShapeQueryExtension=yes
31188 else
31189   echo "$as_me: failed program was:" >&5
31190 sed 's/^/| /' conftest.$ac_ext >&5
31191
31192 ac_cv_lib_Xext_XShapeQueryExtension=no
31193 fi
31194 rm -f conftest.err conftest.$ac_objext \
31195       conftest$ac_exeext conftest.$ac_ext
31196 LIBS=$ac_check_lib_save_LIBS
31197 fi
31198 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31199 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31200 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31201
31202                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31203                       wxHAVE_XEXT_LIB=1
31204
31205 fi
31206
31207
31208         if test "$wxHAVE_XEXT_LIB" = 1; then
31209             save_CXXFLAGS="$CXXFLAGS"
31210             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31211
31212             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31213 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31214             cat >conftest.$ac_ext <<_ACEOF
31215 /* confdefs.h.  */
31216 _ACEOF
31217 cat confdefs.h >>conftest.$ac_ext
31218 cat >>conftest.$ac_ext <<_ACEOF
31219 /* end confdefs.h.  */
31220
31221                             #include <X11/Xlib.h>
31222                             #include <X11/extensions/shape.h>
31223
31224 int
31225 main ()
31226 {
31227
31228                             int dummy1, dummy2;
31229                             XShapeQueryExtension((Display*)NULL,
31230                                                  (int*)NULL, (int*)NULL);
31231
31232   ;
31233   return 0;
31234 }
31235 _ACEOF
31236 rm -f conftest.$ac_objext
31237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31238   (eval $ac_compile) 2>conftest.er1
31239   ac_status=$?
31240   grep -v '^ *+' conftest.er1 >conftest.err
31241   rm -f conftest.er1
31242   cat conftest.err >&5
31243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244   (exit $ac_status); } &&
31245          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31247   (eval $ac_try) 2>&5
31248   ac_status=$?
31249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250   (exit $ac_status); }; } &&
31251          { ac_try='test -s conftest.$ac_objext'
31252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31253   (eval $ac_try) 2>&5
31254   ac_status=$?
31255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256   (exit $ac_status); }; }; then
31257
31258                             cat >>confdefs.h <<\_ACEOF
31259 #define HAVE_XSHAPE 1
31260 _ACEOF
31261
31262                             echo "$as_me:$LINENO: result: found" >&5
31263 echo "${ECHO_T}found" >&6
31264
31265 else
31266   echo "$as_me: failed program was:" >&5
31267 sed 's/^/| /' conftest.$ac_ext >&5
31268
31269
31270                             echo "$as_me:$LINENO: result: not found" >&5
31271 echo "${ECHO_T}not found" >&6
31272
31273 fi
31274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31275             CXXFLAGS="$save_CXXFLAGS"
31276
31277         fi
31278     fi
31279
31280     if test "$wxUSE_MAC" = 1; then
31281         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31282 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31283         if test "$GCC" = yes; then
31284             echo "$as_me:$LINENO: result: gcc" >&5
31285 echo "${ECHO_T}gcc" >&6
31286             CPPFLAGS_PASCAL="-fpascal-strings"
31287         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31288             echo "$as_me:$LINENO: result: xlc" >&5
31289 echo "${ECHO_T}xlc" >&6
31290             CPPFLAGS_PASCAL="-qmacpstr"
31291         else
31292             echo "$as_me:$LINENO: result: none" >&5
31293 echo "${ECHO_T}none" >&6
31294         fi
31295
31296         if test "x$wxUSE_UNIX" = "xyes"; then
31297             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
31298         else
31299                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
31300         fi
31301
31302         TOOLKIT=MAC
31303                 GUIDIST=MACX_DIST
31304                         WXBASEPORT="_carbon"
31305     fi
31306
31307     if test "$wxUSE_COCOA" = 1; then
31308         TOOLKIT=COCOA
31309         GUIDIST=COCOA_DIST
31310     fi
31311
31312     if test "$wxUSE_PM" = 1; then
31313         TOOLKIT=PM
31314         GUIDIST=PM_DIST
31315         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31316 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31317 if test "${wx_cv_spbcdata+set}" = set; then
31318   echo $ECHO_N "(cached) $ECHO_C" >&6
31319 else
31320
31321                 cat >conftest.$ac_ext <<_ACEOF
31322 /* confdefs.h.  */
31323 _ACEOF
31324 cat confdefs.h >>conftest.$ac_ext
31325 cat >>conftest.$ac_ext <<_ACEOF
31326 /* end confdefs.h.  */
31327
31328                         #define INCL_PM
31329                         #include <os2.h>
31330
31331 int
31332 main ()
31333 {
31334
31335                         SPBCDATA test;
31336
31337   ;
31338   return 0;
31339 }
31340 _ACEOF
31341 rm -f conftest.$ac_objext
31342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31343   (eval $ac_compile) 2>conftest.er1
31344   ac_status=$?
31345   grep -v '^ *+' conftest.er1 >conftest.err
31346   rm -f conftest.er1
31347   cat conftest.err >&5
31348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349   (exit $ac_status); } &&
31350          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352   (eval $ac_try) 2>&5
31353   ac_status=$?
31354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355   (exit $ac_status); }; } &&
31356          { ac_try='test -s conftest.$ac_objext'
31357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31358   (eval $ac_try) 2>&5
31359   ac_status=$?
31360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361   (exit $ac_status); }; }; then
31362   wx_cv_spbcdata=yes
31363 else
31364   echo "$as_me: failed program was:" >&5
31365 sed 's/^/| /' conftest.$ac_ext >&5
31366
31367 wx_cv_spbcdata=no
31368
31369 fi
31370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31371
31372
31373 fi
31374 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31375 echo "${ECHO_T}$wx_cv_spbcdata" >&6
31376
31377         if test $wx_cv_spbcdata = "yes"; then
31378             cat >>confdefs.h <<\_ACEOF
31379 #define HAVE_SPBCDATA 1
31380 _ACEOF
31381
31382         fi
31383     fi
31384
31385         if test "$TOOLKIT" = "PM" ; then
31386         TOOLKIT_DIR="os2"
31387     else
31388         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31389     fi
31390
31391     if test "$wxUSE_UNIVERSAL" = "yes"; then
31392         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31393         WIDGET_SET=univ
31394     fi
31395
31396         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31397     DISTDIR="wx\$(TOOLKIT)"
31398 else
31399     USE_GUI=0
31400
31401             TOOLKIT_DIR="base"
31402
31403         if test "$USE_WIN32" = 1 ; then
31404                         TOOLKIT="MSW"
31405     fi
31406
31407         GUIDIST="BASE_DIST"
31408     DISTDIR="wxBase"
31409 fi
31410
31411
31412 if test "$wxUSE_GUI" = "yes"; then
31413     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31414
31415 for ac_header in X11/Xlib.h
31416 do
31417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31419   echo "$as_me:$LINENO: checking for $ac_header" >&5
31420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31422   echo $ECHO_N "(cached) $ECHO_C" >&6
31423 fi
31424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31426 else
31427   # Is the header compilable?
31428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31430 cat >conftest.$ac_ext <<_ACEOF
31431 /* confdefs.h.  */
31432 _ACEOF
31433 cat confdefs.h >>conftest.$ac_ext
31434 cat >>conftest.$ac_ext <<_ACEOF
31435 /* end confdefs.h.  */
31436 $ac_includes_default
31437 #include <$ac_header>
31438 _ACEOF
31439 rm -f conftest.$ac_objext
31440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31441   (eval $ac_compile) 2>conftest.er1
31442   ac_status=$?
31443   grep -v '^ *+' conftest.er1 >conftest.err
31444   rm -f conftest.er1
31445   cat conftest.err >&5
31446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447   (exit $ac_status); } &&
31448          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31450   (eval $ac_try) 2>&5
31451   ac_status=$?
31452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453   (exit $ac_status); }; } &&
31454          { ac_try='test -s conftest.$ac_objext'
31455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31456   (eval $ac_try) 2>&5
31457   ac_status=$?
31458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31459   (exit $ac_status); }; }; then
31460   ac_header_compiler=yes
31461 else
31462   echo "$as_me: failed program was:" >&5
31463 sed 's/^/| /' conftest.$ac_ext >&5
31464
31465 ac_header_compiler=no
31466 fi
31467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31469 echo "${ECHO_T}$ac_header_compiler" >&6
31470
31471 # Is the header present?
31472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31474 cat >conftest.$ac_ext <<_ACEOF
31475 /* confdefs.h.  */
31476 _ACEOF
31477 cat confdefs.h >>conftest.$ac_ext
31478 cat >>conftest.$ac_ext <<_ACEOF
31479 /* end confdefs.h.  */
31480 #include <$ac_header>
31481 _ACEOF
31482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31484   ac_status=$?
31485   grep -v '^ *+' conftest.er1 >conftest.err
31486   rm -f conftest.er1
31487   cat conftest.err >&5
31488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489   (exit $ac_status); } >/dev/null; then
31490   if test -s conftest.err; then
31491     ac_cpp_err=$ac_cxx_preproc_warn_flag
31492     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31493   else
31494     ac_cpp_err=
31495   fi
31496 else
31497   ac_cpp_err=yes
31498 fi
31499 if test -z "$ac_cpp_err"; then
31500   ac_header_preproc=yes
31501 else
31502   echo "$as_me: failed program was:" >&5
31503 sed 's/^/| /' conftest.$ac_ext >&5
31504
31505   ac_header_preproc=no
31506 fi
31507 rm -f conftest.err conftest.$ac_ext
31508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31509 echo "${ECHO_T}$ac_header_preproc" >&6
31510
31511 # So?  What about this header?
31512 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31513   yes:no: )
31514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31518     ac_header_preproc=yes
31519     ;;
31520   no:yes:* )
31521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31533     (
31534       cat <<\_ASBOX
31535 ## ----------------------------------------- ##
31536 ## Report this to wx-dev@lists.wxwidgets.org ##
31537 ## ----------------------------------------- ##
31538 _ASBOX
31539     ) |
31540       sed "s/^/$as_me: WARNING:     /" >&2
31541     ;;
31542 esac
31543 echo "$as_me:$LINENO: checking for $ac_header" >&5
31544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31546   echo $ECHO_N "(cached) $ECHO_C" >&6
31547 else
31548   eval "$as_ac_Header=\$ac_header_preproc"
31549 fi
31550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31552
31553 fi
31554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31555   cat >>confdefs.h <<_ACEOF
31556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31557 _ACEOF
31558
31559 fi
31560
31561 done
31562
31563
31564 for ac_header in X11/XKBlib.h
31565 do
31566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31567 echo "$as_me:$LINENO: checking for $ac_header" >&5
31568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31570   echo $ECHO_N "(cached) $ECHO_C" >&6
31571 else
31572   cat >conftest.$ac_ext <<_ACEOF
31573 /* confdefs.h.  */
31574 _ACEOF
31575 cat confdefs.h >>conftest.$ac_ext
31576 cat >>conftest.$ac_ext <<_ACEOF
31577 /* end confdefs.h.  */
31578
31579                           #if HAVE_X11_XLIB_H
31580                             #include <X11/Xlib.h>
31581                           #endif
31582
31583
31584 #include <$ac_header>
31585 _ACEOF
31586 rm -f conftest.$ac_objext
31587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31588   (eval $ac_compile) 2>conftest.er1
31589   ac_status=$?
31590   grep -v '^ *+' conftest.er1 >conftest.err
31591   rm -f conftest.er1
31592   cat conftest.err >&5
31593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594   (exit $ac_status); } &&
31595          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31597   (eval $ac_try) 2>&5
31598   ac_status=$?
31599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600   (exit $ac_status); }; } &&
31601          { ac_try='test -s conftest.$ac_objext'
31602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31603   (eval $ac_try) 2>&5
31604   ac_status=$?
31605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606   (exit $ac_status); }; }; then
31607   eval "$as_ac_Header=yes"
31608 else
31609   echo "$as_me: failed program was:" >&5
31610 sed 's/^/| /' conftest.$ac_ext >&5
31611
31612 eval "$as_ac_Header=no"
31613 fi
31614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31615 fi
31616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31619   cat >>confdefs.h <<_ACEOF
31620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31621 _ACEOF
31622
31623 fi
31624
31625 done
31626
31627     fi
31628 fi
31629
31630
31631
31632 IODBC_C_SRC=""
31633
31634
31635 if test "$TOOLKIT" != "MSW" ; then
31636
31637     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31638
31639         if test "${ac_cv_header_sql_h+set}" = set; then
31640   echo "$as_me:$LINENO: checking for sql.h" >&5
31641 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31642 if test "${ac_cv_header_sql_h+set}" = set; then
31643   echo $ECHO_N "(cached) $ECHO_C" >&6
31644 fi
31645 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31646 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31647 else
31648   # Is the header compilable?
31649 echo "$as_me:$LINENO: checking sql.h usability" >&5
31650 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31651 cat >conftest.$ac_ext <<_ACEOF
31652 /* confdefs.h.  */
31653 _ACEOF
31654 cat confdefs.h >>conftest.$ac_ext
31655 cat >>conftest.$ac_ext <<_ACEOF
31656 /* end confdefs.h.  */
31657 $ac_includes_default
31658 #include <sql.h>
31659 _ACEOF
31660 rm -f conftest.$ac_objext
31661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31662   (eval $ac_compile) 2>conftest.er1
31663   ac_status=$?
31664   grep -v '^ *+' conftest.er1 >conftest.err
31665   rm -f conftest.er1
31666   cat conftest.err >&5
31667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668   (exit $ac_status); } &&
31669          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671   (eval $ac_try) 2>&5
31672   ac_status=$?
31673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674   (exit $ac_status); }; } &&
31675          { ac_try='test -s conftest.$ac_objext'
31676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31677   (eval $ac_try) 2>&5
31678   ac_status=$?
31679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680   (exit $ac_status); }; }; then
31681   ac_header_compiler=yes
31682 else
31683   echo "$as_me: failed program was:" >&5
31684 sed 's/^/| /' conftest.$ac_ext >&5
31685
31686 ac_header_compiler=no
31687 fi
31688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31690 echo "${ECHO_T}$ac_header_compiler" >&6
31691
31692 # Is the header present?
31693 echo "$as_me:$LINENO: checking sql.h presence" >&5
31694 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31695 cat >conftest.$ac_ext <<_ACEOF
31696 /* confdefs.h.  */
31697 _ACEOF
31698 cat confdefs.h >>conftest.$ac_ext
31699 cat >>conftest.$ac_ext <<_ACEOF
31700 /* end confdefs.h.  */
31701 #include <sql.h>
31702 _ACEOF
31703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31705   ac_status=$?
31706   grep -v '^ *+' conftest.er1 >conftest.err
31707   rm -f conftest.er1
31708   cat conftest.err >&5
31709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710   (exit $ac_status); } >/dev/null; then
31711   if test -s conftest.err; then
31712     ac_cpp_err=$ac_cxx_preproc_warn_flag
31713     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31714   else
31715     ac_cpp_err=
31716   fi
31717 else
31718   ac_cpp_err=yes
31719 fi
31720 if test -z "$ac_cpp_err"; then
31721   ac_header_preproc=yes
31722 else
31723   echo "$as_me: failed program was:" >&5
31724 sed 's/^/| /' conftest.$ac_ext >&5
31725
31726   ac_header_preproc=no
31727 fi
31728 rm -f conftest.err conftest.$ac_ext
31729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31730 echo "${ECHO_T}$ac_header_preproc" >&6
31731
31732 # So?  What about this header?
31733 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31734   yes:no: )
31735     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31736 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31737     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31738 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31739     ac_header_preproc=yes
31740     ;;
31741   no:yes:* )
31742     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31743 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
31744     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
31745 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
31746     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31747 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31748     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
31749 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31750     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31751 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
31752     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31753 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
31754     (
31755       cat <<\_ASBOX
31756 ## ----------------------------------------- ##
31757 ## Report this to wx-dev@lists.wxwidgets.org ##
31758 ## ----------------------------------------- ##
31759 _ASBOX
31760     ) |
31761       sed "s/^/$as_me: WARNING:     /" >&2
31762     ;;
31763 esac
31764 echo "$as_me:$LINENO: checking for sql.h" >&5
31765 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31766 if test "${ac_cv_header_sql_h+set}" = set; then
31767   echo $ECHO_N "(cached) $ECHO_C" >&6
31768 else
31769   ac_cv_header_sql_h=$ac_header_preproc
31770 fi
31771 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31772 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31773
31774 fi
31775 if test $ac_cv_header_sql_h = yes; then
31776   found_sql_h=1
31777 fi
31778
31779
31780         if test "x$found_sql_h" = "x1" ; then
31781             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31782 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31783 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31784   echo $ECHO_N "(cached) $ECHO_C" >&6
31785 else
31786   ac_check_lib_save_LIBS=$LIBS
31787 LIBS="-liodbc  $LIBS"
31788 cat >conftest.$ac_ext <<_ACEOF
31789 /* confdefs.h.  */
31790 _ACEOF
31791 cat confdefs.h >>conftest.$ac_ext
31792 cat >>conftest.$ac_ext <<_ACEOF
31793 /* end confdefs.h.  */
31794
31795 /* Override any gcc2 internal prototype to avoid an error.  */
31796 #ifdef __cplusplus
31797 extern "C"
31798 #endif
31799 /* We use char because int might match the return type of a gcc2
31800    builtin and then its argument prototype would still apply.  */
31801 char SQLAllocEnv ();
31802 int
31803 main ()
31804 {
31805 SQLAllocEnv ();
31806   ;
31807   return 0;
31808 }
31809 _ACEOF
31810 rm -f conftest.$ac_objext conftest$ac_exeext
31811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31812   (eval $ac_link) 2>conftest.er1
31813   ac_status=$?
31814   grep -v '^ *+' conftest.er1 >conftest.err
31815   rm -f conftest.er1
31816   cat conftest.err >&5
31817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818   (exit $ac_status); } &&
31819          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31821   (eval $ac_try) 2>&5
31822   ac_status=$?
31823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824   (exit $ac_status); }; } &&
31825          { ac_try='test -s conftest$ac_exeext'
31826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31827   (eval $ac_try) 2>&5
31828   ac_status=$?
31829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830   (exit $ac_status); }; }; then
31831   ac_cv_lib_iodbc_SQLAllocEnv=yes
31832 else
31833   echo "$as_me: failed program was:" >&5
31834 sed 's/^/| /' conftest.$ac_ext >&5
31835
31836 ac_cv_lib_iodbc_SQLAllocEnv=no
31837 fi
31838 rm -f conftest.err conftest.$ac_objext \
31839       conftest$ac_exeext conftest.$ac_ext
31840 LIBS=$ac_check_lib_save_LIBS
31841 fi
31842 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31843 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31844 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31845   ODBC_LINK=" -liodbc"
31846 else
31847
31848                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31849 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31850 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31851   echo $ECHO_N "(cached) $ECHO_C" >&6
31852 else
31853   ac_check_lib_save_LIBS=$LIBS
31854 LIBS="-lunixodbc  $LIBS"
31855 cat >conftest.$ac_ext <<_ACEOF
31856 /* confdefs.h.  */
31857 _ACEOF
31858 cat confdefs.h >>conftest.$ac_ext
31859 cat >>conftest.$ac_ext <<_ACEOF
31860 /* end confdefs.h.  */
31861
31862 /* Override any gcc2 internal prototype to avoid an error.  */
31863 #ifdef __cplusplus
31864 extern "C"
31865 #endif
31866 /* We use char because int might match the return type of a gcc2
31867    builtin and then its argument prototype would still apply.  */
31868 char SQLAllocEnv ();
31869 int
31870 main ()
31871 {
31872 SQLAllocEnv ();
31873   ;
31874   return 0;
31875 }
31876 _ACEOF
31877 rm -f conftest.$ac_objext conftest$ac_exeext
31878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31879   (eval $ac_link) 2>conftest.er1
31880   ac_status=$?
31881   grep -v '^ *+' conftest.er1 >conftest.err
31882   rm -f conftest.er1
31883   cat conftest.err >&5
31884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885   (exit $ac_status); } &&
31886          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888   (eval $ac_try) 2>&5
31889   ac_status=$?
31890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891   (exit $ac_status); }; } &&
31892          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
31898   ac_cv_lib_unixodbc_SQLAllocEnv=yes
31899 else
31900   echo "$as_me: failed program was:" >&5
31901 sed 's/^/| /' conftest.$ac_ext >&5
31902
31903 ac_cv_lib_unixodbc_SQLAllocEnv=no
31904 fi
31905 rm -f conftest.err conftest.$ac_objext \
31906       conftest$ac_exeext conftest.$ac_ext
31907 LIBS=$ac_check_lib_save_LIBS
31908 fi
31909 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31910 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31911 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31912   ODBC_LINK=" -lunixodbc"
31913 else
31914
31915                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31916 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31917 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31918   echo $ECHO_N "(cached) $ECHO_C" >&6
31919 else
31920   ac_check_lib_save_LIBS=$LIBS
31921 LIBS="-lodbc  $LIBS"
31922 cat >conftest.$ac_ext <<_ACEOF
31923 /* confdefs.h.  */
31924 _ACEOF
31925 cat confdefs.h >>conftest.$ac_ext
31926 cat >>conftest.$ac_ext <<_ACEOF
31927 /* end confdefs.h.  */
31928
31929 /* Override any gcc2 internal prototype to avoid an error.  */
31930 #ifdef __cplusplus
31931 extern "C"
31932 #endif
31933 /* We use char because int might match the return type of a gcc2
31934    builtin and then its argument prototype would still apply.  */
31935 char SQLAllocEnv ();
31936 int
31937 main ()
31938 {
31939 SQLAllocEnv ();
31940   ;
31941   return 0;
31942 }
31943 _ACEOF
31944 rm -f conftest.$ac_objext conftest$ac_exeext
31945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31946   (eval $ac_link) 2>conftest.er1
31947   ac_status=$?
31948   grep -v '^ *+' conftest.er1 >conftest.err
31949   rm -f conftest.er1
31950   cat conftest.err >&5
31951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952   (exit $ac_status); } &&
31953          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31955   (eval $ac_try) 2>&5
31956   ac_status=$?
31957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958   (exit $ac_status); }; } &&
31959          { ac_try='test -s conftest$ac_exeext'
31960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31961   (eval $ac_try) 2>&5
31962   ac_status=$?
31963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964   (exit $ac_status); }; }; then
31965   ac_cv_lib_odbc_SQLAllocEnv=yes
31966 else
31967   echo "$as_me: failed program was:" >&5
31968 sed 's/^/| /' conftest.$ac_ext >&5
31969
31970 ac_cv_lib_odbc_SQLAllocEnv=no
31971 fi
31972 rm -f conftest.err conftest.$ac_objext \
31973       conftest$ac_exeext conftest.$ac_ext
31974 LIBS=$ac_check_lib_save_LIBS
31975 fi
31976 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31977 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31978 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31979   ODBC_LINK=" -lodbc"
31980 fi
31981
31982
31983 fi
31984
31985
31986 fi
31987
31988         fi
31989         if test "x$ODBC_LINK" = "x" ; then
31990             if test "$wxUSE_ODBC" = "sys" ; then
31991                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31992 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31993    { (exit 1); exit 1; }; }
31994             else
31995                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31996 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31997                 wxUSE_ODBC=builtin
31998             fi
31999         else
32000                         wxUSE_ODBC=sys
32001         fi
32002     fi
32003
32004     if test "$wxUSE_ODBC" = "builtin" ; then
32005         cat >>confdefs.h <<\_ACEOF
32006 #define wxUSE_BUILTIN_IODBC 1
32007 _ACEOF
32008
32009     fi
32010 fi
32011
32012 if test "$wxUSE_ODBC" != "no" ; then
32013     cat >>confdefs.h <<\_ACEOF
32014 #define wxUSE_ODBC 1
32015 _ACEOF
32016
32017     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32018
32019         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
32020 fi
32021
32022
32023 if test "$wxUSE_DISPLAY" = "yes"; then
32024     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32025         echo "$as_me:$LINENO: checking for Xinerama" >&5
32026 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32027
32028   ac_find_libraries=
32029   for ac_dir in $SEARCH_LIB;
32030   do
32031     for ac_extension in a so sl dylib dll.a; do
32032       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32033         ac_find_libraries=$ac_dir
32034         break 2
32035       fi
32036     done
32037   done
32038
32039         if test "$ac_find_libraries" != "" ; then
32040
32041     if test "$ac_find_libraries" = "default location"; then
32042     ac_path_to_link=""
32043   else
32044     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32045     result=$?
32046     if test $result = 0; then
32047       ac_path_to_link=""
32048     else
32049       ac_path_to_link=" -L$ac_find_libraries"
32050     fi
32051   fi
32052
32053             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32054                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32055             fi
32056             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32057             echo "$as_me:$LINENO: result: yes" >&5
32058 echo "${ECHO_T}yes" >&6
32059
32060             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32061 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32062
32063   ac_find_libraries=
32064   for ac_dir in $SEARCH_LIB;
32065   do
32066     for ac_extension in a so sl dylib dll.a; do
32067       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32068         ac_find_libraries=$ac_dir
32069         break 2
32070       fi
32071     done
32072   done
32073
32074             if test "$ac_find_libraries" != "" ; then
32075                 echo "$as_me:$LINENO: result: yes" >&5
32076 echo "${ECHO_T}yes" >&6
32077
32078 for ac_header in X11/extensions/xf86vmode.h
32079 do
32080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32081 echo "$as_me:$LINENO: checking for $ac_header" >&5
32082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32084   echo $ECHO_N "(cached) $ECHO_C" >&6
32085 else
32086   cat >conftest.$ac_ext <<_ACEOF
32087 /* confdefs.h.  */
32088 _ACEOF
32089 cat confdefs.h >>conftest.$ac_ext
32090 cat >>conftest.$ac_ext <<_ACEOF
32091 /* end confdefs.h.  */
32092
32093                                       #if HAVE_X11_XLIB_H
32094                                         #include <X11/Xlib.h>
32095                                       #endif
32096
32097
32098 #include <$ac_header>
32099 _ACEOF
32100 rm -f conftest.$ac_objext
32101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32102   (eval $ac_compile) 2>conftest.er1
32103   ac_status=$?
32104   grep -v '^ *+' conftest.er1 >conftest.err
32105   rm -f conftest.er1
32106   cat conftest.err >&5
32107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108   (exit $ac_status); } &&
32109          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32111   (eval $ac_try) 2>&5
32112   ac_status=$?
32113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114   (exit $ac_status); }; } &&
32115          { ac_try='test -s conftest.$ac_objext'
32116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32117   (eval $ac_try) 2>&5
32118   ac_status=$?
32119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120   (exit $ac_status); }; }; then
32121   eval "$as_ac_Header=yes"
32122 else
32123   echo "$as_me: failed program was:" >&5
32124 sed 's/^/| /' conftest.$ac_ext >&5
32125
32126 eval "$as_ac_Header=no"
32127 fi
32128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32129 fi
32130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32133   cat >>confdefs.h <<_ACEOF
32134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32135 _ACEOF
32136
32137                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32138
32139 fi
32140
32141 done
32142
32143             else
32144                 echo "$as_me:$LINENO: result: no" >&5
32145 echo "${ECHO_T}no" >&6
32146             fi
32147
32148         else
32149             echo "$as_me:$LINENO: result: no" >&5
32150 echo "${ECHO_T}no" >&6
32151             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32152 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32153             wxUSE_DISPLAY="no"
32154         fi
32155     elif test "$wxUSE_MSW" = 1; then
32156
32157 for ac_header in ddraw.h
32158 do
32159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32160 echo "$as_me:$LINENO: checking for $ac_header" >&5
32161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32163   echo $ECHO_N "(cached) $ECHO_C" >&6
32164 else
32165   cat >conftest.$ac_ext <<_ACEOF
32166 /* confdefs.h.  */
32167 _ACEOF
32168 cat confdefs.h >>conftest.$ac_ext
32169 cat >>conftest.$ac_ext <<_ACEOF
32170 /* end confdefs.h.  */
32171 #include <windows.h>
32172
32173 #include <$ac_header>
32174 _ACEOF
32175 rm -f conftest.$ac_objext
32176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32177   (eval $ac_compile) 2>conftest.er1
32178   ac_status=$?
32179   grep -v '^ *+' conftest.er1 >conftest.err
32180   rm -f conftest.er1
32181   cat conftest.err >&5
32182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183   (exit $ac_status); } &&
32184          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186   (eval $ac_try) 2>&5
32187   ac_status=$?
32188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189   (exit $ac_status); }; } &&
32190          { ac_try='test -s conftest.$ac_objext'
32191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32192   (eval $ac_try) 2>&5
32193   ac_status=$?
32194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195   (exit $ac_status); }; }; then
32196   eval "$as_ac_Header=yes"
32197 else
32198   echo "$as_me: failed program was:" >&5
32199 sed 's/^/| /' conftest.$ac_ext >&5
32200
32201 eval "$as_ac_Header=no"
32202 fi
32203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32204 fi
32205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32208   cat >>confdefs.h <<_ACEOF
32209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32210 _ACEOF
32211
32212 fi
32213
32214 done
32215
32216     fi
32217 fi
32218
32219
32220 USE_OPENGL=0
32221 if test "$wxUSE_OPENGL" = "yes"; then
32222     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32223         OPENGL_LIBS="-framework OpenGL -framework AGL"
32224     elif test "$wxUSE_MSW" = 1; then
32225         OPENGL_LIBS="-lopengl32 -lglu32"
32226     else
32227
32228
32229 ac_find_includes=
32230 for ac_dir in $SEARCH_INCLUDE /usr/include;
32231   do
32232     if test -f "$ac_dir/GL/gl.h"; then
32233       ac_find_includes=$ac_dir
32234       break
32235     fi
32236   done
32237
32238         if test "$ac_find_includes" != "" ; then
32239             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32240 echo "${ECHO_T}found in $ac_find_includes" >&6
32241
32242     if test "x$ac_find_includes" = "x/usr/include"; then
32243     ac_path_to_include=""
32244   else
32245     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32246     result=$?
32247     if test $result = 0; then
32248       ac_path_to_include=""
32249     else
32250       ac_path_to_include=" -I$ac_find_includes"
32251     fi
32252   fi
32253
32254             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
32255         fi
32256
32257         if test "${ac_cv_header_GL_gl_h+set}" = set; then
32258   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32259 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32260 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32261   echo $ECHO_N "(cached) $ECHO_C" >&6
32262 fi
32263 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32264 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32265 else
32266   # Is the header compilable?
32267 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32268 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32269 cat >conftest.$ac_ext <<_ACEOF
32270 /* confdefs.h.  */
32271 _ACEOF
32272 cat confdefs.h >>conftest.$ac_ext
32273 cat >>conftest.$ac_ext <<_ACEOF
32274 /* end confdefs.h.  */
32275 $ac_includes_default
32276 #include <GL/gl.h>
32277 _ACEOF
32278 rm -f conftest.$ac_objext
32279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32280   (eval $ac_compile) 2>conftest.er1
32281   ac_status=$?
32282   grep -v '^ *+' conftest.er1 >conftest.err
32283   rm -f conftest.er1
32284   cat conftest.err >&5
32285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286   (exit $ac_status); } &&
32287          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32289   (eval $ac_try) 2>&5
32290   ac_status=$?
32291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292   (exit $ac_status); }; } &&
32293          { ac_try='test -s conftest.$ac_objext'
32294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32295   (eval $ac_try) 2>&5
32296   ac_status=$?
32297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298   (exit $ac_status); }; }; then
32299   ac_header_compiler=yes
32300 else
32301   echo "$as_me: failed program was:" >&5
32302 sed 's/^/| /' conftest.$ac_ext >&5
32303
32304 ac_header_compiler=no
32305 fi
32306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32308 echo "${ECHO_T}$ac_header_compiler" >&6
32309
32310 # Is the header present?
32311 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32312 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32313 cat >conftest.$ac_ext <<_ACEOF
32314 /* confdefs.h.  */
32315 _ACEOF
32316 cat confdefs.h >>conftest.$ac_ext
32317 cat >>conftest.$ac_ext <<_ACEOF
32318 /* end confdefs.h.  */
32319 #include <GL/gl.h>
32320 _ACEOF
32321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32323   ac_status=$?
32324   grep -v '^ *+' conftest.er1 >conftest.err
32325   rm -f conftest.er1
32326   cat conftest.err >&5
32327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328   (exit $ac_status); } >/dev/null; then
32329   if test -s conftest.err; then
32330     ac_cpp_err=$ac_cxx_preproc_warn_flag
32331     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32332   else
32333     ac_cpp_err=
32334   fi
32335 else
32336   ac_cpp_err=yes
32337 fi
32338 if test -z "$ac_cpp_err"; then
32339   ac_header_preproc=yes
32340 else
32341   echo "$as_me: failed program was:" >&5
32342 sed 's/^/| /' conftest.$ac_ext >&5
32343
32344   ac_header_preproc=no
32345 fi
32346 rm -f conftest.err conftest.$ac_ext
32347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32348 echo "${ECHO_T}$ac_header_preproc" >&6
32349
32350 # So?  What about this header?
32351 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32352   yes:no: )
32353     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32354 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32355     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32356 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32357     ac_header_preproc=yes
32358     ;;
32359   no:yes:* )
32360     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32361 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
32362     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
32363 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
32364     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32365 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32366     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
32367 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32368     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32369 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
32370     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32371 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
32372     (
32373       cat <<\_ASBOX
32374 ## ----------------------------------------- ##
32375 ## Report this to wx-dev@lists.wxwidgets.org ##
32376 ## ----------------------------------------- ##
32377 _ASBOX
32378     ) |
32379       sed "s/^/$as_me: WARNING:     /" >&2
32380     ;;
32381 esac
32382 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32383 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32384 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32385   echo $ECHO_N "(cached) $ECHO_C" >&6
32386 else
32387   ac_cv_header_GL_gl_h=$ac_header_preproc
32388 fi
32389 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32390 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32391
32392 fi
32393 if test $ac_cv_header_GL_gl_h = yes; then
32394
32395                 found_gl=0
32396
32397                 echo "$as_me:$LINENO: checking for -lGL" >&5
32398 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32399
32400   ac_find_libraries=
32401   for ac_dir in $SEARCH_LIB;
32402   do
32403     for ac_extension in a so sl dylib dll.a; do
32404       if test -f "$ac_dir/libGL.$ac_extension"; then
32405         ac_find_libraries=$ac_dir
32406         break 2
32407       fi
32408     done
32409   done
32410
32411                 if test "$ac_find_libraries" != "" ; then
32412                     echo "$as_me:$LINENO: result: yes" >&5
32413 echo "${ECHO_T}yes" >&6
32414
32415
32416     if test "$ac_find_libraries" = "default location"; then
32417     ac_path_to_link=""
32418   else
32419     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32420     result=$?
32421     if test $result = 0; then
32422       ac_path_to_link=""
32423     else
32424       ac_path_to_link=" -L$ac_find_libraries"
32425     fi
32426   fi
32427
32428                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
32429                         LDFLAGS_GL="$ac_path_to_link"
32430                     fi
32431
32432                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
32433 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
32434
32435   ac_find_libraries=
32436   for ac_dir in $SEARCH_LIB;
32437   do
32438     for ac_extension in a so sl dylib dll.a; do
32439       if test -f "$ac_dir/libGLU.$ac_extension"; then
32440         ac_find_libraries=$ac_dir
32441         break 2
32442       fi
32443     done
32444   done
32445
32446                     if test "$ac_find_libraries" != "" ; then
32447
32448     if test "$ac_find_libraries" = "default location"; then
32449     ac_path_to_link=""
32450   else
32451     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32452     result=$?
32453     if test $result = 0; then
32454       ac_path_to_link=""
32455     else
32456       ac_path_to_link=" -L$ac_find_libraries"
32457     fi
32458   fi
32459
32460                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
32461                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
32462                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32463                         fi
32464
32465                         found_gl=1
32466                         OPENGL_LIBS="-lGL -lGLU"
32467                         echo "$as_me:$LINENO: result: yes" >&5
32468 echo "${ECHO_T}yes" >&6
32469                     else
32470                         echo "$as_me:$LINENO: result: no" >&5
32471 echo "${ECHO_T}no" >&6
32472                     fi
32473                 else
32474                     echo "$as_me:$LINENO: result: no" >&5
32475 echo "${ECHO_T}no" >&6
32476                 fi
32477
32478                 if test "$found_gl" != 1; then
32479                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32480 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32481
32482   ac_find_libraries=
32483   for ac_dir in $SEARCH_LIB;
32484   do
32485     for ac_extension in a so sl dylib dll.a; do
32486       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32487         ac_find_libraries=$ac_dir
32488         break 2
32489       fi
32490     done
32491   done
32492
32493                     if test "$ac_find_libraries" != "" ; then
32494
32495     if test "$ac_find_libraries" = "default location"; then
32496     ac_path_to_link=""
32497   else
32498     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32499     result=$?
32500     if test $result = 0; then
32501       ac_path_to_link=""
32502     else
32503       ac_path_to_link=" -L$ac_find_libraries"
32504     fi
32505   fi
32506
32507                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32508                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
32509                         echo "$as_me:$LINENO: result: yes" >&5
32510 echo "${ECHO_T}yes" >&6
32511                     else
32512                         echo "$as_me:$LINENO: result: no" >&5
32513 echo "${ECHO_T}no" >&6
32514                     fi
32515                 fi
32516
32517 fi
32518
32519
32520
32521         if test "x$OPENGL_LIBS" = "x"; then
32522                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32523 echo "$as_me: error: OpenGL libraries not available" >&2;}
32524    { (exit 1); exit 1; }; }
32525         fi
32526     fi
32527
32528     if test "$wxUSE_OPENGL" = "yes"; then
32529         USE_OPENGL=1
32530         cat >>confdefs.h <<\_ACEOF
32531 #define wxUSE_OPENGL 1
32532 _ACEOF
32533
32534         cat >>confdefs.h <<\_ACEOF
32535 #define wxUSE_GLCANVAS 1
32536 _ACEOF
32537
32538         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32539     fi
32540 fi
32541
32542
32543 if test -n "$TOOLKIT" ; then
32544     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32545 fi
32546
32547
32548
32549 if test "$wxUSE_SHARED" = "yes"; then
32550     case "${host}" in
32551       *-pc-msdosdjgpp )
32552                 wxUSE_SHARED=no
32553         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32554 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32555       ;;
32556     esac
32557 fi
32558
32559 if test "$wxUSE_SHARED" = "yes"; then
32560
32561
32562   found_versioning=no
32563
32564
32565     if test $found_versioning = no ; then
32566       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32567 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32568 if test "${wx_cv_version_script+set}" = set; then
32569   echo $ECHO_N "(cached) $ECHO_C" >&6
32570 else
32571
32572         echo "VER_1 { *; };" >conftest.sym
32573         echo "int main() { return 0; }" >conftest.cpp
32574
32575         if { ac_try='
32576                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32577                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32579   (eval $ac_try) 2>&5
32580   ac_status=$?
32581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582   (exit $ac_status); }; } ; then
32583           if test -s conftest.stderr ; then
32584               wx_cv_version_script=no
32585           else
32586               wx_cv_version_script=yes
32587           fi
32588         else
32589           wx_cv_version_script=no
32590         fi
32591
32592                                                                                                 if test $wx_cv_version_script = yes
32593         then
32594           echo "struct B { virtual ~B() { } }; \
32595                 struct D : public B { }; \
32596                 void F() { D d; }" > conftest.cpp
32597
32598           if { ac_try='
32599                 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32600                 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
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='
32607                 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32608                 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610   (eval $ac_try) 2>&5
32611   ac_status=$?
32612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613   (exit $ac_status); }; }
32614           then
32615             if { ac_try='
32616                   $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32617                   -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32619   (eval $ac_try) 2>&5
32620   ac_status=$?
32621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622   (exit $ac_status); }; }
32623             then
32624               wx_cv_version_script=yes
32625             else
32626               wx_cv_version_script=no
32627             fi
32628           fi
32629         fi
32630
32631         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
32632         rm -f conftest1.output conftest2.output conftest3.output
32633
32634 fi
32635 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32636 echo "${ECHO_T}$wx_cv_version_script" >&6
32637       if test $wx_cv_version_script = yes ; then
32638         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32639       fi
32640   fi
32641
32642
32643     case "${host}" in
32644       *-*-linux* | *-*-gnu* )
32645         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
32646         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
32647         ;;
32648
32649       *-*-solaris2* )
32650         if test "$GCC" = yes ; then
32651                                     CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
32652
32653                                     saveLdflags="$LDFLAGS"
32654             LDFLAGS="$saveLdflags -Wl,-rpath,/"
32655             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32656 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32657             cat >conftest.$ac_ext <<_ACEOF
32658 /* confdefs.h.  */
32659 _ACEOF
32660 cat confdefs.h >>conftest.$ac_ext
32661 cat >>conftest.$ac_ext <<_ACEOF
32662 /* end confdefs.h.  */
32663
32664 int
32665 main ()
32666 {
32667
32668   ;
32669   return 0;
32670 }
32671 _ACEOF
32672 rm -f conftest.$ac_objext conftest$ac_exeext
32673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32674   (eval $ac_link) 2>conftest.er1
32675   ac_status=$?
32676   grep -v '^ *+' conftest.er1 >conftest.err
32677   rm -f conftest.er1
32678   cat conftest.err >&5
32679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680   (exit $ac_status); } &&
32681          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32683   (eval $ac_try) 2>&5
32684   ac_status=$?
32685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686   (exit $ac_status); }; } &&
32687          { ac_try='test -s conftest$ac_exeext'
32688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32689   (eval $ac_try) 2>&5
32690   ac_status=$?
32691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692   (exit $ac_status); }; }; then
32693
32694                     echo "$as_me:$LINENO: result: yes" >&5
32695 echo "${ECHO_T}yes" >&6
32696                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
32697                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
32698
32699 else
32700   echo "$as_me: failed program was:" >&5
32701 sed 's/^/| /' conftest.$ac_ext >&5
32702
32703
32704                     echo "$as_me:$LINENO: result: no" >&5
32705 echo "${ECHO_T}no" >&6
32706                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32707 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32708                     LDFLAGS="$saveLdflags -Wl,-R,/"
32709                     cat >conftest.$ac_ext <<_ACEOF
32710 /* confdefs.h.  */
32711 _ACEOF
32712 cat confdefs.h >>conftest.$ac_ext
32713 cat >>conftest.$ac_ext <<_ACEOF
32714 /* end confdefs.h.  */
32715
32716 int
32717 main ()
32718 {
32719
32720   ;
32721   return 0;
32722 }
32723 _ACEOF
32724 rm -f conftest.$ac_objext conftest$ac_exeext
32725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32726   (eval $ac_link) 2>conftest.er1
32727   ac_status=$?
32728   grep -v '^ *+' conftest.er1 >conftest.err
32729   rm -f conftest.er1
32730   cat conftest.err >&5
32731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732   (exit $ac_status); } &&
32733          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32735   (eval $ac_try) 2>&5
32736   ac_status=$?
32737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738   (exit $ac_status); }; } &&
32739          { ac_try='test -s conftest$ac_exeext'
32740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32741   (eval $ac_try) 2>&5
32742   ac_status=$?
32743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744   (exit $ac_status); }; }; then
32745
32746                             echo "$as_me:$LINENO: result: yes" >&5
32747 echo "${ECHO_T}yes" >&6
32748                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32749                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
32750
32751 else
32752   echo "$as_me: failed program was:" >&5
32753 sed 's/^/| /' conftest.$ac_ext >&5
32754
32755
32756                             echo "$as_me:$LINENO: result: no" >&5
32757 echo "${ECHO_T}no" >&6
32758
32759 fi
32760 rm -f conftest.err conftest.$ac_objext \
32761       conftest$ac_exeext conftest.$ac_ext
32762
32763 fi
32764 rm -f conftest.err conftest.$ac_objext \
32765       conftest$ac_exeext conftest.$ac_ext
32766             LDFLAGS="$saveLdflags"
32767         else
32768             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
32769             WXCONFIG_RPATH="-R\$libdir"
32770         fi
32771       ;;
32772
32773       *-*-darwin* )
32774         install_name_tool=`which install_name_tool`
32775         if test "$install_name_tool" -a -x "$install_name_tool"; then
32776             SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32777             cat <<EOF >change-install-names
32778 #!/bin/sh
32779 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32780 inst_cmd="install_name_tool "
32781 for i in \${libnames} ; do
32782     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32783 done
32784 \${inst_cmd} \${3}
32785 EOF
32786             chmod +x change-install-names
32787         fi
32788       ;;
32789
32790       *-*-cygwin* | *-*-mingw32* )
32791                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32792         ;;
32793
32794       *-*-hpux* )
32795         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32796         WXCONFIG_RPATH="-Wl,+b,\$libdir"
32797         ;;
32798
32799     esac
32800
32801     if test $wxUSE_RPATH = "no"; then
32802         SAMPLES_RPATH_FLAG=''
32803         SAMPLES_RPATH_POSTLINK=''
32804         WXCONFIG_RPATH=''
32805     fi
32806
32807     SHARED=1
32808
32809 else
32810
32811     config_linkage_component="-static"
32812     SHARED=0
32813
32814 fi
32815
32816
32817 UNICODE=0
32818 lib_unicode_suffix=
32819 WX_CHARTYPE="ansi"
32820 if test "$wxUSE_UNICODE" = "yes"; then
32821     lib_unicode_suffix=u
32822     WX_CHARTYPE="unicode"
32823     UNICODE=1
32824 fi
32825
32826 lib_debug_suffix=
32827 WX_DEBUGTYPE="release"
32828 DEBUG_FLAG=0
32829 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32830     lib_debug_suffix=d
32831     WX_DEBUGTYPE="debug"
32832     DEBUG_FLAG=1
32833 fi
32834
32835 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32836 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
32837
32838 DEBUG_INFO=0
32839 if test "$wxUSE_DEBUG_INFO" = "yes"; then
32840     DEBUG_INFO=1
32841 fi
32842
32843 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
32844
32845 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
32846
32847 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
32848
32849 if test "$cross_compiling" = "yes"; then
32850     HOST_SUFFIX="-$host_alias"
32851     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32852     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
32853 fi
32854
32855 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32856 if test "${TOOLKIT_DIR}" = "os2"; then
32857     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32858 else
32859     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32860 fi
32861
32862
32863
32864 if test "$wxUSE_COCOA" = 1; then
32865
32866
32867     ac_ext=c
32868 ac_cpp='$CPP $CPPFLAGS'
32869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32872
32873 ac_ext=m
32874
32875     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32876 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32877     cat >conftest.$ac_ext <<_ACEOF
32878 /* confdefs.h.  */
32879 _ACEOF
32880 cat confdefs.h >>conftest.$ac_ext
32881 cat >>conftest.$ac_ext <<_ACEOF
32882 /* end confdefs.h.  */
32883 #include <AppKit/NSEvent.h>
32884 #include <CoreFoundation/CoreFoundation.h>
32885
32886 int
32887 main ()
32888 {
32889
32890   ;
32891   return 0;
32892 }
32893 _ACEOF
32894 rm -f conftest.$ac_objext
32895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32896   (eval $ac_compile) 2>conftest.er1
32897   ac_status=$?
32898   grep -v '^ *+' conftest.er1 >conftest.err
32899   rm -f conftest.er1
32900   cat conftest.err >&5
32901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902   (exit $ac_status); } &&
32903          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32905   (eval $ac_try) 2>&5
32906   ac_status=$?
32907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908   (exit $ac_status); }; } &&
32909          { ac_try='test -s conftest.$ac_objext'
32910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32911   (eval $ac_try) 2>&5
32912   ac_status=$?
32913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914   (exit $ac_status); }; }; then
32915   echo "$as_me:$LINENO: result: no" >&5
32916 echo "${ECHO_T}no" >&6
32917 else
32918   echo "$as_me: failed program was:" >&5
32919 sed 's/^/| /' conftest.$ac_ext >&5
32920
32921 echo "$as_me:$LINENO: result: yes" >&5
32922 echo "${ECHO_T}yes" >&6
32923         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32924 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32925         cat >conftest.$ac_ext <<_ACEOF
32926 /* confdefs.h.  */
32927 _ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h.  */
32931 #define __Point__ 1
32932 #include <AppKit/NSEvent.h>
32933 #include <CoreFoundation/CoreFoundation.h>
32934
32935 int
32936 main ()
32937 {
32938
32939   ;
32940   return 0;
32941 }
32942 _ACEOF
32943 rm -f conftest.$ac_objext
32944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32945   (eval $ac_compile) 2>conftest.er1
32946   ac_status=$?
32947   grep -v '^ *+' conftest.er1 >conftest.err
32948   rm -f conftest.er1
32949   cat conftest.err >&5
32950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951   (exit $ac_status); } &&
32952          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954   (eval $ac_try) 2>&5
32955   ac_status=$?
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); }; } &&
32958          { ac_try='test -s conftest.$ac_objext'
32959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32960   (eval $ac_try) 2>&5
32961   ac_status=$?
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); }; }; then
32964   echo "$as_me:$LINENO: result: yes" >&5
32965 echo "${ECHO_T}yes" >&6
32966             cat >>confdefs.h <<\_ACEOF
32967 #define __Point__ 1
32968 _ACEOF
32969
32970
32971 else
32972   echo "$as_me: failed program was:" >&5
32973 sed 's/^/| /' conftest.$ac_ext >&5
32974
32975 { { echo "$as_me:$LINENO: error: no
32976 See \`config.log' for more details." >&5
32977 echo "$as_me: error: no
32978 See \`config.log' for more details." >&2;}
32979    { (exit 1); exit 1; }; }
32980
32981 fi
32982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32983
32984 fi
32985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32986     ac_ext=cc
32987 ac_cpp='$CXXCPP $CPPFLAGS'
32988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32991
32992 fi
32993
32994 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
32995             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32996     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
32997
32998         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
32999
33000     # Extract the first word of "Rez", so it can be a program name with args.
33001 set dummy Rez; ac_word=$2
33002 echo "$as_me:$LINENO: checking for $ac_word" >&5
33003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33004 if test "${ac_cv_prog_REZ+set}" = set; then
33005   echo $ECHO_N "(cached) $ECHO_C" >&6
33006 else
33007   if test -n "$REZ"; then
33008   ac_cv_prog_REZ="$REZ" # Let the user override the test.
33009 else
33010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33011 for as_dir in $PATH
33012 do
33013   IFS=$as_save_IFS
33014   test -z "$as_dir" && as_dir=.
33015   for ac_exec_ext in '' $ac_executable_extensions; do
33016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33017     ac_cv_prog_REZ="Rez"
33018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33019     break 2
33020   fi
33021 done
33022 done
33023
33024   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
33025 fi
33026 fi
33027 REZ=$ac_cv_prog_REZ
33028 if test -n "$REZ"; then
33029   echo "$as_me:$LINENO: result: $REZ" >&5
33030 echo "${ECHO_T}$REZ" >&6
33031 else
33032   echo "$as_me:$LINENO: result: no" >&5
33033 echo "${ECHO_T}no" >&6
33034 fi
33035
33036     # Extract the first word of "DeRez", so it can be a program name with args.
33037 set dummy DeRez; ac_word=$2
33038 echo "$as_me:$LINENO: checking for $ac_word" >&5
33039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33040 if test "${ac_cv_prog_DEREZ+set}" = set; then
33041   echo $ECHO_N "(cached) $ECHO_C" >&6
33042 else
33043   if test -n "$DEREZ"; then
33044   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33045 else
33046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33047 for as_dir in $PATH
33048 do
33049   IFS=$as_save_IFS
33050   test -z "$as_dir" && as_dir=.
33051   for ac_exec_ext in '' $ac_executable_extensions; do
33052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33053     ac_cv_prog_DEREZ="DeRez"
33054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33055     break 2
33056   fi
33057 done
33058 done
33059
33060   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33061 fi
33062 fi
33063 DEREZ=$ac_cv_prog_DEREZ
33064 if test -n "$DEREZ"; then
33065   echo "$as_me:$LINENO: result: $DEREZ" >&5
33066 echo "${ECHO_T}$DEREZ" >&6
33067 else
33068   echo "$as_me:$LINENO: result: no" >&5
33069 echo "${ECHO_T}no" >&6
33070 fi
33071
33072     # Extract the first word of "SetFile", so it can be a program name with args.
33073 set dummy SetFile; ac_word=$2
33074 echo "$as_me:$LINENO: checking for $ac_word" >&5
33075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33076 if test "${ac_cv_prog_SETFILE+set}" = set; then
33077   echo $ECHO_N "(cached) $ECHO_C" >&6
33078 else
33079   if test -n "$SETFILE"; then
33080   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33081 else
33082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33083 for as_dir in $PATH
33084 do
33085   IFS=$as_save_IFS
33086   test -z "$as_dir" && as_dir=.
33087   for ac_exec_ext in '' $ac_executable_extensions; do
33088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33089     ac_cv_prog_SETFILE="SetFile"
33090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33091     break 2
33092   fi
33093 done
33094 done
33095
33096   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33097 fi
33098 fi
33099 SETFILE=$ac_cv_prog_SETFILE
33100 if test -n "$SETFILE"; then
33101   echo "$as_me:$LINENO: result: $SETFILE" >&5
33102 echo "${ECHO_T}$SETFILE" >&6
33103 else
33104   echo "$as_me:$LINENO: result: no" >&5
33105 echo "${ECHO_T}no" >&6
33106 fi
33107
33108
33109     MACSETFILE="\$(SETFILE)"
33110
33111             if test "$wxUSE_MAC" = 1; then
33112         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
33113         RESCOMP="$REZ"
33114         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
33115     else
33116         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33117         RESCOMP="echo -n \| $REZ"
33118         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
33119     fi
33120
33121 else
33122         MACSETFILE="@true"
33123
33124     if test "$wxUSE_PM" = 1; then
33125         RESCOMP="emxbind"
33126         WXCONFIG_RESFLAGS="-ep"
33127
33128                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
33129     else
33130         POSTLINK_COMMAND="@true"
33131     fi
33132
33133 fi
33134
33135
33136
33137 echo "$as_me:$LINENO: checking for mode_t" >&5
33138 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33139 if test "${ac_cv_type_mode_t+set}" = set; then
33140   echo $ECHO_N "(cached) $ECHO_C" >&6
33141 else
33142   cat >conftest.$ac_ext <<_ACEOF
33143 /* confdefs.h.  */
33144 _ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h.  */
33148 $ac_includes_default
33149 int
33150 main ()
33151 {
33152 if ((mode_t *) 0)
33153   return 0;
33154 if (sizeof (mode_t))
33155   return 0;
33156   ;
33157   return 0;
33158 }
33159 _ACEOF
33160 rm -f conftest.$ac_objext
33161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33162   (eval $ac_compile) 2>conftest.er1
33163   ac_status=$?
33164   grep -v '^ *+' conftest.er1 >conftest.err
33165   rm -f conftest.er1
33166   cat conftest.err >&5
33167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168   (exit $ac_status); } &&
33169          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33171   (eval $ac_try) 2>&5
33172   ac_status=$?
33173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174   (exit $ac_status); }; } &&
33175          { ac_try='test -s conftest.$ac_objext'
33176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33177   (eval $ac_try) 2>&5
33178   ac_status=$?
33179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180   (exit $ac_status); }; }; then
33181   ac_cv_type_mode_t=yes
33182 else
33183   echo "$as_me: failed program was:" >&5
33184 sed 's/^/| /' conftest.$ac_ext >&5
33185
33186 ac_cv_type_mode_t=no
33187 fi
33188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33189 fi
33190 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33191 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33192 if test $ac_cv_type_mode_t = yes; then
33193   :
33194 else
33195
33196 cat >>confdefs.h <<_ACEOF
33197 #define mode_t int
33198 _ACEOF
33199
33200 fi
33201
33202 echo "$as_me:$LINENO: checking for off_t" >&5
33203 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33204 if test "${ac_cv_type_off_t+set}" = set; then
33205   echo $ECHO_N "(cached) $ECHO_C" >&6
33206 else
33207   cat >conftest.$ac_ext <<_ACEOF
33208 /* confdefs.h.  */
33209 _ACEOF
33210 cat confdefs.h >>conftest.$ac_ext
33211 cat >>conftest.$ac_ext <<_ACEOF
33212 /* end confdefs.h.  */
33213 $ac_includes_default
33214 int
33215 main ()
33216 {
33217 if ((off_t *) 0)
33218   return 0;
33219 if (sizeof (off_t))
33220   return 0;
33221   ;
33222   return 0;
33223 }
33224 _ACEOF
33225 rm -f conftest.$ac_objext
33226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33227   (eval $ac_compile) 2>conftest.er1
33228   ac_status=$?
33229   grep -v '^ *+' conftest.er1 >conftest.err
33230   rm -f conftest.er1
33231   cat conftest.err >&5
33232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233   (exit $ac_status); } &&
33234          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33236   (eval $ac_try) 2>&5
33237   ac_status=$?
33238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239   (exit $ac_status); }; } &&
33240          { ac_try='test -s conftest.$ac_objext'
33241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33242   (eval $ac_try) 2>&5
33243   ac_status=$?
33244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245   (exit $ac_status); }; }; then
33246   ac_cv_type_off_t=yes
33247 else
33248   echo "$as_me: failed program was:" >&5
33249 sed 's/^/| /' conftest.$ac_ext >&5
33250
33251 ac_cv_type_off_t=no
33252 fi
33253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33254 fi
33255 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33256 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33257 if test $ac_cv_type_off_t = yes; then
33258   :
33259 else
33260
33261 cat >>confdefs.h <<_ACEOF
33262 #define off_t long
33263 _ACEOF
33264
33265 fi
33266
33267 echo "$as_me:$LINENO: checking for pid_t" >&5
33268 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33269 if test "${ac_cv_type_pid_t+set}" = set; then
33270   echo $ECHO_N "(cached) $ECHO_C" >&6
33271 else
33272   cat >conftest.$ac_ext <<_ACEOF
33273 /* confdefs.h.  */
33274 _ACEOF
33275 cat confdefs.h >>conftest.$ac_ext
33276 cat >>conftest.$ac_ext <<_ACEOF
33277 /* end confdefs.h.  */
33278 $ac_includes_default
33279 int
33280 main ()
33281 {
33282 if ((pid_t *) 0)
33283   return 0;
33284 if (sizeof (pid_t))
33285   return 0;
33286   ;
33287   return 0;
33288 }
33289 _ACEOF
33290 rm -f conftest.$ac_objext
33291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33292   (eval $ac_compile) 2>conftest.er1
33293   ac_status=$?
33294   grep -v '^ *+' conftest.er1 >conftest.err
33295   rm -f conftest.er1
33296   cat conftest.err >&5
33297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298   (exit $ac_status); } &&
33299          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33301   (eval $ac_try) 2>&5
33302   ac_status=$?
33303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304   (exit $ac_status); }; } &&
33305          { ac_try='test -s conftest.$ac_objext'
33306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33307   (eval $ac_try) 2>&5
33308   ac_status=$?
33309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310   (exit $ac_status); }; }; then
33311   ac_cv_type_pid_t=yes
33312 else
33313   echo "$as_me: failed program was:" >&5
33314 sed 's/^/| /' conftest.$ac_ext >&5
33315
33316 ac_cv_type_pid_t=no
33317 fi
33318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33319 fi
33320 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33321 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33322 if test $ac_cv_type_pid_t = yes; then
33323   :
33324 else
33325
33326 cat >>confdefs.h <<_ACEOF
33327 #define pid_t int
33328 _ACEOF
33329
33330 fi
33331
33332 echo "$as_me:$LINENO: checking for size_t" >&5
33333 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33334 if test "${ac_cv_type_size_t+set}" = set; then
33335   echo $ECHO_N "(cached) $ECHO_C" >&6
33336 else
33337   cat >conftest.$ac_ext <<_ACEOF
33338 /* confdefs.h.  */
33339 _ACEOF
33340 cat confdefs.h >>conftest.$ac_ext
33341 cat >>conftest.$ac_ext <<_ACEOF
33342 /* end confdefs.h.  */
33343 $ac_includes_default
33344 int
33345 main ()
33346 {
33347 if ((size_t *) 0)
33348   return 0;
33349 if (sizeof (size_t))
33350   return 0;
33351   ;
33352   return 0;
33353 }
33354 _ACEOF
33355 rm -f conftest.$ac_objext
33356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33357   (eval $ac_compile) 2>conftest.er1
33358   ac_status=$?
33359   grep -v '^ *+' conftest.er1 >conftest.err
33360   rm -f conftest.er1
33361   cat conftest.err >&5
33362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363   (exit $ac_status); } &&
33364          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366   (eval $ac_try) 2>&5
33367   ac_status=$?
33368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369   (exit $ac_status); }; } &&
33370          { ac_try='test -s conftest.$ac_objext'
33371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33372   (eval $ac_try) 2>&5
33373   ac_status=$?
33374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375   (exit $ac_status); }; }; then
33376   ac_cv_type_size_t=yes
33377 else
33378   echo "$as_me: failed program was:" >&5
33379 sed 's/^/| /' conftest.$ac_ext >&5
33380
33381 ac_cv_type_size_t=no
33382 fi
33383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33384 fi
33385 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33386 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33387 if test $ac_cv_type_size_t = yes; then
33388   :
33389 else
33390
33391 cat >>confdefs.h <<_ACEOF
33392 #define size_t unsigned
33393 _ACEOF
33394
33395 fi
33396
33397 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33398 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33399 if test "${ac_cv_type_uid_t+set}" = set; then
33400   echo $ECHO_N "(cached) $ECHO_C" >&6
33401 else
33402   cat >conftest.$ac_ext <<_ACEOF
33403 /* confdefs.h.  */
33404 _ACEOF
33405 cat confdefs.h >>conftest.$ac_ext
33406 cat >>conftest.$ac_ext <<_ACEOF
33407 /* end confdefs.h.  */
33408 #include <sys/types.h>
33409
33410 _ACEOF
33411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33412   $EGREP "uid_t" >/dev/null 2>&1; then
33413   ac_cv_type_uid_t=yes
33414 else
33415   ac_cv_type_uid_t=no
33416 fi
33417 rm -f conftest*
33418
33419 fi
33420 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33421 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33422 if test $ac_cv_type_uid_t = no; then
33423
33424 cat >>confdefs.h <<\_ACEOF
33425 #define uid_t int
33426 _ACEOF
33427
33428
33429 cat >>confdefs.h <<\_ACEOF
33430 #define gid_t int
33431 _ACEOF
33432
33433 fi
33434
33435
33436 echo "$as_me:$LINENO: checking for ssize_t" >&5
33437 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33438 if test "${ac_cv_type_ssize_t+set}" = set; then
33439   echo $ECHO_N "(cached) $ECHO_C" >&6
33440 else
33441   cat >conftest.$ac_ext <<_ACEOF
33442 /* confdefs.h.  */
33443 _ACEOF
33444 cat confdefs.h >>conftest.$ac_ext
33445 cat >>conftest.$ac_ext <<_ACEOF
33446 /* end confdefs.h.  */
33447 $ac_includes_default
33448 int
33449 main ()
33450 {
33451 if ((ssize_t *) 0)
33452   return 0;
33453 if (sizeof (ssize_t))
33454   return 0;
33455   ;
33456   return 0;
33457 }
33458 _ACEOF
33459 rm -f conftest.$ac_objext
33460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33461   (eval $ac_compile) 2>conftest.er1
33462   ac_status=$?
33463   grep -v '^ *+' conftest.er1 >conftest.err
33464   rm -f conftest.er1
33465   cat conftest.err >&5
33466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467   (exit $ac_status); } &&
33468          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33470   (eval $ac_try) 2>&5
33471   ac_status=$?
33472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473   (exit $ac_status); }; } &&
33474          { ac_try='test -s conftest.$ac_objext'
33475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33476   (eval $ac_try) 2>&5
33477   ac_status=$?
33478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479   (exit $ac_status); }; }; then
33480   ac_cv_type_ssize_t=yes
33481 else
33482   echo "$as_me: failed program was:" >&5
33483 sed 's/^/| /' conftest.$ac_ext >&5
33484
33485 ac_cv_type_ssize_t=no
33486 fi
33487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33488 fi
33489 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33490 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33491 if test $ac_cv_type_ssize_t = yes; then
33492
33493 cat >>confdefs.h <<_ACEOF
33494 #define HAVE_SSIZE_T 1
33495 _ACEOF
33496
33497
33498 fi
33499
33500
33501 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33502 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33503 if test "${wx_cv_size_t_is_uint+set}" = set; then
33504   echo $ECHO_N "(cached) $ECHO_C" >&6
33505 else
33506
33507                             cat >conftest.$ac_ext <<_ACEOF
33508 /* confdefs.h.  */
33509 _ACEOF
33510 cat confdefs.h >>conftest.$ac_ext
33511 cat >>conftest.$ac_ext <<_ACEOF
33512 /* end confdefs.h.  */
33513 #include <stddef.h>
33514 int
33515 main ()
33516 {
33517
33518             return 0; }
33519
33520             struct Foo { void foo(size_t); void foo(unsigned int); };
33521
33522             int bar() {
33523
33524   ;
33525   return 0;
33526 }
33527 _ACEOF
33528 rm -f conftest.$ac_objext
33529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33530   (eval $ac_compile) 2>conftest.er1
33531   ac_status=$?
33532   grep -v '^ *+' conftest.er1 >conftest.err
33533   rm -f conftest.er1
33534   cat conftest.err >&5
33535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536   (exit $ac_status); } &&
33537          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33539   (eval $ac_try) 2>&5
33540   ac_status=$?
33541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542   (exit $ac_status); }; } &&
33543          { ac_try='test -s conftest.$ac_objext'
33544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33545   (eval $ac_try) 2>&5
33546   ac_status=$?
33547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548   (exit $ac_status); }; }; then
33549   wx_cv_size_t_is_uint=no
33550 else
33551   echo "$as_me: failed program was:" >&5
33552 sed 's/^/| /' conftest.$ac_ext >&5
33553
33554 wx_cv_size_t_is_uint=yes
33555
33556 fi
33557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33558
33559
33560 fi
33561 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33562 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33563
33564 if test "$wx_cv_size_t_is_uint" = "yes"; then
33565     cat >>confdefs.h <<\_ACEOF
33566 #define wxSIZE_T_IS_UINT 1
33567 _ACEOF
33568
33569 else
33570     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33571 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33572 if test "${wx_cv_size_t_is_ulong+set}" = set; then
33573   echo $ECHO_N "(cached) $ECHO_C" >&6
33574 else
33575   cat >conftest.$ac_ext <<_ACEOF
33576 /* confdefs.h.  */
33577 _ACEOF
33578 cat confdefs.h >>conftest.$ac_ext
33579 cat >>conftest.$ac_ext <<_ACEOF
33580 /* end confdefs.h.  */
33581 #include <stddef.h>
33582 int
33583 main ()
33584 {
33585
33586                 return 0; }
33587
33588                 struct Foo { void foo(size_t); void foo(unsigned long); };
33589
33590                 int bar() {
33591
33592   ;
33593   return 0;
33594 }
33595 _ACEOF
33596 rm -f conftest.$ac_objext
33597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33598   (eval $ac_compile) 2>conftest.er1
33599   ac_status=$?
33600   grep -v '^ *+' conftest.er1 >conftest.err
33601   rm -f conftest.er1
33602   cat conftest.err >&5
33603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604   (exit $ac_status); } &&
33605          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
33611          { ac_try='test -s conftest.$ac_objext'
33612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33613   (eval $ac_try) 2>&5
33614   ac_status=$?
33615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33616   (exit $ac_status); }; }; then
33617   wx_cv_size_t_is_ulong=no
33618 else
33619   echo "$as_me: failed program was:" >&5
33620 sed 's/^/| /' conftest.$ac_ext >&5
33621
33622 wx_cv_size_t_is_ulong=yes
33623
33624 fi
33625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33626
33627 fi
33628 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33629 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33630
33631     if test "$wx_cv_size_t_is_ulong" = "yes"; then
33632         cat >>confdefs.h <<\_ACEOF
33633 #define wxSIZE_T_IS_ULONG 1
33634 _ACEOF
33635
33636     fi
33637 fi
33638
33639
33640 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33641 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33642 if test "${wx_cv_struct_pw_gecos+set}" = set; then
33643   echo $ECHO_N "(cached) $ECHO_C" >&6
33644 else
33645
33646         cat >conftest.$ac_ext <<_ACEOF
33647 /* confdefs.h.  */
33648 _ACEOF
33649 cat confdefs.h >>conftest.$ac_ext
33650 cat >>conftest.$ac_ext <<_ACEOF
33651 /* end confdefs.h.  */
33652 #include <pwd.h>
33653 int
33654 main ()
33655 {
33656
33657                 char *p;
33658                 struct passwd *pw;
33659                 p = pw->pw_gecos;
33660
33661   ;
33662   return 0;
33663 }
33664 _ACEOF
33665 rm -f conftest.$ac_objext
33666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33667   (eval $ac_compile) 2>conftest.er1
33668   ac_status=$?
33669   grep -v '^ *+' conftest.er1 >conftest.err
33670   rm -f conftest.er1
33671   cat conftest.err >&5
33672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673   (exit $ac_status); } &&
33674          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33676   (eval $ac_try) 2>&5
33677   ac_status=$?
33678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679   (exit $ac_status); }; } &&
33680          { ac_try='test -s conftest.$ac_objext'
33681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33682   (eval $ac_try) 2>&5
33683   ac_status=$?
33684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685   (exit $ac_status); }; }; then
33686
33687                 wx_cv_struct_pw_gecos=yes
33688
33689 else
33690   echo "$as_me: failed program was:" >&5
33691 sed 's/^/| /' conftest.$ac_ext >&5
33692
33693
33694                 wx_cv_struct_pw_gecos=no
33695
33696
33697 fi
33698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33699
33700
33701 fi
33702 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33703 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33704
33705 if test "$wx_cv_struct_pw_gecos" = "yes"; then
33706     cat >>confdefs.h <<\_ACEOF
33707 #define HAVE_PW_GECOS 1
33708 _ACEOF
33709
33710 fi
33711
33712
33713 if test "$wxUSE_WCHAR_T" = "yes"; then
33714     cat >>confdefs.h <<\_ACEOF
33715 #define wxUSE_WCHAR_T 1
33716 _ACEOF
33717
33718
33719         WCSLEN_FOUND=0
33720     WCHAR_LINK=
33721
33722 for ac_func in wcslen
33723 do
33724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33725 echo "$as_me:$LINENO: checking for $ac_func" >&5
33726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33727 if eval "test \"\${$as_ac_var+set}\" = set"; then
33728   echo $ECHO_N "(cached) $ECHO_C" >&6
33729 else
33730   cat >conftest.$ac_ext <<_ACEOF
33731 /* confdefs.h.  */
33732 _ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h.  */
33736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33738 #define $ac_func innocuous_$ac_func
33739
33740 /* System header to define __stub macros and hopefully few prototypes,
33741     which can conflict with char $ac_func (); below.
33742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33743     <limits.h> exists even on freestanding compilers.  */
33744
33745 #ifdef __STDC__
33746 # include <limits.h>
33747 #else
33748 # include <assert.h>
33749 #endif
33750
33751 #undef $ac_func
33752
33753 /* Override any gcc2 internal prototype to avoid an error.  */
33754 #ifdef __cplusplus
33755 extern "C"
33756 {
33757 #endif
33758 /* We use char because int might match the return type of a gcc2
33759    builtin and then its argument prototype would still apply.  */
33760 char $ac_func ();
33761 /* The GNU C library defines this for functions which it implements
33762     to always fail with ENOSYS.  Some functions are actually named
33763     something starting with __ and the normal name is an alias.  */
33764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33765 choke me
33766 #else
33767 char (*f) () = $ac_func;
33768 #endif
33769 #ifdef __cplusplus
33770 }
33771 #endif
33772
33773 int
33774 main ()
33775 {
33776 return f != $ac_func;
33777   ;
33778   return 0;
33779 }
33780 _ACEOF
33781 rm -f conftest.$ac_objext conftest$ac_exeext
33782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33783   (eval $ac_link) 2>conftest.er1
33784   ac_status=$?
33785   grep -v '^ *+' conftest.er1 >conftest.err
33786   rm -f conftest.er1
33787   cat conftest.err >&5
33788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789   (exit $ac_status); } &&
33790          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792   (eval $ac_try) 2>&5
33793   ac_status=$?
33794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795   (exit $ac_status); }; } &&
33796          { ac_try='test -s conftest$ac_exeext'
33797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798   (eval $ac_try) 2>&5
33799   ac_status=$?
33800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801   (exit $ac_status); }; }; then
33802   eval "$as_ac_var=yes"
33803 else
33804   echo "$as_me: failed program was:" >&5
33805 sed 's/^/| /' conftest.$ac_ext >&5
33806
33807 eval "$as_ac_var=no"
33808 fi
33809 rm -f conftest.err conftest.$ac_objext \
33810       conftest$ac_exeext conftest.$ac_ext
33811 fi
33812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33814 if test `eval echo '${'$as_ac_var'}'` = yes; then
33815   cat >>confdefs.h <<_ACEOF
33816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33817 _ACEOF
33818  WCSLEN_FOUND=1
33819 fi
33820 done
33821
33822
33823     if test "$WCSLEN_FOUND" = 0; then
33824         if test "$TOOLKIT" = "MSW"; then
33825             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33826 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33827 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33828   echo $ECHO_N "(cached) $ECHO_C" >&6
33829 else
33830   ac_check_lib_save_LIBS=$LIBS
33831 LIBS="-lmsvcrt  $LIBS"
33832 cat >conftest.$ac_ext <<_ACEOF
33833 /* confdefs.h.  */
33834 _ACEOF
33835 cat confdefs.h >>conftest.$ac_ext
33836 cat >>conftest.$ac_ext <<_ACEOF
33837 /* end confdefs.h.  */
33838
33839 /* Override any gcc2 internal prototype to avoid an error.  */
33840 #ifdef __cplusplus
33841 extern "C"
33842 #endif
33843 /* We use char because int might match the return type of a gcc2
33844    builtin and then its argument prototype would still apply.  */
33845 char wcslen ();
33846 int
33847 main ()
33848 {
33849 wcslen ();
33850   ;
33851   return 0;
33852 }
33853 _ACEOF
33854 rm -f conftest.$ac_objext conftest$ac_exeext
33855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33856   (eval $ac_link) 2>conftest.er1
33857   ac_status=$?
33858   grep -v '^ *+' conftest.er1 >conftest.err
33859   rm -f conftest.er1
33860   cat conftest.err >&5
33861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862   (exit $ac_status); } &&
33863          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33865   (eval $ac_try) 2>&5
33866   ac_status=$?
33867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868   (exit $ac_status); }; } &&
33869          { ac_try='test -s conftest$ac_exeext'
33870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871   (eval $ac_try) 2>&5
33872   ac_status=$?
33873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874   (exit $ac_status); }; }; then
33875   ac_cv_lib_msvcrt_wcslen=yes
33876 else
33877   echo "$as_me: failed program was:" >&5
33878 sed 's/^/| /' conftest.$ac_ext >&5
33879
33880 ac_cv_lib_msvcrt_wcslen=no
33881 fi
33882 rm -f conftest.err conftest.$ac_objext \
33883       conftest$ac_exeext conftest.$ac_ext
33884 LIBS=$ac_check_lib_save_LIBS
33885 fi
33886 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33887 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33888 if test $ac_cv_lib_msvcrt_wcslen = yes; then
33889   WCHAR_OK=1
33890 fi
33891
33892         else
33893             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33894 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33895 if test "${ac_cv_lib_w_wcslen+set}" = set; then
33896   echo $ECHO_N "(cached) $ECHO_C" >&6
33897 else
33898   ac_check_lib_save_LIBS=$LIBS
33899 LIBS="-lw  $LIBS"
33900 cat >conftest.$ac_ext <<_ACEOF
33901 /* confdefs.h.  */
33902 _ACEOF
33903 cat confdefs.h >>conftest.$ac_ext
33904 cat >>conftest.$ac_ext <<_ACEOF
33905 /* end confdefs.h.  */
33906
33907 /* Override any gcc2 internal prototype to avoid an error.  */
33908 #ifdef __cplusplus
33909 extern "C"
33910 #endif
33911 /* We use char because int might match the return type of a gcc2
33912    builtin and then its argument prototype would still apply.  */
33913 char wcslen ();
33914 int
33915 main ()
33916 {
33917 wcslen ();
33918   ;
33919   return 0;
33920 }
33921 _ACEOF
33922 rm -f conftest.$ac_objext conftest$ac_exeext
33923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33924   (eval $ac_link) 2>conftest.er1
33925   ac_status=$?
33926   grep -v '^ *+' conftest.er1 >conftest.err
33927   rm -f conftest.er1
33928   cat conftest.err >&5
33929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930   (exit $ac_status); } &&
33931          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933   (eval $ac_try) 2>&5
33934   ac_status=$?
33935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936   (exit $ac_status); }; } &&
33937          { ac_try='test -s conftest$ac_exeext'
33938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33939   (eval $ac_try) 2>&5
33940   ac_status=$?
33941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942   (exit $ac_status); }; }; then
33943   ac_cv_lib_w_wcslen=yes
33944 else
33945   echo "$as_me: failed program was:" >&5
33946 sed 's/^/| /' conftest.$ac_ext >&5
33947
33948 ac_cv_lib_w_wcslen=no
33949 fi
33950 rm -f conftest.err conftest.$ac_objext \
33951       conftest$ac_exeext conftest.$ac_ext
33952 LIBS=$ac_check_lib_save_LIBS
33953 fi
33954 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33955 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33956 if test $ac_cv_lib_w_wcslen = yes; then
33957
33958                             WCHAR_LINK=" -lw"
33959                             WCSLEN_FOUND=1
33960
33961 fi
33962
33963         fi
33964     fi
33965
33966     if test "$WCSLEN_FOUND" = 1; then
33967         cat >>confdefs.h <<\_ACEOF
33968 #define HAVE_WCSLEN 1
33969 _ACEOF
33970
33971     fi
33972
33973                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
33974         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
33975     fi
33976
33977                 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33978 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33979 if test "${ac_cv_type_mbstate_t+set}" = set; then
33980   echo $ECHO_N "(cached) $ECHO_C" >&6
33981 else
33982   cat >conftest.$ac_ext <<_ACEOF
33983 /* confdefs.h.  */
33984 _ACEOF
33985 cat confdefs.h >>conftest.$ac_ext
33986 cat >>conftest.$ac_ext <<_ACEOF
33987 /* end confdefs.h.  */
33988 #include <wchar.h>
33989
33990 int
33991 main ()
33992 {
33993 if ((mbstate_t *) 0)
33994   return 0;
33995 if (sizeof (mbstate_t))
33996   return 0;
33997   ;
33998   return 0;
33999 }
34000 _ACEOF
34001 rm -f conftest.$ac_objext
34002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34003   (eval $ac_compile) 2>conftest.er1
34004   ac_status=$?
34005   grep -v '^ *+' conftest.er1 >conftest.err
34006   rm -f conftest.er1
34007   cat conftest.err >&5
34008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009   (exit $ac_status); } &&
34010          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34012   (eval $ac_try) 2>&5
34013   ac_status=$?
34014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015   (exit $ac_status); }; } &&
34016          { ac_try='test -s conftest.$ac_objext'
34017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34018   (eval $ac_try) 2>&5
34019   ac_status=$?
34020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021   (exit $ac_status); }; }; then
34022   ac_cv_type_mbstate_t=yes
34023 else
34024   echo "$as_me: failed program was:" >&5
34025 sed 's/^/| /' conftest.$ac_ext >&5
34026
34027 ac_cv_type_mbstate_t=no
34028 fi
34029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34030 fi
34031 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34032 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34033 if test $ac_cv_type_mbstate_t = yes; then
34034
34035 cat >>confdefs.h <<_ACEOF
34036 #define HAVE_MBSTATE_T 1
34037 _ACEOF
34038
34039
34040 for ac_func in wcsrtombs
34041 do
34042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34043 echo "$as_me:$LINENO: checking for $ac_func" >&5
34044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34045 if eval "test \"\${$as_ac_var+set}\" = set"; then
34046   echo $ECHO_N "(cached) $ECHO_C" >&6
34047 else
34048   cat >conftest.$ac_ext <<_ACEOF
34049 /* confdefs.h.  */
34050 _ACEOF
34051 cat confdefs.h >>conftest.$ac_ext
34052 cat >>conftest.$ac_ext <<_ACEOF
34053 /* end confdefs.h.  */
34054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34056 #define $ac_func innocuous_$ac_func
34057
34058 /* System header to define __stub macros and hopefully few prototypes,
34059     which can conflict with char $ac_func (); below.
34060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34061     <limits.h> exists even on freestanding compilers.  */
34062
34063 #ifdef __STDC__
34064 # include <limits.h>
34065 #else
34066 # include <assert.h>
34067 #endif
34068
34069 #undef $ac_func
34070
34071 /* Override any gcc2 internal prototype to avoid an error.  */
34072 #ifdef __cplusplus
34073 extern "C"
34074 {
34075 #endif
34076 /* We use char because int might match the return type of a gcc2
34077    builtin and then its argument prototype would still apply.  */
34078 char $ac_func ();
34079 /* The GNU C library defines this for functions which it implements
34080     to always fail with ENOSYS.  Some functions are actually named
34081     something starting with __ and the normal name is an alias.  */
34082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34083 choke me
34084 #else
34085 char (*f) () = $ac_func;
34086 #endif
34087 #ifdef __cplusplus
34088 }
34089 #endif
34090
34091 int
34092 main ()
34093 {
34094 return f != $ac_func;
34095   ;
34096   return 0;
34097 }
34098 _ACEOF
34099 rm -f conftest.$ac_objext conftest$ac_exeext
34100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34101   (eval $ac_link) 2>conftest.er1
34102   ac_status=$?
34103   grep -v '^ *+' conftest.er1 >conftest.err
34104   rm -f conftest.er1
34105   cat conftest.err >&5
34106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107   (exit $ac_status); } &&
34108          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110   (eval $ac_try) 2>&5
34111   ac_status=$?
34112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113   (exit $ac_status); }; } &&
34114          { ac_try='test -s conftest$ac_exeext'
34115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116   (eval $ac_try) 2>&5
34117   ac_status=$?
34118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119   (exit $ac_status); }; }; then
34120   eval "$as_ac_var=yes"
34121 else
34122   echo "$as_me: failed program was:" >&5
34123 sed 's/^/| /' conftest.$ac_ext >&5
34124
34125 eval "$as_ac_var=no"
34126 fi
34127 rm -f conftest.err conftest.$ac_objext \
34128       conftest$ac_exeext conftest.$ac_ext
34129 fi
34130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34132 if test `eval echo '${'$as_ac_var'}'` = yes; then
34133   cat >>confdefs.h <<_ACEOF
34134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34135 _ACEOF
34136
34137 fi
34138 done
34139
34140 fi
34141
34142 else
34143     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34144 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34145 fi
34146
34147
34148
34149 for ac_func in snprintf vsnprintf
34150 do
34151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34152 echo "$as_me:$LINENO: checking for $ac_func" >&5
34153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34154 if eval "test \"\${$as_ac_var+set}\" = set"; then
34155   echo $ECHO_N "(cached) $ECHO_C" >&6
34156 else
34157   cat >conftest.$ac_ext <<_ACEOF
34158 /* confdefs.h.  */
34159 _ACEOF
34160 cat confdefs.h >>conftest.$ac_ext
34161 cat >>conftest.$ac_ext <<_ACEOF
34162 /* end confdefs.h.  */
34163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34165 #define $ac_func innocuous_$ac_func
34166
34167 /* System header to define __stub macros and hopefully few prototypes,
34168     which can conflict with char $ac_func (); below.
34169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34170     <limits.h> exists even on freestanding compilers.  */
34171
34172 #ifdef __STDC__
34173 # include <limits.h>
34174 #else
34175 # include <assert.h>
34176 #endif
34177
34178 #undef $ac_func
34179
34180 /* Override any gcc2 internal prototype to avoid an error.  */
34181 #ifdef __cplusplus
34182 extern "C"
34183 {
34184 #endif
34185 /* We use char because int might match the return type of a gcc2
34186    builtin and then its argument prototype would still apply.  */
34187 char $ac_func ();
34188 /* The GNU C library defines this for functions which it implements
34189     to always fail with ENOSYS.  Some functions are actually named
34190     something starting with __ and the normal name is an alias.  */
34191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34192 choke me
34193 #else
34194 char (*f) () = $ac_func;
34195 #endif
34196 #ifdef __cplusplus
34197 }
34198 #endif
34199
34200 int
34201 main ()
34202 {
34203 return f != $ac_func;
34204   ;
34205   return 0;
34206 }
34207 _ACEOF
34208 rm -f conftest.$ac_objext conftest$ac_exeext
34209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34210   (eval $ac_link) 2>conftest.er1
34211   ac_status=$?
34212   grep -v '^ *+' conftest.er1 >conftest.err
34213   rm -f conftest.er1
34214   cat conftest.err >&5
34215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216   (exit $ac_status); } &&
34217          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34219   (eval $ac_try) 2>&5
34220   ac_status=$?
34221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222   (exit $ac_status); }; } &&
34223          { ac_try='test -s conftest$ac_exeext'
34224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225   (eval $ac_try) 2>&5
34226   ac_status=$?
34227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228   (exit $ac_status); }; }; then
34229   eval "$as_ac_var=yes"
34230 else
34231   echo "$as_me: failed program was:" >&5
34232 sed 's/^/| /' conftest.$ac_ext >&5
34233
34234 eval "$as_ac_var=no"
34235 fi
34236 rm -f conftest.err conftest.$ac_objext \
34237       conftest$ac_exeext conftest.$ac_ext
34238 fi
34239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34241 if test `eval echo '${'$as_ac_var'}'` = yes; then
34242   cat >>confdefs.h <<_ACEOF
34243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34244 _ACEOF
34245
34246 fi
34247 done
34248
34249
34250 if test "$ac_cv_func_vsnprintf" = "yes"; then
34251         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34252 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34253 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34254   echo $ECHO_N "(cached) $ECHO_C" >&6
34255 else
34256
34257                                                             cat >conftest.$ac_ext <<_ACEOF
34258 /* confdefs.h.  */
34259 _ACEOF
34260 cat confdefs.h >>conftest.$ac_ext
34261 cat >>conftest.$ac_ext <<_ACEOF
34262 /* end confdefs.h.  */
34263
34264                     #include <stdio.h>
34265                     #include <stdarg.h>
34266                     #ifdef __MSL__
34267                     #if __MSL__ >= 0x6000
34268                     namespace std {}
34269                     using namespace std;
34270                     #endif
34271                     #endif
34272
34273 int
34274 main ()
34275 {
34276
34277                     char *buf;
34278                     va_list ap;
34279                     vsnprintf(buf, 10u, "%s", ap);
34280
34281   ;
34282   return 0;
34283 }
34284 _ACEOF
34285 rm -f conftest.$ac_objext
34286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34287   (eval $ac_compile) 2>conftest.er1
34288   ac_status=$?
34289   grep -v '^ *+' conftest.er1 >conftest.err
34290   rm -f conftest.er1
34291   cat conftest.err >&5
34292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34293   (exit $ac_status); } &&
34294          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34296   (eval $ac_try) 2>&5
34297   ac_status=$?
34298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34299   (exit $ac_status); }; } &&
34300          { ac_try='test -s conftest.$ac_objext'
34301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34302   (eval $ac_try) 2>&5
34303   ac_status=$?
34304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305   (exit $ac_status); }; }; then
34306   wx_cv_func_vsnprintf_decl=yes
34307 else
34308   echo "$as_me: failed program was:" >&5
34309 sed 's/^/| /' conftest.$ac_ext >&5
34310
34311 wx_cv_func_vsnprintf_decl=no
34312
34313 fi
34314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34315
34316
34317 fi
34318 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34319 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34320
34321     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34322         cat >>confdefs.h <<\_ACEOF
34323 #define HAVE_VSNPRINTF_DECL 1
34324 _ACEOF
34325
34326
34327                         echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34328 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34329 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34330   echo $ECHO_N "(cached) $ECHO_C" >&6
34331 else
34332
34333                 cat >conftest.$ac_ext <<_ACEOF
34334 /* confdefs.h.  */
34335 _ACEOF
34336 cat confdefs.h >>conftest.$ac_ext
34337 cat >>conftest.$ac_ext <<_ACEOF
34338 /* end confdefs.h.  */
34339
34340                         #include <stdio.h>
34341                         #include <stdarg.h>
34342                         #ifdef __MSL__
34343                         #if __MSL__ >= 0x6000
34344                         namespace std {}
34345                         using namespace std;
34346                         #endif
34347                         #endif
34348
34349 int
34350 main ()
34351 {
34352
34353                         char *buf;
34354                         va_list ap;
34355                         const char *fmt = "%s";
34356                         vsnprintf(buf, 10u, fmt, ap);
34357
34358   ;
34359   return 0;
34360 }
34361 _ACEOF
34362 rm -f conftest.$ac_objext
34363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34364   (eval $ac_compile) 2>conftest.er1
34365   ac_status=$?
34366   grep -v '^ *+' conftest.er1 >conftest.err
34367   rm -f conftest.er1
34368   cat conftest.err >&5
34369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370   (exit $ac_status); } &&
34371          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34373   (eval $ac_try) 2>&5
34374   ac_status=$?
34375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376   (exit $ac_status); }; } &&
34377          { ac_try='test -s conftest.$ac_objext'
34378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34379   (eval $ac_try) 2>&5
34380   ac_status=$?
34381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382   (exit $ac_status); }; }; then
34383   wx_cv_func_broken_vsnprintf_decl=no
34384 else
34385   echo "$as_me: failed program was:" >&5
34386 sed 's/^/| /' conftest.$ac_ext >&5
34387
34388 wx_cv_func_broken_vsnprintf_decl=yes
34389
34390 fi
34391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34392
34393
34394 fi
34395 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34396 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34397
34398         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34399             cat >>confdefs.h <<\_ACEOF
34400 #define HAVE_BROKEN_VSNPRINTF_DECL 1
34401 _ACEOF
34402
34403         fi
34404     fi
34405 fi
34406
34407 if test "$ac_cv_func_snprintf" = "yes"; then
34408     echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34409 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34410 if test "${wx_cv_func_snprintf_decl+set}" = set; then
34411   echo $ECHO_N "(cached) $ECHO_C" >&6
34412 else
34413
34414             cat >conftest.$ac_ext <<_ACEOF
34415 /* confdefs.h.  */
34416 _ACEOF
34417 cat confdefs.h >>conftest.$ac_ext
34418 cat >>conftest.$ac_ext <<_ACEOF
34419 /* end confdefs.h.  */
34420
34421                     #include <stdio.h>
34422                     #include <stdarg.h>
34423                     #ifdef __MSL__
34424                     #if __MSL__ >= 0x6000
34425                     namespace std {}
34426                     using namespace std;
34427                     #endif
34428                     #endif
34429
34430 int
34431 main ()
34432 {
34433
34434                     char *buf;
34435                     snprintf(buf, 10u, "%s", "wx");
34436
34437   ;
34438   return 0;
34439 }
34440 _ACEOF
34441 rm -f conftest.$ac_objext
34442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34443   (eval $ac_compile) 2>conftest.er1
34444   ac_status=$?
34445   grep -v '^ *+' conftest.er1 >conftest.err
34446   rm -f conftest.er1
34447   cat conftest.err >&5
34448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449   (exit $ac_status); } &&
34450          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34452   (eval $ac_try) 2>&5
34453   ac_status=$?
34454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455   (exit $ac_status); }; } &&
34456          { ac_try='test -s conftest.$ac_objext'
34457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34458   (eval $ac_try) 2>&5
34459   ac_status=$?
34460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461   (exit $ac_status); }; }; then
34462   wx_cv_func_snprintf_decl=yes
34463 else
34464   echo "$as_me: failed program was:" >&5
34465 sed 's/^/| /' conftest.$ac_ext >&5
34466
34467 wx_cv_func_snprintf_decl=no
34468
34469 fi
34470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34471
34472
34473 fi
34474 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34475 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34476
34477     if test "$wx_cv_func_snprintf_decl" = "yes"; then
34478         cat >>confdefs.h <<\_ACEOF
34479 #define HAVE_SNPRINTF_DECL 1
34480 _ACEOF
34481
34482
34483                         echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34484 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34485 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34486   echo $ECHO_N "(cached) $ECHO_C" >&6
34487 else
34488
34489                 cat >conftest.$ac_ext <<_ACEOF
34490 /* confdefs.h.  */
34491 _ACEOF
34492 cat confdefs.h >>conftest.$ac_ext
34493 cat >>conftest.$ac_ext <<_ACEOF
34494 /* end confdefs.h.  */
34495
34496                         #include <stdio.h>
34497                         #include <stdarg.h>
34498                         #ifdef __MSL__
34499                         #if __MSL__ >= 0x6000
34500                         namespace std {}
34501                         using namespace std;
34502                         #endif
34503                         #endif
34504
34505 int
34506 main ()
34507 {
34508
34509                         char *buf;
34510                         const char *fmt = "%s";
34511                         snprintf(buf, 10u, fmt, "wx");
34512
34513   ;
34514   return 0;
34515 }
34516 _ACEOF
34517 rm -f conftest.$ac_objext
34518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34519   (eval $ac_compile) 2>conftest.er1
34520   ac_status=$?
34521   grep -v '^ *+' conftest.er1 >conftest.err
34522   rm -f conftest.er1
34523   cat conftest.err >&5
34524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525   (exit $ac_status); } &&
34526          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34528   (eval $ac_try) 2>&5
34529   ac_status=$?
34530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531   (exit $ac_status); }; } &&
34532          { ac_try='test -s conftest.$ac_objext'
34533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534   (eval $ac_try) 2>&5
34535   ac_status=$?
34536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537   (exit $ac_status); }; }; then
34538   wx_cv_func_broken_snprintf_decl=no
34539 else
34540   echo "$as_me: failed program was:" >&5
34541 sed 's/^/| /' conftest.$ac_ext >&5
34542
34543 wx_cv_func_broken_snprintf_decl=yes
34544
34545 fi
34546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34547
34548
34549 fi
34550 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34551 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34552
34553         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34554             cat >>confdefs.h <<\_ACEOF
34555 #define HAVE_BROKEN_SNPRINTF_DECL 1
34556 _ACEOF
34557
34558         fi
34559     fi
34560
34561     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34562
34563                                         echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34564 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34565 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34566   echo $ECHO_N "(cached) $ECHO_C" >&6
34567 else
34568
34569                 if test "$cross_compiling" = yes; then
34570   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
34571 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
34572    { (exit 1); exit 1; }; }
34573 else
34574   cat >conftest.$ac_ext <<_ACEOF
34575 /* confdefs.h.  */
34576 _ACEOF
34577 cat confdefs.h >>conftest.$ac_ext
34578 cat >>conftest.$ac_ext <<_ACEOF
34579 /* end confdefs.h.  */
34580
34581                         #include <stdio.h>
34582
34583                         int main (void)
34584                         {
34585                             char buffer[128];
34586                             snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34587                             if (strcmp ("2 3 1", buffer) == 0)
34588                                 exit (0);
34589                             exit (1);
34590                         }
34591
34592 _ACEOF
34593 rm -f conftest$ac_exeext
34594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34595   (eval $ac_link) 2>&5
34596   ac_status=$?
34597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34600   (eval $ac_try) 2>&5
34601   ac_status=$?
34602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34603   (exit $ac_status); }; }; then
34604   wx_cv_func_snprintf_pos_params=no
34605 else
34606   echo "$as_me: program exited with status $ac_status" >&5
34607 echo "$as_me: failed program was:" >&5
34608 sed 's/^/| /' conftest.$ac_ext >&5
34609
34610 ( exit $ac_status )
34611 wx_cv_func_snprintf_pos_params=yes
34612
34613 fi
34614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34615 fi
34616
34617
34618 fi
34619 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34620 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34621
34622         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34623             cat >>confdefs.h <<\_ACEOF
34624 #define HAVE_UNIX98_PRINTF 1
34625 _ACEOF
34626
34627         fi
34628     fi
34629 fi
34630
34631
34632 if test "$wxUSE_UNICODE" = yes; then
34633
34634
34635
34636
34637
34638
34639 for ac_func in wputc wputchar putws fputws wprintf vswprintf
34640 do
34641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34642 echo "$as_me:$LINENO: checking for $ac_func" >&5
34643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34644 if eval "test \"\${$as_ac_var+set}\" = set"; then
34645   echo $ECHO_N "(cached) $ECHO_C" >&6
34646 else
34647   cat >conftest.$ac_ext <<_ACEOF
34648 /* confdefs.h.  */
34649 _ACEOF
34650 cat confdefs.h >>conftest.$ac_ext
34651 cat >>conftest.$ac_ext <<_ACEOF
34652 /* end confdefs.h.  */
34653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34655 #define $ac_func innocuous_$ac_func
34656
34657 /* System header to define __stub macros and hopefully few prototypes,
34658     which can conflict with char $ac_func (); below.
34659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34660     <limits.h> exists even on freestanding compilers.  */
34661
34662 #ifdef __STDC__
34663 # include <limits.h>
34664 #else
34665 # include <assert.h>
34666 #endif
34667
34668 #undef $ac_func
34669
34670 /* Override any gcc2 internal prototype to avoid an error.  */
34671 #ifdef __cplusplus
34672 extern "C"
34673 {
34674 #endif
34675 /* We use char because int might match the return type of a gcc2
34676    builtin and then its argument prototype would still apply.  */
34677 char $ac_func ();
34678 /* The GNU C library defines this for functions which it implements
34679     to always fail with ENOSYS.  Some functions are actually named
34680     something starting with __ and the normal name is an alias.  */
34681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34682 choke me
34683 #else
34684 char (*f) () = $ac_func;
34685 #endif
34686 #ifdef __cplusplus
34687 }
34688 #endif
34689
34690 int
34691 main ()
34692 {
34693 return f != $ac_func;
34694   ;
34695   return 0;
34696 }
34697 _ACEOF
34698 rm -f conftest.$ac_objext conftest$ac_exeext
34699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34700   (eval $ac_link) 2>conftest.er1
34701   ac_status=$?
34702   grep -v '^ *+' conftest.er1 >conftest.err
34703   rm -f conftest.er1
34704   cat conftest.err >&5
34705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706   (exit $ac_status); } &&
34707          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34709   (eval $ac_try) 2>&5
34710   ac_status=$?
34711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712   (exit $ac_status); }; } &&
34713          { ac_try='test -s conftest$ac_exeext'
34714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34715   (eval $ac_try) 2>&5
34716   ac_status=$?
34717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718   (exit $ac_status); }; }; then
34719   eval "$as_ac_var=yes"
34720 else
34721   echo "$as_me: failed program was:" >&5
34722 sed 's/^/| /' conftest.$ac_ext >&5
34723
34724 eval "$as_ac_var=no"
34725 fi
34726 rm -f conftest.err conftest.$ac_objext \
34727       conftest$ac_exeext conftest.$ac_ext
34728 fi
34729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34731 if test `eval echo '${'$as_ac_var'}'` = yes; then
34732   cat >>confdefs.h <<_ACEOF
34733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34734 _ACEOF
34735
34736 fi
34737 done
34738
34739
34740                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34741 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34742     cat >conftest.$ac_ext <<_ACEOF
34743 /* confdefs.h.  */
34744 _ACEOF
34745 cat confdefs.h >>conftest.$ac_ext
34746 cat >>conftest.$ac_ext <<_ACEOF
34747 /* end confdefs.h.  */
34748 #include <wchar.h>
34749 int
34750 main ()
34751 {
34752 &_vsnwprintf;
34753   ;
34754   return 0;
34755 }
34756 _ACEOF
34757 rm -f conftest.$ac_objext
34758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34759   (eval $ac_compile) 2>conftest.er1
34760   ac_status=$?
34761   grep -v '^ *+' conftest.er1 >conftest.err
34762   rm -f conftest.er1
34763   cat conftest.err >&5
34764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765   (exit $ac_status); } &&
34766          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34768   (eval $ac_try) 2>&5
34769   ac_status=$?
34770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771   (exit $ac_status); }; } &&
34772          { ac_try='test -s conftest.$ac_objext'
34773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34774   (eval $ac_try) 2>&5
34775   ac_status=$?
34776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777   (exit $ac_status); }; }; then
34778   echo "$as_me:$LINENO: result: yes" >&5
34779 echo "${ECHO_T}yes" >&6
34780                     cat >>confdefs.h <<\_ACEOF
34781 #define HAVE__VSNWPRINTF 1
34782 _ACEOF
34783
34784 else
34785   echo "$as_me: failed program was:" >&5
34786 sed 's/^/| /' conftest.$ac_ext >&5
34787
34788 echo "$as_me:$LINENO: result: no" >&5
34789 echo "${ECHO_T}no" >&6
34790 fi
34791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
34792 fi
34793
34794 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34795
34796 for ac_func in fnmatch
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 fi
34897
34898 if test "$wxUSE_FILE" = "yes"; then
34899
34900 for ac_func in fsync
34901 do
34902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34903 echo "$as_me:$LINENO: checking for $ac_func" >&5
34904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34905 if eval "test \"\${$as_ac_var+set}\" = set"; then
34906   echo $ECHO_N "(cached) $ECHO_C" >&6
34907 else
34908   cat >conftest.$ac_ext <<_ACEOF
34909 /* confdefs.h.  */
34910 _ACEOF
34911 cat confdefs.h >>conftest.$ac_ext
34912 cat >>conftest.$ac_ext <<_ACEOF
34913 /* end confdefs.h.  */
34914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34916 #define $ac_func innocuous_$ac_func
34917
34918 /* System header to define __stub macros and hopefully few prototypes,
34919     which can conflict with char $ac_func (); below.
34920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34921     <limits.h> exists even on freestanding compilers.  */
34922
34923 #ifdef __STDC__
34924 # include <limits.h>
34925 #else
34926 # include <assert.h>
34927 #endif
34928
34929 #undef $ac_func
34930
34931 /* Override any gcc2 internal prototype to avoid an error.  */
34932 #ifdef __cplusplus
34933 extern "C"
34934 {
34935 #endif
34936 /* We use char because int might match the return type of a gcc2
34937    builtin and then its argument prototype would still apply.  */
34938 char $ac_func ();
34939 /* The GNU C library defines this for functions which it implements
34940     to always fail with ENOSYS.  Some functions are actually named
34941     something starting with __ and the normal name is an alias.  */
34942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34943 choke me
34944 #else
34945 char (*f) () = $ac_func;
34946 #endif
34947 #ifdef __cplusplus
34948 }
34949 #endif
34950
34951 int
34952 main ()
34953 {
34954 return f != $ac_func;
34955   ;
34956   return 0;
34957 }
34958 _ACEOF
34959 rm -f conftest.$ac_objext conftest$ac_exeext
34960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34961   (eval $ac_link) 2>conftest.er1
34962   ac_status=$?
34963   grep -v '^ *+' conftest.er1 >conftest.err
34964   rm -f conftest.er1
34965   cat conftest.err >&5
34966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967   (exit $ac_status); } &&
34968          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34970   (eval $ac_try) 2>&5
34971   ac_status=$?
34972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973   (exit $ac_status); }; } &&
34974          { ac_try='test -s conftest$ac_exeext'
34975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34976   (eval $ac_try) 2>&5
34977   ac_status=$?
34978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34979   (exit $ac_status); }; }; then
34980   eval "$as_ac_var=yes"
34981 else
34982   echo "$as_me: failed program was:" >&5
34983 sed 's/^/| /' conftest.$ac_ext >&5
34984
34985 eval "$as_ac_var=no"
34986 fi
34987 rm -f conftest.err conftest.$ac_objext \
34988       conftest$ac_exeext conftest.$ac_ext
34989 fi
34990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34992 if test `eval echo '${'$as_ac_var'}'` = yes; then
34993   cat >>confdefs.h <<_ACEOF
34994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34995 _ACEOF
34996
34997 fi
34998 done
34999
35000 fi
35001
35002
35003 for ac_func in round
35004 do
35005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35006 echo "$as_me:$LINENO: checking for $ac_func" >&5
35007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35008 if eval "test \"\${$as_ac_var+set}\" = set"; then
35009   echo $ECHO_N "(cached) $ECHO_C" >&6
35010 else
35011   cat >conftest.$ac_ext <<_ACEOF
35012 /* confdefs.h.  */
35013 _ACEOF
35014 cat confdefs.h >>conftest.$ac_ext
35015 cat >>conftest.$ac_ext <<_ACEOF
35016 /* end confdefs.h.  */
35017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35019 #define $ac_func innocuous_$ac_func
35020
35021 /* System header to define __stub macros and hopefully few prototypes,
35022     which can conflict with char $ac_func (); below.
35023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35024     <limits.h> exists even on freestanding compilers.  */
35025
35026 #ifdef __STDC__
35027 # include <limits.h>
35028 #else
35029 # include <assert.h>
35030 #endif
35031
35032 #undef $ac_func
35033
35034 /* Override any gcc2 internal prototype to avoid an error.  */
35035 #ifdef __cplusplus
35036 extern "C"
35037 {
35038 #endif
35039 /* We use char because int might match the return type of a gcc2
35040    builtin and then its argument prototype would still apply.  */
35041 char $ac_func ();
35042 /* The GNU C library defines this for functions which it implements
35043     to always fail with ENOSYS.  Some functions are actually named
35044     something starting with __ and the normal name is an alias.  */
35045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35046 choke me
35047 #else
35048 char (*f) () = $ac_func;
35049 #endif
35050 #ifdef __cplusplus
35051 }
35052 #endif
35053
35054 int
35055 main ()
35056 {
35057 return f != $ac_func;
35058   ;
35059   return 0;
35060 }
35061 _ACEOF
35062 rm -f conftest.$ac_objext conftest$ac_exeext
35063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35064   (eval $ac_link) 2>conftest.er1
35065   ac_status=$?
35066   grep -v '^ *+' conftest.er1 >conftest.err
35067   rm -f conftest.er1
35068   cat conftest.err >&5
35069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070   (exit $ac_status); } &&
35071          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35073   (eval $ac_try) 2>&5
35074   ac_status=$?
35075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076   (exit $ac_status); }; } &&
35077          { ac_try='test -s conftest$ac_exeext'
35078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35079   (eval $ac_try) 2>&5
35080   ac_status=$?
35081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082   (exit $ac_status); }; }; then
35083   eval "$as_ac_var=yes"
35084 else
35085   echo "$as_me: failed program was:" >&5
35086 sed 's/^/| /' conftest.$ac_ext >&5
35087
35088 eval "$as_ac_var=no"
35089 fi
35090 rm -f conftest.err conftest.$ac_objext \
35091       conftest$ac_exeext conftest.$ac_ext
35092 fi
35093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35095 if test `eval echo '${'$as_ac_var'}'` = yes; then
35096   cat >>confdefs.h <<_ACEOF
35097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35098 _ACEOF
35099
35100 fi
35101 done
35102
35103 if test "$ac_cv_func_round" = yes; then
35104     echo "$as_me:$LINENO: checking whether round is declared" >&5
35105 echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35106 if test "${ac_cv_have_decl_round+set}" = set; then
35107   echo $ECHO_N "(cached) $ECHO_C" >&6
35108 else
35109   cat >conftest.$ac_ext <<_ACEOF
35110 /* confdefs.h.  */
35111 _ACEOF
35112 cat confdefs.h >>conftest.$ac_ext
35113 cat >>conftest.$ac_ext <<_ACEOF
35114 /* end confdefs.h.  */
35115 #include <math.h>
35116
35117 int
35118 main ()
35119 {
35120 #ifndef round
35121   char *p = (char *) round;
35122 #endif
35123
35124   ;
35125   return 0;
35126 }
35127 _ACEOF
35128 rm -f conftest.$ac_objext
35129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35130   (eval $ac_compile) 2>conftest.er1
35131   ac_status=$?
35132   grep -v '^ *+' conftest.er1 >conftest.err
35133   rm -f conftest.er1
35134   cat conftest.err >&5
35135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136   (exit $ac_status); } &&
35137          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35139   (eval $ac_try) 2>&5
35140   ac_status=$?
35141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142   (exit $ac_status); }; } &&
35143          { ac_try='test -s conftest.$ac_objext'
35144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35145   (eval $ac_try) 2>&5
35146   ac_status=$?
35147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35148   (exit $ac_status); }; }; then
35149   ac_cv_have_decl_round=yes
35150 else
35151   echo "$as_me: failed program was:" >&5
35152 sed 's/^/| /' conftest.$ac_ext >&5
35153
35154 ac_cv_have_decl_round=no
35155 fi
35156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35157 fi
35158 echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35159 echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35160 if test $ac_cv_have_decl_round = yes; then
35161
35162 cat >>confdefs.h <<_ACEOF
35163 #define HAVE_DECL_ROUND 1
35164 _ACEOF
35165
35166
35167 else
35168   cat >>confdefs.h <<_ACEOF
35169 #define HAVE_DECL_ROUND 0
35170 _ACEOF
35171
35172
35173 fi
35174
35175
35176 fi
35177
35178
35179 if test "$TOOLKIT" != "MSW"; then
35180
35181
35182
35183
35184
35185 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35186 if test "${with_libiconv_prefix+set}" = set; then
35187   withval="$with_libiconv_prefix"
35188
35189     for dir in `echo "$withval" | tr : ' '`; do
35190       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35191       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35192     done
35193
35194 fi;
35195
35196   echo "$as_me:$LINENO: checking for iconv" >&5
35197 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35198 if test "${am_cv_func_iconv+set}" = set; then
35199   echo $ECHO_N "(cached) $ECHO_C" >&6
35200 else
35201
35202     am_cv_func_iconv="no, consider installing GNU libiconv"
35203     am_cv_lib_iconv=no
35204     cat >conftest.$ac_ext <<_ACEOF
35205 /* confdefs.h.  */
35206 _ACEOF
35207 cat confdefs.h >>conftest.$ac_ext
35208 cat >>conftest.$ac_ext <<_ACEOF
35209 /* end confdefs.h.  */
35210 #include <stdlib.h>
35211 #include <iconv.h>
35212 int
35213 main ()
35214 {
35215 iconv_t cd = iconv_open("","");
35216        iconv(cd,NULL,NULL,NULL,NULL);
35217        iconv_close(cd);
35218   ;
35219   return 0;
35220 }
35221 _ACEOF
35222 rm -f conftest.$ac_objext conftest$ac_exeext
35223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35224   (eval $ac_link) 2>conftest.er1
35225   ac_status=$?
35226   grep -v '^ *+' conftest.er1 >conftest.err
35227   rm -f conftest.er1
35228   cat conftest.err >&5
35229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230   (exit $ac_status); } &&
35231          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35233   (eval $ac_try) 2>&5
35234   ac_status=$?
35235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236   (exit $ac_status); }; } &&
35237          { ac_try='test -s conftest$ac_exeext'
35238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35239   (eval $ac_try) 2>&5
35240   ac_status=$?
35241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242   (exit $ac_status); }; }; then
35243   am_cv_func_iconv=yes
35244 else
35245   echo "$as_me: failed program was:" >&5
35246 sed 's/^/| /' conftest.$ac_ext >&5
35247
35248 fi
35249 rm -f conftest.err conftest.$ac_objext \
35250       conftest$ac_exeext conftest.$ac_ext
35251     if test "$am_cv_func_iconv" != yes; then
35252       am_save_LIBS="$LIBS"
35253       LIBS="$LIBS -liconv"
35254       cat >conftest.$ac_ext <<_ACEOF
35255 /* confdefs.h.  */
35256 _ACEOF
35257 cat confdefs.h >>conftest.$ac_ext
35258 cat >>conftest.$ac_ext <<_ACEOF
35259 /* end confdefs.h.  */
35260 #include <stdlib.h>
35261 #include <iconv.h>
35262 int
35263 main ()
35264 {
35265 iconv_t cd = iconv_open("","");
35266          iconv(cd,NULL,NULL,NULL,NULL);
35267          iconv_close(cd);
35268   ;
35269   return 0;
35270 }
35271 _ACEOF
35272 rm -f conftest.$ac_objext conftest$ac_exeext
35273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35274   (eval $ac_link) 2>conftest.er1
35275   ac_status=$?
35276   grep -v '^ *+' conftest.er1 >conftest.err
35277   rm -f conftest.er1
35278   cat conftest.err >&5
35279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280   (exit $ac_status); } &&
35281          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35283   (eval $ac_try) 2>&5
35284   ac_status=$?
35285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286   (exit $ac_status); }; } &&
35287          { ac_try='test -s conftest$ac_exeext'
35288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35289   (eval $ac_try) 2>&5
35290   ac_status=$?
35291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292   (exit $ac_status); }; }; then
35293   am_cv_lib_iconv=yes
35294         am_cv_func_iconv=yes
35295 else
35296   echo "$as_me: failed program was:" >&5
35297 sed 's/^/| /' conftest.$ac_ext >&5
35298
35299 fi
35300 rm -f conftest.err conftest.$ac_objext \
35301       conftest$ac_exeext conftest.$ac_ext
35302       LIBS="$am_save_LIBS"
35303     fi
35304
35305 fi
35306 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35307 echo "${ECHO_T}$am_cv_func_iconv" >&6
35308   if test "$am_cv_func_iconv" = yes; then
35309
35310 cat >>confdefs.h <<\_ACEOF
35311 #define HAVE_ICONV 1
35312 _ACEOF
35313
35314     echo "$as_me:$LINENO: checking if iconv needs const" >&5
35315 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35316 if test "${wx_cv_func_iconv_const+set}" = set; then
35317   echo $ECHO_N "(cached) $ECHO_C" >&6
35318 else
35319   cat >conftest.$ac_ext <<_ACEOF
35320 /* confdefs.h.  */
35321 _ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h.  */
35325
35326 #include <stdlib.h>
35327 #include <iconv.h>
35328 extern
35329 #ifdef __cplusplus
35330 "C"
35331 #endif
35332 #if defined(__STDC__) || defined(__cplusplus)
35333 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35334 #else
35335 size_t iconv();
35336 #endif
35337
35338 int
35339 main ()
35340 {
35341
35342   ;
35343   return 0;
35344 }
35345 _ACEOF
35346 rm -f conftest.$ac_objext
35347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35348   (eval $ac_compile) 2>conftest.er1
35349   ac_status=$?
35350   grep -v '^ *+' conftest.er1 >conftest.err
35351   rm -f conftest.er1
35352   cat conftest.err >&5
35353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35354   (exit $ac_status); } &&
35355          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35357   (eval $ac_try) 2>&5
35358   ac_status=$?
35359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360   (exit $ac_status); }; } &&
35361          { ac_try='test -s conftest.$ac_objext'
35362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35363   (eval $ac_try) 2>&5
35364   ac_status=$?
35365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366   (exit $ac_status); }; }; then
35367   wx_cv_func_iconv_const="no"
35368 else
35369   echo "$as_me: failed program was:" >&5
35370 sed 's/^/| /' conftest.$ac_ext >&5
35371
35372 wx_cv_func_iconv_const="yes"
35373
35374 fi
35375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35376
35377 fi
35378 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35379 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
35380
35381     iconv_const=
35382     if test "x$wx_cv_func_iconv_const" = "xyes"; then
35383         iconv_const="const"
35384     fi
35385
35386
35387 cat >>confdefs.h <<_ACEOF
35388 #define ICONV_CONST $iconv_const
35389 _ACEOF
35390
35391   fi
35392   LIBICONV=
35393   if test "$am_cv_lib_iconv" = yes; then
35394     LIBICONV="-liconv"
35395   fi
35396
35397
35398 LIBS="$LIBICONV $LIBS"
35399
35400 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35401
35402 for ac_func in sigaction
35403 do
35404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35405 echo "$as_me:$LINENO: checking for $ac_func" >&5
35406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35407 if eval "test \"\${$as_ac_var+set}\" = set"; then
35408   echo $ECHO_N "(cached) $ECHO_C" >&6
35409 else
35410   cat >conftest.$ac_ext <<_ACEOF
35411 /* confdefs.h.  */
35412 _ACEOF
35413 cat confdefs.h >>conftest.$ac_ext
35414 cat >>conftest.$ac_ext <<_ACEOF
35415 /* end confdefs.h.  */
35416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35418 #define $ac_func innocuous_$ac_func
35419
35420 /* System header to define __stub macros and hopefully few prototypes,
35421     which can conflict with char $ac_func (); below.
35422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35423     <limits.h> exists even on freestanding compilers.  */
35424
35425 #ifdef __STDC__
35426 # include <limits.h>
35427 #else
35428 # include <assert.h>
35429 #endif
35430
35431 #undef $ac_func
35432
35433 /* Override any gcc2 internal prototype to avoid an error.  */
35434 #ifdef __cplusplus
35435 extern "C"
35436 {
35437 #endif
35438 /* We use char because int might match the return type of a gcc2
35439    builtin and then its argument prototype would still apply.  */
35440 char $ac_func ();
35441 /* The GNU C library defines this for functions which it implements
35442     to always fail with ENOSYS.  Some functions are actually named
35443     something starting with __ and the normal name is an alias.  */
35444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35445 choke me
35446 #else
35447 char (*f) () = $ac_func;
35448 #endif
35449 #ifdef __cplusplus
35450 }
35451 #endif
35452
35453 int
35454 main ()
35455 {
35456 return f != $ac_func;
35457   ;
35458   return 0;
35459 }
35460 _ACEOF
35461 rm -f conftest.$ac_objext conftest$ac_exeext
35462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35463   (eval $ac_link) 2>conftest.er1
35464   ac_status=$?
35465   grep -v '^ *+' conftest.er1 >conftest.err
35466   rm -f conftest.er1
35467   cat conftest.err >&5
35468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469   (exit $ac_status); } &&
35470          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35472   (eval $ac_try) 2>&5
35473   ac_status=$?
35474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475   (exit $ac_status); }; } &&
35476          { ac_try='test -s conftest$ac_exeext'
35477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35478   (eval $ac_try) 2>&5
35479   ac_status=$?
35480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481   (exit $ac_status); }; }; then
35482   eval "$as_ac_var=yes"
35483 else
35484   echo "$as_me: failed program was:" >&5
35485 sed 's/^/| /' conftest.$ac_ext >&5
35486
35487 eval "$as_ac_var=no"
35488 fi
35489 rm -f conftest.err conftest.$ac_objext \
35490       conftest$ac_exeext conftest.$ac_ext
35491 fi
35492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35494 if test `eval echo '${'$as_ac_var'}'` = yes; then
35495   cat >>confdefs.h <<_ACEOF
35496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35497 _ACEOF
35498
35499 fi
35500 done
35501
35502
35503     if test "$ac_cv_func_sigaction" = "no"; then
35504         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35505 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35506         wxUSE_ON_FATAL_EXCEPTION=no
35507     fi
35508
35509     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35510       echo "$as_me:$LINENO: checking for sa_handler type" >&5
35511 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35512 if test "${wx_cv_type_sa_handler+set}" = set; then
35513   echo $ECHO_N "(cached) $ECHO_C" >&6
35514 else
35515
35516         cat >conftest.$ac_ext <<_ACEOF
35517 /* confdefs.h.  */
35518 _ACEOF
35519 cat confdefs.h >>conftest.$ac_ext
35520 cat >>conftest.$ac_ext <<_ACEOF
35521 /* end confdefs.h.  */
35522 #include <signal.h>
35523 int
35524 main ()
35525 {
35526
35527                         extern void testSigHandler(int);
35528
35529                         struct sigaction sa;
35530                         sa.sa_handler = testSigHandler;
35531
35532   ;
35533   return 0;
35534 }
35535 _ACEOF
35536 rm -f conftest.$ac_objext
35537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35538   (eval $ac_compile) 2>conftest.er1
35539   ac_status=$?
35540   grep -v '^ *+' conftest.er1 >conftest.err
35541   rm -f conftest.er1
35542   cat conftest.err >&5
35543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544   (exit $ac_status); } &&
35545          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35547   (eval $ac_try) 2>&5
35548   ac_status=$?
35549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550   (exit $ac_status); }; } &&
35551          { ac_try='test -s conftest.$ac_objext'
35552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35553   (eval $ac_try) 2>&5
35554   ac_status=$?
35555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35556   (exit $ac_status); }; }; then
35557
35558                         wx_cv_type_sa_handler=int
35559
35560 else
35561   echo "$as_me: failed program was:" >&5
35562 sed 's/^/| /' conftest.$ac_ext >&5
35563
35564
35565                         wx_cv_type_sa_handler=void
35566
35567 fi
35568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35569
35570 fi
35571 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35572 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35573
35574       cat >>confdefs.h <<_ACEOF
35575 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35576 _ACEOF
35577
35578     fi
35579 fi
35580
35581 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35582     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35583 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35584 if test "${wx_cv_func_backtrace+set}" = set; then
35585   echo $ECHO_N "(cached) $ECHO_C" >&6
35586 else
35587
35588             cat >conftest.$ac_ext <<_ACEOF
35589 /* confdefs.h.  */
35590 _ACEOF
35591 cat confdefs.h >>conftest.$ac_ext
35592 cat >>conftest.$ac_ext <<_ACEOF
35593 /* end confdefs.h.  */
35594 #include <execinfo.h>
35595 int
35596 main ()
35597 {
35598
35599                     void *trace[1];
35600                     char **messages;
35601
35602                     backtrace(trace, 1);
35603                     messages = backtrace_symbols(trace, 1);
35604
35605   ;
35606   return 0;
35607 }
35608 _ACEOF
35609 rm -f conftest.$ac_objext
35610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35611   (eval $ac_compile) 2>conftest.er1
35612   ac_status=$?
35613   grep -v '^ *+' conftest.er1 >conftest.err
35614   rm -f conftest.er1
35615   cat conftest.err >&5
35616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617   (exit $ac_status); } &&
35618          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35620   (eval $ac_try) 2>&5
35621   ac_status=$?
35622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623   (exit $ac_status); }; } &&
35624          { ac_try='test -s conftest.$ac_objext'
35625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35626   (eval $ac_try) 2>&5
35627   ac_status=$?
35628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35629   (exit $ac_status); }; }; then
35630   wx_cv_func_backtrace=yes
35631 else
35632   echo "$as_me: failed program was:" >&5
35633 sed 's/^/| /' conftest.$ac_ext >&5
35634
35635 wx_cv_func_backtrace=no
35636
35637 fi
35638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35639
35640
35641 fi
35642 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35643 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35644
35645
35646     if test "$wx_cv_func_backtrace" = "no"; then
35647         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35648 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35649         wxUSE_STACKWALKER=no
35650     else
35651         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35652 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35653 if test "${wx_cv_func_cxa_demangle+set}" = set; then
35654   echo $ECHO_N "(cached) $ECHO_C" >&6
35655 else
35656
35657                 cat >conftest.$ac_ext <<_ACEOF
35658 /* confdefs.h.  */
35659 _ACEOF
35660 cat confdefs.h >>conftest.$ac_ext
35661 cat >>conftest.$ac_ext <<_ACEOF
35662 /* end confdefs.h.  */
35663 #include <cxxabi.h>
35664 int
35665 main ()
35666 {
35667
35668                         int rc;
35669                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35670
35671   ;
35672   return 0;
35673 }
35674 _ACEOF
35675 rm -f conftest.$ac_objext conftest$ac_exeext
35676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35677   (eval $ac_link) 2>conftest.er1
35678   ac_status=$?
35679   grep -v '^ *+' conftest.er1 >conftest.err
35680   rm -f conftest.er1
35681   cat conftest.err >&5
35682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683   (exit $ac_status); } &&
35684          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35686   (eval $ac_try) 2>&5
35687   ac_status=$?
35688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35689   (exit $ac_status); }; } &&
35690          { ac_try='test -s conftest$ac_exeext'
35691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35692   (eval $ac_try) 2>&5
35693   ac_status=$?
35694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695   (exit $ac_status); }; }; then
35696   wx_cv_func_cxa_demangle=yes
35697 else
35698   echo "$as_me: failed program was:" >&5
35699 sed 's/^/| /' conftest.$ac_ext >&5
35700
35701 wx_cv_func_cxa_demangle=no
35702
35703 fi
35704 rm -f conftest.err conftest.$ac_objext \
35705       conftest$ac_exeext conftest.$ac_ext
35706
35707
35708 fi
35709 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35710 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35711
35712         if test "$wx_cv_func_cxa_demangle" = "yes"; then
35713             cat >>confdefs.h <<\_ACEOF
35714 #define HAVE_CXA_DEMANGLE 1
35715 _ACEOF
35716
35717         fi
35718     fi
35719 fi
35720
35721 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35722     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35723 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35724     wxUSE_STACKWALKER=no
35725 fi
35726
35727
35728
35729
35730 for ac_func in mkstemp mktemp
35731 do
35732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35733 echo "$as_me:$LINENO: checking for $ac_func" >&5
35734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35735 if eval "test \"\${$as_ac_var+set}\" = set"; then
35736   echo $ECHO_N "(cached) $ECHO_C" >&6
35737 else
35738   cat >conftest.$ac_ext <<_ACEOF
35739 /* confdefs.h.  */
35740 _ACEOF
35741 cat confdefs.h >>conftest.$ac_ext
35742 cat >>conftest.$ac_ext <<_ACEOF
35743 /* end confdefs.h.  */
35744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35746 #define $ac_func innocuous_$ac_func
35747
35748 /* System header to define __stub macros and hopefully few prototypes,
35749     which can conflict with char $ac_func (); below.
35750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35751     <limits.h> exists even on freestanding compilers.  */
35752
35753 #ifdef __STDC__
35754 # include <limits.h>
35755 #else
35756 # include <assert.h>
35757 #endif
35758
35759 #undef $ac_func
35760
35761 /* Override any gcc2 internal prototype to avoid an error.  */
35762 #ifdef __cplusplus
35763 extern "C"
35764 {
35765 #endif
35766 /* We use char because int might match the return type of a gcc2
35767    builtin and then its argument prototype would still apply.  */
35768 char $ac_func ();
35769 /* The GNU C library defines this for functions which it implements
35770     to always fail with ENOSYS.  Some functions are actually named
35771     something starting with __ and the normal name is an alias.  */
35772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35773 choke me
35774 #else
35775 char (*f) () = $ac_func;
35776 #endif
35777 #ifdef __cplusplus
35778 }
35779 #endif
35780
35781 int
35782 main ()
35783 {
35784 return f != $ac_func;
35785   ;
35786   return 0;
35787 }
35788 _ACEOF
35789 rm -f conftest.$ac_objext conftest$ac_exeext
35790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35791   (eval $ac_link) 2>conftest.er1
35792   ac_status=$?
35793   grep -v '^ *+' conftest.er1 >conftest.err
35794   rm -f conftest.er1
35795   cat conftest.err >&5
35796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797   (exit $ac_status); } &&
35798          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35800   (eval $ac_try) 2>&5
35801   ac_status=$?
35802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803   (exit $ac_status); }; } &&
35804          { ac_try='test -s conftest$ac_exeext'
35805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35806   (eval $ac_try) 2>&5
35807   ac_status=$?
35808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809   (exit $ac_status); }; }; then
35810   eval "$as_ac_var=yes"
35811 else
35812   echo "$as_me: failed program was:" >&5
35813 sed 's/^/| /' conftest.$ac_ext >&5
35814
35815 eval "$as_ac_var=no"
35816 fi
35817 rm -f conftest.err conftest.$ac_objext \
35818       conftest$ac_exeext conftest.$ac_ext
35819 fi
35820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35821 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35822 if test `eval echo '${'$as_ac_var'}'` = yes; then
35823   cat >>confdefs.h <<_ACEOF
35824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35825 _ACEOF
35826  break
35827 fi
35828 done
35829
35830
35831 echo "$as_me:$LINENO: checking for statfs" >&5
35832 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35833 if test "${wx_cv_func_statfs+set}" = set; then
35834   echo $ECHO_N "(cached) $ECHO_C" >&6
35835 else
35836   cat >conftest.$ac_ext <<_ACEOF
35837 /* confdefs.h.  */
35838 _ACEOF
35839 cat confdefs.h >>conftest.$ac_ext
35840 cat >>conftest.$ac_ext <<_ACEOF
35841 /* end confdefs.h.  */
35842
35843              #if defined(__BSD__)
35844              #include <sys/param.h>
35845              #include <sys/mount.h>
35846              #else
35847              #include <sys/vfs.h>
35848              #endif
35849
35850 int
35851 main ()
35852 {
35853
35854              long l;
35855              struct statfs fs;
35856              statfs("/", &fs);
35857              l = fs.f_bsize;
35858              l += fs.f_blocks;
35859              l += fs.f_bavail;
35860
35861   ;
35862   return 0;
35863 }
35864 _ACEOF
35865 rm -f conftest.$ac_objext
35866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35867   (eval $ac_compile) 2>conftest.er1
35868   ac_status=$?
35869   grep -v '^ *+' conftest.er1 >conftest.err
35870   rm -f conftest.er1
35871   cat conftest.err >&5
35872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873   (exit $ac_status); } &&
35874          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35876   (eval $ac_try) 2>&5
35877   ac_status=$?
35878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35879   (exit $ac_status); }; } &&
35880          { ac_try='test -s conftest.$ac_objext'
35881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35882   (eval $ac_try) 2>&5
35883   ac_status=$?
35884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885   (exit $ac_status); }; }; then
35886   wx_cv_func_statfs=yes
35887 else
35888   echo "$as_me: failed program was:" >&5
35889 sed 's/^/| /' conftest.$ac_ext >&5
35890
35891 wx_cv_func_statfs=no
35892
35893 fi
35894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35895
35896 fi
35897 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35898 echo "${ECHO_T}$wx_cv_func_statfs" >&6
35899
35900 if test "$wx_cv_func_statfs" = "yes"; then
35901         echo "$as_me:$LINENO: checking for statfs declaration" >&5
35902 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35903 if test "${wx_cv_func_statfs_decl+set}" = set; then
35904   echo $ECHO_N "(cached) $ECHO_C" >&6
35905 else
35906   cat >conftest.$ac_ext <<_ACEOF
35907 /* confdefs.h.  */
35908 _ACEOF
35909 cat confdefs.h >>conftest.$ac_ext
35910 cat >>conftest.$ac_ext <<_ACEOF
35911 /* end confdefs.h.  */
35912
35913                  #if defined(__BSD__)
35914                  #include <sys/param.h>
35915                  #include <sys/mount.h>
35916                  #else
35917                  #include <sys/vfs.h>
35918                  #endif
35919
35920 int
35921 main ()
35922 {
35923
35924                 struct statfs fs;
35925                 statfs("", &fs);
35926
35927   ;
35928   return 0;
35929 }
35930 _ACEOF
35931 rm -f conftest.$ac_objext
35932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35933   (eval $ac_compile) 2>conftest.er1
35934   ac_status=$?
35935   grep -v '^ *+' conftest.er1 >conftest.err
35936   rm -f conftest.er1
35937   cat conftest.err >&5
35938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35939   (exit $ac_status); } &&
35940          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35942   (eval $ac_try) 2>&5
35943   ac_status=$?
35944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945   (exit $ac_status); }; } &&
35946          { ac_try='test -s conftest.$ac_objext'
35947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35948   (eval $ac_try) 2>&5
35949   ac_status=$?
35950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35951   (exit $ac_status); }; }; then
35952   wx_cv_func_statfs_decl=yes
35953 else
35954   echo "$as_me: failed program was:" >&5
35955 sed 's/^/| /' conftest.$ac_ext >&5
35956
35957 wx_cv_func_statfs_decl=no
35958
35959 fi
35960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35961
35962 fi
35963 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35964 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
35965
35966     if test "$wx_cv_func_statfs_decl" = "yes"; then
35967         cat >>confdefs.h <<\_ACEOF
35968 #define HAVE_STATFS_DECL 1
35969 _ACEOF
35970
35971     fi
35972
35973     wx_cv_type_statvfs_t="struct statfs"
35974     cat >>confdefs.h <<\_ACEOF
35975 #define HAVE_STATFS 1
35976 _ACEOF
35977
35978 else
35979     echo "$as_me:$LINENO: checking for statvfs" >&5
35980 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35981 if test "${wx_cv_func_statvfs+set}" = set; then
35982   echo $ECHO_N "(cached) $ECHO_C" >&6
35983 else
35984   cat >conftest.$ac_ext <<_ACEOF
35985 /* confdefs.h.  */
35986 _ACEOF
35987 cat confdefs.h >>conftest.$ac_ext
35988 cat >>conftest.$ac_ext <<_ACEOF
35989 /* end confdefs.h.  */
35990
35991                 #include <stddef.h>
35992                 #include <sys/statvfs.h>
35993
35994 int
35995 main ()
35996 {
35997
35998                 statvfs("/", NULL);
35999
36000   ;
36001   return 0;
36002 }
36003 _ACEOF
36004 rm -f conftest.$ac_objext
36005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36006   (eval $ac_compile) 2>conftest.er1
36007   ac_status=$?
36008   grep -v '^ *+' conftest.er1 >conftest.err
36009   rm -f conftest.er1
36010   cat conftest.err >&5
36011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012   (exit $ac_status); } &&
36013          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36015   (eval $ac_try) 2>&5
36016   ac_status=$?
36017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018   (exit $ac_status); }; } &&
36019          { ac_try='test -s conftest.$ac_objext'
36020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36021   (eval $ac_try) 2>&5
36022   ac_status=$?
36023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024   (exit $ac_status); }; }; then
36025   wx_cv_func_statvfs=yes
36026 else
36027   echo "$as_me: failed program was:" >&5
36028 sed 's/^/| /' conftest.$ac_ext >&5
36029
36030 wx_cv_func_statvfs=no
36031
36032 fi
36033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36034
36035 fi
36036 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36037 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36038
36039     if test "$wx_cv_func_statvfs" = "yes"; then
36040                                                                 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36041 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36042 if test "${wx_cv_type_statvfs_t+set}" = set; then
36043   echo $ECHO_N "(cached) $ECHO_C" >&6
36044 else
36045   cat >conftest.$ac_ext <<_ACEOF
36046 /* confdefs.h.  */
36047 _ACEOF
36048 cat confdefs.h >>conftest.$ac_ext
36049 cat >>conftest.$ac_ext <<_ACEOF
36050 /* end confdefs.h.  */
36051
36052                     #include <sys/statvfs.h>
36053
36054 int
36055 main ()
36056 {
36057
36058                     long l;
36059                     statvfs_t fs;
36060                     statvfs("/", &fs);
36061                     l = fs.f_bsize;
36062                     l += fs.f_blocks;
36063                     l += fs.f_bavail;
36064
36065   ;
36066   return 0;
36067 }
36068 _ACEOF
36069 rm -f conftest.$ac_objext
36070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36071   (eval $ac_compile) 2>conftest.er1
36072   ac_status=$?
36073   grep -v '^ *+' conftest.er1 >conftest.err
36074   rm -f conftest.er1
36075   cat conftest.err >&5
36076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077   (exit $ac_status); } &&
36078          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36080   (eval $ac_try) 2>&5
36081   ac_status=$?
36082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083   (exit $ac_status); }; } &&
36084          { ac_try='test -s conftest.$ac_objext'
36085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36086   (eval $ac_try) 2>&5
36087   ac_status=$?
36088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089   (exit $ac_status); }; }; then
36090   wx_cv_type_statvfs_t=statvfs_t
36091 else
36092   echo "$as_me: failed program was:" >&5
36093 sed 's/^/| /' conftest.$ac_ext >&5
36094
36095
36096                     cat >conftest.$ac_ext <<_ACEOF
36097 /* confdefs.h.  */
36098 _ACEOF
36099 cat confdefs.h >>conftest.$ac_ext
36100 cat >>conftest.$ac_ext <<_ACEOF
36101 /* end confdefs.h.  */
36102
36103                             #include <sys/statvfs.h>
36104
36105 int
36106 main ()
36107 {
36108
36109                             long l;
36110                             struct statvfs fs;
36111                             statvfs("/", &fs);
36112                             l = fs.f_bsize;
36113                             l += fs.f_blocks;
36114                             l += fs.f_bavail;
36115
36116   ;
36117   return 0;
36118 }
36119 _ACEOF
36120 rm -f conftest.$ac_objext
36121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36122   (eval $ac_compile) 2>conftest.er1
36123   ac_status=$?
36124   grep -v '^ *+' conftest.er1 >conftest.err
36125   rm -f conftest.er1
36126   cat conftest.err >&5
36127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36128   (exit $ac_status); } &&
36129          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36131   (eval $ac_try) 2>&5
36132   ac_status=$?
36133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134   (exit $ac_status); }; } &&
36135          { ac_try='test -s conftest.$ac_objext'
36136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36137   (eval $ac_try) 2>&5
36138   ac_status=$?
36139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140   (exit $ac_status); }; }; then
36141   wx_cv_type_statvfs_t="struct statvfs"
36142 else
36143   echo "$as_me: failed program was:" >&5
36144 sed 's/^/| /' conftest.$ac_ext >&5
36145
36146 wx_cv_type_statvfs_t="unknown"
36147
36148 fi
36149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36150
36151
36152 fi
36153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36154
36155 fi
36156 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36157 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36158
36159         if test "$wx_cv_type_statvfs_t" != "unknown"; then
36160             cat >>confdefs.h <<\_ACEOF
36161 #define HAVE_STATVFS 1
36162 _ACEOF
36163
36164         fi
36165     else
36166                 wx_cv_type_statvfs_t="unknown"
36167     fi
36168 fi
36169
36170 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36171     cat >>confdefs.h <<_ACEOF
36172 #define WX_STATFS_T $wx_cv_type_statvfs_t
36173 _ACEOF
36174
36175 else
36176     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36177 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36178 fi
36179
36180 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36181
36182
36183 for ac_func in fcntl flock
36184 do
36185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36186 echo "$as_me:$LINENO: checking for $ac_func" >&5
36187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36188 if eval "test \"\${$as_ac_var+set}\" = set"; then
36189   echo $ECHO_N "(cached) $ECHO_C" >&6
36190 else
36191   cat >conftest.$ac_ext <<_ACEOF
36192 /* confdefs.h.  */
36193 _ACEOF
36194 cat confdefs.h >>conftest.$ac_ext
36195 cat >>conftest.$ac_ext <<_ACEOF
36196 /* end confdefs.h.  */
36197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36199 #define $ac_func innocuous_$ac_func
36200
36201 /* System header to define __stub macros and hopefully few prototypes,
36202     which can conflict with char $ac_func (); below.
36203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36204     <limits.h> exists even on freestanding compilers.  */
36205
36206 #ifdef __STDC__
36207 # include <limits.h>
36208 #else
36209 # include <assert.h>
36210 #endif
36211
36212 #undef $ac_func
36213
36214 /* Override any gcc2 internal prototype to avoid an error.  */
36215 #ifdef __cplusplus
36216 extern "C"
36217 {
36218 #endif
36219 /* We use char because int might match the return type of a gcc2
36220    builtin and then its argument prototype would still apply.  */
36221 char $ac_func ();
36222 /* The GNU C library defines this for functions which it implements
36223     to always fail with ENOSYS.  Some functions are actually named
36224     something starting with __ and the normal name is an alias.  */
36225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36226 choke me
36227 #else
36228 char (*f) () = $ac_func;
36229 #endif
36230 #ifdef __cplusplus
36231 }
36232 #endif
36233
36234 int
36235 main ()
36236 {
36237 return f != $ac_func;
36238   ;
36239   return 0;
36240 }
36241 _ACEOF
36242 rm -f conftest.$ac_objext conftest$ac_exeext
36243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36244   (eval $ac_link) 2>conftest.er1
36245   ac_status=$?
36246   grep -v '^ *+' conftest.er1 >conftest.err
36247   rm -f conftest.er1
36248   cat conftest.err >&5
36249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250   (exit $ac_status); } &&
36251          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36253   (eval $ac_try) 2>&5
36254   ac_status=$?
36255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256   (exit $ac_status); }; } &&
36257          { ac_try='test -s conftest$ac_exeext'
36258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36259   (eval $ac_try) 2>&5
36260   ac_status=$?
36261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262   (exit $ac_status); }; }; then
36263   eval "$as_ac_var=yes"
36264 else
36265   echo "$as_me: failed program was:" >&5
36266 sed 's/^/| /' conftest.$ac_ext >&5
36267
36268 eval "$as_ac_var=no"
36269 fi
36270 rm -f conftest.err conftest.$ac_objext \
36271       conftest$ac_exeext conftest.$ac_ext
36272 fi
36273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36275 if test `eval echo '${'$as_ac_var'}'` = yes; then
36276   cat >>confdefs.h <<_ACEOF
36277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36278 _ACEOF
36279  break
36280 fi
36281 done
36282
36283
36284     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36285         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36286 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36287         wxUSE_SNGLINST_CHECKER=no
36288     fi
36289 fi
36290
36291
36292 for ac_func in timegm
36293 do
36294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36295 echo "$as_me:$LINENO: checking for $ac_func" >&5
36296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36297 if eval "test \"\${$as_ac_var+set}\" = set"; then
36298   echo $ECHO_N "(cached) $ECHO_C" >&6
36299 else
36300   cat >conftest.$ac_ext <<_ACEOF
36301 /* confdefs.h.  */
36302 _ACEOF
36303 cat confdefs.h >>conftest.$ac_ext
36304 cat >>conftest.$ac_ext <<_ACEOF
36305 /* end confdefs.h.  */
36306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36308 #define $ac_func innocuous_$ac_func
36309
36310 /* System header to define __stub macros and hopefully few prototypes,
36311     which can conflict with char $ac_func (); below.
36312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36313     <limits.h> exists even on freestanding compilers.  */
36314
36315 #ifdef __STDC__
36316 # include <limits.h>
36317 #else
36318 # include <assert.h>
36319 #endif
36320
36321 #undef $ac_func
36322
36323 /* Override any gcc2 internal prototype to avoid an error.  */
36324 #ifdef __cplusplus
36325 extern "C"
36326 {
36327 #endif
36328 /* We use char because int might match the return type of a gcc2
36329    builtin and then its argument prototype would still apply.  */
36330 char $ac_func ();
36331 /* The GNU C library defines this for functions which it implements
36332     to always fail with ENOSYS.  Some functions are actually named
36333     something starting with __ and the normal name is an alias.  */
36334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36335 choke me
36336 #else
36337 char (*f) () = $ac_func;
36338 #endif
36339 #ifdef __cplusplus
36340 }
36341 #endif
36342
36343 int
36344 main ()
36345 {
36346 return f != $ac_func;
36347   ;
36348   return 0;
36349 }
36350 _ACEOF
36351 rm -f conftest.$ac_objext conftest$ac_exeext
36352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36353   (eval $ac_link) 2>conftest.er1
36354   ac_status=$?
36355   grep -v '^ *+' conftest.er1 >conftest.err
36356   rm -f conftest.er1
36357   cat conftest.err >&5
36358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359   (exit $ac_status); } &&
36360          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362   (eval $ac_try) 2>&5
36363   ac_status=$?
36364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365   (exit $ac_status); }; } &&
36366          { ac_try='test -s conftest$ac_exeext'
36367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36368   (eval $ac_try) 2>&5
36369   ac_status=$?
36370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371   (exit $ac_status); }; }; then
36372   eval "$as_ac_var=yes"
36373 else
36374   echo "$as_me: failed program was:" >&5
36375 sed 's/^/| /' conftest.$ac_ext >&5
36376
36377 eval "$as_ac_var=no"
36378 fi
36379 rm -f conftest.err conftest.$ac_objext \
36380       conftest$ac_exeext conftest.$ac_ext
36381 fi
36382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36384 if test `eval echo '${'$as_ac_var'}'` = yes; then
36385   cat >>confdefs.h <<_ACEOF
36386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36387 _ACEOF
36388
36389 fi
36390 done
36391
36392
36393
36394
36395 for ac_func in putenv setenv
36396 do
36397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36398 echo "$as_me:$LINENO: checking for $ac_func" >&5
36399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36400 if eval "test \"\${$as_ac_var+set}\" = set"; then
36401   echo $ECHO_N "(cached) $ECHO_C" >&6
36402 else
36403   cat >conftest.$ac_ext <<_ACEOF
36404 /* confdefs.h.  */
36405 _ACEOF
36406 cat confdefs.h >>conftest.$ac_ext
36407 cat >>conftest.$ac_ext <<_ACEOF
36408 /* end confdefs.h.  */
36409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36411 #define $ac_func innocuous_$ac_func
36412
36413 /* System header to define __stub macros and hopefully few prototypes,
36414     which can conflict with char $ac_func (); below.
36415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36416     <limits.h> exists even on freestanding compilers.  */
36417
36418 #ifdef __STDC__
36419 # include <limits.h>
36420 #else
36421 # include <assert.h>
36422 #endif
36423
36424 #undef $ac_func
36425
36426 /* Override any gcc2 internal prototype to avoid an error.  */
36427 #ifdef __cplusplus
36428 extern "C"
36429 {
36430 #endif
36431 /* We use char because int might match the return type of a gcc2
36432    builtin and then its argument prototype would still apply.  */
36433 char $ac_func ();
36434 /* The GNU C library defines this for functions which it implements
36435     to always fail with ENOSYS.  Some functions are actually named
36436     something starting with __ and the normal name is an alias.  */
36437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36438 choke me
36439 #else
36440 char (*f) () = $ac_func;
36441 #endif
36442 #ifdef __cplusplus
36443 }
36444 #endif
36445
36446 int
36447 main ()
36448 {
36449 return f != $ac_func;
36450   ;
36451   return 0;
36452 }
36453 _ACEOF
36454 rm -f conftest.$ac_objext conftest$ac_exeext
36455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36456   (eval $ac_link) 2>conftest.er1
36457   ac_status=$?
36458   grep -v '^ *+' conftest.er1 >conftest.err
36459   rm -f conftest.er1
36460   cat conftest.err >&5
36461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462   (exit $ac_status); } &&
36463          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36465   (eval $ac_try) 2>&5
36466   ac_status=$?
36467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468   (exit $ac_status); }; } &&
36469          { ac_try='test -s conftest$ac_exeext'
36470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36471   (eval $ac_try) 2>&5
36472   ac_status=$?
36473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36474   (exit $ac_status); }; }; then
36475   eval "$as_ac_var=yes"
36476 else
36477   echo "$as_me: failed program was:" >&5
36478 sed 's/^/| /' conftest.$ac_ext >&5
36479
36480 eval "$as_ac_var=no"
36481 fi
36482 rm -f conftest.err conftest.$ac_objext \
36483       conftest$ac_exeext conftest.$ac_ext
36484 fi
36485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36487 if test `eval echo '${'$as_ac_var'}'` = yes; then
36488   cat >>confdefs.h <<_ACEOF
36489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36490 _ACEOF
36491  break
36492 fi
36493 done
36494
36495
36496 HAVE_SOME_SLEEP_FUNC=0
36497 if test "$USE_BEOS" = 1; then
36498             cat >>confdefs.h <<\_ACEOF
36499 #define HAVE_SLEEP 1
36500 _ACEOF
36501
36502     HAVE_SOME_SLEEP_FUNC=1
36503 fi
36504
36505 if test "$USE_DARWIN" = 1; then
36506             cat >>confdefs.h <<\_ACEOF
36507 #define HAVE_USLEEP 1
36508 _ACEOF
36509
36510     HAVE_SOME_SLEEP_FUNC=1
36511 fi
36512
36513 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36514         POSIX4_LINK=
36515
36516 for ac_func in nanosleep
36517 do
36518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36519 echo "$as_me:$LINENO: checking for $ac_func" >&5
36520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36521 if eval "test \"\${$as_ac_var+set}\" = set"; then
36522   echo $ECHO_N "(cached) $ECHO_C" >&6
36523 else
36524   cat >conftest.$ac_ext <<_ACEOF
36525 /* confdefs.h.  */
36526 _ACEOF
36527 cat confdefs.h >>conftest.$ac_ext
36528 cat >>conftest.$ac_ext <<_ACEOF
36529 /* end confdefs.h.  */
36530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36532 #define $ac_func innocuous_$ac_func
36533
36534 /* System header to define __stub macros and hopefully few prototypes,
36535     which can conflict with char $ac_func (); below.
36536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36537     <limits.h> exists even on freestanding compilers.  */
36538
36539 #ifdef __STDC__
36540 # include <limits.h>
36541 #else
36542 # include <assert.h>
36543 #endif
36544
36545 #undef $ac_func
36546
36547 /* Override any gcc2 internal prototype to avoid an error.  */
36548 #ifdef __cplusplus
36549 extern "C"
36550 {
36551 #endif
36552 /* We use char because int might match the return type of a gcc2
36553    builtin and then its argument prototype would still apply.  */
36554 char $ac_func ();
36555 /* The GNU C library defines this for functions which it implements
36556     to always fail with ENOSYS.  Some functions are actually named
36557     something starting with __ and the normal name is an alias.  */
36558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36559 choke me
36560 #else
36561 char (*f) () = $ac_func;
36562 #endif
36563 #ifdef __cplusplus
36564 }
36565 #endif
36566
36567 int
36568 main ()
36569 {
36570 return f != $ac_func;
36571   ;
36572   return 0;
36573 }
36574 _ACEOF
36575 rm -f conftest.$ac_objext conftest$ac_exeext
36576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36577   (eval $ac_link) 2>conftest.er1
36578   ac_status=$?
36579   grep -v '^ *+' conftest.er1 >conftest.err
36580   rm -f conftest.er1
36581   cat conftest.err >&5
36582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583   (exit $ac_status); } &&
36584          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36586   (eval $ac_try) 2>&5
36587   ac_status=$?
36588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589   (exit $ac_status); }; } &&
36590          { ac_try='test -s conftest$ac_exeext'
36591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36592   (eval $ac_try) 2>&5
36593   ac_status=$?
36594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595   (exit $ac_status); }; }; then
36596   eval "$as_ac_var=yes"
36597 else
36598   echo "$as_me: failed program was:" >&5
36599 sed 's/^/| /' conftest.$ac_ext >&5
36600
36601 eval "$as_ac_var=no"
36602 fi
36603 rm -f conftest.err conftest.$ac_objext \
36604       conftest$ac_exeext conftest.$ac_ext
36605 fi
36606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36608 if test `eval echo '${'$as_ac_var'}'` = yes; then
36609   cat >>confdefs.h <<_ACEOF
36610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36611 _ACEOF
36612  cat >>confdefs.h <<\_ACEOF
36613 #define HAVE_NANOSLEEP 1
36614 _ACEOF
36615
36616 else
36617
36618             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36619 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36620 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36621   echo $ECHO_N "(cached) $ECHO_C" >&6
36622 else
36623   ac_check_lib_save_LIBS=$LIBS
36624 LIBS="-lposix4  $LIBS"
36625 cat >conftest.$ac_ext <<_ACEOF
36626 /* confdefs.h.  */
36627 _ACEOF
36628 cat confdefs.h >>conftest.$ac_ext
36629 cat >>conftest.$ac_ext <<_ACEOF
36630 /* end confdefs.h.  */
36631
36632 /* Override any gcc2 internal prototype to avoid an error.  */
36633 #ifdef __cplusplus
36634 extern "C"
36635 #endif
36636 /* We use char because int might match the return type of a gcc2
36637    builtin and then its argument prototype would still apply.  */
36638 char nanosleep ();
36639 int
36640 main ()
36641 {
36642 nanosleep ();
36643   ;
36644   return 0;
36645 }
36646 _ACEOF
36647 rm -f conftest.$ac_objext conftest$ac_exeext
36648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36649   (eval $ac_link) 2>conftest.er1
36650   ac_status=$?
36651   grep -v '^ *+' conftest.er1 >conftest.err
36652   rm -f conftest.er1
36653   cat conftest.err >&5
36654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36655   (exit $ac_status); } &&
36656          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36658   (eval $ac_try) 2>&5
36659   ac_status=$?
36660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661   (exit $ac_status); }; } &&
36662          { ac_try='test -s conftest$ac_exeext'
36663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664   (eval $ac_try) 2>&5
36665   ac_status=$?
36666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667   (exit $ac_status); }; }; then
36668   ac_cv_lib_posix4_nanosleep=yes
36669 else
36670   echo "$as_me: failed program was:" >&5
36671 sed 's/^/| /' conftest.$ac_ext >&5
36672
36673 ac_cv_lib_posix4_nanosleep=no
36674 fi
36675 rm -f conftest.err conftest.$ac_objext \
36676       conftest$ac_exeext conftest.$ac_ext
36677 LIBS=$ac_check_lib_save_LIBS
36678 fi
36679 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36680 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36681 if test $ac_cv_lib_posix4_nanosleep = yes; then
36682
36683                     cat >>confdefs.h <<\_ACEOF
36684 #define HAVE_NANOSLEEP 1
36685 _ACEOF
36686
36687                     POSIX4_LINK=" -lposix4"
36688
36689 else
36690
36691
36692 for ac_func in usleep
36693 do
36694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36695 echo "$as_me:$LINENO: checking for $ac_func" >&5
36696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36697 if eval "test \"\${$as_ac_var+set}\" = set"; then
36698   echo $ECHO_N "(cached) $ECHO_C" >&6
36699 else
36700   cat >conftest.$ac_ext <<_ACEOF
36701 /* confdefs.h.  */
36702 _ACEOF
36703 cat confdefs.h >>conftest.$ac_ext
36704 cat >>conftest.$ac_ext <<_ACEOF
36705 /* end confdefs.h.  */
36706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36708 #define $ac_func innocuous_$ac_func
36709
36710 /* System header to define __stub macros and hopefully few prototypes,
36711     which can conflict with char $ac_func (); below.
36712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36713     <limits.h> exists even on freestanding compilers.  */
36714
36715 #ifdef __STDC__
36716 # include <limits.h>
36717 #else
36718 # include <assert.h>
36719 #endif
36720
36721 #undef $ac_func
36722
36723 /* Override any gcc2 internal prototype to avoid an error.  */
36724 #ifdef __cplusplus
36725 extern "C"
36726 {
36727 #endif
36728 /* We use char because int might match the return type of a gcc2
36729    builtin and then its argument prototype would still apply.  */
36730 char $ac_func ();
36731 /* The GNU C library defines this for functions which it implements
36732     to always fail with ENOSYS.  Some functions are actually named
36733     something starting with __ and the normal name is an alias.  */
36734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36735 choke me
36736 #else
36737 char (*f) () = $ac_func;
36738 #endif
36739 #ifdef __cplusplus
36740 }
36741 #endif
36742
36743 int
36744 main ()
36745 {
36746 return f != $ac_func;
36747   ;
36748   return 0;
36749 }
36750 _ACEOF
36751 rm -f conftest.$ac_objext conftest$ac_exeext
36752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36753   (eval $ac_link) 2>conftest.er1
36754   ac_status=$?
36755   grep -v '^ *+' conftest.er1 >conftest.err
36756   rm -f conftest.er1
36757   cat conftest.err >&5
36758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759   (exit $ac_status); } &&
36760          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36762   (eval $ac_try) 2>&5
36763   ac_status=$?
36764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765   (exit $ac_status); }; } &&
36766          { ac_try='test -s conftest$ac_exeext'
36767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36768   (eval $ac_try) 2>&5
36769   ac_status=$?
36770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771   (exit $ac_status); }; }; then
36772   eval "$as_ac_var=yes"
36773 else
36774   echo "$as_me: failed program was:" >&5
36775 sed 's/^/| /' conftest.$ac_ext >&5
36776
36777 eval "$as_ac_var=no"
36778 fi
36779 rm -f conftest.err conftest.$ac_objext \
36780       conftest$ac_exeext conftest.$ac_ext
36781 fi
36782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36784 if test `eval echo '${'$as_ac_var'}'` = yes; then
36785   cat >>confdefs.h <<_ACEOF
36786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36787 _ACEOF
36788  cat >>confdefs.h <<\_ACEOF
36789 #define HAVE_USLEEP 1
36790 _ACEOF
36791
36792 else
36793   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36794 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36795
36796 fi
36797 done
36798
36799
36800
36801 fi
36802
36803
36804
36805 fi
36806 done
36807
36808 fi
36809
36810
36811
36812 for ac_func in uname gethostname
36813 do
36814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36815 echo "$as_me:$LINENO: checking for $ac_func" >&5
36816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36817 if eval "test \"\${$as_ac_var+set}\" = set"; then
36818   echo $ECHO_N "(cached) $ECHO_C" >&6
36819 else
36820   cat >conftest.$ac_ext <<_ACEOF
36821 /* confdefs.h.  */
36822 _ACEOF
36823 cat confdefs.h >>conftest.$ac_ext
36824 cat >>conftest.$ac_ext <<_ACEOF
36825 /* end confdefs.h.  */
36826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36828 #define $ac_func innocuous_$ac_func
36829
36830 /* System header to define __stub macros and hopefully few prototypes,
36831     which can conflict with char $ac_func (); below.
36832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36833     <limits.h> exists even on freestanding compilers.  */
36834
36835 #ifdef __STDC__
36836 # include <limits.h>
36837 #else
36838 # include <assert.h>
36839 #endif
36840
36841 #undef $ac_func
36842
36843 /* Override any gcc2 internal prototype to avoid an error.  */
36844 #ifdef __cplusplus
36845 extern "C"
36846 {
36847 #endif
36848 /* We use char because int might match the return type of a gcc2
36849    builtin and then its argument prototype would still apply.  */
36850 char $ac_func ();
36851 /* The GNU C library defines this for functions which it implements
36852     to always fail with ENOSYS.  Some functions are actually named
36853     something starting with __ and the normal name is an alias.  */
36854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36855 choke me
36856 #else
36857 char (*f) () = $ac_func;
36858 #endif
36859 #ifdef __cplusplus
36860 }
36861 #endif
36862
36863 int
36864 main ()
36865 {
36866 return f != $ac_func;
36867   ;
36868   return 0;
36869 }
36870 _ACEOF
36871 rm -f conftest.$ac_objext conftest$ac_exeext
36872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36873   (eval $ac_link) 2>conftest.er1
36874   ac_status=$?
36875   grep -v '^ *+' conftest.er1 >conftest.err
36876   rm -f conftest.er1
36877   cat conftest.err >&5
36878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879   (exit $ac_status); } &&
36880          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36882   (eval $ac_try) 2>&5
36883   ac_status=$?
36884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885   (exit $ac_status); }; } &&
36886          { ac_try='test -s conftest$ac_exeext'
36887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36888   (eval $ac_try) 2>&5
36889   ac_status=$?
36890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891   (exit $ac_status); }; }; then
36892   eval "$as_ac_var=yes"
36893 else
36894   echo "$as_me: failed program was:" >&5
36895 sed 's/^/| /' conftest.$ac_ext >&5
36896
36897 eval "$as_ac_var=no"
36898 fi
36899 rm -f conftest.err conftest.$ac_objext \
36900       conftest$ac_exeext conftest.$ac_ext
36901 fi
36902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36904 if test `eval echo '${'$as_ac_var'}'` = yes; then
36905   cat >>confdefs.h <<_ACEOF
36906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36907 _ACEOF
36908  break
36909 fi
36910 done
36911
36912
36913 SAVE_CPPFLAGS="$CPPFLAGS"
36914 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
36915 echo "$as_me:$LINENO: checking whether strtok_r is declared" >&5
36916 echo $ECHO_N "checking whether strtok_r is declared... $ECHO_C" >&6
36917 if test "${ac_cv_have_decl_strtok_r+set}" = set; then
36918   echo $ECHO_N "(cached) $ECHO_C" >&6
36919 else
36920   cat >conftest.$ac_ext <<_ACEOF
36921 /* confdefs.h.  */
36922 _ACEOF
36923 cat confdefs.h >>conftest.$ac_ext
36924 cat >>conftest.$ac_ext <<_ACEOF
36925 /* end confdefs.h.  */
36926 $ac_includes_default
36927 int
36928 main ()
36929 {
36930 #ifndef strtok_r
36931   char *p = (char *) strtok_r;
36932 #endif
36933
36934   ;
36935   return 0;
36936 }
36937 _ACEOF
36938 rm -f conftest.$ac_objext
36939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36940   (eval $ac_compile) 2>conftest.er1
36941   ac_status=$?
36942   grep -v '^ *+' conftest.er1 >conftest.err
36943   rm -f conftest.er1
36944   cat conftest.err >&5
36945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946   (exit $ac_status); } &&
36947          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36949   (eval $ac_try) 2>&5
36950   ac_status=$?
36951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952   (exit $ac_status); }; } &&
36953          { ac_try='test -s conftest.$ac_objext'
36954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36955   (eval $ac_try) 2>&5
36956   ac_status=$?
36957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36958   (exit $ac_status); }; }; then
36959   ac_cv_have_decl_strtok_r=yes
36960 else
36961   echo "$as_me: failed program was:" >&5
36962 sed 's/^/| /' conftest.$ac_ext >&5
36963
36964 ac_cv_have_decl_strtok_r=no
36965 fi
36966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36967 fi
36968 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtok_r" >&5
36969 echo "${ECHO_T}$ac_cv_have_decl_strtok_r" >&6
36970 if test $ac_cv_have_decl_strtok_r = yes; then
36971
36972 cat >>confdefs.h <<_ACEOF
36973 #define HAVE_DECL_STRTOK_R 1
36974 _ACEOF
36975
36976 cat >>confdefs.h <<\_ACEOF
36977 #define HAVE_STRTOK_R 1
36978 _ACEOF
36979
36980 else
36981   cat >>confdefs.h <<_ACEOF
36982 #define HAVE_DECL_STRTOK_R 0
36983 _ACEOF
36984
36985
36986 fi
36987
36988
36989 CPPFLAGS="$SAVE_CPPFLAGS"
36990
36991 INET_LINK=
36992
36993 for ac_func in inet_addr
36994 do
36995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36996 echo "$as_me:$LINENO: checking for $ac_func" >&5
36997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36998 if eval "test \"\${$as_ac_var+set}\" = set"; then
36999   echo $ECHO_N "(cached) $ECHO_C" >&6
37000 else
37001   cat >conftest.$ac_ext <<_ACEOF
37002 /* confdefs.h.  */
37003 _ACEOF
37004 cat confdefs.h >>conftest.$ac_ext
37005 cat >>conftest.$ac_ext <<_ACEOF
37006 /* end confdefs.h.  */
37007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37009 #define $ac_func innocuous_$ac_func
37010
37011 /* System header to define __stub macros and hopefully few prototypes,
37012     which can conflict with char $ac_func (); below.
37013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37014     <limits.h> exists even on freestanding compilers.  */
37015
37016 #ifdef __STDC__
37017 # include <limits.h>
37018 #else
37019 # include <assert.h>
37020 #endif
37021
37022 #undef $ac_func
37023
37024 /* Override any gcc2 internal prototype to avoid an error.  */
37025 #ifdef __cplusplus
37026 extern "C"
37027 {
37028 #endif
37029 /* We use char because int might match the return type of a gcc2
37030    builtin and then its argument prototype would still apply.  */
37031 char $ac_func ();
37032 /* The GNU C library defines this for functions which it implements
37033     to always fail with ENOSYS.  Some functions are actually named
37034     something starting with __ and the normal name is an alias.  */
37035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37036 choke me
37037 #else
37038 char (*f) () = $ac_func;
37039 #endif
37040 #ifdef __cplusplus
37041 }
37042 #endif
37043
37044 int
37045 main ()
37046 {
37047 return f != $ac_func;
37048   ;
37049   return 0;
37050 }
37051 _ACEOF
37052 rm -f conftest.$ac_objext conftest$ac_exeext
37053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37054   (eval $ac_link) 2>conftest.er1
37055   ac_status=$?
37056   grep -v '^ *+' conftest.er1 >conftest.err
37057   rm -f conftest.er1
37058   cat conftest.err >&5
37059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060   (exit $ac_status); } &&
37061          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37063   (eval $ac_try) 2>&5
37064   ac_status=$?
37065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066   (exit $ac_status); }; } &&
37067          { ac_try='test -s conftest$ac_exeext'
37068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37069   (eval $ac_try) 2>&5
37070   ac_status=$?
37071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37072   (exit $ac_status); }; }; then
37073   eval "$as_ac_var=yes"
37074 else
37075   echo "$as_me: failed program was:" >&5
37076 sed 's/^/| /' conftest.$ac_ext >&5
37077
37078 eval "$as_ac_var=no"
37079 fi
37080 rm -f conftest.err conftest.$ac_objext \
37081       conftest$ac_exeext conftest.$ac_ext
37082 fi
37083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37085 if test `eval echo '${'$as_ac_var'}'` = yes; then
37086   cat >>confdefs.h <<_ACEOF
37087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37088 _ACEOF
37089  cat >>confdefs.h <<\_ACEOF
37090 #define HAVE_INET_ADDR 1
37091 _ACEOF
37092
37093 else
37094
37095         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37096 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37097 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37098   echo $ECHO_N "(cached) $ECHO_C" >&6
37099 else
37100   ac_check_lib_save_LIBS=$LIBS
37101 LIBS="-lnsl  $LIBS"
37102 cat >conftest.$ac_ext <<_ACEOF
37103 /* confdefs.h.  */
37104 _ACEOF
37105 cat confdefs.h >>conftest.$ac_ext
37106 cat >>conftest.$ac_ext <<_ACEOF
37107 /* end confdefs.h.  */
37108
37109 /* Override any gcc2 internal prototype to avoid an error.  */
37110 #ifdef __cplusplus
37111 extern "C"
37112 #endif
37113 /* We use char because int might match the return type of a gcc2
37114    builtin and then its argument prototype would still apply.  */
37115 char inet_addr ();
37116 int
37117 main ()
37118 {
37119 inet_addr ();
37120   ;
37121   return 0;
37122 }
37123 _ACEOF
37124 rm -f conftest.$ac_objext conftest$ac_exeext
37125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37126   (eval $ac_link) 2>conftest.er1
37127   ac_status=$?
37128   grep -v '^ *+' conftest.er1 >conftest.err
37129   rm -f conftest.er1
37130   cat conftest.err >&5
37131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132   (exit $ac_status); } &&
37133          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37135   (eval $ac_try) 2>&5
37136   ac_status=$?
37137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138   (exit $ac_status); }; } &&
37139          { ac_try='test -s conftest$ac_exeext'
37140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37141   (eval $ac_try) 2>&5
37142   ac_status=$?
37143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37144   (exit $ac_status); }; }; then
37145   ac_cv_lib_nsl_inet_addr=yes
37146 else
37147   echo "$as_me: failed program was:" >&5
37148 sed 's/^/| /' conftest.$ac_ext >&5
37149
37150 ac_cv_lib_nsl_inet_addr=no
37151 fi
37152 rm -f conftest.err conftest.$ac_objext \
37153       conftest$ac_exeext conftest.$ac_ext
37154 LIBS=$ac_check_lib_save_LIBS
37155 fi
37156 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37157 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37158 if test $ac_cv_lib_nsl_inet_addr = yes; then
37159   INET_LINK="nsl"
37160 else
37161
37162                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37163 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37164 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37165   echo $ECHO_N "(cached) $ECHO_C" >&6
37166 else
37167   ac_check_lib_save_LIBS=$LIBS
37168 LIBS="-lresolv  $LIBS"
37169 cat >conftest.$ac_ext <<_ACEOF
37170 /* confdefs.h.  */
37171 _ACEOF
37172 cat confdefs.h >>conftest.$ac_ext
37173 cat >>conftest.$ac_ext <<_ACEOF
37174 /* end confdefs.h.  */
37175
37176 /* Override any gcc2 internal prototype to avoid an error.  */
37177 #ifdef __cplusplus
37178 extern "C"
37179 #endif
37180 /* We use char because int might match the return type of a gcc2
37181    builtin and then its argument prototype would still apply.  */
37182 char inet_addr ();
37183 int
37184 main ()
37185 {
37186 inet_addr ();
37187   ;
37188   return 0;
37189 }
37190 _ACEOF
37191 rm -f conftest.$ac_objext conftest$ac_exeext
37192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37193   (eval $ac_link) 2>conftest.er1
37194   ac_status=$?
37195   grep -v '^ *+' conftest.er1 >conftest.err
37196   rm -f conftest.er1
37197   cat conftest.err >&5
37198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37199   (exit $ac_status); } &&
37200          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202   (eval $ac_try) 2>&5
37203   ac_status=$?
37204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205   (exit $ac_status); }; } &&
37206          { ac_try='test -s conftest$ac_exeext'
37207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37208   (eval $ac_try) 2>&5
37209   ac_status=$?
37210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211   (exit $ac_status); }; }; then
37212   ac_cv_lib_resolv_inet_addr=yes
37213 else
37214   echo "$as_me: failed program was:" >&5
37215 sed 's/^/| /' conftest.$ac_ext >&5
37216
37217 ac_cv_lib_resolv_inet_addr=no
37218 fi
37219 rm -f conftest.err conftest.$ac_objext \
37220       conftest$ac_exeext conftest.$ac_ext
37221 LIBS=$ac_check_lib_save_LIBS
37222 fi
37223 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37224 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37225 if test $ac_cv_lib_resolv_inet_addr = yes; then
37226   INET_LINK="resolv"
37227 else
37228
37229                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37230 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37231 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37232   echo $ECHO_N "(cached) $ECHO_C" >&6
37233 else
37234   ac_check_lib_save_LIBS=$LIBS
37235 LIBS="-lsocket  $LIBS"
37236 cat >conftest.$ac_ext <<_ACEOF
37237 /* confdefs.h.  */
37238 _ACEOF
37239 cat confdefs.h >>conftest.$ac_ext
37240 cat >>conftest.$ac_ext <<_ACEOF
37241 /* end confdefs.h.  */
37242
37243 /* Override any gcc2 internal prototype to avoid an error.  */
37244 #ifdef __cplusplus
37245 extern "C"
37246 #endif
37247 /* We use char because int might match the return type of a gcc2
37248    builtin and then its argument prototype would still apply.  */
37249 char inet_addr ();
37250 int
37251 main ()
37252 {
37253 inet_addr ();
37254   ;
37255   return 0;
37256 }
37257 _ACEOF
37258 rm -f conftest.$ac_objext conftest$ac_exeext
37259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37260   (eval $ac_link) 2>conftest.er1
37261   ac_status=$?
37262   grep -v '^ *+' conftest.er1 >conftest.err
37263   rm -f conftest.er1
37264   cat conftest.err >&5
37265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266   (exit $ac_status); } &&
37267          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37269   (eval $ac_try) 2>&5
37270   ac_status=$?
37271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272   (exit $ac_status); }; } &&
37273          { ac_try='test -s conftest$ac_exeext'
37274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37275   (eval $ac_try) 2>&5
37276   ac_status=$?
37277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278   (exit $ac_status); }; }; then
37279   ac_cv_lib_socket_inet_addr=yes
37280 else
37281   echo "$as_me: failed program was:" >&5
37282 sed 's/^/| /' conftest.$ac_ext >&5
37283
37284 ac_cv_lib_socket_inet_addr=no
37285 fi
37286 rm -f conftest.err conftest.$ac_objext \
37287       conftest$ac_exeext conftest.$ac_ext
37288 LIBS=$ac_check_lib_save_LIBS
37289 fi
37290 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37291 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37292 if test $ac_cv_lib_socket_inet_addr = yes; then
37293   INET_LINK="socket"
37294
37295 fi
37296
37297
37298
37299 fi
37300
37301
37302
37303 fi
37304
37305
37306
37307 fi
37308 done
37309
37310
37311
37312 for ac_func in inet_aton
37313 do
37314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37315 echo "$as_me:$LINENO: checking for $ac_func" >&5
37316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37317 if eval "test \"\${$as_ac_var+set}\" = set"; then
37318   echo $ECHO_N "(cached) $ECHO_C" >&6
37319 else
37320   cat >conftest.$ac_ext <<_ACEOF
37321 /* confdefs.h.  */
37322 _ACEOF
37323 cat confdefs.h >>conftest.$ac_ext
37324 cat >>conftest.$ac_ext <<_ACEOF
37325 /* end confdefs.h.  */
37326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37328 #define $ac_func innocuous_$ac_func
37329
37330 /* System header to define __stub macros and hopefully few prototypes,
37331     which can conflict with char $ac_func (); below.
37332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37333     <limits.h> exists even on freestanding compilers.  */
37334
37335 #ifdef __STDC__
37336 # include <limits.h>
37337 #else
37338 # include <assert.h>
37339 #endif
37340
37341 #undef $ac_func
37342
37343 /* Override any gcc2 internal prototype to avoid an error.  */
37344 #ifdef __cplusplus
37345 extern "C"
37346 {
37347 #endif
37348 /* We use char because int might match the return type of a gcc2
37349    builtin and then its argument prototype would still apply.  */
37350 char $ac_func ();
37351 /* The GNU C library defines this for functions which it implements
37352     to always fail with ENOSYS.  Some functions are actually named
37353     something starting with __ and the normal name is an alias.  */
37354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37355 choke me
37356 #else
37357 char (*f) () = $ac_func;
37358 #endif
37359 #ifdef __cplusplus
37360 }
37361 #endif
37362
37363 int
37364 main ()
37365 {
37366 return f != $ac_func;
37367   ;
37368   return 0;
37369 }
37370 _ACEOF
37371 rm -f conftest.$ac_objext conftest$ac_exeext
37372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37373   (eval $ac_link) 2>conftest.er1
37374   ac_status=$?
37375   grep -v '^ *+' conftest.er1 >conftest.err
37376   rm -f conftest.er1
37377   cat conftest.err >&5
37378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37379   (exit $ac_status); } &&
37380          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37382   (eval $ac_try) 2>&5
37383   ac_status=$?
37384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37385   (exit $ac_status); }; } &&
37386          { ac_try='test -s conftest$ac_exeext'
37387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37388   (eval $ac_try) 2>&5
37389   ac_status=$?
37390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391   (exit $ac_status); }; }; then
37392   eval "$as_ac_var=yes"
37393 else
37394   echo "$as_me: failed program was:" >&5
37395 sed 's/^/| /' conftest.$ac_ext >&5
37396
37397 eval "$as_ac_var=no"
37398 fi
37399 rm -f conftest.err conftest.$ac_objext \
37400       conftest$ac_exeext conftest.$ac_ext
37401 fi
37402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37404 if test `eval echo '${'$as_ac_var'}'` = yes; then
37405   cat >>confdefs.h <<_ACEOF
37406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37407 _ACEOF
37408  cat >>confdefs.h <<\_ACEOF
37409 #define HAVE_INET_ATON 1
37410 _ACEOF
37411
37412 else
37413
37414                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37415 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37416 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37417 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37418   echo $ECHO_N "(cached) $ECHO_C" >&6
37419 else
37420   ac_check_lib_save_LIBS=$LIBS
37421 LIBS="-l$INET_LINK  $LIBS"
37422 cat >conftest.$ac_ext <<_ACEOF
37423 /* confdefs.h.  */
37424 _ACEOF
37425 cat confdefs.h >>conftest.$ac_ext
37426 cat >>conftest.$ac_ext <<_ACEOF
37427 /* end confdefs.h.  */
37428
37429 /* Override any gcc2 internal prototype to avoid an error.  */
37430 #ifdef __cplusplus
37431 extern "C"
37432 #endif
37433 /* We use char because int might match the return type of a gcc2
37434    builtin and then its argument prototype would still apply.  */
37435 char inet_aton ();
37436 int
37437 main ()
37438 {
37439 inet_aton ();
37440   ;
37441   return 0;
37442 }
37443 _ACEOF
37444 rm -f conftest.$ac_objext conftest$ac_exeext
37445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37446   (eval $ac_link) 2>conftest.er1
37447   ac_status=$?
37448   grep -v '^ *+' conftest.er1 >conftest.err
37449   rm -f conftest.er1
37450   cat conftest.err >&5
37451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37452   (exit $ac_status); } &&
37453          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37455   (eval $ac_try) 2>&5
37456   ac_status=$?
37457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458   (exit $ac_status); }; } &&
37459          { ac_try='test -s conftest$ac_exeext'
37460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37461   (eval $ac_try) 2>&5
37462   ac_status=$?
37463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464   (exit $ac_status); }; }; then
37465   eval "$as_ac_Lib=yes"
37466 else
37467   echo "$as_me: failed program was:" >&5
37468 sed 's/^/| /' conftest.$ac_ext >&5
37469
37470 eval "$as_ac_Lib=no"
37471 fi
37472 rm -f conftest.err conftest.$ac_objext \
37473       conftest$ac_exeext conftest.$ac_ext
37474 LIBS=$ac_check_lib_save_LIBS
37475 fi
37476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37477 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37478 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37479   cat >>confdefs.h <<\_ACEOF
37480 #define HAVE_INET_ATON 1
37481 _ACEOF
37482
37483 fi
37484
37485
37486 fi
37487 done
37488
37489
37490 if test "x$INET_LINK" != "x"; then
37491     cat >>confdefs.h <<\_ACEOF
37492 #define HAVE_INET_ADDR 1
37493 _ACEOF
37494
37495     INET_LINK=" -l$INET_LINK"
37496 fi
37497
37498 fi
37499
37500
37501
37502 EXTRALIBS_ESD=
37503 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37504 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37505 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37506   echo $ECHO_N "(cached) $ECHO_C" >&6
37507 else
37508   ac_check_lib_save_LIBS=$LIBS
37509 LIBS="-lesd  $LIBS"
37510 cat >conftest.$ac_ext <<_ACEOF
37511 /* confdefs.h.  */
37512 _ACEOF
37513 cat confdefs.h >>conftest.$ac_ext
37514 cat >>conftest.$ac_ext <<_ACEOF
37515 /* end confdefs.h.  */
37516
37517 /* Override any gcc2 internal prototype to avoid an error.  */
37518 #ifdef __cplusplus
37519 extern "C"
37520 #endif
37521 /* We use char because int might match the return type of a gcc2
37522    builtin and then its argument prototype would still apply.  */
37523 char esd_close ();
37524 int
37525 main ()
37526 {
37527 esd_close ();
37528   ;
37529   return 0;
37530 }
37531 _ACEOF
37532 rm -f conftest.$ac_objext conftest$ac_exeext
37533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37534   (eval $ac_link) 2>conftest.er1
37535   ac_status=$?
37536   grep -v '^ *+' conftest.er1 >conftest.err
37537   rm -f conftest.er1
37538   cat conftest.err >&5
37539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37540   (exit $ac_status); } &&
37541          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37543   (eval $ac_try) 2>&5
37544   ac_status=$?
37545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37546   (exit $ac_status); }; } &&
37547          { ac_try='test -s conftest$ac_exeext'
37548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37549   (eval $ac_try) 2>&5
37550   ac_status=$?
37551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552   (exit $ac_status); }; }; then
37553   ac_cv_lib_esd_esd_close=yes
37554 else
37555   echo "$as_me: failed program was:" >&5
37556 sed 's/^/| /' conftest.$ac_ext >&5
37557
37558 ac_cv_lib_esd_esd_close=no
37559 fi
37560 rm -f conftest.err conftest.$ac_objext \
37561       conftest$ac_exeext conftest.$ac_ext
37562 LIBS=$ac_check_lib_save_LIBS
37563 fi
37564 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37565 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37566 if test $ac_cv_lib_esd_esd_close = yes; then
37567
37568
37569 for ac_header in esd.h
37570 do
37571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37573   echo "$as_me:$LINENO: checking for $ac_header" >&5
37574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37576   echo $ECHO_N "(cached) $ECHO_C" >&6
37577 fi
37578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37580 else
37581   # Is the header compilable?
37582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37584 cat >conftest.$ac_ext <<_ACEOF
37585 /* confdefs.h.  */
37586 _ACEOF
37587 cat confdefs.h >>conftest.$ac_ext
37588 cat >>conftest.$ac_ext <<_ACEOF
37589 /* end confdefs.h.  */
37590 $ac_includes_default
37591 #include <$ac_header>
37592 _ACEOF
37593 rm -f conftest.$ac_objext
37594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37595   (eval $ac_compile) 2>conftest.er1
37596   ac_status=$?
37597   grep -v '^ *+' conftest.er1 >conftest.err
37598   rm -f conftest.er1
37599   cat conftest.err >&5
37600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601   (exit $ac_status); } &&
37602          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37604   (eval $ac_try) 2>&5
37605   ac_status=$?
37606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37607   (exit $ac_status); }; } &&
37608          { ac_try='test -s conftest.$ac_objext'
37609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37610   (eval $ac_try) 2>&5
37611   ac_status=$?
37612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613   (exit $ac_status); }; }; then
37614   ac_header_compiler=yes
37615 else
37616   echo "$as_me: failed program was:" >&5
37617 sed 's/^/| /' conftest.$ac_ext >&5
37618
37619 ac_header_compiler=no
37620 fi
37621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37623 echo "${ECHO_T}$ac_header_compiler" >&6
37624
37625 # Is the header present?
37626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37628 cat >conftest.$ac_ext <<_ACEOF
37629 /* confdefs.h.  */
37630 _ACEOF
37631 cat confdefs.h >>conftest.$ac_ext
37632 cat >>conftest.$ac_ext <<_ACEOF
37633 /* end confdefs.h.  */
37634 #include <$ac_header>
37635 _ACEOF
37636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37637   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37638   ac_status=$?
37639   grep -v '^ *+' conftest.er1 >conftest.err
37640   rm -f conftest.er1
37641   cat conftest.err >&5
37642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643   (exit $ac_status); } >/dev/null; then
37644   if test -s conftest.err; then
37645     ac_cpp_err=$ac_cxx_preproc_warn_flag
37646     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37647   else
37648     ac_cpp_err=
37649   fi
37650 else
37651   ac_cpp_err=yes
37652 fi
37653 if test -z "$ac_cpp_err"; then
37654   ac_header_preproc=yes
37655 else
37656   echo "$as_me: failed program was:" >&5
37657 sed 's/^/| /' conftest.$ac_ext >&5
37658
37659   ac_header_preproc=no
37660 fi
37661 rm -f conftest.err conftest.$ac_ext
37662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37663 echo "${ECHO_T}$ac_header_preproc" >&6
37664
37665 # So?  What about this header?
37666 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37667   yes:no: )
37668     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37672     ac_header_preproc=yes
37673     ;;
37674   no:yes:* )
37675     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37677     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37678 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37679     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37681     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37682 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37685     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37687     (
37688       cat <<\_ASBOX
37689 ## ----------------------------------------- ##
37690 ## Report this to wx-dev@lists.wxwidgets.org ##
37691 ## ----------------------------------------- ##
37692 _ASBOX
37693     ) |
37694       sed "s/^/$as_me: WARNING:     /" >&2
37695     ;;
37696 esac
37697 echo "$as_me:$LINENO: checking for $ac_header" >&5
37698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37700   echo $ECHO_N "(cached) $ECHO_C" >&6
37701 else
37702   eval "$as_ac_Header=\$ac_header_preproc"
37703 fi
37704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37706
37707 fi
37708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37709   cat >>confdefs.h <<_ACEOF
37710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37711 _ACEOF
37712
37713     EXTRALIBS_ESD="-lesd"
37714
37715 fi
37716
37717 done
37718
37719
37720 fi
37721
37722
37723
37724 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37725 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37726 cat >conftest.$ac_ext <<_ACEOF
37727 /* confdefs.h.  */
37728 _ACEOF
37729 cat confdefs.h >>conftest.$ac_ext
37730 cat >>conftest.$ac_ext <<_ACEOF
37731 /* end confdefs.h.  */
37732 #ifdef __linux__
37733                 #include <linux/cdrom.h>
37734                 #else
37735                 /* For Solaris */
37736                 #include <sys/cdio.h>
37737                 #endif
37738
37739 int
37740 main ()
37741 {
37742 struct cdrom_tocentry entry, old_entry;
37743   ;
37744   return 0;
37745 }
37746 _ACEOF
37747 rm -f conftest.$ac_objext
37748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37749   (eval $ac_compile) 2>conftest.er1
37750   ac_status=$?
37751   grep -v '^ *+' conftest.er1 >conftest.err
37752   rm -f conftest.er1
37753   cat conftest.err >&5
37754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37755   (exit $ac_status); } &&
37756          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37758   (eval $ac_try) 2>&5
37759   ac_status=$?
37760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37761   (exit $ac_status); }; } &&
37762          { ac_try='test -s conftest.$ac_objext'
37763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37764   (eval $ac_try) 2>&5
37765   ac_status=$?
37766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767   (exit $ac_status); }; }; then
37768   echo "$as_me:$LINENO: result: yes" >&5
37769 echo "${ECHO_T}yes" >&6
37770                 cat >>confdefs.h <<\_ACEOF
37771 #define HAVE_KNOWN_CDROM_INTERFACE 1
37772 _ACEOF
37773
37774 else
37775   echo "$as_me: failed program was:" >&5
37776 sed 's/^/| /' conftest.$ac_ext >&5
37777
37778 echo "$as_me:$LINENO: result: no" >&5
37779 echo "${ECHO_T}no" >&6
37780 fi
37781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37782
37783
37784 cat >confcache <<\_ACEOF
37785 # This file is a shell script that caches the results of configure
37786 # tests run on this system so they can be shared between configure
37787 # scripts and configure runs, see configure's option --config-cache.
37788 # It is not useful on other systems.  If it contains results you don't
37789 # want to keep, you may remove or edit it.
37790 #
37791 # config.status only pays attention to the cache file if you give it
37792 # the --recheck option to rerun configure.
37793 #
37794 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37795 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37796 # following values.
37797
37798 _ACEOF
37799
37800 # The following way of writing the cache mishandles newlines in values,
37801 # but we know of no workaround that is simple, portable, and efficient.
37802 # So, don't put newlines in cache variables' values.
37803 # Ultrix sh set writes to stderr and can't be redirected directly,
37804 # and sets the high bit in the cache file unless we assign to the vars.
37805 {
37806   (set) 2>&1 |
37807     case `(ac_space=' '; set | grep ac_space) 2>&1` in
37808     *ac_space=\ *)
37809       # `set' does not quote correctly, so add quotes (double-quote
37810       # substitution turns \\\\ into \\, and sed turns \\ into \).
37811       sed -n \
37812         "s/'/'\\\\''/g;
37813           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37814       ;;
37815     *)
37816       # `set' quotes correctly as required by POSIX, so do not add quotes.
37817       sed -n \
37818         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37819       ;;
37820     esac;
37821 } |
37822   sed '
37823      t clear
37824      : clear
37825      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37826      t end
37827      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37828      : end' >>confcache
37829 if diff $cache_file confcache >/dev/null 2>&1; then :; else
37830   if test -w $cache_file; then
37831     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37832     cat confcache >$cache_file
37833   else
37834     echo "not updating unwritable cache $cache_file"
37835   fi
37836 fi
37837 rm -f confcache
37838
37839
37840 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37841
37842
37843     THREADS_LINK=
37844     THREADS_CXXFLAGS=
37845
37846     if test "$wxUSE_THREADS" = "yes" ; then
37847         if test "$USE_BEOS" = 1; then
37848             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37849 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37850             wxUSE_THREADS="no"
37851         fi
37852     fi
37853
37854     if test "$wxUSE_THREADS" = "yes" ; then
37855
37856
37857                                 THREAD_OPTS="-pthread"
37858         case "${host}" in
37859           *-*-solaris2* | *-*-sunos4* )
37860                 if test "x$GCC" = "xyes"; then
37861                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
37862                 else
37863                     THREAD_OPTS="-mt $THREAD_OPTS"
37864                 fi
37865                 ;;
37866           *-*-freebsd*)
37867                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37868                 ;;
37869           *-*-darwin* | *-*-cygwin* )
37870                                                 THREAD_OPTS=""
37871                 ;;
37872           *-*-aix*)
37873                                 THREAD_OPTS="pthreads"
37874                 ;;
37875           *-hp-hpux* )
37876                 if test "x$GCC" = "xyes"; then
37877                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37878                         THREAD_OPTS=""
37879                 else
37880                                                             THREAD_OPTS="-mt"
37881                 fi
37882                 ;;
37883
37884           *-*-irix* )
37885                                                                 if test "x$GCC" = "xyes"; then
37886                     THREAD_OPTS=""
37887                 fi
37888                 ;;
37889
37890           *-*-*UnixWare*)
37891                                 if test "x$GCC" != "xyes"; then
37892                     THREAD_OPTS="-Ethread"
37893                 fi
37894                 ;;
37895         esac
37896
37897                                 THREAD_OPTS="$THREAD_OPTS pthread none"
37898
37899                 THREADS_OK=no
37900         for flag in $THREAD_OPTS; do
37901             case $flag in
37902                 none)
37903                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37904 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37905                     ;;
37906
37907                 -*)
37908                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37909 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
37910                     THREADS_CXXFLAGS="$flag"
37911                     ;;
37912
37913                 *)
37914                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37915 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37916                     THREADS_LINK="-l$flag"
37917                     ;;
37918               esac
37919
37920               save_LIBS="$LIBS"
37921               save_CXXFLAGS="$CXXFLAGS"
37922               LIBS="$THREADS_LINK $LIBS"
37923               CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
37924
37925               cat >conftest.$ac_ext <<_ACEOF
37926 /* confdefs.h.  */
37927 _ACEOF
37928 cat confdefs.h >>conftest.$ac_ext
37929 cat >>conftest.$ac_ext <<_ACEOF
37930 /* end confdefs.h.  */
37931 #include <pthread.h>
37932 int
37933 main ()
37934 {
37935 pthread_create(0,0,0,0);
37936   ;
37937   return 0;
37938 }
37939 _ACEOF
37940 rm -f conftest.$ac_objext conftest$ac_exeext
37941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37942   (eval $ac_link) 2>conftest.er1
37943   ac_status=$?
37944   grep -v '^ *+' conftest.er1 >conftest.err
37945   rm -f conftest.er1
37946   cat conftest.err >&5
37947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37948   (exit $ac_status); } &&
37949          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37951   (eval $ac_try) 2>&5
37952   ac_status=$?
37953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954   (exit $ac_status); }; } &&
37955          { ac_try='test -s conftest$ac_exeext'
37956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37957   (eval $ac_try) 2>&5
37958   ac_status=$?
37959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960   (exit $ac_status); }; }; then
37961   THREADS_OK=yes
37962 else
37963   echo "$as_me: failed program was:" >&5
37964 sed 's/^/| /' conftest.$ac_ext >&5
37965
37966 fi
37967 rm -f conftest.err conftest.$ac_objext \
37968       conftest$ac_exeext conftest.$ac_ext
37969
37970               LIBS="$save_LIBS"
37971               CXXFLAGS="$save_CXXFLAGS"
37972
37973               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37974 echo "${ECHO_T}$THREADS_OK" >&6
37975               if test "x$THREADS_OK" = "xyes"; then
37976                       break;
37977               fi
37978
37979               THREADS_LINK=""
37980               THREADS_CXXFLAGS=""
37981       done
37982
37983       if test "x$THREADS_OK" != "xyes"; then
37984           wxUSE_THREADS=no
37985           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37986 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37987       else
37988                               LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
37989           LIBS="$THREADS_LINK $LIBS"
37990
37991           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37992 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37993           flag=no
37994           case "${host}" in
37995             *-aix*)
37996                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37997                 flag="-D_THREAD_SAFE"
37998                 ;;
37999             *-freebsd*)
38000                 flag="-D_THREAD_SAFE"
38001                 ;;
38002             *-hp-hpux* )
38003                 flag="-D_REENTRANT"
38004                 if test "x$GCC" != "xyes"; then
38005                                         flag="$flag -D_RWSTD_MULTI_THREAD"
38006                 fi
38007                 ;;
38008             *solaris* | alpha*-osf*)
38009                 flag="-D_REENTRANT"
38010                 ;;
38011           esac
38012           echo "$as_me:$LINENO: result: ${flag}" >&5
38013 echo "${ECHO_T}${flag}" >&6
38014           if test "x$flag" != xno; then
38015               THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
38016           fi
38017
38018                     WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
38019       fi
38020     fi
38021
38022         if test "$wxUSE_THREADS" = "yes" ; then
38023
38024 for ac_func in thr_setconcurrency
38025 do
38026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38027 echo "$as_me:$LINENO: checking for $ac_func" >&5
38028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38029 if eval "test \"\${$as_ac_var+set}\" = set"; then
38030   echo $ECHO_N "(cached) $ECHO_C" >&6
38031 else
38032   cat >conftest.$ac_ext <<_ACEOF
38033 /* confdefs.h.  */
38034 _ACEOF
38035 cat confdefs.h >>conftest.$ac_ext
38036 cat >>conftest.$ac_ext <<_ACEOF
38037 /* end confdefs.h.  */
38038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38040 #define $ac_func innocuous_$ac_func
38041
38042 /* System header to define __stub macros and hopefully few prototypes,
38043     which can conflict with char $ac_func (); below.
38044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38045     <limits.h> exists even on freestanding compilers.  */
38046
38047 #ifdef __STDC__
38048 # include <limits.h>
38049 #else
38050 # include <assert.h>
38051 #endif
38052
38053 #undef $ac_func
38054
38055 /* Override any gcc2 internal prototype to avoid an error.  */
38056 #ifdef __cplusplus
38057 extern "C"
38058 {
38059 #endif
38060 /* We use char because int might match the return type of a gcc2
38061    builtin and then its argument prototype would still apply.  */
38062 char $ac_func ();
38063 /* The GNU C library defines this for functions which it implements
38064     to always fail with ENOSYS.  Some functions are actually named
38065     something starting with __ and the normal name is an alias.  */
38066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38067 choke me
38068 #else
38069 char (*f) () = $ac_func;
38070 #endif
38071 #ifdef __cplusplus
38072 }
38073 #endif
38074
38075 int
38076 main ()
38077 {
38078 return f != $ac_func;
38079   ;
38080   return 0;
38081 }
38082 _ACEOF
38083 rm -f conftest.$ac_objext conftest$ac_exeext
38084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38085   (eval $ac_link) 2>conftest.er1
38086   ac_status=$?
38087   grep -v '^ *+' conftest.er1 >conftest.err
38088   rm -f conftest.er1
38089   cat conftest.err >&5
38090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091   (exit $ac_status); } &&
38092          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38094   (eval $ac_try) 2>&5
38095   ac_status=$?
38096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38097   (exit $ac_status); }; } &&
38098          { ac_try='test -s conftest$ac_exeext'
38099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38100   (eval $ac_try) 2>&5
38101   ac_status=$?
38102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103   (exit $ac_status); }; }; then
38104   eval "$as_ac_var=yes"
38105 else
38106   echo "$as_me: failed program was:" >&5
38107 sed 's/^/| /' conftest.$ac_ext >&5
38108
38109 eval "$as_ac_var=no"
38110 fi
38111 rm -f conftest.err conftest.$ac_objext \
38112       conftest$ac_exeext conftest.$ac_ext
38113 fi
38114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38116 if test `eval echo '${'$as_ac_var'}'` = yes; then
38117   cat >>confdefs.h <<_ACEOF
38118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38119 _ACEOF
38120
38121 fi
38122 done
38123
38124
38125                   echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38126 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38127 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38128   echo $ECHO_N "(cached) $ECHO_C" >&6
38129 else
38130
38131         cat >conftest.$ac_ext <<_ACEOF
38132 /* confdefs.h.  */
38133 _ACEOF
38134 cat confdefs.h >>conftest.$ac_ext
38135 cat >>conftest.$ac_ext <<_ACEOF
38136 /* end confdefs.h.  */
38137 #include <pthread.h>
38138                void ThreadCleanupFunc(void *p);
38139
38140 int
38141 main ()
38142 {
38143
38144                 void *p;
38145                 pthread_cleanup_push(ThreadCleanupFunc, p);
38146                 pthread_cleanup_pop(0);
38147
38148   ;
38149   return 0;
38150 }
38151 _ACEOF
38152 rm -f conftest.$ac_objext
38153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38154   (eval $ac_compile) 2>conftest.er1
38155   ac_status=$?
38156   grep -v '^ *+' conftest.er1 >conftest.err
38157   rm -f conftest.er1
38158   cat conftest.err >&5
38159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160   (exit $ac_status); } &&
38161          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38163   (eval $ac_try) 2>&5
38164   ac_status=$?
38165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38166   (exit $ac_status); }; } &&
38167          { ac_try='test -s conftest.$ac_objext'
38168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38169   (eval $ac_try) 2>&5
38170   ac_status=$?
38171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38172   (exit $ac_status); }; }; then
38173
38174                wx_cv_func_pthread_cleanup=yes
38175
38176 else
38177   echo "$as_me: failed program was:" >&5
38178 sed 's/^/| /' conftest.$ac_ext >&5
38179
38180
38181                wx_cv_func_pthread_cleanup=no
38182
38183
38184 fi
38185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38186
38187 fi
38188 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38189 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38190       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38191         cat >>confdefs.h <<\_ACEOF
38192 #define wxHAVE_PTHREAD_CLEANUP 1
38193 _ACEOF
38194
38195       fi
38196
38197
38198 for ac_header in sched.h
38199 do
38200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38202   echo "$as_me:$LINENO: checking for $ac_header" >&5
38203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38205   echo $ECHO_N "(cached) $ECHO_C" >&6
38206 fi
38207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38209 else
38210   # Is the header compilable?
38211 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38213 cat >conftest.$ac_ext <<_ACEOF
38214 /* confdefs.h.  */
38215 _ACEOF
38216 cat confdefs.h >>conftest.$ac_ext
38217 cat >>conftest.$ac_ext <<_ACEOF
38218 /* end confdefs.h.  */
38219 $ac_includes_default
38220 #include <$ac_header>
38221 _ACEOF
38222 rm -f conftest.$ac_objext
38223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38224   (eval $ac_compile) 2>conftest.er1
38225   ac_status=$?
38226   grep -v '^ *+' conftest.er1 >conftest.err
38227   rm -f conftest.er1
38228   cat conftest.err >&5
38229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38230   (exit $ac_status); } &&
38231          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38233   (eval $ac_try) 2>&5
38234   ac_status=$?
38235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38236   (exit $ac_status); }; } &&
38237          { ac_try='test -s conftest.$ac_objext'
38238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38239   (eval $ac_try) 2>&5
38240   ac_status=$?
38241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38242   (exit $ac_status); }; }; then
38243   ac_header_compiler=yes
38244 else
38245   echo "$as_me: failed program was:" >&5
38246 sed 's/^/| /' conftest.$ac_ext >&5
38247
38248 ac_header_compiler=no
38249 fi
38250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38252 echo "${ECHO_T}$ac_header_compiler" >&6
38253
38254 # Is the header present?
38255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38257 cat >conftest.$ac_ext <<_ACEOF
38258 /* confdefs.h.  */
38259 _ACEOF
38260 cat confdefs.h >>conftest.$ac_ext
38261 cat >>conftest.$ac_ext <<_ACEOF
38262 /* end confdefs.h.  */
38263 #include <$ac_header>
38264 _ACEOF
38265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38267   ac_status=$?
38268   grep -v '^ *+' conftest.er1 >conftest.err
38269   rm -f conftest.er1
38270   cat conftest.err >&5
38271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38272   (exit $ac_status); } >/dev/null; then
38273   if test -s conftest.err; then
38274     ac_cpp_err=$ac_cxx_preproc_warn_flag
38275     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
38276   else
38277     ac_cpp_err=
38278   fi
38279 else
38280   ac_cpp_err=yes
38281 fi
38282 if test -z "$ac_cpp_err"; then
38283   ac_header_preproc=yes
38284 else
38285   echo "$as_me: failed program was:" >&5
38286 sed 's/^/| /' conftest.$ac_ext >&5
38287
38288   ac_header_preproc=no
38289 fi
38290 rm -f conftest.err conftest.$ac_ext
38291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38292 echo "${ECHO_T}$ac_header_preproc" >&6
38293
38294 # So?  What about this header?
38295 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38296   yes:no: )
38297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38301     ac_header_preproc=yes
38302     ;;
38303   no:yes:* )
38304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38316     (
38317       cat <<\_ASBOX
38318 ## ----------------------------------------- ##
38319 ## Report this to wx-dev@lists.wxwidgets.org ##
38320 ## ----------------------------------------- ##
38321 _ASBOX
38322     ) |
38323       sed "s/^/$as_me: WARNING:     /" >&2
38324     ;;
38325 esac
38326 echo "$as_me:$LINENO: checking for $ac_header" >&5
38327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38329   echo $ECHO_N "(cached) $ECHO_C" >&6
38330 else
38331   eval "$as_ac_Header=\$ac_header_preproc"
38332 fi
38333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38335
38336 fi
38337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38338   cat >>confdefs.h <<_ACEOF
38339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38340 _ACEOF
38341
38342 fi
38343
38344 done
38345
38346       if test "$ac_cv_header_sched_h" = "yes"; then
38347           echo "$as_me:$LINENO: checking for sched_yield" >&5
38348 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
38349 if test "${ac_cv_func_sched_yield+set}" = set; then
38350   echo $ECHO_N "(cached) $ECHO_C" >&6
38351 else
38352   cat >conftest.$ac_ext <<_ACEOF
38353 /* confdefs.h.  */
38354 _ACEOF
38355 cat confdefs.h >>conftest.$ac_ext
38356 cat >>conftest.$ac_ext <<_ACEOF
38357 /* end confdefs.h.  */
38358 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38360 #define sched_yield innocuous_sched_yield
38361
38362 /* System header to define __stub macros and hopefully few prototypes,
38363     which can conflict with char sched_yield (); below.
38364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38365     <limits.h> exists even on freestanding compilers.  */
38366
38367 #ifdef __STDC__
38368 # include <limits.h>
38369 #else
38370 # include <assert.h>
38371 #endif
38372
38373 #undef sched_yield
38374
38375 /* Override any gcc2 internal prototype to avoid an error.  */
38376 #ifdef __cplusplus
38377 extern "C"
38378 {
38379 #endif
38380 /* We use char because int might match the return type of a gcc2
38381    builtin and then its argument prototype would still apply.  */
38382 char sched_yield ();
38383 /* The GNU C library defines this for functions which it implements
38384     to always fail with ENOSYS.  Some functions are actually named
38385     something starting with __ and the normal name is an alias.  */
38386 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38387 choke me
38388 #else
38389 char (*f) () = sched_yield;
38390 #endif
38391 #ifdef __cplusplus
38392 }
38393 #endif
38394
38395 int
38396 main ()
38397 {
38398 return f != sched_yield;
38399   ;
38400   return 0;
38401 }
38402 _ACEOF
38403 rm -f conftest.$ac_objext conftest$ac_exeext
38404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38405   (eval $ac_link) 2>conftest.er1
38406   ac_status=$?
38407   grep -v '^ *+' conftest.er1 >conftest.err
38408   rm -f conftest.er1
38409   cat conftest.err >&5
38410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38411   (exit $ac_status); } &&
38412          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38414   (eval $ac_try) 2>&5
38415   ac_status=$?
38416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38417   (exit $ac_status); }; } &&
38418          { ac_try='test -s conftest$ac_exeext'
38419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38420   (eval $ac_try) 2>&5
38421   ac_status=$?
38422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423   (exit $ac_status); }; }; then
38424   ac_cv_func_sched_yield=yes
38425 else
38426   echo "$as_me: failed program was:" >&5
38427 sed 's/^/| /' conftest.$ac_ext >&5
38428
38429 ac_cv_func_sched_yield=no
38430 fi
38431 rm -f conftest.err conftest.$ac_objext \
38432       conftest$ac_exeext conftest.$ac_ext
38433 fi
38434 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38435 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38436 if test $ac_cv_func_sched_yield = yes; then
38437   cat >>confdefs.h <<\_ACEOF
38438 #define HAVE_SCHED_YIELD 1
38439 _ACEOF
38440
38441 else
38442
38443                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38444 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38445 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38446   echo $ECHO_N "(cached) $ECHO_C" >&6
38447 else
38448   ac_check_lib_save_LIBS=$LIBS
38449 LIBS="-lposix4  $LIBS"
38450 cat >conftest.$ac_ext <<_ACEOF
38451 /* confdefs.h.  */
38452 _ACEOF
38453 cat confdefs.h >>conftest.$ac_ext
38454 cat >>conftest.$ac_ext <<_ACEOF
38455 /* end confdefs.h.  */
38456
38457 /* Override any gcc2 internal prototype to avoid an error.  */
38458 #ifdef __cplusplus
38459 extern "C"
38460 #endif
38461 /* We use char because int might match the return type of a gcc2
38462    builtin and then its argument prototype would still apply.  */
38463 char sched_yield ();
38464 int
38465 main ()
38466 {
38467 sched_yield ();
38468   ;
38469   return 0;
38470 }
38471 _ACEOF
38472 rm -f conftest.$ac_objext conftest$ac_exeext
38473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38474   (eval $ac_link) 2>conftest.er1
38475   ac_status=$?
38476   grep -v '^ *+' conftest.er1 >conftest.err
38477   rm -f conftest.er1
38478   cat conftest.err >&5
38479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480   (exit $ac_status); } &&
38481          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38483   (eval $ac_try) 2>&5
38484   ac_status=$?
38485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486   (exit $ac_status); }; } &&
38487          { ac_try='test -s conftest$ac_exeext'
38488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38489   (eval $ac_try) 2>&5
38490   ac_status=$?
38491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38492   (exit $ac_status); }; }; then
38493   ac_cv_lib_posix4_sched_yield=yes
38494 else
38495   echo "$as_me: failed program was:" >&5
38496 sed 's/^/| /' conftest.$ac_ext >&5
38497
38498 ac_cv_lib_posix4_sched_yield=no
38499 fi
38500 rm -f conftest.err conftest.$ac_objext \
38501       conftest$ac_exeext conftest.$ac_ext
38502 LIBS=$ac_check_lib_save_LIBS
38503 fi
38504 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38505 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38506 if test $ac_cv_lib_posix4_sched_yield = yes; then
38507   cat >>confdefs.h <<\_ACEOF
38508 #define HAVE_SCHED_YIELD 1
38509 _ACEOF
38510  POSIX4_LINK=" -lposix4"
38511 else
38512   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38513 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38514
38515 fi
38516
38517
38518
38519 fi
38520
38521       fi
38522
38523                                           HAVE_PRIOR_FUNCS=0
38524       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38525 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38526 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38527   echo $ECHO_N "(cached) $ECHO_C" >&6
38528 else
38529   cat >conftest.$ac_ext <<_ACEOF
38530 /* confdefs.h.  */
38531 _ACEOF
38532 cat confdefs.h >>conftest.$ac_ext
38533 cat >>conftest.$ac_ext <<_ACEOF
38534 /* end confdefs.h.  */
38535 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38537 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38538
38539 /* System header to define __stub macros and hopefully few prototypes,
38540     which can conflict with char pthread_attr_getschedpolicy (); below.
38541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38542     <limits.h> exists even on freestanding compilers.  */
38543
38544 #ifdef __STDC__
38545 # include <limits.h>
38546 #else
38547 # include <assert.h>
38548 #endif
38549
38550 #undef pthread_attr_getschedpolicy
38551
38552 /* Override any gcc2 internal prototype to avoid an error.  */
38553 #ifdef __cplusplus
38554 extern "C"
38555 {
38556 #endif
38557 /* We use char because int might match the return type of a gcc2
38558    builtin and then its argument prototype would still apply.  */
38559 char pthread_attr_getschedpolicy ();
38560 /* The GNU C library defines this for functions which it implements
38561     to always fail with ENOSYS.  Some functions are actually named
38562     something starting with __ and the normal name is an alias.  */
38563 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38564 choke me
38565 #else
38566 char (*f) () = pthread_attr_getschedpolicy;
38567 #endif
38568 #ifdef __cplusplus
38569 }
38570 #endif
38571
38572 int
38573 main ()
38574 {
38575 return f != pthread_attr_getschedpolicy;
38576   ;
38577   return 0;
38578 }
38579 _ACEOF
38580 rm -f conftest.$ac_objext conftest$ac_exeext
38581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38582   (eval $ac_link) 2>conftest.er1
38583   ac_status=$?
38584   grep -v '^ *+' conftest.er1 >conftest.err
38585   rm -f conftest.er1
38586   cat conftest.err >&5
38587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38588   (exit $ac_status); } &&
38589          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38591   (eval $ac_try) 2>&5
38592   ac_status=$?
38593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594   (exit $ac_status); }; } &&
38595          { ac_try='test -s conftest$ac_exeext'
38596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38597   (eval $ac_try) 2>&5
38598   ac_status=$?
38599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38600   (exit $ac_status); }; }; then
38601   ac_cv_func_pthread_attr_getschedpolicy=yes
38602 else
38603   echo "$as_me: failed program was:" >&5
38604 sed 's/^/| /' conftest.$ac_ext >&5
38605
38606 ac_cv_func_pthread_attr_getschedpolicy=no
38607 fi
38608 rm -f conftest.err conftest.$ac_objext \
38609       conftest$ac_exeext conftest.$ac_ext
38610 fi
38611 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38612 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38613 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38614   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38615 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38616 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38617   echo $ECHO_N "(cached) $ECHO_C" >&6
38618 else
38619   cat >conftest.$ac_ext <<_ACEOF
38620 /* confdefs.h.  */
38621 _ACEOF
38622 cat confdefs.h >>conftest.$ac_ext
38623 cat >>conftest.$ac_ext <<_ACEOF
38624 /* end confdefs.h.  */
38625 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38627 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38628
38629 /* System header to define __stub macros and hopefully few prototypes,
38630     which can conflict with char pthread_attr_setschedparam (); below.
38631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38632     <limits.h> exists even on freestanding compilers.  */
38633
38634 #ifdef __STDC__
38635 # include <limits.h>
38636 #else
38637 # include <assert.h>
38638 #endif
38639
38640 #undef pthread_attr_setschedparam
38641
38642 /* Override any gcc2 internal prototype to avoid an error.  */
38643 #ifdef __cplusplus
38644 extern "C"
38645 {
38646 #endif
38647 /* We use char because int might match the return type of a gcc2
38648    builtin and then its argument prototype would still apply.  */
38649 char pthread_attr_setschedparam ();
38650 /* The GNU C library defines this for functions which it implements
38651     to always fail with ENOSYS.  Some functions are actually named
38652     something starting with __ and the normal name is an alias.  */
38653 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38654 choke me
38655 #else
38656 char (*f) () = pthread_attr_setschedparam;
38657 #endif
38658 #ifdef __cplusplus
38659 }
38660 #endif
38661
38662 int
38663 main ()
38664 {
38665 return f != pthread_attr_setschedparam;
38666   ;
38667   return 0;
38668 }
38669 _ACEOF
38670 rm -f conftest.$ac_objext conftest$ac_exeext
38671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38672   (eval $ac_link) 2>conftest.er1
38673   ac_status=$?
38674   grep -v '^ *+' conftest.er1 >conftest.err
38675   rm -f conftest.er1
38676   cat conftest.err >&5
38677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38678   (exit $ac_status); } &&
38679          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38681   (eval $ac_try) 2>&5
38682   ac_status=$?
38683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38684   (exit $ac_status); }; } &&
38685          { ac_try='test -s conftest$ac_exeext'
38686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38687   (eval $ac_try) 2>&5
38688   ac_status=$?
38689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690   (exit $ac_status); }; }; then
38691   ac_cv_func_pthread_attr_setschedparam=yes
38692 else
38693   echo "$as_me: failed program was:" >&5
38694 sed 's/^/| /' conftest.$ac_ext >&5
38695
38696 ac_cv_func_pthread_attr_setschedparam=no
38697 fi
38698 rm -f conftest.err conftest.$ac_objext \
38699       conftest$ac_exeext conftest.$ac_ext
38700 fi
38701 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38702 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38703 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38704   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38705 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38706 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38707   echo $ECHO_N "(cached) $ECHO_C" >&6
38708 else
38709   cat >conftest.$ac_ext <<_ACEOF
38710 /* confdefs.h.  */
38711 _ACEOF
38712 cat confdefs.h >>conftest.$ac_ext
38713 cat >>conftest.$ac_ext <<_ACEOF
38714 /* end confdefs.h.  */
38715 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38717 #define sched_get_priority_max innocuous_sched_get_priority_max
38718
38719 /* System header to define __stub macros and hopefully few prototypes,
38720     which can conflict with char sched_get_priority_max (); below.
38721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38722     <limits.h> exists even on freestanding compilers.  */
38723
38724 #ifdef __STDC__
38725 # include <limits.h>
38726 #else
38727 # include <assert.h>
38728 #endif
38729
38730 #undef sched_get_priority_max
38731
38732 /* Override any gcc2 internal prototype to avoid an error.  */
38733 #ifdef __cplusplus
38734 extern "C"
38735 {
38736 #endif
38737 /* We use char because int might match the return type of a gcc2
38738    builtin and then its argument prototype would still apply.  */
38739 char sched_get_priority_max ();
38740 /* The GNU C library defines this for functions which it implements
38741     to always fail with ENOSYS.  Some functions are actually named
38742     something starting with __ and the normal name is an alias.  */
38743 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38744 choke me
38745 #else
38746 char (*f) () = sched_get_priority_max;
38747 #endif
38748 #ifdef __cplusplus
38749 }
38750 #endif
38751
38752 int
38753 main ()
38754 {
38755 return f != sched_get_priority_max;
38756   ;
38757   return 0;
38758 }
38759 _ACEOF
38760 rm -f conftest.$ac_objext conftest$ac_exeext
38761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38762   (eval $ac_link) 2>conftest.er1
38763   ac_status=$?
38764   grep -v '^ *+' conftest.er1 >conftest.err
38765   rm -f conftest.er1
38766   cat conftest.err >&5
38767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768   (exit $ac_status); } &&
38769          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38771   (eval $ac_try) 2>&5
38772   ac_status=$?
38773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38774   (exit $ac_status); }; } &&
38775          { ac_try='test -s conftest$ac_exeext'
38776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38777   (eval $ac_try) 2>&5
38778   ac_status=$?
38779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780   (exit $ac_status); }; }; then
38781   ac_cv_func_sched_get_priority_max=yes
38782 else
38783   echo "$as_me: failed program was:" >&5
38784 sed 's/^/| /' conftest.$ac_ext >&5
38785
38786 ac_cv_func_sched_get_priority_max=no
38787 fi
38788 rm -f conftest.err conftest.$ac_objext \
38789       conftest$ac_exeext conftest.$ac_ext
38790 fi
38791 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38792 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38793 if test $ac_cv_func_sched_get_priority_max = yes; then
38794   HAVE_PRIOR_FUNCS=1
38795 else
38796   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38797 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38798 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38799   echo $ECHO_N "(cached) $ECHO_C" >&6
38800 else
38801   ac_check_lib_save_LIBS=$LIBS
38802 LIBS="-lposix4  $LIBS"
38803 cat >conftest.$ac_ext <<_ACEOF
38804 /* confdefs.h.  */
38805 _ACEOF
38806 cat confdefs.h >>conftest.$ac_ext
38807 cat >>conftest.$ac_ext <<_ACEOF
38808 /* end confdefs.h.  */
38809
38810 /* Override any gcc2 internal prototype to avoid an error.  */
38811 #ifdef __cplusplus
38812 extern "C"
38813 #endif
38814 /* We use char because int might match the return type of a gcc2
38815    builtin and then its argument prototype would still apply.  */
38816 char sched_get_priority_max ();
38817 int
38818 main ()
38819 {
38820 sched_get_priority_max ();
38821   ;
38822   return 0;
38823 }
38824 _ACEOF
38825 rm -f conftest.$ac_objext conftest$ac_exeext
38826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38827   (eval $ac_link) 2>conftest.er1
38828   ac_status=$?
38829   grep -v '^ *+' conftest.er1 >conftest.err
38830   rm -f conftest.er1
38831   cat conftest.err >&5
38832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833   (exit $ac_status); } &&
38834          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38836   (eval $ac_try) 2>&5
38837   ac_status=$?
38838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839   (exit $ac_status); }; } &&
38840          { ac_try='test -s conftest$ac_exeext'
38841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38842   (eval $ac_try) 2>&5
38843   ac_status=$?
38844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845   (exit $ac_status); }; }; then
38846   ac_cv_lib_posix4_sched_get_priority_max=yes
38847 else
38848   echo "$as_me: failed program was:" >&5
38849 sed 's/^/| /' conftest.$ac_ext >&5
38850
38851 ac_cv_lib_posix4_sched_get_priority_max=no
38852 fi
38853 rm -f conftest.err conftest.$ac_objext \
38854       conftest$ac_exeext conftest.$ac_ext
38855 LIBS=$ac_check_lib_save_LIBS
38856 fi
38857 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38858 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38859 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38860
38861                                 HAVE_PRIOR_FUNCS=1
38862                                 POSIX4_LINK=" -lposix4"
38863
38864 fi
38865
38866
38867 fi
38868
38869
38870 fi
38871
38872
38873 fi
38874
38875
38876       if test "$HAVE_PRIOR_FUNCS" = 1; then
38877         cat >>confdefs.h <<\_ACEOF
38878 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38879 _ACEOF
38880
38881       else
38882         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38883 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38884       fi
38885
38886       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38887 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38888 if test "${ac_cv_func_pthread_cancel+set}" = set; then
38889   echo $ECHO_N "(cached) $ECHO_C" >&6
38890 else
38891   cat >conftest.$ac_ext <<_ACEOF
38892 /* confdefs.h.  */
38893 _ACEOF
38894 cat confdefs.h >>conftest.$ac_ext
38895 cat >>conftest.$ac_ext <<_ACEOF
38896 /* end confdefs.h.  */
38897 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38899 #define pthread_cancel innocuous_pthread_cancel
38900
38901 /* System header to define __stub macros and hopefully few prototypes,
38902     which can conflict with char pthread_cancel (); below.
38903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38904     <limits.h> exists even on freestanding compilers.  */
38905
38906 #ifdef __STDC__
38907 # include <limits.h>
38908 #else
38909 # include <assert.h>
38910 #endif
38911
38912 #undef pthread_cancel
38913
38914 /* Override any gcc2 internal prototype to avoid an error.  */
38915 #ifdef __cplusplus
38916 extern "C"
38917 {
38918 #endif
38919 /* We use char because int might match the return type of a gcc2
38920    builtin and then its argument prototype would still apply.  */
38921 char pthread_cancel ();
38922 /* The GNU C library defines this for functions which it implements
38923     to always fail with ENOSYS.  Some functions are actually named
38924     something starting with __ and the normal name is an alias.  */
38925 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38926 choke me
38927 #else
38928 char (*f) () = pthread_cancel;
38929 #endif
38930 #ifdef __cplusplus
38931 }
38932 #endif
38933
38934 int
38935 main ()
38936 {
38937 return f != pthread_cancel;
38938   ;
38939   return 0;
38940 }
38941 _ACEOF
38942 rm -f conftest.$ac_objext conftest$ac_exeext
38943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38944   (eval $ac_link) 2>conftest.er1
38945   ac_status=$?
38946   grep -v '^ *+' conftest.er1 >conftest.err
38947   rm -f conftest.er1
38948   cat conftest.err >&5
38949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950   (exit $ac_status); } &&
38951          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38953   (eval $ac_try) 2>&5
38954   ac_status=$?
38955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38956   (exit $ac_status); }; } &&
38957          { ac_try='test -s conftest$ac_exeext'
38958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38959   (eval $ac_try) 2>&5
38960   ac_status=$?
38961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962   (exit $ac_status); }; }; then
38963   ac_cv_func_pthread_cancel=yes
38964 else
38965   echo "$as_me: failed program was:" >&5
38966 sed 's/^/| /' conftest.$ac_ext >&5
38967
38968 ac_cv_func_pthread_cancel=no
38969 fi
38970 rm -f conftest.err conftest.$ac_objext \
38971       conftest$ac_exeext conftest.$ac_ext
38972 fi
38973 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38974 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38975 if test $ac_cv_func_pthread_cancel = yes; then
38976   cat >>confdefs.h <<\_ACEOF
38977 #define HAVE_PTHREAD_CANCEL 1
38978 _ACEOF
38979
38980 else
38981   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38982 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38983 fi
38984
38985
38986       echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38987 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38988 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38989   echo $ECHO_N "(cached) $ECHO_C" >&6
38990 else
38991   cat >conftest.$ac_ext <<_ACEOF
38992 /* confdefs.h.  */
38993 _ACEOF
38994 cat confdefs.h >>conftest.$ac_ext
38995 cat >>conftest.$ac_ext <<_ACEOF
38996 /* end confdefs.h.  */
38997 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38999 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39000
39001 /* System header to define __stub macros and hopefully few prototypes,
39002     which can conflict with char pthread_attr_setstacksize (); below.
39003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39004     <limits.h> exists even on freestanding compilers.  */
39005
39006 #ifdef __STDC__
39007 # include <limits.h>
39008 #else
39009 # include <assert.h>
39010 #endif
39011
39012 #undef pthread_attr_setstacksize
39013
39014 /* Override any gcc2 internal prototype to avoid an error.  */
39015 #ifdef __cplusplus
39016 extern "C"
39017 {
39018 #endif
39019 /* We use char because int might match the return type of a gcc2
39020    builtin and then its argument prototype would still apply.  */
39021 char pthread_attr_setstacksize ();
39022 /* The GNU C library defines this for functions which it implements
39023     to always fail with ENOSYS.  Some functions are actually named
39024     something starting with __ and the normal name is an alias.  */
39025 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39026 choke me
39027 #else
39028 char (*f) () = pthread_attr_setstacksize;
39029 #endif
39030 #ifdef __cplusplus
39031 }
39032 #endif
39033
39034 int
39035 main ()
39036 {
39037 return f != pthread_attr_setstacksize;
39038   ;
39039   return 0;
39040 }
39041 _ACEOF
39042 rm -f conftest.$ac_objext conftest$ac_exeext
39043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39044   (eval $ac_link) 2>conftest.er1
39045   ac_status=$?
39046   grep -v '^ *+' conftest.er1 >conftest.err
39047   rm -f conftest.er1
39048   cat conftest.err >&5
39049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39050   (exit $ac_status); } &&
39051          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39053   (eval $ac_try) 2>&5
39054   ac_status=$?
39055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056   (exit $ac_status); }; } &&
39057          { ac_try='test -s conftest$ac_exeext'
39058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39059   (eval $ac_try) 2>&5
39060   ac_status=$?
39061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062   (exit $ac_status); }; }; then
39063   ac_cv_func_pthread_attr_setstacksize=yes
39064 else
39065   echo "$as_me: failed program was:" >&5
39066 sed 's/^/| /' conftest.$ac_ext >&5
39067
39068 ac_cv_func_pthread_attr_setstacksize=no
39069 fi
39070 rm -f conftest.err conftest.$ac_objext \
39071       conftest$ac_exeext conftest.$ac_ext
39072 fi
39073 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39074 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39075 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39076   cat >>confdefs.h <<\_ACEOF
39077 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39078 _ACEOF
39079
39080 fi
39081
39082
39083
39084       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39085 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39086 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39087   echo $ECHO_N "(cached) $ECHO_C" >&6
39088 else
39089
39090         cat >conftest.$ac_ext <<_ACEOF
39091 /* confdefs.h.  */
39092 _ACEOF
39093 cat confdefs.h >>conftest.$ac_ext
39094 cat >>conftest.$ac_ext <<_ACEOF
39095 /* end confdefs.h.  */
39096 #include <pthread.h>
39097 int
39098 main ()
39099 {
39100
39101                pthread_mutexattr_t attr;
39102                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39103
39104   ;
39105   return 0;
39106 }
39107 _ACEOF
39108 rm -f conftest.$ac_objext
39109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39110   (eval $ac_compile) 2>conftest.er1
39111   ac_status=$?
39112   grep -v '^ *+' conftest.er1 >conftest.err
39113   rm -f conftest.er1
39114   cat conftest.err >&5
39115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39116   (exit $ac_status); } &&
39117          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39119   (eval $ac_try) 2>&5
39120   ac_status=$?
39121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122   (exit $ac_status); }; } &&
39123          { ac_try='test -s conftest.$ac_objext'
39124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39125   (eval $ac_try) 2>&5
39126   ac_status=$?
39127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39128   (exit $ac_status); }; }; then
39129   wx_cv_type_pthread_mutexattr_t=yes
39130 else
39131   echo "$as_me: failed program was:" >&5
39132 sed 's/^/| /' conftest.$ac_ext >&5
39133
39134 wx_cv_type_pthread_mutexattr_t=no
39135
39136 fi
39137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39138
39139 fi
39140 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39141 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39142
39143       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39144         cat >>confdefs.h <<\_ACEOF
39145 #define HAVE_PTHREAD_MUTEXATTR_T 1
39146 _ACEOF
39147
39148
39149                         echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39150 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39151 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39152   echo $ECHO_N "(cached) $ECHO_C" >&6
39153 else
39154
39155                        cat >conftest.$ac_ext <<_ACEOF
39156 /* confdefs.h.  */
39157 _ACEOF
39158 cat confdefs.h >>conftest.$ac_ext
39159 cat >>conftest.$ac_ext <<_ACEOF
39160 /* end confdefs.h.  */
39161 #include <pthread.h>
39162 int
39163 main ()
39164 {
39165
39166                                pthread_mutexattr_t attr;
39167                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39168
39169   ;
39170   return 0;
39171 }
39172 _ACEOF
39173 rm -f conftest.$ac_objext
39174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39175   (eval $ac_compile) 2>conftest.er1
39176   ac_status=$?
39177   grep -v '^ *+' conftest.er1 >conftest.err
39178   rm -f conftest.er1
39179   cat conftest.err >&5
39180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181   (exit $ac_status); } &&
39182          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39184   (eval $ac_try) 2>&5
39185   ac_status=$?
39186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187   (exit $ac_status); }; } &&
39188          { ac_try='test -s conftest.$ac_objext'
39189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39190   (eval $ac_try) 2>&5
39191   ac_status=$?
39192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193   (exit $ac_status); }; }; then
39194   wx_cv_func_pthread_mutexattr_settype_decl=yes
39195 else
39196   echo "$as_me: failed program was:" >&5
39197 sed 's/^/| /' conftest.$ac_ext >&5
39198
39199 wx_cv_func_pthread_mutexattr_settype_decl=no
39200
39201 fi
39202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39203
39204 fi
39205 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39206 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39207         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39208             cat >>confdefs.h <<\_ACEOF
39209 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39210 _ACEOF
39211
39212         fi
39213       else
39214                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39215 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39216 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39217   echo $ECHO_N "(cached) $ECHO_C" >&6
39218 else
39219
39220             cat >conftest.$ac_ext <<_ACEOF
39221 /* confdefs.h.  */
39222 _ACEOF
39223 cat confdefs.h >>conftest.$ac_ext
39224 cat >>conftest.$ac_ext <<_ACEOF
39225 /* end confdefs.h.  */
39226 #include <pthread.h>
39227 int
39228 main ()
39229 {
39230
39231                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39232
39233   ;
39234   return 0;
39235 }
39236 _ACEOF
39237 rm -f conftest.$ac_objext
39238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39239   (eval $ac_compile) 2>conftest.er1
39240   ac_status=$?
39241   grep -v '^ *+' conftest.er1 >conftest.err
39242   rm -f conftest.er1
39243   cat conftest.err >&5
39244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245   (exit $ac_status); } &&
39246          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39248   (eval $ac_try) 2>&5
39249   ac_status=$?
39250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39251   (exit $ac_status); }; } &&
39252          { ac_try='test -s conftest.$ac_objext'
39253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39254   (eval $ac_try) 2>&5
39255   ac_status=$?
39256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257   (exit $ac_status); }; }; then
39258
39259                     wx_cv_type_pthread_rec_mutex_init=yes
39260
39261 else
39262   echo "$as_me: failed program was:" >&5
39263 sed 's/^/| /' conftest.$ac_ext >&5
39264
39265
39266                     wx_cv_type_pthread_rec_mutex_init=no
39267
39268
39269 fi
39270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39271
39272 fi
39273 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39274 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39275         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39276           cat >>confdefs.h <<\_ACEOF
39277 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39278 _ACEOF
39279
39280         else
39281                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39282 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39283         fi
39284       fi
39285     fi
39286
39287 else
39288     if test "$wxUSE_THREADS" = "yes" ; then
39289       case "${host}" in
39290         *-*-mingw32* )
39291                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39292 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39293 if test "${wx_cv_cflags_mthread+set}" = set; then
39294   echo $ECHO_N "(cached) $ECHO_C" >&6
39295 else
39296
39297                     CXXFLAGS_OLD="$CXXFLAGS"
39298                     CXXFLAGS="-mthreads $CXXFLAGS"
39299                     cat >conftest.$ac_ext <<_ACEOF
39300 /* confdefs.h.  */
39301 _ACEOF
39302 cat confdefs.h >>conftest.$ac_ext
39303 cat >>conftest.$ac_ext <<_ACEOF
39304 /* end confdefs.h.  */
39305
39306 int
39307 main ()
39308 {
39309
39310   ;
39311   return 0;
39312 }
39313 _ACEOF
39314 rm -f conftest.$ac_objext
39315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39316   (eval $ac_compile) 2>conftest.er1
39317   ac_status=$?
39318   grep -v '^ *+' conftest.er1 >conftest.err
39319   rm -f conftest.er1
39320   cat conftest.err >&5
39321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322   (exit $ac_status); } &&
39323          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39325   (eval $ac_try) 2>&5
39326   ac_status=$?
39327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328   (exit $ac_status); }; } &&
39329          { ac_try='test -s conftest.$ac_objext'
39330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39331   (eval $ac_try) 2>&5
39332   ac_status=$?
39333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39334   (exit $ac_status); }; }; then
39335   wx_cv_cflags_mthread=yes
39336 else
39337   echo "$as_me: failed program was:" >&5
39338 sed 's/^/| /' conftest.$ac_ext >&5
39339
39340 wx_cv_cflags_mthread=no
39341
39342 fi
39343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39344
39345
39346 fi
39347 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39348 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
39349
39350             if test "$wx_cv_cflags_mthread" = "yes"; then
39351                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
39352                 LDFLAGS="$LDFLAGS -mthreads"
39353             else
39354                                 CXXFLAGS="$CXXFLAGS_OLD"
39355             fi
39356         ;;
39357         *-pc-os2*emx )
39358             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39359             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
39360             LDFLAGS="$LDFLAGS -Zmt"
39361         ;;
39362       esac
39363     fi
39364 fi
39365
39366 echo "$as_me:$LINENO: checking for localtime_r" >&5
39367 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
39368 if test "${ac_cv_func_localtime_r+set}" = set; then
39369   echo $ECHO_N "(cached) $ECHO_C" >&6
39370 else
39371   cat >conftest.$ac_ext <<_ACEOF
39372 /* confdefs.h.  */
39373 _ACEOF
39374 cat confdefs.h >>conftest.$ac_ext
39375 cat >>conftest.$ac_ext <<_ACEOF
39376 /* end confdefs.h.  */
39377 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
39378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39379 #define localtime_r innocuous_localtime_r
39380
39381 /* System header to define __stub macros and hopefully few prototypes,
39382     which can conflict with char localtime_r (); below.
39383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39384     <limits.h> exists even on freestanding compilers.  */
39385
39386 #ifdef __STDC__
39387 # include <limits.h>
39388 #else
39389 # include <assert.h>
39390 #endif
39391
39392 #undef localtime_r
39393
39394 /* Override any gcc2 internal prototype to avoid an error.  */
39395 #ifdef __cplusplus
39396 extern "C"
39397 {
39398 #endif
39399 /* We use char because int might match the return type of a gcc2
39400    builtin and then its argument prototype would still apply.  */
39401 char localtime_r ();
39402 /* The GNU C library defines this for functions which it implements
39403     to always fail with ENOSYS.  Some functions are actually named
39404     something starting with __ and the normal name is an alias.  */
39405 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
39406 choke me
39407 #else
39408 char (*f) () = localtime_r;
39409 #endif
39410 #ifdef __cplusplus
39411 }
39412 #endif
39413
39414 int
39415 main ()
39416 {
39417 return f != localtime_r;
39418   ;
39419   return 0;
39420 }
39421 _ACEOF
39422 rm -f conftest.$ac_objext conftest$ac_exeext
39423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39424   (eval $ac_link) 2>conftest.er1
39425   ac_status=$?
39426   grep -v '^ *+' conftest.er1 >conftest.err
39427   rm -f conftest.er1
39428   cat conftest.err >&5
39429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39430   (exit $ac_status); } &&
39431          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39433   (eval $ac_try) 2>&5
39434   ac_status=$?
39435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39436   (exit $ac_status); }; } &&
39437          { ac_try='test -s conftest$ac_exeext'
39438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39439   (eval $ac_try) 2>&5
39440   ac_status=$?
39441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39442   (exit $ac_status); }; }; then
39443   ac_cv_func_localtime_r=yes
39444 else
39445   echo "$as_me: failed program was:" >&5
39446 sed 's/^/| /' conftest.$ac_ext >&5
39447
39448 ac_cv_func_localtime_r=no
39449 fi
39450 rm -f conftest.err conftest.$ac_objext \
39451       conftest$ac_exeext conftest.$ac_ext
39452 fi
39453 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39454 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39455 if test $ac_cv_func_localtime_r = yes; then
39456    cat >>confdefs.h <<\_ACEOF
39457 #define HAVE_LOCALTIME_R 1
39458 _ACEOF
39459
39460 fi
39461
39462 echo "$as_me:$LINENO: checking for gmtime_r" >&5
39463 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39464 if test "${ac_cv_func_gmtime_r+set}" = set; then
39465   echo $ECHO_N "(cached) $ECHO_C" >&6
39466 else
39467   cat >conftest.$ac_ext <<_ACEOF
39468 /* confdefs.h.  */
39469 _ACEOF
39470 cat confdefs.h >>conftest.$ac_ext
39471 cat >>conftest.$ac_ext <<_ACEOF
39472 /* end confdefs.h.  */
39473 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39475 #define gmtime_r innocuous_gmtime_r
39476
39477 /* System header to define __stub macros and hopefully few prototypes,
39478     which can conflict with char gmtime_r (); below.
39479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39480     <limits.h> exists even on freestanding compilers.  */
39481
39482 #ifdef __STDC__
39483 # include <limits.h>
39484 #else
39485 # include <assert.h>
39486 #endif
39487
39488 #undef gmtime_r
39489
39490 /* Override any gcc2 internal prototype to avoid an error.  */
39491 #ifdef __cplusplus
39492 extern "C"
39493 {
39494 #endif
39495 /* We use char because int might match the return type of a gcc2
39496    builtin and then its argument prototype would still apply.  */
39497 char gmtime_r ();
39498 /* The GNU C library defines this for functions which it implements
39499     to always fail with ENOSYS.  Some functions are actually named
39500     something starting with __ and the normal name is an alias.  */
39501 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39502 choke me
39503 #else
39504 char (*f) () = gmtime_r;
39505 #endif
39506 #ifdef __cplusplus
39507 }
39508 #endif
39509
39510 int
39511 main ()
39512 {
39513 return f != gmtime_r;
39514   ;
39515   return 0;
39516 }
39517 _ACEOF
39518 rm -f conftest.$ac_objext conftest$ac_exeext
39519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39520   (eval $ac_link) 2>conftest.er1
39521   ac_status=$?
39522   grep -v '^ *+' conftest.er1 >conftest.err
39523   rm -f conftest.er1
39524   cat conftest.err >&5
39525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39526   (exit $ac_status); } &&
39527          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39529   (eval $ac_try) 2>&5
39530   ac_status=$?
39531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532   (exit $ac_status); }; } &&
39533          { ac_try='test -s conftest$ac_exeext'
39534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39535   (eval $ac_try) 2>&5
39536   ac_status=$?
39537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39538   (exit $ac_status); }; }; then
39539   ac_cv_func_gmtime_r=yes
39540 else
39541   echo "$as_me: failed program was:" >&5
39542 sed 's/^/| /' conftest.$ac_ext >&5
39543
39544 ac_cv_func_gmtime_r=no
39545 fi
39546 rm -f conftest.err conftest.$ac_objext \
39547       conftest$ac_exeext conftest.$ac_ext
39548 fi
39549 echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39550 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39551 if test $ac_cv_func_gmtime_r = yes; then
39552    cat >>confdefs.h <<\_ACEOF
39553 #define HAVE_GMTIME_R 1
39554 _ACEOF
39555
39556 fi
39557
39558 echo "$as_me:$LINENO: checking for readdir_r" >&5
39559 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39560 if test "${ac_cv_func_readdir_r+set}" = set; then
39561   echo $ECHO_N "(cached) $ECHO_C" >&6
39562 else
39563   cat >conftest.$ac_ext <<_ACEOF
39564 /* confdefs.h.  */
39565 _ACEOF
39566 cat confdefs.h >>conftest.$ac_ext
39567 cat >>conftest.$ac_ext <<_ACEOF
39568 /* end confdefs.h.  */
39569 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39571 #define readdir_r innocuous_readdir_r
39572
39573 /* System header to define __stub macros and hopefully few prototypes,
39574     which can conflict with char readdir_r (); below.
39575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39576     <limits.h> exists even on freestanding compilers.  */
39577
39578 #ifdef __STDC__
39579 # include <limits.h>
39580 #else
39581 # include <assert.h>
39582 #endif
39583
39584 #undef readdir_r
39585
39586 /* Override any gcc2 internal prototype to avoid an error.  */
39587 #ifdef __cplusplus
39588 extern "C"
39589 {
39590 #endif
39591 /* We use char because int might match the return type of a gcc2
39592    builtin and then its argument prototype would still apply.  */
39593 char readdir_r ();
39594 /* The GNU C library defines this for functions which it implements
39595     to always fail with ENOSYS.  Some functions are actually named
39596     something starting with __ and the normal name is an alias.  */
39597 #if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39598 choke me
39599 #else
39600 char (*f) () = readdir_r;
39601 #endif
39602 #ifdef __cplusplus
39603 }
39604 #endif
39605
39606 int
39607 main ()
39608 {
39609 return f != readdir_r;
39610   ;
39611   return 0;
39612 }
39613 _ACEOF
39614 rm -f conftest.$ac_objext conftest$ac_exeext
39615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39616   (eval $ac_link) 2>conftest.er1
39617   ac_status=$?
39618   grep -v '^ *+' conftest.er1 >conftest.err
39619   rm -f conftest.er1
39620   cat conftest.err >&5
39621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622   (exit $ac_status); } &&
39623          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39625   (eval $ac_try) 2>&5
39626   ac_status=$?
39627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628   (exit $ac_status); }; } &&
39629          { ac_try='test -s conftest$ac_exeext'
39630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39631   (eval $ac_try) 2>&5
39632   ac_status=$?
39633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634   (exit $ac_status); }; }; then
39635   ac_cv_func_readdir_r=yes
39636 else
39637   echo "$as_me: failed program was:" >&5
39638 sed 's/^/| /' conftest.$ac_ext >&5
39639
39640 ac_cv_func_readdir_r=no
39641 fi
39642 rm -f conftest.err conftest.$ac_objext \
39643       conftest$ac_exeext conftest.$ac_ext
39644 fi
39645 echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39646 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39647 if test $ac_cv_func_readdir_r = yes; then
39648    cat >>confdefs.h <<\_ACEOF
39649 #define HAVE_READDIR_R 1
39650 _ACEOF
39651
39652 fi
39653
39654
39655
39656
39657     ac_ext=c
39658 ac_cpp='$CPP $CPPFLAGS'
39659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39662
39663     echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39664 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39665
39666     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39667   echo $ECHO_N "(cached) $ECHO_C" >&6
39668 else
39669
39670
39671 ################################################################
39672
39673 ac_cv_func_which_gethostbyname_r=unknown
39674
39675 #
39676 # ONE ARGUMENT (sanity check)
39677 #
39678
39679 # This should fail, as there is no variant of gethostbyname_r() that takes
39680 # a single argument. If it actually compiles, then we can assume that
39681 # netdb.h is not declaring the function, and the compiler is thereby
39682 # assuming an implicit prototype. In which case, we're out of luck.
39683 #
39684 cat >conftest.$ac_ext <<_ACEOF
39685 /* confdefs.h.  */
39686 _ACEOF
39687 cat confdefs.h >>conftest.$ac_ext
39688 cat >>conftest.$ac_ext <<_ACEOF
39689 /* end confdefs.h.  */
39690 #include <netdb.h>
39691 int
39692 main ()
39693 {
39694
39695             char *name = "www.gnu.org";
39696             (void)gethostbyname_r(name) /* ; */
39697
39698   ;
39699   return 0;
39700 }
39701 _ACEOF
39702 rm -f conftest.$ac_objext
39703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39704   (eval $ac_compile) 2>conftest.er1
39705   ac_status=$?
39706   grep -v '^ *+' conftest.er1 >conftest.err
39707   rm -f conftest.er1
39708   cat conftest.err >&5
39709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39710   (exit $ac_status); } &&
39711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39713   (eval $ac_try) 2>&5
39714   ac_status=$?
39715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716   (exit $ac_status); }; } &&
39717          { ac_try='test -s conftest.$ac_objext'
39718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39719   (eval $ac_try) 2>&5
39720   ac_status=$?
39721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39722   (exit $ac_status); }; }; then
39723   ac_cv_func_which_gethostbyname_r=no
39724 else
39725   echo "$as_me: failed program was:" >&5
39726 sed 's/^/| /' conftest.$ac_ext >&5
39727
39728 fi
39729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39730
39731 #
39732 # SIX ARGUMENTS
39733 # (e.g. Linux)
39734 #
39735
39736 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39737
39738 cat >conftest.$ac_ext <<_ACEOF
39739 /* confdefs.h.  */
39740 _ACEOF
39741 cat confdefs.h >>conftest.$ac_ext
39742 cat >>conftest.$ac_ext <<_ACEOF
39743 /* end confdefs.h.  */
39744 #include <netdb.h>
39745 int
39746 main ()
39747 {
39748
39749             char *name = "www.gnu.org";
39750             struct hostent ret, *retp;
39751             char buf[1024];
39752             int buflen = 1024;
39753             int my_h_errno;
39754             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39755
39756   ;
39757   return 0;
39758 }
39759 _ACEOF
39760 rm -f conftest.$ac_objext
39761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39762   (eval $ac_compile) 2>conftest.er1
39763   ac_status=$?
39764   grep -v '^ *+' conftest.er1 >conftest.err
39765   rm -f conftest.er1
39766   cat conftest.err >&5
39767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39768   (exit $ac_status); } &&
39769          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39771   (eval $ac_try) 2>&5
39772   ac_status=$?
39773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774   (exit $ac_status); }; } &&
39775          { ac_try='test -s conftest.$ac_objext'
39776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39777   (eval $ac_try) 2>&5
39778   ac_status=$?
39779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39780   (exit $ac_status); }; }; then
39781   ac_cv_func_which_gethostbyname_r=six
39782 else
39783   echo "$as_me: failed program was:" >&5
39784 sed 's/^/| /' conftest.$ac_ext >&5
39785
39786 fi
39787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39788
39789 fi
39790
39791 #
39792 # FIVE ARGUMENTS
39793 # (e.g. Solaris)
39794 #
39795
39796 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39797
39798 cat >conftest.$ac_ext <<_ACEOF
39799 /* confdefs.h.  */
39800 _ACEOF
39801 cat confdefs.h >>conftest.$ac_ext
39802 cat >>conftest.$ac_ext <<_ACEOF
39803 /* end confdefs.h.  */
39804 #include <netdb.h>
39805 int
39806 main ()
39807 {
39808
39809             char *name = "www.gnu.org";
39810             struct hostent ret;
39811             char buf[1024];
39812             int buflen = 1024;
39813             int my_h_errno;
39814             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39815
39816   ;
39817   return 0;
39818 }
39819 _ACEOF
39820 rm -f conftest.$ac_objext
39821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39822   (eval $ac_compile) 2>conftest.er1
39823   ac_status=$?
39824   grep -v '^ *+' conftest.er1 >conftest.err
39825   rm -f conftest.er1
39826   cat conftest.err >&5
39827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828   (exit $ac_status); } &&
39829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39831   (eval $ac_try) 2>&5
39832   ac_status=$?
39833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39834   (exit $ac_status); }; } &&
39835          { ac_try='test -s conftest.$ac_objext'
39836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39837   (eval $ac_try) 2>&5
39838   ac_status=$?
39839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39840   (exit $ac_status); }; }; then
39841   ac_cv_func_which_gethostbyname_r=five
39842 else
39843   echo "$as_me: failed program was:" >&5
39844 sed 's/^/| /' conftest.$ac_ext >&5
39845
39846 fi
39847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39848
39849 fi
39850
39851 #
39852 # THREE ARGUMENTS
39853 # (e.g. AIX, HP-UX, Tru64)
39854 #
39855
39856 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39857
39858 cat >conftest.$ac_ext <<_ACEOF
39859 /* confdefs.h.  */
39860 _ACEOF
39861 cat confdefs.h >>conftest.$ac_ext
39862 cat >>conftest.$ac_ext <<_ACEOF
39863 /* end confdefs.h.  */
39864 #include <netdb.h>
39865 int
39866 main ()
39867 {
39868
39869             char *name = "www.gnu.org";
39870             struct hostent ret;
39871             struct hostent_data data;
39872             (void)gethostbyname_r(name, &ret, &data) /* ; */
39873
39874   ;
39875   return 0;
39876 }
39877 _ACEOF
39878 rm -f conftest.$ac_objext
39879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39880   (eval $ac_compile) 2>conftest.er1
39881   ac_status=$?
39882   grep -v '^ *+' conftest.er1 >conftest.err
39883   rm -f conftest.er1
39884   cat conftest.err >&5
39885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39886   (exit $ac_status); } &&
39887          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39889   (eval $ac_try) 2>&5
39890   ac_status=$?
39891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39892   (exit $ac_status); }; } &&
39893          { ac_try='test -s conftest.$ac_objext'
39894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39895   (eval $ac_try) 2>&5
39896   ac_status=$?
39897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39898   (exit $ac_status); }; }; then
39899   ac_cv_func_which_gethostbyname_r=three
39900 else
39901   echo "$as_me: failed program was:" >&5
39902 sed 's/^/| /' conftest.$ac_ext >&5
39903
39904 fi
39905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39906
39907 fi
39908
39909 ################################################################
39910
39911
39912 fi
39913
39914 case "$ac_cv_func_which_gethostbyname_r" in
39915     three)
39916     echo "$as_me:$LINENO: result: three" >&5
39917 echo "${ECHO_T}three" >&6
39918     cat >>confdefs.h <<\_ACEOF
39919 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39920 _ACEOF
39921
39922     ;;
39923
39924     five)
39925     echo "$as_me:$LINENO: result: five" >&5
39926 echo "${ECHO_T}five" >&6
39927     cat >>confdefs.h <<\_ACEOF
39928 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39929 _ACEOF
39930
39931     ;;
39932
39933     six)
39934     echo "$as_me:$LINENO: result: six" >&5
39935 echo "${ECHO_T}six" >&6
39936     cat >>confdefs.h <<\_ACEOF
39937 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39938 _ACEOF
39939
39940     ;;
39941
39942     no)
39943     echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39944 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39945     ;;
39946
39947     unknown)
39948     echo "$as_me:$LINENO: result: can't tell" >&5
39949 echo "${ECHO_T}can't tell" >&6
39950     ;;
39951
39952     *)
39953     { { echo "$as_me:$LINENO: error: internal error" >&5
39954 echo "$as_me: error: internal error" >&2;}
39955    { (exit 1); exit 1; }; }
39956     ;;
39957 esac
39958
39959 ac_ext=cc
39960 ac_cpp='$CXXCPP $CPPFLAGS'
39961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39964
39965
39966
39967       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39968               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39969           echo "$as_me:$LINENO: checking for gethostbyname" >&5
39970 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39971 if test "${ac_cv_func_gethostbyname+set}" = set; then
39972   echo $ECHO_N "(cached) $ECHO_C" >&6
39973 else
39974   cat >conftest.$ac_ext <<_ACEOF
39975 /* confdefs.h.  */
39976 _ACEOF
39977 cat confdefs.h >>conftest.$ac_ext
39978 cat >>conftest.$ac_ext <<_ACEOF
39979 /* end confdefs.h.  */
39980 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39982 #define gethostbyname innocuous_gethostbyname
39983
39984 /* System header to define __stub macros and hopefully few prototypes,
39985     which can conflict with char gethostbyname (); below.
39986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39987     <limits.h> exists even on freestanding compilers.  */
39988
39989 #ifdef __STDC__
39990 # include <limits.h>
39991 #else
39992 # include <assert.h>
39993 #endif
39994
39995 #undef gethostbyname
39996
39997 /* Override any gcc2 internal prototype to avoid an error.  */
39998 #ifdef __cplusplus
39999 extern "C"
40000 {
40001 #endif
40002 /* We use char because int might match the return type of a gcc2
40003    builtin and then its argument prototype would still apply.  */
40004 char gethostbyname ();
40005 /* The GNU C library defines this for functions which it implements
40006     to always fail with ENOSYS.  Some functions are actually named
40007     something starting with __ and the normal name is an alias.  */
40008 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40009 choke me
40010 #else
40011 char (*f) () = gethostbyname;
40012 #endif
40013 #ifdef __cplusplus
40014 }
40015 #endif
40016
40017 int
40018 main ()
40019 {
40020 return f != gethostbyname;
40021   ;
40022   return 0;
40023 }
40024 _ACEOF
40025 rm -f conftest.$ac_objext conftest$ac_exeext
40026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40027   (eval $ac_link) 2>conftest.er1
40028   ac_status=$?
40029   grep -v '^ *+' conftest.er1 >conftest.err
40030   rm -f conftest.er1
40031   cat conftest.err >&5
40032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40033   (exit $ac_status); } &&
40034          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036   (eval $ac_try) 2>&5
40037   ac_status=$?
40038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039   (exit $ac_status); }; } &&
40040          { ac_try='test -s conftest$ac_exeext'
40041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40042   (eval $ac_try) 2>&5
40043   ac_status=$?
40044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045   (exit $ac_status); }; }; then
40046   ac_cv_func_gethostbyname=yes
40047 else
40048   echo "$as_me: failed program was:" >&5
40049 sed 's/^/| /' conftest.$ac_ext >&5
40050
40051 ac_cv_func_gethostbyname=no
40052 fi
40053 rm -f conftest.err conftest.$ac_objext \
40054       conftest$ac_exeext conftest.$ac_ext
40055 fi
40056 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40057 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40058 if test $ac_cv_func_gethostbyname = yes; then
40059    cat >>confdefs.h <<\_ACEOF
40060 #define HAVE_GETHOSTBYNAME 1
40061 _ACEOF
40062
40063 fi
40064
40065       fi
40066                               echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40067 echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
40068 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40069   echo $ECHO_N "(cached) $ECHO_C" >&6
40070 else
40071
40072 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40073 echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
40074 if test "${ac_cv_func_getservbyname_r+set}" = set; then
40075   echo $ECHO_N "(cached) $ECHO_C" >&6
40076 else
40077   cat >conftest.$ac_ext <<_ACEOF
40078 /* confdefs.h.  */
40079 _ACEOF
40080 cat confdefs.h >>conftest.$ac_ext
40081 cat >>conftest.$ac_ext <<_ACEOF
40082 /* end confdefs.h.  */
40083 /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
40084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40085 #define getservbyname_r innocuous_getservbyname_r
40086
40087 /* System header to define __stub macros and hopefully few prototypes,
40088     which can conflict with char getservbyname_r (); below.
40089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40090     <limits.h> exists even on freestanding compilers.  */
40091
40092 #ifdef __STDC__
40093 # include <limits.h>
40094 #else
40095 # include <assert.h>
40096 #endif
40097
40098 #undef getservbyname_r
40099
40100 /* Override any gcc2 internal prototype to avoid an error.  */
40101 #ifdef __cplusplus
40102 extern "C"
40103 {
40104 #endif
40105 /* We use char because int might match the return type of a gcc2
40106    builtin and then its argument prototype would still apply.  */
40107 char getservbyname_r ();
40108 /* The GNU C library defines this for functions which it implements
40109     to always fail with ENOSYS.  Some functions are actually named
40110     something starting with __ and the normal name is an alias.  */
40111 #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
40112 choke me
40113 #else
40114 char (*f) () = getservbyname_r;
40115 #endif
40116 #ifdef __cplusplus
40117 }
40118 #endif
40119
40120 int
40121 main ()
40122 {
40123 return f != getservbyname_r;
40124   ;
40125   return 0;
40126 }
40127 _ACEOF
40128 rm -f conftest.$ac_objext conftest$ac_exeext
40129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40130   (eval $ac_link) 2>conftest.er1
40131   ac_status=$?
40132   grep -v '^ *+' conftest.er1 >conftest.err
40133   rm -f conftest.er1
40134   cat conftest.err >&5
40135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136   (exit $ac_status); } &&
40137          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40139   (eval $ac_try) 2>&5
40140   ac_status=$?
40141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40142   (exit $ac_status); }; } &&
40143          { ac_try='test -s conftest$ac_exeext'
40144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40145   (eval $ac_try) 2>&5
40146   ac_status=$?
40147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148   (exit $ac_status); }; }; then
40149   ac_cv_func_getservbyname_r=yes
40150 else
40151   echo "$as_me: failed program was:" >&5
40152 sed 's/^/| /' conftest.$ac_ext >&5
40153
40154 ac_cv_func_getservbyname_r=no
40155 fi
40156 rm -f conftest.err conftest.$ac_objext \
40157       conftest$ac_exeext conftest.$ac_ext
40158 fi
40159 echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
40160 echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
40161 if test $ac_cv_func_getservbyname_r = yes; then
40162
40163         cat >conftest.$ac_ext <<_ACEOF
40164 /* confdefs.h.  */
40165 _ACEOF
40166 cat confdefs.h >>conftest.$ac_ext
40167 cat >>conftest.$ac_ext <<_ACEOF
40168 /* end confdefs.h.  */
40169
40170 #               include <netdb.h>
40171
40172 int
40173 main ()
40174 {
40175
40176
40177         char *name;
40178         char *proto;
40179         struct servent *se;
40180         struct servent_data data;
40181         (void) getservbyname_r(name, proto, se, &data);
40182
40183
40184   ;
40185   return 0;
40186 }
40187 _ACEOF
40188 rm -f conftest.$ac_objext
40189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40190   (eval $ac_compile) 2>conftest.er1
40191   ac_status=$?
40192   grep -v '^ *+' conftest.er1 >conftest.err
40193   rm -f conftest.er1
40194   cat conftest.err >&5
40195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40196   (exit $ac_status); } &&
40197          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40199   (eval $ac_try) 2>&5
40200   ac_status=$?
40201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202   (exit $ac_status); }; } &&
40203          { ac_try='test -s conftest.$ac_objext'
40204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40205   (eval $ac_try) 2>&5
40206   ac_status=$?
40207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40208   (exit $ac_status); }; }; then
40209   ac_cv_func_which_getservbyname_r=four
40210 else
40211   echo "$as_me: failed program was:" >&5
40212 sed 's/^/| /' conftest.$ac_ext >&5
40213
40214
40215   cat >conftest.$ac_ext <<_ACEOF
40216 /* confdefs.h.  */
40217 _ACEOF
40218 cat confdefs.h >>conftest.$ac_ext
40219 cat >>conftest.$ac_ext <<_ACEOF
40220 /* end confdefs.h.  */
40221
40222 #   include <netdb.h>
40223
40224 int
40225 main ()
40226 {
40227
40228         char *name;
40229         char *proto;
40230         struct servent *se, *res;
40231         char buffer[2048];
40232         int buflen = 2048;
40233         (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40234
40235   ;
40236   return 0;
40237 }
40238 _ACEOF
40239 rm -f conftest.$ac_objext
40240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40241   (eval $ac_compile) 2>conftest.er1
40242   ac_status=$?
40243   grep -v '^ *+' conftest.er1 >conftest.err
40244   rm -f conftest.er1
40245   cat conftest.err >&5
40246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40247   (exit $ac_status); } &&
40248          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40250   (eval $ac_try) 2>&5
40251   ac_status=$?
40252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40253   (exit $ac_status); }; } &&
40254          { ac_try='test -s conftest.$ac_objext'
40255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40256   (eval $ac_try) 2>&5
40257   ac_status=$?
40258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40259   (exit $ac_status); }; }; then
40260   ac_cv_func_which_getservbyname_r=six
40261 else
40262   echo "$as_me: failed program was:" >&5
40263 sed 's/^/| /' conftest.$ac_ext >&5
40264
40265
40266   cat >conftest.$ac_ext <<_ACEOF
40267 /* confdefs.h.  */
40268 _ACEOF
40269 cat confdefs.h >>conftest.$ac_ext
40270 cat >>conftest.$ac_ext <<_ACEOF
40271 /* end confdefs.h.  */
40272
40273 #   include <netdb.h>
40274
40275 int
40276 main ()
40277 {
40278
40279         char *name;
40280         char *proto;
40281         struct servent *se;
40282         char buffer[2048];
40283         int buflen = 2048;
40284         (void) getservbyname_r(name, proto, se, buffer, buflen)
40285
40286   ;
40287   return 0;
40288 }
40289 _ACEOF
40290 rm -f conftest.$ac_objext
40291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40292   (eval $ac_compile) 2>conftest.er1
40293   ac_status=$?
40294   grep -v '^ *+' conftest.er1 >conftest.err
40295   rm -f conftest.er1
40296   cat conftest.err >&5
40297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298   (exit $ac_status); } &&
40299          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40301   (eval $ac_try) 2>&5
40302   ac_status=$?
40303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40304   (exit $ac_status); }; } &&
40305          { ac_try='test -s conftest.$ac_objext'
40306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40307   (eval $ac_try) 2>&5
40308   ac_status=$?
40309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40310   (exit $ac_status); }; }; then
40311   ac_cv_func_which_getservbyname_r=five
40312 else
40313   echo "$as_me: failed program was:" >&5
40314 sed 's/^/| /' conftest.$ac_ext >&5
40315
40316 ac_cv_func_which_getservbyname_r=no
40317 fi
40318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40319
40320
40321
40322
40323 fi
40324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40325
40326
40327 fi
40328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40329
40330 else
40331   ac_cv_func_which_getservbyname_r=no
40332 fi
40333
40334 fi
40335 echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40336 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
40337
40338 if test $ac_cv_func_which_getservbyname_r = six; then
40339   cat >>confdefs.h <<\_ACEOF
40340 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
40341 _ACEOF
40342
40343 elif test $ac_cv_func_which_getservbyname_r = five; then
40344   cat >>confdefs.h <<\_ACEOF
40345 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
40346 _ACEOF
40347
40348 elif test $ac_cv_func_which_getservbyname_r = four; then
40349   cat >>confdefs.h <<\_ACEOF
40350 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
40351 _ACEOF
40352
40353
40354 fi
40355
40356
40357       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40358               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40359
40360 for ac_func in getservbyname
40361 do
40362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40363 echo "$as_me:$LINENO: checking for $ac_func" >&5
40364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40365 if eval "test \"\${$as_ac_var+set}\" = set"; then
40366   echo $ECHO_N "(cached) $ECHO_C" >&6
40367 else
40368   cat >conftest.$ac_ext <<_ACEOF
40369 /* confdefs.h.  */
40370 _ACEOF
40371 cat confdefs.h >>conftest.$ac_ext
40372 cat >>conftest.$ac_ext <<_ACEOF
40373 /* end confdefs.h.  */
40374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40376 #define $ac_func innocuous_$ac_func
40377
40378 /* System header to define __stub macros and hopefully few prototypes,
40379     which can conflict with char $ac_func (); below.
40380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40381     <limits.h> exists even on freestanding compilers.  */
40382
40383 #ifdef __STDC__
40384 # include <limits.h>
40385 #else
40386 # include <assert.h>
40387 #endif
40388
40389 #undef $ac_func
40390
40391 /* Override any gcc2 internal prototype to avoid an error.  */
40392 #ifdef __cplusplus
40393 extern "C"
40394 {
40395 #endif
40396 /* We use char because int might match the return type of a gcc2
40397    builtin and then its argument prototype would still apply.  */
40398 char $ac_func ();
40399 /* The GNU C library defines this for functions which it implements
40400     to always fail with ENOSYS.  Some functions are actually named
40401     something starting with __ and the normal name is an alias.  */
40402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40403 choke me
40404 #else
40405 char (*f) () = $ac_func;
40406 #endif
40407 #ifdef __cplusplus
40408 }
40409 #endif
40410
40411 int
40412 main ()
40413 {
40414 return f != $ac_func;
40415   ;
40416   return 0;
40417 }
40418 _ACEOF
40419 rm -f conftest.$ac_objext conftest$ac_exeext
40420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40421   (eval $ac_link) 2>conftest.er1
40422   ac_status=$?
40423   grep -v '^ *+' conftest.er1 >conftest.err
40424   rm -f conftest.er1
40425   cat conftest.err >&5
40426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427   (exit $ac_status); } &&
40428          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40430   (eval $ac_try) 2>&5
40431   ac_status=$?
40432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40433   (exit $ac_status); }; } &&
40434          { ac_try='test -s conftest$ac_exeext'
40435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40436   (eval $ac_try) 2>&5
40437   ac_status=$?
40438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439   (exit $ac_status); }; }; then
40440   eval "$as_ac_var=yes"
40441 else
40442   echo "$as_me: failed program was:" >&5
40443 sed 's/^/| /' conftest.$ac_ext >&5
40444
40445 eval "$as_ac_var=no"
40446 fi
40447 rm -f conftest.err conftest.$ac_objext \
40448       conftest$ac_exeext conftest.$ac_ext
40449 fi
40450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40452 if test `eval echo '${'$as_ac_var'}'` = yes; then
40453   cat >>confdefs.h <<_ACEOF
40454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40455 _ACEOF
40456   cat >>confdefs.h <<\_ACEOF
40457 #define HAVE_GETSERVBYNAME 1
40458 _ACEOF
40459
40460 fi
40461 done
40462
40463       fi
40464
40465 if test "$wxUSE_THREADS" = "yes"; then
40466   cat >>confdefs.h <<\_ACEOF
40467 #define wxUSE_THREADS 1
40468 _ACEOF
40469
40470
40471   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40472 else
40473       if test "$ac_cv_have_decl_strtok_r" = "yes"; then
40474     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40475 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40476     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40477         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40478         echo "$as_me:$LINENO: result: yes" >&5
40479 echo "${ECHO_T}yes" >&6
40480     else
40481         echo "$as_me:$LINENO: result: no" >&5
40482 echo "${ECHO_T}no" >&6
40483     fi
40484   fi
40485 fi
40486
40487 if test "$WXGTK20" = 1 ; then
40488   cat >>confdefs.h <<_ACEOF
40489 #define __WXGTK20__ $WXGTK20
40490 _ACEOF
40491
40492   WXGTK12=1
40493 fi
40494
40495 if test "$WXGTK12" = 1 ; then
40496   cat >>confdefs.h <<_ACEOF
40497 #define __WXGTK12__ $WXGTK12
40498 _ACEOF
40499
40500 fi
40501
40502 if test "$WXGTK127" = 1 ; then
40503   cat >>confdefs.h <<_ACEOF
40504 #define __WXGTK127__ $WXGTK127
40505 _ACEOF
40506
40507 fi
40508
40509 if test "$WXGPE" = 1 ; then
40510   cat >>confdefs.h <<_ACEOF
40511 #define __WXGPE__ $WXGPE
40512 _ACEOF
40513
40514 fi
40515
40516 DEBUG_CFLAGS=
40517 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40518     DEBUG_CFLAGS="-g"
40519     wxUSE_OPTIMISE=no
40520 fi
40521
40522 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40523     wxUSE_DEBUG_INFO=yes
40524     if test "$GCC" = yes; then
40525         DEBUG_CFLAGS="-ggdb"
40526     fi
40527 fi
40528
40529 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40530     cat >>confdefs.h <<\_ACEOF
40531 #define WXDEBUG 1
40532 _ACEOF
40533
40534     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40535 else
40536     if test "$wxUSE_GTK" = 1 ; then
40537         if test "x$wxGTK_VERSION" = "x1" ; then
40538             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40539         fi
40540     fi
40541 fi
40542
40543 if test "$wxUSE_MEM_TRACING" = "yes" ; then
40544     cat >>confdefs.h <<\_ACEOF
40545 #define wxUSE_MEMORY_TRACING 1
40546 _ACEOF
40547
40548     cat >>confdefs.h <<\_ACEOF
40549 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40550 _ACEOF
40551
40552     cat >>confdefs.h <<\_ACEOF
40553 #define wxUSE_DEBUG_NEW_ALWAYS 1
40554 _ACEOF
40555
40556     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40557 fi
40558
40559 if test "$wxUSE_DMALLOC" = "yes" ; then
40560     DMALLOC_LIBS="-ldmallocthcxx"
40561 fi
40562
40563 PROFILE_FLAGS=
40564 if test "$wxUSE_PROFILE" = "yes" ; then
40565     PROFILE_FLAGS=" -pg"
40566 fi
40567
40568 if test "$GCC" = "yes" ; then
40569     if test "$wxUSE_NO_RTTI" = "yes" ; then
40570         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40571     fi
40572     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40573         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40574     fi
40575     if test "$wxUSE_PERMISSIVE" = "yes" ; then
40576         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40577     fi
40578
40579                                                 case "${host}" in
40580       powerpc*-*-aix* )
40581         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40582         ;;
40583       *-hppa* )
40584         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40585         ;;
40586     esac
40587 fi
40588
40589 OPTIMISE_CFLAGS=
40590 if test "$wxUSE_OPTIMISE" = "no" ; then
40591     if test "$GCC" = yes ; then
40592                         OPTIMISE_CFLAGS="-O0"
40593     fi
40594 else
40595     if test "$GCC" = yes ; then
40596         case "${host}" in
40597             *-pc-os2_emx | *-pc-os2-emx )
40598                                                 OPTIMISE_CFLAGS="-O2"
40599             ;;
40600             *)
40601                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40602             ;;
40603         esac
40604     else
40605         OPTIMISE_CFLAGS="-O"
40606     fi
40607 fi
40608
40609
40610 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40611     cat >>confdefs.h <<\_ACEOF
40612 #define WXWIN_COMPATIBILITY_2_4 1
40613 _ACEOF
40614
40615
40616     WXWIN_COMPATIBILITY_2_6="yes"
40617 fi
40618
40619 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40620     cat >>confdefs.h <<\_ACEOF
40621 #define WXWIN_COMPATIBILITY_2_6 1
40622 _ACEOF
40623
40624 fi
40625
40626
40627 if test "$wxUSE_GUI" = "yes"; then
40628     cat >>confdefs.h <<\_ACEOF
40629 #define wxUSE_GUI 1
40630 _ACEOF
40631
40632
40633                                             fi
40634
40635
40636 if test "$wxUSE_UNIX" = "yes"; then
40637   cat >>confdefs.h <<\_ACEOF
40638 #define wxUSE_UNIX 1
40639 _ACEOF
40640
40641 fi
40642
40643
40644 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40645
40646     HAVE_DL_FUNCS=0
40647     HAVE_SHL_FUNCS=0
40648     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40649         if test "$USE_DARWIN" = 1; then
40650                         HAVE_DL_FUNCS=1
40651         elif test "$USE_DOS" = 1; then
40652             HAVE_DL_FUNCS=0
40653         else
40654
40655 for ac_func in dlopen
40656 do
40657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40658 echo "$as_me:$LINENO: checking for $ac_func" >&5
40659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40660 if eval "test \"\${$as_ac_var+set}\" = set"; then
40661   echo $ECHO_N "(cached) $ECHO_C" >&6
40662 else
40663   cat >conftest.$ac_ext <<_ACEOF
40664 /* confdefs.h.  */
40665 _ACEOF
40666 cat confdefs.h >>conftest.$ac_ext
40667 cat >>conftest.$ac_ext <<_ACEOF
40668 /* end confdefs.h.  */
40669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40671 #define $ac_func innocuous_$ac_func
40672
40673 /* System header to define __stub macros and hopefully few prototypes,
40674     which can conflict with char $ac_func (); below.
40675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40676     <limits.h> exists even on freestanding compilers.  */
40677
40678 #ifdef __STDC__
40679 # include <limits.h>
40680 #else
40681 # include <assert.h>
40682 #endif
40683
40684 #undef $ac_func
40685
40686 /* Override any gcc2 internal prototype to avoid an error.  */
40687 #ifdef __cplusplus
40688 extern "C"
40689 {
40690 #endif
40691 /* We use char because int might match the return type of a gcc2
40692    builtin and then its argument prototype would still apply.  */
40693 char $ac_func ();
40694 /* The GNU C library defines this for functions which it implements
40695     to always fail with ENOSYS.  Some functions are actually named
40696     something starting with __ and the normal name is an alias.  */
40697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40698 choke me
40699 #else
40700 char (*f) () = $ac_func;
40701 #endif
40702 #ifdef __cplusplus
40703 }
40704 #endif
40705
40706 int
40707 main ()
40708 {
40709 return f != $ac_func;
40710   ;
40711   return 0;
40712 }
40713 _ACEOF
40714 rm -f conftest.$ac_objext conftest$ac_exeext
40715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40716   (eval $ac_link) 2>conftest.er1
40717   ac_status=$?
40718   grep -v '^ *+' conftest.er1 >conftest.err
40719   rm -f conftest.er1
40720   cat conftest.err >&5
40721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40722   (exit $ac_status); } &&
40723          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40725   (eval $ac_try) 2>&5
40726   ac_status=$?
40727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40728   (exit $ac_status); }; } &&
40729          { ac_try='test -s conftest$ac_exeext'
40730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40731   (eval $ac_try) 2>&5
40732   ac_status=$?
40733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40734   (exit $ac_status); }; }; then
40735   eval "$as_ac_var=yes"
40736 else
40737   echo "$as_me: failed program was:" >&5
40738 sed 's/^/| /' conftest.$ac_ext >&5
40739
40740 eval "$as_ac_var=no"
40741 fi
40742 rm -f conftest.err conftest.$ac_objext \
40743       conftest$ac_exeext conftest.$ac_ext
40744 fi
40745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40747 if test `eval echo '${'$as_ac_var'}'` = yes; then
40748   cat >>confdefs.h <<_ACEOF
40749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40750 _ACEOF
40751
40752                 cat >>confdefs.h <<\_ACEOF
40753 #define HAVE_DLOPEN 1
40754 _ACEOF
40755
40756                 HAVE_DL_FUNCS=1
40757
40758 else
40759
40760                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40761 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40763   echo $ECHO_N "(cached) $ECHO_C" >&6
40764 else
40765   ac_check_lib_save_LIBS=$LIBS
40766 LIBS="-ldl  $LIBS"
40767 cat >conftest.$ac_ext <<_ACEOF
40768 /* confdefs.h.  */
40769 _ACEOF
40770 cat confdefs.h >>conftest.$ac_ext
40771 cat >>conftest.$ac_ext <<_ACEOF
40772 /* end confdefs.h.  */
40773
40774 /* Override any gcc2 internal prototype to avoid an error.  */
40775 #ifdef __cplusplus
40776 extern "C"
40777 #endif
40778 /* We use char because int might match the return type of a gcc2
40779    builtin and then its argument prototype would still apply.  */
40780 char dlopen ();
40781 int
40782 main ()
40783 {
40784 dlopen ();
40785   ;
40786   return 0;
40787 }
40788 _ACEOF
40789 rm -f conftest.$ac_objext conftest$ac_exeext
40790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40791   (eval $ac_link) 2>conftest.er1
40792   ac_status=$?
40793   grep -v '^ *+' conftest.er1 >conftest.err
40794   rm -f conftest.er1
40795   cat conftest.err >&5
40796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40797   (exit $ac_status); } &&
40798          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40800   (eval $ac_try) 2>&5
40801   ac_status=$?
40802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40803   (exit $ac_status); }; } &&
40804          { ac_try='test -s conftest$ac_exeext'
40805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40806   (eval $ac_try) 2>&5
40807   ac_status=$?
40808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809   (exit $ac_status); }; }; then
40810   ac_cv_lib_dl_dlopen=yes
40811 else
40812   echo "$as_me: failed program was:" >&5
40813 sed 's/^/| /' conftest.$ac_ext >&5
40814
40815 ac_cv_lib_dl_dlopen=no
40816 fi
40817 rm -f conftest.err conftest.$ac_objext \
40818       conftest$ac_exeext conftest.$ac_ext
40819 LIBS=$ac_check_lib_save_LIBS
40820 fi
40821 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40822 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40823 if test $ac_cv_lib_dl_dlopen = yes; then
40824
40825                                 cat >>confdefs.h <<\_ACEOF
40826 #define HAVE_DLOPEN 1
40827 _ACEOF
40828
40829                                 HAVE_DL_FUNCS=1
40830                                 DL_LINK=" -ldl$DL_LINK"
40831
40832 else
40833
40834
40835 for ac_func in shl_load
40836 do
40837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40838 echo "$as_me:$LINENO: checking for $ac_func" >&5
40839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40840 if eval "test \"\${$as_ac_var+set}\" = set"; then
40841   echo $ECHO_N "(cached) $ECHO_C" >&6
40842 else
40843   cat >conftest.$ac_ext <<_ACEOF
40844 /* confdefs.h.  */
40845 _ACEOF
40846 cat confdefs.h >>conftest.$ac_ext
40847 cat >>conftest.$ac_ext <<_ACEOF
40848 /* end confdefs.h.  */
40849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40851 #define $ac_func innocuous_$ac_func
40852
40853 /* System header to define __stub macros and hopefully few prototypes,
40854     which can conflict with char $ac_func (); below.
40855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40856     <limits.h> exists even on freestanding compilers.  */
40857
40858 #ifdef __STDC__
40859 # include <limits.h>
40860 #else
40861 # include <assert.h>
40862 #endif
40863
40864 #undef $ac_func
40865
40866 /* Override any gcc2 internal prototype to avoid an error.  */
40867 #ifdef __cplusplus
40868 extern "C"
40869 {
40870 #endif
40871 /* We use char because int might match the return type of a gcc2
40872    builtin and then its argument prototype would still apply.  */
40873 char $ac_func ();
40874 /* The GNU C library defines this for functions which it implements
40875     to always fail with ENOSYS.  Some functions are actually named
40876     something starting with __ and the normal name is an alias.  */
40877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40878 choke me
40879 #else
40880 char (*f) () = $ac_func;
40881 #endif
40882 #ifdef __cplusplus
40883 }
40884 #endif
40885
40886 int
40887 main ()
40888 {
40889 return f != $ac_func;
40890   ;
40891   return 0;
40892 }
40893 _ACEOF
40894 rm -f conftest.$ac_objext conftest$ac_exeext
40895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40896   (eval $ac_link) 2>conftest.er1
40897   ac_status=$?
40898   grep -v '^ *+' conftest.er1 >conftest.err
40899   rm -f conftest.er1
40900   cat conftest.err >&5
40901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40902   (exit $ac_status); } &&
40903          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40905   (eval $ac_try) 2>&5
40906   ac_status=$?
40907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40908   (exit $ac_status); }; } &&
40909          { ac_try='test -s conftest$ac_exeext'
40910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40911   (eval $ac_try) 2>&5
40912   ac_status=$?
40913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40914   (exit $ac_status); }; }; then
40915   eval "$as_ac_var=yes"
40916 else
40917   echo "$as_me: failed program was:" >&5
40918 sed 's/^/| /' conftest.$ac_ext >&5
40919
40920 eval "$as_ac_var=no"
40921 fi
40922 rm -f conftest.err conftest.$ac_objext \
40923       conftest$ac_exeext conftest.$ac_ext
40924 fi
40925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40927 if test `eval echo '${'$as_ac_var'}'` = yes; then
40928   cat >>confdefs.h <<_ACEOF
40929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40930 _ACEOF
40931
40932                                                 cat >>confdefs.h <<\_ACEOF
40933 #define HAVE_SHL_LOAD 1
40934 _ACEOF
40935
40936                                                 HAVE_SHL_FUNCS=1
40937
40938 else
40939
40940                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40941 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40942 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40943   echo $ECHO_N "(cached) $ECHO_C" >&6
40944 else
40945   ac_check_lib_save_LIBS=$LIBS
40946 LIBS="-lshl_load  $LIBS"
40947 cat >conftest.$ac_ext <<_ACEOF
40948 /* confdefs.h.  */
40949 _ACEOF
40950 cat confdefs.h >>conftest.$ac_ext
40951 cat >>conftest.$ac_ext <<_ACEOF
40952 /* end confdefs.h.  */
40953
40954 /* Override any gcc2 internal prototype to avoid an error.  */
40955 #ifdef __cplusplus
40956 extern "C"
40957 #endif
40958 /* We use char because int might match the return type of a gcc2
40959    builtin and then its argument prototype would still apply.  */
40960 char dld ();
40961 int
40962 main ()
40963 {
40964 dld ();
40965   ;
40966   return 0;
40967 }
40968 _ACEOF
40969 rm -f conftest.$ac_objext conftest$ac_exeext
40970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40971   (eval $ac_link) 2>conftest.er1
40972   ac_status=$?
40973   grep -v '^ *+' conftest.er1 >conftest.err
40974   rm -f conftest.er1
40975   cat conftest.err >&5
40976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977   (exit $ac_status); } &&
40978          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40980   (eval $ac_try) 2>&5
40981   ac_status=$?
40982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40983   (exit $ac_status); }; } &&
40984          { ac_try='test -s conftest$ac_exeext'
40985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40986   (eval $ac_try) 2>&5
40987   ac_status=$?
40988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40989   (exit $ac_status); }; }; then
40990   ac_cv_lib_shl_load_dld=yes
40991 else
40992   echo "$as_me: failed program was:" >&5
40993 sed 's/^/| /' conftest.$ac_ext >&5
40994
40995 ac_cv_lib_shl_load_dld=no
40996 fi
40997 rm -f conftest.err conftest.$ac_objext \
40998       conftest$ac_exeext conftest.$ac_ext
40999 LIBS=$ac_check_lib_save_LIBS
41000 fi
41001 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41002 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41003 if test $ac_cv_lib_shl_load_dld = yes; then
41004
41005                                                                 HAVE_SHL_FUNCS=1
41006                                                                 DL_LINK=" -ldld$DL_LINK"
41007
41008 fi
41009
41010
41011 fi
41012 done
41013
41014
41015 fi
41016
41017
41018 fi
41019 done
41020
41021
41022                 if test "$HAVE_DL_FUNCS" = 1; then
41023
41024 for ac_func in dlerror
41025 do
41026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41027 echo "$as_me:$LINENO: checking for $ac_func" >&5
41028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41029 if eval "test \"\${$as_ac_var+set}\" = set"; then
41030   echo $ECHO_N "(cached) $ECHO_C" >&6
41031 else
41032   cat >conftest.$ac_ext <<_ACEOF
41033 /* confdefs.h.  */
41034 _ACEOF
41035 cat confdefs.h >>conftest.$ac_ext
41036 cat >>conftest.$ac_ext <<_ACEOF
41037 /* end confdefs.h.  */
41038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41040 #define $ac_func innocuous_$ac_func
41041
41042 /* System header to define __stub macros and hopefully few prototypes,
41043     which can conflict with char $ac_func (); below.
41044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41045     <limits.h> exists even on freestanding compilers.  */
41046
41047 #ifdef __STDC__
41048 # include <limits.h>
41049 #else
41050 # include <assert.h>
41051 #endif
41052
41053 #undef $ac_func
41054
41055 /* Override any gcc2 internal prototype to avoid an error.  */
41056 #ifdef __cplusplus
41057 extern "C"
41058 {
41059 #endif
41060 /* We use char because int might match the return type of a gcc2
41061    builtin and then its argument prototype would still apply.  */
41062 char $ac_func ();
41063 /* The GNU C library defines this for functions which it implements
41064     to always fail with ENOSYS.  Some functions are actually named
41065     something starting with __ and the normal name is an alias.  */
41066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41067 choke me
41068 #else
41069 char (*f) () = $ac_func;
41070 #endif
41071 #ifdef __cplusplus
41072 }
41073 #endif
41074
41075 int
41076 main ()
41077 {
41078 return f != $ac_func;
41079   ;
41080   return 0;
41081 }
41082 _ACEOF
41083 rm -f conftest.$ac_objext conftest$ac_exeext
41084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41085   (eval $ac_link) 2>conftest.er1
41086   ac_status=$?
41087   grep -v '^ *+' conftest.er1 >conftest.err
41088   rm -f conftest.er1
41089   cat conftest.err >&5
41090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41091   (exit $ac_status); } &&
41092          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41094   (eval $ac_try) 2>&5
41095   ac_status=$?
41096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41097   (exit $ac_status); }; } &&
41098          { ac_try='test -s conftest$ac_exeext'
41099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41100   (eval $ac_try) 2>&5
41101   ac_status=$?
41102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41103   (exit $ac_status); }; }; then
41104   eval "$as_ac_var=yes"
41105 else
41106   echo "$as_me: failed program was:" >&5
41107 sed 's/^/| /' conftest.$ac_ext >&5
41108
41109 eval "$as_ac_var=no"
41110 fi
41111 rm -f conftest.err conftest.$ac_objext \
41112       conftest$ac_exeext conftest.$ac_ext
41113 fi
41114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41116 if test `eval echo '${'$as_ac_var'}'` = yes; then
41117   cat >>confdefs.h <<_ACEOF
41118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41119 _ACEOF
41120  cat >>confdefs.h <<\_ACEOF
41121 #define HAVE_DLERROR 1
41122 _ACEOF
41123
41124 else
41125
41126                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41127 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41128 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41129   echo $ECHO_N "(cached) $ECHO_C" >&6
41130 else
41131   ac_check_lib_save_LIBS=$LIBS
41132 LIBS="-ldl  $LIBS"
41133 cat >conftest.$ac_ext <<_ACEOF
41134 /* confdefs.h.  */
41135 _ACEOF
41136 cat confdefs.h >>conftest.$ac_ext
41137 cat >>conftest.$ac_ext <<_ACEOF
41138 /* end confdefs.h.  */
41139
41140 /* Override any gcc2 internal prototype to avoid an error.  */
41141 #ifdef __cplusplus
41142 extern "C"
41143 #endif
41144 /* We use char because int might match the return type of a gcc2
41145    builtin and then its argument prototype would still apply.  */
41146 char dlerror ();
41147 int
41148 main ()
41149 {
41150 dlerror ();
41151   ;
41152   return 0;
41153 }
41154 _ACEOF
41155 rm -f conftest.$ac_objext conftest$ac_exeext
41156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41157   (eval $ac_link) 2>conftest.er1
41158   ac_status=$?
41159   grep -v '^ *+' conftest.er1 >conftest.err
41160   rm -f conftest.er1
41161   cat conftest.err >&5
41162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41163   (exit $ac_status); } &&
41164          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41166   (eval $ac_try) 2>&5
41167   ac_status=$?
41168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41169   (exit $ac_status); }; } &&
41170          { ac_try='test -s conftest$ac_exeext'
41171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41172   (eval $ac_try) 2>&5
41173   ac_status=$?
41174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175   (exit $ac_status); }; }; then
41176   ac_cv_lib_dl_dlerror=yes
41177 else
41178   echo "$as_me: failed program was:" >&5
41179 sed 's/^/| /' conftest.$ac_ext >&5
41180
41181 ac_cv_lib_dl_dlerror=no
41182 fi
41183 rm -f conftest.err conftest.$ac_objext \
41184       conftest$ac_exeext conftest.$ac_ext
41185 LIBS=$ac_check_lib_save_LIBS
41186 fi
41187 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41188 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41189 if test $ac_cv_lib_dl_dlerror = yes; then
41190   cat >>confdefs.h <<\_ACEOF
41191 #define HAVE_DLERROR 1
41192 _ACEOF
41193
41194 fi
41195
41196
41197
41198 fi
41199 done
41200
41201         fi
41202         fi
41203
41204         if test "$HAVE_DL_FUNCS" = 0; then
41205             if test "$HAVE_SHL_FUNCS" = 0; then
41206               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41207                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41208 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41209                   wxUSE_DYNAMIC_LOADER=no
41210                   wxUSE_DYNLIB_CLASS=no
41211               else
41212                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41213 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41214               fi
41215             fi
41216         fi
41217     fi
41218 fi
41219
41220 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41221     cat >>confdefs.h <<\_ACEOF
41222 #define wxUSE_DYNAMIC_LOADER 1
41223 _ACEOF
41224
41225 fi
41226 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41227     cat >>confdefs.h <<\_ACEOF
41228 #define wxUSE_DYNLIB_CLASS 1
41229 _ACEOF
41230
41231 fi
41232
41233
41234
41235 if test "$wxUSE_PLUGINS" = "yes" ; then
41236     if test "$wxUSE_SHARED" = "no" ; then
41237         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41238 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41239         wxUSE_PLUGINS=no
41240     fi
41241     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41242         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41243 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41244         wxUSE_PLUGINS=no
41245     fi
41246     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41247         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41248 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41249         wxUSE_PLUGINS=no
41250     fi
41251     if test "$wxUSE_PLUGINS" = "yes" ; then
41252         cat >>confdefs.h <<\_ACEOF
41253 #define wxUSE_PLUGINS 1
41254 _ACEOF
41255
41256     fi
41257 fi
41258
41259
41260 if test "$wxUSE_STL" = "yes"; then
41261   cat >>confdefs.h <<\_ACEOF
41262 #define wxUSE_STL 1
41263 _ACEOF
41264
41265 fi
41266
41267 if test "$wxUSE_APPLE_IEEE" = "yes"; then
41268   cat >>confdefs.h <<\_ACEOF
41269 #define wxUSE_APPLE_IEEE 1
41270 _ACEOF
41271
41272 fi
41273
41274 if test "$wxUSE_TIMER" = "yes"; then
41275   cat >>confdefs.h <<\_ACEOF
41276 #define wxUSE_TIMER 1
41277 _ACEOF
41278
41279 fi
41280
41281 if test "$USE_UNIX" = "1" ; then
41282                 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41283 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
41284 if test "${ac_cv_header_sys_soundcard+set}" = set; then
41285   echo $ECHO_N "(cached) $ECHO_C" >&6
41286 else
41287
41288         cat >conftest.$ac_ext <<_ACEOF
41289 /* confdefs.h.  */
41290 _ACEOF
41291 cat confdefs.h >>conftest.$ac_ext
41292 cat >>conftest.$ac_ext <<_ACEOF
41293 /* end confdefs.h.  */
41294
41295                 #include <sys/ioctl.h>
41296                 #include <sys/soundcard.h>
41297
41298 int
41299 main ()
41300 {
41301
41302                 ioctl(0, SNDCTL_DSP_SPEED, 0);
41303
41304   ;
41305   return 0;
41306 }
41307 _ACEOF
41308 rm -f conftest.$ac_objext conftest$ac_exeext
41309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41310   (eval $ac_link) 2>conftest.er1
41311   ac_status=$?
41312   grep -v '^ *+' conftest.er1 >conftest.err
41313   rm -f conftest.er1
41314   cat conftest.err >&5
41315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41316   (exit $ac_status); } &&
41317          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41319   (eval $ac_try) 2>&5
41320   ac_status=$?
41321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41322   (exit $ac_status); }; } &&
41323          { ac_try='test -s conftest$ac_exeext'
41324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41325   (eval $ac_try) 2>&5
41326   ac_status=$?
41327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41328   (exit $ac_status); }; }; then
41329   ac_cv_header_sys_soundcard=yes
41330 else
41331   echo "$as_me: failed program was:" >&5
41332 sed 's/^/| /' conftest.$ac_ext >&5
41333
41334
41335                 saveLibs="$LIBS"
41336                 LIBS="$saveLibs -lossaudio"
41337                 cat >conftest.$ac_ext <<_ACEOF
41338 /* confdefs.h.  */
41339 _ACEOF
41340 cat confdefs.h >>conftest.$ac_ext
41341 cat >>conftest.$ac_ext <<_ACEOF
41342 /* end confdefs.h.  */
41343
41344                         #include <sys/ioctl.h>
41345                         #include <sys/soundcard.h>
41346
41347 int
41348 main ()
41349 {
41350
41351                         ioctl(0, SNDCTL_DSP_SPEED, 0);
41352
41353   ;
41354   return 0;
41355 }
41356 _ACEOF
41357 rm -f conftest.$ac_objext conftest$ac_exeext
41358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41359   (eval $ac_link) 2>conftest.er1
41360   ac_status=$?
41361   grep -v '^ *+' conftest.er1 >conftest.err
41362   rm -f conftest.er1
41363   cat conftest.err >&5
41364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365   (exit $ac_status); } &&
41366          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41368   (eval $ac_try) 2>&5
41369   ac_status=$?
41370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41371   (exit $ac_status); }; } &&
41372          { ac_try='test -s conftest$ac_exeext'
41373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41374   (eval $ac_try) 2>&5
41375   ac_status=$?
41376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377   (exit $ac_status); }; }; then
41378   ac_cv_header_sys_soundcard=yes
41379 else
41380   echo "$as_me: failed program was:" >&5
41381 sed 's/^/| /' conftest.$ac_ext >&5
41382
41383
41384                         LIBS="$saveLibs"
41385                         ac_cv_header_sys_soundcard=no
41386
41387
41388 fi
41389 rm -f conftest.err conftest.$ac_objext \
41390       conftest$ac_exeext conftest.$ac_ext
41391
41392
41393 fi
41394 rm -f conftest.err conftest.$ac_objext \
41395       conftest$ac_exeext conftest.$ac_ext
41396
41397 fi
41398 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41399 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
41400
41401     if test "$ac_cv_header_sys_soundcard" = "yes"; then
41402         cat >>confdefs.h <<\_ACEOF
41403 #define HAVE_SYS_SOUNDCARD_H 1
41404 _ACEOF
41405
41406     else
41407         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41408     fi
41409 fi
41410 WITH_PLUGIN_SDL=0
41411 if test "$wxUSE_SOUND" = "yes"; then
41412   if test "$USE_UNIX" = "1" ; then
41413     if test "$wxUSE_LIBSDL" != "no"; then
41414
41415 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41416 if test "${with_sdl_prefix+set}" = set; then
41417   withval="$with_sdl_prefix"
41418   sdl_prefix="$withval"
41419 else
41420   sdl_prefix=""
41421 fi;
41422
41423 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41424 if test "${with_sdl_exec_prefix+set}" = set; then
41425   withval="$with_sdl_exec_prefix"
41426   sdl_exec_prefix="$withval"
41427 else
41428   sdl_exec_prefix=""
41429 fi;
41430 # Check whether --enable-sdltest or --disable-sdltest was given.
41431 if test "${enable_sdltest+set}" = set; then
41432   enableval="$enable_sdltest"
41433
41434 else
41435   enable_sdltest=yes
41436 fi;
41437
41438   if test x$sdl_exec_prefix != x ; then
41439     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41440     if test x${SDL_CONFIG+set} != xset ; then
41441       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41442     fi
41443   fi
41444   if test x$sdl_prefix != x ; then
41445     sdl_args="$sdl_args --prefix=$sdl_prefix"
41446     if test x${SDL_CONFIG+set} != xset ; then
41447       SDL_CONFIG=$sdl_prefix/bin/sdl-config
41448     fi
41449   fi
41450
41451   if test "x$prefix" != xNONE; then
41452     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41453   fi
41454   # Extract the first word of "sdl-config", so it can be a program name with args.
41455 set dummy sdl-config; ac_word=$2
41456 echo "$as_me:$LINENO: checking for $ac_word" >&5
41457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41458 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41459   echo $ECHO_N "(cached) $ECHO_C" >&6
41460 else
41461   case $SDL_CONFIG in
41462   [\\/]* | ?:[\\/]*)
41463   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41464   ;;
41465   *)
41466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41467 for as_dir in $PATH
41468 do
41469   IFS=$as_save_IFS
41470   test -z "$as_dir" && as_dir=.
41471   for ac_exec_ext in '' $ac_executable_extensions; do
41472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41473     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41475     break 2
41476   fi
41477 done
41478 done
41479
41480   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41481   ;;
41482 esac
41483 fi
41484 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41485
41486 if test -n "$SDL_CONFIG"; then
41487   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41488 echo "${ECHO_T}$SDL_CONFIG" >&6
41489 else
41490   echo "$as_me:$LINENO: result: no" >&5
41491 echo "${ECHO_T}no" >&6
41492 fi
41493
41494   min_sdl_version=1.2.0
41495   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41496 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41497   no_sdl=""
41498   if test "$SDL_CONFIG" = "no" ; then
41499     no_sdl=yes
41500   else
41501     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41502     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41503
41504     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41505            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41506     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41507            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41508     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41509            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41510     if test "x$enable_sdltest" = "xyes" ; then
41511       ac_save_CFLAGS="$CFLAGS"
41512       ac_save_CXXFLAGS="$CXXFLAGS"
41513       ac_save_LIBS="$LIBS"
41514       CFLAGS="$CFLAGS $SDL_CFLAGS"
41515       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41516       LIBS="$LIBS $SDL_LIBS"
41517       rm -f conf.sdltest
41518       if test "$cross_compiling" = yes; then
41519   echo $ac_n "cross compiling; assumed OK... $ac_c"
41520 else
41521   cat >conftest.$ac_ext <<_ACEOF
41522 /* confdefs.h.  */
41523 _ACEOF
41524 cat confdefs.h >>conftest.$ac_ext
41525 cat >>conftest.$ac_ext <<_ACEOF
41526 /* end confdefs.h.  */
41527
41528 #include <stdio.h>
41529 #include <stdlib.h>
41530 #include <string.h>
41531 #include "SDL.h"
41532
41533 char*
41534 my_strdup (char *str)
41535 {
41536   char *new_str;
41537
41538   if (str)
41539     {
41540       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41541       strcpy (new_str, str);
41542     }
41543   else
41544     new_str = NULL;
41545
41546   return new_str;
41547 }
41548
41549 int main (int argc, char *argv[])
41550 {
41551   int major, minor, micro;
41552   char *tmp_version;
41553
41554   /* This hangs on some systems (?)
41555   system ("touch conf.sdltest");
41556   */
41557   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41558
41559   /* HP/UX 9 (%@#!) writes to sscanf strings */
41560   tmp_version = my_strdup("$min_sdl_version");
41561   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41562      printf("%s, bad version string\n", "$min_sdl_version");
41563      exit(1);
41564    }
41565
41566    if (($sdl_major_version > major) ||
41567       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41568       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41569     {
41570       return 0;
41571     }
41572   else
41573     {
41574       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41575       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41576       printf("*** best to upgrade to the required version.\n");
41577       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41578       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41579       printf("*** config.cache before re-running configure\n");
41580       return 1;
41581     }
41582 }
41583
41584
41585 _ACEOF
41586 rm -f conftest$ac_exeext
41587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41588   (eval $ac_link) 2>&5
41589   ac_status=$?
41590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41593   (eval $ac_try) 2>&5
41594   ac_status=$?
41595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41596   (exit $ac_status); }; }; then
41597   :
41598 else
41599   echo "$as_me: program exited with status $ac_status" >&5
41600 echo "$as_me: failed program was:" >&5
41601 sed 's/^/| /' conftest.$ac_ext >&5
41602
41603 ( exit $ac_status )
41604 no_sdl=yes
41605 fi
41606 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41607 fi
41608        CFLAGS="$ac_save_CFLAGS"
41609        CXXFLAGS="$ac_save_CXXFLAGS"
41610        LIBS="$ac_save_LIBS"
41611      fi
41612   fi
41613   if test "x$no_sdl" = x ; then
41614      echo "$as_me:$LINENO: result: yes" >&5
41615 echo "${ECHO_T}yes" >&6
41616
41617                     EXTRALIBS_SDL="$SDL_LIBS"
41618                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
41619                     cat >>confdefs.h <<\_ACEOF
41620 #define wxUSE_LIBSDL 1
41621 _ACEOF
41622
41623
41624   else
41625      echo "$as_me:$LINENO: result: no" >&5
41626 echo "${ECHO_T}no" >&6
41627      if test "$SDL_CONFIG" = "no" ; then
41628        echo "*** The sdl-config script installed by SDL could not be found"
41629        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41630        echo "*** your path, or set the SDL_CONFIG environment variable to the"
41631        echo "*** full path to sdl-config."
41632      else
41633        if test -f conf.sdltest ; then
41634         :
41635        else
41636           echo "*** Could not run SDL test program, checking why..."
41637           CFLAGS="$CFLAGS $SDL_CFLAGS"
41638           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41639           LIBS="$LIBS $SDL_LIBS"
41640           cat >conftest.$ac_ext <<_ACEOF
41641 /* confdefs.h.  */
41642 _ACEOF
41643 cat confdefs.h >>conftest.$ac_ext
41644 cat >>conftest.$ac_ext <<_ACEOF
41645 /* end confdefs.h.  */
41646
41647 #include <stdio.h>
41648 #include "SDL.h"
41649
41650 int main(int argc, char *argv[])
41651 { return 0; }
41652 #undef  main
41653 #define main K_and_R_C_main
41654
41655 int
41656 main ()
41657 {
41658  return 0;
41659   ;
41660   return 0;
41661 }
41662 _ACEOF
41663 rm -f conftest.$ac_objext conftest$ac_exeext
41664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41665   (eval $ac_link) 2>conftest.er1
41666   ac_status=$?
41667   grep -v '^ *+' conftest.er1 >conftest.err
41668   rm -f conftest.er1
41669   cat conftest.err >&5
41670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671   (exit $ac_status); } &&
41672          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41674   (eval $ac_try) 2>&5
41675   ac_status=$?
41676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41677   (exit $ac_status); }; } &&
41678          { ac_try='test -s conftest$ac_exeext'
41679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41680   (eval $ac_try) 2>&5
41681   ac_status=$?
41682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41683   (exit $ac_status); }; }; then
41684    echo "*** The test program compiled, but did not run. This usually means"
41685           echo "*** that the run-time linker is not finding SDL or finding the wrong"
41686           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41687           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41688           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
41689           echo "*** is required on your system"
41690           echo "***"
41691           echo "*** If you have an old version installed, it is best to remove it, although"
41692           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41693 else
41694   echo "$as_me: failed program was:" >&5
41695 sed 's/^/| /' conftest.$ac_ext >&5
41696
41697  echo "*** The test program failed to compile or link. See the file config.log for the"
41698           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41699           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41700           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41701 fi
41702 rm -f conftest.err conftest.$ac_objext \
41703       conftest$ac_exeext conftest.$ac_ext
41704           CFLAGS="$ac_save_CFLAGS"
41705           CXXFLAGS="$ac_save_CXXFLAGS"
41706           LIBS="$ac_save_LIBS"
41707        fi
41708      fi
41709      SDL_CFLAGS=""
41710      SDL_LIBS=""
41711      wxUSE_LIBSDL="no"
41712   fi
41713
41714
41715   rm -f conf.sdltest
41716
41717       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41718         WITH_PLUGIN_SDL=1
41719       fi
41720     fi
41721   fi
41722
41723   cat >>confdefs.h <<\_ACEOF
41724 #define wxUSE_SOUND 1
41725 _ACEOF
41726
41727   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41728 fi
41729
41730 if test "$WXGTK20" = 1; then
41731     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41732         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41733
41734
41735 pkg_failed=no
41736 echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
41737 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
41738
41739 if test -n "$PKG_CONFIG"; then
41740     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
41741         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
41742     else
41743         if test -n "$PKG_CONFIG" && \
41744     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41745   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41746   ac_status=$?
41747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748   (exit $ac_status); }; then
41749   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
41750 else
41751   pkg_failed=yes
41752 fi
41753     fi
41754 else
41755         pkg_failed=untried
41756 fi
41757 if test -n "$PKG_CONFIG"; then
41758     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
41759         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
41760     else
41761         if test -n "$PKG_CONFIG" && \
41762     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41763   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41764   ac_status=$?
41765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41766   (exit $ac_status); }; then
41767   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
41768 else
41769   pkg_failed=yes
41770 fi
41771     fi
41772 else
41773         pkg_failed=untried
41774 fi
41775
41776
41777
41778 if test $pkg_failed = yes; then
41779
41780 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41781         _pkg_short_errors_supported=yes
41782 else
41783         _pkg_short_errors_supported=no
41784 fi
41785         if test $_pkg_short_errors_supported = yes; then
41786                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41787         else
41788                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41789         fi
41790         # Put the nasty error message in config.log where it belongs
41791         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
41792
41793
41794                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41795 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41796                         wxUSE_LIBGNOMEPRINT="no"
41797
41798
41799 elif test $pkg_failed = untried; then
41800
41801                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41802 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41803                         wxUSE_LIBGNOMEPRINT="no"
41804
41805
41806 else
41807         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
41808         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
41809         echo "$as_me:$LINENO: result: yes" >&5
41810 echo "${ECHO_T}yes" >&6
41811
41812                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
41813                         cat >>confdefs.h <<\_ACEOF
41814 #define wxUSE_LIBGNOMEPRINT 1
41815 _ACEOF
41816
41817
41818 fi
41819         fi
41820     fi
41821 fi
41822
41823 if test "$WXGTK20" = 1; then
41824     if test "$wxUSE_MIMETYPE" = "yes" ; then
41825         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41826
41827
41828 pkg_failed=no
41829 echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
41830 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
41831
41832 if test -n "$PKG_CONFIG"; then
41833     if test -n "$GNOMEVFS_CFLAGS"; then
41834         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
41835     else
41836         if test -n "$PKG_CONFIG" && \
41837     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41838   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41839   ac_status=$?
41840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41841   (exit $ac_status); }; then
41842   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
41843 else
41844   pkg_failed=yes
41845 fi
41846     fi
41847 else
41848         pkg_failed=untried
41849 fi
41850 if test -n "$PKG_CONFIG"; then
41851     if test -n "$GNOMEVFS_LIBS"; then
41852         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
41853     else
41854         if test -n "$PKG_CONFIG" && \
41855     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41856   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41857   ac_status=$?
41858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41859   (exit $ac_status); }; then
41860   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
41861 else
41862   pkg_failed=yes
41863 fi
41864     fi
41865 else
41866         pkg_failed=untried
41867 fi
41868
41869
41870
41871 if test $pkg_failed = yes; then
41872
41873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41874         _pkg_short_errors_supported=yes
41875 else
41876         _pkg_short_errors_supported=no
41877 fi
41878         if test $_pkg_short_errors_supported = yes; then
41879                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41880         else
41881                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41882         fi
41883         # Put the nasty error message in config.log where it belongs
41884         echo "$GNOMEVFS_PKG_ERRORS" >&5
41885
41886
41887                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41888 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41889                         wxUSE_LIBGNOMEVFS="no"
41890
41891
41892 elif test $pkg_failed = untried; then
41893
41894                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41895 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41896                         wxUSE_LIBGNOMEVFS="no"
41897
41898
41899 else
41900         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
41901         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
41902         echo "$as_me:$LINENO: result: yes" >&5
41903 echo "${ECHO_T}yes" >&6
41904
41905                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41906                         cat >>confdefs.h <<\_ACEOF
41907 #define wxUSE_LIBGNOMEVFS 1
41908 _ACEOF
41909
41910
41911 fi
41912         fi
41913     fi
41914 fi
41915
41916 if test "$WXGTK20" = 1; then
41917     if test "$wxUSE_LIBHILDON" = "yes" ; then
41918
41919 pkg_failed=no
41920 echo "$as_me:$LINENO: checking for HILDON" >&5
41921 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
41922
41923 if test -n "$PKG_CONFIG"; then
41924     if test -n "$HILDON_CFLAGS"; then
41925         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
41926     else
41927         if test -n "$PKG_CONFIG" && \
41928     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
41929   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
41930   ac_status=$?
41931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41932   (exit $ac_status); }; then
41933   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
41934 else
41935   pkg_failed=yes
41936 fi
41937     fi
41938 else
41939         pkg_failed=untried
41940 fi
41941 if test -n "$PKG_CONFIG"; then
41942     if test -n "$HILDON_LIBS"; then
41943         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
41944     else
41945         if test -n "$PKG_CONFIG" && \
41946     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
41947   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
41948   ac_status=$?
41949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41950   (exit $ac_status); }; then
41951   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
41952 else
41953   pkg_failed=yes
41954 fi
41955     fi
41956 else
41957         pkg_failed=untried
41958 fi
41959
41960
41961
41962 if test $pkg_failed = yes; then
41963
41964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41965         _pkg_short_errors_supported=yes
41966 else
41967         _pkg_short_errors_supported=no
41968 fi
41969         if test $_pkg_short_errors_supported = yes; then
41970                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41971         else
41972                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41973         fi
41974         # Put the nasty error message in config.log where it belongs
41975         echo "$HILDON_PKG_ERRORS" >&5
41976
41977
41978                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41979 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41980                         wxUSE_LIBHILDON="no"
41981
41982
41983 elif test $pkg_failed = untried; then
41984
41985                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41986 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41987                         wxUSE_LIBHILDON="no"
41988
41989
41990 else
41991         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
41992         HILDON_LIBS=$pkg_cv_HILDON_LIBS
41993         echo "$as_me:$LINENO: result: yes" >&5
41994 echo "${ECHO_T}yes" >&6
41995
41996                 EXTRALIBS_HILDON="$HILDON_LIBS"
41997                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41998                 cat >>confdefs.h <<\_ACEOF
41999 #define wxUSE_LIBHILDON 1
42000 _ACEOF
42001
42002
42003 fi
42004     fi
42005 fi
42006
42007 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42008   cat >>confdefs.h <<\_ACEOF
42009 #define wxUSE_CMDLINE_PARSER 1
42010 _ACEOF
42011
42012 fi
42013
42014 if test "$wxUSE_STOPWATCH" = "yes"; then
42015   cat >>confdefs.h <<\_ACEOF
42016 #define wxUSE_STOPWATCH 1
42017 _ACEOF
42018
42019 fi
42020
42021 if test "$wxUSE_DATETIME" = "yes"; then
42022   cat >>confdefs.h <<\_ACEOF
42023 #define wxUSE_DATETIME 1
42024 _ACEOF
42025
42026 fi
42027
42028 if test "$wxUSE_FILE" = "yes"; then
42029   cat >>confdefs.h <<\_ACEOF
42030 #define wxUSE_FILE 1
42031 _ACEOF
42032
42033 fi
42034
42035 if test "$wxUSE_FFILE" = "yes"; then
42036   cat >>confdefs.h <<\_ACEOF
42037 #define wxUSE_FFILE 1
42038 _ACEOF
42039
42040 fi
42041
42042 if test "$wxUSE_FILESYSTEM" = "yes"; then
42043   cat >>confdefs.h <<\_ACEOF
42044 #define wxUSE_FILESYSTEM 1
42045 _ACEOF
42046
42047 fi
42048
42049 if test "$wxUSE_FS_ZIP" = "yes"; then
42050   cat >>confdefs.h <<\_ACEOF
42051 #define wxUSE_FS_ZIP 1
42052 _ACEOF
42053
42054 fi
42055
42056 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
42057   cat >>confdefs.h <<\_ACEOF
42058 #define wxUSE_ARCHIVE_STREAMS 1
42059 _ACEOF
42060
42061 fi
42062
42063 if test "$wxUSE_ZIPSTREAM" = "yes"; then
42064   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42065     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42066 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42067   elif test "$wxUSE_ZLIB" = "no"; then
42068     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42069 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42070   else
42071     cat >>confdefs.h <<\_ACEOF
42072 #define wxUSE_ZIPSTREAM 1
42073 _ACEOF
42074
42075   fi
42076 fi
42077
42078 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42079   if test "$USE_UNIX" != 1; then
42080     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42081 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42082     wxUSE_ON_FATAL_EXCEPTION=no
42083   else
42084     cat >>confdefs.h <<\_ACEOF
42085 #define wxUSE_ON_FATAL_EXCEPTION 1
42086 _ACEOF
42087
42088   fi
42089 fi
42090
42091 if test "$wxUSE_STACKWALKER" = "yes"; then
42092     cat >>confdefs.h <<\_ACEOF
42093 #define wxUSE_STACKWALKER 1
42094 _ACEOF
42095
42096 fi
42097
42098 if test "$wxUSE_DEBUGREPORT" = "yes"; then
42099     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42100         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42101 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
42102         wxUSE_DEBUGREPORT=no
42103     else
42104         cat >>confdefs.h <<\_ACEOF
42105 #define wxUSE_DEBUGREPORT 1
42106 _ACEOF
42107
42108         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42109             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42110         fi
42111     fi
42112 fi
42113
42114 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42115   cat >>confdefs.h <<\_ACEOF
42116 #define wxUSE_SNGLINST_CHECKER 1
42117 _ACEOF
42118
42119 fi
42120
42121 if test "$wxUSE_BUSYINFO" = "yes"; then
42122   cat >>confdefs.h <<\_ACEOF
42123 #define wxUSE_BUSYINFO 1
42124 _ACEOF
42125
42126 fi
42127
42128 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42129   cat >>confdefs.h <<\_ACEOF
42130 #define wxUSE_STD_IOSTREAM 1
42131 _ACEOF
42132
42133 fi
42134
42135 if test "$wxUSE_STD_STRING" = "yes"; then
42136   cat >>confdefs.h <<\_ACEOF
42137 #define wxUSE_STD_STRING 1
42138 _ACEOF
42139
42140 fi
42141
42142 if test "$wxUSE_STDPATHS" = "yes"; then
42143   cat >>confdefs.h <<\_ACEOF
42144 #define wxUSE_STDPATHS 1
42145 _ACEOF
42146
42147 fi
42148
42149 if test "$wxUSE_TEXTBUFFER" = "yes"; then
42150     cat >>confdefs.h <<\_ACEOF
42151 #define wxUSE_TEXTBUFFER 1
42152 _ACEOF
42153
42154 fi
42155
42156 if test "$wxUSE_TEXTFILE" = "yes"; then
42157   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42158     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42159 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42160   else
42161     cat >>confdefs.h <<\_ACEOF
42162 #define wxUSE_TEXTFILE 1
42163 _ACEOF
42164
42165   fi
42166 fi
42167
42168 if test "$wxUSE_CONFIG" = "yes" ; then
42169   if test "$wxUSE_TEXTFILE" != "yes"; then
42170     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42171 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42172   else
42173     cat >>confdefs.h <<\_ACEOF
42174 #define wxUSE_CONFIG 1
42175 _ACEOF
42176
42177     cat >>confdefs.h <<\_ACEOF
42178 #define wxUSE_CONFIG_NATIVE 1
42179 _ACEOF
42180
42181     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42182   fi
42183 fi
42184
42185 if test "$wxUSE_INTL" = "yes" ; then
42186   if test "$wxUSE_FILE" != "yes"; then
42187     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42188 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42189   else
42190     cat >>confdefs.h <<\_ACEOF
42191 #define wxUSE_INTL 1
42192 _ACEOF
42193
42194     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42195     GUIDIST="$GUIDIST INTL_DIST"
42196   fi
42197 fi
42198
42199 if test "$wxUSE_LOG" = "yes"; then
42200   cat >>confdefs.h <<\_ACEOF
42201 #define wxUSE_LOG 1
42202 _ACEOF
42203
42204
42205     if test "$wxUSE_LOGGUI" = "yes"; then
42206       cat >>confdefs.h <<\_ACEOF
42207 #define wxUSE_LOGGUI 1
42208 _ACEOF
42209
42210     fi
42211
42212     if test "$wxUSE_LOGWINDOW" = "yes"; then
42213       cat >>confdefs.h <<\_ACEOF
42214 #define wxUSE_LOGWINDOW 1
42215 _ACEOF
42216
42217     fi
42218
42219     if test "$wxUSE_LOGDIALOG" = "yes"; then
42220       cat >>confdefs.h <<\_ACEOF
42221 #define wxUSE_LOG_DIALOG 1
42222 _ACEOF
42223
42224     fi
42225
42226         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
42227 fi
42228
42229 if test "$wxUSE_LONGLONG" = "yes"; then
42230   cat >>confdefs.h <<\_ACEOF
42231 #define wxUSE_LONGLONG 1
42232 _ACEOF
42233
42234 fi
42235
42236 if test "$wxUSE_GEOMETRY" = "yes"; then
42237   cat >>confdefs.h <<\_ACEOF
42238 #define wxUSE_GEOMETRY 1
42239 _ACEOF
42240
42241 fi
42242
42243 if test "$wxUSE_STREAMS" = "yes" ; then
42244   cat >>confdefs.h <<\_ACEOF
42245 #define wxUSE_STREAMS 1
42246 _ACEOF
42247
42248 fi
42249
42250 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42251   cat >>confdefs.h <<\_ACEOF
42252 #define wxUSE_PRINTF_POS_PARAMS 1
42253 _ACEOF
42254
42255 fi
42256
42257
42258
42259 if test "$wxUSE_DATETIME" = "yes"; then
42260
42261 for ac_func in strptime
42262 do
42263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42264 echo "$as_me:$LINENO: checking for $ac_func" >&5
42265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42266 if eval "test \"\${$as_ac_var+set}\" = set"; then
42267   echo $ECHO_N "(cached) $ECHO_C" >&6
42268 else
42269   cat >conftest.$ac_ext <<_ACEOF
42270 /* confdefs.h.  */
42271 _ACEOF
42272 cat confdefs.h >>conftest.$ac_ext
42273 cat >>conftest.$ac_ext <<_ACEOF
42274 /* end confdefs.h.  */
42275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42277 #define $ac_func innocuous_$ac_func
42278
42279 /* System header to define __stub macros and hopefully few prototypes,
42280     which can conflict with char $ac_func (); below.
42281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42282     <limits.h> exists even on freestanding compilers.  */
42283
42284 #ifdef __STDC__
42285 # include <limits.h>
42286 #else
42287 # include <assert.h>
42288 #endif
42289
42290 #undef $ac_func
42291
42292 /* Override any gcc2 internal prototype to avoid an error.  */
42293 #ifdef __cplusplus
42294 extern "C"
42295 {
42296 #endif
42297 /* We use char because int might match the return type of a gcc2
42298    builtin and then its argument prototype would still apply.  */
42299 char $ac_func ();
42300 /* The GNU C library defines this for functions which it implements
42301     to always fail with ENOSYS.  Some functions are actually named
42302     something starting with __ and the normal name is an alias.  */
42303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42304 choke me
42305 #else
42306 char (*f) () = $ac_func;
42307 #endif
42308 #ifdef __cplusplus
42309 }
42310 #endif
42311
42312 int
42313 main ()
42314 {
42315 return f != $ac_func;
42316   ;
42317   return 0;
42318 }
42319 _ACEOF
42320 rm -f conftest.$ac_objext conftest$ac_exeext
42321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42322   (eval $ac_link) 2>conftest.er1
42323   ac_status=$?
42324   grep -v '^ *+' conftest.er1 >conftest.err
42325   rm -f conftest.er1
42326   cat conftest.err >&5
42327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42328   (exit $ac_status); } &&
42329          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42331   (eval $ac_try) 2>&5
42332   ac_status=$?
42333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42334   (exit $ac_status); }; } &&
42335          { ac_try='test -s conftest$ac_exeext'
42336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42337   (eval $ac_try) 2>&5
42338   ac_status=$?
42339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42340   (exit $ac_status); }; }; then
42341   eval "$as_ac_var=yes"
42342 else
42343   echo "$as_me: failed program was:" >&5
42344 sed 's/^/| /' conftest.$ac_ext >&5
42345
42346 eval "$as_ac_var=no"
42347 fi
42348 rm -f conftest.err conftest.$ac_objext \
42349       conftest$ac_exeext conftest.$ac_ext
42350 fi
42351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42353 if test `eval echo '${'$as_ac_var'}'` = yes; then
42354   cat >>confdefs.h <<_ACEOF
42355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42356 _ACEOF
42357
42358 fi
42359 done
42360
42361     if test "$ac_cv_func_strptime" = "yes"; then
42362         echo "$as_me:$LINENO: checking for strptime declaration" >&5
42363 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42364 if test "${wx_cv_func_strptime_decl+set}" = set; then
42365   echo $ECHO_N "(cached) $ECHO_C" >&6
42366 else
42367
42368                 cat >conftest.$ac_ext <<_ACEOF
42369 /* confdefs.h.  */
42370 _ACEOF
42371 cat confdefs.h >>conftest.$ac_ext
42372 cat >>conftest.$ac_ext <<_ACEOF
42373 /* end confdefs.h.  */
42374
42375                         #include <time.h>
42376
42377 int
42378 main ()
42379 {
42380
42381                         struct tm t;
42382                         strptime("foo", "bar", &t);
42383
42384   ;
42385   return 0;
42386 }
42387 _ACEOF
42388 rm -f conftest.$ac_objext
42389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42390   (eval $ac_compile) 2>conftest.er1
42391   ac_status=$?
42392   grep -v '^ *+' conftest.er1 >conftest.err
42393   rm -f conftest.er1
42394   cat conftest.err >&5
42395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42396   (exit $ac_status); } &&
42397          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42399   (eval $ac_try) 2>&5
42400   ac_status=$?
42401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42402   (exit $ac_status); }; } &&
42403          { ac_try='test -s conftest.$ac_objext'
42404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42405   (eval $ac_try) 2>&5
42406   ac_status=$?
42407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42408   (exit $ac_status); }; }; then
42409   wx_cv_func_strptime_decl=yes
42410 else
42411   echo "$as_me: failed program was:" >&5
42412 sed 's/^/| /' conftest.$ac_ext >&5
42413
42414 wx_cv_func_strptime_decl=no
42415
42416 fi
42417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42418
42419
42420 fi
42421 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42422 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42423     fi
42424     if test "$wx_cv_func_strptime_decl" = "yes"; then
42425         cat >>confdefs.h <<\_ACEOF
42426 #define HAVE_STRPTIME_DECL 1
42427 _ACEOF
42428
42429     fi
42430
42431             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42432 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42433 if test "${wx_cv_var_timezone+set}" = set; then
42434   echo $ECHO_N "(cached) $ECHO_C" >&6
42435 else
42436
42437                         cat >conftest.$ac_ext <<_ACEOF
42438 /* confdefs.h.  */
42439 _ACEOF
42440 cat confdefs.h >>conftest.$ac_ext
42441 cat >>conftest.$ac_ext <<_ACEOF
42442 /* end confdefs.h.  */
42443
42444                                 #include <time.h>
42445
42446 int
42447 main ()
42448 {
42449
42450                                 int tz;
42451                                 tz = timezone;
42452
42453   ;
42454   return 0;
42455 }
42456 _ACEOF
42457 rm -f conftest.$ac_objext
42458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42459   (eval $ac_compile) 2>conftest.er1
42460   ac_status=$?
42461   grep -v '^ *+' conftest.er1 >conftest.err
42462   rm -f conftest.er1
42463   cat conftest.err >&5
42464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465   (exit $ac_status); } &&
42466          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42468   (eval $ac_try) 2>&5
42469   ac_status=$?
42470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471   (exit $ac_status); }; } &&
42472          { ac_try='test -s conftest.$ac_objext'
42473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42474   (eval $ac_try) 2>&5
42475   ac_status=$?
42476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477   (exit $ac_status); }; }; then
42478
42479                                 wx_cv_var_timezone=timezone
42480
42481 else
42482   echo "$as_me: failed program was:" >&5
42483 sed 's/^/| /' conftest.$ac_ext >&5
42484
42485
42486                                 cat >conftest.$ac_ext <<_ACEOF
42487 /* confdefs.h.  */
42488 _ACEOF
42489 cat confdefs.h >>conftest.$ac_ext
42490 cat >>conftest.$ac_ext <<_ACEOF
42491 /* end confdefs.h.  */
42492
42493                                         #include <time.h>
42494
42495 int
42496 main ()
42497 {
42498
42499                                         int tz;
42500                                         tz = _timezone;
42501
42502   ;
42503   return 0;
42504 }
42505 _ACEOF
42506 rm -f conftest.$ac_objext
42507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42508   (eval $ac_compile) 2>conftest.er1
42509   ac_status=$?
42510   grep -v '^ *+' conftest.er1 >conftest.err
42511   rm -f conftest.er1
42512   cat conftest.err >&5
42513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42514   (exit $ac_status); } &&
42515          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42517   (eval $ac_try) 2>&5
42518   ac_status=$?
42519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42520   (exit $ac_status); }; } &&
42521          { ac_try='test -s conftest.$ac_objext'
42522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42523   (eval $ac_try) 2>&5
42524   ac_status=$?
42525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42526   (exit $ac_status); }; }; then
42527
42528                                         wx_cv_var_timezone=_timezone
42529
42530 else
42531   echo "$as_me: failed program was:" >&5
42532 sed 's/^/| /' conftest.$ac_ext >&5
42533
42534
42535                                         cat >conftest.$ac_ext <<_ACEOF
42536 /* confdefs.h.  */
42537 _ACEOF
42538 cat confdefs.h >>conftest.$ac_ext
42539 cat >>conftest.$ac_ext <<_ACEOF
42540 /* end confdefs.h.  */
42541
42542                                                 #include <time.h>
42543
42544 int
42545 main ()
42546 {
42547
42548                                                 int tz;
42549                                                 tz = __timezone;
42550
42551   ;
42552   return 0;
42553 }
42554 _ACEOF
42555 rm -f conftest.$ac_objext
42556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42557   (eval $ac_compile) 2>conftest.er1
42558   ac_status=$?
42559   grep -v '^ *+' conftest.er1 >conftest.err
42560   rm -f conftest.er1
42561   cat conftest.err >&5
42562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42563   (exit $ac_status); } &&
42564          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42566   (eval $ac_try) 2>&5
42567   ac_status=$?
42568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42569   (exit $ac_status); }; } &&
42570          { ac_try='test -s conftest.$ac_objext'
42571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42572   (eval $ac_try) 2>&5
42573   ac_status=$?
42574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42575   (exit $ac_status); }; }; then
42576
42577                                                 wx_cv_var_timezone=__timezone
42578
42579 else
42580   echo "$as_me: failed program was:" >&5
42581 sed 's/^/| /' conftest.$ac_ext >&5
42582
42583
42584                                                 if test "$USE_DOS" = 0 ; then
42585                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42586 echo "$as_me: WARNING: no timezone variable" >&2;}
42587                                                 fi
42588
42589
42590 fi
42591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42592
42593
42594 fi
42595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42596
42597
42598 fi
42599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42600
42601
42602 fi
42603 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42604 echo "${ECHO_T}$wx_cv_var_timezone" >&6
42605
42606         if test "x$wx_cv_var_timezone" != x ; then
42607         cat >>confdefs.h <<_ACEOF
42608 #define WX_TIMEZONE $wx_cv_var_timezone
42609 _ACEOF
42610
42611     fi
42612
42613
42614 for ac_func in localtime
42615 do
42616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42617 echo "$as_me:$LINENO: checking for $ac_func" >&5
42618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42619 if eval "test \"\${$as_ac_var+set}\" = set"; then
42620   echo $ECHO_N "(cached) $ECHO_C" >&6
42621 else
42622   cat >conftest.$ac_ext <<_ACEOF
42623 /* confdefs.h.  */
42624 _ACEOF
42625 cat confdefs.h >>conftest.$ac_ext
42626 cat >>conftest.$ac_ext <<_ACEOF
42627 /* end confdefs.h.  */
42628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42630 #define $ac_func innocuous_$ac_func
42631
42632 /* System header to define __stub macros and hopefully few prototypes,
42633     which can conflict with char $ac_func (); below.
42634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42635     <limits.h> exists even on freestanding compilers.  */
42636
42637 #ifdef __STDC__
42638 # include <limits.h>
42639 #else
42640 # include <assert.h>
42641 #endif
42642
42643 #undef $ac_func
42644
42645 /* Override any gcc2 internal prototype to avoid an error.  */
42646 #ifdef __cplusplus
42647 extern "C"
42648 {
42649 #endif
42650 /* We use char because int might match the return type of a gcc2
42651    builtin and then its argument prototype would still apply.  */
42652 char $ac_func ();
42653 /* The GNU C library defines this for functions which it implements
42654     to always fail with ENOSYS.  Some functions are actually named
42655     something starting with __ and the normal name is an alias.  */
42656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42657 choke me
42658 #else
42659 char (*f) () = $ac_func;
42660 #endif
42661 #ifdef __cplusplus
42662 }
42663 #endif
42664
42665 int
42666 main ()
42667 {
42668 return f != $ac_func;
42669   ;
42670   return 0;
42671 }
42672 _ACEOF
42673 rm -f conftest.$ac_objext conftest$ac_exeext
42674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42675   (eval $ac_link) 2>conftest.er1
42676   ac_status=$?
42677   grep -v '^ *+' conftest.er1 >conftest.err
42678   rm -f conftest.er1
42679   cat conftest.err >&5
42680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42681   (exit $ac_status); } &&
42682          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42684   (eval $ac_try) 2>&5
42685   ac_status=$?
42686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42687   (exit $ac_status); }; } &&
42688          { ac_try='test -s conftest$ac_exeext'
42689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42690   (eval $ac_try) 2>&5
42691   ac_status=$?
42692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42693   (exit $ac_status); }; }; then
42694   eval "$as_ac_var=yes"
42695 else
42696   echo "$as_me: failed program was:" >&5
42697 sed 's/^/| /' conftest.$ac_ext >&5
42698
42699 eval "$as_ac_var=no"
42700 fi
42701 rm -f conftest.err conftest.$ac_objext \
42702       conftest$ac_exeext conftest.$ac_ext
42703 fi
42704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42706 if test `eval echo '${'$as_ac_var'}'` = yes; then
42707   cat >>confdefs.h <<_ACEOF
42708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42709 _ACEOF
42710
42711 fi
42712 done
42713
42714
42715     if test "$ac_cv_func_localtime" = "yes"; then
42716         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42717 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42718 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42719   echo $ECHO_N "(cached) $ECHO_C" >&6
42720 else
42721
42722             cat >conftest.$ac_ext <<_ACEOF
42723 /* confdefs.h.  */
42724 _ACEOF
42725 cat confdefs.h >>conftest.$ac_ext
42726 cat >>conftest.$ac_ext <<_ACEOF
42727 /* end confdefs.h.  */
42728
42729                     #include <time.h>
42730
42731 int
42732 main ()
42733 {
42734
42735                     struct tm tm;
42736                     tm.tm_gmtoff++;
42737
42738   ;
42739   return 0;
42740 }
42741 _ACEOF
42742 rm -f conftest.$ac_objext
42743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42744   (eval $ac_compile) 2>conftest.er1
42745   ac_status=$?
42746   grep -v '^ *+' conftest.er1 >conftest.err
42747   rm -f conftest.er1
42748   cat conftest.err >&5
42749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42750   (exit $ac_status); } &&
42751          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42753   (eval $ac_try) 2>&5
42754   ac_status=$?
42755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42756   (exit $ac_status); }; } &&
42757          { ac_try='test -s conftest.$ac_objext'
42758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42759   (eval $ac_try) 2>&5
42760   ac_status=$?
42761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42762   (exit $ac_status); }; }; then
42763
42764                     wx_cv_struct_tm_has_gmtoff=yes
42765
42766 else
42767   echo "$as_me: failed program was:" >&5
42768 sed 's/^/| /' conftest.$ac_ext >&5
42769
42770 wx_cv_struct_tm_has_gmtoff=no
42771
42772 fi
42773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42774
42775 fi
42776 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42777 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42778     fi
42779
42780     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42781         cat >>confdefs.h <<\_ACEOF
42782 #define WX_GMTOFF_IN_TM 1
42783 _ACEOF
42784
42785     fi
42786
42787
42788
42789 for ac_func in gettimeofday ftime
42790 do
42791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42792 echo "$as_me:$LINENO: checking for $ac_func" >&5
42793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42794 if eval "test \"\${$as_ac_var+set}\" = set"; then
42795   echo $ECHO_N "(cached) $ECHO_C" >&6
42796 else
42797   cat >conftest.$ac_ext <<_ACEOF
42798 /* confdefs.h.  */
42799 _ACEOF
42800 cat confdefs.h >>conftest.$ac_ext
42801 cat >>conftest.$ac_ext <<_ACEOF
42802 /* end confdefs.h.  */
42803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42805 #define $ac_func innocuous_$ac_func
42806
42807 /* System header to define __stub macros and hopefully few prototypes,
42808     which can conflict with char $ac_func (); below.
42809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42810     <limits.h> exists even on freestanding compilers.  */
42811
42812 #ifdef __STDC__
42813 # include <limits.h>
42814 #else
42815 # include <assert.h>
42816 #endif
42817
42818 #undef $ac_func
42819
42820 /* Override any gcc2 internal prototype to avoid an error.  */
42821 #ifdef __cplusplus
42822 extern "C"
42823 {
42824 #endif
42825 /* We use char because int might match the return type of a gcc2
42826    builtin and then its argument prototype would still apply.  */
42827 char $ac_func ();
42828 /* The GNU C library defines this for functions which it implements
42829     to always fail with ENOSYS.  Some functions are actually named
42830     something starting with __ and the normal name is an alias.  */
42831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42832 choke me
42833 #else
42834 char (*f) () = $ac_func;
42835 #endif
42836 #ifdef __cplusplus
42837 }
42838 #endif
42839
42840 int
42841 main ()
42842 {
42843 return f != $ac_func;
42844   ;
42845   return 0;
42846 }
42847 _ACEOF
42848 rm -f conftest.$ac_objext conftest$ac_exeext
42849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42850   (eval $ac_link) 2>conftest.er1
42851   ac_status=$?
42852   grep -v '^ *+' conftest.er1 >conftest.err
42853   rm -f conftest.er1
42854   cat conftest.err >&5
42855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42856   (exit $ac_status); } &&
42857          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42859   (eval $ac_try) 2>&5
42860   ac_status=$?
42861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42862   (exit $ac_status); }; } &&
42863          { ac_try='test -s conftest$ac_exeext'
42864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42865   (eval $ac_try) 2>&5
42866   ac_status=$?
42867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42868   (exit $ac_status); }; }; then
42869   eval "$as_ac_var=yes"
42870 else
42871   echo "$as_me: failed program was:" >&5
42872 sed 's/^/| /' conftest.$ac_ext >&5
42873
42874 eval "$as_ac_var=no"
42875 fi
42876 rm -f conftest.err conftest.$ac_objext \
42877       conftest$ac_exeext conftest.$ac_ext
42878 fi
42879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42881 if test `eval echo '${'$as_ac_var'}'` = yes; then
42882   cat >>confdefs.h <<_ACEOF
42883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42884 _ACEOF
42885  break
42886 fi
42887 done
42888
42889
42890     if test "$ac_cv_func_gettimeofday" = "yes"; then
42891         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42892 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42893 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42894   echo $ECHO_N "(cached) $ECHO_C" >&6
42895 else
42896
42897                         cat >conftest.$ac_ext <<_ACEOF
42898 /* confdefs.h.  */
42899 _ACEOF
42900 cat confdefs.h >>conftest.$ac_ext
42901 cat >>conftest.$ac_ext <<_ACEOF
42902 /* end confdefs.h.  */
42903
42904                     #include <sys/time.h>
42905                     #include <unistd.h>
42906
42907 int
42908 main ()
42909 {
42910
42911                     struct timeval tv;
42912                     gettimeofday(&tv, NULL);
42913
42914   ;
42915   return 0;
42916 }
42917 _ACEOF
42918 rm -f conftest.$ac_objext
42919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42920   (eval $ac_compile) 2>conftest.er1
42921   ac_status=$?
42922   grep -v '^ *+' conftest.er1 >conftest.err
42923   rm -f conftest.er1
42924   cat conftest.err >&5
42925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42926   (exit $ac_status); } &&
42927          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42929   (eval $ac_try) 2>&5
42930   ac_status=$?
42931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42932   (exit $ac_status); }; } &&
42933          { ac_try='test -s conftest.$ac_objext'
42934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42935   (eval $ac_try) 2>&5
42936   ac_status=$?
42937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42938   (exit $ac_status); }; }; then
42939   wx_cv_func_gettimeofday_has_2_args=yes
42940 else
42941   echo "$as_me: failed program was:" >&5
42942 sed 's/^/| /' conftest.$ac_ext >&5
42943
42944 cat >conftest.$ac_ext <<_ACEOF
42945 /* confdefs.h.  */
42946 _ACEOF
42947 cat confdefs.h >>conftest.$ac_ext
42948 cat >>conftest.$ac_ext <<_ACEOF
42949 /* end confdefs.h.  */
42950
42951                         #include <sys/time.h>
42952                         #include <unistd.h>
42953
42954 int
42955 main ()
42956 {
42957
42958                         struct timeval tv;
42959                         gettimeofday(&tv);
42960
42961   ;
42962   return 0;
42963 }
42964 _ACEOF
42965 rm -f conftest.$ac_objext
42966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42967   (eval $ac_compile) 2>conftest.er1
42968   ac_status=$?
42969   grep -v '^ *+' conftest.er1 >conftest.err
42970   rm -f conftest.er1
42971   cat conftest.err >&5
42972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42973   (exit $ac_status); } &&
42974          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42976   (eval $ac_try) 2>&5
42977   ac_status=$?
42978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42979   (exit $ac_status); }; } &&
42980          { ac_try='test -s conftest.$ac_objext'
42981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42982   (eval $ac_try) 2>&5
42983   ac_status=$?
42984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42985   (exit $ac_status); }; }; then
42986   wx_cv_func_gettimeofday_has_2_args=no
42987 else
42988   echo "$as_me: failed program was:" >&5
42989 sed 's/^/| /' conftest.$ac_ext >&5
42990
42991
42992                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42993 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42994                         wx_cv_func_gettimeofday_has_2_args=unknown
42995
42996
42997 fi
42998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42999
43000 fi
43001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43002
43003 fi
43004 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43005 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43006
43007         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43008             cat >>confdefs.h <<\_ACEOF
43009 #define WX_GETTIMEOFDAY_NO_TZ 1
43010 _ACEOF
43011
43012         fi
43013     fi
43014
43015     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43016 fi
43017
43018
43019 if test "$wxUSE_SOCKETS" = "yes"; then
43020     if test "$wxUSE_MGL" = "1"; then
43021         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43022 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43023         wxUSE_SOCKETS="no"
43024     fi
43025 fi
43026
43027 if test "$wxUSE_SOCKETS" = "yes"; then
43028         if test "$TOOLKIT" != "MSW"; then
43029                 echo "$as_me:$LINENO: checking for socket" >&5
43030 echo $ECHO_N "checking for socket... $ECHO_C" >&6
43031 if test "${ac_cv_func_socket+set}" = set; then
43032   echo $ECHO_N "(cached) $ECHO_C" >&6
43033 else
43034   cat >conftest.$ac_ext <<_ACEOF
43035 /* confdefs.h.  */
43036 _ACEOF
43037 cat confdefs.h >>conftest.$ac_ext
43038 cat >>conftest.$ac_ext <<_ACEOF
43039 /* end confdefs.h.  */
43040 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
43041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43042 #define socket innocuous_socket
43043
43044 /* System header to define __stub macros and hopefully few prototypes,
43045     which can conflict with char socket (); below.
43046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43047     <limits.h> exists even on freestanding compilers.  */
43048
43049 #ifdef __STDC__
43050 # include <limits.h>
43051 #else
43052 # include <assert.h>
43053 #endif
43054
43055 #undef socket
43056
43057 /* Override any gcc2 internal prototype to avoid an error.  */
43058 #ifdef __cplusplus
43059 extern "C"
43060 {
43061 #endif
43062 /* We use char because int might match the return type of a gcc2
43063    builtin and then its argument prototype would still apply.  */
43064 char socket ();
43065 /* The GNU C library defines this for functions which it implements
43066     to always fail with ENOSYS.  Some functions are actually named
43067     something starting with __ and the normal name is an alias.  */
43068 #if defined (__stub_socket) || defined (__stub___socket)
43069 choke me
43070 #else
43071 char (*f) () = socket;
43072 #endif
43073 #ifdef __cplusplus
43074 }
43075 #endif
43076
43077 int
43078 main ()
43079 {
43080 return f != socket;
43081   ;
43082   return 0;
43083 }
43084 _ACEOF
43085 rm -f conftest.$ac_objext conftest$ac_exeext
43086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43087   (eval $ac_link) 2>conftest.er1
43088   ac_status=$?
43089   grep -v '^ *+' conftest.er1 >conftest.err
43090   rm -f conftest.er1
43091   cat conftest.err >&5
43092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43093   (exit $ac_status); } &&
43094          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43096   (eval $ac_try) 2>&5
43097   ac_status=$?
43098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43099   (exit $ac_status); }; } &&
43100          { ac_try='test -s conftest$ac_exeext'
43101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43102   (eval $ac_try) 2>&5
43103   ac_status=$?
43104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105   (exit $ac_status); }; }; then
43106   ac_cv_func_socket=yes
43107 else
43108   echo "$as_me: failed program was:" >&5
43109 sed 's/^/| /' conftest.$ac_ext >&5
43110
43111 ac_cv_func_socket=no
43112 fi
43113 rm -f conftest.err conftest.$ac_objext \
43114       conftest$ac_exeext conftest.$ac_ext
43115 fi
43116 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43117 echo "${ECHO_T}$ac_cv_func_socket" >&6
43118 if test $ac_cv_func_socket = yes; then
43119   :
43120 else
43121
43122                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43123 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43124 if test "${ac_cv_lib_socket_socket+set}" = set; then
43125   echo $ECHO_N "(cached) $ECHO_C" >&6
43126 else
43127   ac_check_lib_save_LIBS=$LIBS
43128 LIBS="-lsocket  $LIBS"
43129 cat >conftest.$ac_ext <<_ACEOF
43130 /* confdefs.h.  */
43131 _ACEOF
43132 cat confdefs.h >>conftest.$ac_ext
43133 cat >>conftest.$ac_ext <<_ACEOF
43134 /* end confdefs.h.  */
43135
43136 /* Override any gcc2 internal prototype to avoid an error.  */
43137 #ifdef __cplusplus
43138 extern "C"
43139 #endif
43140 /* We use char because int might match the return type of a gcc2
43141    builtin and then its argument prototype would still apply.  */
43142 char socket ();
43143 int
43144 main ()
43145 {
43146 socket ();
43147   ;
43148   return 0;
43149 }
43150 _ACEOF
43151 rm -f conftest.$ac_objext conftest$ac_exeext
43152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43153   (eval $ac_link) 2>conftest.er1
43154   ac_status=$?
43155   grep -v '^ *+' conftest.er1 >conftest.err
43156   rm -f conftest.er1
43157   cat conftest.err >&5
43158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43159   (exit $ac_status); } &&
43160          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43162   (eval $ac_try) 2>&5
43163   ac_status=$?
43164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43165   (exit $ac_status); }; } &&
43166          { ac_try='test -s conftest$ac_exeext'
43167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43168   (eval $ac_try) 2>&5
43169   ac_status=$?
43170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43171   (exit $ac_status); }; }; then
43172   ac_cv_lib_socket_socket=yes
43173 else
43174   echo "$as_me: failed program was:" >&5
43175 sed 's/^/| /' conftest.$ac_ext >&5
43176
43177 ac_cv_lib_socket_socket=no
43178 fi
43179 rm -f conftest.err conftest.$ac_objext \
43180       conftest$ac_exeext conftest.$ac_ext
43181 LIBS=$ac_check_lib_save_LIBS
43182 fi
43183 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43184 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43185 if test $ac_cv_lib_socket_socket = yes; then
43186   if test "$INET_LINK" != " -lsocket"; then
43187                         INET_LINK="$INET_LINK -lsocket"
43188                     fi
43189 else
43190
43191                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43192 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43193                         wxUSE_SOCKETS=no
43194
43195
43196 fi
43197
43198
43199
43200 fi
43201
43202     fi
43203 fi
43204
43205 if test "$wxUSE_SOCKETS" = "yes" ; then
43206                 if test "$TOOLKIT" != "MSW"; then
43207                                         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
43208 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43209 if test "${wx_cv_type_getsockname3+set}" = set; then
43210   echo $ECHO_N "(cached) $ECHO_C" >&6
43211 else
43212
43213                 cat >conftest.$ac_ext <<_ACEOF
43214 /* confdefs.h.  */
43215 _ACEOF
43216 cat confdefs.h >>conftest.$ac_ext
43217 cat >>conftest.$ac_ext <<_ACEOF
43218 /* end confdefs.h.  */
43219
43220                         #include <sys/types.h>
43221                         #include <sys/socket.h>
43222
43223 int
43224 main ()
43225 {
43226
43227                         socklen_t len;
43228                         getsockname(0, 0, &len);
43229
43230   ;
43231   return 0;
43232 }
43233 _ACEOF
43234 rm -f conftest.$ac_objext
43235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43236   (eval $ac_compile) 2>conftest.er1
43237   ac_status=$?
43238   grep -v '^ *+' conftest.er1 >conftest.err
43239   rm -f conftest.er1
43240   cat conftest.err >&5
43241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43242   (exit $ac_status); } &&
43243          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43245   (eval $ac_try) 2>&5
43246   ac_status=$?
43247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43248   (exit $ac_status); }; } &&
43249          { ac_try='test -s conftest.$ac_objext'
43250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43251   (eval $ac_try) 2>&5
43252   ac_status=$?
43253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43254   (exit $ac_status); }; }; then
43255   wx_cv_type_getsockname3=socklen_t
43256 else
43257   echo "$as_me: failed program was:" >&5
43258 sed 's/^/| /' conftest.$ac_ext >&5
43259
43260
43261                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
43262                         if test "$GCC" = yes ; then
43263                             CXXFLAGS="-Werror $CXXFLAGS"
43264                         fi
43265
43266                         cat >conftest.$ac_ext <<_ACEOF
43267 /* confdefs.h.  */
43268 _ACEOF
43269 cat confdefs.h >>conftest.$ac_ext
43270 cat >>conftest.$ac_ext <<_ACEOF
43271 /* end confdefs.h.  */
43272
43273                                 #include <sys/types.h>
43274                                 #include <sys/socket.h>
43275
43276 int
43277 main ()
43278 {
43279
43280                                 size_t len;
43281                                 getsockname(0, 0, &len);
43282
43283   ;
43284   return 0;
43285 }
43286 _ACEOF
43287 rm -f conftest.$ac_objext
43288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43289   (eval $ac_compile) 2>conftest.er1
43290   ac_status=$?
43291   grep -v '^ *+' conftest.er1 >conftest.err
43292   rm -f conftest.er1
43293   cat conftest.err >&5
43294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43295   (exit $ac_status); } &&
43296          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43298   (eval $ac_try) 2>&5
43299   ac_status=$?
43300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43301   (exit $ac_status); }; } &&
43302          { ac_try='test -s conftest.$ac_objext'
43303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43304   (eval $ac_try) 2>&5
43305   ac_status=$?
43306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43307   (exit $ac_status); }; }; then
43308   wx_cv_type_getsockname3=size_t
43309 else
43310   echo "$as_me: failed program was:" >&5
43311 sed 's/^/| /' conftest.$ac_ext >&5
43312
43313 cat >conftest.$ac_ext <<_ACEOF
43314 /* confdefs.h.  */
43315 _ACEOF
43316 cat confdefs.h >>conftest.$ac_ext
43317 cat >>conftest.$ac_ext <<_ACEOF
43318 /* end confdefs.h.  */
43319
43320                                     #include <sys/types.h>
43321                                     #include <sys/socket.h>
43322
43323 int
43324 main ()
43325 {
43326
43327                                     int len;
43328                                     getsockname(0, 0, &len);
43329
43330   ;
43331   return 0;
43332 }
43333 _ACEOF
43334 rm -f conftest.$ac_objext
43335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43336   (eval $ac_compile) 2>conftest.er1
43337   ac_status=$?
43338   grep -v '^ *+' conftest.er1 >conftest.err
43339   rm -f conftest.er1
43340   cat conftest.err >&5
43341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43342   (exit $ac_status); } &&
43343          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43345   (eval $ac_try) 2>&5
43346   ac_status=$?
43347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43348   (exit $ac_status); }; } &&
43349          { ac_try='test -s conftest.$ac_objext'
43350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43351   (eval $ac_try) 2>&5
43352   ac_status=$?
43353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43354   (exit $ac_status); }; }; then
43355   wx_cv_type_getsockname3=int
43356 else
43357   echo "$as_me: failed program was:" >&5
43358 sed 's/^/| /' conftest.$ac_ext >&5
43359
43360 wx_cv_type_getsockname3=unknown
43361
43362 fi
43363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43364
43365 fi
43366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43367
43368                         CXXFLAGS="$CXXFLAGS_OLD"
43369
43370
43371 fi
43372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43373
43374 fi
43375 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43376 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43377
43378         if test "$wx_cv_type_getsockname3" = "unknown"; then
43379             wxUSE_SOCKETS=no
43380             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43381 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43382         else
43383             cat >>confdefs.h <<_ACEOF
43384 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
43385 _ACEOF
43386
43387         fi
43388                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43389 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43390 if test "${wx_cv_type_getsockopt5+set}" = set; then
43391   echo $ECHO_N "(cached) $ECHO_C" >&6
43392 else
43393
43394                 cat >conftest.$ac_ext <<_ACEOF
43395 /* confdefs.h.  */
43396 _ACEOF
43397 cat confdefs.h >>conftest.$ac_ext
43398 cat >>conftest.$ac_ext <<_ACEOF
43399 /* end confdefs.h.  */
43400
43401                         #include <sys/types.h>
43402                         #include <sys/socket.h>
43403
43404 int
43405 main ()
43406 {
43407
43408                         socklen_t len;
43409                         getsockopt(0, 0, 0, 0, &len);
43410
43411   ;
43412   return 0;
43413 }
43414 _ACEOF
43415 rm -f conftest.$ac_objext
43416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43417   (eval $ac_compile) 2>conftest.er1
43418   ac_status=$?
43419   grep -v '^ *+' conftest.er1 >conftest.err
43420   rm -f conftest.er1
43421   cat conftest.err >&5
43422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43423   (exit $ac_status); } &&
43424          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43426   (eval $ac_try) 2>&5
43427   ac_status=$?
43428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43429   (exit $ac_status); }; } &&
43430          { ac_try='test -s conftest.$ac_objext'
43431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43432   (eval $ac_try) 2>&5
43433   ac_status=$?
43434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43435   (exit $ac_status); }; }; then
43436   wx_cv_type_getsockopt5=socklen_t
43437 else
43438   echo "$as_me: failed program was:" >&5
43439 sed 's/^/| /' conftest.$ac_ext >&5
43440
43441
43442                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
43443                         if test "$GCC" = yes ; then
43444                             CXXFLAGS="-Werror $CXXFLAGS"
43445                         fi
43446
43447                         cat >conftest.$ac_ext <<_ACEOF
43448 /* confdefs.h.  */
43449 _ACEOF
43450 cat confdefs.h >>conftest.$ac_ext
43451 cat >>conftest.$ac_ext <<_ACEOF
43452 /* end confdefs.h.  */
43453
43454                                 #include <sys/types.h>
43455                                 #include <sys/socket.h>
43456
43457 int
43458 main ()
43459 {
43460
43461                                 size_t len;
43462                                 getsockopt(0, 0, 0, 0, &len);
43463
43464   ;
43465   return 0;
43466 }
43467 _ACEOF
43468 rm -f conftest.$ac_objext
43469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43470   (eval $ac_compile) 2>conftest.er1
43471   ac_status=$?
43472   grep -v '^ *+' conftest.er1 >conftest.err
43473   rm -f conftest.er1
43474   cat conftest.err >&5
43475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43476   (exit $ac_status); } &&
43477          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43479   (eval $ac_try) 2>&5
43480   ac_status=$?
43481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43482   (exit $ac_status); }; } &&
43483          { ac_try='test -s conftest.$ac_objext'
43484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43485   (eval $ac_try) 2>&5
43486   ac_status=$?
43487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43488   (exit $ac_status); }; }; then
43489   wx_cv_type_getsockopt5=size_t
43490 else
43491   echo "$as_me: failed program was:" >&5
43492 sed 's/^/| /' conftest.$ac_ext >&5
43493
43494 cat >conftest.$ac_ext <<_ACEOF
43495 /* confdefs.h.  */
43496 _ACEOF
43497 cat confdefs.h >>conftest.$ac_ext
43498 cat >>conftest.$ac_ext <<_ACEOF
43499 /* end confdefs.h.  */
43500
43501                                     #include <sys/types.h>
43502                                     #include <sys/socket.h>
43503
43504 int
43505 main ()
43506 {
43507
43508                                     int len;
43509                                     getsockopt(0, 0, 0, 0, &len);
43510
43511   ;
43512   return 0;
43513 }
43514 _ACEOF
43515 rm -f conftest.$ac_objext
43516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43517   (eval $ac_compile) 2>conftest.er1
43518   ac_status=$?
43519   grep -v '^ *+' conftest.er1 >conftest.err
43520   rm -f conftest.er1
43521   cat conftest.err >&5
43522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43523   (exit $ac_status); } &&
43524          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43526   (eval $ac_try) 2>&5
43527   ac_status=$?
43528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43529   (exit $ac_status); }; } &&
43530          { ac_try='test -s conftest.$ac_objext'
43531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43532   (eval $ac_try) 2>&5
43533   ac_status=$?
43534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43535   (exit $ac_status); }; }; then
43536   wx_cv_type_getsockopt5=int
43537 else
43538   echo "$as_me: failed program was:" >&5
43539 sed 's/^/| /' conftest.$ac_ext >&5
43540
43541 wx_cv_type_getsockopt5=unknown
43542
43543 fi
43544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43545
43546 fi
43547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43548
43549                         CXXFLAGS="$CXXFLAGS_OLD"
43550
43551
43552 fi
43553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43554
43555 fi
43556 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43557 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43558
43559         if test "$wx_cv_type_getsockopt5" = "unknown"; then
43560             wxUSE_SOCKETS=no
43561             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43562 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43563         else
43564             cat >>confdefs.h <<_ACEOF
43565 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
43566 _ACEOF
43567
43568         fi
43569     fi
43570 fi
43571
43572 if test "$wxUSE_SOCKETS" = "yes" ; then
43573     cat >>confdefs.h <<\_ACEOF
43574 #define wxUSE_SOCKETS 1
43575 _ACEOF
43576
43577     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43578 fi
43579
43580 if test "$wxUSE_PROTOCOL" = "yes"; then
43581     if test "$wxUSE_SOCKETS" != "yes"; then
43582         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43583 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43584         wxUSE_PROTOCOL=no
43585     fi
43586 fi
43587
43588 if test "$wxUSE_PROTOCOL" = "yes"; then
43589     cat >>confdefs.h <<\_ACEOF
43590 #define wxUSE_PROTOCOL 1
43591 _ACEOF
43592
43593
43594     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43595         cat >>confdefs.h <<\_ACEOF
43596 #define wxUSE_PROTOCOL_HTTP 1
43597 _ACEOF
43598
43599     fi
43600     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43601         cat >>confdefs.h <<\_ACEOF
43602 #define wxUSE_PROTOCOL_FTP 1
43603 _ACEOF
43604
43605     fi
43606     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43607         cat >>confdefs.h <<\_ACEOF
43608 #define wxUSE_PROTOCOL_FILE 1
43609 _ACEOF
43610
43611     fi
43612 else
43613     if test "$wxUSE_FS_INET" = "yes"; then
43614         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43615 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43616         wxUSE_FS_INET="no"
43617     fi
43618 fi
43619
43620 if test "$wxUSE_URL" = "yes"; then
43621     if test "$wxUSE_PROTOCOL" != "yes"; then
43622         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43623 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43624         wxUSE_URL=no
43625     fi
43626     if test "$wxUSE_URL" = "yes"; then
43627         cat >>confdefs.h <<\_ACEOF
43628 #define wxUSE_URL 1
43629 _ACEOF
43630
43631     fi
43632 fi
43633
43634 if test "$wxUSE_FS_INET" = "yes"; then
43635   cat >>confdefs.h <<\_ACEOF
43636 #define wxUSE_FS_INET 1
43637 _ACEOF
43638
43639 fi
43640
43641
43642 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43643     wxUSE_JOYSTICK=no
43644
43645         if test "$TOOLKIT" = "MSW"; then
43646         wxUSE_JOYSTICK=yes
43647
43648         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43649         if test "$USE_DARWIN" = 1; then
43650                         echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43651 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
43652             cat >conftest.$ac_ext <<_ACEOF
43653 /* confdefs.h.  */
43654 _ACEOF
43655 cat confdefs.h >>conftest.$ac_ext
43656 cat >>conftest.$ac_ext <<_ACEOF
43657 /* end confdefs.h.  */
43658  #include <IOKit/hid/IOHIDLib.h>
43659 int
43660 main ()
43661 {
43662  IOHIDQueueInterface *qi = NULL;
43663                               IOHIDCallbackFunction cb = NULL;
43664                               qi->setEventCallout(NULL, cb, NULL, NULL);
43665   ;
43666   return 0;
43667 }
43668 _ACEOF
43669 rm -f conftest.$ac_objext
43670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43671   (eval $ac_compile) 2>conftest.er1
43672   ac_status=$?
43673   grep -v '^ *+' conftest.er1 >conftest.err
43674   rm -f conftest.er1
43675   cat conftest.err >&5
43676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677   (exit $ac_status); } &&
43678          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43680   (eval $ac_try) 2>&5
43681   ac_status=$?
43682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43683   (exit $ac_status); }; } &&
43684          { ac_try='test -s conftest.$ac_objext'
43685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43686   (eval $ac_try) 2>&5
43687   ac_status=$?
43688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43689   (exit $ac_status); }; }; then
43690    wxUSE_JOYSTICK=yes
43691
43692 else
43693   echo "$as_me: failed program was:" >&5
43694 sed 's/^/| /' conftest.$ac_ext >&5
43695
43696 fi
43697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43698             echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43699 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43700         fi
43701
43702         else
43703
43704 for ac_header in linux/joystick.h
43705 do
43706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43708   echo "$as_me:$LINENO: checking for $ac_header" >&5
43709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43711   echo $ECHO_N "(cached) $ECHO_C" >&6
43712 fi
43713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43715 else
43716   # Is the header compilable?
43717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43719 cat >conftest.$ac_ext <<_ACEOF
43720 /* confdefs.h.  */
43721 _ACEOF
43722 cat confdefs.h >>conftest.$ac_ext
43723 cat >>conftest.$ac_ext <<_ACEOF
43724 /* end confdefs.h.  */
43725 $ac_includes_default
43726 #include <$ac_header>
43727 _ACEOF
43728 rm -f conftest.$ac_objext
43729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43730   (eval $ac_compile) 2>conftest.er1
43731   ac_status=$?
43732   grep -v '^ *+' conftest.er1 >conftest.err
43733   rm -f conftest.er1
43734   cat conftest.err >&5
43735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43736   (exit $ac_status); } &&
43737          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43739   (eval $ac_try) 2>&5
43740   ac_status=$?
43741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43742   (exit $ac_status); }; } &&
43743          { ac_try='test -s conftest.$ac_objext'
43744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43745   (eval $ac_try) 2>&5
43746   ac_status=$?
43747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43748   (exit $ac_status); }; }; then
43749   ac_header_compiler=yes
43750 else
43751   echo "$as_me: failed program was:" >&5
43752 sed 's/^/| /' conftest.$ac_ext >&5
43753
43754 ac_header_compiler=no
43755 fi
43756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43758 echo "${ECHO_T}$ac_header_compiler" >&6
43759
43760 # Is the header present?
43761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
43770 _ACEOF
43771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43773   ac_status=$?
43774   grep -v '^ *+' conftest.er1 >conftest.err
43775   rm -f conftest.er1
43776   cat conftest.err >&5
43777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43778   (exit $ac_status); } >/dev/null; then
43779   if test -s conftest.err; then
43780     ac_cpp_err=$ac_cxx_preproc_warn_flag
43781     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
43782   else
43783     ac_cpp_err=
43784   fi
43785 else
43786   ac_cpp_err=yes
43787 fi
43788 if test -z "$ac_cpp_err"; then
43789   ac_header_preproc=yes
43790 else
43791   echo "$as_me: failed program was:" >&5
43792 sed 's/^/| /' conftest.$ac_ext >&5
43793
43794   ac_header_preproc=no
43795 fi
43796 rm -f conftest.err conftest.$ac_ext
43797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43798 echo "${ECHO_T}$ac_header_preproc" >&6
43799
43800 # So?  What about this header?
43801 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43802   yes:no: )
43803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43807     ac_header_preproc=yes
43808     ;;
43809   no:yes:* )
43810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43822     (
43823       cat <<\_ASBOX
43824 ## ----------------------------------------- ##
43825 ## Report this to wx-dev@lists.wxwidgets.org ##
43826 ## ----------------------------------------- ##
43827 _ASBOX
43828     ) |
43829       sed "s/^/$as_me: WARNING:     /" >&2
43830     ;;
43831 esac
43832 echo "$as_me:$LINENO: checking for $ac_header" >&5
43833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43835   echo $ECHO_N "(cached) $ECHO_C" >&6
43836 else
43837   eval "$as_ac_Header=\$ac_header_preproc"
43838 fi
43839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43841
43842 fi
43843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43844   cat >>confdefs.h <<_ACEOF
43845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43846 _ACEOF
43847  wxUSE_JOYSTICK=yes
43848 fi
43849
43850 done
43851
43852     fi
43853
43854     if test "$wxUSE_JOYSTICK" = "yes"; then
43855         cat >>confdefs.h <<\_ACEOF
43856 #define wxUSE_JOYSTICK 1
43857 _ACEOF
43858
43859         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43860     else
43861         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43862 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
43863     fi
43864 fi
43865
43866
43867
43868 if test "$wxUSE_FONTMAP" = "yes" ; then
43869   cat >>confdefs.h <<\_ACEOF
43870 #define wxUSE_FONTMAP 1
43871 _ACEOF
43872
43873 fi
43874
43875 if test "$wxUSE_UNICODE" = "yes" ; then
43876   cat >>confdefs.h <<\_ACEOF
43877 #define wxUSE_UNICODE 1
43878 _ACEOF
43879
43880
43881   if test "$USE_WIN32" != 1; then
43882       wxUSE_UNICODE_MSLU=no
43883   fi
43884
43885   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43886         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43887 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43888 if test "${ac_cv_lib_unicows_main+set}" = set; then
43889   echo $ECHO_N "(cached) $ECHO_C" >&6
43890 else
43891   ac_check_lib_save_LIBS=$LIBS
43892 LIBS="-lunicows  $LIBS"
43893 cat >conftest.$ac_ext <<_ACEOF
43894 /* confdefs.h.  */
43895 _ACEOF
43896 cat confdefs.h >>conftest.$ac_ext
43897 cat >>conftest.$ac_ext <<_ACEOF
43898 /* end confdefs.h.  */
43899
43900
43901 int
43902 main ()
43903 {
43904 main ();
43905   ;
43906   return 0;
43907 }
43908 _ACEOF
43909 rm -f conftest.$ac_objext conftest$ac_exeext
43910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43911   (eval $ac_link) 2>conftest.er1
43912   ac_status=$?
43913   grep -v '^ *+' conftest.er1 >conftest.err
43914   rm -f conftest.er1
43915   cat conftest.err >&5
43916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43917   (exit $ac_status); } &&
43918          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43920   (eval $ac_try) 2>&5
43921   ac_status=$?
43922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43923   (exit $ac_status); }; } &&
43924          { ac_try='test -s conftest$ac_exeext'
43925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43926   (eval $ac_try) 2>&5
43927   ac_status=$?
43928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43929   (exit $ac_status); }; }; then
43930   ac_cv_lib_unicows_main=yes
43931 else
43932   echo "$as_me: failed program was:" >&5
43933 sed 's/^/| /' conftest.$ac_ext >&5
43934
43935 ac_cv_lib_unicows_main=no
43936 fi
43937 rm -f conftest.err conftest.$ac_objext \
43938       conftest$ac_exeext conftest.$ac_ext
43939 LIBS=$ac_check_lib_save_LIBS
43940 fi
43941 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43942 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43943 if test $ac_cv_lib_unicows_main = yes; then
43944
43945                 cat >>confdefs.h <<\_ACEOF
43946 #define wxUSE_UNICODE_MSLU 1
43947 _ACEOF
43948
43949
43950 else
43951
43952                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43953                              Applications will only run on Windows NT/2000/XP!" >&5
43954 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43955                              Applications will only run on Windows NT/2000/XP!" >&2;}
43956                 wxUSE_UNICODE_MSLU=no
43957
43958 fi
43959
43960     fi
43961 fi
43962
43963 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43964   cat >>confdefs.h <<\_ACEOF
43965 #define wxUSE_EXPERIMENTAL_PRINTF 1
43966 _ACEOF
43967
43968 fi
43969
43970
43971 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43972   cat >>confdefs.h <<\_ACEOF
43973 #define wxUSE_POSTSCRIPT 1
43974 _ACEOF
43975
43976 fi
43977
43978 cat >>confdefs.h <<\_ACEOF
43979 #define wxUSE_AFM_FOR_POSTSCRIPT 1
43980 _ACEOF
43981
43982
43983 cat >>confdefs.h <<\_ACEOF
43984 #define wxUSE_NORMALIZED_PS_FONTS 1
43985 _ACEOF
43986
43987
43988
43989 if test "$wxUSE_CONSTRAINTS" = "yes"; then
43990     cat >>confdefs.h <<\_ACEOF
43991 #define wxUSE_CONSTRAINTS 1
43992 _ACEOF
43993
43994     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43995 fi
43996
43997 if test "$wxUSE_MDI" = "yes"; then
43998     cat >>confdefs.h <<\_ACEOF
43999 #define wxUSE_MDI 1
44000 _ACEOF
44001
44002
44003     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44004         cat >>confdefs.h <<\_ACEOF
44005 #define wxUSE_MDI_ARCHITECTURE 1
44006 _ACEOF
44007
44008         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44009     fi
44010 fi
44011
44012 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44013     cat >>confdefs.h <<\_ACEOF
44014 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
44015 _ACEOF
44016
44017     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44018     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44019         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44020     fi
44021 fi
44022
44023 if test "$wxUSE_HELP" = "yes"; then
44024     cat >>confdefs.h <<\_ACEOF
44025 #define wxUSE_HELP 1
44026 _ACEOF
44027
44028     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44029
44030     if test "$wxUSE_MSW" = 1; then
44031       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44032         cat >>confdefs.h <<\_ACEOF
44033 #define wxUSE_MS_HTML_HELP 1
44034 _ACEOF
44035
44036       fi
44037     fi
44038
44039     if test "$wxUSE_WXHTML_HELP" = "yes"; then
44040       if test "$wxUSE_HTML" = "yes"; then
44041         cat >>confdefs.h <<\_ACEOF
44042 #define wxUSE_WXHTML_HELP 1
44043 _ACEOF
44044
44045       else
44046         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44047 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44048         wxUSE_WXHTML_HELP=no
44049       fi
44050     fi
44051 fi
44052
44053 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44054     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44055         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44056 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44057     else
44058         cat >>confdefs.h <<\_ACEOF
44059 #define wxUSE_PRINTING_ARCHITECTURE 1
44060 _ACEOF
44061
44062     fi
44063     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44064 fi
44065
44066 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
44067     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44068 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44069    { (exit 1); exit 1; }; }
44070 fi
44071
44072
44073 if test "$wxUSE_METAFILE" = "yes"; then
44074     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44075         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44076 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44077         wxUSE_METAFILE=no
44078     fi
44079 fi
44080
44081
44082 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
44083                           -o "$wxUSE_CLIPBOARD"     = "yes" \
44084                           -o "$wxUSE_OLE"     = "yes" \
44085                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44086
44087 for ac_header in ole2.h
44088 do
44089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44091   echo "$as_me:$LINENO: checking for $ac_header" >&5
44092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44094   echo $ECHO_N "(cached) $ECHO_C" >&6
44095 fi
44096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44098 else
44099   # Is the header compilable?
44100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44102 cat >conftest.$ac_ext <<_ACEOF
44103 /* confdefs.h.  */
44104 _ACEOF
44105 cat confdefs.h >>conftest.$ac_ext
44106 cat >>conftest.$ac_ext <<_ACEOF
44107 /* end confdefs.h.  */
44108 $ac_includes_default
44109 #include <$ac_header>
44110 _ACEOF
44111 rm -f conftest.$ac_objext
44112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44113   (eval $ac_compile) 2>conftest.er1
44114   ac_status=$?
44115   grep -v '^ *+' conftest.er1 >conftest.err
44116   rm -f conftest.er1
44117   cat conftest.err >&5
44118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44119   (exit $ac_status); } &&
44120          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44122   (eval $ac_try) 2>&5
44123   ac_status=$?
44124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44125   (exit $ac_status); }; } &&
44126          { ac_try='test -s conftest.$ac_objext'
44127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44128   (eval $ac_try) 2>&5
44129   ac_status=$?
44130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44131   (exit $ac_status); }; }; then
44132   ac_header_compiler=yes
44133 else
44134   echo "$as_me: failed program was:" >&5
44135 sed 's/^/| /' conftest.$ac_ext >&5
44136
44137 ac_header_compiler=no
44138 fi
44139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44141 echo "${ECHO_T}$ac_header_compiler" >&6
44142
44143 # Is the header present?
44144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44146 cat >conftest.$ac_ext <<_ACEOF
44147 /* confdefs.h.  */
44148 _ACEOF
44149 cat confdefs.h >>conftest.$ac_ext
44150 cat >>conftest.$ac_ext <<_ACEOF
44151 /* end confdefs.h.  */
44152 #include <$ac_header>
44153 _ACEOF
44154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44156   ac_status=$?
44157   grep -v '^ *+' conftest.er1 >conftest.err
44158   rm -f conftest.er1
44159   cat conftest.err >&5
44160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44161   (exit $ac_status); } >/dev/null; then
44162   if test -s conftest.err; then
44163     ac_cpp_err=$ac_cxx_preproc_warn_flag
44164     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
44165   else
44166     ac_cpp_err=
44167   fi
44168 else
44169   ac_cpp_err=yes
44170 fi
44171 if test -z "$ac_cpp_err"; then
44172   ac_header_preproc=yes
44173 else
44174   echo "$as_me: failed program was:" >&5
44175 sed 's/^/| /' conftest.$ac_ext >&5
44176
44177   ac_header_preproc=no
44178 fi
44179 rm -f conftest.err conftest.$ac_ext
44180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44181 echo "${ECHO_T}$ac_header_preproc" >&6
44182
44183 # So?  What about this header?
44184 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
44185   yes:no: )
44186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44190     ac_header_preproc=yes
44191     ;;
44192   no:yes:* )
44193     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44195     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44196 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44197     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44199     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44200 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44203     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44205     (
44206       cat <<\_ASBOX
44207 ## ----------------------------------------- ##
44208 ## Report this to wx-dev@lists.wxwidgets.org ##
44209 ## ----------------------------------------- ##
44210 _ASBOX
44211     ) |
44212       sed "s/^/$as_me: WARNING:     /" >&2
44213     ;;
44214 esac
44215 echo "$as_me:$LINENO: checking for $ac_header" >&5
44216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44218   echo $ECHO_N "(cached) $ECHO_C" >&6
44219 else
44220   eval "$as_ac_Header=\$ac_header_preproc"
44221 fi
44222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44224
44225 fi
44226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44227   cat >>confdefs.h <<_ACEOF
44228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44229 _ACEOF
44230
44231 fi
44232
44233 done
44234
44235
44236     if test "$ac_cv_header_ole2_h" = "yes" ; then
44237         if test "$GCC" = yes ; then
44238             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44239 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44240             cat >conftest.$ac_ext <<_ACEOF
44241 /* confdefs.h.  */
44242 _ACEOF
44243 cat confdefs.h >>conftest.$ac_ext
44244 cat >>conftest.$ac_ext <<_ACEOF
44245 /* end confdefs.h.  */
44246 #include <windows.h>
44247                             #include <ole2.h>
44248 int
44249 main ()
44250 {
44251
44252   ;
44253   return 0;
44254 }
44255 _ACEOF
44256 rm -f conftest.$ac_objext
44257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44258   (eval $ac_compile) 2>conftest.er1
44259   ac_status=$?
44260   grep -v '^ *+' conftest.er1 >conftest.err
44261   rm -f conftest.er1
44262   cat conftest.err >&5
44263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44264   (exit $ac_status); } &&
44265          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44267   (eval $ac_try) 2>&5
44268   ac_status=$?
44269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44270   (exit $ac_status); }; } &&
44271          { ac_try='test -s conftest.$ac_objext'
44272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44273   (eval $ac_try) 2>&5
44274   ac_status=$?
44275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44276   (exit $ac_status); }; }; then
44277   echo "$as_me:$LINENO: result: no" >&5
44278 echo "${ECHO_T}no" >&6
44279 else
44280   echo "$as_me: failed program was:" >&5
44281 sed 's/^/| /' conftest.$ac_ext >&5
44282
44283 echo "$as_me:$LINENO: result: yes" >&5
44284 echo "${ECHO_T}yes" >&6
44285                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
44286 fi
44287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44288             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44289             if test "$wxUSE_OLE" = "yes" ; then
44290                 cat >>confdefs.h <<\_ACEOF
44291 #define wxUSE_OLE 1
44292 _ACEOF
44293
44294                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
44295             fi
44296         fi
44297
44298                 if test "$wxUSE_DATAOBJ" = "yes" ; then
44299             cat >>confdefs.h <<\_ACEOF
44300 #define wxUSE_DATAOBJ 1
44301 _ACEOF
44302
44303         fi
44304     else
44305         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44306 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44307
44308         wxUSE_CLIPBOARD=no
44309         wxUSE_DRAG_AND_DROP=no
44310         wxUSE_DATAOBJ=no
44311         wxUSE_OLE=no
44312     fi
44313
44314     if test "$wxUSE_METAFILE" = "yes"; then
44315         cat >>confdefs.h <<\_ACEOF
44316 #define wxUSE_METAFILE 1
44317 _ACEOF
44318
44319
44320                 cat >>confdefs.h <<\_ACEOF
44321 #define wxUSE_ENH_METAFILE 1
44322 _ACEOF
44323
44324     fi
44325 fi
44326
44327 if test "$wxUSE_IPC" = "yes"; then
44328     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
44329         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44330 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
44331         wxUSE_IPC=no
44332     fi
44333
44334     if test "$wxUSE_IPC" = "yes"; then
44335         cat >>confdefs.h <<\_ACEOF
44336 #define wxUSE_IPC 1
44337 _ACEOF
44338
44339         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44340     fi
44341 fi
44342
44343 if test "$wxUSE_DATAOBJ" = "yes"; then
44344     if test "$wxUSE_MGL" = 1; then
44345         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44346 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44347         wxUSE_DATAOBJ=no
44348     else
44349         cat >>confdefs.h <<\_ACEOF
44350 #define wxUSE_DATAOBJ 1
44351 _ACEOF
44352
44353     fi
44354 else
44355     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44356 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44357     wxUSE_CLIPBOARD=no
44358     wxUSE_DRAG_AND_DROP=no
44359 fi
44360
44361 if test "$wxUSE_CLIPBOARD" = "yes"; then
44362     if test "$wxUSE_MGL" = 1; then
44363         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44364 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44365         wxUSE_CLIPBOARD=no
44366     fi
44367
44368     if test "$wxUSE_CLIPBOARD" = "yes"; then
44369         cat >>confdefs.h <<\_ACEOF
44370 #define wxUSE_CLIPBOARD 1
44371 _ACEOF
44372
44373     fi
44374 fi
44375
44376 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44377     if test "$wxUSE_GTK" = 1; then
44378         if test "$WXGTK12" != 1; then
44379             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44380 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44381             wxUSE_DRAG_AND_DROP=no
44382         fi
44383     fi
44384
44385     if test "$wxUSE_MOTIF" = 1; then
44386         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44387 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44388         wxUSE_DRAG_AND_DROP=no
44389     fi
44390
44391     if test "$wxUSE_X11" = 1; then
44392         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44393 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44394         wxUSE_DRAG_AND_DROP=no
44395     fi
44396
44397     if test "$wxUSE_MGL" = 1; then
44398         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44399 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44400         wxUSE_DRAG_AND_DROP=no
44401     fi
44402
44403     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44404         cat >>confdefs.h <<\_ACEOF
44405 #define wxUSE_DRAG_AND_DROP 1
44406 _ACEOF
44407
44408     fi
44409
44410 fi
44411
44412 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44413     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44414 fi
44415
44416 if test "$wxUSE_SPLINES" = "yes" ; then
44417   cat >>confdefs.h <<\_ACEOF
44418 #define wxUSE_SPLINES 1
44419 _ACEOF
44420
44421 fi
44422
44423 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44424   cat >>confdefs.h <<\_ACEOF
44425 #define wxUSE_MOUSEWHEEL 1
44426 _ACEOF
44427
44428 fi
44429
44430
44431 USES_CONTROLS=0
44432 if test "$wxUSE_CONTROLS" = "yes"; then
44433   USES_CONTROLS=1
44434 fi
44435
44436 if test "$wxUSE_ACCEL" = "yes"; then
44437   cat >>confdefs.h <<\_ACEOF
44438 #define wxUSE_ACCEL 1
44439 _ACEOF
44440
44441   USES_CONTROLS=1
44442 fi
44443
44444 if test "$wxUSE_BUTTON" = "yes"; then
44445   cat >>confdefs.h <<\_ACEOF
44446 #define wxUSE_BUTTON 1
44447 _ACEOF
44448
44449   USES_CONTROLS=1
44450 fi
44451
44452 if test "$wxUSE_BMPBUTTON" = "yes"; then
44453   cat >>confdefs.h <<\_ACEOF
44454 #define wxUSE_BMPBUTTON 1
44455 _ACEOF
44456
44457   USES_CONTROLS=1
44458 fi
44459
44460 if test "$wxUSE_CALCTRL" = "yes"; then
44461   cat >>confdefs.h <<\_ACEOF
44462 #define wxUSE_CALENDARCTRL 1
44463 _ACEOF
44464
44465   USES_CONTROLS=1
44466   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44467 fi
44468
44469 if test "$wxUSE_CARET" = "yes"; then
44470   cat >>confdefs.h <<\_ACEOF
44471 #define wxUSE_CARET 1
44472 _ACEOF
44473
44474   USES_CONTROLS=1
44475   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44476 fi
44477
44478 if test "$wxUSE_COMBOBOX" = "yes"; then
44479   cat >>confdefs.h <<\_ACEOF
44480 #define wxUSE_COMBOBOX 1
44481 _ACEOF
44482
44483   USES_CONTROLS=1
44484 fi
44485
44486 if test "$wxUSE_COMBOCTRL" = "yes"; then
44487   cat >>confdefs.h <<\_ACEOF
44488 #define wxUSE_COMBOCTRL 1
44489 _ACEOF
44490
44491   USES_CONTROLS=1
44492 fi
44493
44494 if test "$wxUSE_CHOICE" = "yes"; then
44495   cat >>confdefs.h <<\_ACEOF
44496 #define wxUSE_CHOICE 1
44497 _ACEOF
44498
44499   USES_CONTROLS=1
44500 fi
44501
44502 if test "$wxUSE_CHOICEBOOK" = "yes"; then
44503     cat >>confdefs.h <<\_ACEOF
44504 #define wxUSE_CHOICEBOOK 1
44505 _ACEOF
44506
44507     USES_CONTROLS=1
44508 fi
44509
44510 if test "$wxUSE_CHECKBOX" = "yes"; then
44511   cat >>confdefs.h <<\_ACEOF
44512 #define wxUSE_CHECKBOX 1
44513 _ACEOF
44514
44515   USES_CONTROLS=1
44516 fi
44517
44518 if test "$wxUSE_CHECKLST" = "yes"; then
44519   cat >>confdefs.h <<\_ACEOF
44520 #define wxUSE_CHECKLISTBOX 1
44521 _ACEOF
44522
44523   USES_CONTROLS=1
44524   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44525 fi
44526
44527 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44528   cat >>confdefs.h <<\_ACEOF
44529 #define wxUSE_COLOURPICKERCTRL 1
44530 _ACEOF
44531
44532   USES_CONTROLS=1
44533 fi
44534
44535 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44536   cat >>confdefs.h <<\_ACEOF
44537 #define wxUSE_DATEPICKCTRL 1
44538 _ACEOF
44539
44540   USES_CONTROLS=1
44541 fi
44542
44543 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44544   cat >>confdefs.h <<\_ACEOF
44545 #define wxUSE_DIRPICKERCTRL 1
44546 _ACEOF
44547
44548   USES_CONTROLS=1
44549 fi
44550
44551 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44552   cat >>confdefs.h <<\_ACEOF
44553 #define wxUSE_FILEPICKERCTRL 1
44554 _ACEOF
44555
44556   USES_CONTROLS=1
44557 fi
44558
44559 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44560   cat >>confdefs.h <<\_ACEOF
44561 #define wxUSE_FONTPICKERCTRL 1
44562 _ACEOF
44563
44564   USES_CONTROLS=1
44565 fi
44566
44567 if test "$wxUSE_DISPLAY" = "yes"; then
44568     cat >>confdefs.h <<\_ACEOF
44569 #define wxUSE_DISPLAY 1
44570 _ACEOF
44571
44572     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
44573 fi
44574
44575 if test "$wxUSE_GAUGE" = "yes"; then
44576   cat >>confdefs.h <<\_ACEOF
44577 #define wxUSE_GAUGE 1
44578 _ACEOF
44579
44580   USES_CONTROLS=1
44581 fi
44582
44583 if test "$wxUSE_GRID" = "yes"; then
44584   cat >>confdefs.h <<\_ACEOF
44585 #define wxUSE_GRID 1
44586 _ACEOF
44587
44588   USES_CONTROLS=1
44589   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44590 fi
44591
44592 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44593   cat >>confdefs.h <<\_ACEOF
44594 #define wxUSE_HYPERLINKCTRL 1
44595 _ACEOF
44596
44597   USES_CONTROLS=1
44598 fi
44599
44600 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44601   cat >>confdefs.h <<\_ACEOF
44602 #define wxUSE_DATAVIEWCTRL 1
44603 _ACEOF
44604
44605   USES_CONTROLS=1
44606   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44607 fi
44608
44609 if test "$wxUSE_IMAGLIST" = "yes"; then
44610     cat >>confdefs.h <<\_ACEOF
44611 #define wxUSE_IMAGLIST 1
44612 _ACEOF
44613
44614 fi
44615
44616 if test "$wxUSE_LISTBOOK" = "yes"; then
44617     cat >>confdefs.h <<\_ACEOF
44618 #define wxUSE_LISTBOOK 1
44619 _ACEOF
44620
44621     USES_CONTROLS=1
44622 fi
44623
44624 if test "$wxUSE_LISTBOX" = "yes"; then
44625     cat >>confdefs.h <<\_ACEOF
44626 #define wxUSE_LISTBOX 1
44627 _ACEOF
44628
44629     USES_CONTROLS=1
44630     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
44631 fi
44632
44633 if test "$wxUSE_LISTCTRL" = "yes"; then
44634     if test "$wxUSE_IMAGLIST" = "yes"; then
44635         cat >>confdefs.h <<\_ACEOF
44636 #define wxUSE_LISTCTRL 1
44637 _ACEOF
44638
44639         USES_CONTROLS=1
44640         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44641     else
44642         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44643 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44644     fi
44645 fi
44646
44647 if test "$wxUSE_NOTEBOOK" = "yes"; then
44648     cat >>confdefs.h <<\_ACEOF
44649 #define wxUSE_NOTEBOOK 1
44650 _ACEOF
44651
44652     USES_CONTROLS=1
44653     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44654 fi
44655
44656 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
44657   cat >>confdefs.h <<\_ACEOF
44658 #define wxUSE_ODCOMBOBOX 1
44659 _ACEOF
44660
44661   USES_CONTROLS=1
44662   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44663 fi
44664
44665
44666 if test "$wxUSE_RADIOBOX" = "yes"; then
44667     cat >>confdefs.h <<\_ACEOF
44668 #define wxUSE_RADIOBOX 1
44669 _ACEOF
44670
44671     USES_CONTROLS=1
44672 fi
44673
44674 if test "$wxUSE_RADIOBTN" = "yes"; then
44675     cat >>confdefs.h <<\_ACEOF
44676 #define wxUSE_RADIOBTN 1
44677 _ACEOF
44678
44679     USES_CONTROLS=1
44680 fi
44681
44682 if test "$wxUSE_SASH" = "yes"; then
44683     cat >>confdefs.h <<\_ACEOF
44684 #define wxUSE_SASH 1
44685 _ACEOF
44686
44687     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44688 fi
44689
44690 if test "$wxUSE_SCROLLBAR" = "yes"; then
44691     cat >>confdefs.h <<\_ACEOF
44692 #define wxUSE_SCROLLBAR 1
44693 _ACEOF
44694
44695     USES_CONTROLS=1
44696     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44697 fi
44698
44699 if test "$wxUSE_SLIDER" = "yes"; then
44700     cat >>confdefs.h <<\_ACEOF
44701 #define wxUSE_SLIDER 1
44702 _ACEOF
44703
44704     USES_CONTROLS=1
44705 fi
44706
44707 if test "$wxUSE_SPINBTN" = "yes"; then
44708     cat >>confdefs.h <<\_ACEOF
44709 #define wxUSE_SPINBTN 1
44710 _ACEOF
44711
44712     USES_CONTROLS=1
44713 fi
44714
44715 if test "$wxUSE_SPINCTRL" = "yes"; then
44716     cat >>confdefs.h <<\_ACEOF
44717 #define wxUSE_SPINCTRL 1
44718 _ACEOF
44719
44720     USES_CONTROLS=1
44721 fi
44722
44723 if test "$wxUSE_SPLITTER" = "yes"; then
44724     cat >>confdefs.h <<\_ACEOF
44725 #define wxUSE_SPLITTER 1
44726 _ACEOF
44727
44728     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44729 fi
44730
44731 if test "$wxUSE_STATBMP" = "yes"; then
44732     cat >>confdefs.h <<\_ACEOF
44733 #define wxUSE_STATBMP 1
44734 _ACEOF
44735
44736     USES_CONTROLS=1
44737 fi
44738
44739 if test "$wxUSE_STATBOX" = "yes"; then
44740     cat >>confdefs.h <<\_ACEOF
44741 #define wxUSE_STATBOX 1
44742 _ACEOF
44743
44744     USES_CONTROLS=1
44745 fi
44746
44747 if test "$wxUSE_STATTEXT" = "yes"; then
44748     cat >>confdefs.h <<\_ACEOF
44749 #define wxUSE_STATTEXT 1
44750 _ACEOF
44751
44752     USES_CONTROLS=1
44753 fi
44754
44755 if test "$wxUSE_STATLINE" = "yes"; then
44756     cat >>confdefs.h <<\_ACEOF
44757 #define wxUSE_STATLINE 1
44758 _ACEOF
44759
44760     USES_CONTROLS=1
44761 fi
44762
44763 if test "$wxUSE_STATUSBAR" = "yes"; then
44764         cat >>confdefs.h <<\_ACEOF
44765 #define wxUSE_NATIVE_STATUSBAR 1
44766 _ACEOF
44767
44768     cat >>confdefs.h <<\_ACEOF
44769 #define wxUSE_STATUSBAR 1
44770 _ACEOF
44771
44772     USES_CONTROLS=1
44773
44774     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44775 fi
44776
44777 if test "$wxUSE_TAB_DIALOG" = "yes"; then
44778     cat >>confdefs.h <<\_ACEOF
44779 #define wxUSE_TAB_DIALOG 1
44780 _ACEOF
44781
44782 fi
44783
44784 if test "$wxUSE_TEXTCTRL" = "yes"; then
44785     cat >>confdefs.h <<\_ACEOF
44786 #define wxUSE_TEXTCTRL 1
44787 _ACEOF
44788
44789     USES_CONTROLS=1
44790     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44791 fi
44792
44793 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44794     if test "$wxUSE_COCOA" = 1 ; then
44795         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44796 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44797         wxUSE_TOGGLEBTN=no
44798     fi
44799
44800     if test "$wxUSE_TOGGLEBTN" = "yes"; then
44801         cat >>confdefs.h <<\_ACEOF
44802 #define wxUSE_TOGGLEBTN 1
44803 _ACEOF
44804
44805         USES_CONTROLS=1
44806     fi
44807 fi
44808
44809 if test "$wxUSE_TOOLBAR" = "yes"; then
44810     cat >>confdefs.h <<\_ACEOF
44811 #define wxUSE_TOOLBAR 1
44812 _ACEOF
44813
44814     USES_CONTROLS=1
44815
44816     wxUSE_TOOLBAR_NATIVE="yes"
44817     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44818         cat >>confdefs.h <<\_ACEOF
44819 #define wxUSE_TOOLBAR_NATIVE 1
44820 _ACEOF
44821
44822     fi
44823
44824     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44825 fi
44826
44827 if test "$wxUSE_TOOLTIPS" = "yes"; then
44828     if test "$wxUSE_MOTIF" = 1; then
44829         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44830 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44831     else
44832         if test "$wxUSE_UNIVERSAL" = "yes"; then
44833             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44834 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44835         else
44836             cat >>confdefs.h <<\_ACEOF
44837 #define wxUSE_TOOLTIPS 1
44838 _ACEOF
44839
44840         fi
44841     fi
44842 fi
44843
44844 if test "$wxUSE_TREEBOOK" = "yes"; then
44845     cat >>confdefs.h <<\_ACEOF
44846 #define wxUSE_TREEBOOK 1
44847 _ACEOF
44848
44849     USES_CONTROLS=1
44850 fi
44851
44852 if test "$wxUSE_TOOLBOOK" = "yes"; then
44853     cat >>confdefs.h <<\_ACEOF
44854 #define wxUSE_TOOLBOOK 1
44855 _ACEOF
44856
44857     USES_CONTROLS=1
44858 fi
44859
44860 if test "$wxUSE_TREECTRL" = "yes"; then
44861     if test "$wxUSE_IMAGLIST" = "yes"; then
44862         cat >>confdefs.h <<\_ACEOF
44863 #define wxUSE_TREECTRL 1
44864 _ACEOF
44865
44866         USES_CONTROLS=1
44867         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44868     else
44869         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44870 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44871     fi
44872 fi
44873
44874 if test "$wxUSE_POPUPWIN" = "yes"; then
44875     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44876         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44877 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44878     else
44879         if test "$wxUSE_PM" = 1; then
44880             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44881 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44882         else
44883             cat >>confdefs.h <<\_ACEOF
44884 #define wxUSE_POPUPWIN 1
44885 _ACEOF
44886
44887             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
44888
44889             USES_CONTROLS=1
44890         fi
44891     fi
44892 fi
44893
44894 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
44895     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44896         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44897 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44898     else
44899         cat >>confdefs.h <<\_ACEOF
44900 #define wxUSE_DIALUP_MANAGER 1
44901 _ACEOF
44902
44903         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44904     fi
44905 fi
44906
44907 if test "$wxUSE_TIPWINDOW" = "yes"; then
44908     if test "$wxUSE_PM" = 1; then
44909         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44910 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44911     else
44912         cat >>confdefs.h <<\_ACEOF
44913 #define wxUSE_TIPWINDOW 1
44914 _ACEOF
44915
44916     fi
44917 fi
44918
44919 if test "$USES_CONTROLS" = 1; then
44920     cat >>confdefs.h <<\_ACEOF
44921 #define wxUSE_CONTROLS 1
44922 _ACEOF
44923
44924 fi
44925
44926
44927 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44928     cat >>confdefs.h <<\_ACEOF
44929 #define wxUSE_ACCESSIBILITY 1
44930 _ACEOF
44931
44932     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44933 fi
44934
44935 if test "$wxUSE_DC_CACHEING" = "yes"; then
44936     cat >>confdefs.h <<\_ACEOF
44937 #define wxUSE_DC_CACHEING 1
44938 _ACEOF
44939
44940 fi
44941
44942 if test "$wxUSE_DRAGIMAGE" = "yes"; then
44943     cat >>confdefs.h <<\_ACEOF
44944 #define wxUSE_DRAGIMAGE 1
44945 _ACEOF
44946
44947     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44948 fi
44949
44950 if test "$wxUSE_EXCEPTIONS" = "yes"; then
44951     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44952         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44953 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44954     else
44955         cat >>confdefs.h <<\_ACEOF
44956 #define wxUSE_EXCEPTIONS 1
44957 _ACEOF
44958
44959         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44960     fi
44961 fi
44962
44963 USE_HTML=0
44964 if test "$wxUSE_HTML" = "yes"; then
44965     cat >>confdefs.h <<\_ACEOF
44966 #define wxUSE_HTML 1
44967 _ACEOF
44968
44969     USE_HTML=1
44970     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
44971     if test "$wxUSE_MAC" = 1; then
44972         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44973     fi
44974 fi
44975 if test "$wxUSE_WEBKIT" = "yes"; then
44976     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
44977         old_CPPFLAGS="$CPPFLAGS"
44978         CPPFLAGS="-x objective-c++ $CPPFLAGS"
44979         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44980 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44981 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44982   echo $ECHO_N "(cached) $ECHO_C" >&6
44983 else
44984   cat >conftest.$ac_ext <<_ACEOF
44985 /* confdefs.h.  */
44986 _ACEOF
44987 cat confdefs.h >>conftest.$ac_ext
44988 cat >>conftest.$ac_ext <<_ACEOF
44989 /* end confdefs.h.  */
44990 #include <Carbon/Carbon.h>
44991
44992 #include <WebKit/HIWebView.h>
44993 _ACEOF
44994 rm -f conftest.$ac_objext
44995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44996   (eval $ac_compile) 2>conftest.er1
44997   ac_status=$?
44998   grep -v '^ *+' conftest.er1 >conftest.err
44999   rm -f conftest.er1
45000   cat conftest.err >&5
45001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45002   (exit $ac_status); } &&
45003          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45005   (eval $ac_try) 2>&5
45006   ac_status=$?
45007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45008   (exit $ac_status); }; } &&
45009          { ac_try='test -s conftest.$ac_objext'
45010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45011   (eval $ac_try) 2>&5
45012   ac_status=$?
45013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45014   (exit $ac_status); }; }; then
45015   ac_cv_header_WebKit_HIWebView_h=yes
45016 else
45017   echo "$as_me: failed program was:" >&5
45018 sed 's/^/| /' conftest.$ac_ext >&5
45019
45020 ac_cv_header_WebKit_HIWebView_h=no
45021 fi
45022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45023 fi
45024 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45025 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45026 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45027
45028                            cat >>confdefs.h <<\_ACEOF
45029 #define wxUSE_WEBKIT 1
45030 _ACEOF
45031
45032                            WEBKIT_LINK="-framework WebKit"
45033
45034 else
45035
45036                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45037 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45038                            wxUSE_WEBKIT=no
45039
45040 fi
45041
45042
45043         CPPFLAGS="$old_CPPFLAGS"
45044     elif test "$wxUSE_COCOA" = 1; then
45045         cat >>confdefs.h <<\_ACEOF
45046 #define wxUSE_WEBKIT 1
45047 _ACEOF
45048
45049     else
45050         wxUSE_WEBKIT=no
45051     fi
45052 fi
45053
45054 USE_XRC=0
45055 if test "$wxUSE_XRC" = "yes"; then
45056     if test "$wxUSE_XML" != "yes"; then
45057         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45058 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45059         wxUSE_XRC=no
45060     else
45061         cat >>confdefs.h <<\_ACEOF
45062 #define wxUSE_XRC 1
45063 _ACEOF
45064
45065         USE_XRC=1
45066         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45067     fi
45068 fi
45069
45070 USE_AUI=0
45071 if test "$wxUSE_AUI" = "yes"; then
45072    cat >>confdefs.h <<\_ACEOF
45073 #define wxUSE_AUI 1
45074 _ACEOF
45075
45076    USE_AUI=1
45077    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45078 fi
45079
45080 if test "$wxUSE_MENUS" = "yes"; then
45081     cat >>confdefs.h <<\_ACEOF
45082 #define wxUSE_MENUS 1
45083 _ACEOF
45084
45085     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45086 fi
45087
45088 if test "$wxUSE_METAFILE" = "yes"; then
45089     cat >>confdefs.h <<\_ACEOF
45090 #define wxUSE_METAFILE 1
45091 _ACEOF
45092
45093 fi
45094
45095 if test "$wxUSE_MIMETYPE" = "yes"; then
45096     cat >>confdefs.h <<\_ACEOF
45097 #define wxUSE_MIMETYPE 1
45098 _ACEOF
45099
45100 fi
45101
45102 if test "$wxUSE_MINIFRAME" = "yes"; then
45103     cat >>confdefs.h <<\_ACEOF
45104 #define wxUSE_MINIFRAME 1
45105 _ACEOF
45106
45107     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45108 fi
45109
45110 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45111     cat >>confdefs.h <<\_ACEOF
45112 #define wxUSE_SYSTEM_OPTIONS 1
45113 _ACEOF
45114
45115     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
45116         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
45117         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45118     fi
45119 fi
45120
45121
45122 if test "$wxUSE_VALIDATORS" = "yes"; then
45123     cat >>confdefs.h <<\_ACEOF
45124 #define wxUSE_VALIDATORS 1
45125 _ACEOF
45126
45127     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45128 fi
45129
45130 if test "$wxUSE_PALETTE" = "yes" ; then
45131   cat >>confdefs.h <<\_ACEOF
45132 #define wxUSE_PALETTE 1
45133 _ACEOF
45134
45135 fi
45136
45137 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45138     LIBS=" -lunicows $LIBS"
45139 fi
45140
45141 USE_RICHTEXT=0
45142 if test "$wxUSE_RICHTEXT" = "yes"; then
45143     cat >>confdefs.h <<\_ACEOF
45144 #define wxUSE_RICHTEXT 1
45145 _ACEOF
45146
45147     USE_RICHTEXT=1
45148     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45149 fi
45150
45151
45152 if test "$wxUSE_IMAGE" = "yes" ; then
45153     cat >>confdefs.h <<\_ACEOF
45154 #define wxUSE_IMAGE 1
45155 _ACEOF
45156
45157
45158     if test "$wxUSE_GIF" = "yes" ; then
45159       cat >>confdefs.h <<\_ACEOF
45160 #define wxUSE_GIF 1
45161 _ACEOF
45162
45163     fi
45164
45165     if test "$wxUSE_PCX" = "yes" ; then
45166       cat >>confdefs.h <<\_ACEOF
45167 #define wxUSE_PCX 1
45168 _ACEOF
45169
45170     fi
45171
45172     if test "$wxUSE_IFF" = "yes" ; then
45173       cat >>confdefs.h <<\_ACEOF
45174 #define wxUSE_IFF 1
45175 _ACEOF
45176
45177     fi
45178
45179     if test "$wxUSE_PNM" = "yes" ; then
45180       cat >>confdefs.h <<\_ACEOF
45181 #define wxUSE_PNM 1
45182 _ACEOF
45183
45184     fi
45185
45186     if test "$wxUSE_XPM" = "yes" ; then
45187       cat >>confdefs.h <<\_ACEOF
45188 #define wxUSE_XPM 1
45189 _ACEOF
45190
45191     fi
45192
45193     if test "$wxUSE_ICO_CUR" = "yes" ; then
45194       cat >>confdefs.h <<\_ACEOF
45195 #define wxUSE_ICO_CUR 1
45196 _ACEOF
45197
45198     fi
45199 fi
45200
45201
45202 if test "$wxUSE_CHOICEDLG" = "yes"; then
45203     cat >>confdefs.h <<\_ACEOF
45204 #define wxUSE_CHOICEDLG 1
45205 _ACEOF
45206
45207 fi
45208
45209 if test "$wxUSE_COLOURDLG" = "yes"; then
45210     cat >>confdefs.h <<\_ACEOF
45211 #define wxUSE_COLOURDLG 1
45212 _ACEOF
45213
45214 fi
45215
45216 if test "$wxUSE_FILEDLG" = "yes"; then
45217     cat >>confdefs.h <<\_ACEOF
45218 #define wxUSE_FILEDLG 1
45219 _ACEOF
45220
45221 fi
45222
45223 if test "$wxUSE_FINDREPLDLG" = "yes"; then
45224     cat >>confdefs.h <<\_ACEOF
45225 #define wxUSE_FINDREPLDLG 1
45226 _ACEOF
45227
45228 fi
45229
45230 if test "$wxUSE_FONTDLG" = "yes"; then
45231     cat >>confdefs.h <<\_ACEOF
45232 #define wxUSE_FONTDLG 1
45233 _ACEOF
45234
45235 fi
45236
45237 if test "$wxUSE_DIRDLG" = "yes"; then
45238     if test "$wxUSE_TREECTRL" != "yes"; then
45239         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45240 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45241     else
45242         cat >>confdefs.h <<\_ACEOF
45243 #define wxUSE_DIRDLG 1
45244 _ACEOF
45245
45246     fi
45247 fi
45248
45249 if test "$wxUSE_MSGDLG" = "yes"; then
45250     cat >>confdefs.h <<\_ACEOF
45251 #define wxUSE_MSGDLG 1
45252 _ACEOF
45253
45254 fi
45255
45256 if test "$wxUSE_NUMBERDLG" = "yes"; then
45257     cat >>confdefs.h <<\_ACEOF
45258 #define wxUSE_NUMBERDLG 1
45259 _ACEOF
45260
45261 fi
45262
45263 if test "$wxUSE_PROGRESSDLG" = "yes"; then
45264     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45265        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45266 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45267     else
45268         cat >>confdefs.h <<\_ACEOF
45269 #define wxUSE_PROGRESSDLG 1
45270 _ACEOF
45271
45272     fi
45273 fi
45274
45275 if test "$wxUSE_SPLASH" = "yes"; then
45276     cat >>confdefs.h <<\_ACEOF
45277 #define wxUSE_SPLASH 1
45278 _ACEOF
45279
45280     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
45281 fi
45282
45283 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45284     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45285        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45286 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45287     else
45288         cat >>confdefs.h <<\_ACEOF
45289 #define wxUSE_STARTUP_TIPS 1
45290 _ACEOF
45291
45292     fi
45293 fi
45294
45295 if test "$wxUSE_TEXTDLG" = "yes"; then
45296     cat >>confdefs.h <<\_ACEOF
45297 #define wxUSE_TEXTDLG 1
45298 _ACEOF
45299
45300 fi
45301
45302 if test "$wxUSE_WIZARDDLG" = "yes"; then
45303     cat >>confdefs.h <<\_ACEOF
45304 #define wxUSE_WIZARDDLG 1
45305 _ACEOF
45306
45307     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45308 fi
45309
45310
45311 USE_MEDIA=0
45312
45313 if test "$wxUSE_MEDIACTRL" = "yes"; then
45314     USE_MEDIA=1
45315
45316                 if test "$wxUSE_GTK" = 1; then
45317         wxUSE_GSTREAMER="no"
45318
45319                                                                 GST_VERSION_MAJOR=0
45320         GST_VERSION_MINOR=10
45321         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45322
45323         if test "$wxUSE_GSTREAMER8" = "no"; then
45324
45325 pkg_failed=no
45326 echo "$as_me:$LINENO: checking for GST" >&5
45327 echo $ECHO_N "checking for GST... $ECHO_C" >&6
45328
45329 if test -n "$PKG_CONFIG"; then
45330     if test -n "$GST_CFLAGS"; then
45331         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45332     else
45333         if test -n "$PKG_CONFIG" && \
45334     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45335   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45336   ac_status=$?
45337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45338   (exit $ac_status); }; then
45339   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
45340 else
45341   pkg_failed=yes
45342 fi
45343     fi
45344 else
45345         pkg_failed=untried
45346 fi
45347 if test -n "$PKG_CONFIG"; then
45348     if test -n "$GST_LIBS"; then
45349         pkg_cv_GST_LIBS="$GST_LIBS"
45350     else
45351         if test -n "$PKG_CONFIG" && \
45352     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45353   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45354   ac_status=$?
45355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45356   (exit $ac_status); }; then
45357   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
45358 else
45359   pkg_failed=yes
45360 fi
45361     fi
45362 else
45363         pkg_failed=untried
45364 fi
45365
45366
45367
45368 if test $pkg_failed = yes; then
45369
45370 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45371         _pkg_short_errors_supported=yes
45372 else
45373         _pkg_short_errors_supported=no
45374 fi
45375         if test $_pkg_short_errors_supported = yes; then
45376                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45377         else
45378                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45379         fi
45380         # Put the nasty error message in config.log where it belongs
45381         echo "$GST_PKG_ERRORS" >&5
45382
45383
45384                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45385 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45386                     GST_VERSION_MINOR=8
45387
45388
45389 elif test $pkg_failed = untried; then
45390
45391                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45392 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45393                     GST_VERSION_MINOR=8
45394
45395
45396 else
45397         GST_CFLAGS=$pkg_cv_GST_CFLAGS
45398         GST_LIBS=$pkg_cv_GST_LIBS
45399         echo "$as_me:$LINENO: result: yes" >&5
45400 echo "${ECHO_T}yes" >&6
45401
45402                     wxUSE_GSTREAMER="yes"
45403                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
45404
45405 fi
45406         else
45407                         GST_VERSION_MINOR=8
45408         fi
45409
45410         if test $GST_VERSION_MINOR = "8"; then
45411             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45412
45413 pkg_failed=no
45414 echo "$as_me:$LINENO: checking for GST" >&5
45415 echo $ECHO_N "checking for GST... $ECHO_C" >&6
45416
45417 if test -n "$PKG_CONFIG"; then
45418     if test -n "$GST_CFLAGS"; then
45419         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45420     else
45421         if test -n "$PKG_CONFIG" && \
45422     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45423   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45424   ac_status=$?
45425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45426   (exit $ac_status); }; then
45427   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
45428 else
45429   pkg_failed=yes
45430 fi
45431     fi
45432 else
45433         pkg_failed=untried
45434 fi
45435 if test -n "$PKG_CONFIG"; then
45436     if test -n "$GST_LIBS"; then
45437         pkg_cv_GST_LIBS="$GST_LIBS"
45438     else
45439         if test -n "$PKG_CONFIG" && \
45440     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45441   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45442   ac_status=$?
45443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45444   (exit $ac_status); }; then
45445   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
45446 else
45447   pkg_failed=yes
45448 fi
45449     fi
45450 else
45451         pkg_failed=untried
45452 fi
45453
45454
45455
45456 if test $pkg_failed = yes; then
45457
45458 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45459         _pkg_short_errors_supported=yes
45460 else
45461         _pkg_short_errors_supported=no
45462 fi
45463         if test $_pkg_short_errors_supported = yes; then
45464                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45465         else
45466                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45467         fi
45468         # Put the nasty error message in config.log where it belongs
45469         echo "$GST_PKG_ERRORS" >&5
45470
45471
45472                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45473 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
45474
45475 elif test $pkg_failed = untried; then
45476
45477                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45478 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
45479
45480 else
45481         GST_CFLAGS=$pkg_cv_GST_CFLAGS
45482         GST_LIBS=$pkg_cv_GST_LIBS
45483         echo "$as_me:$LINENO: result: yes" >&5
45484 echo "${ECHO_T}yes" >&6
45485         wxUSE_GSTREAMER="yes"
45486 fi
45487         fi
45488
45489
45490         if test "$wxUSE_GSTREAMER" = "yes"; then
45491                                     case "${host}" in
45492                 *-*-solaris2* )
45493                     if "$GCC" = yes; then
45494                         GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
45495                         GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
45496                     fi
45497             esac
45498
45499             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45500             LIBS="$GST_LIBS $LIBS"
45501
45502             cat >>confdefs.h <<\_ACEOF
45503 #define wxUSE_GSTREAMER 1
45504 _ACEOF
45505
45506         else
45507             USE_MEDIA=0
45508         fi
45509     fi
45510
45511     if test $USE_MEDIA = 1; then
45512         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45513         cat >>confdefs.h <<\_ACEOF
45514 #define wxUSE_MEDIACTRL 1
45515 _ACEOF
45516
45517     fi
45518 fi
45519
45520
45521 if test "$cross_compiling" = "yes"; then
45522         OSINFO="\"$host\""
45523 else
45524         OSINFO=`uname -s -r -m`
45525     OSINFO="\"$OSINFO\""
45526 fi
45527
45528 cat >>confdefs.h <<_ACEOF
45529 #define WXWIN_OS_DESCRIPTION $OSINFO
45530 _ACEOF
45531
45532
45533
45534 if test "x$prefix" != "xNONE"; then
45535     wxPREFIX=$prefix
45536 else
45537     wxPREFIX=$ac_default_prefix
45538 fi
45539
45540 cat >>confdefs.h <<_ACEOF
45541 #define wxINSTALL_PREFIX "$wxPREFIX"
45542 _ACEOF
45543
45544
45545
45546
45547 CORE_BASE_LIBS="net base"
45548 CORE_GUI_LIBS="adv core"
45549
45550 if test "$wxUSE_XML" = "yes" ; then
45551     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45552 fi
45553 if test "$wxUSE_ODBC" != "no" ; then
45554     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45555     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45556 fi
45557 if test "$wxUSE_HTML" = "yes" ; then
45558     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45559 fi
45560 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45561     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45562 fi
45563 if test "$wxUSE_XRC" = "yes" ; then
45564     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45565 fi
45566 if test "$wxUSE_AUI" = "yes" ; then
45567     CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45568 fi
45569
45570 if test "$wxUSE_GUI" != "yes"; then
45571     CORE_GUI_LIBS=""
45572 fi
45573
45574
45575
45576
45577
45578 ac_ext=c
45579 ac_cpp='$CPP $CPPFLAGS'
45580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45583
45584
45585
45586 if test "$wxUSE_MAC" = 1 ; then
45587     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
45588         if test "$USE_DARWIN" = 1; then
45589             LDFLAGS="$LDFLAGS -framework QuickTime"
45590         else
45591             LDFLAGS="$LDFLAGS -lQuickTimeLib"
45592         fi
45593     fi
45594     if test "$USE_DARWIN" = 1; then
45595         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45596     else
45597         LDFLAGS="$LDFLAGS -lCarbonLib"
45598     fi
45599 fi
45600 if test "$wxUSE_COCOA" = 1 ; then
45601     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
45602     if test "$wxUSE_MEDIACTRL" = "yes"; then
45603         LDFLAGS="$LDFLAGS -framework QuickTime"
45604     fi
45605 fi
45606 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45607     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45608 fi
45609
45610 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45611
45612 if test "$wxUSE_GUI" = "yes"; then
45613
45614
45615         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45616                      dynamic erase event exec font image minimal mobile \
45617                      mobile/wxedit mobile/styles propsize render \
45618                      rotate shaped vscroll widgets"
45619
45620     if test "$wxUSE_MONOLITHIC" != "yes"; then
45621         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45622     fi
45623     if test "$TOOLKIT" = "MSW"; then
45624         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45625         if test "$wxUSE_UNIVERSAL" != "yes"; then
45626             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45627         fi
45628     fi
45629     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45630         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
45631     fi
45632 else
45633     SAMPLES_SUBDIRS="console"
45634 fi
45635
45636
45637 if test "x$INTELCC" = "xyes" ; then
45638                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45639 elif test "$GCC" = yes ; then
45640     CWARNINGS="-Wall -Wundef"
45641 fi
45642
45643 if test "x$INTELCXX" = "xyes" ; then
45644                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
45645 elif test "$GXX" = yes ; then
45646         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
45647 fi
45648
45649
45650 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45651 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45652
45653
45654 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
45655  -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
45656  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45657  $CPPFLAGS `
45658
45659 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
45660 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
45661 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
45662
45663 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45664
45665
45666 if test "x$MWCC" = "xyes"; then
45667
45668             CC="$CC -cwd source -I-"
45669     CXX="$CXX -cwd source -I-"
45670 fi
45671
45672
45673 LIBS=`echo $LIBS`
45674 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45675 EXTRALIBS_XML="$EXPAT_LINK"
45676 EXTRALIBS_HTML="$MSPACK_LINK"
45677 EXTRALIBS_ODBC="$ODBC_LINK"
45678 if test "$wxUSE_GUI" = "yes"; then
45679     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
45680 fi
45681 if test "$wxUSE_OPENGL" = "yes"; then
45682     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45683 fi
45684
45685 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
45686
45687 WXCONFIG_LIBS="$LIBS"
45688
45689 if test "$wxUSE_REGEX" = "builtin" ; then
45690     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
45691 fi
45692 if test "$wxUSE_EXPAT" = "builtin" ; then
45693     wxconfig_3rdparty="expat $wxconfig_3rdparty"
45694 fi
45695 if test "$wxUSE_ODBC" = "builtin" ; then
45696     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
45697 fi
45698 if test "$wxUSE_LIBTIFF" = "builtin" ; then
45699     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
45700 fi
45701 if test "$wxUSE_LIBJPEG" = "builtin" ; then
45702     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
45703 fi
45704 if test "$wxUSE_LIBPNG" = "builtin" ; then
45705     wxconfig_3rdparty="png $wxconfig_3rdparty"
45706 fi
45707 if test "$wxUSE_ZLIB" = "builtin" ; then
45708     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
45709 fi
45710
45711 for i in $wxconfig_3rdparty ; do
45712     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
45713 done
45714
45715
45716 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45717     WXUNIV=1
45718 else
45719     WXUNIV=0
45720 fi
45721
45722
45723
45724
45725
45726
45727
45728
45729
45730 if test $wxUSE_MONOLITHIC = "yes" ; then
45731     MONOLITHIC=1
45732 else
45733     MONOLITHIC=0
45734 fi
45735
45736 if test $wxUSE_PLUGINS = "yes" ; then
45737     USE_PLUGINS=1
45738 else
45739     USE_PLUGINS=0
45740 fi
45741
45742 if test $wxUSE_ODBC != "no" ; then
45743     USE_ODBC=1
45744 else
45745     USE_ODBC=0
45746 fi
45747
45748 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45749     USE_QA=1
45750 else
45751     USE_QA=0
45752 fi
45753
45754 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45755     OFFICIAL_BUILD=1
45756 else
45757     OFFICIAL_BUILD=0
45758 fi
45759
45760
45761
45762
45763
45764
45765
45766
45767
45768
45769
45770
45771
45772
45773
45774
45775
45776
45777
45778
45779
45780
45781
45782
45783
45784 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45785
45786
45787
45788
45789
45790
45791
45792
45793 case "$TOOLKIT" in
45794     GTK)
45795         TOOLKIT_DESC="GTK+"
45796         if test "$WXGTK20" = 1; then
45797             TOOLKIT_DESC="$TOOLKIT_DESC 2"
45798             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45799                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
45800             fi
45801             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45802                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
45803             fi
45804             if test "$wxUSE_LIBHILDON" = "yes"; then
45805                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
45806             fi
45807
45808             if test "$TOOLKIT_EXTRA" != ""; then
45809                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
45810             fi
45811         fi
45812         ;;
45813
45814     ?*)
45815         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
45816         ;;
45817
45818     *)
45819         TOOLKIT_DESC="base only"
45820         ;;
45821 esac
45822
45823 if test "$wxUSE_WINE" = "yes"; then
45824     BAKEFILE_FORCE_PLATFORM=win32
45825 fi
45826
45827 if test "$wxUSE_MAC" = 1 ; then
45828     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
45829                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
45830             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
45831         else
45832                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
45833         fi
45834         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
45835         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
45836         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
45837         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
45838         bk_use_pch=no
45839     fi
45840     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45841     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45842 fi
45843
45844
45845
45846
45847     if test "x$BAKEFILE_HOST" = "x"; then
45848                if test "x${host}" = "x" ; then
45849                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45850 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45851    { (exit 1); exit 1; }; }
45852                fi
45853
45854         BAKEFILE_HOST="${host}"
45855     fi
45856
45857     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45858
45859     if test -n "$ac_tool_prefix"; then
45860   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45861 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45862 echo "$as_me:$LINENO: checking for $ac_word" >&5
45863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45864 if test "${ac_cv_prog_RANLIB+set}" = set; then
45865   echo $ECHO_N "(cached) $ECHO_C" >&6
45866 else
45867   if test -n "$RANLIB"; then
45868   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45869 else
45870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45871 for as_dir in $PATH
45872 do
45873   IFS=$as_save_IFS
45874   test -z "$as_dir" && as_dir=.
45875   for ac_exec_ext in '' $ac_executable_extensions; do
45876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45877     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45879     break 2
45880   fi
45881 done
45882 done
45883
45884 fi
45885 fi
45886 RANLIB=$ac_cv_prog_RANLIB
45887 if test -n "$RANLIB"; then
45888   echo "$as_me:$LINENO: result: $RANLIB" >&5
45889 echo "${ECHO_T}$RANLIB" >&6
45890 else
45891   echo "$as_me:$LINENO: result: no" >&5
45892 echo "${ECHO_T}no" >&6
45893 fi
45894
45895 fi
45896 if test -z "$ac_cv_prog_RANLIB"; then
45897   ac_ct_RANLIB=$RANLIB
45898   # Extract the first word of "ranlib", so it can be a program name with args.
45899 set dummy ranlib; ac_word=$2
45900 echo "$as_me:$LINENO: checking for $ac_word" >&5
45901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45903   echo $ECHO_N "(cached) $ECHO_C" >&6
45904 else
45905   if test -n "$ac_ct_RANLIB"; then
45906   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45907 else
45908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45909 for as_dir in $PATH
45910 do
45911   IFS=$as_save_IFS
45912   test -z "$as_dir" && as_dir=.
45913   for ac_exec_ext in '' $ac_executable_extensions; do
45914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45915     ac_cv_prog_ac_ct_RANLIB="ranlib"
45916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45917     break 2
45918   fi
45919 done
45920 done
45921
45922   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45923 fi
45924 fi
45925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45926 if test -n "$ac_ct_RANLIB"; then
45927   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45928 echo "${ECHO_T}$ac_ct_RANLIB" >&6
45929 else
45930   echo "$as_me:$LINENO: result: no" >&5
45931 echo "${ECHO_T}no" >&6
45932 fi
45933
45934   RANLIB=$ac_ct_RANLIB
45935 else
45936   RANLIB="$ac_cv_prog_RANLIB"
45937 fi
45938
45939     # Find a good install program.  We prefer a C program (faster),
45940 # so one script is as good as another.  But avoid the broken or
45941 # incompatible versions:
45942 # SysV /etc/install, /usr/sbin/install
45943 # SunOS /usr/etc/install
45944 # IRIX /sbin/install
45945 # AIX /bin/install
45946 # AmigaOS /C/install, which installs bootblocks on floppy discs
45947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
45949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
45950 # OS/2's system install, which has a completely different semantic
45951 # ./install, which can be erroneously created by make from ./install.sh.
45952 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45954 if test -z "$INSTALL"; then
45955 if test "${ac_cv_path_install+set}" = set; then
45956   echo $ECHO_N "(cached) $ECHO_C" >&6
45957 else
45958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45959 for as_dir in $PATH
45960 do
45961   IFS=$as_save_IFS
45962   test -z "$as_dir" && as_dir=.
45963   # Account for people who put trailing slashes in PATH elements.
45964 case $as_dir/ in
45965   ./ | .// | /cC/* | \
45966   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
45967   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
45968   /usr/ucb/* ) ;;
45969   *)
45970     # OSF1 and SCO ODT 3.0 have their own names for install.
45971     # Don't use installbsd from OSF since it installs stuff as root
45972     # by default.
45973     for ac_prog in ginstall scoinst install; do
45974       for ac_exec_ext in '' $ac_executable_extensions; do
45975         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45976           if test $ac_prog = install &&
45977             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45978             # AIX install.  It has an incompatible calling convention.
45979             :
45980           elif test $ac_prog = install &&
45981             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45982             # program-specific install script used by HP pwplus--don't use.
45983             :
45984           else
45985             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45986             break 3
45987           fi
45988         fi
45989       done
45990     done
45991     ;;
45992 esac
45993 done
45994
45995
45996 fi
45997   if test "${ac_cv_path_install+set}" = set; then
45998     INSTALL=$ac_cv_path_install
45999   else
46000     # As a last resort, use the slow shell script.  We don't cache a
46001     # path for INSTALL within a source directory, because that will
46002     # break other packages using the cache if that directory is
46003     # removed, or if the path is relative.
46004     INSTALL=$ac_install_sh
46005   fi
46006 fi
46007 echo "$as_me:$LINENO: result: $INSTALL" >&5
46008 echo "${ECHO_T}$INSTALL" >&6
46009
46010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46011 # It thinks the first close brace ends the variable substitution.
46012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46013
46014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46015
46016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46017
46018     echo "$as_me:$LINENO: checking whether ln -s works" >&5
46019 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46020 LN_S=$as_ln_s
46021 if test "$LN_S" = "ln -s"; then
46022   echo "$as_me:$LINENO: result: yes" >&5
46023 echo "${ECHO_T}yes" >&6
46024 else
46025   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46026 echo "${ECHO_T}no, using $LN_S" >&6
46027 fi
46028
46029
46030     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46031 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
46032 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
46033 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46034   echo $ECHO_N "(cached) $ECHO_C" >&6
46035 else
46036   cat >conftest.make <<\_ACEOF
46037 all:
46038         @echo 'ac_maketemp="$(MAKE)"'
46039 _ACEOF
46040 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46041 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46042 if test -n "$ac_maketemp"; then
46043   eval ac_cv_prog_make_${ac_make}_set=yes
46044 else
46045   eval ac_cv_prog_make_${ac_make}_set=no
46046 fi
46047 rm -f conftest.make
46048 fi
46049 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46050   echo "$as_me:$LINENO: result: yes" >&5
46051 echo "${ECHO_T}yes" >&6
46052   SET_MAKE=
46053 else
46054   echo "$as_me:$LINENO: result: no" >&5
46055 echo "${ECHO_T}no" >&6
46056   SET_MAKE="MAKE=${MAKE-make}"
46057 fi
46058
46059
46060
46061     if test -n "$ac_tool_prefix"; then
46062   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46063 set dummy ${ac_tool_prefix}ar; ac_word=$2
46064 echo "$as_me:$LINENO: checking for $ac_word" >&5
46065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46066 if test "${ac_cv_prog_AR+set}" = set; then
46067   echo $ECHO_N "(cached) $ECHO_C" >&6
46068 else
46069   if test -n "$AR"; then
46070   ac_cv_prog_AR="$AR" # Let the user override the test.
46071 else
46072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46073 for as_dir in $PATH
46074 do
46075   IFS=$as_save_IFS
46076   test -z "$as_dir" && as_dir=.
46077   for ac_exec_ext in '' $ac_executable_extensions; do
46078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46079     ac_cv_prog_AR="${ac_tool_prefix}ar"
46080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46081     break 2
46082   fi
46083 done
46084 done
46085
46086 fi
46087 fi
46088 AR=$ac_cv_prog_AR
46089 if test -n "$AR"; then
46090   echo "$as_me:$LINENO: result: $AR" >&5
46091 echo "${ECHO_T}$AR" >&6
46092 else
46093   echo "$as_me:$LINENO: result: no" >&5
46094 echo "${ECHO_T}no" >&6
46095 fi
46096
46097 fi
46098 if test -z "$ac_cv_prog_AR"; then
46099   ac_ct_AR=$AR
46100   # Extract the first word of "ar", so it can be a program name with args.
46101 set dummy ar; ac_word=$2
46102 echo "$as_me:$LINENO: checking for $ac_word" >&5
46103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46104 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46105   echo $ECHO_N "(cached) $ECHO_C" >&6
46106 else
46107   if test -n "$ac_ct_AR"; then
46108   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46109 else
46110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46111 for as_dir in $PATH
46112 do
46113   IFS=$as_save_IFS
46114   test -z "$as_dir" && as_dir=.
46115   for ac_exec_ext in '' $ac_executable_extensions; do
46116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46117     ac_cv_prog_ac_ct_AR="ar"
46118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46119     break 2
46120   fi
46121 done
46122 done
46123
46124   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46125 fi
46126 fi
46127 ac_ct_AR=$ac_cv_prog_ac_ct_AR
46128 if test -n "$ac_ct_AR"; then
46129   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46130 echo "${ECHO_T}$ac_ct_AR" >&6
46131 else
46132   echo "$as_me:$LINENO: result: no" >&5
46133 echo "${ECHO_T}no" >&6
46134 fi
46135
46136   AR=$ac_ct_AR
46137 else
46138   AR="$ac_cv_prog_AR"
46139 fi
46140
46141     if test -n "$ac_tool_prefix"; then
46142   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46143 set dummy ${ac_tool_prefix}strip; ac_word=$2
46144 echo "$as_me:$LINENO: checking for $ac_word" >&5
46145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46146 if test "${ac_cv_prog_STRIP+set}" = set; then
46147   echo $ECHO_N "(cached) $ECHO_C" >&6
46148 else
46149   if test -n "$STRIP"; then
46150   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46151 else
46152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46153 for as_dir in $PATH
46154 do
46155   IFS=$as_save_IFS
46156   test -z "$as_dir" && as_dir=.
46157   for ac_exec_ext in '' $ac_executable_extensions; do
46158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46159     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46161     break 2
46162   fi
46163 done
46164 done
46165
46166 fi
46167 fi
46168 STRIP=$ac_cv_prog_STRIP
46169 if test -n "$STRIP"; then
46170   echo "$as_me:$LINENO: result: $STRIP" >&5
46171 echo "${ECHO_T}$STRIP" >&6
46172 else
46173   echo "$as_me:$LINENO: result: no" >&5
46174 echo "${ECHO_T}no" >&6
46175 fi
46176
46177 fi
46178 if test -z "$ac_cv_prog_STRIP"; then
46179   ac_ct_STRIP=$STRIP
46180   # Extract the first word of "strip", so it can be a program name with args.
46181 set dummy strip; ac_word=$2
46182 echo "$as_me:$LINENO: checking for $ac_word" >&5
46183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46184 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46185   echo $ECHO_N "(cached) $ECHO_C" >&6
46186 else
46187   if test -n "$ac_ct_STRIP"; then
46188   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46189 else
46190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46191 for as_dir in $PATH
46192 do
46193   IFS=$as_save_IFS
46194   test -z "$as_dir" && as_dir=.
46195   for ac_exec_ext in '' $ac_executable_extensions; do
46196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46197     ac_cv_prog_ac_ct_STRIP="strip"
46198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46199     break 2
46200   fi
46201 done
46202 done
46203
46204   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46205 fi
46206 fi
46207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46208 if test -n "$ac_ct_STRIP"; then
46209   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46210 echo "${ECHO_T}$ac_ct_STRIP" >&6
46211 else
46212   echo "$as_me:$LINENO: result: no" >&5
46213 echo "${ECHO_T}no" >&6
46214 fi
46215
46216   STRIP=$ac_ct_STRIP
46217 else
46218   STRIP="$ac_cv_prog_STRIP"
46219 fi
46220
46221     if test -n "$ac_tool_prefix"; then
46222   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46223 set dummy ${ac_tool_prefix}nm; ac_word=$2
46224 echo "$as_me:$LINENO: checking for $ac_word" >&5
46225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46226 if test "${ac_cv_prog_NM+set}" = set; then
46227   echo $ECHO_N "(cached) $ECHO_C" >&6
46228 else
46229   if test -n "$NM"; then
46230   ac_cv_prog_NM="$NM" # Let the user override the test.
46231 else
46232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46233 for as_dir in $PATH
46234 do
46235   IFS=$as_save_IFS
46236   test -z "$as_dir" && as_dir=.
46237   for ac_exec_ext in '' $ac_executable_extensions; do
46238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46239     ac_cv_prog_NM="${ac_tool_prefix}nm"
46240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46241     break 2
46242   fi
46243 done
46244 done
46245
46246 fi
46247 fi
46248 NM=$ac_cv_prog_NM
46249 if test -n "$NM"; then
46250   echo "$as_me:$LINENO: result: $NM" >&5
46251 echo "${ECHO_T}$NM" >&6
46252 else
46253   echo "$as_me:$LINENO: result: no" >&5
46254 echo "${ECHO_T}no" >&6
46255 fi
46256
46257 fi
46258 if test -z "$ac_cv_prog_NM"; then
46259   ac_ct_NM=$NM
46260   # Extract the first word of "nm", so it can be a program name with args.
46261 set dummy nm; ac_word=$2
46262 echo "$as_me:$LINENO: checking for $ac_word" >&5
46263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46264 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46265   echo $ECHO_N "(cached) $ECHO_C" >&6
46266 else
46267   if test -n "$ac_ct_NM"; then
46268   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46269 else
46270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46271 for as_dir in $PATH
46272 do
46273   IFS=$as_save_IFS
46274   test -z "$as_dir" && as_dir=.
46275   for ac_exec_ext in '' $ac_executable_extensions; do
46276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46277     ac_cv_prog_ac_ct_NM="nm"
46278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46279     break 2
46280   fi
46281 done
46282 done
46283
46284   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46285 fi
46286 fi
46287 ac_ct_NM=$ac_cv_prog_ac_ct_NM
46288 if test -n "$ac_ct_NM"; then
46289   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46290 echo "${ECHO_T}$ac_ct_NM" >&6
46291 else
46292   echo "$as_me:$LINENO: result: no" >&5
46293 echo "${ECHO_T}no" >&6
46294 fi
46295
46296   NM=$ac_ct_NM
46297 else
46298   NM="$ac_cv_prog_NM"
46299 fi
46300
46301
46302     case ${BAKEFILE_HOST} in
46303         *-hp-hpux* )
46304                                     INSTALL_DIR="mkdir -p"
46305             ;;
46306         *)  INSTALL_DIR="$INSTALL -d"
46307             ;;
46308     esac
46309
46310
46311     LDFLAGS_GUI=
46312     case ${BAKEFILE_HOST} in
46313         *-*-cygwin* | *-*-mingw32* )
46314         LDFLAGS_GUI="-mwindows"
46315     esac
46316
46317
46318     fi
46319
46320         echo "$as_me:$LINENO: checking if make is GNU make" >&5
46321 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46322 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46323   echo $ECHO_N "(cached) $ECHO_C" >&6
46324 else
46325
46326         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46327                 egrep -s GNU > /dev/null); then
46328             bakefile_cv_prog_makeisgnu="yes"
46329         else
46330             bakefile_cv_prog_makeisgnu="no"
46331         fi
46332
46333 fi
46334 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46335 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46336
46337     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46338         IF_GNU_MAKE=""
46339     else
46340         IF_GNU_MAKE="#"
46341     fi
46342
46343
46344
46345     PLATFORM_UNIX=0
46346     PLATFORM_WIN32=0
46347     PLATFORM_MSDOS=0
46348     PLATFORM_MAC=0
46349     PLATFORM_MACOS=0
46350     PLATFORM_MACOSX=0
46351     PLATFORM_OS2=0
46352     PLATFORM_BEOS=0
46353
46354     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46355         case "${BAKEFILE_HOST}" in
46356             *-*-mingw32* )
46357                 PLATFORM_WIN32=1
46358             ;;
46359             *-pc-msdosdjgpp )
46360                 PLATFORM_MSDOS=1
46361             ;;
46362             *-pc-os2_emx | *-pc-os2-emx )
46363                 PLATFORM_OS2=1
46364             ;;
46365             *-*-darwin* )
46366                 PLATFORM_MAC=1
46367                 PLATFORM_MACOSX=1
46368             ;;
46369             *-*-beos* )
46370                 PLATFORM_BEOS=1
46371             ;;
46372             powerpc-apple-macos* )
46373                 PLATFORM_MAC=1
46374                 PLATFORM_MACOS=1
46375             ;;
46376             * )
46377                 PLATFORM_UNIX=1
46378             ;;
46379         esac
46380     else
46381         case "$BAKEFILE_FORCE_PLATFORM" in
46382             win32 )
46383                 PLATFORM_WIN32=1
46384             ;;
46385             msdos )
46386                 PLATFORM_MSDOS=1
46387             ;;
46388             os2 )
46389                 PLATFORM_OS2=1
46390             ;;
46391             darwin )
46392                 PLATFORM_MAC=1
46393                 PLATFORM_MACOSX=1
46394             ;;
46395             unix )
46396                 PLATFORM_UNIX=1
46397             ;;
46398             beos )
46399                 PLATFORM_BEOS=1
46400             ;;
46401             * )
46402                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46403 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46404    { (exit 1); exit 1; }; }
46405             ;;
46406         esac
46407     fi
46408
46409
46410
46411
46412
46413
46414
46415
46416
46417
46418
46419     # Check whether --enable-omf or --disable-omf was given.
46420 if test "${enable_omf+set}" = set; then
46421   enableval="$enable_omf"
46422   bk_os2_use_omf="$enableval"
46423 fi;
46424
46425     case "${BAKEFILE_HOST}" in
46426       *-*-darwin* )
46427                         if test "x$GCC" = "xyes"; then
46428             CFLAGS="$CFLAGS -fno-common"
46429             CXXFLAGS="$CXXFLAGS -fno-common"
46430         fi
46431         if test "x$XLCC" = "xyes"; then
46432             CFLAGS="$CFLAGS -qnocommon"
46433             CXXFLAGS="$CXXFLAGS -qnocommon"
46434         fi
46435         ;;
46436
46437       *-pc-os2_emx | *-pc-os2-emx )
46438         if test "x$bk_os2_use_omf" = "xyes" ; then
46439             AR=emxomfar
46440             RANLIB=:
46441             LDFLAGS="-Zomf $LDFLAGS"
46442             CFLAGS="-Zomf $CFLAGS"
46443             CXXFLAGS="-Zomf $CXXFLAGS"
46444             OS2_LIBEXT="lib"
46445         else
46446             OS2_LIBEXT="a"
46447         fi
46448         ;;
46449
46450       i*86-*-beos* )
46451         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46452         ;;
46453     esac
46454
46455
46456     SO_SUFFIX="so"
46457     SO_SUFFIX_MODULE="so"
46458     EXEEXT=""
46459     LIBPREFIX="lib"
46460     LIBEXT=".a"
46461     DLLPREFIX="lib"
46462     DLLPREFIX_MODULE=""
46463     DLLIMP_SUFFIX=""
46464     dlldir="$libdir"
46465
46466     case "${BAKEFILE_HOST}" in
46467         *-hp-hpux* )
46468             SO_SUFFIX="sl"
46469             SO_SUFFIX_MODULE="sl"
46470         ;;
46471         *-*-aix* )
46472                                                                         SO_SUFFIX="a"
46473             SO_SUFFIX_MODULE="a"
46474         ;;
46475         *-*-cygwin* )
46476             SO_SUFFIX="dll"
46477             SO_SUFFIX_MODULE="dll"
46478             DLLIMP_SUFFIX="dll.a"
46479             EXEEXT=".exe"
46480             DLLPREFIX="cyg"
46481             dlldir="$bindir"
46482         ;;
46483         *-*-mingw32* )
46484             SO_SUFFIX="dll"
46485             SO_SUFFIX_MODULE="dll"
46486             DLLIMP_SUFFIX="dll.a"
46487             EXEEXT=".exe"
46488             DLLPREFIX=""
46489             dlldir="$bindir"
46490         ;;
46491         *-pc-msdosdjgpp )
46492             EXEEXT=".exe"
46493             DLLPREFIX=""
46494             dlldir="$bindir"
46495         ;;
46496         *-pc-os2_emx | *-pc-os2-emx )
46497             SO_SUFFIX="dll"
46498             SO_SUFFIX_MODULE="dll"
46499             DLLIMP_SUFFIX=$OS2_LIBEXT
46500             EXEEXT=".exe"
46501             DLLPREFIX=""
46502             LIBPREFIX=""
46503             LIBEXT=".$OS2_LIBEXT"
46504             dlldir="$bindir"
46505         ;;
46506         *-*-darwin* )
46507             SO_SUFFIX="dylib"
46508             SO_SUFFIX_MODULE="bundle"
46509         ;;
46510     esac
46511
46512     if test "x$DLLIMP_SUFFIX" = "x" ; then
46513         DLLIMP_SUFFIX="$SO_SUFFIX"
46514     fi
46515
46516
46517
46518
46519
46520
46521
46522
46523
46524
46525
46526
46527         PIC_FLAG=""
46528     if test "x$GCC" = "xyes"; then
46529                 PIC_FLAG="-fPIC"
46530     fi
46531
46532         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46533     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
46534     WINDOWS_IMPLIB=0
46535
46536     case "${BAKEFILE_HOST}" in
46537       *-hp-hpux* )
46538                 if test "x$GCC" != "xyes"; then
46539                         LDFLAGS="$LDFLAGS -L/usr/lib"
46540
46541             SHARED_LD_CC="${CC} -b -o"
46542             SHARED_LD_CXX="${CXX} -b -o"
46543             PIC_FLAG="+Z"
46544         fi
46545       ;;
46546
46547       *-*-linux* )
46548         if test "x$GCC" != "xyes"; then
46549             echo "$as_me:$LINENO: checking for Intel compiler" >&5
46550 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46551 if test "${bakefile_cv_prog_icc+set}" = set; then
46552   echo $ECHO_N "(cached) $ECHO_C" >&6
46553 else
46554
46555                 cat >conftest.$ac_ext <<_ACEOF
46556 /* confdefs.h.  */
46557 _ACEOF
46558 cat confdefs.h >>conftest.$ac_ext
46559 cat >>conftest.$ac_ext <<_ACEOF
46560 /* end confdefs.h.  */
46561
46562 int
46563 main ()
46564 {
46565
46566                         #ifndef __INTEL_COMPILER
46567                         This is not ICC
46568                         #endif
46569
46570   ;
46571   return 0;
46572 }
46573 _ACEOF
46574 rm -f conftest.$ac_objext
46575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46576   (eval $ac_compile) 2>conftest.er1
46577   ac_status=$?
46578   grep -v '^ *+' conftest.er1 >conftest.err
46579   rm -f conftest.er1
46580   cat conftest.err >&5
46581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46582   (exit $ac_status); } &&
46583          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46585   (eval $ac_try) 2>&5
46586   ac_status=$?
46587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46588   (exit $ac_status); }; } &&
46589          { ac_try='test -s conftest.$ac_objext'
46590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46591   (eval $ac_try) 2>&5
46592   ac_status=$?
46593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46594   (exit $ac_status); }; }; then
46595   bakefile_cv_prog_icc=yes
46596 else
46597   echo "$as_me: failed program was:" >&5
46598 sed 's/^/| /' conftest.$ac_ext >&5
46599
46600 bakefile_cv_prog_icc=no
46601
46602 fi
46603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46604
46605 fi
46606 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46607 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46608             if test "$bakefile_cv_prog_icc" = "yes"; then
46609                 PIC_FLAG="-KPIC"
46610             fi
46611         fi
46612       ;;
46613
46614       *-*-solaris2* )
46615         if test "x$GCC" != xyes ; then
46616             SHARED_LD_CC="${CC} -G -o"
46617             SHARED_LD_CXX="${CXX} -G -o"
46618             PIC_FLAG="-KPIC"
46619         fi
46620       ;;
46621
46622       *-*-darwin* )
46623
46624 D='$'
46625 cat <<EOF >shared-ld-sh
46626 #!/bin/sh
46627 #-----------------------------------------------------------------------------
46628 #-- Name:        distrib/mac/shared-ld-sh
46629 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
46630 #-- Author:      Gilles Depeyrot
46631 #-- Copyright:   (c) 2002 Gilles Depeyrot
46632 #-- Licence:     any use permitted
46633 #-----------------------------------------------------------------------------
46634
46635 verbose=0
46636 args=""
46637 objects=""
46638 linking_flag="-dynamiclib"
46639 ldargs="-r -keep_private_externs -nostdlib"
46640
46641 while test ${D}# -gt 0; do
46642     case ${D}1 in
46643
46644        -v)
46645         verbose=1
46646         ;;
46647
46648        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46649         # collect these options and values
46650         args="${D}{args} ${D}1 ${D}2"
46651         shift
46652         ;;
46653
46654        -s|-Wl,*)
46655         # collect these load args
46656         ldargs="${D}{ldargs} ${D}1"
46657         ;;
46658
46659        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
46660         # collect these options
46661         args="${D}{args} ${D}1"
46662         ;;
46663
46664        -dynamiclib|-bundle)
46665         linking_flag="${D}1"
46666         ;;
46667
46668        -*)
46669         echo "shared-ld: unhandled option '${D}1'"
46670         exit 1
46671         ;;
46672
46673         *.o | *.a | *.dylib)
46674         # collect object files
46675         objects="${D}{objects} ${D}1"
46676         ;;
46677
46678         *)
46679         echo "shared-ld: unhandled argument '${D}1'"
46680         exit 1
46681         ;;
46682
46683     esac
46684     shift
46685 done
46686
46687 status=0
46688
46689 #
46690 # Link one module containing all the others
46691 #
46692 if test ${D}{verbose} = 1; then
46693     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
46694 fi
46695 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
46696 status=${D}?
46697
46698 #
46699 # Link the shared library from the single module created, but only if the
46700 # previous command didn't fail:
46701 #
46702 if test ${D}{status} = 0; then
46703     if test ${D}{verbose} = 1; then
46704         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46705     fi
46706     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46707     status=${D}?
46708 fi
46709
46710 #
46711 # Remove intermediate module
46712 #
46713 rm -f master.${D}${D}.o
46714
46715 exit ${D}status
46716 EOF
46717
46718         chmod +x shared-ld-sh
46719
46720         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46721         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46722
46723
46724                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46725 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46726 if test "${bakefile_cv_gcc31+set}" = set; then
46727   echo $ECHO_N "(cached) $ECHO_C" >&6
46728 else
46729
46730            cat >conftest.$ac_ext <<_ACEOF
46731 /* confdefs.h.  */
46732 _ACEOF
46733 cat confdefs.h >>conftest.$ac_ext
46734 cat >>conftest.$ac_ext <<_ACEOF
46735 /* end confdefs.h.  */
46736
46737 int
46738 main ()
46739 {
46740
46741                    #if (__GNUC__ < 3) || \
46742                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
46743                        This is old gcc
46744                    #endif
46745
46746   ;
46747   return 0;
46748 }
46749 _ACEOF
46750 rm -f conftest.$ac_objext
46751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46752   (eval $ac_compile) 2>conftest.er1
46753   ac_status=$?
46754   grep -v '^ *+' conftest.er1 >conftest.err
46755   rm -f conftest.er1
46756   cat conftest.err >&5
46757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46758   (exit $ac_status); } &&
46759          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46761   (eval $ac_try) 2>&5
46762   ac_status=$?
46763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46764   (exit $ac_status); }; } &&
46765          { ac_try='test -s conftest.$ac_objext'
46766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46767   (eval $ac_try) 2>&5
46768   ac_status=$?
46769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46770   (exit $ac_status); }; }; then
46771
46772                    bakefile_cv_gcc31=yes
46773
46774 else
46775   echo "$as_me: failed program was:" >&5
46776 sed 's/^/| /' conftest.$ac_ext >&5
46777
46778
46779                    bakefile_cv_gcc31=no
46780
46781
46782 fi
46783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46784
46785 fi
46786 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46787 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46788         if test "$bakefile_cv_gcc31" = "no"; then
46789                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
46790             SHARED_LD_CXX="$SHARED_LD_CC"
46791         else
46792                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
46793             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
46794         fi
46795
46796         if test "x$GCC" == "xyes"; then
46797             PIC_FLAG="-dynamic -fPIC"
46798         fi
46799         if test "x$XLCC" = "xyes"; then
46800             PIC_FLAG="-dynamic -DPIC"
46801         fi
46802       ;;
46803
46804       *-*-aix* )
46805         if test "x$GCC" = "xyes"; then
46806                                                             PIC_FLAG=""
46807
46808                                                                                     case "${BAKEFILE_HOST}" in
46809                 *-*-aix5* )
46810                     LD_EXPFULL="-Wl,-bexpfull"
46811                     ;;
46812             esac
46813
46814             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46815             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46816         else
46817                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
46818 set dummy makeC++SharedLib; ac_word=$2
46819 echo "$as_me:$LINENO: checking for $ac_word" >&5
46820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46821 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46822   echo $ECHO_N "(cached) $ECHO_C" >&6
46823 else
46824   if test -n "$AIX_CXX_LD"; then
46825   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46826 else
46827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46828 for as_dir in $PATH
46829 do
46830   IFS=$as_save_IFS
46831   test -z "$as_dir" && as_dir=.
46832   for ac_exec_ext in '' $ac_executable_extensions; do
46833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46834     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46836     break 2
46837   fi
46838 done
46839 done
46840
46841   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46842 fi
46843 fi
46844 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46845 if test -n "$AIX_CXX_LD"; then
46846   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46847 echo "${ECHO_T}$AIX_CXX_LD" >&6
46848 else
46849   echo "$as_me:$LINENO: result: no" >&5
46850 echo "${ECHO_T}no" >&6
46851 fi
46852
46853             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
46854             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46855         fi
46856       ;;
46857
46858       *-*-beos* )
46859                         SHARED_LD_CC="${LD} -nostart -o"
46860         SHARED_LD_CXX="${LD} -nostart -o"
46861       ;;
46862
46863       *-*-irix* )
46864                 if test "x$GCC" != "xyes"; then
46865             PIC_FLAG="-KPIC"
46866         fi
46867       ;;
46868
46869       *-*-cygwin* | *-*-mingw32* )
46870         PIC_FLAG=""
46871         SHARED_LD_CC="\$(CC) -shared -o"
46872         SHARED_LD_CXX="\$(CXX) -shared -o"
46873         WINDOWS_IMPLIB=1
46874       ;;
46875
46876       *-pc-os2_emx | *-pc-os2-emx )
46877         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46878         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46879         PIC_FLAG=""
46880
46881 D='$'
46882 cat <<EOF >dllar.sh
46883 #!/bin/sh
46884 #
46885 # dllar - a tool to build both a .dll and an .a file
46886 # from a set of object (.o) files for EMX/OS2.
46887 #
46888 #  Written by Andrew Zabolotny, bit@freya.etu.ru
46889 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46890 #
46891 #  This script will accept a set of files on the command line.
46892 #  All the public symbols from the .o files will be exported into
46893 #  a .DEF file, then linker will be run (through gcc) against them to
46894 #  build a shared library consisting of all given .o files. All libraries
46895 #  (.a) will be first decompressed into component .o files then act as
46896 #  described above. You can optionally give a description (-d "description")
46897 #  which will be put into .DLL. To see the list of accepted options (as well
46898 #  as command-line format) simply run this program without options. The .DLL
46899 #  is built to be imported by name (there is no guarantee that new versions
46900 #  of the library you build will have same ordinals for same symbols).
46901 #
46902 #  dllar is free software; you can redistribute it and/or modify
46903 #  it under the terms of the GNU General Public License as published by
46904 #  the Free Software Foundation; either version 2, or (at your option)
46905 #  any later version.
46906 #
46907 #  dllar is distributed in the hope that it will be useful,
46908 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
46909 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46910 #  GNU General Public License for more details.
46911 #
46912 #  You should have received a copy of the GNU General Public License
46913 #  along with dllar; see the file COPYING.  If not, write to the Free
46914 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46915 #  02111-1307, USA.
46916
46917 # To successfuly run this program you will need:
46918 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
46919 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46920 #  - gcc
46921 #    (used to build the .dll)
46922 #  - emxexp
46923 #    (used to create .def file from .o files)
46924 #  - emximp
46925 #    (used to create .a file from .def file)
46926 #  - GNU text utilites (cat, sort, uniq)
46927 #    used to process emxexp output
46928 #  - GNU file utilities (mv, rm)
46929 #  - GNU sed
46930 #  - lxlite (optional, see flag below)
46931 #    (used for general .dll cleanup)
46932 #
46933
46934 flag_USE_LXLITE=1;
46935
46936 #
46937 # helper functions
46938 # basnam, variant of basename, which does _not_ remove the path, _iff_
46939 #                              second argument (suffix to remove) is given
46940 basnam(){
46941     case ${D}# in
46942     1)
46943         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
46944         ;;
46945     2)
46946         echo ${D}1 | sed 's/'${D}2'${D}//'
46947         ;;
46948     *)
46949         echo "error in basnam ${D}*"
46950         exit 8
46951         ;;
46952     esac
46953 }
46954
46955 # Cleanup temporary files and output
46956 CleanUp() {
46957     cd ${D}curDir
46958     for i in ${D}inputFiles ; do
46959         case ${D}i in
46960         *!)
46961             rm -rf \`basnam ${D}i !\`
46962             ;;
46963         *)
46964             ;;
46965         esac
46966     done
46967
46968     # Kill result in case of failure as there is just to many stupid make/nmake
46969     # things out there which doesn't do this.
46970     if [ ${D}# -eq 0 ]; then
46971         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46972     fi
46973 }
46974
46975 # Print usage and exit script with rc=1.
46976 PrintHelp() {
46977  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46978  echo '       [-name-mangler-script script.sh]'
46979  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46980  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
46981  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
46982  echo '       [*.o] [*.a]'
46983  echo '*> "output_file" should have no extension.'
46984  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
46985  echo '   The import library name is derived from this and is set to "name".a,'
46986  echo '   unless overridden by -import'
46987  echo '*> "importlib_name" should have no extension.'
46988  echo '   If it has the .o, or .a extension, it is automatically removed.'
46989  echo '   This name is used as the import library name and may be longer and'
46990  echo '   more descriptive than the DLL name which has to follow the old '
46991  echo '   8.3 convention of FAT.'
46992  echo '*> "script.sh may be given to override the output_file name by a'
46993  echo '   different name. It is mainly useful if the regular make process'
46994  echo '   of some package does not take into account OS/2 restriction of'
46995  echo '   DLL name lengths. It takes the importlib name as input and is'
46996  echo '   supposed to procude a shorter name as output. The script should'
46997  echo '   expect to get importlib_name without extension and should produce'
46998  echo '   a (max.) 8 letter name without extension.'
46999  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
47000  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47001  echo '   These flags will be put at the start of GCC command line.'
47002  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47003  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
47004  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47005  echo '   If the last character of a symbol is "*", all symbols beginning'
47006  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
47007  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
47008  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
47009  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
47010  echo '   C runtime DLLs.'
47011  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
47012  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47013  echo '   unchanged to GCC at the end of command line.'
47014  echo '*> If you create a DLL from a library and you do not specify -o,'
47015  echo '   the basename for DLL and import library will be set to library name,'
47016  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
47017  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47018  echo '   library will be renamed into gcc_s.a.'
47019  echo '--------'
47020  echo 'Example:'
47021  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47022  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47023  CleanUp
47024  exit 1
47025 }
47026
47027 # Execute a command.
47028 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47029 # @Uses    Whatever CleanUp() uses.
47030 doCommand() {
47031     echo "${D}*"
47032     eval ${D}*
47033     rcCmd=${D}?
47034
47035     if [ ${D}rcCmd -ne 0 ]; then
47036         echo "command failed, exit code="${D}rcCmd
47037         CleanUp
47038         exit ${D}rcCmd
47039     fi
47040 }
47041
47042 # main routine
47043 # setup globals
47044 cmdLine=${D}*
47045 outFile=""
47046 outimpFile=""
47047 inputFiles=""
47048 renameScript=""
47049 description=""
47050 CC=gcc.exe
47051 CFLAGS="-s -Zcrtdll"
47052 EXTRA_CFLAGS=""
47053 EXPORT_BY_ORDINALS=0
47054 exclude_symbols=""
47055 library_flags=""
47056 curDir=\`pwd\`
47057 curDirS=curDir
47058 case ${D}curDirS in
47059 */)
47060   ;;
47061 *)
47062   curDirS=${D}{curDirS}"/"
47063   ;;
47064 esac
47065 # Parse commandline
47066 libsToLink=0
47067 omfLinking=0
47068 while [ ${D}1 ]; do
47069     case ${D}1 in
47070     -ord*)
47071         EXPORT_BY_ORDINALS=1;
47072         ;;
47073     -o*)
47074         shift
47075         outFile=${D}1
47076         ;;
47077     -i*)
47078         shift
47079         outimpFile=${D}1
47080         ;;
47081     -name-mangler-script)
47082         shift
47083         renameScript=${D}1
47084         ;;
47085     -d*)
47086         shift
47087         description=${D}1
47088         ;;
47089     -f*)
47090         shift
47091         CFLAGS=${D}1
47092         ;;
47093     -c*)
47094         shift
47095         CC=${D}1
47096         ;;
47097     -h*)
47098         PrintHelp
47099         ;;
47100     -ex*)
47101         shift
47102         exclude_symbols=${D}{exclude_symbols}${D}1" "
47103         ;;
47104     -libf*)
47105         shift
47106         library_flags=${D}{library_flags}${D}1" "
47107         ;;
47108     -nocrt*)
47109         CFLAGS="-s"
47110         ;;
47111     -nolxl*)
47112         flag_USE_LXLITE=0
47113         ;;
47114     -* | /*)
47115         case ${D}1 in
47116         -L* | -l*)
47117             libsToLink=1
47118             ;;
47119         -Zomf)
47120             omfLinking=1
47121             ;;
47122         *)
47123             ;;
47124         esac
47125         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47126         ;;
47127     *.dll)
47128         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47129         if [ ${D}omfLinking -eq 1 ]; then
47130             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47131         else
47132             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47133         fi
47134         ;;
47135     *)
47136         found=0;
47137         if [ ${D}libsToLink -ne 0 ]; then
47138             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47139         else
47140             for file in ${D}1 ; do
47141                 if [ -f ${D}file ]; then
47142                     inputFiles="${D}{inputFiles} ${D}file"
47143                     found=1
47144                 fi
47145             done
47146             if [ ${D}found -eq 0 ]; then
47147                 echo "ERROR: No file(s) found: "${D}1
47148                 exit 8
47149             fi
47150         fi
47151       ;;
47152     esac
47153     shift
47154 done # iterate cmdline words
47155
47156 #
47157 if [ -z "${D}inputFiles" ]; then
47158     echo "dllar: no input files"
47159     PrintHelp
47160 fi
47161
47162 # Now extract all .o files from .a files
47163 newInputFiles=""
47164 for file in ${D}inputFiles ; do
47165     case ${D}file in
47166     *.a | *.lib)
47167         case ${D}file in
47168         *.a)
47169             suffix=".a"
47170             AR="ar"
47171             ;;
47172         *.lib)
47173             suffix=".lib"
47174             AR="emxomfar"
47175             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47176             ;;
47177         *)
47178             ;;
47179         esac
47180         dirname=\`basnam ${D}file ${D}suffix\`"_%"
47181         mkdir ${D}dirname
47182         if [ ${D}? -ne 0 ]; then
47183             echo "Failed to create subdirectory ./${D}dirname"
47184             CleanUp
47185             exit 8;
47186         fi
47187         # Append '!' to indicate archive
47188         newInputFiles="${D}newInputFiles ${D}{dirname}!"
47189         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47190         cd ${D}curDir
47191         found=0;
47192         for subfile in ${D}dirname/*.o* ; do
47193             if [ -f ${D}subfile ]; then
47194                 found=1
47195                 if [ -s ${D}subfile ]; then
47196                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47197                     newInputFiles="${D}newInputFiles ${D}subfile"
47198                 fi
47199             fi
47200         done
47201         if [ ${D}found -eq 0 ]; then
47202             echo "WARNING: there are no files in archive \\'${D}file\\'"
47203         fi
47204         ;;
47205     *)
47206         newInputFiles="${D}{newInputFiles} ${D}file"
47207         ;;
47208     esac
47209 done
47210 inputFiles="${D}newInputFiles"
47211
47212 # Output filename(s).
47213 do_backup=0;
47214 if [ -z ${D}outFile ]; then
47215     do_backup=1;
47216     set outFile ${D}inputFiles; outFile=${D}2
47217 fi
47218
47219 # If it is an archive, remove the '!' and the '_%' suffixes
47220 case ${D}outFile in
47221 *_%!)
47222     outFile=\`basnam ${D}outFile _%!\`
47223     ;;
47224 *)
47225     ;;
47226 esac
47227 case ${D}outFile in
47228 *.dll)
47229     outFile=\`basnam ${D}outFile .dll\`
47230     ;;
47231 *.DLL)
47232     outFile=\`basnam ${D}outFile .DLL\`
47233     ;;
47234 *.o)
47235     outFile=\`basnam ${D}outFile .o\`
47236     ;;
47237 *.obj)
47238     outFile=\`basnam ${D}outFile .obj\`
47239     ;;
47240 *.a)
47241     outFile=\`basnam ${D}outFile .a\`
47242     ;;
47243 *.lib)
47244     outFile=\`basnam ${D}outFile .lib\`
47245     ;;
47246 *)
47247     ;;
47248 esac
47249 case ${D}outimpFile in
47250 *.a)
47251     outimpFile=\`basnam ${D}outimpFile .a\`
47252     ;;
47253 *.lib)
47254     outimpFile=\`basnam ${D}outimpFile .lib\`
47255     ;;
47256 *)
47257     ;;
47258 esac
47259 if [ -z ${D}outimpFile ]; then
47260     outimpFile=${D}outFile
47261 fi
47262 defFile="${D}{outFile}.def"
47263 arcFile="${D}{outimpFile}.a"
47264 arcFile2="${D}{outimpFile}.lib"
47265
47266 #create ${D}dllFile as something matching 8.3 restrictions,
47267 if [ -z ${D}renameScript ] ; then
47268     dllFile="${D}outFile"
47269 else
47270     dllFile=\`${D}renameScript ${D}outimpFile\`
47271 fi
47272
47273 if [ ${D}do_backup -ne 0 ] ; then
47274     if [ -f ${D}arcFile ] ; then
47275         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47276     fi
47277     if [ -f ${D}arcFile2 ] ; then
47278         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47279     fi
47280 fi
47281
47282 # Extract public symbols from all the object files.
47283 tmpdefFile=${D}{defFile}_%
47284 rm -f ${D}tmpdefFile
47285 for file in ${D}inputFiles ; do
47286     case ${D}file in
47287     *!)
47288         ;;
47289     *)
47290         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47291         ;;
47292     esac
47293 done
47294
47295 # Create the def file.
47296 rm -f ${D}defFile
47297 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
47298 dllFile="${D}{dllFile}.dll"
47299 if [ ! -z ${D}description ]; then
47300     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
47301 fi
47302 echo "EXPORTS" >> ${D}defFile
47303
47304 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47305 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47306
47307 # Checks if the export is ok or not.
47308 for word in ${D}exclude_symbols; do
47309     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47310     mv ${D}{tmpdefFile}% ${D}tmpdefFile
47311 done
47312
47313
47314 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47315     sed "=" < ${D}tmpdefFile | \\
47316     sed '
47317       N
47318       : loop
47319       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
47320       t loop
47321     ' > ${D}{tmpdefFile}%
47322     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47323 else
47324     rm -f ${D}{tmpdefFile}%
47325 fi
47326 cat ${D}tmpdefFile >> ${D}defFile
47327 rm -f ${D}tmpdefFile
47328
47329 # Do linking, create implib, and apply lxlite.
47330 gccCmdl="";
47331 for file in ${D}inputFiles ; do
47332     case ${D}file in
47333     *!)
47334         ;;
47335     *)
47336         gccCmdl="${D}gccCmdl ${D}file"
47337         ;;
47338     esac
47339 done
47340 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47341 touch "${D}{outFile}.dll"
47342
47343 doCommand "emximp -o ${D}arcFile ${D}defFile"
47344 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
47345     add_flags="";
47346     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47347         add_flags="-ynd"
47348     fi
47349     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47350 fi
47351 doCommand "emxomf -s -l ${D}arcFile"
47352
47353 # Successful exit.
47354 CleanUp 1
47355 exit 0
47356 EOF
47357
47358         chmod +x dllar.sh
47359       ;;
47360
47361       powerpc-apple-macos* | \
47362       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
47363       *-*-sunos4* | \
47364       *-*-osf* | \
47365       *-*-dgux5* | \
47366       *-*-sysv5* | \
47367       *-pc-msdosdjgpp )
47368               ;;
47369
47370       *)
47371                     esac
47372
47373     if test "x$PIC_FLAG" != "x" ; then
47374         PIC_FLAG="$PIC_FLAG -DPIC"
47375     fi
47376
47377     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47378         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47379     fi
47380     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47381         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47382     fi
47383
47384
47385
47386
47387
47388
47389
47390
47391
47392     USE_SOVERSION=0
47393     USE_SOVERLINUX=0
47394     USE_SOVERSOLARIS=0
47395     USE_SOVERCYGWIN=0
47396     USE_SOSYMLINKS=0
47397     USE_MACVERSION=0
47398     SONAME_FLAG=
47399
47400     case "${BAKEFILE_HOST}" in
47401       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
47402         SONAME_FLAG="-Wl,-soname,"
47403         USE_SOVERSION=1
47404         USE_SOVERLINUX=1
47405         USE_SOSYMLINKS=1
47406       ;;
47407
47408       *-*-solaris2* )
47409         SONAME_FLAG="-h "
47410         USE_SOVERSION=1
47411         USE_SOVERSOLARIS=1
47412         USE_SOSYMLINKS=1
47413       ;;
47414
47415       *-*-darwin* )
47416         USE_MACVERSION=1
47417         USE_SOVERSION=1
47418         USE_SOSYMLINKS=1
47419       ;;
47420
47421       *-*-cygwin* )
47422         USE_SOVERSION=1
47423         USE_SOVERCYGWIN=1
47424       ;;
47425     esac
47426
47427
47428
47429
47430
47431
47432
47433
47434
47435
47436     # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47437 if test "${enable_dependency_tracking+set}" = set; then
47438   enableval="$enable_dependency_tracking"
47439   bk_use_trackdeps="$enableval"
47440 fi;
47441
47442     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47443 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
47444
47445     if test "x$bk_use_trackdeps" = "xno" ; then
47446         DEPS_TRACKING=0
47447         echo "$as_me:$LINENO: result: disabled" >&5
47448 echo "${ECHO_T}disabled" >&6
47449     else
47450         DEPS_TRACKING=1
47451
47452         if test "x$GCC" = "xyes"; then
47453             DEPSMODE=gcc
47454             case "${BAKEFILE_HOST}" in
47455                 *-*-darwin* )
47456                                                             DEPSFLAG="-no-cpp-precomp -MMD"
47457                 ;;
47458                 * )
47459                     DEPSFLAG="-MMD"
47460                 ;;
47461             esac
47462             echo "$as_me:$LINENO: result: gcc" >&5
47463 echo "${ECHO_T}gcc" >&6
47464         elif test "x$MWCC" = "xyes"; then
47465             DEPSMODE=mwcc
47466             DEPSFLAG="-MM"
47467             echo "$as_me:$LINENO: result: mwcc" >&5
47468 echo "${ECHO_T}mwcc" >&6
47469         elif test "x$SUNCC" = "xyes"; then
47470             DEPSMODE=unixcc
47471             DEPSFLAG="-xM1"
47472             echo "$as_me:$LINENO: result: Sun cc" >&5
47473 echo "${ECHO_T}Sun cc" >&6
47474         elif test "x$SGICC" = "xyes"; then
47475             DEPSMODE=unixcc
47476             DEPSFLAG="-M"
47477             echo "$as_me:$LINENO: result: SGI cc" >&5
47478 echo "${ECHO_T}SGI cc" >&6
47479         elif test "x$HPCC" = "xyes"; then
47480             DEPSMODE=unixcc
47481             DEPSFLAG="+make"
47482             echo "$as_me:$LINENO: result: HP cc" >&5
47483 echo "${ECHO_T}HP cc" >&6
47484         elif test "x$COMPAQCC" = "xyes"; then
47485             DEPSMODE=gcc
47486             DEPSFLAG="-MD"
47487             echo "$as_me:$LINENO: result: Compaq cc" >&5
47488 echo "${ECHO_T}Compaq cc" >&6
47489         else
47490             DEPS_TRACKING=0
47491             echo "$as_me:$LINENO: result: none" >&5
47492 echo "${ECHO_T}none" >&6
47493         fi
47494
47495         if test $DEPS_TRACKING = 1 ; then
47496
47497 D='$'
47498 cat <<EOF >bk-deps
47499 #!/bin/sh
47500
47501 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47502 # script. It is used to track C/C++ files dependencies in portable way.
47503 #
47504 # Permission is given to use this file in any way.
47505
47506 DEPSMODE=${DEPSMODE}
47507 DEPSDIR=.deps
47508 DEPSFLAG="${DEPSFLAG}"
47509
47510 mkdir -p ${D}DEPSDIR
47511
47512 if test ${D}DEPSMODE = gcc ; then
47513     ${D}* ${D}{DEPSFLAG}
47514     status=${D}?
47515     if test ${D}{status} != 0 ; then
47516         exit ${D}{status}
47517     fi
47518     # move created file to the location we want it in:
47519     while test ${D}# -gt 0; do
47520         case "${D}1" in
47521             -o )
47522                 shift
47523                 objfile=${D}1
47524             ;;
47525             -* )
47526             ;;
47527             * )
47528                 srcfile=${D}1
47529             ;;
47530         esac
47531         shift
47532     done
47533     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47534     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
47535     if test -f ${D}depfile ; then
47536         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47537         rm -f ${D}depfile
47538     else
47539         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
47540         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
47541         if test ! -f ${D}depfile ; then
47542             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47543             depfile="${D}objfile.d"
47544         fi
47545         if test -f ${D}depfile ; then
47546             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47547             rm -f ${D}depfile
47548         fi
47549     fi
47550     exit 0
47551 elif test ${D}DEPSMODE = mwcc ; then
47552     ${D}* || exit ${D}?
47553     # Run mwcc again with -MM and redirect into the dep file we want
47554     # NOTE: We can't use shift here because we need ${D}* to be valid
47555     prevarg=
47556     for arg in ${D}* ; do
47557         if test "${D}prevarg" = "-o"; then
47558             objfile=${D}arg
47559         else
47560             case "${D}arg" in
47561                 -* )
47562                 ;;
47563                 * )
47564                     srcfile=${D}arg
47565                 ;;
47566             esac
47567         fi
47568         prevarg="${D}arg"
47569     done
47570     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
47571     exit 0
47572 elif test ${D}DEPSMODE = unixcc; then
47573     ${D}* || exit ${D}?
47574     # Run compiler again with deps flag and redirect into the dep file.
47575     # It doesn't work if the '-o FILE' option is used, but without it the
47576     # dependency file will contain the wrong name for the object. So it is
47577     # removed from the command line, and the dep file is fixed with sed.
47578     cmd=""
47579     while test ${D}# -gt 0; do
47580         case "${D}1" in
47581             -o )
47582                 shift
47583                 objfile=${D}1
47584             ;;
47585             * )
47586                 eval arg${D}#=\\${D}1
47587                 cmd="${D}cmd \\${D}arg${D}#"
47588             ;;
47589         esac
47590         shift
47591     done
47592     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
47593     exit 0
47594 else
47595     ${D}*
47596     exit ${D}?
47597 fi
47598 EOF
47599
47600             chmod +x bk-deps
47601         fi
47602     fi
47603
47604
47605
47606
47607     case ${BAKEFILE_HOST} in
47608         *-*-cygwin* | *-*-mingw32* )
47609                         if test -n "$ac_tool_prefix"; then
47610   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47611 set dummy ${ac_tool_prefix}windres; ac_word=$2
47612 echo "$as_me:$LINENO: checking for $ac_word" >&5
47613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47614 if test "${ac_cv_prog_WINDRES+set}" = set; then
47615   echo $ECHO_N "(cached) $ECHO_C" >&6
47616 else
47617   if test -n "$WINDRES"; then
47618   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47619 else
47620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47621 for as_dir in $PATH
47622 do
47623   IFS=$as_save_IFS
47624   test -z "$as_dir" && as_dir=.
47625   for ac_exec_ext in '' $ac_executable_extensions; do
47626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47627     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47629     break 2
47630   fi
47631 done
47632 done
47633
47634 fi
47635 fi
47636 WINDRES=$ac_cv_prog_WINDRES
47637 if test -n "$WINDRES"; then
47638   echo "$as_me:$LINENO: result: $WINDRES" >&5
47639 echo "${ECHO_T}$WINDRES" >&6
47640 else
47641   echo "$as_me:$LINENO: result: no" >&5
47642 echo "${ECHO_T}no" >&6
47643 fi
47644
47645 fi
47646 if test -z "$ac_cv_prog_WINDRES"; then
47647   ac_ct_WINDRES=$WINDRES
47648   # Extract the first word of "windres", so it can be a program name with args.
47649 set dummy windres; ac_word=$2
47650 echo "$as_me:$LINENO: checking for $ac_word" >&5
47651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47652 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
47653   echo $ECHO_N "(cached) $ECHO_C" >&6
47654 else
47655   if test -n "$ac_ct_WINDRES"; then
47656   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
47657 else
47658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47659 for as_dir in $PATH
47660 do
47661   IFS=$as_save_IFS
47662   test -z "$as_dir" && as_dir=.
47663   for ac_exec_ext in '' $ac_executable_extensions; do
47664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47665     ac_cv_prog_ac_ct_WINDRES="windres"
47666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47667     break 2
47668   fi
47669 done
47670 done
47671
47672 fi
47673 fi
47674 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47675 if test -n "$ac_ct_WINDRES"; then
47676   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47677 echo "${ECHO_T}$ac_ct_WINDRES" >&6
47678 else
47679   echo "$as_me:$LINENO: result: no" >&5
47680 echo "${ECHO_T}no" >&6
47681 fi
47682
47683   WINDRES=$ac_ct_WINDRES
47684 else
47685   WINDRES="$ac_cv_prog_WINDRES"
47686 fi
47687
47688          ;;
47689
47690       *-*-darwin* | powerpc-apple-macos* )
47691             # Extract the first word of "Rez", so it can be a program name with args.
47692 set dummy Rez; ac_word=$2
47693 echo "$as_me:$LINENO: checking for $ac_word" >&5
47694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47695 if test "${ac_cv_prog_REZ+set}" = set; then
47696   echo $ECHO_N "(cached) $ECHO_C" >&6
47697 else
47698   if test -n "$REZ"; then
47699   ac_cv_prog_REZ="$REZ" # Let the user override the test.
47700 else
47701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47702 for as_dir in $PATH
47703 do
47704   IFS=$as_save_IFS
47705   test -z "$as_dir" && as_dir=.
47706   for ac_exec_ext in '' $ac_executable_extensions; do
47707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47708     ac_cv_prog_REZ="Rez"
47709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47710     break 2
47711   fi
47712 done
47713 done
47714
47715   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
47716 fi
47717 fi
47718 REZ=$ac_cv_prog_REZ
47719 if test -n "$REZ"; then
47720   echo "$as_me:$LINENO: result: $REZ" >&5
47721 echo "${ECHO_T}$REZ" >&6
47722 else
47723   echo "$as_me:$LINENO: result: no" >&5
47724 echo "${ECHO_T}no" >&6
47725 fi
47726
47727             # Extract the first word of "SetFile", so it can be a program name with args.
47728 set dummy SetFile; ac_word=$2
47729 echo "$as_me:$LINENO: checking for $ac_word" >&5
47730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47731 if test "${ac_cv_prog_SETFILE+set}" = set; then
47732   echo $ECHO_N "(cached) $ECHO_C" >&6
47733 else
47734   if test -n "$SETFILE"; then
47735   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47736 else
47737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47738 for as_dir in $PATH
47739 do
47740   IFS=$as_save_IFS
47741   test -z "$as_dir" && as_dir=.
47742   for ac_exec_ext in '' $ac_executable_extensions; do
47743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47744     ac_cv_prog_SETFILE="SetFile"
47745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47746     break 2
47747   fi
47748 done
47749 done
47750
47751   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47752 fi
47753 fi
47754 SETFILE=$ac_cv_prog_SETFILE
47755 if test -n "$SETFILE"; then
47756   echo "$as_me:$LINENO: result: $SETFILE" >&5
47757 echo "${ECHO_T}$SETFILE" >&6
47758 else
47759   echo "$as_me:$LINENO: result: no" >&5
47760 echo "${ECHO_T}no" >&6
47761 fi
47762
47763         ;;
47764     esac
47765
47766
47767
47768
47769
47770
47771     BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
47772
47773
47774 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
47775
47776
47777
47778     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47779 if test "${enable_precomp_headers+set}" = set; then
47780   enableval="$enable_precomp_headers"
47781   bk_use_pch="$enableval"
47782 fi;
47783
47784     GCC_PCH=0
47785     ICC_PCH=0
47786     USE_PCH=0
47787
47788     case ${BAKEFILE_HOST} in
47789         *-*-cygwin* )
47790                                                 bk_use_pch="no"
47791             ;;
47792     esac
47793
47794     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47795         if test "x$GCC" = "xyes"; then
47796                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47797 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47798             cat >conftest.$ac_ext <<_ACEOF
47799 /* confdefs.h.  */
47800 _ACEOF
47801 cat confdefs.h >>conftest.$ac_ext
47802 cat >>conftest.$ac_ext <<_ACEOF
47803 /* end confdefs.h.  */
47804
47805 int
47806 main ()
47807 {
47808
47809                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
47810                         There is no PCH support
47811                     #endif
47812                     #if (__GNUC__ < 3)
47813                         There is no PCH support
47814                     #endif
47815                     #if (__GNUC__ == 3) && \
47816                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
47817                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47818                        ( defined(__INTEL_COMPILER) )
47819                         There is no PCH support
47820                     #endif
47821
47822   ;
47823   return 0;
47824 }
47825 _ACEOF
47826 rm -f conftest.$ac_objext
47827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47828   (eval $ac_compile) 2>conftest.er1
47829   ac_status=$?
47830   grep -v '^ *+' conftest.er1 >conftest.err
47831   rm -f conftest.er1
47832   cat conftest.err >&5
47833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47834   (exit $ac_status); } &&
47835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47837   (eval $ac_try) 2>&5
47838   ac_status=$?
47839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47840   (exit $ac_status); }; } &&
47841          { ac_try='test -s conftest.$ac_objext'
47842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47843   (eval $ac_try) 2>&5
47844   ac_status=$?
47845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47846   (exit $ac_status); }; }; then
47847
47848                     echo "$as_me:$LINENO: result: yes" >&5
47849 echo "${ECHO_T}yes" >&6
47850                     GCC_PCH=1
47851
47852 else
47853   echo "$as_me: failed program was:" >&5
47854 sed 's/^/| /' conftest.$ac_ext >&5
47855
47856
47857                     cat >conftest.$ac_ext <<_ACEOF
47858 /* confdefs.h.  */
47859 _ACEOF
47860 cat confdefs.h >>conftest.$ac_ext
47861 cat >>conftest.$ac_ext <<_ACEOF
47862 /* end confdefs.h.  */
47863
47864 int
47865 main ()
47866 {
47867
47868                             #if !defined(__INTEL_COMPILER) || \
47869                                 (__INTEL_COMPILER < 800)
47870                                 There is no PCH support
47871                             #endif
47872
47873   ;
47874   return 0;
47875 }
47876 _ACEOF
47877 rm -f conftest.$ac_objext
47878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47879   (eval $ac_compile) 2>conftest.er1
47880   ac_status=$?
47881   grep -v '^ *+' conftest.er1 >conftest.err
47882   rm -f conftest.er1
47883   cat conftest.err >&5
47884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47885   (exit $ac_status); } &&
47886          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47888   (eval $ac_try) 2>&5
47889   ac_status=$?
47890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47891   (exit $ac_status); }; } &&
47892          { ac_try='test -s conftest.$ac_objext'
47893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47894   (eval $ac_try) 2>&5
47895   ac_status=$?
47896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47897   (exit $ac_status); }; }; then
47898
47899                             echo "$as_me:$LINENO: result: yes" >&5
47900 echo "${ECHO_T}yes" >&6
47901                             ICC_PCH=1
47902
47903 else
47904   echo "$as_me: failed program was:" >&5
47905 sed 's/^/| /' conftest.$ac_ext >&5
47906
47907
47908                             echo "$as_me:$LINENO: result: no" >&5
47909 echo "${ECHO_T}no" >&6
47910
47911 fi
47912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47913
47914 fi
47915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47916             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47917                 USE_PCH=1
47918
47919 D='$'
47920 cat <<EOF >bk-make-pch
47921 #!/bin/sh
47922
47923 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47924 # script. It is used to generated precompiled headers.
47925 #
47926 # Permission is given to use this file in any way.
47927
47928 outfile="${D}{1}"
47929 header="${D}{2}"
47930 shift
47931 shift
47932
47933 compiler=""
47934 headerfile=""
47935
47936 while test ${D}{#} -gt 0; do
47937     add_to_cmdline=1
47938     case "${D}{1}" in
47939         -I* )
47940             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47941             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47942                 headerfile="${D}{incdir}/${D}{header}"
47943             fi
47944         ;;
47945         -use-pch|-use_pch )
47946             shift
47947             add_to_cmdline=0
47948         ;;
47949     esac
47950     if test ${D}add_to_cmdline = 1 ; then
47951         compiler="${D}{compiler} ${D}{1}"
47952     fi
47953     shift
47954 done
47955
47956 if test "x${D}{headerfile}" = "x" ; then
47957     echo "error: can't find header ${D}{header} in include paths" >&2
47958 else
47959     if test -f ${D}{outfile} ; then
47960         rm -f ${D}{outfile}
47961     else
47962         mkdir -p \`dirname ${D}{outfile}\`
47963     fi
47964     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
47965     mkdir -p .deps
47966     if test "x${GCC_PCH}" = "x1" ; then
47967         # can do this because gcc is >= 3.4:
47968         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47969     elif test "x${ICC_PCH}" = "x1" ; then
47970         filename=pch_gen-${D}${D}
47971         file=${D}{filename}.c
47972         dfile=${D}{filename}.d
47973         cat > ${D}file <<EOT
47974 #include "${D}header"
47975 EOT
47976         # using -MF icc complains about differing command lines in creation/use
47977         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47978           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47979           rm -f ${D}file ${D}dfile ${D}{filename}.o
47980     fi
47981     exit ${D}{?}
47982 fi
47983 EOF
47984
47985                 chmod +x bk-make-pch
47986             fi
47987         fi
47988     fi
47989
47990
47991
47992
47993     COND_BUILD_DEBUG="#"
47994     if test "x$BUILD" = "xdebug" ; then
47995         COND_BUILD_DEBUG=""
47996     fi
47997
47998     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47999     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48000         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48001     fi
48002
48003     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48004     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48005         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48006     fi
48007
48008     COND_BUILD_DEBUG_UNICODE_0="#"
48009     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48010         COND_BUILD_DEBUG_UNICODE_0=""
48011     fi
48012
48013     COND_BUILD_DEBUG_UNICODE_1="#"
48014     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48015         COND_BUILD_DEBUG_UNICODE_1=""
48016     fi
48017
48018     COND_BUILD_RELEASE="#"
48019     if test "x$BUILD" = "xrelease" ; then
48020         COND_BUILD_RELEASE=""
48021     fi
48022
48023     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48024     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48025         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48026     fi
48027
48028     COND_BUILD_RELEASE_UNICODE_0="#"
48029     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48030         COND_BUILD_RELEASE_UNICODE_0=""
48031     fi
48032
48033     COND_BUILD_RELEASE_UNICODE_1="#"
48034     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48035         COND_BUILD_RELEASE_UNICODE_1=""
48036     fi
48037
48038     COND_DEBUG_FLAG_1="#"
48039     if test "x$DEBUG_FLAG" = "x1" ; then
48040         COND_DEBUG_FLAG_1=""
48041     fi
48042
48043     COND_DEBUG_INFO_0="#"
48044     if test "x$DEBUG_INFO" = "x0" ; then
48045         COND_DEBUG_INFO_0=""
48046     fi
48047
48048     COND_DEBUG_INFO_1="#"
48049     if test "x$DEBUG_INFO" = "x1" ; then
48050         COND_DEBUG_INFO_1=""
48051     fi
48052
48053     COND_DEPS_TRACKING_0="#"
48054     if test "x$DEPS_TRACKING" = "x0" ; then
48055         COND_DEPS_TRACKING_0=""
48056     fi
48057
48058     COND_DEPS_TRACKING_1="#"
48059     if test "x$DEPS_TRACKING" = "x1" ; then
48060         COND_DEPS_TRACKING_1=""
48061     fi
48062
48063     COND_GCC_PCH_1="#"
48064     if test "x$GCC_PCH" = "x1" ; then
48065         COND_GCC_PCH_1=""
48066     fi
48067
48068     COND_ICC_PCH_1="#"
48069     if test "x$ICC_PCH" = "x1" ; then
48070         COND_ICC_PCH_1=""
48071     fi
48072
48073     COND_MONOLITHIC_0="#"
48074     if test "x$MONOLITHIC" = "x0" ; then
48075         COND_MONOLITHIC_0=""
48076     fi
48077
48078     COND_MONOLITHIC_0_SHARED_0="#"
48079     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48080         COND_MONOLITHIC_0_SHARED_0=""
48081     fi
48082
48083     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48084     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48085         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48086     fi
48087
48088     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48089     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48090         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48091     fi
48092
48093     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48094     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48095         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48096     fi
48097
48098     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48099     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48100         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48101     fi
48102
48103     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48104     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48105         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48106     fi
48107
48108     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48109     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48110         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48111     fi
48112
48113     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48114     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48115         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48116     fi
48117
48118     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48119     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48120         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48121     fi
48122
48123     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48124     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48125         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48126     fi
48127
48128     COND_MONOLITHIC_0_SHARED_1="#"
48129     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48130         COND_MONOLITHIC_0_SHARED_1=""
48131     fi
48132
48133     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48134     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48135         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48136     fi
48137
48138     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48139     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48140         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48141     fi
48142
48143     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48144     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48145         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48146     fi
48147
48148     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48149     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48150         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48151     fi
48152
48153     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48154     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48155         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48156     fi
48157
48158     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48159     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48160         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48161     fi
48162
48163     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48164     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48165         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48166     fi
48167
48168     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48169     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48170         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48171     fi
48172
48173     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48174     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48175         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48176     fi
48177
48178     COND_MONOLITHIC_0_USE_MEDIA_1="#"
48179     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48180         COND_MONOLITHIC_0_USE_MEDIA_1=""
48181     fi
48182
48183     COND_MONOLITHIC_0_USE_ODBC_1="#"
48184     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48185         COND_MONOLITHIC_0_USE_ODBC_1=""
48186     fi
48187
48188     COND_MONOLITHIC_1="#"
48189     if test "x$MONOLITHIC" = "x1" ; then
48190         COND_MONOLITHIC_1=""
48191     fi
48192
48193     COND_MONOLITHIC_1_SHARED_0="#"
48194     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48195         COND_MONOLITHIC_1_SHARED_0=""
48196     fi
48197
48198     COND_MONOLITHIC_1_SHARED_1="#"
48199     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48200         COND_MONOLITHIC_1_SHARED_1=""
48201     fi
48202
48203     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48204     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48205         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48206     fi
48207
48208     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48209     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48210         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48211     fi
48212
48213     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48214     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48215         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48216     fi
48217
48218     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48219     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48220         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48221     fi
48222
48223     COND_PLATFORM_MACOSX_1="#"
48224     if test "x$PLATFORM_MACOSX" = "x1" ; then
48225         COND_PLATFORM_MACOSX_1=""
48226     fi
48227
48228     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48229     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48230         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48231     fi
48232
48233     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48234     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48235         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48236     fi
48237
48238     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48239     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48240         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48241     fi
48242
48243     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48244     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48245         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48246     fi
48247
48248     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48249     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48250         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48251     fi
48252
48253     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48254     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48255         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48256     fi
48257
48258     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48259     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48260         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48261     fi
48262
48263     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48264     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48265         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48266     fi
48267
48268     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48269     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48270         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48271     fi
48272
48273     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48274     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48275         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48276     fi
48277
48278     COND_PLATFORM_MACOS_1="#"
48279     if test "x$PLATFORM_MACOS" = "x1" ; then
48280         COND_PLATFORM_MACOS_1=""
48281     fi
48282
48283     COND_PLATFORM_MAC_1="#"
48284     if test "x$PLATFORM_MAC" = "x1" ; then
48285         COND_PLATFORM_MAC_1=""
48286     fi
48287
48288     COND_PLATFORM_MSDOS_0="#"
48289     if test "x$PLATFORM_MSDOS" = "x0" ; then
48290         COND_PLATFORM_MSDOS_0=""
48291     fi
48292
48293     COND_PLATFORM_MSDOS_1="#"
48294     if test "x$PLATFORM_MSDOS" = "x1" ; then
48295         COND_PLATFORM_MSDOS_1=""
48296     fi
48297
48298     COND_PLATFORM_OS2_1="#"
48299     if test "x$PLATFORM_OS2" = "x1" ; then
48300         COND_PLATFORM_OS2_1=""
48301     fi
48302
48303     COND_PLATFORM_UNIX_0="#"
48304     if test "x$PLATFORM_UNIX" = "x0" ; then
48305         COND_PLATFORM_UNIX_0=""
48306     fi
48307
48308     COND_PLATFORM_UNIX_1="#"
48309     if test "x$PLATFORM_UNIX" = "x1" ; then
48310         COND_PLATFORM_UNIX_1=""
48311     fi
48312
48313     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48314     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48315         COND_PLATFORM_UNIX_1_USE_GUI_1=""
48316     fi
48317
48318     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48319     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48320         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48321     fi
48322
48323     COND_PLATFORM_WIN32_0="#"
48324     if test "x$PLATFORM_WIN32" = "x0" ; then
48325         COND_PLATFORM_WIN32_0=""
48326     fi
48327
48328     COND_PLATFORM_WIN32_1="#"
48329     if test "x$PLATFORM_WIN32" = "x1" ; then
48330         COND_PLATFORM_WIN32_1=""
48331     fi
48332
48333     COND_SHARED_0="#"
48334     if test "x$SHARED" = "x0" ; then
48335         COND_SHARED_0=""
48336     fi
48337
48338     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48339     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48340         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48341     fi
48342
48343     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48344     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48345         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48346     fi
48347
48348     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48349     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48350         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48351     fi
48352
48353     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48354     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48355         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48356     fi
48357
48358     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48359     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48360         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48361     fi
48362
48363     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48364     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48365         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48366     fi
48367
48368     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48369     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48370         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48371     fi
48372
48373     COND_SHARED_0_USE_XRC_1="#"
48374     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48375         COND_SHARED_0_USE_XRC_1=""
48376     fi
48377
48378     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48379     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48380         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48381     fi
48382
48383     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48384     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48385         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48386     fi
48387
48388     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48389     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48390         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48391     fi
48392
48393     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48394     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48395         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48396     fi
48397
48398     COND_SHARED_1="#"
48399     if test "x$SHARED" = "x1" ; then
48400         COND_SHARED_1=""
48401     fi
48402
48403     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48404     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48405         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48406     fi
48407
48408     COND_SHARED_1_USE_XRC_1="#"
48409     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48410         COND_SHARED_1_USE_XRC_1=""
48411     fi
48412
48413     COND_TOOLKIT_="#"
48414     if test "x$TOOLKIT" = "x" ; then
48415         COND_TOOLKIT_=""
48416     fi
48417
48418     COND_TOOLKIT_COCOA="#"
48419     if test "x$TOOLKIT" = "xCOCOA" ; then
48420         COND_TOOLKIT_COCOA=""
48421     fi
48422
48423     COND_TOOLKIT_COCOA_USE_GUI_1="#"
48424     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48425         COND_TOOLKIT_COCOA_USE_GUI_1=""
48426     fi
48427
48428     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48429     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48430         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48431     fi
48432
48433     COND_TOOLKIT_GTK="#"
48434     if test "x$TOOLKIT" = "xGTK" ; then
48435         COND_TOOLKIT_GTK=""
48436     fi
48437
48438     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48439     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48440         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48441     fi
48442
48443     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48444     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48445         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48446     fi
48447
48448     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48449     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48450         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48451     fi
48452
48453     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48454     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48455         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48456     fi
48457
48458     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48459     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48460         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48461     fi
48462
48463     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48464     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48465         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48466     fi
48467
48468     COND_TOOLKIT_GTK_USE_GUI_1="#"
48469     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48470         COND_TOOLKIT_GTK_USE_GUI_1=""
48471     fi
48472
48473     COND_TOOLKIT_MAC="#"
48474     if test "x$TOOLKIT" = "xMAC" ; then
48475         COND_TOOLKIT_MAC=""
48476     fi
48477
48478     COND_TOOLKIT_MAC_USE_GUI_1="#"
48479     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48480         COND_TOOLKIT_MAC_USE_GUI_1=""
48481     fi
48482
48483     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48484     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48485         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48486     fi
48487
48488     COND_TOOLKIT_MGL="#"
48489     if test "x$TOOLKIT" = "xMGL" ; then
48490         COND_TOOLKIT_MGL=""
48491     fi
48492
48493     COND_TOOLKIT_MGL_USE_GUI_1="#"
48494     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48495         COND_TOOLKIT_MGL_USE_GUI_1=""
48496     fi
48497
48498     COND_TOOLKIT_MOTIF="#"
48499     if test "x$TOOLKIT" = "xMOTIF" ; then
48500         COND_TOOLKIT_MOTIF=""
48501     fi
48502
48503     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48504     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48505         COND_TOOLKIT_MOTIF_USE_GUI_1=""
48506     fi
48507
48508     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48509     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48510         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48511     fi
48512
48513     COND_TOOLKIT_MSW="#"
48514     if test "x$TOOLKIT" = "xMSW" ; then
48515         COND_TOOLKIT_MSW=""
48516     fi
48517
48518     COND_TOOLKIT_MSW_USE_GUI_1="#"
48519     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48520         COND_TOOLKIT_MSW_USE_GUI_1=""
48521     fi
48522
48523     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48524     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48525         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48526     fi
48527
48528     COND_TOOLKIT_MSW_WXUNIV_0="#"
48529     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48530         COND_TOOLKIT_MSW_WXUNIV_0=""
48531     fi
48532
48533     COND_TOOLKIT_PM="#"
48534     if test "x$TOOLKIT" = "xPM" ; then
48535         COND_TOOLKIT_PM=""
48536     fi
48537
48538     COND_TOOLKIT_PM_USE_GUI_1="#"
48539     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48540         COND_TOOLKIT_PM_USE_GUI_1=""
48541     fi
48542
48543     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48544     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48545         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48546     fi
48547
48548     COND_TOOLKIT_WINCE="#"
48549     if test "x$TOOLKIT" = "xWINCE" ; then
48550         COND_TOOLKIT_WINCE=""
48551     fi
48552
48553     COND_TOOLKIT_WINCE_USE_GUI_1="#"
48554     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48555         COND_TOOLKIT_WINCE_USE_GUI_1=""
48556     fi
48557
48558     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48559     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48560         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48561     fi
48562
48563     COND_TOOLKIT_WINCE_WXUNIV_0="#"
48564     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48565         COND_TOOLKIT_WINCE_WXUNIV_0=""
48566     fi
48567
48568     COND_TOOLKIT_X11="#"
48569     if test "x$TOOLKIT" = "xX11" ; then
48570         COND_TOOLKIT_X11=""
48571     fi
48572
48573     COND_TOOLKIT_X11_USE_GUI_1="#"
48574     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48575         COND_TOOLKIT_X11_USE_GUI_1=""
48576     fi
48577
48578     COND_UNICODE_1="#"
48579     if test "x$UNICODE" = "x1" ; then
48580         COND_UNICODE_1=""
48581     fi
48582
48583     COND_USE_EXCEPTIONS_0="#"
48584     if test "x$USE_EXCEPTIONS" = "x0" ; then
48585         COND_USE_EXCEPTIONS_0=""
48586     fi
48587
48588     COND_USE_EXCEPTIONS_1="#"
48589     if test "x$USE_EXCEPTIONS" = "x1" ; then
48590         COND_USE_EXCEPTIONS_1=""
48591     fi
48592
48593     COND_USE_GUI_0="#"
48594     if test "x$USE_GUI" = "x0" ; then
48595         COND_USE_GUI_0=""
48596     fi
48597
48598     COND_USE_GUI_1="#"
48599     if test "x$USE_GUI" = "x1" ; then
48600         COND_USE_GUI_1=""
48601     fi
48602
48603     COND_USE_GUI_1_WXUNIV_0="#"
48604     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48605         COND_USE_GUI_1_WXUNIV_0=""
48606     fi
48607
48608     COND_USE_GUI_1_WXUNIV_1="#"
48609     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48610         COND_USE_GUI_1_WXUNIV_1=""
48611     fi
48612
48613     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48614     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48615         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48616     fi
48617
48618     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48619     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48620         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48621     fi
48622
48623     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48624     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48625         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48626     fi
48627
48628     COND_USE_ODBC_1="#"
48629     if test "x$USE_ODBC" = "x1" ; then
48630         COND_USE_ODBC_1=""
48631     fi
48632
48633     COND_USE_OPENGL_1="#"
48634     if test "x$USE_OPENGL" = "x1" ; then
48635         COND_USE_OPENGL_1=""
48636     fi
48637
48638     COND_USE_PCH_1="#"
48639     if test "x$USE_PCH" = "x1" ; then
48640         COND_USE_PCH_1=""
48641     fi
48642
48643     COND_USE_PLUGINS_0="#"
48644     if test "x$USE_PLUGINS" = "x0" ; then
48645         COND_USE_PLUGINS_0=""
48646     fi
48647
48648     COND_USE_RTTI_0="#"
48649     if test "x$USE_RTTI" = "x0" ; then
48650         COND_USE_RTTI_0=""
48651     fi
48652
48653     COND_USE_RTTI_1="#"
48654     if test "x$USE_RTTI" = "x1" ; then
48655         COND_USE_RTTI_1=""
48656     fi
48657
48658     COND_USE_SOSYMLINKS_1="#"
48659     if test "x$USE_SOSYMLINKS" = "x1" ; then
48660         COND_USE_SOSYMLINKS_1=""
48661     fi
48662
48663     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48664     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48665         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48666     fi
48667
48668     COND_USE_SOVERLINUX_1="#"
48669     if test "x$USE_SOVERLINUX" = "x1" ; then
48670         COND_USE_SOVERLINUX_1=""
48671     fi
48672
48673     COND_USE_SOVERSION_0="#"
48674     if test "x$USE_SOVERSION" = "x0" ; then
48675         COND_USE_SOVERSION_0=""
48676     fi
48677
48678     COND_USE_SOVERSOLARIS_1="#"
48679     if test "x$USE_SOVERSOLARIS" = "x1" ; then
48680         COND_USE_SOVERSOLARIS_1=""
48681     fi
48682
48683     COND_USE_THREADS_0="#"
48684     if test "x$USE_THREADS" = "x0" ; then
48685         COND_USE_THREADS_0=""
48686     fi
48687
48688     COND_USE_THREADS_1="#"
48689     if test "x$USE_THREADS" = "x1" ; then
48690         COND_USE_THREADS_1=""
48691     fi
48692
48693     COND_USE_XRC_1="#"
48694     if test "x$USE_XRC" = "x1" ; then
48695         COND_USE_XRC_1=""
48696     fi
48697
48698     COND_WINDOWS_IMPLIB_1="#"
48699     if test "x$WINDOWS_IMPLIB" = "x1" ; then
48700         COND_WINDOWS_IMPLIB_1=""
48701     fi
48702
48703     COND_WITH_PLUGIN_SDL_1="#"
48704     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48705         COND_WITH_PLUGIN_SDL_1=""
48706     fi
48707
48708     COND_WXUNIV_0="#"
48709     if test "x$WXUNIV" = "x0" ; then
48710         COND_WXUNIV_0=""
48711     fi
48712
48713     COND_WXUNIV_1="#"
48714     if test "x$WXUNIV" = "x1" ; then
48715         COND_WXUNIV_1=""
48716     fi
48717
48718     COND_WXUSE_EXPAT_BUILTIN="#"
48719     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48720         COND_WXUSE_EXPAT_BUILTIN=""
48721     fi
48722
48723     COND_WXUSE_LIBJPEG_BUILTIN="#"
48724     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48725         COND_WXUSE_LIBJPEG_BUILTIN=""
48726     fi
48727
48728     COND_WXUSE_LIBPNG_BUILTIN="#"
48729     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48730         COND_WXUSE_LIBPNG_BUILTIN=""
48731     fi
48732
48733     COND_WXUSE_LIBTIFF_BUILTIN="#"
48734     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48735         COND_WXUSE_LIBTIFF_BUILTIN=""
48736     fi
48737
48738     COND_WXUSE_ODBC_BUILTIN="#"
48739     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48740         COND_WXUSE_ODBC_BUILTIN=""
48741     fi
48742
48743     COND_WXUSE_REGEX_BUILTIN="#"
48744     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48745         COND_WXUSE_REGEX_BUILTIN=""
48746     fi
48747
48748     COND_WXUSE_ZLIB_BUILTIN="#"
48749     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48750         COND_WXUSE_ZLIB_BUILTIN=""
48751     fi
48752
48753
48754
48755     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48756         { { 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
48757 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;}
48758    { (exit 1); exit 1; }; }
48759     fi
48760
48761     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48762         { { 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
48763 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;}
48764    { (exit 1); exit 1; }; }
48765     fi
48766
48767
48768
48769 if test "$wxUSE_MAC" = 1 ; then
48770     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
48771         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48772         mv temp bk-deps
48773         chmod +x bk-deps
48774     fi
48775 fi
48776
48777 if test "$wxUSE_SHARED" = "yes"; then
48778
48779                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48780     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48781
48782                 case "${host}" in
48783       *-pc-os2_emx | *-pc-os2-emx )
48784         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48785         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48786         cp -p ${srcdir}/src/os2/dllnames.sh .
48787         cp -p ${srcdir}/src/os2/dllar.sh .
48788       ;;
48789     esac
48790 else
48791
48792         EXE_LINKER="$CXX -o"
48793
48794 fi
48795 if test "$wxUSE_OMF" = "yes"; then
48796     case "${host}" in
48797       *-pc-os2_emx | *-pc-os2-emx )
48798         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48799         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48800         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48801       ;;
48802     esac
48803 fi
48804
48805 if test $GCC_PCH = 1 ; then
48806     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
48807 fi
48808
48809 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
48810
48811 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48812
48813
48814
48815
48816
48817
48818
48819
48820
48821
48822
48823
48824
48825
48826
48827
48828
48829
48830
48831
48832
48833
48834
48835
48836
48837
48838
48839
48840
48841
48842
48843
48844
48845
48846
48847
48848
48849
48850
48851
48852
48853
48854
48855
48856
48857
48858
48859
48860
48861
48862
48863
48864
48865
48866
48867
48868
48869
48870
48871
48872
48873 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48874 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
48875 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
48876 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48877   echo $ECHO_N "(cached) $ECHO_C" >&6
48878 else
48879   cat >conftest.make <<\_ACEOF
48880 all:
48881         @echo 'ac_maketemp="$(MAKE)"'
48882 _ACEOF
48883 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48884 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48885 if test -n "$ac_maketemp"; then
48886   eval ac_cv_prog_make_${ac_make}_set=yes
48887 else
48888   eval ac_cv_prog_make_${ac_make}_set=no
48889 fi
48890 rm -f conftest.make
48891 fi
48892 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48893   echo "$as_me:$LINENO: result: yes" >&5
48894 echo "${ECHO_T}yes" >&6
48895   SET_MAKE=
48896 else
48897   echo "$as_me:$LINENO: result: no" >&5
48898 echo "${ECHO_T}no" >&6
48899   SET_MAKE="MAKE=${MAKE-make}"
48900 fi
48901
48902
48903
48904           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48905
48906
48907 if test "$USE_WIN32" = 1; then
48908               ac_config_commands="$ac_config_commands
48909             rcdefs.h
48910         "
48911
48912 fi
48913
48914           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
48915
48916
48917           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
48918
48919
48920                     ac_config_files="$ac_config_files version-script Makefile"
48921
48922
48923           ac_config_commands="$ac_config_commands wx-config"
48924
48925
48926
48927 if test "$wxWITH_SUBDIRS" != "no"; then
48928 if test "$wxUSE_GUI" = "yes"; then
48929     SUBDIRS="samples demos utils contrib"
48930 else         SUBDIRS="samples utils"
48931 fi
48932
48933
48934
48935 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48936 if test "${with_cppunit_prefix+set}" = set; then
48937   withval="$with_cppunit_prefix"
48938   cppunit_config_prefix="$withval"
48939 else
48940   cppunit_config_prefix=""
48941 fi;
48942
48943 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48944 if test "${with_cppunit_exec_prefix+set}" = set; then
48945   withval="$with_cppunit_exec_prefix"
48946   cppunit_config_exec_prefix="$withval"
48947 else
48948   cppunit_config_exec_prefix=""
48949 fi;
48950
48951   if test x$cppunit_config_exec_prefix != x ; then
48952      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48953      if test x${CPPUNIT_CONFIG+set} != xset ; then
48954         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48955      fi
48956   fi
48957   if test x$cppunit_config_prefix != x ; then
48958      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48959      if test x${CPPUNIT_CONFIG+set} != xset ; then
48960         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48961      fi
48962   fi
48963
48964   # Extract the first word of "cppunit-config", so it can be a program name with args.
48965 set dummy cppunit-config; ac_word=$2
48966 echo "$as_me:$LINENO: checking for $ac_word" >&5
48967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48968 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48969   echo $ECHO_N "(cached) $ECHO_C" >&6
48970 else
48971   case $CPPUNIT_CONFIG in
48972   [\\/]* | ?:[\\/]*)
48973   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48974   ;;
48975   *)
48976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48977 for as_dir in $PATH
48978 do
48979   IFS=$as_save_IFS
48980   test -z "$as_dir" && as_dir=.
48981   for ac_exec_ext in '' $ac_executable_extensions; do
48982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48983     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48985     break 2
48986   fi
48987 done
48988 done
48989
48990   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48991   ;;
48992 esac
48993 fi
48994 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48995
48996 if test -n "$CPPUNIT_CONFIG"; then
48997   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48998 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48999 else
49000   echo "$as_me:$LINENO: result: no" >&5
49001 echo "${ECHO_T}no" >&6
49002 fi
49003
49004   cppunit_version_min=1.8.0
49005
49006   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49007 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49008   no_cppunit=""
49009   if test "$CPPUNIT_CONFIG" = "no" ; then
49010     echo "$as_me:$LINENO: result: no" >&5
49011 echo "${ECHO_T}no" >&6
49012     no_cppunit=yes
49013   else
49014     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49015     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49016     cppunit_version=`$CPPUNIT_CONFIG --version`
49017
49018     cppunit_major_version=`echo $cppunit_version | \
49019            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49020     cppunit_minor_version=`echo $cppunit_version | \
49021            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49022     cppunit_micro_version=`echo $cppunit_version | \
49023            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49024
49025     cppunit_major_min=`echo $cppunit_version_min | \
49026            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49027     cppunit_minor_min=`echo $cppunit_version_min | \
49028            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49029     cppunit_micro_min=`echo $cppunit_version_min | \
49030            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49031
49032     cppunit_version_proper=`expr \
49033         $cppunit_major_version \> $cppunit_major_min \| \
49034         $cppunit_major_version \= $cppunit_major_min \& \
49035         $cppunit_minor_version \> $cppunit_minor_min \| \
49036         $cppunit_major_version \= $cppunit_major_min \& \
49037         $cppunit_minor_version \= $cppunit_minor_min \& \
49038         $cppunit_micro_version \>= $cppunit_micro_min `
49039
49040     if test "$cppunit_version_proper" = "1" ; then
49041       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49042 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49043     else
49044       echo "$as_me:$LINENO: result: no" >&5
49045 echo "${ECHO_T}no" >&6
49046       no_cppunit=yes
49047     fi
49048   fi
49049
49050   if test "x$no_cppunit" = x ; then
49051      SUBDIRS="$SUBDIRS tests"
49052   else
49053      CPPUNIT_CFLAGS=""
49054      CPPUNIT_LIBS=""
49055      :
49056   fi
49057
49058
49059
49060
49061
49062 for subdir in `echo $SUBDIRS`; do
49063     if test -d ${srcdir}/${subdir} ; then
49064         if test "$wxUSE_GUI" = "yes"; then
49065             if test ${subdir} = "samples"; then
49066                                                 makefiles="samples/Makefile.in $makefiles"
49067                 for sample in `echo $SAMPLES_SUBDIRS`; do
49068                     if test -d $srcdir/samples/$sample; then
49069                         makefiles="samples/$sample/Makefile.in $makefiles"
49070                     fi
49071                 done
49072             else
49073                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49074                 eval "disabled=\$$disabled_var"
49075                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49076                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
49077             fi
49078         else                                     if test ${subdir} = "samples"; then
49079                 makefiles="samples/Makefile.in samples/console/Makefile.in"
49080             elif test ${subdir} = "utils"; then
49081                 makefiles=""
49082                 for util in HelpGen tex2rtf ; do
49083                     if test -d $srcdir/utils/$util ; then
49084                         makefiles="utils/$util/Makefile.in \
49085                                    utils/$util/src/Makefile.in \
49086                                    $makefiles"
49087                     fi
49088                 done
49089             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49090             fi
49091         fi
49092
49093         for mkin in $makefiles ; do
49094             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49095                       ac_config_files="$ac_config_files $mk"
49096
49097         done
49098     fi
49099 done
49100 fi
49101 cat >confcache <<\_ACEOF
49102 # This file is a shell script that caches the results of configure
49103 # tests run on this system so they can be shared between configure
49104 # scripts and configure runs, see configure's option --config-cache.
49105 # It is not useful on other systems.  If it contains results you don't
49106 # want to keep, you may remove or edit it.
49107 #
49108 # config.status only pays attention to the cache file if you give it
49109 # the --recheck option to rerun configure.
49110 #
49111 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49112 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49113 # following values.
49114
49115 _ACEOF
49116
49117 # The following way of writing the cache mishandles newlines in values,
49118 # but we know of no workaround that is simple, portable, and efficient.
49119 # So, don't put newlines in cache variables' values.
49120 # Ultrix sh set writes to stderr and can't be redirected directly,
49121 # and sets the high bit in the cache file unless we assign to the vars.
49122 {
49123   (set) 2>&1 |
49124     case `(ac_space=' '; set | grep ac_space) 2>&1` in
49125     *ac_space=\ *)
49126       # `set' does not quote correctly, so add quotes (double-quote
49127       # substitution turns \\\\ into \\, and sed turns \\ into \).
49128       sed -n \
49129         "s/'/'\\\\''/g;
49130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49131       ;;
49132     *)
49133       # `set' quotes correctly as required by POSIX, so do not add quotes.
49134       sed -n \
49135         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
49136       ;;
49137     esac;
49138 } |
49139   sed '
49140      t clear
49141      : clear
49142      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49143      t end
49144      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49145      : end' >>confcache
49146 if diff $cache_file confcache >/dev/null 2>&1; then :; else
49147   if test -w $cache_file; then
49148     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49149     cat confcache >$cache_file
49150   else
49151     echo "not updating unwritable cache $cache_file"
49152   fi
49153 fi
49154 rm -f confcache
49155
49156 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49157 # Let make expand exec_prefix.
49158 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49159
49160 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49161 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49162 # trailing colons and then remove the whole line if VPATH becomes empty
49163 # (actually we leave an empty line to preserve line numbers).
49164 if test "x$srcdir" = x.; then
49165   ac_vpsub='/^[  ]*VPATH[        ]*=/{
49166 s/:*\$(srcdir):*/:/;
49167 s/:*\${srcdir}:*/:/;
49168 s/:*@srcdir@:*/:/;
49169 s/^\([^=]*=[     ]*\):*/\1/;
49170 s/:*$//;
49171 s/^[^=]*=[       ]*$//;
49172 }'
49173 fi
49174
49175 DEFS=-DHAVE_CONFIG_H
49176
49177 ac_libobjs=
49178 ac_ltlibobjs=
49179 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49180   # 1. Remove the extension, and $U if already installed.
49181   ac_i=`echo "$ac_i" |
49182          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
49183   # 2. Add them.
49184   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49185   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49186 done
49187 LIBOBJS=$ac_libobjs
49188
49189 LTLIBOBJS=$ac_ltlibobjs
49190
49191
49192
49193 : ${CONFIG_STATUS=./config.status}
49194 ac_clean_files_save=$ac_clean_files
49195 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49196 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49197 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49198 cat >$CONFIG_STATUS <<_ACEOF
49199 #! $SHELL
49200 # Generated by $as_me.
49201 # Run this file to recreate the current configuration.
49202 # Compiler output produced by configure, useful for debugging
49203 # configure, is in config.log if it exists.
49204
49205 debug=false
49206 ac_cs_recheck=false
49207 ac_cs_silent=false
49208 SHELL=\${CONFIG_SHELL-$SHELL}
49209 _ACEOF
49210
49211 cat >>$CONFIG_STATUS <<\_ACEOF
49212 ## --------------------- ##
49213 ## M4sh Initialization.  ##
49214 ## --------------------- ##
49215
49216 # Be Bourne compatible
49217 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49218   emulate sh
49219   NULLCMD=:
49220   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49221   # is contrary to our usage.  Disable this feature.
49222   alias -g '${1+"$@"}'='"$@"'
49223 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49224   set -o posix
49225 fi
49226 DUALCASE=1; export DUALCASE # for MKS sh
49227
49228 # Support unset when possible.
49229 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49230   as_unset=unset
49231 else
49232   as_unset=false
49233 fi
49234
49235
49236 # Work around bugs in pre-3.0 UWIN ksh.
49237 $as_unset ENV MAIL MAILPATH
49238 PS1='$ '
49239 PS2='> '
49240 PS4='+ '
49241
49242 # NLS nuisances.
49243 for as_var in \
49244   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49245   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49246   LC_TELEPHONE LC_TIME
49247 do
49248   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49249     eval $as_var=C; export $as_var
49250   else
49251     $as_unset $as_var
49252   fi
49253 done
49254
49255 # Required to use basename.
49256 if expr a : '\(a\)' >/dev/null 2>&1; then
49257   as_expr=expr
49258 else
49259   as_expr=false
49260 fi
49261
49262 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49263   as_basename=basename
49264 else
49265   as_basename=false
49266 fi
49267
49268
49269 # Name of the executable.
49270 as_me=`$as_basename "$0" ||
49271 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49272          X"$0" : 'X\(//\)$' \| \
49273          X"$0" : 'X\(/\)$' \| \
49274          .     : '\(.\)' 2>/dev/null ||
49275 echo X/"$0" |
49276     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49277           /^X\/\(\/\/\)$/{ s//\1/; q; }
49278           /^X\/\(\/\).*/{ s//\1/; q; }
49279           s/.*/./; q'`
49280
49281
49282 # PATH needs CR, and LINENO needs CR and PATH.
49283 # Avoid depending upon Character Ranges.
49284 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49285 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49286 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49287 as_cr_digits='0123456789'
49288 as_cr_alnum=$as_cr_Letters$as_cr_digits
49289
49290 # The user is always right.
49291 if test "${PATH_SEPARATOR+set}" != set; then
49292   echo "#! /bin/sh" >conf$$.sh
49293   echo  "exit 0"   >>conf$$.sh
49294   chmod +x conf$$.sh
49295   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49296     PATH_SEPARATOR=';'
49297   else
49298     PATH_SEPARATOR=:
49299   fi
49300   rm -f conf$$.sh
49301 fi
49302
49303
49304   as_lineno_1=$LINENO
49305   as_lineno_2=$LINENO
49306   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49307   test "x$as_lineno_1" != "x$as_lineno_2" &&
49308   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
49309   # Find who we are.  Look in the path if we contain no path at all
49310   # relative or not.
49311   case $0 in
49312     *[\\/]* ) as_myself=$0 ;;
49313     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49314 for as_dir in $PATH
49315 do
49316   IFS=$as_save_IFS
49317   test -z "$as_dir" && as_dir=.
49318   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49319 done
49320
49321        ;;
49322   esac
49323   # We did not find ourselves, most probably we were run as `sh COMMAND'
49324   # in which case we are not to be found in the path.
49325   if test "x$as_myself" = x; then
49326     as_myself=$0
49327   fi
49328   if test ! -f "$as_myself"; then
49329     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49330 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49331    { (exit 1); exit 1; }; }
49332   fi
49333   case $CONFIG_SHELL in
49334   '')
49335     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49336 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49337 do
49338   IFS=$as_save_IFS
49339   test -z "$as_dir" && as_dir=.
49340   for as_base in sh bash ksh sh5; do
49341          case $as_dir in
49342          /*)
49343            if ("$as_dir/$as_base" -c '
49344   as_lineno_1=$LINENO
49345   as_lineno_2=$LINENO
49346   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49347   test "x$as_lineno_1" != "x$as_lineno_2" &&
49348   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
49349              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49350              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49351              CONFIG_SHELL=$as_dir/$as_base
49352              export CONFIG_SHELL
49353              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49354            fi;;
49355          esac
49356        done
49357 done
49358 ;;
49359   esac
49360
49361   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49362   # uniformly replaced by the line number.  The first 'sed' inserts a
49363   # line-number line before each line; the second 'sed' does the real
49364   # work.  The second script uses 'N' to pair each line-number line
49365   # with the numbered line, and appends trailing '-' during
49366   # substitution so that $LINENO is not a special case at line end.
49367   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49368   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
49369   sed '=' <$as_myself |
49370     sed '
49371       N
49372       s,$,-,
49373       : loop
49374       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49375       t loop
49376       s,-$,,
49377       s,^['$as_cr_digits']*\n,,
49378     ' >$as_me.lineno &&
49379   chmod +x $as_me.lineno ||
49380     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49381 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49382    { (exit 1); exit 1; }; }
49383
49384   # Don't try to exec as it changes $[0], causing all sort of problems
49385   # (the dirname of $[0] is not the place where we might find the
49386   # original and so on.  Autoconf is especially sensible to this).
49387   . ./$as_me.lineno
49388   # Exit status is that of the last command.
49389   exit
49390 }
49391
49392
49393 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49394   *c*,-n*) ECHO_N= ECHO_C='
49395 ' ECHO_T='      ' ;;
49396   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49397   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
49398 esac
49399
49400 if expr a : '\(a\)' >/dev/null 2>&1; then
49401   as_expr=expr
49402 else
49403   as_expr=false
49404 fi
49405
49406 rm -f conf$$ conf$$.exe conf$$.file
49407 echo >conf$$.file
49408 if ln -s conf$$.file conf$$ 2>/dev/null; then
49409   # We could just check for DJGPP; but this test a) works b) is more generic
49410   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49411   if test -f conf$$.exe; then
49412     # Don't use ln at all; we don't have any links
49413     as_ln_s='cp -p'
49414   else
49415     as_ln_s='ln -s'
49416   fi
49417 elif ln conf$$.file conf$$ 2>/dev/null; then
49418   as_ln_s=ln
49419 else
49420   as_ln_s='cp -p'
49421 fi
49422 rm -f conf$$ conf$$.exe conf$$.file
49423
49424 if mkdir -p . 2>/dev/null; then
49425   as_mkdir_p=:
49426 else
49427   test -d ./-p && rmdir ./-p
49428   as_mkdir_p=false
49429 fi
49430
49431 as_executable_p="test -f"
49432
49433 # Sed expression to map a string onto a valid CPP name.
49434 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49435
49436 # Sed expression to map a string onto a valid variable name.
49437 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49438
49439
49440 # IFS
49441 # We need space, tab and new line, in precisely that order.
49442 as_nl='
49443 '
49444 IFS="   $as_nl"
49445
49446 # CDPATH.
49447 $as_unset CDPATH
49448
49449 exec 6>&1
49450
49451 # Open the log real soon, to keep \$[0] and so on meaningful, and to
49452 # report actual input values of CONFIG_FILES etc. instead of their
49453 # values after options handling.  Logging --version etc. is OK.
49454 exec 5>>config.log
49455 {
49456   echo
49457   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49458 ## Running $as_me. ##
49459 _ASBOX
49460 } >&5
49461 cat >&5 <<_CSEOF
49462
49463 This file was extended by wxWidgets $as_me 2.7.0, which was
49464 generated by GNU Autoconf 2.59.  Invocation command line was
49465
49466   CONFIG_FILES    = $CONFIG_FILES
49467   CONFIG_HEADERS  = $CONFIG_HEADERS
49468   CONFIG_LINKS    = $CONFIG_LINKS
49469   CONFIG_COMMANDS = $CONFIG_COMMANDS
49470   $ $0 $@
49471
49472 _CSEOF
49473 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49474 echo >&5
49475 _ACEOF
49476
49477 # Files that config.status was made for.
49478 if test -n "$ac_config_files"; then
49479   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49480 fi
49481
49482 if test -n "$ac_config_headers"; then
49483   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49484 fi
49485
49486 if test -n "$ac_config_links"; then
49487   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49488 fi
49489
49490 if test -n "$ac_config_commands"; then
49491   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49492 fi
49493
49494 cat >>$CONFIG_STATUS <<\_ACEOF
49495
49496 ac_cs_usage="\
49497 \`$as_me' instantiates files from templates according to the
49498 current configuration.
49499
49500 Usage: $0 [OPTIONS] [FILE]...
49501
49502   -h, --help       print this help, then exit
49503   -V, --version    print version number, then exit
49504   -q, --quiet      do not print progress messages
49505   -d, --debug      don't remove temporary files
49506       --recheck    update $as_me by reconfiguring in the same conditions
49507   --file=FILE[:TEMPLATE]
49508                    instantiate the configuration file FILE
49509   --header=FILE[:TEMPLATE]
49510                    instantiate the configuration header FILE
49511
49512 Configuration files:
49513 $config_files
49514
49515 Configuration headers:
49516 $config_headers
49517
49518 Configuration commands:
49519 $config_commands
49520
49521 Report bugs to <bug-autoconf@gnu.org>."
49522 _ACEOF
49523
49524 cat >>$CONFIG_STATUS <<_ACEOF
49525 ac_cs_version="\\
49526 wxWidgets config.status 2.7.0
49527 configured by $0, generated by GNU Autoconf 2.59,
49528   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49529
49530 Copyright (C) 2003 Free Software Foundation, Inc.
49531 This config.status script is free software; the Free Software Foundation
49532 gives unlimited permission to copy, distribute and modify it."
49533 srcdir=$srcdir
49534 INSTALL="$INSTALL"
49535 _ACEOF
49536
49537 cat >>$CONFIG_STATUS <<\_ACEOF
49538 # If no file are specified by the user, then we need to provide default
49539 # value.  By we need to know if files were specified by the user.
49540 ac_need_defaults=:
49541 while test $# != 0
49542 do
49543   case $1 in
49544   --*=*)
49545     ac_option=`expr "x$1" : 'x\([^=]*\)='`
49546     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49547     ac_shift=:
49548     ;;
49549   -*)
49550     ac_option=$1
49551     ac_optarg=$2
49552     ac_shift=shift
49553     ;;
49554   *) # This is not an option, so the user has probably given explicit
49555      # arguments.
49556      ac_option=$1
49557      ac_need_defaults=false;;
49558   esac
49559
49560   case $ac_option in
49561   # Handling of the options.
49562 _ACEOF
49563 cat >>$CONFIG_STATUS <<\_ACEOF
49564   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49565     ac_cs_recheck=: ;;
49566   --version | --vers* | -V )
49567     echo "$ac_cs_version"; exit 0 ;;
49568   --he | --h)
49569     # Conflict between --help and --header
49570     { { echo "$as_me:$LINENO: error: ambiguous option: $1
49571 Try \`$0 --help' for more information." >&5
49572 echo "$as_me: error: ambiguous option: $1
49573 Try \`$0 --help' for more information." >&2;}
49574    { (exit 1); exit 1; }; };;
49575   --help | --hel | -h )
49576     echo "$ac_cs_usage"; exit 0 ;;
49577   --debug | --d* | -d )
49578     debug=: ;;
49579   --file | --fil | --fi | --f )
49580     $ac_shift
49581     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49582     ac_need_defaults=false;;
49583   --header | --heade | --head | --hea )
49584     $ac_shift
49585     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49586     ac_need_defaults=false;;
49587   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49588   | -silent | --silent | --silen | --sile | --sil | --si | --s)
49589     ac_cs_silent=: ;;
49590
49591   # This is an error.
49592   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49593 Try \`$0 --help' for more information." >&5
49594 echo "$as_me: error: unrecognized option: $1
49595 Try \`$0 --help' for more information." >&2;}
49596    { (exit 1); exit 1; }; } ;;
49597
49598   *) ac_config_targets="$ac_config_targets $1" ;;
49599
49600   esac
49601   shift
49602 done
49603
49604 ac_configure_extra_args=
49605
49606 if $ac_cs_silent; then
49607   exec 6>/dev/null
49608   ac_configure_extra_args="$ac_configure_extra_args --silent"
49609 fi
49610
49611 _ACEOF
49612 cat >>$CONFIG_STATUS <<_ACEOF
49613 if \$ac_cs_recheck; then
49614   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49615   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49616 fi
49617
49618 _ACEOF
49619
49620 cat >>$CONFIG_STATUS <<_ACEOF
49621 #
49622 # INIT-COMMANDS section.
49623 #
49624
49625
49626             CPP="$CPP"
49627             infile="$srcdir/include/wx/msw/genrcdefs.h"
49628             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49629
49630
49631  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49632  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49633  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49634                      LN_S="${LN_S}"
49635
49636
49637 _ACEOF
49638
49639
49640
49641 cat >>$CONFIG_STATUS <<\_ACEOF
49642 for ac_config_target in $ac_config_targets
49643 do
49644   case "$ac_config_target" in
49645   # Handling of arguments.
49646   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49647   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
49648   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49649   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49650   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
49651   "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
49652   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49653   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
49654   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49655 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49656    { (exit 1); exit 1; }; };;
49657   esac
49658 done
49659
49660 # If the user did not use the arguments to specify the items to instantiate,
49661 # then the envvar interface is used.  Set only those that are not.
49662 # We use the long form for the default assignment because of an extremely
49663 # bizarre bug on SunOS 4.1.3.
49664 if $ac_need_defaults; then
49665   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49666   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49667   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49668 fi
49669
49670 # Have a temporary directory for convenience.  Make it in the build tree
49671 # simply because there is no reason to put it here, and in addition,
49672 # creating and moving files from /tmp can sometimes cause problems.
49673 # Create a temporary directory, and hook for its removal unless debugging.
49674 $debug ||
49675 {
49676   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49677   trap '{ (exit 1); exit 1; }' 1 2 13 15
49678 }
49679
49680 # Create a (secure) tmp directory for tmp files.
49681
49682 {
49683   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49684   test -n "$tmp" && test -d "$tmp"
49685 }  ||
49686 {
49687   tmp=./confstat$$-$RANDOM
49688   (umask 077 && mkdir $tmp)
49689 } ||
49690 {
49691    echo "$me: cannot create a temporary directory in ." >&2
49692    { (exit 1); exit 1; }
49693 }
49694
49695 _ACEOF
49696
49697 cat >>$CONFIG_STATUS <<_ACEOF
49698
49699 #
49700 # CONFIG_FILES section.
49701 #
49702
49703 # No need to generate the scripts if there are no CONFIG_FILES.
49704 # This happens for instance when ./config.status config.h
49705 if test -n "\$CONFIG_FILES"; then
49706   # Protect against being on the right side of a sed subst in config.status.
49707   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49708    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49709 s,@SHELL@,$SHELL,;t t
49710 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49711 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49712 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49713 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49714 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49715 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49716 s,@exec_prefix@,$exec_prefix,;t t
49717 s,@prefix@,$prefix,;t t
49718 s,@program_transform_name@,$program_transform_name,;t t
49719 s,@bindir@,$bindir,;t t
49720 s,@sbindir@,$sbindir,;t t
49721 s,@libexecdir@,$libexecdir,;t t
49722 s,@datadir@,$datadir,;t t
49723 s,@sysconfdir@,$sysconfdir,;t t
49724 s,@sharedstatedir@,$sharedstatedir,;t t
49725 s,@localstatedir@,$localstatedir,;t t
49726 s,@libdir@,$libdir,;t t
49727 s,@includedir@,$includedir,;t t
49728 s,@oldincludedir@,$oldincludedir,;t t
49729 s,@infodir@,$infodir,;t t
49730 s,@mandir@,$mandir,;t t
49731 s,@build_alias@,$build_alias,;t t
49732 s,@host_alias@,$host_alias,;t t
49733 s,@target_alias@,$target_alias,;t t
49734 s,@DEFS@,$DEFS,;t t
49735 s,@ECHO_C@,$ECHO_C,;t t
49736 s,@ECHO_N@,$ECHO_N,;t t
49737 s,@ECHO_T@,$ECHO_T,;t t
49738 s,@LIBS@,$LIBS,;t t
49739 s,@build@,$build,;t t
49740 s,@build_cpu@,$build_cpu,;t t
49741 s,@build_vendor@,$build_vendor,;t t
49742 s,@build_os@,$build_os,;t t
49743 s,@host@,$host,;t t
49744 s,@host_cpu@,$host_cpu,;t t
49745 s,@host_vendor@,$host_vendor,;t t
49746 s,@host_os@,$host_os,;t t
49747 s,@target@,$target,;t t
49748 s,@target_cpu@,$target_cpu,;t t
49749 s,@target_vendor@,$target_vendor,;t t
49750 s,@target_os@,$target_os,;t t
49751 s,@CC@,$CC,;t t
49752 s,@CFLAGS@,$CFLAGS,;t t
49753 s,@LDFLAGS@,$LDFLAGS,;t t
49754 s,@CPPFLAGS@,$CPPFLAGS,;t t
49755 s,@ac_ct_CC@,$ac_ct_CC,;t t
49756 s,@EXEEXT@,$EXEEXT,;t t
49757 s,@OBJEXT@,$OBJEXT,;t t
49758 s,@CPP@,$CPP,;t t
49759 s,@EGREP@,$EGREP,;t t
49760 s,@CXX@,$CXX,;t t
49761 s,@CXXFLAGS@,$CXXFLAGS,;t t
49762 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49763 s,@RANLIB@,$RANLIB,;t t
49764 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49765 s,@AR@,$AR,;t t
49766 s,@ac_ct_AR@,$ac_ct_AR,;t t
49767 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49768 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49769 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49770 s,@STRIP@,$STRIP,;t t
49771 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
49772 s,@WINDRES@,$WINDRES,;t t
49773 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
49774 s,@DLLTOOL@,$DLLTOOL,;t t
49775 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
49776 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49777 s,@LN_S@,$LN_S,;t t
49778 s,@CXXCPP@,$CXXCPP,;t t
49779 s,@subdirs@,$subdirs,;t t
49780 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49781 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49782 s,@GTK_LIBS@,$GTK_LIBS,;t t
49783 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
49784 s,@X_CFLAGS@,$X_CFLAGS,;t t
49785 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49786 s,@X_LIBS@,$X_LIBS,;t t
49787 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49788 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
49789 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49790 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
49791 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49792 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
49793 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49794 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
49795 s,@REZ@,$REZ,;t t
49796 s,@DEREZ@,$DEREZ,;t t
49797 s,@SETFILE@,$SETFILE,;t t
49798 s,@LIBICONV@,$LIBICONV,;t t
49799 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49800 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49801 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49802 s,@SDL_LIBS@,$SDL_LIBS,;t t
49803 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49804 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
49805 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49806 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
49807 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49808 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
49809 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49810 s,@GST_LIBS@,$GST_LIBS,;t t
49811 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49812 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49813 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49814 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49815 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49816 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49817 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49818 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49819 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49820 s,@VENDOR@,$VENDOR,;t t
49821 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
49822 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49823 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
49824 s,@WXUNIV@,$WXUNIV,;t t
49825 s,@MONOLITHIC@,$MONOLITHIC,;t t
49826 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49827 s,@EXTRALIBS@,$EXTRALIBS,;t t
49828 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49829 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49830 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49831 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49832 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49833 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49834 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
49835 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
49836 s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
49837 s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
49838 s,@UNICODE@,$UNICODE,;t t
49839 s,@BUILD@,$BUILD,;t t
49840 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49841 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
49842 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49843 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49844 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49845 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49846 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49847 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49848 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49849 s,@SET_MAKE@,$SET_MAKE,;t t
49850 s,@MAKE_SET@,$MAKE_SET,;t t
49851 s,@NM@,$NM,;t t
49852 s,@ac_ct_NM@,$ac_ct_NM,;t t
49853 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49854 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49855 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49856 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49857 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49858 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
49859 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
49860 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49861 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
49862 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
49863 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49864 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49865 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49866 s,@LIBPREFIX@,$LIBPREFIX,;t t
49867 s,@LIBEXT@,$LIBEXT,;t t
49868 s,@DLLPREFIX@,$DLLPREFIX,;t t
49869 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
49870 s,@dlldir@,$dlldir,;t t
49871 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49872 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49873 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49874 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49875 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49876 s,@PIC_FLAG@,$PIC_FLAG,;t t
49877 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
49878 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49879 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49880 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
49881 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
49882 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49883 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49884 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49885 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49886 s,@GCC_PCH@,$GCC_PCH,;t t
49887 s,@ICC_PCH@,$ICC_PCH,;t t
49888 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49889 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49890 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49891 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49892 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49893 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49894 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49895 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49896 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49897 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49898 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49899 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49900 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49901 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49902 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
49903 s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
49904 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49905 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49906 s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
49907 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
49908 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
49909 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
49910 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
49911 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
49912 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
49913 s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
49914 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
49915 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49916 s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
49917 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
49918 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
49919 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
49920 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
49921 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
49922 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
49923 s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
49924 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
49925 s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
49926 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49927 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49928 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49929 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49930 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49931 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
49932 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
49933 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49934 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
49935 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
49936 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49937 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49938 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
49939 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
49940 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
49941 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49942 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
49943 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49944 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
49945 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
49946 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
49947 s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
49948 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
49949 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49950 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49951 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49952 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49953 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49954 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49955 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49956 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
49957 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49958 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49959 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
49960 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49961 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49962 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49963 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
49964 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
49965 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49966 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49967 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49968 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49969 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49970 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
49971 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
49972 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
49973 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
49974 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
49975 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49976 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
49977 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49978 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49979 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49980 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
49981 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49982 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
49983 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
49984 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49985 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49986 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49987 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49988 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49989 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49990 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49991 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49992 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49993 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49994 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
49995 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
49996 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49997 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49998 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
49999 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50000 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50001 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
50002 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
50003 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50004 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50005 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50006 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50007 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50008 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50009 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50010 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50011 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50012 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50013 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50014 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
50015 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50016 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
50017 s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
50018 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
50019 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50020 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
50021 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
50022 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
50023 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50024 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50025 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
50026 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50027 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
50028 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
50029 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
50030 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
50031 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
50032 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50033 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50034 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50035 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50036 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50037 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50038 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50039 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
50040 s,@SHARED@,$SHARED,;t t
50041 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50042 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
50043 s,@USE_GUI@,$USE_GUI,;t t
50044 s,@AFMINSTALL@,$AFMINSTALL,;t t
50045 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50046 s,@TOOLKIT@,$TOOLKIT,;t t
50047 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
50048 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
50049 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
50050 s,@cross_compiling@,$cross_compiling,;t t
50051 s,@WIDGET_SET@,$WIDGET_SET,;t t
50052 s,@WX_RELEASE@,$WX_RELEASE,;t t
50053 s,@WX_VERSION@,$WX_VERSION,;t t
50054 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50055 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50056 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
50057 s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50058 s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50059 s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50060 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
50061 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50062 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
50063 s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
50064 s,@EXE_LINKER@,$EXE_LINKER,;t t
50065 s,@GUIDIST@,$GUIDIST,;t t
50066 s,@DISTDIR@,$DISTDIR,;t t
50067 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50068 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
50069 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50070 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50071 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
50072 s,@RESCOMP@,$RESCOMP,;t t
50073 s,@RESFLAGS@,$RESFLAGS,;t t
50074 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50075 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50076 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50077 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
50078 s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
50079 s,@MACSETFILE@,$MACSETFILE,;t t
50080 s,@GCC@,$GCC,;t t
50081 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50082 s,@LIBOBJS@,$LIBOBJS,;t t
50083 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50084 CEOF
50085
50086 _ACEOF
50087
50088   cat >>$CONFIG_STATUS <<\_ACEOF
50089   # Split the substitutions into bite-sized pieces for seds with
50090   # small command number limits, like on Digital OSF/1 and HP-UX.
50091   ac_max_sed_lines=48
50092   ac_sed_frag=1 # Number of current file.
50093   ac_beg=1 # First line for current file.
50094   ac_end=$ac_max_sed_lines # Line after last line for current file.
50095   ac_more_lines=:
50096   ac_sed_cmds=
50097   while $ac_more_lines; do
50098     if test $ac_beg -gt 1; then
50099       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50100     else
50101       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50102     fi
50103     if test ! -s $tmp/subs.frag; then
50104       ac_more_lines=false
50105     else
50106       # The purpose of the label and of the branching condition is to
50107       # speed up the sed processing (if there are no `@' at all, there
50108       # is no need to browse any of the substitutions).
50109       # These are the two extra sed commands mentioned above.
50110       (echo ':t
50111   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50112       if test -z "$ac_sed_cmds"; then
50113         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
50114       else
50115         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
50116       fi
50117       ac_sed_frag=`expr $ac_sed_frag + 1`
50118       ac_beg=$ac_end
50119       ac_end=`expr $ac_end + $ac_max_sed_lines`
50120     fi
50121   done
50122   if test -z "$ac_sed_cmds"; then
50123     ac_sed_cmds=cat
50124   fi
50125 fi # test -n "$CONFIG_FILES"
50126
50127 _ACEOF
50128 cat >>$CONFIG_STATUS <<\_ACEOF
50129 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50130   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50131   case $ac_file in
50132   - | *:- | *:-:* ) # input from stdin
50133         cat >$tmp/stdin
50134         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50135         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50136   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50137         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50138   * )   ac_file_in=$ac_file.in ;;
50139   esac
50140
50141   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50142   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50144          X"$ac_file" : 'X\(//\)[^/]' \| \
50145          X"$ac_file" : 'X\(//\)$' \| \
50146          X"$ac_file" : 'X\(/\)' \| \
50147          .     : '\(.\)' 2>/dev/null ||
50148 echo X"$ac_file" |
50149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50150           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50151           /^X\(\/\/\)$/{ s//\1/; q; }
50152           /^X\(\/\).*/{ s//\1/; q; }
50153           s/.*/./; q'`
50154   { if $as_mkdir_p; then
50155     mkdir -p "$ac_dir"
50156   else
50157     as_dir="$ac_dir"
50158     as_dirs=
50159     while test ! -d "$as_dir"; do
50160       as_dirs="$as_dir $as_dirs"
50161       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50163          X"$as_dir" : 'X\(//\)[^/]' \| \
50164          X"$as_dir" : 'X\(//\)$' \| \
50165          X"$as_dir" : 'X\(/\)' \| \
50166          .     : '\(.\)' 2>/dev/null ||
50167 echo X"$as_dir" |
50168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50169           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50170           /^X\(\/\/\)$/{ s//\1/; q; }
50171           /^X\(\/\).*/{ s//\1/; q; }
50172           s/.*/./; q'`
50173     done
50174     test ! -n "$as_dirs" || mkdir $as_dirs
50175   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50177    { (exit 1); exit 1; }; }; }
50178
50179   ac_builddir=.
50180
50181 if test "$ac_dir" != .; then
50182   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50183   # A "../" for each directory in $ac_dir_suffix.
50184   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50185 else
50186   ac_dir_suffix= ac_top_builddir=
50187 fi
50188
50189 case $srcdir in
50190   .)  # No --srcdir option.  We are building in place.
50191     ac_srcdir=.
50192     if test -z "$ac_top_builddir"; then
50193        ac_top_srcdir=.
50194     else
50195        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50196     fi ;;
50197   [\\/]* | ?:[\\/]* )  # Absolute path.
50198     ac_srcdir=$srcdir$ac_dir_suffix;
50199     ac_top_srcdir=$srcdir ;;
50200   *) # Relative path.
50201     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50202     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50203 esac
50204
50205 # Do not use `cd foo && pwd` to compute absolute paths, because
50206 # the directories may not exist.
50207 case `pwd` in
50208 .) ac_abs_builddir="$ac_dir";;
50209 *)
50210   case "$ac_dir" in
50211   .) ac_abs_builddir=`pwd`;;
50212   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50213   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50214   esac;;
50215 esac
50216 case $ac_abs_builddir in
50217 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50218 *)
50219   case ${ac_top_builddir}. in
50220   .) ac_abs_top_builddir=$ac_abs_builddir;;
50221   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50222   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50223   esac;;
50224 esac
50225 case $ac_abs_builddir in
50226 .) ac_abs_srcdir=$ac_srcdir;;
50227 *)
50228   case $ac_srcdir in
50229   .) ac_abs_srcdir=$ac_abs_builddir;;
50230   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50231   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50232   esac;;
50233 esac
50234 case $ac_abs_builddir in
50235 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50236 *)
50237   case $ac_top_srcdir in
50238   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50239   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50240   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50241   esac;;
50242 esac
50243
50244
50245   case $INSTALL in
50246   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50247   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50248   esac
50249
50250   # Let's still pretend it is `configure' which instantiates (i.e., don't
50251   # use $as_me), people would be surprised to read:
50252   #    /* config.h.  Generated by config.status.  */
50253   if test x"$ac_file" = x-; then
50254     configure_input=
50255   else
50256     configure_input="$ac_file.  "
50257   fi
50258   configure_input=$configure_input"Generated from `echo $ac_file_in |
50259                                      sed 's,.*/,,'` by configure."
50260
50261   # First look for the input files in the build tree, otherwise in the
50262   # src tree.
50263   ac_file_inputs=`IFS=:
50264     for f in $ac_file_in; do
50265       case $f in
50266       -) echo $tmp/stdin ;;
50267       [\\/$]*)
50268          # Absolute (can't be DOS-style, as IFS=:)
50269          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50270 echo "$as_me: error: cannot find input file: $f" >&2;}
50271    { (exit 1); exit 1; }; }
50272          echo "$f";;
50273       *) # Relative
50274          if test -f "$f"; then
50275            # Build tree
50276            echo "$f"
50277          elif test -f "$srcdir/$f"; then
50278            # Source tree
50279            echo "$srcdir/$f"
50280          else
50281            # /dev/null tree
50282            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50283 echo "$as_me: error: cannot find input file: $f" >&2;}
50284    { (exit 1); exit 1; }; }
50285          fi;;
50286       esac
50287     done` || { (exit 1); exit 1; }
50288
50289   if test x"$ac_file" != x-; then
50290     { echo "$as_me:$LINENO: creating $ac_file" >&5
50291 echo "$as_me: creating $ac_file" >&6;}
50292     rm -f "$ac_file"
50293   fi
50294 _ACEOF
50295 cat >>$CONFIG_STATUS <<_ACEOF
50296   sed "$ac_vpsub
50297 $extrasub
50298 _ACEOF
50299 cat >>$CONFIG_STATUS <<\_ACEOF
50300 :t
50301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50302 s,@configure_input@,$configure_input,;t t
50303 s,@srcdir@,$ac_srcdir,;t t
50304 s,@abs_srcdir@,$ac_abs_srcdir,;t t
50305 s,@top_srcdir@,$ac_top_srcdir,;t t
50306 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50307 s,@builddir@,$ac_builddir,;t t
50308 s,@abs_builddir@,$ac_abs_builddir,;t t
50309 s,@top_builddir@,$ac_top_builddir,;t t
50310 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50311 s,@INSTALL@,$ac_INSTALL,;t t
50312 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50313   rm -f $tmp/stdin
50314   if test x"$ac_file" != x-; then
50315     mv $tmp/out $ac_file
50316   else
50317     cat $tmp/out
50318     rm -f $tmp/out
50319   fi
50320
50321   # Run the commands associated with the file.
50322   case $ac_file in
50323     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
50324     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
50325   esac
50326 done
50327 _ACEOF
50328 cat >>$CONFIG_STATUS <<\_ACEOF
50329
50330 #
50331 # CONFIG_HEADER section.
50332 #
50333
50334 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50335 # NAME is the cpp macro being defined and VALUE is the value it is being given.
50336 #
50337 # ac_d sets the value in "#define NAME VALUE" lines.
50338 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
50339 ac_dB='[         ].*$,\1#\2'
50340 ac_dC=' '
50341 ac_dD=',;t'
50342 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
50343 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
50344 ac_uB='$,\1#\2define\3'
50345 ac_uC=' '
50346 ac_uD=',;t'
50347
50348 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50349   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50350   case $ac_file in
50351   - | *:- | *:-:* ) # input from stdin
50352         cat >$tmp/stdin
50353         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50354         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50355   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50356         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50357   * )   ac_file_in=$ac_file.in ;;
50358   esac
50359
50360   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50361 echo "$as_me: creating $ac_file" >&6;}
50362
50363   # First look for the input files in the build tree, otherwise in the
50364   # src tree.
50365   ac_file_inputs=`IFS=:
50366     for f in $ac_file_in; do
50367       case $f in
50368       -) echo $tmp/stdin ;;
50369       [\\/$]*)
50370          # Absolute (can't be DOS-style, as IFS=:)
50371          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50372 echo "$as_me: error: cannot find input file: $f" >&2;}
50373    { (exit 1); exit 1; }; }
50374          # Do quote $f, to prevent DOS paths from being IFS'd.
50375          echo "$f";;
50376       *) # Relative
50377          if test -f "$f"; then
50378            # Build tree
50379            echo "$f"
50380          elif test -f "$srcdir/$f"; then
50381            # Source tree
50382            echo "$srcdir/$f"
50383          else
50384            # /dev/null tree
50385            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50386 echo "$as_me: error: cannot find input file: $f" >&2;}
50387    { (exit 1); exit 1; }; }
50388          fi;;
50389       esac
50390     done` || { (exit 1); exit 1; }
50391   # Remove the trailing spaces.
50392   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
50393
50394 _ACEOF
50395
50396 # Transform confdefs.h into two sed scripts, `conftest.defines' and
50397 # `conftest.undefs', that substitutes the proper values into
50398 # config.h.in to produce config.h.  The first handles `#define'
50399 # templates, and the second `#undef' templates.
50400 # And first: Protect against being on the right side of a sed subst in
50401 # config.status.  Protect against being in an unquoted here document
50402 # in config.status.
50403 rm -f conftest.defines conftest.undefs
50404 # Using a here document instead of a string reduces the quoting nightmare.
50405 # Putting comments in sed scripts is not portable.
50406 #
50407 # `end' is used to avoid that the second main sed command (meant for
50408 # 0-ary CPP macros) applies to n-ary macro definitions.
50409 # See the Autoconf documentation for `clear'.
50410 cat >confdef2sed.sed <<\_ACEOF
50411 s/[\\&,]/\\&/g
50412 s,[\\$`],\\&,g
50413 t clear
50414 : clear
50415 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
50416 t end
50417 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
50418 : end
50419 _ACEOF
50420 # If some macros were called several times there might be several times
50421 # the same #defines, which is useless.  Nevertheless, we may not want to
50422 # sort them, since we want the *last* AC-DEFINE to be honored.
50423 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50424 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50425 rm -f confdef2sed.sed
50426
50427 # This sed command replaces #undef with comments.  This is necessary, for
50428 # example, in the case of _POSIX_SOURCE, which is predefined and required
50429 # on some systems where configure will not decide to define it.
50430 cat >>conftest.undefs <<\_ACEOF
50431 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
50432 _ACEOF
50433
50434 # Break up conftest.defines because some shells have a limit on the size
50435 # of here documents, and old seds have small limits too (100 cmds).
50436 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
50437 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
50438 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50439 echo '  :' >>$CONFIG_STATUS
50440 rm -f conftest.tail
50441 while grep . conftest.defines >/dev/null
50442 do
50443   # Write a limited-size here document to $tmp/defines.sed.
50444   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50445   # Speed up: don't consider the non `#define' lines.
50446   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
50447   # Work around the forget-to-reset-the-flag bug.
50448   echo 't clr' >>$CONFIG_STATUS
50449   echo ': clr' >>$CONFIG_STATUS
50450   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50451   echo 'CEOF
50452   sed -f $tmp/defines.sed $tmp/in >$tmp/out
50453   rm -f $tmp/in
50454   mv $tmp/out $tmp/in
50455 ' >>$CONFIG_STATUS
50456   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50457   rm -f conftest.defines
50458   mv conftest.tail conftest.defines
50459 done
50460 rm -f conftest.defines
50461 echo '  fi # grep' >>$CONFIG_STATUS
50462 echo >>$CONFIG_STATUS
50463
50464 # Break up conftest.undefs because some shells have a limit on the size
50465 # of here documents, and old seds have small limits too (100 cmds).
50466 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
50467 rm -f conftest.tail
50468 while grep . conftest.undefs >/dev/null
50469 do
50470   # Write a limited-size here document to $tmp/undefs.sed.
50471   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50472   # Speed up: don't consider the non `#undef'
50473   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
50474   # Work around the forget-to-reset-the-flag bug.
50475   echo 't clr' >>$CONFIG_STATUS
50476   echo ': clr' >>$CONFIG_STATUS
50477   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50478   echo 'CEOF
50479   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50480   rm -f $tmp/in
50481   mv $tmp/out $tmp/in
50482 ' >>$CONFIG_STATUS
50483   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50484   rm -f conftest.undefs
50485   mv conftest.tail conftest.undefs
50486 done
50487 rm -f conftest.undefs
50488
50489 cat >>$CONFIG_STATUS <<\_ACEOF
50490   # Let's still pretend it is `configure' which instantiates (i.e., don't
50491   # use $as_me), people would be surprised to read:
50492   #    /* config.h.  Generated by config.status.  */
50493   if test x"$ac_file" = x-; then
50494     echo "/* Generated by configure.  */" >$tmp/config.h
50495   else
50496     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
50497   fi
50498   cat $tmp/in >>$tmp/config.h
50499   rm -f $tmp/in
50500   if test x"$ac_file" != x-; then
50501     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50502       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50503 echo "$as_me: $ac_file is unchanged" >&6;}
50504     else
50505       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50506 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50507          X"$ac_file" : 'X\(//\)[^/]' \| \
50508          X"$ac_file" : 'X\(//\)$' \| \
50509          X"$ac_file" : 'X\(/\)' \| \
50510          .     : '\(.\)' 2>/dev/null ||
50511 echo X"$ac_file" |
50512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50513           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50514           /^X\(\/\/\)$/{ s//\1/; q; }
50515           /^X\(\/\).*/{ s//\1/; q; }
50516           s/.*/./; q'`
50517       { if $as_mkdir_p; then
50518     mkdir -p "$ac_dir"
50519   else
50520     as_dir="$ac_dir"
50521     as_dirs=
50522     while test ! -d "$as_dir"; do
50523       as_dirs="$as_dir $as_dirs"
50524       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50526          X"$as_dir" : 'X\(//\)[^/]' \| \
50527          X"$as_dir" : 'X\(//\)$' \| \
50528          X"$as_dir" : 'X\(/\)' \| \
50529          .     : '\(.\)' 2>/dev/null ||
50530 echo X"$as_dir" |
50531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50532           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50533           /^X\(\/\/\)$/{ s//\1/; q; }
50534           /^X\(\/\).*/{ s//\1/; q; }
50535           s/.*/./; q'`
50536     done
50537     test ! -n "$as_dirs" || mkdir $as_dirs
50538   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50539 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50540    { (exit 1); exit 1; }; }; }
50541
50542       rm -f $ac_file
50543       mv $tmp/config.h $ac_file
50544     fi
50545   else
50546     cat $tmp/config.h
50547     rm -f $tmp/config.h
50548   fi
50549 done
50550 _ACEOF
50551 cat >>$CONFIG_STATUS <<\_ACEOF
50552
50553 #
50554 # CONFIG_COMMANDS section.
50555 #
50556 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50557   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50558   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50559   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50560 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50561          X"$ac_dest" : 'X\(//\)[^/]' \| \
50562          X"$ac_dest" : 'X\(//\)$' \| \
50563          X"$ac_dest" : 'X\(/\)' \| \
50564          .     : '\(.\)' 2>/dev/null ||
50565 echo X"$ac_dest" |
50566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50567           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50568           /^X\(\/\/\)$/{ s//\1/; q; }
50569           /^X\(\/\).*/{ s//\1/; q; }
50570           s/.*/./; q'`
50571   { if $as_mkdir_p; then
50572     mkdir -p "$ac_dir"
50573   else
50574     as_dir="$ac_dir"
50575     as_dirs=
50576     while test ! -d "$as_dir"; do
50577       as_dirs="$as_dir $as_dirs"
50578       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50580          X"$as_dir" : 'X\(//\)[^/]' \| \
50581          X"$as_dir" : 'X\(//\)$' \| \
50582          X"$as_dir" : 'X\(/\)' \| \
50583          .     : '\(.\)' 2>/dev/null ||
50584 echo X"$as_dir" |
50585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50586           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50587           /^X\(\/\/\)$/{ s//\1/; q; }
50588           /^X\(\/\).*/{ s//\1/; q; }
50589           s/.*/./; q'`
50590     done
50591     test ! -n "$as_dirs" || mkdir $as_dirs
50592   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50593 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50594    { (exit 1); exit 1; }; }; }
50595
50596   ac_builddir=.
50597
50598 if test "$ac_dir" != .; then
50599   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50600   # A "../" for each directory in $ac_dir_suffix.
50601   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50602 else
50603   ac_dir_suffix= ac_top_builddir=
50604 fi
50605
50606 case $srcdir in
50607   .)  # No --srcdir option.  We are building in place.
50608     ac_srcdir=.
50609     if test -z "$ac_top_builddir"; then
50610        ac_top_srcdir=.
50611     else
50612        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50613     fi ;;
50614   [\\/]* | ?:[\\/]* )  # Absolute path.
50615     ac_srcdir=$srcdir$ac_dir_suffix;
50616     ac_top_srcdir=$srcdir ;;
50617   *) # Relative path.
50618     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50619     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50620 esac
50621
50622 # Do not use `cd foo && pwd` to compute absolute paths, because
50623 # the directories may not exist.
50624 case `pwd` in
50625 .) ac_abs_builddir="$ac_dir";;
50626 *)
50627   case "$ac_dir" in
50628   .) ac_abs_builddir=`pwd`;;
50629   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50630   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50631   esac;;
50632 esac
50633 case $ac_abs_builddir in
50634 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50635 *)
50636   case ${ac_top_builddir}. in
50637   .) ac_abs_top_builddir=$ac_abs_builddir;;
50638   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50639   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50640   esac;;
50641 esac
50642 case $ac_abs_builddir in
50643 .) ac_abs_srcdir=$ac_srcdir;;
50644 *)
50645   case $ac_srcdir in
50646   .) ac_abs_srcdir=$ac_abs_builddir;;
50647   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50648   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50649   esac;;
50650 esac
50651 case $ac_abs_builddir in
50652 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50653 *)
50654   case $ac_top_srcdir in
50655   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50656   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50657   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50658   esac;;
50659 esac
50660
50661
50662   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50663 echo "$as_me: executing $ac_dest commands" >&6;}
50664   case $ac_dest in
50665     rcdefs.h )
50666             mkdir -p $outdir &&
50667             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50668          ;;
50669     wx-config )  rm -f wx-config
50670                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50671                     ;;
50672   esac
50673 done
50674 _ACEOF
50675
50676 cat >>$CONFIG_STATUS <<\_ACEOF
50677
50678 { (exit 0); exit 0; }
50679 _ACEOF
50680 chmod +x $CONFIG_STATUS
50681 ac_clean_files=$ac_clean_files_save
50682
50683
50684 # configure is writing to config.log, and then calls config.status.
50685 # config.status does its own redirection, appending to config.log.
50686 # Unfortunately, on DOS this fails, as config.log is still kept open
50687 # by configure, so config.status won't be able to write to it; its
50688 # output is simply discarded.  So we exec the FD to /dev/null,
50689 # effectively closing config.log, so it can be properly (re)opened and
50690 # appended to by config.status.  When coming back to configure, we
50691 # need to make the FD available again.
50692 if test "$no_create" != yes; then
50693   ac_cs_success=:
50694   ac_config_status_args=
50695   test "$silent" = yes &&
50696     ac_config_status_args="$ac_config_status_args --quiet"
50697   exec 5>/dev/null
50698   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50699   exec 5>>config.log
50700   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50701   # would make configure fail if this is the last instruction.
50702   $ac_cs_success || { (exit 1); exit 1; }
50703 fi
50704
50705 #
50706 # CONFIG_SUBDIRS section.
50707 #
50708 if test "$no_recursion" != yes; then
50709
50710   # Remove --cache-file and --srcdir arguments so they do not pile up.
50711   ac_sub_configure_args=
50712   ac_prev=
50713   for ac_arg in $ac_configure_args; do
50714     if test -n "$ac_prev"; then
50715       ac_prev=
50716       continue
50717     fi
50718     case $ac_arg in
50719     -cache-file | --cache-file | --cache-fil | --cache-fi \
50720     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50721       ac_prev=cache_file ;;
50722     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50723     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50724     | --c=*)
50725       ;;
50726     --config-cache | -C)
50727       ;;
50728     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50729       ac_prev=srcdir ;;
50730     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50731       ;;
50732     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50733       ac_prev=prefix ;;
50734     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50735       ;;
50736     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50737     esac
50738   done
50739
50740   # Always prepend --prefix to ensure using the same prefix
50741   # in subdir configurations.
50742   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50743
50744   ac_popdir=`pwd`
50745   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50746
50747     # Do not complain, so a configure script can configure whichever
50748     # parts of a large source tree are present.
50749     test -d $srcdir/$ac_dir || continue
50750
50751     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50752 echo "$as_me: configuring in $ac_dir" >&6;}
50753     { if $as_mkdir_p; then
50754     mkdir -p "$ac_dir"
50755   else
50756     as_dir="$ac_dir"
50757     as_dirs=
50758     while test ! -d "$as_dir"; do
50759       as_dirs="$as_dir $as_dirs"
50760       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50762          X"$as_dir" : 'X\(//\)[^/]' \| \
50763          X"$as_dir" : 'X\(//\)$' \| \
50764          X"$as_dir" : 'X\(/\)' \| \
50765          .     : '\(.\)' 2>/dev/null ||
50766 echo X"$as_dir" |
50767     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50768           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50769           /^X\(\/\/\)$/{ s//\1/; q; }
50770           /^X\(\/\).*/{ s//\1/; q; }
50771           s/.*/./; q'`
50772     done
50773     test ! -n "$as_dirs" || mkdir $as_dirs
50774   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50775 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50776    { (exit 1); exit 1; }; }; }
50777
50778     ac_builddir=.
50779
50780 if test "$ac_dir" != .; then
50781   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50782   # A "../" for each directory in $ac_dir_suffix.
50783   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50784 else
50785   ac_dir_suffix= ac_top_builddir=
50786 fi
50787
50788 case $srcdir in
50789   .)  # No --srcdir option.  We are building in place.
50790     ac_srcdir=.
50791     if test -z "$ac_top_builddir"; then
50792        ac_top_srcdir=.
50793     else
50794        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50795     fi ;;
50796   [\\/]* | ?:[\\/]* )  # Absolute path.
50797     ac_srcdir=$srcdir$ac_dir_suffix;
50798     ac_top_srcdir=$srcdir ;;
50799   *) # Relative path.
50800     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50801     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50802 esac
50803
50804 # Do not use `cd foo && pwd` to compute absolute paths, because
50805 # the directories may not exist.
50806 case `pwd` in
50807 .) ac_abs_builddir="$ac_dir";;
50808 *)
50809   case "$ac_dir" in
50810   .) ac_abs_builddir=`pwd`;;
50811   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50812   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50813   esac;;
50814 esac
50815 case $ac_abs_builddir in
50816 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50817 *)
50818   case ${ac_top_builddir}. in
50819   .) ac_abs_top_builddir=$ac_abs_builddir;;
50820   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50821   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50822   esac;;
50823 esac
50824 case $ac_abs_builddir in
50825 .) ac_abs_srcdir=$ac_srcdir;;
50826 *)
50827   case $ac_srcdir in
50828   .) ac_abs_srcdir=$ac_abs_builddir;;
50829   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50830   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50831   esac;;
50832 esac
50833 case $ac_abs_builddir in
50834 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50835 *)
50836   case $ac_top_srcdir in
50837   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50838   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50839   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50840   esac;;
50841 esac
50842
50843
50844     cd $ac_dir
50845
50846     # Check for guested configure; otherwise get Cygnus style configure.
50847     if test -f $ac_srcdir/configure.gnu; then
50848       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50849     elif test -f $ac_srcdir/configure; then
50850       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50851     elif test -f $ac_srcdir/configure.in; then
50852       ac_sub_configure=$ac_configure
50853     else
50854       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50855 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50856       ac_sub_configure=
50857     fi
50858
50859     # The recursion is here.
50860     if test -n "$ac_sub_configure"; then
50861       # Make the cache file name correct relative to the subdirectory.
50862       case $cache_file in
50863       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50864       *) # Relative path.
50865         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
50866       esac
50867
50868       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50869 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50870       # The eval makes quoting arguments work.
50871       eval $ac_sub_configure $ac_sub_configure_args \
50872            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50873         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
50874 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50875    { (exit 1); exit 1; }; }
50876     fi
50877
50878     cd "$ac_popdir"
50879   done
50880 fi
50881
50882
50883 echo
50884 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
50885 echo ""
50886 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
50887 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
50888
50889 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
50890 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
50891 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
50892
50893 echo "  What level of wxWidgets compatibility should be enabled?"
50894 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
50895 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
50896
50897 echo "  Which libraries should wxWidgets use?"
50898 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
50899 echo "                                       png                ${wxUSE_LIBPNG-none}"
50900 echo "                                       regex              ${wxUSE_REGEX}"
50901 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
50902 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50903 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
50904 fi
50905 echo "                                       zlib               ${wxUSE_ZLIB}"
50906 echo "                                       odbc               ${wxUSE_ODBC}"
50907 echo "                                       expat              ${wxUSE_EXPAT}"
50908 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
50909 echo "                                       sdl                ${wxUSE_LIBSDL}"
50910
50911 echo ""
50912